fast.wistia.com
Open in
urlscan Pro
2a04:4e42:400::622
Public Scan
URL:
https://fast.wistia.com/assets/external/E-v1.js
Submission: On May 18 via manual from GB — Scanned from GB
Submission: On May 18 via manual from GB — Scanned from GB
Form analysis
0 forms found in the DOMText Content
/*! For license information please see E-v1.js.LICENSE.txt */ var __webpack_modules__=[,,(e,t,n)=>{n.d(t,{Component:()=>v,h:()=>f,options:()=>r,render:()=>R});var i,r,o,a,s,u={},l=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function f(e,t,n){var r,o,a,s={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return p(e,s,r,o,null)}function p(e,t,n,i,a){var s={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(s),s}function y(e){return e.children}function v(e,t){this.props=e,this.context=t}function m(e,t){if(null==t)return e.__?m(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?m(e):null}function g(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return g(e)}}function b(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!_.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||setTimeout)(_)}function _(){for(var e;_.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,i,r,o,a;e.__d&&(o=(r=(t=e).__v).__e,(a=t.__P)&&(n=[],(i=d({},r)).__v=r.__v+1,C(a,r,i,t.__n,void 0!==a.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?m(r):o,r.__h),A(n,r),r.__e!=o&&g(r)))}))}function w(e,t,n,i,r,o,a,s,c,d){var h,f,v,g,b,_,w,P=i&&i.__k||l,T=P.length;for(n.__k=[],h=0;h<t.length;h++)if(null!=(g=n.__k[h]=null==(g=t[h])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?p(null,g,null,null,g):Array.isArray(g)?p(y,{children:g},null,null,null):g.__b>0?p(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(v=P[h])||v&&g.key==v.key&&g.type===v.type)P[h]=void 0;else for(f=0;f<T;f++){if((v=P[f])&&g.key==v.key&&g.type===v.type){P[f]=void 0;break}v=null}C(e,g,v=v||u,r,o,a,s,c,d),b=g.__e,(f=g.ref)&&v.ref!=f&&(w||(w=[]),v.ref&&w.push(v.ref,null,g),w.push(f,g.__c||b,g)),null!=b?(null==_&&(_=b),"function"==typeof g.type&&g.__k===v.__k?g.__d=c=O(g,c,e):c=k(e,g,v,P,b,c),"function"==typeof n.type&&(n.__d=c)):c&&v.__e==c&&c.parentNode!=e&&(c=m(v))}for(n.__e=_,h=T;h--;)null!=P[h]&&x(P[h],P[h]);if(w)for(h=0;h<w.length;h++)j(w[h],w[++h],w[++h])}function O(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?O(i,t,n):k(n,i,i,r,i.__e,t));return t}function k(e,t,n,i,r,o){var a,s,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),a=null;else{for(s=o,u=0;(s=s.nextSibling)&&u<i.length;u+=2)if(s==r)break e;e.insertBefore(r,o),a=o}return void 0!==a?a:r.nextSibling}function P(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||c.test(t)?n:n+"px"}function T(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||P(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||P(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?E:S,o):e.removeEventListener(t,o?E:S,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function S(e){this.l[e.type+!1](r.event?r.event(e):e)}function E(e){this.l[e.type+!0](r.event?r.event(e):e)}function C(e,t,n,i,o,a,s,u,l){var c,h,f,p,m,g,b,_,O,k,P,T,S,E,C,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(c=r.__b)&&c(t);try{e:if("function"==typeof A){if(_=t.props,O=(c=A.contextType)&&i[c.__c],k=c?O?O.props.value:c.__:i,n.__c?b=(h=t.__c=n.__c).__=h.__E:("prototype"in A&&A.prototype.render?t.__c=h=new A(_,k):(t.__c=h=new v(_,k),h.constructor=A,h.render=M),O&&O.sub(h),h.props=_,h.state||(h.state={}),h.context=k,h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=A.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,A.getDerivedStateFromProps(_,h.__s))),p=h.props,m=h.state,f)null==A.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==A.getDerivedStateFromProps&&_!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(_,k),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(_,h.__s,k)||t.__v===n.__v){for(h.props=_,h.state=h.__s,t.__v!==n.__v&&(h.__d=!1),h.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(_,h.__s,k),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(p,m,g)}))}if(h.context=k,h.props=_,h.__v=t,h.__P=e,T=r.__r,S=0,"prototype"in A&&A.prototype.render){for(h.state=h.__s,h.__d=!1,T&&T(t),c=h.render(h.props,h.state,h.context),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[]}else do{h.__d=!1,T&&T(t),c=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++S<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),f||null==h.getSnapshotBeforeUpdate||(g=h.getSnapshotBeforeUpdate(p,m)),C=null!=c&&c.type===y&&null==c.key?c.props.children:c,w(e,Array.isArray(C)?C:[C],t,n,i,o,a,s,u,l),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),b&&(h.__E=h.__=null),h.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=D(n.__e,t,n,i,o,a,s,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=u,t.__h=!!l,a[a.indexOf(u)]=null),r.__e(e,t,n)}}function A(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function D(e,t,n,r,o,a,s,l){var c,d,f,p=n.props,y=t.props,v=t.type,g=0;if("svg"===v&&(o=!0),null!=a)for(;g<a.length;g++)if((c=a[g])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){e=c,a[g]=null;break}if(null==e){if(null===v)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),a=null,l=!1}if(null===v)p===y||l&&e.data===y||(e.data=y);else{if(a=a&&i.call(e.childNodes),d=(p=n.props||u).dangerouslySetInnerHTML,f=y.dangerouslySetInnerHTML,!l){if(null!=a)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||T(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||T(e,o,t[o],n[o],i)}(e,y,p,o,l),f)t.__k=[];else if(g=t.props.children,w(e,Array.isArray(g)?g:[g],t,n,r,o&&"foreignObject"!==v,a,s,a?a[0]:n.__k&&m(n,0),l),null!=a)for(g=a.length;g--;)null!=a[g]&&h(a[g]);l||("value"in y&&void 0!==(g=y.value)&&(g!==e.value||"progress"===v&&!g||"option"===v&&g!==p.value)&&T(e,"value",g,p.value,!1),"checked"in y&&void 0!==(g=y.checked)&&g!==e.checked&&T(e,"checked",g,p.checked,!1))}return e}function j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function x(e,t,n){var i,o;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||j(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&x(i[o],t,n||"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__=e.__e=e.__d=void 0}function M(e,t,n){return this.constructor(e,n)}function R(e,t,n){var o,a,s;r.__&&r.__(e,t),a=(o="function"==typeof n)?null:n&&n.__k||t.__k,s=[],C(t,e=(!o&&n||t).__k=f(y,null,[e]),a||u,u,void 0!==t.ownerSVGElement,!o&&n?[n]:a?null:t.firstChild?i.call(t.childNodes):null,s,!o&&n?n:a?a.__e:t.firstChild,o),A(s,e)}i=l.slice,r={__e:function(e,t,n,i){for(var r,o,a;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),a=r.__d),a)return r.__E=r}catch(t){e=t}throw e}},o=0,v.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),b(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},v.prototype.render=y,a=[],_.__r=0},(e,t,n)=>{n.d(t,{default:()=>a});var i=n(4),r=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};null==i.default.Wistia&&(i.default.Wistia={});var o=i.default.Wistia;null==o._initializers&&(o._initializers={}),null==o._destructors&&(o._destructors={}),null==o.mixin&&(o.mixin=function(e,t){for(var n in t)r(t,n)&&(e[n]=t[n])});const a=i.default.Wistia},(e,t,n)=>{var i;n.d(t,{default:()=>r});try{(i=self).self!==i&&void 0!==i.self&&"undefined"!=typeof window&&(i=window)}catch(e){i="undefined"!=typeof globalThis?globalThis:window}const r=i},(e,t,n)=>{n.r(t),n.d(t,{addInlineCss:()=>_,docScrollLeft:()=>pe,docScrollTop:()=>fe,elemAddClass:()=>D,elemAfter:()=>E,elemAncestorHasClass:()=>Y,elemAncestorWithClass:()=>Q,elemAncestors:()=>X,elemAnimate:()=>J,elemAppend:()=>P,elemBefore:()=>S,elemBind:()=>ee,elemBindKey:()=>re,elemBindOnce:()=>ae,elemCancelFullscreen:()=>ce,elemClasses:()=>R,elemClone:()=>k,elemContainsOffset:()=>N,elemFromObject:()=>w,elemHasClass:()=>j,elemHeight:()=>U,elemHtml:()=>v,elemInDom:()=>K,elemIsDescendantOf:()=>G,elemIsHidden:()=>z,elemIsInside:()=>$,elemMutationObserver:()=>he,elemOffset:()=>l.elemOffset,elemPrepend:()=>T,elemRebind:()=>oe,elemRemove:()=>C,elemRemoveClass:()=>A,elemRequestFullscreen:()=>le,elemScrollOffset:()=>q,elemStripEventAttributes:()=>de,elemStyle:()=>B,elemToObject:()=>O,elemTrigger:()=>se,elemUnbind:()=>te,elemUnbindAll:()=>ne,elemUnbindAllInside:()=>ie,elemWidth:()=>V,elemZoom:()=>l.elemZoom,execCssTags:()=>g,execScriptTags:()=>c.execScriptTags,formInputIsFocused:()=>ve,fullscreenElement:()=>ue,getComputedStyle:()=>H,getCssTags:()=>m,getLastActiveEventAt:()=>ge,getScriptTags:()=>c.getScriptTags,inUserEventContext:()=>me,isBoxModel:()=>l.isBoxModel,isDocReady:()=>o.isDocReady,onDocReady:()=>o.onDocReady,pageLoaded:()=>a.default,propsWithVendorPrefixes:()=>W,removeCssTags:()=>b,removeScriptTags:()=>c.removeScriptTags,safeRequestAnimationFrame:()=>ye});var i,r=n(6),o=n(8),a=n(10),s=n(11),u=n(12),l=n(16),c=n(17),d=n(20),h=n(3),f=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},p=h.default,y=(0,s.cachedDetect)(),v=function(e,t){var n=m(t),i=(0,c.getScriptTags)(t);return t=b(t),t=(0,c.removeScriptTags)(t),e.innerHTML=t,g(n,e),(0,c.execScriptTags)(i)},m=function(e){return e.match(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi)||[]},g=function(e,t){if(!e)return null;(0,r.isArray)(e)||(e=m(e));for(var n=[],i=0;i<e.length;i++){var o=e[i];if(/<link.*?rel=['"]stylesheet['"][^>]*>/.test(o)){var a=o.match(/href=['"](.*?)['"]/i);if(a){var s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",a[1]),s.className="wistia_injected_style",(t||document.body||document.head).appendChild(s),n.push(s)}}else if(/<style>[\s\S]+?<\/style>/gi.test(o)){var u=o.match(/<style>([\s\S]+?)<\/style>/i);if(u){var l=_(t||document.body||document.head,u[1]);n.push(l)}}}return n},b=function(e){return e.replace(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi,"")},_=function(e,t){var n=e||document.body||document.head,i=document.createElement("style");return i.id=(0,d.seqId)("wistia_","_style"),i.setAttribute("type","text/css"),i.className="wistia_injected_style",n.appendChild(i,n.nextSibling),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),i},w=function e(t){if((0,r.isArray)(t)){for(var n=[],i=0;i<t.length;i++)n.push(e(t[i]));return n}var o=t.tagName||"div",a=t.childNodes||[];(0,r.isArray)(a)||(a=[a]);var s=document.createElement(o);for(var u in t)if(f(t,u)){var l=t[u];if("childNodes"!==u&&"tagName"!==u&&"ref"!==u){var c=u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if("style"===u)if((0,r.isObject)(l))for(var d in l)s.style[d]=l[d];else for(var h=l.split(";"),p=0;p<h.length;p++){var y=h[p].split(/\s*:\s*/),v=y[0],m=y[1];v&&m&&(s.style[v]=m)}else if("events"===u)for(var g in l){var b=l[g];ee(s,g,b)}else"className"===u||"class"===u?s.className=l:"innerHTML"===u?s.innerHTML=l:"innerText"===u?s.innerText=l:null!=l&&"function"==typeof l.toString&&s.setAttribute(c,l.toString())}}for(var _=0;_<a.length;_++){var w=a[_];if((0,r.isObject)(w)){var O=e(w);P(s,O)}else{var k=document.createTextNode(w.toString());P(s,k)}}return"function"==typeof t.ref&&t.ref(s),s},O=function e(t){if((0,r.isArray)(t))for(var n=[],i=0;i<t.length;i++)n.push(e(t[i]));var o={};o.tagName=t.tagName.toLowerCase();for(var a=Object.keys(t),s=0;s<a.length;s++){var u=a[s];if("tagName"!==u&&"childNodes"!==u&&"nodeType"!==u&&"nodeValue"!==u)if("style"===u){o.style={};for(var l=Object.keys(t.style),c=0;c<l.length;c++){var d=l[c],h=t.style[d];h&&!/^\d/.test(d)&&"length"!==d&&(o.style[d]=h)}}else{var f=t.getAttribute(u);null!=f&&(o[u]=f)}}for(var p=[],y=0;y<t.childNodes.length;y++){var v=t.childNodes[y];1===v.nodeType?p.push(e(v)):3===v.nodeType&&p.push(v.nodeValue)}return p.length>0&&(o.childNodes=p),o},k=function(e){var t=O(e);return w(t)},P=function e(t,n){if((0,r.isArray)(n))for(var i=0;i<n.length;i++)e(t,n[i]);else t.appendChild(n,{wistiaGridCaller:!0})},T=function e(t,n){if(!(0,r.isArray)(n))return 0===t.childNodes.length?P(t,n):t.insertBefore(n,t.childNodes[0]);for(var i=0;i<n.length;i++)e(t,n[i])},S=function e(t,n){if(!(0,r.isArray)(n))return t.parentNode.insertBefore(n,t);n=n.reverse();for(var i=0;i<n.length;i++)e(t,n[i])},E=function e(t,n){if(!(0,r.isArray)(n))return t.parentNode.insertBefore(n,t.nextSibling);n=n.reverse();for(var i=0;i<n.length;i++)e(t,n[i])},C=function e(t){var n;if((0,r.isArray)(t)||window.NodeList&&t instanceof NodeList)for(var i=0;i<t.length;i++)e(t[i]);else null==t||1!==t.nodeType&&3!==t.nodeType||!(n=t.parentNode)||(n.removeChild(t),t=null)},A=function e(t,n){if((0,r.isArray)(t)||window.NodeList&&t instanceof NodeList)for(var i=0;i<t.length;i++)e(t[i],n);else if(j(t,n)){var o=t.getAttribute("class");if(o){var a=new RegExp("\\b".concat(n,"\\b"),"g"),s=I(o.replace(a,""));t.setAttribute("class",s)}}},D=function e(t,n){if((0,r.isArray)(t)||window.NodeList&&t instanceof NodeList)for(var i=0;i<t.length;i++)e(t[i],n);else if(!j(t,n)){var o,a=t.getAttribute("class");a?(A(t,n),o=I("".concat(a," ").concat(n))):o=n,t.setAttribute("class",o)}},j=function(e,t){var n=null!=e&&"function"==typeof e.getAttribute&&e.getAttribute("class");if(!n&&e&&"string"==typeof e.className&&(n=e.className),!n)return!1;var i=!1;return M(n,t,(function(e){var r=0===e||" "===n.charAt(e-1),o=e+t.length===n.length,a=" "===n.charAt(e+t.length);if(r&&(o||a))return i=!0,x})),i},x={},M=function(e,t,n){for(var i=-1;-1!=(i=e.indexOf(t,i+1))&&n(i)!==x;);},R=function(e){return e&&"string"!=typeof e.className?[""]:(e&&e.className||"").split(/\s+/)},I=function(e){return e.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," ")},B=function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];if((0,r.isArray)(t)||window.NodeList&&t instanceof NodeList){for(var a=[],s=0;s<t.length;s++){var l=t[s];1===l.nodeType&&a.push(e.apply(void 0,[l].concat(i)))}return a}if(2===i.length){var c=i[0],d=i[1];t.style[c]=d}else if(1===i.length)if("string"==typeof i[0]){var h=i[0];try{return t.currentStyle?t.currentStyle[h]:window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(h):null}catch(e){u.wlog.notice(e)}}else{var f=W(i[0]);for(var p in f){var y=f[p];t.style[p]=y}}else u.wlog.apply(void 0,["Unexpected args",t].concat(i))},F={borderImage:!0,mixBlendMode:!0,transform:!0,transition:!0,transitionDuration:!0},L=["webkit","moz","o","ms"],W=function(e){if(y.chrome)return e;var t={};for(var n in e){var i=e[n];if(t[n]=i,F[n])for(var r=L,o=0;o<r.length;o++){var a=r[o]+n.charAt(0).toUpperCase()+n.slice(1);n[a]||(t[a]=i)}}return t},H=function(e,t){if(!window.getComputedStyle)return null;var n=window.getComputedStyle(e,null);return null==n?null:null!=t?n[t]:n},V=function(e){if(e===window)return window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.offsetWidth:document.body.offsetWidth;if(e===document){var t=document.body,n=document.documentElement;return Math.max(t.scrollWidth,t.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)}var i;return(i=H(e,"width"))&&null!=i?parseFloat(i):e.currentStyle?e.offsetWidth:-1},U=function(e){if(e===window)return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.offsetHeight:document.body.offsetHeight;if(e===document){var t=document.body,n=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}var i;return(i=H(e,"height"))&&null!=i?parseFloat(i):e.currentStyle?e.offsetHeight:-1},N=function(e,t,n){var i=(0,l.elemOffset)(e);return i.right=i.left+V(e),i.bottom=i.top+U(e),i.left<=t&&t<i.right&&i.top<=n&&n<i.bottom},q=function(e){var t=0,n=0;if(e.parentNode)for(;e&&e.offsetParent;)n+=e.scrollTop,t+=e.scrollLeft,e=e.parentNode;return{left:t,top:n}},z=function(e){for(;e&&1===e.nodeType;){if("none"===B(e,"display"))return!0;e=e.parentNode}return!1},K=function(e){for(;e=e.parentNode;)if(e===document)return!0;return!1},G=function(e,t){for(var n=X(e),i=0;i<n.length;i++)if(n[i]===t)return!0;return!1},Q=function(e,t){for(var n=X(e),i=0;i<n.length;i++)if(j(n[i],t))return n[i];return null},Y=function(e,t){return!!Q(e,t)},X=function(e){for(var t=e,n=[];t=t.parentNode;)n.push(t);return n},$=function(e,t){return e===t||G(e,t)},Z=function(e,t,n){var i=[];for(var r in e)i.push("".concat(r," ").concat(t,"ms ").concat(n));return i.join(",")},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,r.merge)({time:400,easing:"ease"},n);var i=Z(t,n.time,n.easing);B(e,{transition:i}),ye((function(){B(e,t),setTimeout((function(){B(e,{transition:""}),"function"==typeof n.callback&&n.callback()}),n.time)}))},ee=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=function(i){(i=i||window.event).pageX||i.pageY||!i.clientX&&!i.clientY||(i.pageX=i.clientX+pe(),i.pageY=i.clientY+fe()),i.preventDefault||(i.preventDefault=function(){i.returnValue=!1}),i.stopPropagation||(i.stopPropagation=function(){i.cancelBubble=!0}),null==i.which&&(i.which=null!=i.charCode?i.charCode:i.keyCode),null==i.which&&null!=i.button&&(1&i.button?i.which=1:2&i.button?i.which=3:4&i.button?i.which=2:i.which=0),i.target||i.srcElement&&(i.target=i.srcElement),i.target&&3===i.target.nodeType&&(i.target=i.target.parentNode);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var s=n.apply(i.target,[i].concat(o));return s===te&&te(e,t,n),s};p._elemBind=p._elemBind||{};var o=re(e,t,n);return p._elemBind[o]=r,r.elem=e,r.event=t,e.addEventListener(t,r,i),function(){te(e,t,n,i)}},te=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null!=e&&null!=e._wistiaElemId&&null!=n&&n._wistiaBindId){var r=re(e,t,n),o=p._elemBind[r];return o&&(e.removeEventListener(t,o,i),o.elem=null,o.event=null),delete p._elemBind[r]}},ne=function(e){for(var t in p._elemBind){var n=p._elemBind[t];if(n&&e===n.elem){var i=n.event;n.elem.removeEventListener(i,n,!1),n.elem=null,n.event=null,delete p._elemBind[t]}}},ie=function(e){var t=0;for(var n in p._elemBind){var i=p._elemBind[n];if(i&&$(i.elem,e)){var r=i.event;i.elem.removeEventListener(r,i,!1),i.elem=null,i.event=null,delete p._elemBind[n],t+=1}}return t},re=function(e,t,n){return e._wistiaElemId=e._wistiaElemId||(0,d.seqId)("wistia_elem_"),n._wistiaBindId=n._wistiaBindId||(0,d.seqId)("wistia_bind_"),"".concat(e._wistiaElemId,".").concat(t,".").concat(n._wistiaBindId)},oe=function(e,t,n){if(n)return te(e,t,n),ee(e,t,n)},ae=function(e,t,n){return ee(e,t,(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n.apply(this,t),te}))},se=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];if(e.dispatchEvent){var o=document.createEvent("Events");return o.initEvent(t,!0,!1),"click"===t||"doubleclick"===t?o.which=1:"rightclick"===t&&(o.which=2),o.customArguments=i,e.dispatchEvent(o)}if(e.fireEvent){var a={customArguments:i};return e.fireEvent("on".concat(t),a)}u.wlog.error("neither dispatchEvent nor fireEvent is defined for",e,t)},ue=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},le=function(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen?e.msRequestFullscreen():e.webkitEnterFullscreen?e.webkitEnterFullscreen():(u.wlog.notice("no requestFullscreen functionality detected"),null)},ce=function(e){return document.cancelFullscreen?document.cancelFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():e&&e.webkitExitFullscreen?e.webkitExitFullscreen():(u.wlog.notice("no cancelFullscreen functionality detected"),null)},de=function e(t){var n=t&&t.attributes||[];try{for(var i=0;i<n.length;i++){var r=n[i];/^on.+/i.test(r.name)&&(t[r.name]=null,t.removeAttribute(r.name))}}catch(e){u.wlog.error(e)}if(t.childNodes)for(var o=0;o<t.childNodes.length;o++){var a=t.childNodes[o];1===a.nodeType&&e(a)}},he=function(e){var t=y.mutationObserver;return t?new window[t](e):null},fe=function(e){var t=document.body,n=document.documentElement;if(null==e)return n&&n.scrollTop||t&&t.scrollTop||0;t&&(t.scrollTop=e),n&&(n.scrollTop=e)},pe=function(e){var t=document.body,n=document.documentElement;if(null==e)return n&&n.scrollLeft||t&&t.scrollLeft||0;t&&(t.scrollLeft=e),n&&(n.scrollLeft=e)},ye=function(e){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)})(e)},ve=function(){return/^textarea|input|select$/i.test(document.activeElement.tagName)},me=function(){return!!i},ge=function(){return be},be=-1;["auxclick","click","contextmenu","dblclick","focus","keydown","keypress","keyup","mousedown","mouseup","reset","submit","touchend","touchstart"].forEach((function(e){ee(document,e,(function(e){i=e,be=Date.now(),setTimeout((function(){i===e&&(i=void 0)}),0)}),!y.passiveSupported||{capture:!0,passive:!0})}))},(e,t,n)=>{n.r(t),n.d(t,{assign:()=>i.default,cast:()=>m,castDeep:()=>b,clone:()=>c,eachDeep:()=>W,eachLeaf:()=>H,equalsDeep:()=>L,except:()=>w,exists:()=>v,filter:()=>S,getDeep:()=>d,identityFunc:()=>u,indexOf:()=>U,isArray:()=>C,isBasicType:()=>I,isEmpty:()=>B,isFunction:()=>j,isObject:()=>D,isRegExp:()=>M,isSubsetDeep:()=>F,keys:()=>N,legacyShouldDeleteFromMerge:()=>l,merge:()=>a,mergeOne:()=>s,only:()=>_,pick:()=>V,select:()=>O,setAndPreserveUndefined:()=>f,setDeep:()=>h,sort:()=>T,unsetDeep:()=>y,values:()=>P});var i=n(7),r=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},o=Array.prototype.slice,a=function(e){if(0==(arguments.length<=1?0:arguments.length-1))return e;for(var t=0;t<(arguments.length<=1?0:arguments.length-1);t++)s(e,t+1<1||arguments.length<=t+1?void 0:arguments[t+1]);return e},s=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;if(C(n)){C(t)||(t=[]);for(var a=0;a<n.length;a++){var s=n[a];null==t[a]&&null!=s&&(C(s)?t[a]=[]:D(s)&&(t[a]={}));var c=e(t[a],s,i);o(n,a,c)?delete t[a]:t[a]=c}return i(t)}if(D(n)){for(var d in n)if(r(n,d)&&(r(t,d)||null==t[d])){var h=n[d];C(h)?(C(t[d])||(t[d]=[]),e(t[d],h,i),t[d]=i(t[d])):D(h)?(D(t[d])||(t[d]={}),e(t[d],h,i),t[d]=i(t[d])):null==t?(t={},o(n,d,h)||(t[d]=i(h))):o(n,d,h)?delete t[d]:t[d]=i(h)}return i(t)}return i(n)},u=function(e){return e},l=function(e,t,n){return null==n},c=function(e,t){return C(e)?s([],e,t):s({},e,t)},d=function(e,t,n){t="string"==typeof t?t.split("."):o.call(t);for(var i,a=e;null!=e&&t.length;){var s=t.shift();void 0!==e[s]&&(D(e[s])||C(e[s]))||!n||(0===s?(e=a[i]=[])[s]={}:e[s]={}),a=e,i=s,e=r(e,s)?e[s]:void 0}return e},h=function(e,t,n){return p(e,t,n,!0)},f=function(e,t,n){return p(e,t,n,!1)},p=function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=(t="string"==typeof t?t.split("."):o.call(t)).pop();null!=(e=d(e,t,!0))&&(D(e)||C(e))&&null!=r&&(i&&null==n?delete e[r]:e[r]=n)},y=function(e,t){return h(e,t)},v=function(e,t){return void 0!==d(e,t)},m=function(e){return null==e?e:D(e)||C(e)?b(e):g("".concat(e),e)},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return/^-?[1-9]\d*?$/.test(e)?parseInt(e,10):"0"===e||"-0"===e?0:/^-?\d*\.\d+$/.test(e)?parseFloat(e):!!/^true$/i.test(e)||!/^false$/i.test(e)&&t},b=function(e){return s(e,e,(function(e){return"string"==typeof e?g(e):e}),(function(){return!1}))},_=function(e,t){for(var n={},i={},r=0;r<t.length;r++)i[t[r]]=!0;for(var o in e)i[o]&&(n[o]=e[o]);return n},w=function(e,t){for(var n={},i={},r=0;r<t.length;r++)i[t[r]]=!0;for(var o in e)i[o]||(n[o]=e[o]);return n},O=function(e,t){for(var n=[],i="function"==typeof t,r=i?t:null,o=0;o<e.length;o++){var a=e[o];if(i)r(a)&&n.push(a);else{var s=!0;for(var u in t){var l=t[u];if(l instanceof Array){if(!a[u]||a[u]<l[0]||a[u]>l[1]){s=!1;break}}else if(l instanceof RegExp){if(!l.test(a[u])){s=!1;break}}else if(l instanceof k){for(var c=!1,d=0;d<l.values.length;d++){var h=l.values[d];if(a[u]===h){c=!0;break}}if(!c){s=!1;break}}else if("function"==typeof l){if(null==a[u]||!l(a[u])){s=!1;break}}else if(a[u]!==l){s=!1;break}}s&&n.push(a)}}return n},k=function(e){var t=this;return t.values=e,t},P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new k(t)},T=function(e,t){var n="function"==typeof t,i=n?t:null,r=o.call(e);return n?r.sort(i):r.sort((function(e,n){var i;i=t instanceof Array?c(t):t.split(/\s*,\s*/);for(var r=0;0===r&&i.length>0;){var o=i.shift().split(/\s+/),a=o[0],s=o[1];if(s="desc"===s?-1:1,e[a]<n[a]){r=-1*s;break}if(e[a]!==n[a]){r=1*s;break}r=0}return r})),r},S=function(e,t,n){for(var i=void 0===n?undefined:n,r=[],o=0;o<e.length;o++)t.call(i,e[o],o,e)&&r.push(e[o]);return r},E=/^\s*function Array()/,C=function(e){return null!=e&&e.push&&E.test(e.constructor)},A=/^\s*function Object()/,D=function(e){return null!=e&&"object"==typeof e&&A.test(e.constructor)},j=function(e){return null!=e&&"function"==typeof e},x=/^\s*function RegExp()/,M=function(e){return null!=e&&x.test(e.constructor)},R=/^string|number|boolean|function$/i,I=function(e){return null!=e&&(R.test(typeof e)||M(e))},B=function(e){return null==e||(!(!C(e)||e.length)||!!D(e)&&!Object.keys(e).length)},F=function(e,t){if(e===t)return!0;if(null!=e&&null==t||null==e&&null!=t)return!1;var n=!0;return H(e,(function(e,i){e!==d(t,i)&&(n=!1)})),n},L=function(e,t){return F(e,t)&&F(t,e)},W=function e(t,n,i,a,s){if(null==i&&(i=[]),I(t))n(t,i,a,s);else if(D(t)||C(t)){for(var u in n(t,i,a,s),t)if(r(t,u)){var l=o.call(i);l.push(u),e(t[u],n,l,t,u)}}else n(t,i,a,s)},H=function(e,t){W(e,(function(e,n,i,r){C(e)||D(e)||t(e,n,i,r)}))},V=function(e,t){for(var n={},i=0;i<t.length;i++){var r=t[i];e[r]&&(n[r]=e[r])}return n},U=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},N=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)r(e,n)&&t.push(n);return t}},(e,t,n)=>{n.d(t,{default:()=>o});var i=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},r=function(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return e};const o=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(Object.assign)return Object.assign.apply(Object,[e].concat(n));for(var o=0;o<n.length;o++)r(e,n[o]);return e}},(e,t,n)=>{n.d(t,{isDocReady:()=>r,onDocReady:()=>o});var i=n(9),r=function(){return/loaded|complete/.test(document.readyState)},o=function(){var e,t;if(arguments.length>1?(e=arguments[0],t=arguments[1]):(e=1e4,t=arguments[0]),r())t();else if(top===self&&document.documentElement.doScroll){var n=function(){try{return document.documentElement.doScroll("left"),!0}catch(e){return!1}};(0,i.default)(n,t,50,e,t)}else{var o=function(){r()&&(clearTimeout(l),s(),t())},a=function(){document.addEventListener("DOMContentLoaded",o,!1),document.addEventListener("readystatechange",o,!1),window.addEventListener("load",o,!1)},s=function(){document.removeEventListener("DOMContentLoaded",o,!1),document.removeEventListener("readystatechange",o,!1),window.removeEventListener("load",o,!1)},u=function(){s(),t()},l=setTimeout(u,e);a()}}},(e,t,n)=>{n.d(t,{default:()=>i});const i=function(e,t,n,i,r){var o=null,a=(new Date).getTime();o=setTimeout((function s(){(new Date).getTime()-a>i?"function"==typeof r&&r():e()?t():(clearTimeout(o),o=setTimeout(s,n))}),1)}},(e,t,n)=>{n.d(t,{default:()=>i});const i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window;if(/loaded|complete/.test(n.readyState))setTimeout(e,0);else{var r=function(){i.removeEventListener("load",o,!1)},o=function(){clearTimeout(a),r(),e()};i.addEventListener("load",o,!1);var a=setTimeout((function(){r(),e()}),t)}}},(e,t,n)=>{n.d(t,{cachedDetect:()=>U});var i,r=n(3),o=n(4),a=navigator.userAgent,s=/(webkit)[ /]([^\s]+)/i,u=/OPR\/([^\s]+)/i,l=/(edge)\/(\d+(?:\.\d+)?)/i,c=/(mozilla)(?:.*? rv:([^\s)]+))?/i,d=/(android) ([^;]+)/i,h=/(iphone)/i,f=/(ipad)/i,p=/(Windows Phone OS (\d+(?:\.\d+)?))/,y=/OS (\d+)_(\d+)/i,v=/(playstation 3)/i,m=/BlackBerry|BB10/i,g=/(firefox)/i,b=/Mobile VR/i,_=/Version\/([^\s]+)/i,w=function(){return(k()[1]||"webkit").toLowerCase()},O=function(){return k()[2]},k=function(){var e;return(e=a.match(l))||(e=a.match(s))||(e=a.match(u))?e:e?(null!=document.documentMode&&(e[2]=document.documentMode),e):(e=a.match(c))||[]},P=function(){var e=a.match(d);return null!=e&&{version:e[2]}},T=function(){return h.test(a)},S=function(){return R()>0||P()},E=function(){try{var e=matchMedia("(hover:hover)");if("not all"!==e.media)return e.matches}catch(e){}return!S()},C=function(){return m.test(a)},A=function(){return"MacIntel"===navigator.platform&&navigator.userAgent.indexOf("Mac")>=0&&navigator.maxTouchPoints>1||f.test(a)},D=function(){return s.test(a)&&!/chrome/i.test(a)&&!A()&&!T()},j=function(){return!(!/Chrome/.test(a)||!/Google Inc/.test(navigator.vendor))&&{version:x()}},x=function(){var e=a.match(/\bChrome\/([^\s]+)/);return e&&e[1]},M=function(){return u.test(a)},R=function(){var e=a.match(y),t=a.match(_);return null!=e?parseFloat("".concat(e[1],".").concat(e[2])):null!=t&&t[1]&&A()?parseFloat(t[1]):0},I=function(){return l.test(a)},B=function(){return g.test(a)},F=function(){var e=document.createElement("video"),t=!1;try{if(e.canPlayType){var n='video/mp4; codecs="avc1.42E01E';(t={}).h264=!!e.canPlayType("".concat(n,'"'))||!!e.canPlayType("".concat(n,', mp4a.40.2"')),t.webm=!!e.canPlayType('video/webm; codecs="vp9, vorbis"'),t.nativeHls=!!e.canPlayType("application/vnd.apple.mpegURL")}}catch(e){t={ogg:!1,h264:!1,webm:!1,nativeHls:!1}}return t},L=function(){try{return"localStorage"in o.default&&null!=o.default.localStorage}catch(e){return!1}},W=["WebKit","Moz","O","Ms",""],H=function(){for(var e=0;e<W.length;e++){var t="".concat(W[e],"MutationObserver");if(o.default[t])return t}return null},V=function(){if(null!=i)return i;try{var e=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("test",null,e)}catch(e){i=!1}return i},U=function(){return r.default._detectCache||(r.default._detectCache=N()),r.default._detectCache},N=function(){var e,t,n,i,r,s,u,l,c,d,h,f,y={browser:{version:O()},edge:I(),firefox:B(),gearvr:b.test(a),android:P(),oldandroid:P()&&parseFloat(P().version)<4.1,iphone:T(),ipad:A(),blackberry:C(),safari:D(),chrome:j(),opera:M(),winphone:{version:p.test(a)[2]},ios:{version:R()},windows:/win/i.test(navigator.platform),mac:/mac/i.test(navigator.platform),linux:/linux/i.test(navigator.platform),retina:null!=o.default.devicePixelRatio&&o.default.devicePixelRatio>1,hoverIsNatural:E(),touchScreen:S(),ps3:v.test(a),video:F(),mediaSource:o.default.MediaSource&&o.default.MediaSource.isTypeSupported("".concat('video/mp4; codecs="avc1.42E01E',', mp4a.40.2"')),nativeHls:(T()||A()||D())&&F().nativeHls,localstorage:L(),json:!(!o.default.JSON||"function"!=typeof JSON.parse),backgroundSize:(f=document.createElement("div"),""===f.style.backgroundSize||""===f.style.webkitBackgroundSize||""===f.style.mozBackgroundSize||""===f.style.oBackgroundSize),fullscreenEnabled:document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled,vulcanSupport:(h=/webkit|mozilla|edge/.test(w()),Boolean(!T()&&!A()&&!P()&&!C()&&h&&F().h264&&Object.defineProperties)),mutationObserver:H(),callingPlayRequiresEventContext:R()>0||P()||D(),passiveSupported:V(),webp:(e=j(),t=B(),n=I(),i=M(),r=e&&O()>=32,s=e&&O()>=75&&P(),u=t&&O()>=65,l=t&&O()>=67&&P(),c=n&&O()>=18,d=i&&O()>=19,r||s||u||l||c||d)};return y.browser[w()]=!0,y}},(e,t,n)=>{n.d(t,{LOG_LEVELS:()=>s,wlog:()=>v});var i=n(3),r=n(13);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s={ERROR:0,WARNING:1,NOTICE:2,INFO:3,DEBUG:4,error:0,warning:1,notice:2,info:3,debug:4},u=function(){},l=function(e){var t=this;null==e&&(e={});return t.error=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(0,n)},t.warn=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(1,n)},t.notice=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(1,n)},t.info=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(3,n)},t.debug=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(4,n)},t.ctx=e,t.ctx.initializedAt||t.reset(),t},c=l.prototype;c.reset=function(){this.ctx.level=0,this.ctx.grep=null,this.ctx.grepv=null,this.ctx.first1000LogLines=[],this.ctx.last1000LogLines=[],this.ctx.initializedAt=(new Date).getTime()},c.setLevel=function(e){var t=this.logFunc(3);null!=s[e]?(this.ctx.level=s[e],t('Log level set to "'.concat(e,'" (').concat(s[e],")"))):t('Unknown log level "'.concat(e,'"'))},c.setGrep=function(e){this.ctx.grep=e},c.setGrepv=function(e){this.ctx.grepv=e},c.first1000LogLines=function(){return this.ctx.first1000LogLines},c.last1000LogLines=function(){return this.ctx.last1000LogLines},c.matchedGrep=function(e){var t=!1;if(this.ctx.grep||this.ctx.grepv){for(var n=[],i=0;i<e.length;i++)try{var r=e[i];n.push(r.toString&&r.toString())}catch(e){n.push("")}var o=n.join(" "),a=!this.ctx.grep||o.match(this.ctx.grep),s=!this.ctx.grepv||!o.match(this.ctx.grepv);t=a&&s}else t=!0;return t},c.now=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now().toFixed(3):Date.now?Date.now()-this.ctx.initializedAt:(new Date).getTime()-this.ctx.initializedAt},c.messagesToLogLine=function(e,t,n){var i,r=[e,t];r=r.concat(n);try{(i=r.join(" ")||"").length>200&&(i=i.slice(0,200))}catch(e){i="could not serialize"}return i},c.persistLine=function(e){this.ctx.first1000LogLines.length<1e3?this.ctx.first1000LogLines.push(e):(this.ctx.last1000LogLines.length>=1e3&&this.ctx.last1000LogLines.shift(),this.ctx.last1000LogLines.push(e))},c.log=function(e,t){var n,i=e<=this.ctx.level,a=e<4,s=(i||a)&&this.matchedGrep(t);if(0===e&&(0,r.globalTrigger)("problem",{type:"error-logged",data:{messages:t}}),s&&(i||a)&&(n=this.now()),a&&s){var u=this.messagesToLogLine(e,n,t);this.persistLine(u)}if(i&&s){var l,c=this.logFunc(e);1===t.length&&(l=t[0])instanceof Error?(c(l.message),l.stack&&c(l.stack)):c.apply(void 0,o(t))}};var d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error.apply(console,t)},h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn.apply(console,t)},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.info.apply(console,t)},p=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug.apply(console,t)},y=function(e){console.log.apply(console,e)};c.logFunc=function(e){return null==e&&(e=this.level),console?(0===e?t=d:1===e?t=h:3===e?t=f:4===e&&(t=p),t||(t=y),"function"!=typeof t&&(this.noConsoleLog=!0,t=u),t):u;var t},c.maybePrefix=function(e,t){if(e){if("function"==typeof e)try{e=e()}catch(t){e='prefix err "'.concat(t.message,'"')}return e instanceof Array?e.concat(t):[e].concat(t)}return t},c.getPrefixedFunctions=function(e){var t=this;return{log:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(0,t.maybePrefix(e,i))},error:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(0,t.maybePrefix(e,i))},warn:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(1,t.maybePrefix(e,i))},notice:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(1,t.maybePrefix(e,i))},info:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(3,t.maybePrefix(e,i))},debug:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(4,t.maybePrefix(e,i))}}},i.default&&null==i.default.wlogCtx&&(i.default.wlogCtx={});var v=new l(i.default.wlogCtx)},(e,t,n)=>{n.d(t,{globalBind:()=>r,globalOn:()=>o,globalTrigger:()=>a});var i=n(3);(0,n(14).makeWbindable)(i.default);var r=i.default.bind.bind(i.default),o=i.default.on.bind(i.default),a=(i.default.off.bind(i.default),i.default.rebind.bind(i.default),i.default.trigger.bind(i.default));i.default.unbind.bind(i.default)},(e,t,n)=>{n.d(t,{makeWbindable:()=>o});var i=n(3),r=n(15);i.default.bindable||(i.default.bindable={bind:function(e,t){return this.specialBind&&!0===this.specialBind.apply(this,arguments)?this:t?(r.bind.call(this,e,t),this):void(i.default.warn&&i.default.warn(this.constructor.name,"bind","falsey value passed in as callback:",t))},unbind:function(e,t){return this.specialUnbind&&!0===this.specialUnbind.apply(this,arguments)||(t?r.unbind.call(this,e,t):this._bindings&&(this._bindings[e]=[]),this._bindings&&this._bindings[e]&&!this._bindings[e].length&&(this._bindings[e]=null,delete this._bindings[e])),this},on:function(e,t){var n=this.specialBind&&this.specialBind.apply(this,arguments);return"function"==typeof n?n:r.bind.call(this,e,t)},off:function(e,t){var n=this.specialUnbind&&this.specialUnbind.apply(this,arguments);return"function"==typeof n?n:r.unbind.call(this,e,t)},rebind:function(e,t){return this.unbind(e,t),this.bind(e,t),this},trigger:function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(t=r.trigger).call.apply(t,[this,e].concat(i)),this},bindNamed:function(){return r.bindNamed.apply(this,arguments)},unbindNamed:function(){return r.unbindNamed.apply(this,arguments)},unbindAllInNamespace:function(){return r.unbindAllInNamespace.apply(this,arguments)}});var o=function(e){for(var t in i.default.bindable){var n=i.default.bindable[t];e[t]||(e[t]=n)}};i.default.bindable},(e,t,n)=>{n.d(t,{bind:()=>u,bindNamed:()=>p,bindify:()=>g,trigger:()=>d,unbind:()=>l,unbindAllInNamespace:()=>v,unbindNamed:()=>y});var i=n(3),r=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=Array.prototype.slice,u=function(e,t){var n=this;return n._bindings||(n._bindings={}),n._bindings[e]||(n._bindings[e]=[]),n._bindings[e].push(t),function(){n.unbind(e,t)}},l=function(e,t){if(!this._bindings)return this;if(!this._bindings[e])return this;for(var n=[],i=0;i<this._bindings[e].length;i++){var r=this._bindings[e][i];r!==t&&n.push(r)}this._bindings[e]=n},c=function(e,t){return this.unbind(e,t),this.bind(e,t),{event:e,fn:t}},d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this._bindings&&null!=this._bindings.all&&h.apply(this,["all",e].concat(n)),h.apply(this,[e].concat(n))},h=function(e){if(!this._bindings)return this;if(!this._bindings[e])return this;for(var t,n=s.call(arguments,1),r=o(this._bindings[e]),a=0;a<r.length;a++){var u=r[a];try{var l=u.apply(this,n);l===this.unbind&&(null==t&&(t=[]),t.push({event:e,fn:u}))}catch(e){if(this._throwTriggerErrors)throw e;i.default.error&&i.default.error(e)}}if(t)for(var c=0;c<t.length;c++){var d=t[c];this.unbind(d.event,d.fn)}return this},f=function(e,t){null==e._namedBindings&&(e._namedBindings={}),null==e._namedBindings[t]&&(e._namedBindings[t]={})},p=function(e,t,n,i){return this.unbindNamed(e,t),function(e,t,n,i,r){f(e,t),e._namedBindings[t][n]={event:i,fn:r}}(this,e,t,n,i),this.bind(n,i),function(){this.unbindNamed(e,t)}},y=function(e,t){f(this,e);var n=function(e,t,n){return f(e,t),e._namedBindings[t][n]}(this,e,t);if(n){var i=n.event,r=n.fn;this.unbind(i,r)}var o=this._namedBindings;return delete o[e][t],m(o[e])&&delete o[e],this},v=function(e){var t=this._namedBindings&&this._namedBindings[e];if(null==t)return this;for(var n in t)r(t,n)&&this.unbindNamed(e,n)},m=function(e){for(var t in e)if(r(e,t))return!1;return!0},g=function(e){return e.bind=u,e.unbind=l,e.on=u,e.off=l,e.rebind=c,e.trigger=d,e.bindNamed=p,e.unbindNamed=y,e.unbindAllInNamespace=v,e};g(function(){}.prototype)},(e,t,n)=>{var i;n.d(t,{elemOffset:()=>o,elemZoom:()=>a,isBoxModel:()=>r});var r=function(){if(null!=i)return i;var e=document.createElement("div");return e.style.paddingLeft=e.style.width="1px",document.body.appendChild(e),i=2===e.offsetWidth,document.body.removeChild(e),i},o=function(e){var t,n,i=document.body,o=document.defaultView,s=document.documentElement,u=e.getBoundingClientRect(),l=s.clientTop||i.clientTop||0,c=s.clientLeft||i.clientLeft||0;t=o&&null!=o.pageYOffset?o.pageYOffset:r()&&s&&null!=s.scrollTop?s.scrollTop:i.scrollTop,n=o&&null!=o.pageXOffset?o.pageXOffset:r()&&s&&null!=s.scrollLeft?s.scrollLeft:i.scrollLeft;var d=a(e);return{height:u.height*d,top:u.top*d+t-l,left:u.left*d+n-c,width:u.width*d,zoom:d}},a=function e(t){return t&&t!==document.documentElement?e(t.parentElement)*(getComputedStyle(t).zoom||1):1}},(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{execScriptTags:()=>execScriptTags,getScriptTags:()=>getScriptTags,removeScriptTags:()=>removeScriptTags});var utilities_script_utils_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(18),getScriptTags=function(e){return e.match(/<script.*?src[^>]*>\s*<\/script>|<script.*?>[\s\S]+?<\/script>/gi)||[]},scriptTagsToRunScriptsInput=function scriptTagsToRunScriptsInput(scriptTags){if(!scriptTags)return[];scriptTags instanceof Array||(scriptTags=getScriptTags(scriptTags));for(var hashes=[],i=0;i<scriptTags.length;i++){var scriptTag=scriptTags[i],hash={},matches=scriptTag.match(/<script.*?>/i);matches&&(matches=matches[0].match(/src="([^"]+)"/i),matches&&(hash.src=matches[1],hash.async=/async/i.test(scriptTag.replace(hash.src,"")))),matches||(matches=scriptTag.match(/<script>([\s\S]+?)<\/script>/i),matches&&function(){var src=matches[1];hash.fn=function(){return eval(src)}}()),hashes.push(hash)}return hashes},execScriptTags=function(e,t){if(!e)return null;var n=scriptTagsToRunScriptsInput(e);return(0,utilities_script_utils_js__WEBPACK_IMPORTED_MODULE_0__.runScripts)(n).then(t)},removeScriptTags=function(e){return e.replace(/<script.*?src[^>]*>\s*<\/script>|<script>[\s\S]+?<\/script>/g,"")}},(e,t,n)=>{n.d(t,{findScriptInDomBySrc:()=>l,removeScriptsBySrc:()=>c,runScript:()=>d,runScripts:()=>h});var i=n(12),r=n(6),o=n(19);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var r=n[i],o=r.getAttribute("src")||"";if(t.ignoreQueryParams){var a=o.split("?"),s=a[0];o=s}if(!t.scriptRegex&&t.ignoreProtocol&&(o=o.replace(/^https?:/,""),e=e.replace(/^https?:/,"")),t.scriptRegex&&t.scriptRegex.test(o))return r;if(t.testStartsWith&&0===o.indexOf(e))return r;if(o===e)return r}return null},c=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=l(e,n);)if(t&&(t.onload=t.onreadystatechange=t.onerror=null,t.parentNode&&(t.parentNode.removeChild,1)))try{t.parentNode.removeChild(t)}catch(e){setTimeout((function(){throw e}),0)}},d=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==i&&(i=8e3),null==r&&(r={}),new Promise((function(a){!0===r.once&&(t=l(e))&&(n=!0),r.once&&n?t.readyState&&!/loaded|complete/.test(t.readyState)||setTimeout((function(){a()}),1):(0,o.default)(e,i).then(a).catch((function(e){a(e),setTimeout((function(){console.error(e)}),1)}))}))},h=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=n[0]instanceof Array?n[0]:n,e=f(e);var o=[],a=[],u=[];return e.forEach((function(e){var t=s({},e),n=new Promise((function(e){t.resolve=e}));t.promise=n,u.push(t.promise),e.async?o.push(t):a.push(t)})),a.reduce((function(e,t){if(t.fn)try{t.fn()}catch(e){i.wlog.error(e)}finally{t.resolve()}else t.src&&d(t.src,null,t).then(t.resolve);return e.then(t.promise)}),Promise.resolve()),setTimeout((function(){o.forEach((function(e){if(e.fn)try{e.fn()}catch(e){i.wlog.error(e)}finally{e.resolve()}else e.src&&d(e.src,null,e).then(e.resolve)}))}),1),Promise.all(u)},f=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];"string"==typeof i?t.push({src:i,async:!1}):(0,r.isObject)(i)?t.push(i):t.push({fn:i,async:!1})}return t}},(e,t,n)=>{n.d(t,{default:()=>r,runScript:()=>i});var i=function(e,t){return new Promise((function(n,i){var r;null==t&&(t=8e3),(r=document.createElement("script")).src=e,r.async=!0,r.type="text/javascript";var o=null,a=!1,s=function(){r.onerror=r.onreadystatechange=r.onload=null,clearTimeout(o),clearTimeout(l),o=setTimeout((function(){r&&r.parentNode&&r.parentNode.removeChild(r)}),500)},u=function(){var e=r.readyState;a||e&&!/loaded|complete/.test(e)||(a=!0,setTimeout((function(){n(),s()}),1))},l=setTimeout((function(){a=!0,s(),i(new Error("timeout"))}),t);r.onerror=function(e){a=!0,s(),i(e)},r.onreadystatechange=u,r.onload=u,(document.body||document.head).appendChild(r)}))};const r=i},(e,t,n)=>{n.d(t,{seqId:()=>r});var i=n(3),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=i.default._sequenceVal||1,r="".concat(e).concat(n).concat(t);return i.default._sequenceVal=n+1,r}},,(e,t,n)=>{n.d(t,{interFontFamily:()=>i,interNumbersSemiBold:()=>r});var i="WistiaPlayerInter, Helvetica, Sans-Serif",r="WistiaPlayerInterNumbersSemiBold, Helvetica, Sans-Serif"},,(e,t,n)=>{function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{standardSvgAttrs:()=>a});var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,i=e.styleOverride,o=void 0===i?{}:i,a=e.ariaHidden,s=void 0!==a&&a;return{x:"0px",y:"0px",viewBox:"0 0 ".concat(t," ").concat(n),"enable-background":"new 0 0 ".concat(t," ").concat(n),"aria-hidden":"".concat(!!s),style:r({fill:"#ffffff",height:"100%",left:0,strokeWidth:0,top:0,width:"100%"},o)}}},,(e,t,n)=>{n.d(t,{isMouseDown:()=>l,isMouseDownRecently:()=>c});var i=n(3),r=n(5),o=(0,n(11).cachedDetect)();if(null==i.default._isMouseDown){i.default._isMouseDown=!1;var a=function(e){i.default._isMouseDown=!0,i.default._lastMouseDownAt=Date.now(),setTimeout((function(){e.defaultPrevented&&(i.default._isMouseDown=!1)}),0)},s=function(){i.default._lastMouseUpAt=Date.now(),setTimeout((function(){i.default._isMouseDown=!1}),0)};o.touchScreen?((0,r.elemBind)(document,"touchstart",a,!0),(0,r.elemBind)(document,"touchend",(function(){i.default._lastMouseUpAt=Date.now(),setTimeout((function(){i.default._isMouseDown=!1}),0)}),!0)):((0,r.elemBind)(document,"mousedown",a,!0),(0,r.elemBind)(document,"mouseup",s,!0));var u=o.windows?s:a;(0,r.elemBind)(document,"contextmenu",u,!0)}var l=function(){return null!=i.default._mouseDownForceReturnVal?i.default._mouseDownForceReturnVal:i.default._isMouseDown},c=function(){return null!=i.default._mouseDownForceReturnVal?i.default._mouseDownForceReturnVal:(e=500,Math.max(i.default._lastMouseDownAt||0,(i.default._lastMouseUpAt||0)-1)>Date.now()-e);var e}},(e,t,n)=>{n.d(t,{defineTranslations:()=>h,getDefaultTranslation:()=>m,getLanguage:()=>d,getTranslation:()=>y});var i=n(3),r=n(6),o=n(28),a=i.default.languages=i.default.languages||{},s=i.default.translations=i.default.translations||{};i.default._translationPromises||(i.default._translationPromises={});var u,l=["ar","de","es","en-US","fr","it","ja","ko","pt","ru","zh-CN"],c=function(e,t,n){a[e]={code:e,text:p(t)},n&&h(e,n)},d=function(e){return a[e]},h=function(e,t){if(null==a[e])throw new Error("Must define a language with code ".concat(e," before defining its translations."));var n=s[e];n?(0,r.merge)(n,t):s[e]=(0,r.clone)(t)},f=i.default.cachedDecodings=i.default.cachedDecodings||{},p=function(e){return u||(u=document.createElement("textarea")),null!=f[e]?f[e]:(u.innerHTML=e,f[e]=u.value,u.value)},y=function(e,t){var n;return n=s[e]&&s[e][t]?s[e][t]:s["en-US"][t],p(function(e){return null==e?"?":e}(n))},v=function(){return navigator.languages||navigator.language?i.default.languagePreference=navigator.languages||[navigator.language]:i.default.languagePreference=["en-US"],i.default.languagePreference},m=function(){var e=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:v)().reduce((function(e,t){var n=-1!==l.indexOf(t),i=t.split("-")[0],r=-1!==l.indexOf(i);return n?e.push(t):r&&e.push(i),e}),[])}()[0];return e&&"en"!==e||(e="en-US"),s[e]?Promise.resolve({code:e,translations:s[e]}):function(e){if(i.default._translationPromises[e])return i.default._translationPromises[e];var t=new Promise((function(t,n){(0,o.dynamicImport)(["translations/".concat(e,".js")]).then((function(n){var i=n.languageCode,r=n.languageLabel,o=n.translations;c(i,r,o),t({code:e,translations:o[e]})})).catch(n)}));return i.default._translationPromises[e]=t,t}(e)};c("en-US","English"),h("en-US",{PLAY:"Play",PLAY_BUTTON_LIVE_NOT_STARTED:"Livestream has not started",PLAY_BUTTON_TITLE_WHEN_NOT_PLAYING:"Play Video",PLAY_BUTTON_TITLE_WHEN_PLAYING:"Pause",REWATCH:"Rewatch",SKIP:"Skip"})},(e,t,n)=>{n.d(t,{dynamicImport:()=>a});var i=n(29);function r(){r=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),s=new S(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h={};function f(){}function p(){}function y(){}var v={};l(v,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(E([])));g&&g!==t&&n.call(g,a)&&(v=g);var b=y.prototype=f.prototype=Object.create(v);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(i,o,a,s){var u=d(e[i],e,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function O(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return C()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var u=d(e,t,n);if("normal"===u.type){if(i=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i="completed",n.method="throw",n.arg=u.arg)}}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=y,i(b,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:p,configurable:!0}),p.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},_(w.prototype),l(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(b),l(b,u,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function o(e,t,n,i,r,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(i,r)}var a=function(){var e,t=(e=r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",import("".concat((0,i.eV1Protocol)(),"//").concat((0,i.eV1HostWithPort)(),"/assets/external/").concat(t)));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(i,r){var a=e.apply(t,n);function s(e){o(a,i,r,s,u,"next",e)}function u(e){o(a,i,r,s,u,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}()},(e,t,n)=>{n.r(t),n.d(t,{VALID_PRODUCTION_HOSTS:()=>S,appHost:()=>v,cdnFastWistiaCanaryHost:()=>b,cdnFastWistiaComHost:()=>m,cdnFastWistiaNetHost:()=>g,deliveryHost:()=>p,eV1Host:()=>w,eV1HostWithPort:()=>O,eV1Protocol:()=>k,eV1Url:()=>_,forceValidFastWistiaHost:()=>C,mediaDataHost:()=>P,metricsHost:()=>T,prodAkamaiHost:()=>y});var i=n(4),r=n(30),o=n(31),a=(0,o.appHostname)("app"),s=(0,o.appHostname)("fast"),u="embed.wistia.com",l="embed-ssl.wistia.com",c="embed-a.wistia.com",d="embedwistia-a.akamaihd.net",h="undefined"!=typeof window&&i.default===window&&i.default.location?i.default.location.protocol:"https:",f=function(e,t,n){return"https:"===e?t:n},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return f(e,l,u)},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return f(e,d,c)},v=function(){return a},m=function(e){return e||s},g=function(){return"fast.wistia.net"},b=function(){return"fast-canary.wistia.net"},_=function(){for(var e=document.getElementsByTagName("script"),t=0;t<e.length;t++){var n=e[t];if(n.src){var i=new r.Url(n.src),o=/\/assets\/external\/E-v1(-with-vulcan-v2)?\.js$/.test(i.rawPath),a=i.host===m()||i.host===g()||i.host===b(),s="https:"===location.protocol&&"https:"===i.protocol,u=""===i.protocol||null==i.protocol,l=s||u||"http:"===location.protocol,c=!n.readyState||/loaded|complete/.test(n.readyState);if(o&&a&&l&&c)return i}}return new r.Url("".concat((0,r.proto)(),"//").concat(g(),"/E-v1.js"))}(),w=function(){return _.host},O=function(){return _.port?"".concat(w(),":").concat(_.port):w()},k=function(){return _.protocol},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.embedHost?C(e.embedHost):O()},T=function(){return"pipedream.wistia.com"},S=["wistia.net","wistia.com","wistia.st"],E=new RegExp("(".concat(S.map((function(e){return"\\.".concat(e.replace(".","\\."))})).join("|"),")$")),C=function(e){return e&&E.test(e)?e:O()}},(e,t,n)=>{n.r(t),n.d(t,{Url:()=>p,brack:()=>d,createUrl:()=>v,debrack:()=>h,joinPath:()=>c,objectToQueryParams:()=>u,parseUrl:()=>m,proto:()=>o,queryParamsToObject:()=>a,splitPath:()=>l,urlComponentToObject:()=>s});var i=n(6),r=n(12),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.href;return/^http:\/\//.test(e)?"http:":"https:"},a=function(e){var t={};if(!e)return t;for(var n=e.split("&"),o=0;o<n.length;o++){var a=n[o].split("="),u=a[0],l=a[1];try{u=h(decodeURIComponent(u))||""}catch(e){setTimeout((function(){r.wlog.notice(e)}),50),u=""}(0,i.cast)(u);var c=(0,i.getDeep)(t,u);if(null!=c)if((0,i.isArray)(c))c.push(s(l));else{var d=[c];d.push(s(l)),(0,i.setAndPreserveUndefined)(t,u,d)}else(0,i.setAndPreserveUndefined)(t,u,s(l))}return t},s=function(e){if(null==e)return e;var t;try{t=decodeURIComponent(e)}catch(n){setTimeout((function(){r.wlog.notice(n)}),50),t=e}return t},u=function(e){var t=[];return(0,i.eachLeaf)(e,(function(e,n){null!=e?t.push("".concat(encodeURIComponent(d(n)),"=").concat(encodeURIComponent(e))):t.push(encodeURIComponent(d(n)))})),t.join("&")},l=function(e){var t=[];if(null==e)return t;for(var n=e.split(/\/+/),i=0;i<n.length;i++){var r=n[i];null!=r&&""!==r&&t.push(r)}return t},c=function(e){return"string"==typeof e&&(e=e.split("/")),null==e?"":"/".concat(e.join("/"))},d=function(e){for(var t=e[0],n=1;n<e.length;n++)t+="[".concat(e[n],"]");return t},h=function(e){return e.match(/([\w\-_]+)/g)},f=["protocol","host","port","params","path"],p=function(e){var t=this;return t.params={},t.path=[],t.host="","object"==typeof e?t.fromOptions(e):e&&t.fromRaw(e),t},y=p.prototype;y.fromOptions=function(e){for(var t=0;t<f.length;t++){var n=f[t];null!=e[n]&&(this[n]=e[n])}return this},y.fromRaw=function(e){var t;return this.rawUrl=e,(t=e.match(/^((?:https?:)|(?:file:)|(?:ftp:))?\/\//))&&(this.protocol=t[1]||void 0),(t=e.match(/\/\/([^:?#/]*)/))&&(this.host=t[1]||void 0),(t=e.match(/\/\/.*?(\/[^?#$]+)/)||e.match(/(^\/[^/][^?#$]+)/))&&this.setPath(t[1]),(t=e.match(/:(\d+)/))&&(this.port=parseInt(t[1],10)),(t=e.match(/\?([^#]+)/))&&(this.rawParams=t[1],this.params=a(this.rawParams)),(t=e.match(/#(.*)$/))&&(this.anchor=t[1]),this},y.clone=function(){return new p({protocol:this.protocol,host:this.host,port:this.port,path:(0,i.clone)(this.path),params:(0,i.clone)(this.params),anchor:this.anchor})},y.ext=function(e){if(null!=e){var t=this.ext(),n=this.path.length-1,i=new RegExp("\\.".concat(t),"g");return t&&(this.path[n]="".concat(this.path[n].replace(i,""))),this.path[n]="".concat(this.path[n],".").concat(e)}var r=this.path[this.path.length-1].match(/\.(.*)$/);return null!=r&&r[1]||null},y.isRelative=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,t=this.protocol,n=this.host;return!(null!=t&&""!==t&&t!==e.protocol||n&&n!==e.hostname)},y.toString=function(){return this.isRelative()?this.relative():this.absolute()},y.absolute=function(){var e="";null!=this.protocol&&(e=this.protocol);var t="";return null!=this.port&&(t=":".concat(this.port)),"".concat(e,"//").concat(this.host||location.host).concat(t).concat(this.relative())},y.relative=function(){var e="";this.path.length>0&&(e=c(this.path),this._hasTrailingSlash&&(e+="/"));var t="?".concat(u(this.params));return 1===t.length&&(t=""),"".concat(e).concat(t).concat(this.relativeAnchor())},y.authority=function(){var e=null!=this.port?":".concat(this.port):"";return"".concat(this.host).concat(e)},y.relativeProtocol=function(){var e="";return null!=this.port&&(e=":".concat(this.port)),"//".concat(this.host).concat(e).concat(this.relative())},y.relativeAnchor=function(){var e="";return null!=this.anchor&&(e="#".concat(this.anchor)),"".concat(e)},y.setPath=function(e){this.rawPath=e,this._hasTrailingSlash=/\/$/.test(this.rawPath),this.path=l(this.rawPath)},p.create=function(e){return new p(e)};var v=p.create;p.parse=function(e){return new p(e)};var m=p.parse},(e,t,n)=>{n.d(t,{appHostname:()=>i});var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"app";return"".concat(e,".").concat("wistia.com")}},,,,,,(e,t,n)=>{n.d(t,{cacheMediaData:()=>r,uncacheMediaData:()=>o});var i=n(3);null==i.default._remoteData&&(i.default._remoteData={});var r=function(e,t){return i.default._remoteData["media_".concat(e)]=t},o=function(e){i.default._remoteData["media_".concat(e)]=null,delete i.default._remoteData["media_".concat(e)]}},(e,t,n)=>{n.d(t,{xhrGet:()=>o,xhrPost:()=>a});n(7);var i=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},r=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return new Promise((function(a,s){var u=new(o.XMLHttpRequest||XMLHttpRequest);o.afterConstructor&&o.afterConstructor(u);try{u.addEventListener("readystatechange",(function(){if(!(u.readyState<4))if(null!=u.status&&(u.status>=200&&u.status<300||304==u.status))if(u.response&&"string"!=typeof u.response)a({data:u.response,status:u.status,statusText:u.statusText,xhr:u});else if("json"===o.dataType)try{var n=JSON.parse(u.responseText);a({data:n,status:u.status,statusText:u.statusText,xhr:u})}catch(n){var i=new Error("".concat(e," ").concat(t," - Error parsing response text: ").concat(u.responseText,"."));console.error(i.message),s(i)}else a({data:u.responseText,status:u.status,statusText:u.statusText,xhr:u});else{var r=new Error("".concat(e," ").concat(t," - Got an unsuccessful status code: ").concat(u.status,". ").concat(u.statusText));r.status=u.status,console.error(r.message),s(r)}}),!1)}catch(e){console.error(e.message),console.error(e.stack)}u.addEventListener("error",(function(){var e=new Error("XHR error");e.status=u.status,e.xhr=u,s(e)}),!1);if(u.addEventListener("timeout",(function(e){var t=new Error("XHR timeout");t.status=u.status,t.message=e&&e.message,t.xhr=u,s(e)}),!1),u.open(e,t,!0),o.withCredentials&&(u.withCredentials=!0),o.timeout&&(u.timeout=o.timeout),null!=o.dataType&&(u.responseType=o.dataType),"POST"!==e||r["content-type"]||u.setRequestHeader("content-type","application/x-www-form-urlencoded"),r)for(var l in r)i(r,l)&&u.setRequestHeader(l.toLowerCase(),r[l]);u.send(n),o.afterSend&&o.afterSend(u)}))},o=function(e,t,n){return r("GET",e,null,t,n)},a=function(e,t,n,i){return r("POST",e,t,n,i)}},(e,t,n)=>{n.d(t,{base64Decode:()=>s,base64Encode:()=>u,parentFramesLength:()=>l,poll:()=>r.default,throttle:()=>o.default,unescapeHtml:()=>a.unescapeHtml});var i=n(3),r=n(9),o=n(40),a=n(41),s=function(e){return decodeURIComponent(atob(e).split("").map((function(e){return"%".concat("00".concat(e.charCodeAt(0).toString(16)).slice(-2))})).join(""))},u=function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x".concat(t))})))},l=function(){try{return parent.frames.length}catch(e){return i.default.warn(e),1}}},(e,t,n)=>{n.d(t,{default:()=>i});const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null,r=null,o=null,a=null,s=0,u=function(){s=!1===n.leading?0:(new Date).getTime(),a=null,o=t.apply(i,r),a||(i=r=null)};return function(){var l=(new Date).getTime();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,r=arguments,c<=0||c>e?(clearTimeout(a),a=null,s=l,o=t.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(u,c)),o}}},(e,t,n)=>{n.d(t,{unescapeHtml:()=>r});var i={},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";if(t.cache){var n=i[e];if(i[e])return n}var r,o=document.createElement("div");return o.innerHTML=e.toString().replace(/</g,"<").replace(/>/g,">"),r=o.childNodes.length>0?o.childNodes[0].nodeValue:"",t.cache&&(i[e]=r),r}},(e,t,n)=>{n.d(t,{mediaDataTransforms:()=>h});var i=n(6),r=n(30),o=n(11),a=n(43);function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var l=(0,o.cachedDetect)(),c=function(e){return e.assets&&l.webp&&(e.assets=e.assets.map((function(e){if("still_image"===e.type&&Object(e).url){var t=new r.Url(e.url);t.ext("webp"),e.url=t.absolute()}return e}))),e},d=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==n.allowOriginalAsMp4)return e;var r=e.assets.filter((function(e){return"original"===e.type}))[0];return null!=r&&null!==(t=r.metadata)&&void 0!==t&&t.served_by_media_api?((0,a.readyPublicOver400)(e.assets).length>0||(e.assets=[].concat(s(e.assets),[(0,i.assign)({},r,{display_name:"".concat(r.display_name," copy"),container:"mp4",codec:"h264",type:"mp4_video"})])),e):e},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.assign)({},e);return n=d(n,t),n=c(n)}},(e,t,n)=>{n.r(t),n.d(t,{BAKERY_HOSTS:()=>R,FAILED:()=>h,PROCESSING:()=>p,QUEUED:()=>f,READY:()=>y,channelArtworkStill:()=>A,filter:()=>m,filterOver400:()=>O,findClosestAssetByQuality:()=>E,getStillWidth:()=>M,iphone:()=>q,isBakeryUrl:()=>I,m3u8:()=>W,moveToFront:()=>Q,mp4:()=>F,nearestOutsideRange:()=>G,nonfailedPublicOver400:()=>P,numericSizeSnapped:()=>S,one:()=>g,onePublicReadyWithContainer:()=>B,original:()=>H,originalAspect:()=>N,playable:()=>V,readyPublicM3u8s:()=>w,readyPublicMp3s:()=>b,readyPublicMp4s:()=>_,readyPublicOver400:()=>k,smallestNormalMp4:()=>z,still:()=>C,stillUrl:()=>x,thumbnailAssets:()=>D,urlWithCorrectHost:()=>K,videoAspect:()=>U,webm:()=>L,withinQualityRange:()=>T});var i=n(6),r=n(30),o=n(11),a=n(29),s=n(12),u=n(31);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var d=Array.prototype.slice,h=-1,f=0,p=1,y=2,v=["select","sortFn","sortBy","unique"],m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return[];e.assets&&(e=e.assets),null==t.qualityMin&&null==t.qualityMax||(e=T(e,t.qualityMin,t.qualityMax),t=(0,i.except)(t,["qualityMin","qualityMax"]));var n=(0,i.only)(t,v),r=n.select||(0,i.except)(t,v);r&&(n.select=r);var o=n.select?(0,i.select)(e,n.select):(0,i.clone)(e);if((n.sortFn||n.sortBy)&&(o=(0,i.sort)(o,n.sortFn||n.sortBy)),n.unique){for(var a={},s=0;s<o.length;s++){var u=o[s],l=u["".concat(n.unique)]||"__undefined__";a[l]||(a[l]=u)}for(var c in o=[],a)o.push(a[c])}return o},g=function(e,t){return m(e,t)[0]||null},b=function(e){return m(e,{ext:"mp3",status:y,public:!0})},_=function(e){return m(e,{container:"mp4",status:y,public:!0})},w=function(e){return m(e,{container:"m3u8",status:y,public:!0})},O=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=null!=i.opt_vbitrate&&i.opt_vbitrate>=500&&i.opt_vbitrate<=1e5,o=null!=i.width&&i.width>400;(r||o)&&t.push(i)}return t},k=function(e){return O(m(e,{container:/mp4/,public:!0,status:y}))},P=function(e){return O(m(e,{container:/mp4/,public:!0,status:function(e){return e!==h}}))},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;return m(e,{select:function(e){var i=S(e.width,e.height);return t<=i&&i<=n}})},S=function(e,t){if(t>e){var n=e;e=t,t=n}var i=e/t,r=e*t+1;return r>=3840/i*3840?2160:r>=2560/i*2560?1440:r>=1920/i*1920?1080:r>=1280/i*1280?720:r>=960/i*960?540:r>=640/i*640?360:t},E=function(e,t){var n;n="4k"===t?2160:parseInt(t,10);var i=T(e,n,n)[0];if(i)return i;var r=G(e,n,n);if(1===r.length)return r[0];var o=U(e),a=Math.round(o*n),s=l(r,2),u=s[0],c=s[1];return Math.abs(u.width-a)<Math.abs(c.width-a)?u:c},C=function(e){var t=g(e,{type:/^still_image$/,sortBy:"created_at desc"});return t||(t=A(e)),t||(t=g(e,{container:/mp4/,sortBy:"width desc"})),t},A=function(e){return g(e,{type:/^channel_still_image$/,sortBy:"created_at desc"})},D=function(e,t){if(t.stillUrl)return[{height:null,url:t.stillUrl,width:null}];var n=C(e);if(!n)return[];var i=n.width/n.height;return[320,640,960,1280,1920,3840].map((function(t){var n=Math.round(t/i);return{height:n,url:x(e,{videoWidth:t,videoHeight:n,playButton:!1}),width:t}}))},j=(0,u.appHostname)("fast"),x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=C(e);if(n){if(n.status!==y){var o=A();return o&&o.status===y?o.url:"//".concat(j,"/assets/images/blank.gif")}var a=(t=(0,i.merge)({aspect:n.width/n.height||1,stillUrl:n.url,playButton:!1,playerColor:t.playerColor||"636155",videoWidth:n.width||640,videoHeight:n.height||360,stillSnap:!0},t)).videoWidth,s=t.videoHeight,u=new r.Url(t.stillUrl);return t.retina&&(u.params.image_play_button_size="2x",a*=2,s*=2),t.stillSnap&&(a=M({videoWidth:a,stillAssetWidth:n.width||640}),s=Math.round(a/t.aspect)),I(t.stillUrl)?("https:"===t.protocol&&(u.protocol="https:",u.host=("fast.wistia.com"===t.embedHost||t.embedHost,"embed-ssl.wistia.com")),u.params.image_crop_resized="".concat(a,"x").concat(s),(null==t.playButton||t.playButton)&&(u.params.image_play_button=1,u.params.image_play_button_color="".concat("".concat(t.playerColor).replace(/^#+/,""),"e0")),t.ext&&u.ext(t.ext),"bin"===u.ext()&&u.ext("jpg"),u.absolute()):t.stillUrl}},M=function(e){var t=[640,960,1280,1920,3840];e.stillAssetWidth<3840&&t.push(e.stillAssetWidth);for(var n=[],i=0;i<t.length;i++){var r=t[i];r<=e.stillAssetWidth&&n.push(r)}n.sort((function(e,t){return e-t}));for(var o=0;o<n.length;o++){var a=n[o];if(e.videoWidth<=a)return a}return Math.max.apply(Math,n)},R=["embed.wistia.com","embed-ssl.wistia.com",(0,u.appHostname)("embed"),(0,u.appHostname)("prime"),(0,u.appHostname)("mixergy-cdn"),"embed-a.wistia.com",(0,u.appHostname)("embed-fastly"),"embedwistia-a.akamaihd.net","embed.wistia.com","embed-ssl.wistia.com","embed-a.wistia.com","embedwistia-a.akamaihd.net","embed-fastly.wistia.com"],I=function(e){if(null==e)return!1;var t=new r.Url(e);return!!t.host&&R.join(",").indexOf(t.host)>=0},B=function(e,t,n){return n=(0,i.merge)({container:t,public:!0,status:y},n),g(e,n)},F=function(e,t){return B(e,"mp4",t)},L=function(e,t){return B(e,"webm",t)},W=function(e,t){return B(e,"m3u8",t)},H=function(e){return g(e,{type:"original"})},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.cachedDetect)();return n.video.webm&&L(e,t)||F(e,t)},U=function(e){var t=F(e)||W(e)||L(e)||H(e);return t&&t.height?t.width/t.height:640/360},N=function(e){var t=U(e),n=H(e);if(n&&n.width&&n.height){var i=n.width/n.height;return i>1&&t<1||i<1&&t>1?1/i:i}return t},q=function(e,t){if(U(e)>1)return t=(0,i.merge)({width:640},t),F(e,t)||z(e,t);var n=(0,i.merge)({width:320},t),r=(0,i.merge)({width:640},t);return F(e,n)||F(e,r)||z(e,t)},z=function(e,t){return t=(0,i.merge)({sortBy:"width asc",width:[640,1920]},t),F(e,t)},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.eV1Protocol(),n=new r.Url(e);return I(e)&&("https:"===t?(n.host=a.deliveryHost(location.protocol),n.protocol="https:"):(n.host=a.deliveryHost(location.protocol),n.protocol="http:")),n.absolute()},G=function(e,t,n){if(0===e.length)return[];for(var i,r,o=d.call(e).sort((function(e,t){return S(e.width,e.height)-S(t.width,t.height)})),a=0;a<o.length;a++){var u=o[a],l=S(u.width,u.height);if(l<t&&(i=u),l>=n){r=u;break}}var c=[];return i&&c.push(i),r&&c.push(r),0===c.length&&(s.wlog.error("nearestOutsideRange: no nearby assets found, using first in list",o[0]),c.push(o[0])),c},Q=function(e,t){if(!t)return e;for(var n=-1,i=0;i<e.length;i++){if(e[i].url===t.url){n=i;break}}return n>0&&(e.splice(n,1),e.unshift(t)),e}},,(e,t,n)=>{n.d(t,{globalEventLoop:()=>u});var i=n(12),r=n(3),o=i.wlog.getPrefixedFunctions("event_loop"),a=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._timeoutId=null,this._latency=null!=t.latency?t.latency:100,this._blurLatency=null!=t.blurLatency?t.blurLatency:2e3,this._functions={},this._paused={},window.addEventListener("blur",(function(){return e.blur()}),!1),window.addEventListener("focus",(function(){return e.focus()}),!1),this.start()},s=a.prototype;s.start=function(){var e=this;clearTimeout(this._timeoutId),this._loopFn=this._loopFn||function(){e.runFunctions(),e._timeoutId=setTimeout(e._loopFn,e._latency)},this._loopFn()},s.resync=function(){this.start()},s.resyncNextTick=function(){var e=this;setTimeout((function(){e.resync()}),0)},s.stop=function(){clearTimeout(this._timeoutId)},s.clear=function(){this._functions={}},s.runFunctions=function(){this._pausedDirty&&this.updatePaused();var e=[];for(var t in this._functions){var n=this._functions[t],i=(new Date).getTime(),r=i-n.lastRanAt;if(!n.paused&&r>=n.interval){n.lastRanAt=i;try{n.fn()===this.remove&&e.push(t)}catch(e){o.error(e)}}}for(var a=0;a<e.length;a++)this.remove(e[a])},s.add=function(e,t,n){var i=(new Date).getTime();this._functions[e]={addedAt:i,lastRanAt:-1,interval:t,fn:n};var r=n();this._functions[e]&&(this._functions[e].lastRanAt=(new Date).getTime()),this._functions[e]&&r===this.remove?delete this._functions[e]:this._pausedDirty=!0},s.remove=function(e){var t=this;this.forEachMatchingKey(e,(function(e){delete t._functions[e]}))},s.forEachMatchingKey=function(e,t){for(var n in this._functions){var i=this._functions[n];this.key1IncludesKey2(e,n)&&t(n,i)}},s.latency=function(e){if(null==e)return this._latency;this._latency=e},s.interval=function(e,t){if(null==t)return this._functions[e].interval;null==this._functions[e]?o.notice("setting interval of ",e,"to",t,"failed because",e,"is not defined"):this._functions[e].interval=t},s.pause=function(e){this._paused[e]=!0,this._pausedDirty=!0},s.unpause=function(e){this._paused[e]=!1,this._pausedDirty=!0},s.isPaused=function(e){for(var t in this.paused){if(this._paused[t]&&this.key1IncludesKey2(t,e))return!0}return!1},s.updatePaused=function(){for(var e in this._functions){this._functions[e].paused=this.isPaused(e)}this._pausedDirty=!1},s.key1IncludesKey2=function(e,t){return"function"==typeof t.indexOf&&0===t.indexOf(e)&&(t.length===e.length||"."===t.charAt(e.length))},s.blur=function(){this._blurred||(this._blurred=!0,this._savedLatency=this._latency,this._latency=this._blurLatency)},s.focus=function(){this._blurred&&(this._blurred=!1,this._latency=this._savedLatency,this.resync())},null==r.default.eventLoop&&(r.default.eventLoop=new a({latency:100,blurLatency:100}));var u=r.default.eventLoop},,(e,t,n)=>{n.d(t,{default:()=>u});var i=n(30),r=n(6),o=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},a=function(){return top!==self?document.referrer||"":location.href||""},s=/^w_([^&]+)/;const u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;t||(t=a());var u=new i.Url(t),l=u.params||{},c={};for(var d in l)if(o(l,d)){var h=d.match(n);if(h){var f=h[1];(0,r.indexOf)(e,f)>=0&&(c[f]=l[d])}}return c}},,,,,(e,t,n)=>{n.d(t,{cssResetForSelector:()=>l});var i=n(7),r={"background-attachment":"scroll","background-color":"transparent","background-image":"none","background-position":"0 0","background-repeat":"no-repeat","background-size":"100% 100%"},o={"box-sizing":"inherit","box-shadow":"none",color:"inherit",display:"block",float:"none",font:"inherit","font-family":"inherit","font-style":"normal","font-weight":"normal","font-size":"inherit","letter-spacing":0,"line-height":"inherit",margin:0,"max-height":"none","max-width":"none","min-height":0,"min-width":0,padding:0,position:"static","text-decoration":"none","text-transform":"none","text-shadow":"none",transition:"none","word-wrap":"normal","-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-user-select":"none","-webkit-font-smoothing":"antialiased"},a={border:0,"border-radius":0,outline:"none",position:"static"},s=function(e){var t=[];for(var n in e){var i=e[n];t.push("".concat(n,":").concat(i))}return t.join(";")},u="\n&{font-size:14px;}\ndiv,span,ul,li,label,fieldset,button,img,a,svg,p{".concat(s(o),"}\na{border:0;}\nh1{").concat(s((0,i.default)({},o,{"font-size":"2em"})),"}\nh2{").concat(s((0,i.default)({},o,{"font-size":"1.5em"})),"}\nh3{").concat(s((0,i.default)({},o,{"font-size":"1.17em"})),"}\np{margin:1.4em 0;}\na,span,svg{display:inline;}\nul,ol,li{").concat(s((0,i.default)({},o,{"list-style-type":"none",position:"static"})),"}\nul:before,ol:before,li:before{display:none}\nul:after,ol:after,li:after{display:none}\nlabel{").concat(s((0,i.default)({},r,{float:"none",outline:"none"})),"}\nbutton{").concat(s((0,i.default)({},r,a)),"}\nimg{").concat(s((0,i.default)({},{border:0,display:"inline-block","vertical-align":"top"},a)),"}\nbutton::-moz-focus-inner{border: 0;}\n"),l=function(e,t){return u.trim().split(/\n+/).map((function(n){return function(e,t,n){var i=n.indexOf("{"),r=n.substring(0,i),o=n.substring(i,n.length);return r.split(/,\s*/).map((function(n){return n.indexOf("&")>=0?"".concat(n.replace(/&/g,e)).concat(t).concat(o):n.indexOf("::")>=0?"".concat(e).concat(t," ").concat(n).concat(o):"".concat(e).concat(n).concat(t).concat(o)})).join("\n")}(e,t,n)})).join("\n")}},(e,t,n)=>{n.d(t,{default:()=>v});var i=n(2),r=n(11),o=n(54);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(0,r.cachedDetect)();const v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,r,d=c(f);function f(){var e;s(this,f);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return p(h(e=d.call.apply(d,[this].concat(n))),"onSwipe",(function(t,n){var i=e.props.onSwipe;i&&i(t,n)})),p(h(e),"onPinch",(function(t,n){var i=e.props.onPinch;i&&i(t,n)})),p(h(e),"onLongPress",(function(t,n){var i=e.props.onLongPress;i&&i(t,n)})),p(h(e),"onCustomTouchMove",(function(t,n){var i=e.props.onCustomTouchMove;i&&i(t,n)})),e}return t=f,(n=[{key:"render",value:function(){var e=this.props.tagName||"div";return(0,i.h)(e,a({},this.props,{ref:this.props.elemRef}),this.props.children)}},{key:"componentDidMount",value:function(){this._savedBase=this.base,this.setupBindings()}},{key:"componentDidUpdate",value:function(){this.base!==this._savedBase&&(this._savedBase=this.base,this.destroyBindings(),this.setupBindings())}},{key:"componentWillUnmount",value:function(){this.destroyBindings()}},{key:"setupBindings",value:function(){if(this.unbinds=[],y.touchScreen){var e=this.touchEvents=new o.default(this.base);e.on("swipe",this.onSwipe),e.on("pinch",this.onPinch),e.on("longpress",this.onLongPress),e.on("touchmove",this.onCustomTouchMove)}}},{key:"destroyBindings",value:function(){this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),this.unbinds&&(this.unbinds.map((function(e){return e()})),this.unbinds=null)}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.Component)},(e,t,n)=>{n.d(t,{default:()=>l});n(3);var i=n(15),r=n(5);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=(0,n(11).cachedDetect)(),u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"onTouchStart",(function(e){n.rootWidth=(0,r.elemWidth)(n.rootElem),n.rootHeight=(0,r.elemHeight)(n.rootElem),n.rootOffset=(0,r.elemOffset)(n.rootElem),n.resetTouchContext(),e.touches[0]&&(n.xDown=e.touches[0].clientX,n.yDown=e.touches[0].clientY),n.updatePinch(e),2==e.touches.length&&n.touchesAreInsideRootElem()&&e.preventDefault(),n.startedAt=Date.now(),(0,r.elemBind)(document,"touchmove",n.onTouchMoveDocument,{passive:!1}),(0,r.elemBind)(document,"touchend",n.onTouchEndDocument),(0,r.elemBind)(n.rootElem,"touchmove",n.onTouchMove,{passive:!1}),(0,r.elemBind)(n.rootElem,"touchend",n.onTouchEnd);var t=n.getTouchContext(e);n.trigger("touchstart",e,t),n.maybeTriggerMoreSpecificEvent(e,t)})),a(this,"onTouchMove",(function(e){e._handledByTouchMove=!0;var t=e.touches[0].clientX,i=e.touches[0].clientY;(n.xDiff=n.xDown-t,n.yDiff=n.yDown-i,n.updatePinch(e),n.isPinch)||(Math.sqrt(n.xDiff*n.xDiff+n.yDiff*n.yDiff)>25||Date.now()-n.startedAt>300)&&(n.isSwipe=!0);var r=n.getTouchContext(e);n.trigger("touchmove",e,r),n.maybeTriggerMoreSpecificEvent(e,r)})),a(this,"onTouchMoveDocument",(function(e){e._handledByTouchMove||n.onTouchMove(e)})),a(this,"onTouchEnd",(function(e){e._handledByTouchEnd=!0;var t=n.getTouchContext(e);n.trigger("touchend",e,t),n.maybeTriggerMoreSpecificEvent(e,t),setTimeout((function(){n.resetTouchContext(),n.unbindTouchEndAndTouchMove()}),0)})),a(this,"onTouchEndDocument",(function(e){e._handledByTouchEnd||n.onTouchEnd(e)})),this.rootElem=t,this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.initialPinchDistance=null,this.touch1=this.touch2=null,this.pinchDistance=0,this.pinchScale=0,(0,r.elemBind)(t,"touchstart",this.onTouchStart,!!s.passiveSupported&&{passive:!1})}var t,n,i;return t=e,(n=[{key:"updatePinch",value:function(e){var t=this.rootOffset;return 2===e.touches.length?(this.touch1={left:e.touches[0].pageX-t.left,top:e.touches[0].pageY-t.top},this.touch2={left:e.touches[1].pageX-t.left,top:e.touches[1].pageY-t.top},this.pinchDistance=Math.sqrt(Math.pow(this.touch1.left-this.touch2.left,2),Math.pow(this.touch1.top-this.touch2.top,2)),null==this.initialPinchDistance&&(this.initialPinchDistance=this.pinchDistance),this.pinchScale=this.pinchDistance/this.initialPinchDistance,this.pinchDelta=this.pinchDistance-this.initialPinchDistance,this.isPinch=!0,this.pinchScale):0}},{key:"getTouchContext",value:function(e){var t=this.rootOffset,n=Date.now()-this.startedAt,i=Object(e.touches[0]);return{xOffset:i.pageX-t.left,yOffset:i.pageY-t.top,xDelta:this.xDiff,yDelta:this.yDiff,absXDelta:Math.abs(this.xDiff),absYDelta:Math.abs(this.yDiff),delta:Math.sqrt(this.xDiff*this.xDiff+this.yDiff*this.yDiff),startedAt:this.startedAt,isSwipe:!this.isPinch&&this.isSwipe,isTap:n<1e3&&!this.isPinch&&!this.isSwipe,isLongPress:n>=1e3&&!this.isPinch&&!this.isSwipe,isPinch:this.isPinch,timeDelta:n,pinchScale:this.pinchScale,pinchDistance:this.pinchDistance}}},{key:"touchIsInsideRootElem",value:function(e){return e.left>=0&&e.left<this.rootWidth&&e.top>=0&&e.top<this.rootHeight}},{key:"touchesAreInsideRootElem",value:function(){return this.touchIsInsideRootElem(this.touch1)&&this.touchIsInsideRootElem(this.touch2)}},{key:"resetTouchContext",value:function(){this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.pinchDelta=0,this.pinchDistance=0,this.initialPinchDistance=null,this.touch1=this.touch2=null}},{key:"maybeTriggerMoreSpecificEvent",value:function(e,t){t.isLongPress?this.trigger("longpress",e,t):t.isTap?this.trigger("tap",e,t):t.isSwipe?this.trigger("swipe",e,t):t.isPinch&&this.trigger("pinch",e,t)}},{key:"destroy",value:function(){(0,r.elemUnbind)(this.rootElem,"touchstart",this.onTouchStart),this.unbindTouchEndAndTouchMove(),this.rootElem=null}},{key:"unbindTouchEndAndTouchMove",value:function(){(0,r.elemUnbind)(document,"touchmove",this.onTouchMoveDocument),(0,r.elemUnbind)(document,"touchend",this.onTouchEndDocument),(0,r.elemUnbind)(this.rootElem,"touchmove",this.onTouchMove),(0,r.elemUnbind)(this.rootElem,"touchend",this.onTouchEnd)}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();(0,i.bindify)(u.prototype);const l=u},(e,t,n)=>{n.d(t,{default:()=>c});var i=n(2);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=l(e);if(t){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}const c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(c,e);var t,n,u,l=s(c);function c(){return r(this,c),l.apply(this,arguments)}return t=c,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e=this.props;return(0,i.h)("div",{class:e.class||"w-html-stub",style:e.style,ref:e.stubRef,"data-handle":e.handle})}},{key:"componentDidMount",value:function(){var e=this.props.mount;e&&e(this.base)}},{key:"componentWillUnmount",value:function(){var e=this.props.destroy;e&&e()}}])&&o(t.prototype,n),u&&o(t,u),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.Component)},(e,t,n)=>{n.d(t,{destroyControl:()=>s});n(7);var i=n(11),r=(n(57),n(5)),o=n(2),a=(n(20),n(58),function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),s=((0,i.cachedDetect)(),function(e){e._destroyed=!0,function(e){e.unbinds instanceof Array&&(e.unbinds.forEach((function(e){try{"function"==typeof e&&e()}catch(e){setTimeout((function(){throw e}),1)}})),e.unbinds=null)}(e),u(e),c(e),d(e)}),u=function(e){e.rootElem&&(0,r.elemRemove)(Array.prototype.slice.call(e.rootElem.childNodes))},l=function(e){var t=e[0],n=e[1];t&&n&&(0,o.render)((0,o.h)("nothing",null),t)},c=function(e){var t=e.reactMounts;if(t)if(t instanceof Array)l(t);else for(var n in t)a(t,n)&&t[n]&&l(t[n])},d=function(e){for(var t in e)a(e,t)&&("_"!==(n=t)[0]||"_"!==n[1])&&"mounted"!==t&&(e[t]=null);var n;e.__prevProps=null,e._destroyed=!0}},(e,t,n)=>{n.r(t),n.d(t,{clearTimeouts:()=>s,doTimeout:()=>a});var i=n(3),r=n(6),o=i.default;null==o._timeouts&&(o._timeouts={});var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,r.isArray)(e)&&(e=e.join("."));var i=l(e);if(s(e,i),t){var a=o._timeouts[i];null==a&&(a=o._timeouts[i]={});var u=setTimeout((function(){delete a[e],t()}),n);return a[e]=u,u}return o._timeouts[i][e]},s=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,r.isArray)(e)&&(e=e.join(".")),"__global__"===(n=n||l(e))&&(t=o._timeouts[e]))for(var i in t){var a=t[i];clearTimeout(a),delete t[i]}if(t=o._timeouts[n])for(var s in t){var c=t[s];!s.indexOf||0!==s.indexOf(e)||s.length!==e.length&&"."!==s.charAt(e.length)||(clearTimeout(c),delete t[s])}o.blockSweepTimeouts||(o.blockSweepTimeouts=!0,setTimeout(u,0),setTimeout((function(){o.blockSweepTimeouts=!1}),5e3))},u=function(){for(var e in o._timeouts){var t=o._timeouts[e];(0,r.isEmpty)(t)&&delete o._timeouts[e]}},l=function(e){var t=e.indexOf(".");return t>0?e.substring(0,t):"__global__"}},(e,t,n)=>{n.d(t,{defineControl:()=>o,getControlDefinitions:()=>a});var i=n(3),r=n(59);null==i.default._controlDefinitions&&(i.default._controlDefinitions={});var o=function(e){null!=e.handle?null==i.default._controlDefinitions[e.handle]&&(i.default._controlDefinitions[e.handle]=e,i.default.trigger&&i.default.trigger("controldefined",e)):console.error("Please specify a handle property for control",e)},a=function(){return i.default._controlDefinitions||{}};i.default.defineControl=function(e){(0,r.countMetric)("player/custom-control-definition",1,{name:e.handle,location:location.origin+location.pathname}),o(e)}},(e,t,n)=>{n.r(t),n.d(t,{_clearMetricsCache:()=>p,countMetric:()=>c,sampleMetric:()=>h,sendMetric:()=>f,sendMetrics:()=>d});var i=n(3),r=n(7),o=n(10),a=n(60),s=n(38),u=void 0;null==i.default._simpleMetricsCache&&(i.default._simpleMetricsCache={}),i.default._simpleMetricsPostFunction||(i.default._simpleMetricsPostFunction=s.xhrPost),null==i.default._simpleMetricsDebounceInterval&&(i.default._simpleMetricsDebounceInterval=500);var l=i.default._simpleMetricsCache,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f("count",e,t,n)},d=function(){if((0,a.isVisitorTrackingEnabled)()){for(var e="https://".concat("pipedream.wistia.com","/mput?topic=metrics"),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i.default._simpleMetricsPostFunction(e,n.join("\n"))}},h=function(e,t,n){return f("sample",e,t,n)},f=function(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if((0,a.isVisitorTrackingEnabled)())try{null==l.toMput&&(l.toMput=[]);var c=(0,r.default)({type:e,key:t,value:null!=n?n:null},s),h=JSON.stringify(c);l.toMput.push(h),clearTimeout(i.default._msendTimeout),i.default._msendTimeout=setTimeout((function(){(0,o.default)((function(){d.apply(u,l.toMput),l.toMput=[]}))}),i.default._simpleMetricsDebounceInterval)}catch(e){console.error(e.message),console.error(e.stack)}},p=function(){l.toMput=[]}},(e,t,n)=>{n.d(t,{isVisitorTrackingEnabled:()=>c});var i=n(3),r=n(13),o=n(61);function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var u;i.default._visitorTrackingDomain||(i.default._visitorTrackingDomain=location.hostname||""),i.default._visitorTracking||(null!=(u=(0,o.getWistiaLocalStorage)().visitorTrackingEnabled)&&((0,o.updateWistiaLocalStorage)((function(e){return delete e.visitorTrackingEnabled})),i.default._visitorTracking={},i.default._visitorTracking[i.default._visitorTrackingDomain]={isEnabled:u,updatedAt:Date.now()},(0,o.updateWistiaLocalStorage)((function(e){return e.visitorTracking=i.default._visitorTracking}))),i.default._visitorTracking=(0,o.getWistiaLocalStorage)().visitorTracking||{});i.default.consent=function(e){return null==e?c():l(e)};var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default._visitorTrackingDomain;"default"===e?delete i.default._visitorTracking[t]:i.default._visitorTracking[t]={isEnabled:"true"==="".concat(e),updatedAt:Date.now()},(0,o.updateWistiaLocalStorage)((function(e){return e.visitorTracking=i.default._visitorTracking})),(0,r.globalTrigger)("visitortrackingchange",e)},c=function(){if("boolean"==typeof i.default._visitorTracking)return i.default._visitorTracking;if(i.default._visitorTracking){var e=function(){if(i.default._visitorTrackingDomain)for(var e=i.default._visitorTrackingDomain.split(".");e.length>0;){var t=i.default._visitorTracking[e.join(".")],n=t&&t.isEnabled;if(null!=n)return n;e.shift()}}();if(null!=e)return Boolean(e)}var t=[];if(i.default.api&&i.default.api.all)try{t.push.apply(t,a(i.default.api.all()))}catch(e){}if(i.default.channel&&i.default.channel.all)try{t.push.apply(t,a(i.default.channel.all()))}catch(e){}return!t.some((function(e){return!0===(e._mediaData||e._galleryData||{}).privacyMode}))}},(e,t,n)=>{n.d(t,{getWistiaLocalStorage:()=>a,removeWistiaLocalStorage:()=>s,updateWistiaLocalStorage:()=>u});var i=n(3),r=n(62),o="wistia",a=function(){return(0,r.getLocalStorage)(o)},s=function(){return i.default._localStorage=(0,r.removeLocalStorage)(o),i.default._localStorage},u=function(e){return i.default._localStorage=(0,r.updateLocalStorage)(o,e),i.default._localStorage}},(e,t,n)=>{n.d(t,{getLocalStorage:()=>u,removeLocalStorage:()=>l,setLocalStorage:()=>c,updateLocalStorage:()=>d});var i=n(3),r=function(e){setTimeout((function(){throw e}),0)},o="_namespacedLocalStorage",a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia-test-localstorage";if(null!=i.default._localStorageWorks)return i.default._localStorageWorks;try{var t=localStorage.getItem(e);localStorage.removeItem(e),localStorage.setItem(e,t),localStorage.removeItem(e),i.default._localStorageWorks=!0}catch(e){i.default._localStorageWorks=!1}return i.default._localStorageWorks},s=function(){return null==i.default[o]&&(i.default[o]={}),i.default[o]},u=function(e){if(!a())return s()[e]||{};if(localStorage[e])try{return"null"===localStorage[e]?{}:JSON.parse(localStorage[e])}catch(e){r(e)}return{}},l=function(e){if(a())try{localStorage.removeItem(e)}catch(e){r(e)}else s()[e]={}},c=function(e,t){if(!a())return null!=t&&"object"==typeof t&&(s()[e]=t),t;try{s()[e]=t,localStorage[e]=JSON.stringify(t)}catch(e){r(e)}return t},d=function(e,t){var n=u(e);try{t(n)}catch(e){r(e)}return c(e,n)}},,,(e,t,n)=>{n.r(t),n.d(t,{durationStringToSeconds:()=>r,flexibleDuration:()=>o,formattedDurationToSeconds:()=>a,getSecondsRemaining:()=>f,humanReadableDuration:()=>s,isValidDurationString:()=>c,padNumber:()=>d,secondsConverter:()=>h});var i=n(66),r=function(e){var t=(null==e?void 0:e.toString())||"";return c(t)?3600*u("h",t)+60*u("m",t)+u("s",t):0},o=function(e){var t=h(e,"hms"),n=t.hours,i=t.minutes,r=t.seconds;return 0===n?"".concat(i,":").concat(d(r,2)):"".concat(n,":").concat(d(i,2),":").concat(d(r,2))},a=function(e){return c(e)?r(e):(0,i.isValidIso8601)(e)?(0,i.iso8601TimeToSeconds)(e):e},s=function(e){var t=h(e,"hms"),n=t.hours,i=t.minutes,r=t.seconds,o=0===n,a=0===i;if(o&&a)return"".concat(r," Sec");var s=o?"":"".concat(n," Hr"),u=a?"":"".concat(i," Min");return"".concat(s," ").concat(u).trim()},u=function(e,t){var n=new RegExp("\\d+".concat(e)),i=t.match(n);return i?parseInt(i[0].match(/\d+/)[0],10):0},l=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,c=function(e){if(!e)return!1;var t=e.toString();return null!==(t=t.replace(l,"")).match(/[\dhms]+/)&&null!==t.match(/[hms]+/)&&(t.match(/[\dhms]+/)[0]===t&&(!function(e){return["h","m","s"].filter((function(t){var n=new RegExp(t,"g"),i=e.match(n);return null!==i&&i.length>1})).length>0}(t)&&!!function(e){var t=e.match(/[hms]/g),n=!1;if(3===t.length&&"h"===t[0]&&"m"===t[1]&&"s"===t[2])return!0;if(2===t.length){var i=t.join("");return["hm","hs","ms"].forEach((function(e){i===e&&(n=!0)})),n}return!0}(t)))},d=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(e);n.length<t;)n="0".concat(n);return n},h=function(e,t){var n=0,i=0,r=0,o=/h/.test(t),a=/m/.test(t);return o&&e>0&&(n+=Math.floor(e/3600),e%=3600),a&&e>0&&(i+=Math.floor(e/60),e%=60),r=Math.round(e),o&&60===i&&(n+=1,i=0),a&&60===r&&(i+=1,r=0),{hours:n,minutes:i,seconds:r}},f=function(e,t){return(t.getTime()-e.getTime())/1e3}},(e,t,n)=>{n.r(t),n.d(t,{isValidIso8601:()=>o,iso8601TimeToSeconds:()=>r,secondsToIso8601Date:()=>a,secondsToIso8601Duration:()=>s,secondsToIso8601Time:()=>u});var i=n(65),r=function(e){var t=e.toString()||"",n=0,i=[1,60,3600];return t.split(":").reverse().forEach((function(e,t){n+=e*i[t]})),0|Math.abs(parseInt(n,10))},o=function(e){if(!e||"string"!=typeof e)return!1;var t=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");return null!==t.match(/[\d:]+/)&&t.match(/[\d:]+/)[0]===t},a=function(e){var t=new Date(1e3*e),n=t.getFullYear(),i=t.getMonth()+1,r=t.getDate();return i<10&&(i="0".concat(i)),r<10&&(r="0".concat(r)),"".concat(n,"-").concat(i,"-").concat(r)},s=function(e){var t=(0,i.secondsConverter)(e,"hms"),n=t.hours,r=t.minutes,o=t.seconds,a="";return n&&(a+="".concat(n,"H")),(r||e>60&&0!==o)&&(a+="".concat(r,"M")),(o||0===e)&&(a+="".concat(o,"S")),a},u=function(e){var t=(0,i.secondsConverter)(e,"hms"),n=t.hours,r=t.minutes,o=t.seconds,a=n.toString(),s=r.toString(),u=o.toString();return["00".substring(a.length)+a,"00".substring(s.length)+s,"00".substring(u.length)+u].join(":")}},,,,(e,t,n)=>{function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.d(t,{default:()=>c});var r=/^#?([0-9a-f]{3,4}|[0-9a-f]{6,8})$/i,o=/^rgba?\((\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?)(?:,\s*([01]?\.?\d*))?\)$/,a=/^\d+(\.\d+)*%$/,s=/([0-9a-f])/gi,u=function(e){return a.test(e)?2.55*parseFloat(e):e},l=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e};const c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t instanceof e?(this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a):t?this.parse(t):(this.r=this.g=this.b=0,this.a=1)}var t,n,a;return t=e,(n=[{key:"parse",value:function(e){if(e=String(e),r.test(e)){var t=e.replace(/^#/,"");3!==t.length&&4!==t.length||(t=t.replace(s,"$1$1")),this.r=parseInt(t.substr(0,2),16),this.g=parseInt(t.substr(2,2),16),this.b=parseInt(t.substr(4,2),16),8===t.length?this.a=parseInt(t.substr(6,2),16)/255:this.a=1}else if(o.test(e)){var n=e.match(o);this.r=parseFloat(u(n[1])),this.g=parseFloat(u(n[2])),this.b=parseFloat(u(n[3])),n[4]?this.a=parseFloat(n[4]):this.a=1}return this}},{key:"clone",value:function(){return new e(this)}},{key:"_hslFromRgb",value:function(){var e=this.r/255,t=this.g/255,n=this.b/255,i=Math.max(e,t,n),r=Math.min(e,t,n),o=(i+r)/2;i===r&&(this._h=this._s=0);var a,s,u=i-r;return 0===u?(this._h=0,this._s=0,this._l=100*e,this):(a=o>.5?u/(2-i-r):u/(i+r),s=i===e?(t-n)/u+(t<n?6:0):i===t?(n-e)/u+2:(e-t)/u+4,s/=6,this._h=360*s,this._s=100*a,this._l=100*o,this)}},{key:"_rgbFromHsl",value:function(){var e=this._h/360,t=this._s/100,n=this._l/100,i=n<.5?n*(1+t):n+t-n*t,r=2*n-i;return this.r=255*l(r,i,e+1/3),this.g=255*l(r,i,e),this.b=255*l(r,i,e-1/3),this}},{key:"blendChannel",value:function(e,t,n){return this[e]=n*t+(1-n)*this[e],this}},{key:"blend",value:function(t,n){return t=new e(t),this.blendChannel("r",t.r,n),this.blendChannel("g",t.g,n),this.blendChannel("b",t.b,n),this}},{key:"lightenChannel",value:function(e,t){return this[e]+=t,this[e]<0?this[e]=0:this[e]>255&&(this[e]=255),this}},{key:"lighten",value:function(e){return this.looksLikePercent(e)?this.lightness(this.lightness()+parseFloat(e)):(this.lightenChannel("r",e),this.lightenChannel("g",e),this.lightenChannel("b",e)),this}},{key:"darken",value:function(e){return"string"==typeof e?this.lighten("-".concat(e)):this.lighten(-e)}},{key:"looksLikePercent",value:function(e){return/^-?\d+(\.\d+)?%$/.test(e)}},{key:"lightness",value:function(e){return this._hslFromRgb(),null!=e?(this._l=Math.max(0,Math.min(100,e)),this._rgbFromHsl(),this):this._l}},{key:"saturation",value:function(e){return this._hslFromRgb(),null!=e?(this._s=Math.max(0,Math.min(100,e)),this._rgbFromHsl(),this):this._s}},{key:"grayLevel",value:function(){return(.299*this.r+.587*this.g+.114*this.b)/255}},{key:"whiteLevel",value:function(){return Math.min(Math.min(this.r,this.g),this.b)}},{key:"isGrayscale",value:function(){return this.r===this.g&&this.g===this.b}},{key:"distanceFrom",value:function(e){return Math.sqrt(Math.pow(this.r-e.r,2)+Math.pow(this.g-e.g,2)+Math.pow(this.b-e.b,2))}},{key:"channelDominance",value:function(){var e=this;return["r","g","b"].sort((function(t,n){return e[n]-e[t]}))}},{key:"alpha",value:function(e){return null!=e?(this.a=e,this):this.a}},{key:"red",value:function(e){return null!=e?(this.r=e,this):this.r}},{key:"green",value:function(e){return null!=e?(this.g=e,this):this.g}},{key:"blue",value:function(e){return null!=e?(this.b=e,this):this.b}},{key:"toHex",value:function(){var e=Math.round(this.r).toString(16),t=Math.round(this.g).toString(16),n=Math.round(this.b).toString(16);return 1===e.length&&(e="0".concat(e)),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),"".concat(e).concat(t).concat(n)}},{key:"toHexWithAlpha",value:function(){var e=Math.round(255*this.a).toString(16);return 1===e.length&&(e="0".concat(e)),"".concat(e).concat(this.toHex())}},{key:"toRgb",value:function(){return"rgb(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),")")}},{key:"toRgba",value:function(){return"rgba(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),",").concat(this.a,")")}},{key:"toRgbaOrHex",value:function(){return this.toRgba()}},{key:"toPercent",value:function(){return"rgba(".concat(this.r/255*100,"%,").concat(this.g/255*100,"%,").concat(this.b/255*100,"%,").concat(this.a,")")}},{key:"toIeGradient",value:function(){return"progid:DXImageTransform.Microsoft.gradient(startColorStr='#".concat(this.toHexWithAlpha(),"', endColorStr='#").concat(this.toHexWithAlpha(),"')")}},{key:"toString",value:function(){return this.toPercent()}}])&&i(t.prototype,n),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},,(e,t,n)=>{n.d(t,{atOrNearBeginning:()=>c,atOrNearEnd:()=>l,getLastTime:()=>o,getResumableKeyForVideo:()=>s,setLastTime:()=>a,setResumableKeyForVideo:()=>u,shorterThanResumableThreshold:()=>d,withinResumableTime:()=>h});var i=n(62),r=function(e){return"wistia-video-progress-".concat(e)},o=function(e){return(0,i.getLocalStorage)(r(e)).lastTime},a=function(e,t){(0,i.updateLocalStorage)(r(e),(function(e){e.lastTime=t}))},s=function(e){return(0,i.getLocalStorage)(r(e)).resumableKey},u=function(e,t){(0,i.updateLocalStorage)(r(e),(function(e){e.resumableKey=t}))},l=function(e,t){return(o(e)||0)+5>t},c=function(e){return(o(e)||0)<10},d=function(e){return e<300},h=function(e,t){return!c(e)&&!l(e,t)}},(e,t,n)=>{n.d(t,{default:()=>l});var i=n(2);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=u(e);if(t){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}const l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(l,e);var t,n,s,u=a(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=u.call(this,e)).state={filledWidth:0,isDisplayNone:!0,isOpaque:!1,widthTransitionShouldDelay:!0},t}return t=l,(n=[{key:"componentDidMount",value:function(){this.maybeFadeInOrOut()}},{key:"componentDidUpdate",value:function(e,t){var n=e.isVisible;this.maybeFadeInOrOut(n);var i=t.filledWidth;this.maybeChangeFilledWidth(i)}},{key:"fadeIn",value:function(){var e=this,t=this.props.isVisible;clearTimeout(this.fadeTimeout),this.setState({isDisplayNone:!1},(function(){t&&(e.fadeTimeout=setTimeout((function(){t&&requestAnimationFrame((function(){e.setState({isOpaque:!0})}))}),0))}))}},{key:"fadeOut",value:function(){var e=this,t=this.props.isVisible;clearTimeout(this.fadeTimeout),this.setState({isOpaque:!1},(function(){t||(e.fadeTimeout=setTimeout((function(){t||e.setState({isDisplayNone:!0})}),200))}))}},{key:"filledBarStyle",value:function(){var e=this.state,t=e.widthTransitionShouldDelay,n=e.filledWidth,i=this.props.color;return{backgroundColor:"#".concat(i),height:"100%",transition:"width 500ms ease-out ".concat(t?"500ms":""),width:"".concat(n,"%")}}},{key:"maybeFadeInOrOut",value:function(e){var t=this.props.isVisible;t!==e&&(t?this.fadeIn():this.fadeOut())}},{key:"maybeChangeFilledWidth",value:function(e){var t=this,n=this.props.percentWatched;null!=n&&n!==e&&setTimeout((function(){requestAnimationFrame((function(){t.setState({filledWidth:n})}))}),0)}},{key:"removeTransitionDelay",value:function(){this.setState({widthTransitionShouldDelay:!1})}},{key:"unfilledBarStyle",value:function(){var e=this.state,t=e.isDisplayNone,n=e.isOpaque;return{backgroundColor:"#ffffff",bottom:0,display:t?"none":"",height:n?"".concat(6*this.props.scale,"px"):0,opacity:n?.8:0,transition:"opacity 1s, height .5s",width:"100%"}}},{key:"render",value:function(){var e=this;return(0,i.h)("div",{style:this.unfilledBarStyle()},(0,i.h)("div",{onTransitionEnd:function(){return e.removeTransitionDelay()},style:this.filledBarStyle()}))}}])&&r(t.prototype,n),s&&r(t,s),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.Component)},,,,,,(e,t,n)=>{n(14),n(13),n(80),n(81),n(82),n(83),n(89),n(108),n(111),n(112),n(113),n(117),n(119),n(120),n(121),n(122),n(123),n(99),n(126),n(127),n(128),n(129),n(130),n(132),n(133)},(e,t,n)=>{var i=n(12),r=n(30);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}!function(e){var t=window.Wistia;if(!t.wlog)t.wlog=i.wlog,t.log=i.wlog.error,t.error=i.wlog.error,t.warn=i.wlog.warn,t.notice=i.wlog.notice,t.info=i.wlog.info,t.debug=i.wlog.debug,t.logLevels=i.LOG_LEVELS,t.stacktrace=function(){try{throw new Error("stacktrace")}catch(e){return e.stack}},t.logHelpers={_log:function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var a=t[e];return i=[].concat(this._logPrefix()).concat(i),a.apply(void 0,o(Array.from(i||[])))},_logPrefix:function(){return[this.constructor.name]},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._log.apply(this,["error"].concat(o(Array.from(t))))},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._log.apply(this,["notice"].concat(o(Array.from(t))))},notice:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._log.apply(this,["notice"].concat(o(Array.from(t))))},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._log.apply(this,["info"].concat(o(Array.from(t))))},debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._log.apply(this,["debug"].concat(o(Array.from(t))))},log:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._log.apply(this,["error"].concat(o(Array.from(t))))}},t._initializers.initWLog=function(){var e,t,n,o,a,s,u,l,c,d,h,f,p,y=(0,r.parseUrl)(location.href);if(document.referrer&&(h=(0,r.parseUrl)(document.referrer)),((d=null==y||null===(e=y.params)||void 0===e?void 0:e.wlog)||top!==self&&(d=null===(t=h)||void 0===t||null===(n=t.params)||void 0===n?void 0:n.wlog))&&i.wlog.setLevel(d),((f=null==y||null===(o=y.params)||void 0===o?void 0:o.wgrep)||(f=null===(a=h)||void 0===a||null===(s=a.params)||void 0===s?void 0:s.wgrep))&&i.wlog.setGrep(new RegExp(f,"i")),(p=null==y||null===(u=y.params)||void 0===u?void 0:u.wgrepv)||(p=null===(l=h)||void 0===l||null===(c=l.params)||void 0===c?void 0:c.wgrepv))return i.wlog.setGrepv(new RegExp(p,"i"))},t._destructors.destroyWLog=function(){return null===i.wlog||void 0===i.wlog?void 0:i.wlog.reset()}}()},(e,t,n)=>{var i,r;i=n(11).cachedDetect,(r=Wistia)._initializers.initDetect=function(){if(!r.detect)return r.detect=i()}},(e,t,n)=>{!function(e){var t,i,r;if(t=e,i=n(45).globalEventLoop,!(null!=(r=t._initializers)?r.initEventLoop:void 0))t._initializers.initEventLoop=function(){return t.eventLoop=i},t._destructors.destroyEventLoop=function(){var e;return null!=(e=t.eventLoop)&&e.stop(),t.eventLoop=null}}(Wistia)},(e,t,n)=>{!function(e){var t,i,r,o,a,s,u,l;if(!(i=e).embed)t=n(84),a=n(87).fetchMedia,u=n(42).mediaDataTransforms,l=n(6).merge,r=n(7).default,o=n(28).dynamicImport,i._embed={},i.embed=function(e,t){var n,r;return null==t&&(t={}),i.info("Wistia.embed",e,t),"function"==typeof i.flushInitQueue&&i.flushInitQueue(),"string"==typeof e?n=e:e.type&&"ab-test"===e.type?(n=e.hashedId,[e.control,e.variant].filter(Boolean).forEach((function(e){return s(e,t)})),i.cacheAbTest(e.hashedId,e)):(n=e.hashedId,r=l({},e.embedOptions,t),u(e,r),i.cacheMedia(n,e)),new i.PublicApi(n,t)},i.embedEngine=function(e,n,s,c){var d;return null==s&&(s={}),null==c&&(c={}),d="string"==typeof n?n:n.hashedId,new Promise((function(h){var f;return f=function(n){var i,r;return i=t.buildContext(c),r=t.bestUsableEngine(i,n,s),o(r).then((function(t){var i;return i=new(0,t.default)(e,n,l({duration:n.duration},s)),h(i)}))},"string"==typeof n?a(d,(function(e){return u(e,s),i.cacheMedia(d,e),f(e)}),r({},s,{errorCallback:function(){return countMetric("player/failure/embed-failed")}})):f(n)}))},s=function(e,t){return u(e.media,t),i.cacheMedia(e.media.hashedId,e.media)}}(Wistia)},(e,t,n)=>{n.r(t),n.d(t,{PLUGIN_CONFIGS:()=>A,bestPlayer:()=>D,bestUsableEngine:()=>j,bestUsableEngineClass:()=>x,buildContext:()=>M,canPlayInline:()=>R,canUsePlayer:()=>I,choosePlayer:()=>B,determinePlayerPreferenceFromInput:()=>L,doesBrowserSupportHlsTools:()=>W,enginesToLoad:()=>H,getDefaultContext:()=>V,hasAssetsForPlayer:()=>N,hasEnoughReadyMp4Assets:()=>K,hasSupportedHlsAssets:()=>G,isBrowserInNativeAndroid:()=>X,isBrowserOldChrome:()=>$,isHlsEnabled:()=>Z,isMobile:()=>J,isNotPlayable:()=>ee,isPasswordProtected:()=>te,isSupportedPlayer:()=>ie,isValidPlayer:()=>oe,logWarnings:()=>ae,playerPlugins:()=>se,report:()=>ue,shouldServeHls:()=>le,supportedPlayers:()=>ce,urlHasBeenTamperedWith:()=>he,usablePlayers:()=>de,xhrHasBeenTamperedWith:()=>ye});var i=n(3),r=n(6),o=n(11),a=n(85),s=n(86),u=n(4),l=n(12),c=n(43);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p,y=l.wlog.getPrefixedFunctions("judy"),v="auto",m="external",g="hlsVideo",b="html5",_="manualQualityVideo",w="nativeHlsVideo",O="notplayable",k="passwordprotected",P="simplehtml5",T="twoStrokeVideo",S="vulcan-v2",E="sphericalVideo",C=[S,b,P,m,O,k],A={notPlayableVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},vulcanV2Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},hlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},nativeHlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},passwordProtectedVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},encodingProgress:{on:!0,initBeforeHasData:!1,async:!0,loadWeight:100},externalPlayer:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},html5Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1}},D=function(e,t,n){var i=e.detect,r=e.logger,o=t.assets,a=ne({mediaData:t,options:n},i);return i.oldandroid?(r.info("external on old android"),m):I(e,S,o)&&a||I(e,S,o)?(r.info("default, ret",S),S):"Audio"===t.mediaType||"LiveStream"===t.mediaType?S:I(e,b,o)?(r.info("default, ret",b),b):(r.info("nothing left, use",m),m)},j=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.detect,r=e.logger;r.info("bestUsableEngineClass");var o=le(e,t,n),a=ne({mediaData:t,options:n},i);return n.engine?n.engine:a?(r.info(E),"engines/spherical_video.js"):"Audio"===t.mediaType?"engines/simple_audio.js":re(t)||n.secondaryVideoUrl?(r.info(T),"engines/two_stroke_video.js"):o&&i.nativeHls?(r.info(w),"engines/native_hls_video.js"):o?(r.info(g),"engines/hls_video.js"):(r.info(_),"engines/manual_quality_video.js")},x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.detect,o=e.logger;o.info("bestUsableEngineClass");var a=le(e,t,n),s=i.default.engines||{};return"Audio"===t.mediaType?s.SimpleAudio:re(t)&&s.TwoStrokeVideo||n.secondaryVideoUrl&&s.TwoStrokeVideo?(o.info(T),s.TwoStrokeVideo):a&&r.nativeHls&&s.NativeHlsVideo?(o.info(w),s.NativeHlsVideo):a&&s.HlsVideo?(o.info(g),s.HlsVideo):(o.info(_),s.ManualQualityVideo)},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=F(e);return h(h(h({},V()),e),{},{pageUrl:t})},R=function(e){var t=e.detect;return t.android||t.ios.version>=10},I=function(e,t,n){return ie(e,t)&&N(e,t,n)},B=function(e,t,n){var i=e.detect,r=e.logger,o=t.assets,a=n.force,s=n.playerForce;!s&&a&&(s=a),r.info("choosePlayer input",t.hashedId);var u=L(e,t,n);if(s&&!oe(e,s)&&(r.error('Invalid playerForce option: "'.concat(s,'", ignoring')),s=a=null),u&&u!==v&&!oe(e,u)&&(r.error('Invalid playerPreference option: "'.concat(u,'", ignoring')),u=v),r.info("playerPreference is",u),s)return r.info('"playerForce" used, return',s),s;if(te(e,n))return r.info("return",k),k;if(ee(e,t))return r.info("return",O),O;if(u!==v&&I(e,u,o)){var l=ne({mediaData:t,options:n},i);return u!==S&&l?(r.info("this player doesn't support spherical, return",S),S):(r.info('"playerPreference" used, return',u),u)}return r.info("choosing player with no preference"),D(e,t,n)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.pageUrl?e.pageUrl:Object(window.FreshUrl).originalUrl?window.FreshUrl.originalUrl:window.top===window.self?location.href||"":document.referrer||""},L=function(e,t,n){var i=n.playerPreference||n.platformPreference;return i&&i!==v?i===b?J(e)?b:S:i===P?b:i:v},W=function(e){var t=Boolean(window.Promise);return(e.mediaSource||e.nativeHls)&&t},H=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.detect,a=t.logger,s=[];a.info("enginesToLoad");var u=le(t,n,i);u&&o.nativeHls?(a.info(w),s.push(w)):u?(a.info(g),s.push(g)):(a.info(_),s.push(_));var l=ne({mediaData:n,options:i},o);if(l&&(s.push(E),a.info(E)),re(n)){a.info(T),s.push(T);var c=(0,r.except)(i,["twoStroke"]),d=n.secondaryMediaData,h=e(t,d,c);s=s.concat(h)}else i.secondaryVideoUrl&&(a.info("secondaryVideoUrl",T),s.push(T));var f={};s.forEach((function(e){f[e]=!0}));var p=[];for(var y in f)p.push(y);return p},V=function(){return p||(p={detect:(0,r.clone)((0,o.cachedDetect)()),inIframe:top!==self,location:window.location,logger:y,pageUrl:location.href,silenceGlobalWarnings:u.default.wistiaSilenceGlobalWarnings,userAgent:navigator.userAgent})},U=function(e,t){var n={};return n[t]=A[t],n},N=function(e,t,n){if(!oe(e,t))return!1;if(t===O||t===k)return!0;if(t===S)return q(n)||z(n);if(t===b)return(0,c.readyPublicMp4s)(n).length>0;if(t===m)return(0,c.readyPublicMp4s)(n).length>0;throw new Error("Unhandled player type '".concat(t,"'"))},q=function(e){return(0,c.readyPublicMp4s)(e).length>0||(0,c.readyPublicM3u8s)(e).length>0},z=function(e){return(0,c.readyPublicMp3s)(e).length>0},K=function(e){var t=(0,c.filter)(e,{container:"mp4",metadata:function(e){return e&&e.max_bitrate},public:!0,sortBy:"width desc",status:c.READY,type:/\b(?!captioned_video)\S+/});return Boolean(t[0]&&t[0].width>=400)},G=function(e){return K(e.assets)||(0,a.count)("player/originV2/media-has-no-metadata",1,{hashedId:e.hashedId}),K(e.assets)},Q=function(e,t){var n=e.pageUrl,i=Y(n);if(null!=i)return i;var r=(0,s.setOrGet)("forceHls");return null!=r?r:t.hls},Y=function(e){var t=e&&e.match&&e.match(/[&?]whls=([^&]+)/),n=t&&t[1];return null!=n?(0,r.cast)(n):null},X=function(e,t){return e.android&&(!1===t.playsinline||!0===t.nativeMode)},$=function(e){return e.chrome&&parseInt(e.chrome.version,10)<50},Z=function(e,t,n){var i=Q(e,n);return!0===i||!1===i?i:!1!==t.hls_enabled},J=function(e){var t=e.detect;return t.iphone||t.ipad||t.android},ee=function e(t,n){var i=n.assets,r="Audio"===n.type?0==(0,c.readyPublicMp3s)(i).length:0==(0,c.readyPublicMp4s)(i).length;return"LiveStream"!==n.mediaType&&(0===i.length||1===i.length&&"original"===i[0].type||r||(0,c.nonfailedPublicOver400)(i).length>0&&0===(0,c.readyPublicOver400)(i).length||re(n)&&e(t,n.secondaryMediaData))},te=function(e,t){var n=(0,r.getDeep)(t,"plugin.passwordProtectedVideo");return null!=n&&!1!==n.on},ne=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.options.overrideSpherical)return!1;var i=String(null===(e=n.mediaData)||void 0===e?void 0:e.spherical),r=String(null===(t=n.opts)||void 0===t?void 0:t.spherical);return"true"===i||"true"===r},ie=function(e,t){return!!oe(e,t)&&(0,r.indexOf)(ce(e),t)>=0},re=function(e){return!!e.secondaryMediaData},oe=function(e,t){return(0,r.indexOf)(C,t)>=0},ae=function(e){var t=e.detect,n=e.userAgent,i=e.logger;if(!e.silenceGlobalWarnings){var r=/phantomjs/i.test(n);ye()&&(r||i.error("The XMLHttpRequest constructor has been tampered with. Because this affects CORS/Range XHR requests, HLS playback has been disabled. To enable HLS playback and other important features, please remove code that changes the definition of window.XMLHttpRequest.")),he()&&t.mediaSource&&!r&&i.error("window.URL.createObjectURL has been tampered with. Because this affects use of Media Source Extensions, HLS playback has been disabled. window.URL is a browser API that should not be clobbered. Its current value is:",window.URL)}},se=function(e,t,n,i){var o=e.logger,a={};o.info("playerPlugins input",t,n.hashedId,n,i),t===O?(0,r.merge)(a,U(0,"notPlayableVideo")):t===k?(0,r.merge)(a,U(0,"passwordProtectedVideo")):t===b?(0,r.merge)(a,U(0,"html5Player")):t===m?(0,r.merge)(a,U(0,"externalPlayer")):t===S&&(0,r.merge)(a,U(0,"vulcanV2Player"));var s=[];for(var u in a)s.push(u);return o.info.apply(o,["playerPlugins output"].concat(s,[a])),a},ue=function(e,t,n){return{bestPlayer:D(e,t,n),playerPreferenceFromInput:L(e,t,n),supportedPlayers:ce(e),usablePlayers:de(e,t.assets)}},le=function(e,t,n){if("LiveStream"===t.type)return!0;var i=e.detect;return W(i)&&!$(i)&&!X(i,n)&&Z(e,t,n)&&G(t)&&(!ye(e)&&!he(e)||Q(e,n))},ce=function(e){var t=e.detect,n=[O,k,m];return(t.vulcanSupport||t.iphone||t.ipad||t.android)&&n.push(S),t.video.h264&&n.push(b),n},de=function(e,t){for(var n=[],i=ce(e),r=0;r<i.length;r++){var o=i[r];I(e,o,t)&&n.push(o)}return n},he=function(){return"function"!=typeof(window.URL&&window.URL.createObjectURL)},fe=/\s*function\s+XMLHttpRequest\(\)\s*{\s*\[native code\]\s*}\s*/m,pe=/\[object XMLHttpRequestConstructor\]/m,ye=function(){if(XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.constructor){var e=XMLHttpRequest.prototype.constructor.toString();return!(fe.test(e)||pe.test(e))}return!0}},(e,t,n)=>{n.r(t),n.d(t,{count:()=>m,msend:()=>v,sample:()=>g,send:()=>y});var i=n(3),r=n(57),o=n(12),a=n(6),s=n(5),u=n(30),l=n(29),c=n(38),d=n(60),h=void 0,f=i.default;null==f._metricsCache&&(f._metricsCache={});var p=f._metricsCache,y=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{null==p.toMput&&(p.toMput=[]),null==p.requestId&&(p.requestId=0);var u=(0,a.merge)({type:e,key:t,value:null!=n?n:null,request_id:p.requestId},i),l=JSON.stringify(u);o.wlog.debug("send metrics",l),p.toMput.push(l),(0,r.doTimeout)("metrics.debounce",(function(){(0,s.pageLoaded)((function(){v.apply(h,p.toMput),p.toMput=[],p.requestId+=1}))}),500)}catch(e){o.wlog.error(e)}},v=function(){if((0,d.isVisitorTrackingEnabled)()){for(var e="".concat((0,u.proto)(),"//").concat((0,l.metricsHost)(),"/mput?topic=metrics"),t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(0,c.xhrPost)(e,n.join("\n"))}},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return y("count",e,t,n)},g=function(e,t,n){return y("sample",e,t,n)}},(e,t,n)=>{n.d(t,{removeLocalStorage:()=>s,setOrGet:()=>a});var i=n(3),r=n(61),o=n(6);i.default._localStorage||(i.default._localStorage=(0,r.getWistiaLocalStorage)());var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!=t){var a=n?o.unsetDeep:o.setDeep;return i.default._localStorage=(0,r.updateWistiaLocalStorage)((function(n){return a(n,e,t)})),t}return null!=e?(0,o.getDeep)(i.default._localStorage,e):i.default._localStorage},s=function(e){return a(e,"nada",!0)};r.removeWistiaLocalStorage},(e,t,n)=>{n.d(t,{abTestFromCache:()=>S,cacheAbTest:()=>O,cacheMedia:()=>w,fetchMedia:()=>g,mediaFromCache:()=>T,uncacheMedia:()=>k});var i=n(4),r=n(3),o=n(6),a=n(12),s=n(88),u=n(18),l=n(37),c=n(20),d=n(57),h=n(29),f=n(30),p=n(86),y=n(85),v=n(42),m=n(59);null==r.default._remoteData&&(r.default._remoteData={});var g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=E(e,n);if(i){a.wlog.info("W.remote.media",e,"from local cache");var r="remote-media.".concat(e,".").concat((0,c.seqId)()),u=i;return i.type&&"ab-test"===i.type&&(a.wlog.info("W.remote.media",e,"responded",i),u=C(i,n)),(0,d.doTimeout)(r,(function(){t(u)})),r}a.wlog.info("W.remote.media",e,"fetching");var l=b(e,n),h={};null!=n.password&&(h.password=n.password),n.idType&&(h.idType=n.idType);var f=function(i){if(i.error)a.wlog.info("W.remote.media",e,"error",i),w(e,i),t(i);else if(i.type&&"ab-test"===i.type){a.wlog.info("W.remote.media",e,"responded",i);var r=C(i,n);t(r)}else{var s,u=(0,o.merge)({},null===(s=i.media)||void 0===s?void 0:s.embedOptions,n);delete i.media.unnamed_assets,(0,v.mediaDataTransforms)(i.media,u),w(e,i.media),a.wlog.info("W.remote.media",e,"responded",i.media),t(i.media)}},p=function(){a.wlog.error("Timed out fetching ".concat(l)),(0,m.countMetric)("player/failure/fetch-media-failed"),n.errorCallback&&n.errorCallback()},y={onerror:p,timeout:1e4,once:null==n.once||n.once,scriptRegex:_(e)};return(0,s.jsonpPlus)(l,h,f,y)},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.useMediaDataHostLogic){var n=(0,h.mediaDataHost)(t);return"".concat((0,h.eV1Protocol)(),"//").concat(n,"/embed/medias/").concat(e,".json")}var i=(0,h.forceValidFastWistiaHost)(t.embedHost);return"".concat((0,f.proto)(),"//").concat(i,"/embed/medias/").concat(e,".json")},_=function(e){var t="https:"===location.protocol?"https":"https?";return new RegExp("^(".concat(t,":)?//((").concat((0,h.cdnFastWistiaComHost)().replace(".","\\."),")|(").concat((0,h.cdnFastWistiaNetHost)().replace(".","\\."),"))/embed/medias/").concat(e,"\\.jsonp\\??"))},w=function(e,t){return(0,l.cacheMediaData)(e,t)},O=function(e,t){return r.default._remoteData["ab_test_".concat(e)]=t},k=function(e){(0,l.uncacheMediaData)(e),P(e)},P=function(e){window["wistiajsonp-/embed/medias/".concat(e,".json")]=null,(0,u.removeScriptsBySrc)(b(e),{scriptRegex:_(e)})},T=function(e){return E(e,{idType:"media"})},S=function(e){return E(e,{idType:"ab-test"})},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idType||"media",o=r.default._remoteData["".concat(n,"_").concat(e)];if(o)return o;var a=i.default["wistiajsonp-/embed/medias/".concat(e,".json")];return null!=a&&a.media?a.media:null},C=function(e,t){if(e.error)return e;e.missingVideos&&console.warn("The following videos were not present in the AbTest: ",e.missingVideos),O(e.hashedId,e);var n=[e.control,e.variant].filter(Boolean);n.forEach((function(e){var n,i=(0,o.merge)({},null===(n=e.media)||void 0===n?void 0:n.embedOptions,t);(0,v.mediaDataTransforms)(e.media,i),w(e.media.hashedId,e.media)}));var i,r,a,s,u,l="ab_test.".concat(e.hashedId,".selected_media_hashed_id");i=e.winnerHashedId?e.winnerHashedId:(0,p.setOrGet)(l),"undefined"!=typeof crypto?a=1&(s=crypto.getRandomValues(new Uint8Array(1)))[0]:(u=Math.random(),a=Number(u>.5));var c=2===n.length?a:0;r=n[c].media;var d=!1;n.some((function(e){return e.media.hashedId===i&&(r=e.media,d=!0),e.media.hashedId===i}));var h={numberOfMedias:n.length,coinFlip:a,savedMedia:d,agent:navigator.userAgent||null,selectedHashedId:r.hashedId,stringCryptoRandom:String(s)};return null!=s?h.cryptoRandom=s[0]:h.mathRandom=u,(0,y.send)("count","player/ab-test-selection",1,h),(0,p.setOrGet)(l,r.hashedId),r}},(e,t,n)=>{n.d(t,{jsonp:()=>h,jsonpPlus:()=>f});var i=n(4),r=n(3),o=n(30),a=n(18),s=n(19),u=n(39),l=n(12),c=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},d=l.wlog.getPrefixedFunctions("jsonp");function h(e,t,n,l){var h,f,p,y="?";for(var v in t=t||{})"callback"!=v&&c(t,v)&&null!=t[v]&&(y+="".concat(encodeURIComponent(v),"=").concat(encodeURIComponent(t[v]),"&"));if(d.info(e,y,l),l&&l.once&&(f=(f=(e+y).replace(/\.json(?!p)/,".jsonp")).replace(/&$/,""),p=(0,a.findScriptInDomBySrc)(f,{ignoreProtocol:!0,scriptRegex:l.scriptRegex})),p){var m=new o.Url(f),g="wistiajsonp-".concat(m.relative());d.info("script already in DOM",f,"polling",g),(0,u.poll)((function(){return d.info("found",g,"on root object"),null!=i.default[g]}),(function(){n(i.default[g])}),15,3e4)}else{h=t&&t.callback?t.callback:"wistiajson".concat(r.default._jsonpCounter+=1),d.info("defining on root:",h),i.default[h]=function(e){n(e),delete i.default[h],i.default[h]=null};var b="".concat(e+y,"callback=").concat(h);d.info("runScript",b),(0,s.runScript)(b).catch((function(e){console.error(e)}))}return h}null==r.default._jsonpCounter&&(r.default._jsonpCounter=0);var f=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.timeout||(i.timeout=5e3),i.onerror||(i.onerror=function(){});var r=setTimeout(i.onerror,i.timeout),o=function(e){clearTimeout(r),n&&n(e)};h(e,t,o,i)}},(e,t,n)=>{var i=function(e,t){return function(){return e.apply(t,arguments)}},r=[].slice;!function(e){var t,o,a,s,u,l,c,d,h,f,p,y,v,m,g,b,_,w,O,k,P,T,S,E,C,A,D,j,x,M,R,I,B,F,L,W,H,V,U,N,q,z,K,G,Q,Y,X,$,Z,J,ee,te,ne,ie,re,oe,ae,se,ue,le,ce,de,he,fe,pe,ye,ve,me,ge,be,_e,we,Oe,ke,Pe,Te,Se;if(!(s=e).PublicApi)o=n(84),a=n(90),ie=n(91),ee=ie.pluginScriptsToLoad,H=ie.getPluginsNotInList,te=n(92).prefetchEngineAndPlugins,re=n(93),z=re.injectJsonLd,ve=re.removeInjectedJsonLd,ue=n(30),ne=ue.proto,J=ue.parseUrl,le=n(96),Te=le.wData,Se=le.wRemoveData,ce=n(57),p=ce.doTimeout,d=ce.clearTimeouts,de=n(66),_e=de.secondsToIso8601Time,be=de.secondsToIso8601Duration,he=n(65),B=he.formattedDurationToSeconds,he.isValidDurationString,he.durationStringToSeconds,we=n(20).seqId,u=n(7).default,fe=n(6),h=fe.clone,$=fe.merge,G=fe.isEmpty,c=fe.cast,Oe=fe.setDeep,L=fe.getDeep,Q=fe.isObject,pe=n(59),f=pe.countMetric,me=pe.sampleMetric,l=n(39).base64Decode,V=n(97).getViewerPreferences,y=n(28).dynamicImport,n(98).getChannelStorage,Y=n(99).maybeLoadAndSetupEmbedLinksThrottled,q=n(102).inferQualityRangeFromOpts,F=n(103).generateRelativeBlockCss,ye=n(104),W=ye.getEmbedOptionStore,t=ye.GLOBAL_ID_KEY,s.Judy=o,s.Assets=n(43),oe=n(5),g=oe.elemAddClass,oe.elemAfter,b=oe.elemAnimate,_=oe.elemAppend,w=oe.elemBefore,O=oe.elemFromObject,k=oe.elemHasClass,P=oe.elemHeight,T=oe.elemInDom,S=oe.elemIsHidden,E=oe.elemOffset,oe.elemPrepend,C=oe.elemRebind,A=oe.elemRemove,D=oe.elemStyle,j=oe.elemUnbind,x=oe.elemUnbindAll,M=oe.elemUnbindAllInside,R=oe.elemWidth,N=oe.inUserEventContext,ge=n(105).scrollTop,ae=n(29),m=ae.eV1Protocol,v=ae.eV1HostWithPort,U=n(13).globalTrigger,Pe=n(106).uniqId,n(39).throttle,se=n(107),K=se.insertIntoArray,ke=se.toArray,X=n(42).mediaDataTransforms,I=n(47).default,s.PublicApi=function(){function e(e,t){var n,r,o,u;this._definePluginMethod=i(this._definePluginMethod,this),this._doResize=i(this._doResize,this),this._doMonitor=i(this._doMonitor,this),this._initWithMediaData=i(this._initWithMediaData,this),this._allocEmbedSlot=i(this._allocEmbedSlot,this),this.on("problem",(u=this,function(e){return e.video=u,U("problem",e)})),this.info("initialize"),this._hasImpl=new a,this._notReplacing=new a,this._notReplacing(!0),this.hasPlugins=new a,this.up=new a,this.up(!0),this.down=new a,this.down(!1),this.inViewport=new a,this.inViewport(!1),this._implVersion=0,this._playlistIndex=0,this._attrs={},this.params={},this.options={},this.controls={},this._pluginStopGos={},this.plugins={},this.data={},this._definePluginMethod(),this.hashedId(e),this._givenOptions=t,this._playlist=[],this._setupContainer(),this._validate(),this._inferPropertiesBeforeMediaData(),this._dedupContainer(),this._addToGlobalCache(),this._setupBindings(),this.supportedPlayers=[],this.addToPlaylist(this.hashedId(),t),this.down(this.looksDown()),this.up(this.looksUp()),this._hasImpl(function(e){return function(){if(e._wvideoInUrl())return e._scrollToContainer(),e.popover?e.embedded((function(){return e.popover.showAndPlay()})):e.play()}}(this)),null!=(o=window.wistiaEmbeds)&&o.bindHandles(),this.monitor(),this.embedded(function(e){return function(){return e.monitor()}}(this)),this.ready(function(e){return function(){return e.monitor()}}(this)),n=function(e){return function(){return e._onInitializable((function(){return e._withFreeEmbedSlots((function(){var t;return e._initTime=(new Date).getTime(),e.hasData((function(){return e._hasDataTime=(new Date).getTime()})),e.embedded((function(){return e._embeddedTime=(new Date).getTime()})),e.ready((function(){return e._readyTime=(new Date).getTime()})),(t=e._gatherOptions()).mediaData?e._initWithMediaData(t.mediaData):s.remote.media(e.hashedId(),e._initWithMediaData,e._gatherOptions(),(function(){return f("player/failure/init-failed")}))}))}))}}(this),this._shouldBePopover()?(this.popover={show:function(e){return function(){return e._hasImpl((function(){return e.popover.show()}))}}(this),hide:function(e){return function(){return e._hasImpl((function(){return e.popover.hide()}))}}(this),height:function(e){return function(t,n){return null!=t?e._hasImpl((function(){return e.popover.height(t,n)})):0}}(this),width:function(e){return function(t,n){return null!=t?e._hasImpl((function(){return e.popover.width(t,n)})):0}}(this)},y("popover.js").then(function(e){return function(){return e.popover=new s.Popover(e),n()}}(this))):n(),this.trigger("initembed"),Y(),performance.mark("player_init_complete");try{me("player/initembed-latency",performance.measure("player_init_latency","player_init_start","player_init_complete").duration)}catch(e){r=e,setTimeout((function(){throw r}),0)}}return e.prototype._withFreeEmbedSlots=function(e){var t,n;return this._setupEmbedSlots(),t=null,this.embedded((n=this,function(){return clearTimeout(t),t=setTimeout((function(){return n._freeEmbedSlot()}),n._embedSlotThrottleInterval())})),null==this._freeEmbedSlotOnError&&(this._freeEmbedSlotOnError=function(e){return function(){return e._freeEmbedSlot(),e.unbind}}(this)),this.rebind("servererror",this._freeEmbedSlotOnError),s._embedSlotFree(function(n){return function(){return n._allocEmbedSlot(),t=setTimeout((function(){return n._freeEmbedSlot()}),1e3),e()}}(this))},e.prototype._onInitializable=function(e){return this.popover&&S(this.container)?(this.info("popover, delaying init until container is visible"),s.eventLoop.add(this.uuid+".wait_for_container_visible",500,(t=this,function(){var n;if(!S(t.container)){t.info("container became visible, initializing");try{e()}catch(e){n=e,s.error(n)}return s.eventLoop.remove}}))):e();var t},e.prototype._setupEmbedSlots=function(){if(null==s._embedSlots&&(s._embedSlots=[]),!s._embedSlotFree)return s._embedSlotFree=new a,s._embedSlotFree(!0)},e.prototype._maxEmbedSlots=function(){var e,t;return(t=function(){var t,n;for(e in n=[],t=Te("video"))t[e],n.push(e);return n}().length)>20?5:t>10?8:13},e.prototype._embedSlotThrottleInterval=function(){return 500},e.prototype._freeEmbedSlot=function(){var e;if(this._setupEmbedSlots(),s._embedSlots=function(){var t,n,i,r;for(r=[],t=0,n=(i=s._embedSlots).length;t<n;t++)(e=i[t])!==this&&r.push(e);return r}.call(this),s._embedSlots.length<this._maxEmbedSlots())return s._embedSlotFree(!0)},e.prototype._allocEmbedSlot=function(){if(this._setupEmbedSlots(),s._embedSlots.push(this),s._embedSlots.length>=this._maxEmbedSlots())return s._embedSlotFree(!1)},e.prototype._shouldLazyLoad=function(){var e;return e=this._gatherOptions(),!window._inWistiaIframe&&parent===self&&(e.lazyLoad||this.popover&&!1!==e.lazyLoad)},e.prototype._initWithMediaData=function(e){var t,n,i,r;this.info("_initWithMediaData",e);try{0===s.Player.assets(e,{public:!0}).length&&s.Metrics.videoCount(this,"player/no-public-assets")}catch(e){t=e,this.debug(t)}if(!this.isRemoved())return e.error?(this.notice("display error message from server"),this._displayServerError(e),void this.trigger("servererror")):(this.hashedId(e.hashedId),this._originalMediaData=h(e),this._mediaData=e,this._mediaData=X(e,this._gatherOptions()),this.data.media=e,this.info("_optionSources",this._optionSources()),this._opts=this._gatherOptions(),this.info("_opts",h(this._opts)),$(this._mediaData,this._opts.mergeMediaData),this._inferPropertiesAfterMediaData(),i=o.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=o.playerPlugins(this.judyCtx(),i,this._mediaData,this._opts),o.logWarnings(this.judyCtx(),i,this._mediaData,this._opts),this._implVersion+=1,n=this._implVersion,this._execPlugins().then((r=this,function(){var e,t,a;if(r._implVersion===n){r.hasPlugins(!0),t=s.PublicApi.classFor(i),r.supportedPlayers=o.supportedPlayers(r.judyCtx(),r._mediaData.assets);try{r._impl=new t(r).init()}catch(n){throw e=n,r.error("Failed to initialize impl of class",t,"preferred",i,"supported",r.supportedPlayers),e}return r.grid=r._impl.setupGrid({initDimensions:!1}),r._hasImpl(!0),r.hasData(!0),(null!=(a=r._embedContainer)?a.parentNode:void 0)?(r._runMethodsFromOptions(),r._impl.embed(),r._getFadeInTime()>0&&D(r._impl.gridChildren(),{opacity:0}),r._impl.embedded((function(){return r._getFadeInTime()>0?b(r._impl.gridChildren(),{opacity:1},{time:r._getFadeInTime(),callback:function(){return r.trigger("transitiondone")}}):r.trigger("transitiondone")})),p(r.uuid+".prefetch_next_media",(function(){return r.prefetchNextMedia()}),2e3),r._injectJsonLd()):r.notice("embed(): container removed, giving up")}r.notice("_initWithMediaData(): impl changed from",n,"to",r._implVersion,"not completing init")})));this.notice("abort, video already removed")},e.prototype._getFadeInTime=function(){return null!=this._opts.fadeInTime?this._opts.fadeInTime:200},e.prototype.judyCtx=function(){return this._judyCtx||(this._judyCtx=o.buildContext({pageUrl:this._attrs.pageUrl}))},e.prototype._wvideoInUrl=function(){return!this._opts._inIframe&&J(this._attrs.pageUrl).params.wvideo===this.hashedId()},e.prototype._scrollToContainer=function(){var e;return e=E(this.container),ge(e.top-100)},e.prototype._injectJsonLd=function(){if(this._jsonLdId&&ve(this._jsonLdId),"notplayable"!==this.playerType&&"passwordprotected"!==this.playerType&&!this._opts._inIframe&&!1!==this._opts.seo)return this._jsonLdId="w-json-ld"+this._impl.uuid,z(this._jsonLdId,this._mediaData,{videoWidth:this.videoWidth(),videoHeight:this.videoHeight(),embedOptions:this._opts})},e.prototype._setDeprecatedProperties=function(){return this.options=h(this._opts),this.params=h(this._opts),$(this.params,this._attrs),this._attrs.email&&(this.params.trackEmail=this._attrs.email),this._hasImpl((e=this,function(){var t;return e.playerType=e.embedType=null!=(t=e._impl)?t.playerType:void 0}));var e},e.prototype.elem=function(){var e;return null!=(e=this._impl)&&"function"==typeof e.elem?e.elem():void 0},e.prototype._execPlugins=function(){var e;return this._pluginScripts=ee(this._mediaData,this._opts,this._playerPlugins),s.plugin._setFnForDefinedPlugins(this,this._pluginScripts),(e=H(this._pluginScripts)).length>0&&f("custom-plugin-exec",1,{customPlugins:e,hashedId:this._hashedId,url:window.location.href}),this.info("_execPlugins",this._pluginScripts),s.plugin._execQueue(this,this._pluginScripts)},e.prototype._optionSources=function(e){var n,i,r,o,a,s,u,l;if(null==e&&(e={}),"v1"===(r=(e=$({givenOptions:h(this._givenOptions),mediaData:h(this._mediaData),hashedId:this._hashedId,container:this.container},e)).givenOptions).version?n={}:e.mediaData?delete(n=h(e.mediaData.embedOptions)).stillUrl:n={},a=I(["autoPlay","deliveryCdn","hls","techInfo"],this._inferPageUrl()),i={},u={customize:n,global:W(t),hashedId:W(e.hashedId),dom:W("__"+e.container.id+"_dom_options__"),container:W(e.container.id),inline:r,inferredOptions:i,viewerPreferences:V(),channelPreferences:r.channelPreferences||{},queryParamOptions:a,override:e.override||{}},r.optionSourceOverrides)for(o in s=r.optionSourceOverrides)l=s[o],u.hasOwnProperty(o)&&(u[o]=l);for(o in u)l=u[o],G(l)&&delete u[o];return u},e.prototype._mergeSources=function(e,t){var n,i,r,o,a;for(n in i={},e)a=e[n],(null!=(r=t.only)?r.indexOf(n):void 0)>=0||(null!=(o=t.except)?o.indexOf(n):void 0)<0?$(i,a):t.only||t.except||$(i,a);return i},e.prototype._gatherOptions=function(e){var t,n,i;return null==e&&(e={}),i=this._optionSources(e),"v1"===(n=this._mergeSources(i,e)).version&&(i.customize={},n=this._mergeSources(i,e)),c(n),this._normalizeOptions(n),t=e.mediaData||this._mediaData,"html5"===n.playerPreference&&(n.playerPreference="vulcan-v2"),(null!=t?t.useMediaDataHostLogic:void 0)&&(n.useMediaDataHostLogic=!0),n},e.prototype.hashedId=function(e){return null!=e?(this._hashedId=e,this):this._hashedId},e.prototype.isAudio=function(){return"Audio"===this._mediaData.mediaType},e.prototype.isLiveMedia=function(){return"LiveStream"===this._mediaData.mediaType},e.prototype._normalizeOptions=function(e){return e.twitter&&(this.info("twitter detected"),L(e,"plugin.socialbar-v1")&&(this.info("disabled socialbar"),Oe(e,"plugin.socialbar-v1.on",!1))),null!=e.playButtonVisible&&(e.playButton=c(e.playButtonVisible),delete e.playButtonVisible),e},e.prototype._setupContainer=function(){var e,t,n,i;if(this._containerId=this._givenOptions.container?this._givenOptions.container:"wistia_"+this.hashedId(),"string"==typeof this._containerId?this.container=document.getElementById(this._containerId):this.container=this._containerId,this.container){for(this.container.wistiaApi=this,this._startingHtml=this.container.innerHTML,t=0,n=(i=Array.prototype.slice.call(this.container.childNodes)).length;t<n;t++)e=i[t],k(e,"wistia_swatch")||A(e);g(this.container,"wistia_embed_initialized")}return this.info("container",this.container)},e.prototype._inferPropertiesBeforeMediaData=function(){var e;if(this.chrome=O({id:we("wistia_chrome_"),class:"w-chrome",style:F,tabindex:-1}),D(this.chrome,{outline:"none",overflow:"hidden",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),e=this._gatherOptions(),this._shouldBePopover()?(this._popoverContainer=O({role:"dialog",id:this.container.id+"_popover_container"}),s.detect.safari||s.detect.iphone||s.detect.ipad||this._popoverContainer.setAttribute("aria-modal",!0),this._embedContainer=O({id:this.container.id+"_popover",style:{height:this._popoverSize(e).height+"px",width:this._popoverSize(e).width+"px"}}),_(this._popoverContainer,this._embedContainer),_(document.body,this._popoverContainer)):this._embedContainer=this.container,_(this._embedContainer,this.chrome),e.uuid?this.uuid=e.uuid:this.uuid=we(),this.info("uuid",this.uuid),null!=e.playlistLoop&&(this._attrs.playlistLoop=e.playlistLoop),this._embedContainer)return this._attrs.startingWidth=R(this._embedContainer),this._attrs.startingHeight=P(this._embedContainer)},e.prototype._shouldBePopover=function(){var e;return!(e=this._gatherOptions())._inIframe&&(!0===e.popover||"v2"===e.popover)},e.prototype._popoverSize=function(e){var t,n,i,r,o;return null==e&&(e=this._opts),null==e&&(e={}),e.popoverSize?(o=(r=(null!=(i=e.popoverSize)?i.split("x"):void 0)||[640,360])[0],t=r[1],o=parseInt(o),t=parseInt(t)):this._mediaData&&(n=this.asset({container:"mp4",width:[0,960],sortBy:"width desc"}))?(o=n.width,t=n.height):(o=640,t=360),{width:o,height:t}},e.prototype._inferPropertiesAfterMediaData=function(){var e,t,n,i,r,o,a;return this._attrs.shouldTrack=!this._opts.doNotTrack,this._attrs.seekThreshold=this._opts.seekThreshold||1.5,i=(r=q(this._opts,this._mediaData))[0],n=r[1],this._attrs.qualityMin=i,this._attrs.qualityMax=n,this._opts.videoQuality&&f("legacy/video-quality-set",1,{hashedId:this._hashedId,videoQuality:this._opts.videoQuality,url:window.location.href}),this._attrs.qualityMax<this._attrs.qualityMin&&(this.error("qualityMax "+this._attrs.qualityMax+" is less than qualityMin "+this._attrs.qualityMin+". Setting qualityMax to "+this._attrs.qualityMin+"."),this._attrs.qualityMax=this._attrs.qualityMin),this._attrs.pageUrl||(this._attrs.pageUrl=this._inferPageUrl()),this._attrs.referrerUrl||(this._attrs.referrerUrl=(null!=(o=this._opts)?o.referrerUrl:void 0)||document.referrer),null!=this._opts.trackEmail&&(this._attrs.email=this._opts.trackEmail),!this._attrs.email&&this._attrs.shouldTrack&&(a=this._extractEmailFromParams())&&(this._attrs.email=a),!this._attrs.email&&s.localStorage([this._attrs.pageUrl,"trackEmail"])&&(this._attrs.email=s.localStorage([this._attrs.pageUrl,"trackEmail"])),t=(e=this._attrs.playerColor)&&e!==this._opts.playerColor,this._attrs.playerColor=s.Player._sanePlayerColor(this._opts.playerColor||"636155"),t&&this.trigger("playercolorchange",this._attrs.playerColor,e),this._attrs.playerBackgroundColor=this._opts.playerBackgroundColor||"#000000",this._opts.noDeprecatedProperties||this._setDeprecatedProperties(),this},e.prototype._inferPageUrl=function(){var e,t,n;return(null!=(e=this._opts)?e.pageUrl:void 0)?this._opts.pageUrl:(null!=(t=window.FreshUrl)?t.originalUrl:void 0)?null!=(n=window.FreshUrl)?n.originalUrl:void 0:top===self?location.href||"":document.referrer||""},e.prototype._extractEmailFromParams=function(){var e,t,n,i,r;return(i=(null!=(t=this._attrs.pageUrl)?t.match(/wemail\=([^\&\#]+)/):void 0)||null)?i[1]:(r=(null!=(n=this._attrs.pageUrl)?n.match(/wkey\=([^\&\#]+)/):void 0)||null)?(e=r[1],l(e)):null},e.prototype._runMethodsFromOptions=function(){var e,t,n,i,r;if(null!=this._opts.foreignData&&this.foreignData(this._opts.foreignData),null!=this._opts.email?this.email(this._opts.email):null!=this._opts.trackEmail&&this.email(this._opts.trackEmail),null!=this._opts.playerLanguage&&this.playerLanguage(this._opts.playerLanguage),null!=this._opts.videoFoam&&this.videoFoam(this._opts.videoFoam),this._opts.controlScaling&&this.controlScaling(this._opts.controlScaling),this._hasImpl((r=this,function(){if(null!=r._opts.playerColor)return r.playerColor(r._opts.playerColor)})),null!=this._opts.volume&&this.volume(this._opts.volume),!0!==this._opts.muted&&0!==this._opts.volume||this.mute(),!1===this._opts.muted&&this.unmute(),this._opts.suppressPlay&&this.suppressPlay(this._opts.suppressPlay),this.popover&&!("function"==typeof(e=this.popover).isVisible?e.isVisible():void 0)||!this._opts.autoPlay||this._hasImpl(function(e){return function(){return e._playSuspendedOffScreenEnabled()?e.inViewport()?e.play():e.bind("enterviewport",(function(){return e.play(),e.unbind})):e.play()}}(this)),this._opts.pause&&this.pause(),null!=this._opts.time)return n=s.detect.iphone||s.detect.ipad||s.detect.android,t=this.popover&&!this.popover._visible,i="playing"!==this.state()&&(n||t),this.time(this._opts.time,{lazy:i})},e.prototype._playSuspendedOffScreenEnabled=function(){return null!=this._opts.playSuspendedOffScreen&&"auto"!==this._opts.playSuspendedOffScreen?this._opts.playSuspendedOffScreen:this.isMuted()},e.prototype._validate=function(){var e;if((e=this._errors()).length>0)throw new Error(e.join(", "));return!0},e.prototype._errors=function(){var e;return e=[],this.container||e.push('Could not find element with ID "'+this._containerId+'" in DOM. Failed to initialize video "'+this._hashedId+'".'),e},e.prototype._dedupContainer=function(){var e,t,n,i,r,o,a;if(Te("video")){for(a in o=[],i=Te("video"))e=i[a],this.container.id&&(null!=(r=e.container)?r.id:void 0)===this.container.id&&o.push(e);for(t=0,n=o.length;t<n;t++)e=o[t],this.notice("_dedupContainer",e.container.id),e.remove();if(o.length>0)return this.container.wistiaApi=this}},e.prototype._addToGlobalCache=function(){return this.info("_addToGlobalCache",this.uuid),Te(["video",this.uuid],this)},e.prototype._displayServerError=function(e){var t;return e.iframe?(t=this._gatherOptions().useMediaDataHostLogic?m()+"//"+v():ne()+"//"+s.remote.embedHost(),this.container.innerHTML="<iframe src='"+t+"/embed/iframe/"+this.hashedId()+"' height='"+this.height()+"' width='"+this.width()+"' frameborder='0' scrolling='no'></iframe>"):this.container.innerHTML="<div style='background:#fff;border:2px dashed #ddd;color:#aaa;font-family:Century Gothic,Arial;font-size:14px;text-align:center;width:"+this.width()+";height:"+this.height()+";'><div style='padding:20px;'>"+(e.message||e.error)+"</div></div>"},e.prototype._implExec=function(){var e,t,n;return t=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],this._hasImpl((n=this,function(){var i;return n._impl[t]?n._impl[t]._originalMethod===n[t]?void n.warn("calling "+t+" would result in an infinite loop"):(i=n._impl)[t].apply(i,e):n.warn(t+" is not defined",s.stacktrace())})),this},e.prototype._implGet=function(){var e,t,n,i;return n=arguments[0],t=arguments[1],e=3<=arguments.length?r.call(arguments,2):[],null==t&&(t=null),this._hasImpl()?this._impl[n]?this._impl[n]._originalMethod===this[n]?void this.warn("calling "+n+" would result in an infinite loop"):(i=this._impl)[n].apply(i,e):this.warn(n+" is not defined",s.stacktrace()):t},e.prototype._implSetOrGet=function(){var e,t,n;return n=arguments[0],t=arguments[1],(e=3<=arguments.length?r.call(arguments,2):[]).length>0?this._implExec.apply(this,[n].concat(r.call(e))):this._implGet(n,t)},e.prototype._implPromise=function(){var e,t,n;return t=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],new Promise((n=this,function(i,r){return n._hasImpl((function(){var o,a;return n._impl[t]?n._impl[t]._originalMethod===n[t]?void n.warn("calling "+t+" would result in an infinite loop"):(a=(o=n._impl)[t].apply(o,e))instanceof Promise?a.then(i).catch(r):i(a):r(new Error(t+" is not defined on _impl"))}))}))},e.prototype.rebuild=function(){return this._hasImpl((e=this,function(){return e._impl.rebuild(),e._runMethodsFromOptions()}));var e},e.prototype.fullRebuild=function(e){return null==e&&(e={}),this.replaceWith(this._impl._mediaData,$({force:this._impl.playerType,inPlace:!1,transition:"none"},e))},e.prototype.rebuildAs=function(e,t){return null==t&&(t={}),this.fullRebuild($(this._givenOptions,t,{force:e,transition:"none"}))},e.prototype.replace=function(e,t){return null==t&&(t={}),this.replaceWith(e,$({inlineOptionsOnly:!0},t))},e.prototype.replaceWith=function(e,t){var n,i;return null==t&&(t={}),this.info("replaceWith",e,t),i=this,n=function(){var n,r,o,a;return a=i._impl?i._replaceWithMediaData:i._initWithMediaData,i._impl.trigger("beforereplace",e),i._notReplacing(!1),i.hasData(!1),i._hasImpl(!1),i._initTime=(new Date).getTime(),i.hasData((function(){return i._hasDataTime=(new Date).getTime(),i.embedded((function(){return i._embeddedTime=(new Date).getTime()}))})),Q(e)?a.call(i,e,t):(r=s.mediaFromCache(e))?a.call(i,r,t):(delete(n=h(i._gatherOptions())).idType,o=$({},n,t,{errorCallback:function(){return f("player/failure/replace-failed")}}),s.remote.media(e,(function(e){return a.call(i,e,t)}),o))},this._hasImpl(function(e){return function(){return e._notReplacing(n)}}(this)),this},e.prototype._replaceWithMediaData=function(){var e,t;return e=1<=arguments.length?r.call(arguments,0):[],this._impl.commandQueueOpen.synchronize((t=this,function(n){return t._replaceWithMediaDataQueuable.apply(t,e),t._notReplacing(n)}))},e.prototype._replaceWithMediaDataQueuable=function(e,t){var n,i,r,u,l,d,f,y,v,m,g,b,_,w,O,k;return null==t&&(t={}),t=h(t),this.info("_replaceWithMediaData",e,t),e.error?(this._displayServerError(e),void this.trigger("servererror")):(null!=t.playlistIndex?(this._playlistIndex=t.playlistIndex,delete t.playlistIndex):this._inPlaylist(e.hashedId)&&(this._playlistIndex=this._playlistIndexOf(e.hashedId)),null!=t.playlistShouldAutoAdvance&&(this._playlistShouldAutoAdvance=t.playlistShouldAutoAdvance),t.inlineOptionsOnly&&(l=t.inlineOptionsOnly,delete t.inlineOptionsOnly),null!=t.inPlace&&(u=t.inPlace,delete t.inPlace),null!=t.transition&&(w=t.transition,delete t.transition),null!=t.transitionTime&&(O=t.transitionTime,delete t.transitionTime),this.hasData(!1),this._hasImpl(!1),null!=(v=this._impl._tracker)&&v.stopMonitoring(),this._clobberVideoBindings(),this._savedState={},this._suspended=!1,"function"==typeof(f=this._impl).wipeOutstandingAsyncFunctions&&f.wipeOutstandingAsyncFunctions(),this._hashedId=e.hashedId,this._originalMediaData=e,this.data.media=e,this._givenOptions=t,this._mediaData=e,this._opts=l?this._gatherOptions({only:"inline"}):this._gatherOptions(),this._embedOptions=null,this._mediaData=X(e,this._opts),f.trigger("beforereplaceengine"),f.freezeLastFrame(),y=new a,_=function(){return y.go()},N()&&!0===this._opts.autoPlay&&!f.isMuted()&&(n=f.engine)?(n.stopStreaming(),n.play().then(_).catch(_),setTimeout(_,2e3)):_(),!1===c(null!=(m=this._mediaData.embedOptions.plugin)&&null!=(g=m.passwordProtectedVideo)?g.on:void 0)&&null!=(null!=(b=this._opts.plugin)?b.passwordProtectedVideo:void 0)&&(this._opts.plugin.passwordProtectedVideo.on=!1),this.info("_opts",h(this._opts)),$(this._mediaData,this._opts.mediaData),this._inferPropertiesAfterMediaData(),r="notplayable"!==f.playerType&&("passwordprotected"!==f.playerType&&(!("html5"!==f.playerType||!(s.detect.iphone||s.detect.android||s.detect.ipad||s.detect.safari))||null!=u&&u)),this.info("inPlace",r),d=o.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=o.playerPlugins(this.judyCtx(),d,this._mediaData,this._opts),o.logWarnings(this.judyCtx(),d,this._mediaData,this._opts),r&&(this.removePlugins(),f.stopStreaming()),this.plugin=null,this._pluginStopGos={},this._definePluginMethod(),this.hasPlugins(!1),f.commandQueueOpen.setQueue([]),this.removeSwatch(),this._implVersion+=1,i=this._implVersion,y((k=this,function(){var e;return null!=(e=f.engine)&&e.destroy(),k._execPlugins().then((function(){var e,t;if(k._implVersion===i)return k.hasPlugins(!0),k.supportedPlayers=o.supportedPlayers(k.judyCtx(),k._mediaData.assets),t=s.PublicApi.classFor(d),k._impl=new t(k).init(),k._setupBindings(),k.grid=r?k._impl.grid=f.grid:k._impl.setupGrid({initDimensions:!1}),"function"==typeof(e=k._impl).transferStateFrom&&e.transferStateFrom(f),k._hasImpl(!0),k.hasData(!0),r||k._runMethodsFromOptions(),r?k._replaceMode((function(){return k._impl.initFrom(f)})):k._replaceMode((function(){return k._embedWithTransitionFrom(f,w,{time:O})})),k.embedded((function(){return k._notReplacing(!0)})),r&&k._runMethodsFromOptions(),k._allowContainerMatch()&&k.width(k.containerWidth(),{constrain:!0}),p(k._impl.uuid+".inject_json_ld",(function(){return k._injectJsonLd()})),k.trigger("afterreplace"),p(k.uuid+".prefetch_next_media",(function(){return k.prefetchNextMedia()}),2e3);k.notice("replaceWith(): impl changed from",i,"to",k._implVersion,"not completing replacement")}))})))},e.prototype._embedWithTransitionFrom=function(e,t,n){var i,r;return null==t&&(t="none"),this.info("_embedWithTransitionFrom",e,t),i=new Promise((r=this,function(e){var t,n;return(null!=(t=r._impl.lastPlayInfo())?t.isPending:void 0)?(n=r._impl.on("play",(function(){return n(),e()})),p(r._impl.uuid+".slow_play_fallback",(function(){return r._impl.embedded((function(){return n(),e()}))}),2e3)):r._impl.embedded(e)})),"slide"===t||"slideleft"===t?(this.info("slideleft"),this._impl.embed(e),i.then(function(t){return function(){return e.slideOutLeft(n,(function(){return e.remove()})),t._impl.slideInLeft(n,(function(){return t._impl.trigger("transitiondone")}))}}(this))):"slideright"===t?(this.info("slideright"),this._impl.embed(e),i.then(function(t){return function(){return e.slideOutRight(n,(function(){return e.remove()})),t._impl.slideInRight(n,(function(){return t._impl.trigger("transitiondone")}))}}(this))):"fade"===t?(this.info("fade"),"transparent"!==e._opts.wmode&&(e.grid.center.style.backgroundColor="#000"),null!=n.time&&(n.time=Math.round(n.time/2)),e.fadeOut(n,function(t){return function(){var r;return e.remove(),"transparent"!==t._impl._opts.wmode&&null!=(r=t._impl.grid)&&(r.center.style.backgroundColor="#000"),t._impl.embed(e),i.then((function(){return t._impl.fadeIn(n,(function(){var e;return null!=(e=t._impl)&&(e.grid.center.style.backgroundColor=""),t._impl.trigger("transitiondone")}))}))}}(this))):"crossfade"===t?(this.info("crossfade"),e.grid&&D(e.grid.root,{position:"absolute",zIndex:0}),D(this._impl.grid.root,{zIndex:1}),this._impl.embed(e),i.then(function(t){return function(){return t._impl.fadeIn(n,(function(){return e.remove(),D(t._impl.grid.root,{zIndex:""}),t._impl.trigger("transitiondone")}))}}(this))):(this.info("no transition"),this._impl.embed(e),e.remove(),i.then(function(e){return function(){return setTimeout((function(){return e._impl.trigger("transitiondone")}),0)}}(this)))},e.prototype._clobberVideoBindings=function(){var e,t,n;for(e in n=[],t=this._bindings)t[e],"afterreplace"!==e&&"beforereplace"!==e&&"all"!==e?n.push(this.unbind(e)):n.push(void 0);return n},e.prototype._replaceMode=function(e){return this.info("_replaceMode",!0),this._impl._replacing=!0,e(),this._impl.embedded((t=this,function(){return t._impl._replacing=!1,t.info("_replaceMode",!1)}));var t},e.prototype.remove=function(e){var t,n,i,r,o,a,u,l;return null==e&&(e={}),this.info("remove"),this.trigger("down"),this.trigger("beforeremove"),this._freeEmbedSlot(),null!=(t=this.elem())&&null!=(n=t.mux)&&"function"==typeof n.destroy&&n.destroy(),this.removeSwatch(),this._implExec("remove",{trigger:!1}),this._hasImpl(!1),ve(this._jsonLdId),null!=(i=this.popover)&&"function"==typeof i.remove&&i.remove(),null!=(r=this._impl)&&r.stopStreaming(),null!=(o=this._intersectionObserver)&&o.disconnect(),x(this._foamDummyElem),A(this._foamDummyElem),null!=(a=s.eventLoop)&&a.remove(this.uuid),d(this.uuid),this._unbindListeners(),A(this.chrome),Se(["video",this.uuid]),this.trigger("afterremove"),this._bindings={},e.unsetWistiaApiOnContainer?this.container.wistiaApi=void 0:this.container.wistiaApi="removed",this._impl=null,null!=(u=window.__wistiaStores)&&(u[this.uuid]=null),null!=(l=window.__wistiaStores)?delete l[this.uuid]:void 0},e.prototype.removeSwatch=function(){var e;if(e=this.container.querySelector(".wistia_swatch"))return A(e)},e.prototype.fullRemove=function(){var e,t,n;return t=this._embedContainer,n=this._popoverContainer,e=this.container,this.remove(),A(t),A(n),A(e),this.container=this._embedContainer=null,this},e.prototype.isRemoved=function(){return!Te(["video",this.uuid])},e.prototype._unbindListeners=function(){if(M(this.chrome),this._throttleTriggerViewport&&j(window,"scroll",this._throttleTriggerViewport),this._doResize)return j(window,"resize",this._doResize)},e.prototype._saveState=function(){var e;return this._savedState={state:this.state(),time:this.time(),volume:this.volume(),inFullscreen:this.inFullscreen(),uuid:null!=(e=this._impl)?e.uuid:void 0}},e.prototype.suspend=function(){var e,t;if(!this._suspended)return this._saveState(),this.info("suspend",h(this._savedState)),this.pause(),this.suppressPlay(!0),!(null!=(e=this._impl)&&"function"==typeof e._inNativeMode?e._inNativeMode():void 0)&&s.detect.fullscreenEnabled||this.cancelFullscreen(),this._suspended=!0,this._suspendPlayBinding=(t=this,function(){return t.pause()}),this._suspendSeekBinding=function(e){return function(){return e.pause(),e.time(e._savedState.time)}}(this),this.bind("play",this._suspendPlayBinding),this.bind("seek",this._suspendSeekBinding),this.trigger("suspendstatechange",!0),this},e.prototype.unsuspend=function(e){var t,n,i;if(null==e&&(e={}),this._suspended)return n=$({},this._savedState,e),this.info("unsuspend",h(n)),this._suspended=!1,this.unbind("play",this._suspendPlayBinding),this.unbind("seek",this._suspendSeekBinding),n.uuid!==(null!=(t=this._impl)?t.uuid:void 0)||(this.suppressPlay(!1),this.volume(n.volume),i={pause:"playing"!==n.state},null!=n.time&&Math.abs(n.time-this.time())>.5&&("ended"===n.state?this.time(n.time-1,i):this.time(n.time,i)),"playing"===n.state&&this.play(),this.trigger("suspendstatechange",!1)),this},e.prototype._setupBindings=function(){var e;return this.bind("afterend",(e=this,function(){if(e.playlistShouldAutoAdvance())return e._suspended?e.bind("suspendstatechange",(function(t){if(!1===t)return"ended"===e.state()&&e._nextEmbedOrPlaylistLoop(),e.unbind})):e._nextEmbedOrPlaylistLoop()})),this.bind("widthchange",function(e){return function(){var t,n;return null!=(t=e._impl)&&(t._width=e._width=e.width()),null!=(n=e._impl)?n._videoWidth=e._videoWidth=e.videoWidth():void 0}}(this)),this.bind("heightchange",function(e){return function(){return e._impl._height=e._height=e.height(),e._impl._videoHeight=e._videoHeight=e.videoHeight()}}(this)),this.looksUp()&&(this.inViewport(this._isInViewportNow()),this.inViewport()?this.trigger("enterviewport"):this.trigger("leaveviewport")),this._intersectionObserver=new window.IntersectionObserver(function(e){return function(t){return t[0].isIntersecting?(e.trigger("enterviewport"),e.inViewport(!0)):(e.trigger("leaveviewport"),e.inViewport(!1))}}(this)),this._intersectionObserver.observe(this.container),C(window,"resize",this._doResize)},e.prototype._nextEmbedOrPlaylistLoop=function(){return this.nextVideo()?this.embedNext():this._attrs.playlistLoop?(this.info("playlistLoop"),this.embedIndex(0,{autoPlay:!0})):void 0},e.prototype._isInViewportNow=function(){var e,t,n,i;return!this.down()&&!this.looksDown()&&(!window.IntersectionObserver&&top!==self||(e=(t=E(this.container).top)+P(this.container),i=ge(),n=ge()+P(window),t>=i&&t<n||e>=i&&e<n||t<=i&&e>=n))},e.prototype._pauseEventLoop=function(){var e;if(s.eventLoop.pause(this.uuid),null!=(e=this._impl)?e.uuid:void 0)return s.eventLoop.pause(this._impl.uuid)},e.prototype._unpauseEventLoop=function(){var e;if(s.eventLoop.unpause(this.uuid),null!=(e=this._impl)?e.uuid:void 0)return s.eventLoop.unpause(this._impl.uuid)},e.prototype.playlistIndex=function(){return this._playlistIndexOf(this.hashedId())},e.prototype.nextVideo=function(){return this.playlistIndex()>=0&&this._playlist[this.playlistIndex()+1]||null},e.prototype.previousVideo=function(){return this.playlistIndex()>0&&this._playlist[this.playlistIndex()-1]||null},e.prototype._playlistIndexOf=function(e){var t,n,i,r;for(t=n=0,i=this._playlist.length;0<=i?n<=i:n>=i;t=0<=i?++n:--n)if((null!=(r=this._playlist[t])?r.hashedId:void 0)===e)return t;return-1},e.prototype._inPlaylist=function(e){return this._playlistIndexOf(e)>=0},e.prototype._setTransitionOptions=function(e){if(e.transition||(e.transition=this._opts.playlistTransition||"fade"),e.transitionTime||(e.transitionTime=this._opts.playlistTransitionTime),e.playlistIndex&&"slide"===e.transition)return e.playlistIndex>=this._playlistIndex?e.transition="slideleft":e.transition="slideright"},e.prototype.embedNext=function(e){var t,n;return n=this.nextVideo(),this.info("embedNext",n),(t=$({autoPlay:!0,resumable:!1},n.options,e)).playlistIndex=this._playlistIndex+1,t.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this._setTransitionOptions(t),this.replaceWith(n.hashedId,t)},e.prototype.embedPrevious=function(e){var t,n;return n=this.previousVideo(),this.info("embedPrevious",n),(t=$({autoPlay:!0,resumable:!1},n.options,e)).playlistIndex=this._playlistIndex-1,t.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(n.hashedId,t)},e.prototype.embedIndex=function(e,t){var n,i;return i=this._playlist[e],this.info("embedIndex",e,i),(n=$({autoPlay:!0},i.options,t)).playlistIndex=e,n.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(i.hashedId,n)},e.prototype.addToPlaylist=function(e,t,n){var i,r,o,a,s;for(null==t&&(t={}),null==n&&(n={}),null==this._playlist&&(this._playlist=[]),o=0,a=(s=ke(e)).length;o<a;o++)i={hashedId:r=s[o],options:t},(n=h(n)).after?n.detect=function(e){return e.hashedId===n.after}:n.before&&(n.detect=function(e){return e.hashedId===n.before}),this.info("addToPlaylist",i,n),K(this._playlist,i,n),this.hasData(function(e){return function(){var n,i;return r===(null!=(n=e.nextVideo())?n.hashedId:void 0)||r===(null!=(i=e.previousVideo())?i.hashedId:void 0)?e.prefetchMedia(r,t):void 0}}(this));return this.info("updated _playlist",h(this._playlist)),this.trigger("playlistchange",this._playlist),this._playlist},e.prototype.setPlaylist=function(e,t){return null==t&&(t={}),this._playlist=[],this.addToPlaylist(e,t),this._playlistIndex=this._playlistIndexOf(this.hashedId()),this.trigger("playlistchange",this._playlist)},e.prototype.playlistShouldAutoAdvance=function(){return null==this._playlistShouldAutoAdvance||this._playlistShouldAutoAdvance},e.prototype.setPlaylistShouldAutoAdvance=function(e){return this._playlistShouldAutoAdvance=e},e.prototype.prefetchNextMedia=function(){var e;if(!this._opts._inLegacyPlaylist&&(e=this.nextVideo()))return this.prefetchMedia(e.hashedId,e.options)},e.prototype.prefetchMedia=function(e,t){return null==t&&(t={}),t=u({embedHost:this._opts.embedHost},t,{errorCallback:function(){return f("player/failure/prefetch-failed")}}),this.info("@prefetchMedia",e),s.remote.media(e,(n=this,function(i){var r;return n.info("prefetched",e),r=n._gatherOptions({givenOptions:t,mediaData:i,hashedId:i.hashedId,container:n.container}),te(i,r)}),h(t));var n},e.prototype.addPlugin=function(e,t){return null==t&&(t={}),this.info("addPlugin",e,t),new Promise((n=this,function(i){return n._hasImpl((function(){return n.hasPlugin(e)||s.plugin._inject(n,e,t),n.plugin(e).then((function(e){return i(e)}))}))}));var n},e.prototype.hasPlugin=function(e){return!!this.plugin[e]},e.prototype.turnOffPluginApis=function(){var e,t,n,i;for(t in this.info("turnOffPluginApis"),i=[],n=this.plugin)n[t],i.push("function"==typeof(e=this._pluginStopGos)[t]?e[t](!1):void 0);return i},e.prototype.removePlugin=function(e){var t,n,i;if(n=this.plugin[e]){try{"function"==typeof n.remove&&n.remove()}catch(e){t=e,setTimeout((function(){throw t}),0)}return delete this.plugin[e],(null!=(i=this._impl.plugin)?i[e]:void 0)&&delete this._impl.plugin[e],n.uuid&&this.plugins&&(delete this.plugins[this.uuid],Se(["plugins",e,this.uuid,n.uuid])),this.fit(),this.trigger("pluginremoved",e)}},e.prototype.removePlugins=function(){var e,t,n;for(e in this.info("removePlugins"),n=[],t=this.plugin)t[e],n.push(this.removePlugin(e));return n},e.prototype.containerWidth=function(){return R(this._embedContainer)},e.prototype.containerHeight=function(){return P(this._embedContainer)},e.prototype._getEmbedVisibilityMetrics=function(){var e,t,n,i;return this.embedOptions()._inIframe?null:(i=P(window),t=(e=this.elem().getBoundingClientRect()).top+(n=e.height),{screen_scrolls:Math.max(0,t/i-1),ratio_of_screen:n/i})},e.prototype._goToDownState=function(){var e;return this.info("_goToDownState"),this._stateBeforeDown=this._lastState,this.up(!1),this.down(!0),null!=(e=this._impl.engine)&&e.pause(),this.ready(!1),this.trigger("down")},e.prototype._goToUpState=function(){var e;return this.info("_goToUpState"),this.down(!1),this._ignoreUp=!0,this._doSizing(),this._ignoreUp=!1,this.up(!0),this.ready(!1),this.fit(),null!=(e=this._impl)&&e.checkForReady(),"playing"===this._stateBeforeDown&&this.play(),this.trigger("up")},e.prototype._checkDownState=function(){var e;return e=this.looksDown(),this.up()&&e?(this.info("moving to down state"),this._goToDownState()):this.down()&&!e?(this.info("moving to up state"),this._goToUpState()):void 0},e.prototype._removeHandleIfGoneFromDOM=function(){return!!this.embedded()&&(this.elem()?!(!this._embedContainer||this._embedContainer.parentNode)&&(this.warn("container removed from DOM",this._embedContainer.id),this.remove({unsetWistiaApiOnContainer:!0}),!0):(this.warn("video element removed from DOM",this._embedContainer.id),this.remove(),!0))},e.prototype._doFoam=function(){var e,t,n,i,r,o,a,s,u,l,c;if(null==this._parentBoxSizing&&(this._parentBoxSizing=D(this._embedContainer.parentNode,"box-sizing")),this.popover?(u=(c=R(window))/(l=P(window)),t=(s=Math.min(c,l))>500?160:Math.abs(u-this.aspect())<.2?.2*s:.1*s,a=u>this.aspect()?Math.round((l-t)*this.aspect()):c-t):"border-box"===this._parentBoxSizing?(this._foamDummyElem||(this._foamDummyElem=O({class:"wistia_video_foam_dummy","data-source-container-id":this._embedContainer.id,style:{border:0,display:"block",height:0,margin:0,padding:0,position:"static",visibility:"hidden",width:"auto"}}),w(this._embedContainer,this._foamDummyElem)),a=R(this._foamDummyElem)):a=R(this._embedContainer.parentNode),!(isNaN(a)||this._lastParentWidth===a&&this._didFoam))return this._didFoam=!0,r=(o=a)-this.extraWidth(),n=(i=this.heightForWidth(r))+this.extraHeight(),(e=this.videoFoam()).maxHeight&&n>e.maxHeight&&(i=(n=e.maxHeight)-this.extraHeight(),o=(r=this.widthForHeight(i))+this.extraWidth()),e.maxWidth&&o>e.maxWidth&&(r=(o=e.maxWidth)-this.extraWidth(),n=(i=this.heightForWidth(r))+this.extraHeight()),e.minHeight&&n<e.minHeight&&(i=(n=e.minHeight)-this.extraHeight(),o=(r=this.widthForHeight(i))+this.extraWidth()),e.minWidth&&o<e.minWidth&&(r=(o=e.minWidth)-this.extraWidth(),n=(i=this.heightForWidth(r))+this.extraHeight()),this.info("videoFoam set width",o),this.width(o,{constrain:!0}),this._lastParentWidth=a},e.prototype._allowFoam=function(){var e;return this._hasImpl()&&this.grid&&(this.up()||this._ignoreUp)&&this.looksUp()&&(this._attrs.videoFoam||(null!=(e=this.popover)?e.isResponsive():void 0))&&!this.isAudio()},e.prototype._allowContainerMatch=function(){return(this.up()||this._ignoreUp)&&!this._opts.dontMonitorSize&&!this.inFullscreen()},e.prototype._doContainerMatch=function(){var e,t;if(t=this.containerWidth(),e=this.containerHeight(),this._lastWidth!==t&&(this.notice("container width changed to "+t+", matching"),this.width(t,{dontChangeContainer:!0}),this.info("_doContainerMatch set width",t),this.trigger("widthchange",t,this._lastWidth),this._lastWidth=t),this._lastHeight!==e)return this.notice("container height changed to "+e+", matching"),this.height(e,{dontChangeContainer:!0}),this.trigger("heightchange",e,this._lastHeight),this._lastHeight=e},e.prototype.monitor=function(){return this.info("monitor"),this._lastWidth=this._attrs.startingWidth,this._lastHeight=this._attrs.startingHeight,this._lastParentWidth=this.width(),this._didFoam=!1,this._hasImpl((e=this,function(){return s.eventLoop.add(e.uuid+".monitor",500,e._doMonitor)}));var e},e.prototype._doMonitor=function(){if(!this._removeHandleIfGoneFromDOM())return this._checkDownState(),this.chrome&&!T(this.chrome)&&(this.notice("Chrome was removed from DOM. Injecting it back in."),_(this._embedContainer,this.chrome)),this._doSizing()},e.prototype._doSizing=function(){return this.popover?this.popover.fixedSizeTooBigForWindow()?this._doFoam():this._opts.popoverSize?(this._lastWidth=this.width(),this._lastHeight=this.height(),this.width(this._popoverSize().width),this.height(this._popoverSize().height)):this._doFoam():this._allowFoam()?this._doFoam():this._allowContainerMatch()?this._doContainerMatch():void 0},e.prototype.looksDown=function(){return!this._embedContainer||!T(this._embedContainer)||S(this._embedContainer)},e.prototype.looksUp=function(){return!this.looksDown()},e.prototype._doResize=function(){var e;return"function"==typeof this._throttleTriggerViewport&&this._throttleTriggerViewport(),this._debounceDoMonitor||this.embedded((e=this,function(){return requestAnimationFrame((function(){return e._doMonitor(),e._debounceDoMonitor=!1}))})),this._debounceDoMonitor=!0},e.prototype._definePluginMethod=function(){var e;if(!this.plugin)return this.plugin=(e=this,function(t,n){var i;return(i=e._pluginStopGos[t])||(i=e._pluginStopGos[t]=new a)(!!e.plugin[t],e.plugin[t]),n?i((function(){return n(e.plugin[t])})):i})},e.prototype.videoFoam=function(e){return null!=e?(this.info("videoFoam",e),this._attrs.videoFoam=e,this.monitor(),e):this._attrs.videoFoam||!1},e.prototype._transformAndUpdateMediaData=function(){var e,t,n;return this._mediaData=X(this._originalMediaData,this._opts),null!=(e=this._impl)&&null!=(t=e.engine)&&t.onMediaDataChanged(this._mediaData,this._opts),null!=(n=this._impl)?n._mediaData=this._mediaData:void 0},e.prototype.specialBind=function(){var e,t,n,i,o,a,s;return t=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],"crosstime"===t?(i=e[0],n=e[1],this.onCrossTime(i,n),s=this,function(){return s.unbindOnCrossTime(i,n)}):"betweentimes"===t&&(o=e[0],a=e[1],n=e[2],this.betweenTimes(o,a,n),function(e){return function(){return e.unbindBetweenTimes(o,a,n)}}(this))},e.prototype.specialUnbind=function(){var e,t,n,i,o,a;return t=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],"crosstime"===t?(i=e[0],n=e[1],this.unbindOnCrossTime(i,n),!0):"betweentimes"===t&&(o=e[0],a=e[1],n=e[2],this.unbindBetweenTimes(o,a,n),!0)},e.prototype.onCrossTime=function(e,t){var n,i,r,o,a,s,u,l;if(!/^(\d+\.)?\d+$/.test(e))throw"onCrossTime: Expected first argument to be a number";if("function"!=typeof t)throw"onCrossTime: Expected second argument to be a function";return null==this._onCrossTimeBindings&&(this._onCrossTimeBindings={}),null==(i=this._onCrossTimeBindings)[e]&&(i[e]=[]),u=this.uuid+"."+Pe("after_time_"),n=this.time()>e,l=this,r=function(){return l.time()<e?o():n||(n=!0,t.call(l)!==l.unbind)?void 0:l.unbindOnCrossTime(e,t)},o=function(t){return function(){return t.time()>=e?(d(u),r()):n?void 0:p(u,r,1e3*(e-t.time()))}}(this),a=function(t){return function(){if(t.time()<e){if(n=!1,e-t.time()<2)return o()}else if(!n)return r()}}(this),s=function(){return d(u)},this.bind("play",a),this.bind("timechange",a),this.bind("pause",s),this.bind("end",s),this.bind("waiting",s),"playing"!==this.state()||n||a(),this._onCrossTimeBindings[e].push({fn:t,setupTimeoutFromNowIfClose:a,suspendTimeoutIndefinitely:s}),this},e.prototype.unbindOnCrossTime=function(e,t){var n,i,r,o,a,s;if(!this._onCrossTimeBindings||!this._onCrossTimeBindings[e])return this;for(n=null,r=0,o=0,a=(s=this._onCrossTimeBindings[e]).length;o<a;o++){if((i=s[o]).fn===t){n=i;break}r+=1}return n?(this.unbind("play",n.setupTimeoutFromNowIfClose),this.unbind("timechange",n.setupTimeoutFromNowIfClose),this.unbind("pause",n.suspendTimeoutIndefinitely),this.unbind("end",n.suspendTimeoutIndefinitely),this.unbind("waiting",n.suspendTimeoutIndefinitely),this._onCrossTimeBindings[e].splice(r,1),0===this._onCrossTimeBindings[e].length&&delete this._onCrossTimeBindings[e],this):this},e.prototype.betweenTimes=function(e,t,n){var i,r,o,a,s;if(!/^(\d+\.)?\d+$/.test(e)||!/^(\d+\.)?\d+$/.test(t))throw"betweenTimes: Expected first two arguments to be numbers";if("function"!=typeof n)throw"betweenTimes: Expected second argument to be a function";return o=e+"-"+t,null==this._betweenTimeBindings&&(this._betweenTimeBindings={}),null==(i=this._betweenTimeBindings)[o]&&(i[o]=[]),a=!1,s=this,r=function(){var i,r;if(r=s.time(),e<=r&&r<t&&!a?(a=!0,i=n.call(s,a)):e<=r&&r<t||!a||(a=!1,i=n.call(s,a)),i===s.unbind)return s.unbindBetweenTimes(e,t,n)},this.onCrossTime(e,r),this.onCrossTime(t,r),this.bind("timechange",r),r(),this._betweenTimeBindings[o].push({fn:n,onTimechange:r}),this},e.prototype.unbindBetweenTimes=function(e,t,n){var i,r,o,a,s,u,l;if(l=e+"-"+t,!this._betweenTimeBindings[l])return this;for(i=null,o=0,a=0,s=(u=this._betweenTimeBindings[l]).length;a<s;a++){if((r=u[a]).fn===n){i=r;break}o+=1}return i?(this.unbindOnCrossTime(e,i.onTimechange),this.unbindOnCrossTime(t,i.onTimechange),this.unbind("timechange",i.onTimechange),this._betweenTimeBindings[l].splice(o,1),0===this._betweenTimeBindings[l].length&&delete this._betweenTimeBindings[l],this):this},e.prototype.aspect=function(){return this._implGet("aspect",0)},e.prototype.asset=function(){return this._implGet.apply(this,["asset",null].concat(r.call(arguments)))},e.prototype.assets=function(){return this._implGet.apply(this,["assets",null].concat(r.call(arguments)))},e.prototype.audioDescriptionControlEnabled=function(){return this._implSetOrGet.apply(this,["audioDescriptionControlEnabled",!1].concat(r.call(arguments)))},e.prototype.bigPlayButtonEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonEnabled",!1].concat(r.call(arguments)))},e.prototype.bigPlayButtonTimeEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonTimeEnabled",!1].concat(r.call(arguments)))},e.prototype.cancelOverlay=function(){return this._implPromise.apply(this,["cancelOverlay"].concat(r.call(arguments)))},e.prototype.cancelFullscreen=function(){return this._implExec("cancelFullscreen")},e.prototype.captureCurrentFrame=function(){return this._implGet.apply(this,["captureCurrentFrame",null].concat(r.call(arguments)))},e.prototype.closeTabMenu=function(){return this._implExec("closeTabMenu")},e.prototype.controlScaling=function(){return this._implSetOrGet.apply(this,["controlScaling","auto"].concat(r.call(arguments)))},e.prototype.createControl=function(){return this._implGet.apply(this,["createControl",null].concat(r.call(arguments)))},e.prototype.defineOverlay=function(){return this._implExec.apply(this,["defineOverlay"].concat(r.call(arguments)))},e.prototype.destroyControl=function(){return this._implExec.apply(this,["destroyControl"].concat(r.call(arguments)))},e.prototype.doNotTrack=function(){return this._opts.doNotTrack},e.prototype.duration=function(){return this._implGet("duration",null)},e.prototype.embedded=function(){return this._implSetOrGet.apply(this,["embedded",!1].concat(r.call(arguments)))},e.prototype.embedOptions=function(){return this._hasImpl()?this._implGet.apply(this,["embedOptions",{}].concat(r.call(arguments))):this._embedOptions?this._embedOptions:this._embedOptions=this._gatherOptions()},e.prototype.enterInputContext=function(){return this._implExec.apply(this,["enterInputContext"].concat(r.call(arguments)))},e.prototype.eventKey=function(){return this._implGet("eventKey",null)},e.prototype.exitInputContext=function(){return this._implExec.apply(this,["exitInputContext"].concat(r.call(arguments)))},e.prototype.extraHeight=function(){return this._implGet("extraHeight",0)},e.prototype.extraWidth=function(){return this._implGet("extraWidth",0)},e.prototype.fit=function(){return this._implExec("fit")},e.prototype.fullscreenButtonEnabled=function(){return this._implSetOrGet.apply(this,["fullscreenButtonEnabled",!1].concat(r.call(arguments)))},e.prototype.focus=function(){return this._implPromise.apply(this,["focus"].concat(r.call(arguments)))},e.prototype.getBuffered=function(){return this._implGet("getBuffered",[])},e.prototype.getFocusedChapter=function(){return this._implGet("getFocusedChapter",null)},e.prototype.getInputContext=function(){return this._implGet("getInputContext",[])},e.prototype.getMediaElement=function(){return this._implGet("getMediaElement",null)},e.prototype.getMediaType=function(){return this._implGet("getMediaType",null)},e.prototype.getOverlays=function(){return this._implGet("getOverlays",{})},e.prototype.getRegion=function(){return this._implGet.apply(this,["getRegion",null].concat(r.call(arguments)))},e.prototype.getSelectedCaptions=function(){var e,t;return null!=(e=this.controls)&&null!=(t=e.captions)?t.getSelectedCaptions():void 0},e.prototype.hasData=function(){return this._implSetOrGet.apply(this,["hasData",!1].concat(r.call(arguments)))},e.prototype.height=function(){return this._implSetOrGet.apply(this,["height",null].concat(r.call(arguments)))},e.prototype.heightForWidth=function(){return this._implGet.apply(this,["heightForWidth",null].concat(r.call(arguments)))},e.prototype.hideControls=function(){return this._implExec.apply(this,["hideControls",null].concat(r.call(arguments)))},e.prototype.humanDuration=function(){return be(this.duration())},e.prototype.ieSizeHack=function(){return this._implExec("ieSizeHack")},e.prototype.inFullscreen=function(){return this._implGet("inFullscreen",!1)},e.prototype.inSilentPlaybackMode=function(){return this._implGet("inSilentPlaybackMode",!1)},e.prototype.isMuted=function(){return this._implGet("isMuted")},e.prototype.isResumableEnabled=function(){return this._implGet("isResumableEnabled")},e.prototype.lastPauseInfo=function(){return this._implGet("lastPauseInfo",{})},e.prototype.lastPlayInfo=function(){return this._implGet("lastPlayInfo",{})},e.prototype.layout=function(){return this._implSetOrGet.apply(this,["layout","primary"].concat(r.call(arguments)))},e.prototype.look=function(){return this._implSetOrGet.apply(this,["look",{}].concat(r.call(arguments)))},e.prototype.mp4Asset=function(){return this._implGet.apply(this,["mp4Asset",null].concat(r.call(arguments)))},e.prototype.mute=function(){return this._implExec("mute")},e.prototype.playerLanguage=function(e){return e&&(this._wasPlayerLanguageSetViaApi=!0),this._implSetOrGet.apply(this,["playerLanguage","en-US"].concat(r.call(arguments)))},e.prototype.name=function(){return this._implSetOrGet.apply(this,["name",""].concat(r.call(arguments)))},e.prototype.openChaptersTab=function(){return this._implExec("openChaptersTab")},e.prototype.openShareTab=function(){return this._implExec("openShareTab")},e.prototype.openTabMenu=function(){return this._implExec("openTabMenu")},e.prototype.openTranscriptTab=function(){return this._implExec("openTranscriptTab")},e.prototype.originalAsset=function(){return this._implGet.apply(this,["originalAsset",null].concat(r.call(arguments)))},e.prototype.pause=function(){return this._implExec("pause")},e.prototype.percentWatched=function(){return this._implGet("percentWatched",0)},e.prototype.playbarControlEnabled=function(){return this._implSetOrGet.apply(this,["playbarControlEnabled",!1].concat(r.call(arguments)))},e.prototype.play=function(){return this._implExec("play")},e.prototype.playbackRate=function(){return this._implSetOrGet.apply(this,["playbackRate",1].concat(r.call(arguments)))},e.prototype.playbackRateControlEnabled=function(){return this._implSetOrGet.apply(this,["playbackRateControlEnabled",!1].concat(r.call(arguments)))},e.prototype.playerColor=function(){return this._implSetOrGet.apply(this,["playerColor","636155"].concat(r.call(arguments)))},e.prototype.playerBackgroundColor=function(){return this._implSetOrGet.apply(this,["playerBackgroundColor","000000"].concat(r.call(arguments)))},e.prototype.qualityControlEnabled=function(){return this._implSetOrGet.apply(this,["qualityControlEnabled",!1].concat(r.call(arguments)))},e.prototype.requestFullscreen=function(){return this._implExec("requestFullscreen")},e.prototype.requestOverlay=function(){return this._implPromise.apply(this,["requestOverlay"].concat(r.call(arguments)))},e.prototype.ready=function(){return this._implSetOrGet.apply(this,["ready",!1].concat(r.call(arguments)))},e.prototype.releaseChromeless=function(){return this._implExec.apply(this,["releaseChromeless"].concat(r.call(arguments)))},e.prototype.releaseControls=function(){return this._implExec.apply(this,["releaseControls"].concat(r.call(arguments)))},e.prototype.requestChromeless=function(){return this._implExec.apply(this,["requestChromeless"].concat(r.call(arguments)))},e.prototype.requestControls=function(){return this._implExec.apply(this,["requestControls"].concat(r.call(arguments)))},e.prototype.secondsWatched=function(){return this._implGet("secondsWatched",0)},e.prototype.secondsWatchedVector=function(){return this._implGet("secondsWatchedVector",[])},e.prototype.selectableQualities=function(){return this._implGet("selectableQualities",[])},e.prototype.selectedQuality=function(){return this._implGet("selectedQuality",[])},e.prototype.setFocusedChapter=function(){return this._implSetOrGet.apply(this,["setFocusedChapter",null].concat(r.call(arguments)))},e.prototype.settingsControlEnabled=function(){return this._implSetOrGet.apply(this,["settingsControlEnabled",!1].concat(r.call(arguments)))},e.prototype.shouldResume=function(){return this._implGet("shouldResume")},e.prototype.showControls=function(){return this._implExec.apply(this,["showControls",null].concat(r.call(arguments)))},e.prototype.smallPlayButtonEnabled=function(){return this._implSetOrGet.apply(this,["smallPlayButtonEnabled",!1].concat(r.call(arguments)))},e.prototype.state=function(){return this._implGet("state","beforeplay")},e.prototype.stillUrl=function(){return this._implGet.apply(this,["stillUrl",null].concat(r.call(arguments)))},e.prototype.suppressPlay=function(){return this._implSetOrGet.apply(this,["suppressPlay",this].concat(r.call(arguments)))},e.prototype.thumbnailAssets=function(){return this._implGet("thumbnailAssets",[])},e.prototype.time=function(){var e,t;return t=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],null!=t?this._implSetOrGet.apply(this,["time",0,B(t)].concat(r.call(e))):this._implSetOrGet("time",0)},e.prototype.timeInHumanDuration=function(){return be(this._implGet.apply(this,["time",0].concat(r.call(arguments))))},e.prototype.timeInIso8601Duration=function(){return _e(this._implGet.apply(this,["time",0].concat(r.call(arguments))))},e.prototype.trim=function(){return this._implSetOrGet.apply(this,["trim",{start:0,end:-1}].concat(r.call(arguments)))},e.prototype.unmute=function(){return this._implExec("unmute")},e.prototype.undefineOverlay=function(){return this._implPromise.apply(this,["undefineOverlay"].concat(r.call(arguments)))},e.prototype.videoHeight=function(){return this._implSetOrGet.apply(this,["videoHeight",null].concat(r.call(arguments)))},e.prototype.videoQuality=function(){return this._implSetOrGet.apply(this,["videoQuality","auto"].concat(r.call(arguments)))},e.prototype.videoWidth=function(){return this._implSetOrGet.apply(this,["videoWidth",null].concat(r.call(arguments)))},e.prototype.visitorKey=function(){return s.visitorKey.value()||null},e.prototype.volume=function(){return this._implSetOrGet.apply(this,["volume",0].concat(r.call(arguments)))},e.prototype.volumeControlEnabled=function(){return this._implSetOrGet.apply(this,["volumeControlEnabled",!1].concat(r.call(arguments)))},e.prototype.whenVideoElementInDom=function(){return new Promise((e=this,function(t){return e._hasImpl((function(){return t(e._implGet.apply(e,["whenVideoElementInDom",null].concat(r.call(arguments))))}))}));var e},e.prototype.width=function(){return this._implSetOrGet.apply(this,["width",null].concat(r.call(arguments)))},e.prototype.widthForHeight=function(){return this._implGet.apply(this,["widthForHeight",null].concat(r.call(arguments)))},e.prototype.chaptersEnabled=function(){return this._implSetOrGet.apply(this,["chaptersEnabled",null].concat(r.call(arguments)))},e.prototype.chaptersVisibleOnLoad=function(){return this._implSetOrGet.apply(this,["chaptersVisibleOnLoad",null].concat(r.call(arguments)))},e.prototype.addChapter=function(){return this._implExec.apply(this,["addChapter"].concat(r.call(arguments)))},e.prototype.getChapter=function(){return this._implGet.apply(this,["getChapter",null].concat(r.call(arguments)))},e.prototype.removeChapter=function(){return this._implExec.apply(this,["removeChapter"].concat(r.call(arguments)))},e.prototype.chapters=function(){return this._implSetOrGet.apply(this,["chapters",[]].concat(r.call(arguments)))},e.prototype.customerLogo=function(){return this._implExec.apply(this,["customerLogo"].concat(r.call(arguments)))},e.prototype.setControlEnabled=function(e,t){return this._implSetOrGet("setControlEnabled",null,e,t)},e.prototype.isControlDisabled=function(e){return this._implGet("isControlDisabled",!1,e)},e.prototype.isControlEnabled=function(e){return this._implGet("isControlEnabled",!1,e)},e.prototype.whenControlMounted=function(e){return this._implPromise("whenControlMounted",e)},e.prototype.getControl=function(e){return this._implGet("getControl",null,e)},e.prototype.getEmail=function(){return this.email()},e.prototype.getEventKey=function(){return this.eventKey()},e.prototype.getVisitorKey=function(){return this.visitorKey()},e.prototype.setEmail=function(e){return this.email(e)},e.prototype.setPlayerColor=function(){return this._implExec.apply(this,["playerColor"].concat(r.call(arguments)))},e.prototype.removeReadyFn=function(){var e,t;return e=1<=arguments.length?r.call(arguments,0):[],this._hasImpl((t=this,function(){var n;return(n=t._impl.ready).remove.apply(n,e)}))},e.prototype.isKeyboardFocused=function(e){return this._implSetOrGet("isKeyboardFocused",null,e)},e.prototype.email=function(e){var t,n;return null!=e?(this.info("email",e),t=this._attrs.email,this._attrs.email=e,s.localStorage([this._attrs.pageUrl,"trackEmail"],e),(null!=(n=this._opts)?n.noDeprecatedProperties:void 0)||(this.params.trackEmail=e),this._implExec("email",e),e!==t&&this.trigger("emailchange",e),this):this._attrs.email||null},e.prototype.foreignData=function(e){var t,n;if(void 0===e)return this._attrs.foreignData||this._foreignData||null;if(null===e)return this._attrs.foreignData=null,this.trigger("foreigndatachange",e);if(this.info("foreignData",e),!Q(e))throw new Error("foreignData can only be an Object");return e=h(e),this._attrs.foreignData=e,null!=(t=this._impl)&&null!=(n=t.tracker)&&n.transmit({force:!0}),this.trigger("foreigndatachange",e)},e.classFor=function(e){var t;return e instanceof s.Player?e=e.embedType:e instanceof s.PublicApi&&(e=null!=(t=e._impl)?t.embedType:void 0),function(){switch(e){case"vulcan":return s.VulcanPlayer;case"vulcan-v2":return s.VulcanV2Player;case"html5":return s.Html5Player;case"external":return s.ExternalPlayer;case"notplayable":return s.NotPlayablePlayer;case"passwordprotected":return s.PasswordProtectedPlayer;default:return s.Player}}()||(s.Metrics.count("player/"+e+"-class-not-defined",1,{ua:navigator.userAgent,detect:s.detect}),s.error("PublicApi.classFor: embedType is "+e+" but its class is not defined. Using 'vulcan-v2' instead."),s.VulcanV2Player)},e}(),s.mixin(s.PublicApi.prototype,s.bindable),Z=s.PublicApi.prototype.trigger,s.PublicApi.prototype._triggerNoImpl=function(){var e,t,n;return t=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],Z.call.apply(Z,[this,t].concat(r.call(e))),null!=(n=window.wistiaEmbeds)?n.trigger.apply(n,[t,this].concat(r.call(e))):void 0},s.PublicApi.prototype.trigger=function(){var e,t;return e=1<=arguments.length?r.call(arguments,0):[],this._impl?(t=this._impl).trigger.apply(t,e):this._triggerNoImpl.apply(this,e)},s.mixin(s.PublicApi.prototype,s.logHelpers),s.PublicApi.prototype._logPrefix=function(){var e;return[this.constructor.name,this.hashedId()||"no hashedId",null!=(e=this.container)?e.id:void 0,this.uuid]}}(Wistia)},(e,t,n)=>{var i,r,o=[].slice;r=n(57).doTimeout,(i=function(){function e(){var e;return this._queue=[],this._green=!1,this._lock=!1,this.allInOne=(e=this,function(){return e._allInOne.apply(e,arguments)}),this.defineMethodsOn(this.allInOne),this.allInOne}return e.prototype.defineMethodsOn=function(e){var t,n,i,r;for(n in t={},this,i=[],this)r=this[n],i.push(function(n,i,r){if("[object Function]"===t.toString.call(i))return e[n]=function(){return r[n].apply(r,arguments)}}(n,r,this));return i},e.prototype.flush=function(){var e,t;if(e=1<=arguments.length?o.call(arguments,0):[],!this._green)return this;for(this._lock=!0;this._queue.length>0&&(t=this._queue.shift(),e.length||!this.goArgs?this.tryAndReport((function(){return t.apply(null,e)})):this.tryAndReport(function(e){return function(){return t.apply(null,e.goArgs)}}(this)),!this._block&&this._green););return this._lock=!1,this},e.prototype._debug=function(){return"undefined"!=typeof console&&null!==console?console.log.apply(console,arguments):void 0},e.prototype.synchronize=function(){var e,t,n,i;for(n=0,i=(t=1<=arguments.length?o.call(arguments,0):[]).length;n<i;n++)e=t[n],this.synchronizeFn(e);return this},e.prototype.synchronizeFn=function(e){var t,n,i,r;return n=null,r=this,t=function(){return clearTimeout(n),r._block=!1,r.go()},i=function(n){return function(){return n._block=!0,n.stop(),e(t)}}(this),n=setTimeout(function(n){return function(){return n._debug("StopGo#synchronize timed out",e),t()}}(this),5e3),this.runFn(i),this},e.prototype.tryAndReport=function(e){var t;try{return e()}catch(e){return(t=e).stack?("undefined"!=typeof console&&null!==console&&console.log(t.message),"undefined"!=typeof console&&null!==console?console.log(t.stack):void 0):"undefined"!=typeof console&&null!==console?console.log(t):void 0}},e.prototype.clearSynchronized=function(){return this.setQueue([]),this._block=!1,this._green=!0},e.prototype.filter=function(e){var t;return this._queue=function(){var n,i,r,o;for(o=[],n=0,i=(r=this._queue).length;n<i;n++)t=r[n],e(t)&&o.push(t);return o}.call(this),this},e.prototype.push=function(e){return this._queue.push(e),this},e.prototype.go=function(){var e;return e=1<=arguments.length?o.call(arguments,0):[],this._green=!0,this.goArgs=e,this.flush.apply(this,e),this},e.prototype.stop=function(){return this._green=!1,this},e.prototype.run=function(){var e,t,n,i;for(n=0,i=(t=1<=arguments.length?o.call(arguments,0):[]).length;n<i;n++)e=t[n],this.runFn(e);return this},e.prototype.then=function(){return this.run.apply(this,arguments)},e.prototype.runFn=function(e){return this._green&&!this._block?this._lock?this.tryAndReport(e):(this.push(e),this.flush()):this.push(e),this},e.prototype.remove=function(){var e,t,n,i;for(n=0,i=(t=1<=arguments.length?o.call(arguments,0):[]).length;n<i;n++)e=t[n],this.removeFn(e);return this},e.prototype.removeFn=function(e){return this.filter((function(t){return e!==t})),this},e.prototype.setQueue=function(e){return this._queue=e,this},e.prototype.getQueue=function(){return this._queue},e.prototype._allInOne=function(){var e,t;return e=arguments[0],t=2<=arguments.length?o.call(arguments,1):[],!0===e?this.go.apply(this,t):!1===e?this.stop():null!=e?e instanceof Array?this.run.apply(this,e):"string"==typeof e?this[e].apply(this,t):this.run.apply(this,arguments):this._green},e}()).when=function(){var e,t,n,r,a,s,u,l;for(l=1<=arguments.length?o.call(arguments,0):[],s=new i,n=function(){return s.go.apply(s,arguments)},e=function(e,t){return n=function(){return t((function(){return e.apply(null,arguments)}))}},t=0,r=(a=l.reverse()).length;t<r;t++)u=a[t],e(n,u);return n(),s},i._drainStopGosAsync=function(e,t,n){var o;if(null==n&&(n=0),!(t.length<1))return(o=t.shift()).run((function(){return i._drainStopGosAsync(e,t,n+1)})),r(e+"."+n,(function(){return o.go()}),0),o},e.exports=i},(e,t,n)=>{n.r(t),n.d(t,{allow3rdParty:()=>m,getPluginsNotInList:()=>d,pluginScriptsFromDefinedPlugins:()=>f,pluginScriptsToLoad:()=>h});var i=n(3),r=n(6),o=n(84),a=n(29),s=n(11),u=(0,s.cachedDetect)(),l="Audio",c=["airplay","audioChapters","audioShare","captions","captions-v1","chapters","cropFill","customizePreview","customerLogo","dimTheLights","dimthelights","encodingProgress","eventbrite","externalPlayer","facebookPixel","googleAds","googleAnalytics4","hlsVideo","html5Player","hubspotForm","marketoForm","midrollLink-v1","midrollLink-v2","nativeHlsVideo","notPlayableVideo","passwordProtectedVideo","postRoll-v1","postRoll-v2","requireEmail-v1","share","share-v2","socialbar-v1","thumbnailTextOverlay","thumbnailTextOverlay-v2","turnstile","videoThumbnail","vulcanV2Player","watchNext","wistiaLogo"],d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.reduce((function(e,t){return-1===c.indexOf(t.name)&&e.push(t),e}),[])},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=o.buildContext(),l=e.mediaType,c=e.embedOptions,d=Object(c).plugin,h=t.plugin||d||{},m=(0,r.merge)({},h,n),g=o.choosePlayer(s,e,t),b=f(m,t);if((u.safari||u.iphone||u.ipad)&&!1!==t.airplayButton){var _={name:"airplay",options:m.airplay||{},async:!0,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/airplay.js")};b.push(_)}var w=p(b,t,g,l);return"vulcan-v2"===g&&t.chaptersOn&&!m.chapters&&w.push({name:v("chapters"),src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/chapters.js"),async:!0}),t.showCustomerLogo&&t.customerLogoImageUrl&&e.enableCustomerLogo&&w.push({name:"customerLogo",options:m.customerLogo||{},async:!0,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/customerLogo.js")}),!0!==t.branding&&!0!==e.branding||w.push({name:"wistiaLogo",options:m.wistiaLogo||{},async:!0,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/wistiaLogo.js")}),"vulcan-v2"!==g||i.default.VulcanV2Player||w.push({name:"vulcanV2Player",options:{},async:!1,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/vulcanV2Player.js")}),y(w)},f=function(e,t){var n=[];return Object.keys(e).forEach((function(i){if(function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}(e,i)&&function(e){return"socialbar-v1"!==e&&-1===e.indexOf("transcript")}(v(i))){var r=e[i];if(r&&!1!==r.on){var o=v(i),s={name:o,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/").concat(o,".js"),async:null!=r.async?r.async:!/^(requireEmail|captions|midrollLink|share)/.test(i),options:r};r.src&&m(t)&&(s.src=r.src),n.push(s)}}})),n},p=function(e,t,n,i){return e.map((function(e){if("vulcan-v2"===n)switch(e.name){case"captions-v1":e.name="captions",e.src=e.src.replace(/captions-v1/,"captions");break;case"share":i===l?(e.name="audioShare",e.src=e.src.replace(/share/,"audioShare")):(e.name="share-v2",e.src=e.src.replace(/share/,"share-v2"));break;case"chapters":i===l?(e.name="audioChapters",e.src=e.src.replace(/chapters/,"audioChapters")):e.name="chapters";break;case"postRoll-v1":e.name="postRoll-v2",e.src=e.src.replace(/postRoll-v1/,"postRoll-v2");break;case"midrollLink-v1":e.name="midrollLink-v2",e.src=e.src.replace(/midrollLink-v1/,"midrollLink-v2");break;case"requireEmail-v1":t._inLegacyPlaylist||(e.name="turnstile",e.src=e.src.replace(/requireEmail-v1/,"turnstile"))}return e}))},y=function(e){var t=function(e){var t=0;return e&&e.options&&e.options.loadWeight&&(t=e.options.loadWeight),t};return e.sort((function(e,n){return t(e)-t(n)}))},v=function(e){switch(e){case"requireEmail":return"requireEmail-v1";case"postRoll":return"postRoll-v2";default:return e}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!1!==e.allowThirdParty&&!/([\w_-]+\.)?wistia\.(com|st|io)$/.test(window.location.hostname)}},(e,t,n)=>{n.d(t,{prefetchEngineAndPlugins:()=>u});var i=n(3),r=n(84),o=n(18),a=n(91),s=n(28),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.pluginScriptsToLoad)(e,t),i=r.buildContext(),o=r.bestUsableEngine(i,e,t),u=l(n),c=(0,s.dynamicImport)(o);return Promise.all([u,c])},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.filter((function(e){return i.default.plugin._prefetched[e.src]||(i.default.plugin._prefetched[e.src]="fetching"),!i.default.plugin._prefetched[e.src]}));return 0===t.length?Promise.resolve():(0,o.runScripts)(t).then((function(){t.forEach((function(e){i.default.plugin._prefetched[e.src]="fetched"}))}))}},(e,t,n)=>{n.r(t),n.d(t,{injectJsonLd:()=>p,removeInjectedJsonLd:()=>y});var i=n(66),r=n(94),o=n(6),a=n(29),s=n(43),u=n(30),l=n(95),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.videoWidth,r=t.videoHeight,u=t.embedOptions;return u||(u=(0,o.cast)((0,o.clone)(e.embedOptions))),{"@context":"http://schema.org/","@id":"https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(e.hashedId),"@type":"AudioObject",duration:"PT".concat((0,i.secondsToIso8601Duration)(e.duration)),name:e.name,thumbnailUrl:(0,s.stillUrl)(e.assets,{ext:"jpg",protocol:"https:",videoWidth:n,videoHeight:r,embedHost:u.embedHost}),contentUrl:h(e),embedUrl:d(e,u),uploadDate:(0,i.secondsToIso8601Date)(e.createdAt),description:e.seoDescription}},d=function(e,t){var n,i="https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(e.hashedId);return(0,r.shouldAddKeyMoments)(e,t)&&!(0,r.shouldAddClipsFromChapters)(t)&&null!==(n=e.embedOptions.plugin)&&void 0!==n&&n.videoThumbnail?"".concat(i,"?wseektoaction=true"):i},h=function(e){var t=e.assets;if("Audio"===e.mediaType)return(0,s.readyPublicMp3s)(t)[0].url;var n=(0,s.findClosestAssetByQuality)((0,s.readyPublicMp4s)(t),1080),i=new u.Url(n.url);return i.ext("m3u8"),i.absolute()},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.videoWidth,u=t.videoHeight,c=t.embedOptions;c||(c=(0,o.cast)((0,o.clone)(e.embedOptions)));var f={"@context":"http://schema.org/","@id":"https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(e.hashedId),"@type":"VideoObject",duration:"PT".concat((0,i.secondsToIso8601Duration)(e.duration)),name:e.name,thumbnailUrl:(0,s.stillUrl)(e.assets,{ext:"jpg",protocol:"https:",videoWidth:n,videoHeight:u,embedHost:c.embedHost}),embedUrl:d(e,c),uploadDate:(0,i.secondsToIso8601Date)(e.createdAt),description:e.seoDescription};if("Video"===e.mediaType&&(f.contentUrl=h(e)),e.captions&&e.captions[0]&&(f.transcript=e.captions[0].text),(0,r.shouldAddKeyMoments)(e,c))if((0,r.shouldAddClipsFromChapters)(c)){var p=(0,l.normalizeChapters)(c),y=p.chapterList;f.hasPart=(0,r.clipsFromChapters)(y,location.href,e.duration)}else f.potentialAction=(0,r.seekToAction)();return f},p=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n="Audio"===t.mediaType?c(t,i):f(t,i);var r=JSON.stringify(n),o=document.createElement("script");o.className="w-json-ld",o.type="application/ld+json",o.innerHTML=r,o._wistia=!0,o.setAttribute("id",e),y(e);var a=document.querySelectorAll("script.w-json-ld"),s=a[a.length-1];s?s.parentNode.insertBefore(o,s.nextSibling):document.head.insertBefore(o,document.head.childNodes[0])},y=function(e){if(e){var t=document.getElementById(e);t&&t.remove()}}},(e,t,n)=>{n.d(t,{clipsFromChapters:()=>l,seekToAction:()=>c,shouldAddClipsFromChapters:()=>s,shouldAddKeyMoments:()=>u});var i=n(30),r=n(95);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=function(e){var t=(0,r.normalizeChapters)(e);if(!t)return!1;var n=t.chapterList;return!1!==t.on&&"false"!==t.on&&(null==n?void 0:n.length)>0},u=function(e,t){if(!1===t.keyMoments)return!1;var n=e.duration,i=e.type,r=t.plugin||{},o=r.passwordProtectedVideo,a=r["requireEmail-v1"],s="LiveStream"===i,u=!0===(null==o?void 0:o.on)||"true"===(null==o?void 0:o.on),l=a&&!1!==a.on&&"end"!==a.time&&!a.persistentTurnstile;return Boolean(!u&&!l&&!s&&n>=30)},l=function(e,t,n){if(e&&0!==e.length){var r=function(e){var t={};return o(e).sort((function(e,t){return e.time-t.time})).filter((function(e){var n=e.time,i=e.title,r=e.deleted;return!t[n]&&!r&&"Chapter Title"!==i&&(t[n]=!0,!0)}))}(e).map((function(e,r,o){var a=e.time,s=e.title,u=new i.Url(t),l=Math.floor(a),c=o[r+1]?o[r+1].time:n;return u.params.wtime="".concat(l,"s"),{"@type":"Clip",endOffset:Math.floor(c),name:s,startOffset:l,url:u.absolute()}}));return r}},c=function(){var e=new i.Url(location.href);return e.params.wtime="{seek_to_second_number}",{"@type":"SeekToAction",target:"".concat(e.absolute().replace("%7Bseek_to_second_number%7D","{seek_to_second_number}")),"startOffset-input":"required name=seek_to_second_number"}}},(e,t,n)=>{n.d(t,{normalizeChapters:()=>i});var i=function(e){var t=e.plugin,n=e.chaptersOn,i=e.chapterList;return null!=t&&t.chapters?t.chapters:i||n?{on:n,chapterList:i&&i.length>0?i:[]}:void 0}},(e,t,n)=>{n.r(t),n.d(t,{wData:()=>o,wRemoveData:()=>a});var i=n(3),r=n(6),o=function(e,t){return(0,r.isArray)(e)||(e=e.split(".")),null!=t&&(0,r.setDeep)(i.default,["_data"].concat(e),t),(0,r.getDeep)(i.default,["_data"].concat(e))},a=function(e){return(0,r.isArray)(e)||(e=e.split(".")),(0,r.unsetDeep)(i.default,["_data"].concat(e))}},(e,t,n)=>{n.d(t,{getViewerPreferences:()=>o,setViewerPreference:()=>a});var i=n(62),r=function(){return"wistia-viewer-preferences"},o=function(){return(0,i.getLocalStorage)(r())},a=function(e,t){(0,i.updateLocalStorage)(r(),(function(n){n[e]=t}))}},(e,t,n)=>{n.d(t,{getChannelStorage:()=>u});var i=n(61),r=n(62),o=function(e){var t=a(e),n=(0,i.getWistiaLocalStorage)()[t]||{},o=s(e);!0!==n.copied&&0!==Object.keys(n).length&&((0,r.updateLocalStorage)(o,(function(e){Object.keys(n).forEach((function(t){e[t]=n[t]}))})),(0,i.updateWistiaLocalStorage)((function(t){t[a(e)].copied=!0})))},a=function(e){return"channel_".concat(e)},s=function(e){return"wistia_channel_".concat(e)},u=function(e){return o(e),(0,r.getLocalStorage)([s(e)])||{}}},(e,t,n)=>{n.d(t,{maybeLoadAndSetupEmbedLinksThrottled:()=>d});var i=n(3),r=n(8),o=n(57),a=n(28),s=n(40),u=n(100);i.default._destructors.destroyEmbedLinks=function(){i.default.EmbedLink.EmbedLinkClass&&i.default.EmbedLink.EmbedLinkClass._onEv1Destroy()};var l=function(){for(var e=(0,u.getAllApiHandlesByDomOrder)(),t=0;t<e.length;t++)if(e[t]._opts&&e[t]._opts.playlistLinks)return!0;return document.querySelectorAll('a[href^="#wistia_"]').length>0},c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l()&&(0,a.dynamicImport)("embedLinks.js").then((function(e){var n;(n=e.EmbedLink).setupAll.apply(n,t)}))},d=(0,s.default)(1e3,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];c.apply(void 0,t),(0,r.onDocReady)((function(){c.apply(void 0,t),(0,o.doTimeout)("maybe_load_embed_links_5000",c,5e3)}))}));i.default.EmbedLink={},i.default.EmbedLink.setupAll=c},(e,t,n)=>{n.d(t,{getAllApiHandlesByDomOrder:()=>u,getOneApiHandle:()=>s});var i=n(101),r=n(12),o=n(96),a=function(){return(void 0===(0,o.wData)("video")?[]:Object.values((0,o.wData)("video"))).concat(void 0===(0,o.wData)("iframe_api")?[]:Object.values((0,o.wData)("iframe_api")))},s=function(e){var t,n,i;if(void 0===e)return null!==(i=a()[0])&&void 0!==i?i:null;var o=null;if("string"==typeof e){var s=e;if(null===(o=document.getElementById(s))){var u,l=a().find((function(e){var t;return e.hashedId().startsWith(s)||null!==(t=e.container)&&void 0!==t&&t.id.startsWith(s)?e:null}));if("removed"!==l)o=null!==(u=null==l?void 0:l.container)&&void 0!==u?u:null}}else if("number"==typeof e){var c=e,d=a();c<0&&(c=d.length+c);var h,f=d[c];if(void 0!==f&&"removed"!==f)o=null!==(h=f.container)&&void 0!==h?h:null}else e instanceof HTMLElement?o=e:r.wlog.error("Unrecognized matcher",e);return"WISTIA-PLAYER"===(null===(t=o)||void 0===t?void 0:t.tagName)?o:void 0!==(null===(n=o)||void 0===n?void 0:n.wistiaApi)&&"removed"!==o.wistiaApi?o.wistiaApi:null},u=function(){return Array.from((0,i.getAllApiEmbedElements)("wistia_embed_initialized")).reduce((function(e,t){return void 0!==t.wistiaApi&&"removed"!==t.wistiaApi&&e.push(t.wistiaApi),e}),[])}},(e,t,n)=>{n.d(t,{getAllApiEmbedElements:()=>i});var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_embed";return document.querySelectorAll("div.".concat(e,",span.").concat(e))}},(e,t,n)=>{n.d(t,{inferQualityRangeFromOpts:()=>o});n(43);var i=2160,r=function(e){return"4k"===e?2160:parseInt(e,10)},o=function(e){return e.videoQuality&&"auto"!==e.videoQuality?"sd-only"===e.videoQuality?[200,360]:"md"===e.videoQuality?[540,i]:"hd-only"===e.videoQuality?[720,i]:[360,i]:[e.qualityMin?r(e.qualityMin):360,e.qualityMax?r(e.qualityMax):i]}},(e,t,n)=>{n.d(t,{generateHtml:()=>a,generateRelativeBlockCss:()=>s});var i=n(6);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var a=function e(t){if(/string|number|boolean/.test(typeof t))return t.toString();if(t instanceof Array){var n,o="",a=r(t);try{for(a.s();!(n=a.n()).done;){o+=e(n.value)}}catch(e){a.e(e)}finally{a.f()}return o}if("object"!=typeof t)return t.toString();var s,u,l=[];for(var c in t){var d=t[c];"tagName"===c?s=d:"childNodes"===c?u=d:l.push({key:c,val:d})}s||(s="div");for(var h,f="<".concat(s),p=0,y=l;p<y.length;p++)h=void 0,"style"===(h=y[p]).key&&(0,i.isObject)(h.val)&&(h.val="".concat(function(){var e=[];for(var t in h.val){var n=h.val[t];e.push("".concat(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(n))}return e}().join(";"),";")),f+=" ".concat(h.key,'="').concat(h.val,'"');return/^(br|hr|img|link|meta|input)$/i.test(s)?f+=" />":(f+=">",u&&("string"==typeof u?f+=u:"object"==typeof u&&(f+=e(u))),f+="</".concat(s,">")),f},s="display:inline-block;height:100%;line-height:normal;margin:0;padding:0;position:relative;vertical-align:top;width:100%;"},(e,t,n)=>{n.r(t),n.d(t,{GLOBAL_ID_KEY:()=>s,OPTION_PREFIX:()=>a,getEmbedOptionStore:()=>u,getOrSetEmbedOptionStore:()=>c,setEmbedOptionStore:()=>l});var i=n(6),r=n(96),o=n(100),a="wistia_embed_options_",s="__global__",u=function(e){if(void 0!==(0,r.wData)([a,e]))return(0,r.wData)([a,e]);var t=(0,o.getOneApiHandle)(e);if(null===t||"removed"===t)return{};if(void 0!==(0,r.wData)(a)){var n=Object.keys((0,r.wData)(a)).find((function(e){return(0,o.getOneApiHandle)(e)===t}));if(void 0!==(0,r.wData)([a,n]))return(0,r.wData)([a,n])}return{}},l=function(e,t){return null!==t?(0,r.wData)([a,e],(0,i.cast)((0,i.clone)(t))):{}},c=function(e,t){var n=e,u=t;if((0,i.isObject)(n)&&"object"==typeof n&&(u=n,n=s),null!=u)return(0,r.wData)([a,n],(0,i.cast)((0,i.clone)(u)));if(void 0!==n){if(void 0!==(0,r.wData)([a,e]))return(0,r.wData)([a,e]);var l=(0,o.getOneApiHandle)(n);if(null===l||"removed"===l)return{};if(void 0!==(0,r.wData)(a)){var c=Object.keys((0,r.wData)(a)).find((function(e){return(0,o.getOneApiHandle)(e)===l}));if(void 0!==(0,r.wData)([a,c]))return(0,r.wData)([a,c])}return{}}return(0,r.wData)(a)}},(e,t,n)=>{n.d(t,{scrollLeft:()=>i,scrollTop:()=>r});var i=function(e){var t,n,i,r;if(!e)return(null===(t=document)||void 0===t||null===(n=t.documentElement)||void 0===n?void 0:n.scrollLeft)||(null===(i=document)||void 0===i||null===(r=i.body)||void 0===r?void 0:r.scrollLeft)||0;document.body&&(document.body.scrollLeft=e),document.documentElement&&(document.documentElement.scrollLeft=e)},r=function(e){var t,n,i,r;if(!e)return(null===(t=document)||void 0===t||null===(n=t.documentElement)||void 0===n?void 0:n.scrollTop)||(null===(i=document)||void 0===i||null===(r=i.body)||void 0===r?void 0:r.scrollTop)||0;document.body&&(document.body.scrollTop=e),document.documentElement&&(document.documentElement.scrollTop=e)}},(e,t,n)=>{n.d(t,{uniqId:()=>i});var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(new Date).getTime();window.performance&&"function"==typeof window.performance.now&&(n+=window.performance.now());var i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx-xxxxxxxxx-xxxxxxxxxxxx-xxxx".replace(/[xy]/g,(function(e){var t=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"===e?t:3&t|8).toString(16)}));return e+i+t}},(e,t,n)=>{n.r(t),n.d(t,{insertIntoArray:()=>r,toArray:()=>o});var i=function(e,t){for(var n=0,i=e.length,r=i>=0;r?n<=i:n>=i;r?n+=1:n-=1)if("function"==typeof t){if(t(e[n]))return n}else if(e[n]===t&&e[n]===t)return n;return-1},r=function(e,t,n){var r;return null==n&&(n={}),n.after?(r=i(e,n.detect||n.after))>=0?e.splice(r+1,0,t):"undefined"!=typeof console&&null!==console?console.log("".concat(n.after," not found when trying to add ").concat(t," to array")):void 0:n.before?(r=i(e,n.detect||n.before))>=0?e.splice(r,0,t):"undefined"!=typeof console&&null!==console?console.log("".concat(n.before," not found when trying to add ").concat(t," to array")):void 0:null!=n.index?e.splice(n.index,0,t):e.push(t)},o=function(e,t){if(null==t&&(t=/\s+/),e instanceof Array)return e;if("string"==typeof e)return e.split(t);throw new Error("Don't know how to convert ".concat(e," into an array."))}},(e,t,n)=>{var i=n(84),r=n(43),o=n(90),a=n(38),s=n(29),u=n(45),l=n(109),c=n(57),d=n(6),h=n(110),f=n(5),p=n(20),y=n(103),v=n(27),m=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var b=.5;!function(e){var t=window.Wistia;if(!t.Player){var n=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.publicApi=t,this.uuid=(0,p.seqId)(),this._baseEventLoopDuration=300,this._eventLoopDuration=300,this.info("constructor"),this.transferFacadeProperties(),this._impl=this,(0,d.keys)(t).forEach((function(e){var i=t[e];i instanceof o&&!m(n,e)&&(n[e]=i)})),this.plugin=this.publicApi.plugin,this.ready=new o,this.hasData=new o,this.embedded=new o,this.commandQueueOpen=new o,this.hasData(!0),this.commandQueueOpen(!0),this.playing=new o,this.notFullscreen=new o,this.resetStateVariables(),this.publicApi.isLiveMedia()||this.setupPercentTracking(),this._recordFirstEmbedIfEligible()}var n,_,w;return n=e,_=[{key:"animate",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.info("animate",t,n);var i=n.callback;return n.callback=function(){(0,f.elemStyle)(e.grid.root,{position:"relative"}),null==i||i()},(0,f.elemStyle)(this.grid.root,{position:"absolute"}),(0,f.elemAnimate)(this.grid.root,t,n),this}},{key:"aspect",value:function(){if(this._opts.aspect)return this._opts.aspect;if(this.publicApi.isAudio())return this.publicApi.width()/this.publicApi.height();if(this._currentAsset)return"variable"==this._currentAsset.width?this.mp4Aspect()||this.originalAspect():this._currentAsset.width/this._currentAsset.height;var e=this.asset({container:/mp4/});return e?e.width/e.height:640/360}},{key:"asset",value:function(e){if("string"==typeof arguments[0]){var t="".concat(arguments[0],"Asset"),n=arguments[1];return this[t](n)}var i=arguments[0];return this.assets(i)[0]||null}},{key:"assets",value:function(e){return r.filter(this._mediaData.assets,e)}},{key:"bigPlayButtonEnabled",value:function(){return this}},{key:"canAutoPlay",value:function(){return!0}},{key:"cancelFullscreen",value:function(){this.info("cancelFullscreen"),this.rebuild()}},{key:"checkForReady",value:function(){throw new Error("Define in subclass!")}},{key:"cleanupRefs",value:function(){var e,t=this;null===(e=this.cleanup)||void 0===e||e.call(this),(0,d.keys)(this).forEach((function(e){var n,i=t[e];null!=i&&i!==t&&(null===(n=i.cleanup)||void 0===n||n.call(i))}))}},{key:"constrainToHeight",value:function(e){return this.videoWidth(this.widthForHeight(this.videoHeight()),e)}},{key:"constrainToWidth",value:function(e){return this.videoHeight(this.heightForWidth(this.videoWidth()),e)}},{key:"disableTextTracks",value:function(){var e=this;this.info("disableTextTracks"),this._disableTextTracks||(this._disableTextTracks=function(){var t;null!==(t=e.elem())&&void 0!==t&&t.textTracks&&Array.prototype.slice.call(e.elem().textTracks).forEach((function(e){e.mode="disabled"}))}),this.rebind("play",this._disableTextTracks)}},{key:"duration",value:function(){return this._mediaData.duration||null}},{key:"elem",value:function(){return null}},{key:"embed",value:function(){throw new Error("Define in subclass!")}},{key:"embedOptions",value:function(){return this._embedOptions||(this._embedOptions=(0,d.clone)(this._opts)),this._embedOptions}},{key:"eventKey",value:function(){return this._tracker.eventKey()}},{key:"extraHeight",value:function(){return Math.max((0,f.elemHeight)(this.grid.above),(0,f.elemHeight)(this.grid.top))+Math.max((0,f.elemHeight)(this.grid.below),(0,f.elemHeight)(this.grid.bottom))}},{key:"extraWidth",value:function(){return(0,f.elemWidth)(this.grid.left)+(0,f.elemWidth)(this.grid.right)}},{key:"fade",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return f.elemAnimate.apply(void 0,[this.gridChildren(),{opacity:e}].concat(n))}},{key:"fadeIn",value:function(){var e=this,t=this._shortAnimArgs(arguments),n=t.callback;t.callback=function(){(0,f.elemStyle)(e.gridChildren(),{opacity:""}),null==n||n()},(0,f.elemStyle)(this.gridChildren(),{opacity:0}),setTimeout((function(){return e.fade(1,t)}),1)}},{key:"fadeOut",value:function(){var e=this,t=this._shortAnimArgs(arguments);(0,f.elemStyle)(this.gridChildren(),{opacity:1}),setTimeout((function(){return e.fade(0,t)}),1)}},{key:"fit",value:function(){return this.info("fit"),this._opts.dontFit||(this.grid.root.style.height="".concat((0,f.elemHeight)(this.chrome),"px"),this.grid.root.style.width="".concat((0,f.elemWidth)(this.chrome),"px")),t.grid.fitVertical(this),t.grid.fitHorizontal(this)}},{key:"focus",value:function(){var e;null===(e=this.chrome)||void 0===e||e.focus()}},{key:"freezeLastFrame",value:function(){}},{key:"fullscreenButtonEnabled",value:function(){return this}},{key:"getVisitorKey",value:function(){return this.visitorKey()}},{key:"getEventKey",value:function(){return this.eventKey()}},{key:"getMediaElement",value:function(){}},{key:"getMediaType",value:function(){return this._mediaData.mediaType||null}},{key:"gridChildren",value:function(){var e=this,n=this.grid;window.NodeList&&!NodeList.prototype.forEach&&(n=Array.prototype.slice.call(this.grid));var i=[];return(0,d.keys)(n).forEach((function(n){e.grid[n].childNodes.forEach((function(n){t.isGridElem(e.grid,n)||i.push(n)}))})),i}},{key:"handleError",value:function(e){throw t.Metrics.videoCount(this,"player/playback-error"),e}},{key:"hashedId",value:function(){return this._hashedId}},{key:"hdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"hlsAsset",value:function(e){return r.m3u8(this._mediaData.assets,e)}},{key:"hlsAssetInRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.m3u8(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),e))}},{key:"height",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e){this.info("height",e,n),e=parseFloat(e);var i=this.height();return this.grid.wrapper.style.height=this.chrome.style.height="".concat(e,"px"),n.dontChangeContainer||(this._embedContainer.style.height="".concat(e,"px")),this.grid.center.style.height="100%",this._opts.dontFit?(this.grid.main.style.height="".concat(e-(0,f.elemHeight)(this.grid.above)-(0,f.elemHeight)(this.grid.below),"px"),this.grid.main.style.marginTop="".concat((0,f.elemHeight)(this.grid.top),"px")):(t.grid.fitHorizontal(this),t.grid.fitVertical(this)),(Math.abs(e-i)>b||n.trigger)&&this.trigger("heightchange",e,i),n.constrain&&this.constrainToHeight({trigger:n.trigger}),this}return(0,f.elemHeight)(this.grid.center)+Math.max((0,f.elemHeight)(this.grid.above),(0,f.elemHeight)(this.grid.top))+Math.max((0,f.elemHeight)(this.grid.below),(0,f.elemHeight)(this.grid.bottom))}},{key:"heightForWidth",value:function(e){return e/this.aspect()}},{key:"implContainer",value:function(){return this._opts.subContainer?this._embedContainer:this.grid.center}},{key:"inFullscreen",value:function(){return!1}},{key:"init",value:function(){return this.setupPipedreamTracking(),this}},{key:"inSilentPlaybackMode",value:function(){return!1}},{key:"iphoneAsset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._iphoneAsset||(this._iphoneAsset=r.iphone(this._mediaData.assets,e)),this._iphoneAsset}},{key:"iphoneAssetInRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.iphone(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),e))}},{key:"isMuted",value:function(){return Boolean(this._opts.muted)}},{key:"isRemoved",value:function(){return null===this.grid}},{key:"lastPlayInfo",value:function(){return{}}},{key:"mp4Aspect",value:function(){var e=this.mp4Asset({width:640})||this.mp4Asset({width:960})||this.mp4Asset();return e?e.width/e.height:null}},{key:"mdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"mp4Asset",value:function(e){return r.mp4(this._mediaData.assets,e)}},{key:"mp4AssetInRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.mp4(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),e))}},{key:"mute",value:function(){this._muted=!0,this.trigger("volumechange",this.volume())}},{key:"originalAspect",value:function(){var e=this.originalAsset();if(e)return e.width/e.height;var t=this.bestAsset();return t().width/t().height}},{key:"originalAsset",value:function(){return this._original||(this._original=r.original(this._mediaData.assets)),this._original}},{key:"name",value:function(e){return null!=e&&(this._name=e,this.trigger("namechange",e)),null!=this._name?this._name:this._mediaData.name||""}},{key:"pageUrl",value:function(){return this.publicApi._attrs.pageUrl}},{key:"pause",value:function(){var e=this;return this.info("pause"),this.ready((function(){return e.pause()})),this}},{key:"percentWatched",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatched()/Math.ceil(this.duration()):0}},{key:"placeEmbed",value:function(e){var t=this.implContainer();this.info("placeEmbed",t,e),this.wrapperElem=(0,f.elemFromObject)({id:(0,p.seqId)("wistia_video_wrapper_"),style:y.generateRelativeBlockCss,class:"wistia_video_wrapper"}),(0,f.elemStyle)(this.wrapperElem,{overflow:"hidden"}),(0,f.elemAppend)(t,this.wrapperElem),"string"==typeof e?this.wrapperElem.innerHTML+=e:(0,f.elemAppend)(this.wrapperElem,e)}},{key:"play",value:function(){var e=this;return this.info("play"),this.ready((function(){return e.play()})),this}},{key:"playableAsset",value:function(e){return r.playable(this._mediaData.assets,e)}},{key:"playableAssetInRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.playable(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),e))}},{key:"playbackRate",value:function(e){return null!=e?this:1}},{key:"playbarControlEnabled",value:function(){return this}},{key:"playerColor",value:function(e){if(null!=e){this.info("playerColor",e);var t=this._attrs.playerColor;return this._attrs.playerColor=(0,l.sanePlayerColor)(e),t!==this._attrs.playerColor&&this.trigger("playercolorchange",this._attrs.playerColor,t),this}return this._attrs.playerColor}},{key:"playerLanguage",value:function(e){var t=this;if(null==e)return(0,v.getLanguage)(this._attrs.playerLanguage)||(0,v.getLanguage)("en-US");this.embedded((function(){if(!(0,v.getLanguage)(e))throw new Error("Language ".concat(e," isn't defined."));e!==t._attrs.playerLanguage&&(t._attrs.playerLanguage=e,t.trigger("playerlanguagechange",(0,v.getLanguage)(e)))}))}},{key:"qualityOptions",value:function(){var e=this._attrs;return{qualityMin:e.qualityMin,qualityMax:e.qualityMax}}},{key:"rebuild",value:function(){var e=this;return this.info("rebuild"),this.embedded((function(){e.ready(!1),e._oldVideoElem=e.elem(),e.stopStreaming(),(0,f.elemRemove)(e.wrapperElem),e.wipeOutstandingAsyncFunctions(),e.embed()})),this}},{key:"remove",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.info("remove"),!1!==n.trigger&&this.trigger("beforeremove"),this.hasData(!1),this.ready(!1),this.embedded(!1),null===(e=this.engine)||void 0===e||e.destroy(),this.stopStreaming(),!1!==n.trigger&&(this.trigger("down"),this.trigger("afterremove")),this.wipeOutstandingAsyncFunctions(),this._bindings={},this.cleanupRefs(),null!==(t=this.grid)&&void 0!==t&&t.root&&((0,f.elemUnbindAllInside)(this.grid.root),(0,f.elemRemove)(this.grid.root)),this.grid=null,this.elem()&&this.elem().removeEventListener("error",this.handleError)}},{key:"requestFullscreen",value:function(){}},{key:"resetStateVariables",value:function(){this.info("resetStateVariables"),this._lastTimePosition=-1,this._lastState="beforeplay",this._streamSet=!1,this._issuedPlay=!1,this._issuedPause=!1,this._beforePlay=!0,this._hasPlayed=!1,this._waiting=0,this._ended=!1,this.playing(!1)}},{key:"sdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"secondsWatched",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatched():0}},{key:"secondsWatchedVector",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatchedVector():[]}},{key:"setPlayerColor",value:function(e){return this.playerColor(e),this}},{key:"setupGrid",value:function(e){return this.grid||(this.grid=t.createGrid(this,e),(0,f.elemAppend)(this.chrome,this.grid.root)),this.grid}},{key:"setupPercentTracking",value:function(){var e=this;if(!this._trackPercent){if(this._secondsWatchedTracker=new h.SecondsWatchedTracker(this,this.duration(),{maxWatchingPlaybackRate:this._opts.maxWatchingPlaybackRate}),"playing"===this.state())for(var t=Math.ceil(this.time()),n=0;n<t;n++)this._secondsWatchedTracker.trackSecond(n,{force:!0});this._trackPercent=function(t){var n=e.percentWatched();e._secondsWatchedTracker.trackSecond(t),e.percentWatched()!==n&&(e.trigger("percentwatchedchanged",e.percentWatched(),n),e._percentWatchedThreshold(e.percentWatched()))},this.rebind("secondchange",this._trackPercent)}}},{key:"setupPipedreamTracking",value:function(){var e=this;this.whenVideoElementInDom().then((function(n){(0,c.doTimeout)("".concat(e.uuid,".track-initembed"),(function(){t.Metrics.videoCount(e,"player/initembed"),t.Metrics.assetBuckets(e).forEach((function(n){t.Metrics.videoCount(e,"player/initembed.".concat(n))}));var n=(0,i.usablePlayers)(e.publicApi.judyCtx(),e.publicApi._mediaData);t.Metrics.videoCount(e,"player/available-players",1,{available_players:n})}),100),n.addEventListener("error",e.handleError)})),this.bind("play",(function(){return t.Metrics.videoCount(e,"player/play"),t.Metrics.assetBuckets(e).forEach((function(n){t.Metrics.videoCount(e,"player/play.".concat(n))})),e.unbind})),t.Metrics.countEventOnce(this,"enter-fullscreen"),t.Metrics.countEventOnce(this,"end"),t.Metrics.countShowLoadingOnce(this),t.Metrics.countShowLoadingAll(this),t.Metrics.countShowLoadingLongTimeOnce(this),t.Metrics.countShowLoadingLongTimeAll(this),this.bind("secondchange",(function(){if(e.secondsWatched()>=10)return t.Metrics.videoCount(e,"player/played-10-seconds"),e.unbind})),this.bind("secondchange",(function(){if(e.secondsWatched()>=30)return t.Metrics.videoCount(e,"player/played-30-seconds"),e.unbind}))}},{key:"slide",value:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return this.animate.apply(this,[{transform:"translate(".concat(e,"px,").concat(t,"px)")}].concat(i))}},{key:"slideInLeft",value:function(){var e=this,t=this._shortAnimArgs(arguments);return(0,f.elemStyle)(this.grid.root,{transform:"translate(".concat(this.videoWidth(),"px, 0px)")}),setTimeout((function(){return e.slide(0,0,t)}),1),this}},{key:"slideInRight",value:function(){var e=this,t=this._shortAnimArgs(arguments);return(0,f.elemStyle)(this.grid.root,{transform:"translate(".concat(-this.videoWidth(),"px, 0px)")}),setTimeout((function(){return e.slide(0,0,t)}),1),this}},{key:"slideOutLeft",value:function(){var e=this,t=this._shortAnimArgs(arguments);return(0,f.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout((function(){return e.slide(-e.videoWidth(),0,t)}),1),this}},{key:"slideOutRight",value:function(){var e=this,t=this._shortAnimArgs(arguments);return(0,f.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout((function(){return e.slide(e.videoWidth(),0,t)}),1),this}},{key:"smallPlayButtonEnabled",value:function(){return this}},{key:"suppressPlay",value:function(e){return null!=e?(this.info("suppressPlay",e),this._suppressPlay=Boolean(e),this._suppressPlay):this._suppressPlay}},{key:"state",value:function(){return"beforeplay"}},{key:"stillAsset",value:function(){return r.still(this._mediaData.assets)}},{key:"stillUrl",value:function(e){var t,n;return(e=(0,d.merge)({videoWidth:this.videoWidth(),videoHeight:this.videoHeight()},this._opts,e)).playerColor||(e.playerColor=null===(t=this._mediaData)||void 0===t||null===(n=t.embedOptions)||void 0===n?void 0:n.playerColor),r.stillUrl(this._mediaData.assets,e)}},{key:"stopStreaming",value:function(){}},{key:"thumbnailAssets",value:function(){return r.thumbnailAssets(this._mediaData.assets,(0,d.merge)({},this._opts,{playButton:!1,videoHeight:this.videoHeight(),videoWidth:this.videoWidth()}))}},{key:"time",value:function(e){var t=this;return null!=e?(this.info("time",e),this.ready((function(){return t.time(e)})),this):0}},{key:"transferFacadeProperties",value:function(){var e=this;"\n _attrs\n _embedContainer\n _givenOptions\n _hashedId\n _hasImpl\n _mediaData\n _opts\n _originalMediaData\n _tracker\n chrome\n container\n controls\n data\n down\n fullscreenContainer\n options\n params\n plugin\n plugins\n up\n ".split(/[\n\s]+/).forEach((function(t){e[t]=e.publicApi[t]}))}},{key:"trim",value:function(e){if(null==e)return this._trimSettings||{start:0,end:-1};this._trimSettings=e}},{key:"unmute",value:function(){this._muted=!1,this._isPlayingSilently=!1,this.trigger("volumechange",this.volume())}},{key:"videoHeight",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e){this.info("videoHeight",e,n),e=parseFloat(e);var i=this.height();this.grid.main.style.height="".concat(e,"px"),this.grid.center.style.height="100%",this.grid.main.style.height="".concat(e,"px");var r=Math.max((0,f.elemHeight)(this.grid.above),(0,f.elemHeight)(this.grid.top)),o=Math.max((0,f.elemHeight)(this.grid.below),(0,f.elemHeight)(this.grid.bottom)),a=r+o;return this.grid.wrapper.style.height=this.chrome.style.height="".concat(e+a,"px"),n.dontChangeContainer||(this._embedContainer.style.height="".concat(e+a,"px")),t.grid.fitHorizontal(this),t.grid.fitVertical(this),(Math.abs(e-i)>b||n.trigger)&&this.trigger("heightchange",e,i),n.constrain&&this.constrainToHeight({trigger:n.trigger}),this}return(0,f.elemHeight)(this.grid.center)}},{key:"videoWidth",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e){this.info("videoWidth",e,n),e=parseFloat(e);var i=this.width();this.grid.center.style.width="100%",this.grid.main.style.width="".concat(e,"px");var r=(0,f.elemWidth)(this.grid.left)+(0,f.elemWidth)(this.grid.right);return this.grid.wrapper.style.width=this.chrome.style.width="".concat(e+r,"px"),n.dontChangeContainer||(this._embedContainer.style.width="".concat(e+r,"px")),t.grid.fitHorizontal(this),t.grid.fitVertical(this),(Math.abs(e-i)>b||n.trigger)&&this.trigger("widthchange",e,i),n.constrain&&this.constrainToWidth({trigger:n.trigger}),this}return(0,f.elemWidth)(this.grid.center)}},{key:"videoQuality",value:function(e){return null!=e?this:"auto"}},{key:"visitorKey",value:function(){return this._tracker.visitorKey()}},{key:"volume",value:function(e){var t=this;return null!=e?(this.info("volume",e),this.ready((function(){return t.volume(e)}))):0}},{key:"volumeControlEnabled",value:function(){return this}},{key:"webmAsset",value:function(e){return r.webm(this._mediaData.assets,e)}},{key:"webmAssetInRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.webm(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),e))}},{key:"whenVideoElementInDom",value:function(){return new Promise((function(e){}))}},{key:"width",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e){this.info("width",e,n),e=parseFloat(e);var i=this.width();return this.grid.wrapper.style.width=this.chrome.style.width="".concat(e,"px"),n.dontChangeContainer||(this._embedContainer.style.width="".concat(e,"px")),this.grid.center.style.width="100%",this._opts.dontFit?(this.grid.main.style.width="".concat(e-(0,f.elemWidth)(this.grid.left)-(0,f.elemWidth)(this.grid.right),"px"),this.grid.main.style.marginLeft="".concat((0,f.elemWidth)(this.grid.left),"px")):(t.grid.fitHorizontal(this),t.grid.fitVertical(this)),(Math.abs(e-i)>b||n.trigger)&&this.trigger("widthchange",e,i),n.constrain&&this.constrainToWidth({trigger:n.trigger}),this._width=e,this}return(0,f.elemWidth)(this.grid.left)+(0,f.elemWidth)(this.grid.center)+(0,f.elemWidth)(this.grid.right)}},{key:"widthForHeight",value:function(e){return e*this.aspect()}},{key:"wipeOutstandingAsyncFunctions",value:function(){this.info("wipeOutstandingAsyncFunctions"),u.globalEventLoop.remove(this.uuid),(0,c.clearTimeouts)(this.uuid),this._remoteMediaKey&&(0,c.clearTimeouts)(this._remoteMediaKey)}},{key:"_isExternallyEmbedded",value:function(){return!this._isOnWistia()}},{key:"_isLoggedIn",value:function(){return document.querySelector("body").classList.contains("logged_in")}},{key:"_isOnWistia",value:function(){var e=this._opts._inIframe?document.referrer:window.location.href;return/wistia\.(io|st|com)/.test(e)}},{key:"_isShared",value:function(){return this._isOnWistia()&&!this._isLoggedIn()}},{key:"_percentWatchedThreshold",value:function(e){var t=this;this._thresholds||(this._thresholds=[.25,.5,.75,1]);var n=[],i=Math.round(100*e)/100;this._thresholds.forEach((function(e){i>=e?t.trigger("percentWatchedThreshold",e):n.push(e)})),this._thresholds=n}},{key:"_recordFirstEmbedIfEligible",value:function(){var e=this._mediaData,t=e.accountKey,n=e.firstEmbedForAccount,i=e.firstShareForAccount,r=e.hashedId;if(n||i){var o="".concat((0,s.eV1Protocol)(),"//").concat((0,s.appHost)(),"/account/activities"),u={account_key:t,media_hashed_id:r};n&&this._isExternallyEmbedded()?(u.first_embed=this._isExternallyEmbedded(),(0,a.xhrPost)(o,JSON.stringify(u),{},{dataType:"json"})):i&&this._isShared()&&(u.first_share=this._isShared(),(0,a.xhrPost)(o,JSON.stringify(u),{},{dataType:"json"}))}}},{key:"_refreshDataFromServer",value:function(e,n){var i=this,r=this.embedOptions().embedHost||t.remote.embedHost();return(0,a.xhrGet)("//".concat(r,"/embed/medias/").concat(this.hashedId(),".json"),{},{dataType:"json"}).then((function(n){return i.publicApi._originalMediaData=n.data.media,i._mediaData=i.publicApi._transformAndUpdateMediaData(),i._newStill&&i._replaceStillAsset(i._newStill),i.publicApi._mediaData=i._mediaData,t.cacheMedia(i.hashedId(),i._mediaData),null==e||e(),i.trigger("refreshed-from-server"),i._mediaData})).catch(n)}},{key:"_replaceStillAsset",value:function(e){var t=this.assets().filter((function(e){return"still_image"!==e.type}));this._mediaData.assets=t,this._mediaData.assets.push(e)}},{key:"_shortAnimArgs",value:function(e){return"function"==typeof e[0]?{callback:e[0]}:(0,d.merge)({},e[0],{callback:e[1]})}}],_&&g(n.prototype,_),w&&g(n,w),Object.defineProperty(n,"prototype",{writable:!1}),e}();n.FAILED=-1,n.PROCESSING=1,n.QUEUED=0,n.READY=2,n.asset=r.one,n.assets=r.filter,n.assetsWithinQualityRange=r.withinQualityRange,n.bakeryHosts=function(){return r.BAKERY_HOSTS},n.isBakeryUrl=r.isBakeryUrl,n.stillAsset=r.still,n.stillUrl=r.stillUrl,n._sanePlayerColor=l.sanePlayerColor,t.mixin(n.prototype,t.bindable),t.mixin(n.prototype,t.logHelpers),n.prototype._logPrefix=function(){var e;return[this.constructor.name,this.hashedId()||"no hashedId",null===(e=this._embedContainer)||void 0===e?void 0:e.id,this.uuid]};var _=n.prototype.trigger;n.prototype.trigger=function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return _.apply(this,n),(e=this.publicApi)._triggerNoImpl.apply(e,n)},Object.getOwnPropertyNames(t.PublicApi.prototype).forEach((function(e){var i=t.PublicApi.prototype[e];"function"!=typeof i||m(n.prototype,e)||function(e,t){n.prototype[e]=function(){var t;return(t=this.publicApi)[e].apply(t,arguments)},n.prototype[e]._originalMethod=t}(e,i)})),t.Player=t.Video=n}}()},(e,t,n)=>{n.d(t,{sanePlayerColor:()=>i});var i=function(e){if(e){if((e="".concat(e).replace(/^#/g,"")).length<6){for(var t="",n=0;n<6-e.length;n++)t+="0";e="".concat(t).concat(e)}return/^[\da-f]{6}$/i.test(e)||(e="636155"),e}return"636155"}},(e,t,n)=>{function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{SecondsWatchedTracker:()=>a});var a=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i(this,e),o(this,"onTimeChange",(function(){r.lastTimeChangeAt=r.timeChangeAt,r.timeChangeAt=Date.now()})),o(this,"onPlaybarDragEnd",(function(){r.playbarDragEndAt=Date.now()})),o(this,"onPlay",(function(){r.playedAt=Date.now()})),this.video=t,this.duration=n,this.maxWatchingPlaybackRate=a.maxWatchingPlaybackRate||8,this.video.bind("timechange",this.onTimeChange),this.video.bind("playbardragend",this.onPlaybarDragEnd),this.video.bind("play",this.onPlay),this.reset()}var t,n,a;return t=e,n=[{key:"trackSecond",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{force:!1},i=function(){!n.force&&t.shouldIgnoreTrack()||e>=t._secondsWatched.length||(t._secondsWatched[e]+=1,1===t._secondsWatched[e]?t._totalWatched+=1:t._totalRewatched+=1)};this.isScrubbing()?(clearTimeout(this.delayedScrubTimeout),this.delayedScrubTimeout=setTimeout(i,this.eventLoopDuration())):i()}},{key:"shouldIgnoreTrack",value:function(){return"playing"!==this.video.state()||this.video.playbackRate()>=this.maxWatchingPlaybackRate||!this.justReleasedPlaybar()&&!this.justPlayed()&&(!!this.isScrubbing()||void 0)}},{key:"eventLoopDuration",value:function(){var e;return(null===(e=this.video._impl)||void 0===e?void 0:e._eventLoopDuration)||300}},{key:"isScrubbing",value:function(){return this.lastTimeChangeAt&&Date.now()-this.lastTimeChangeAt<this.eventLoopDuration()}},{key:"justPlayed",value:function(){return this.playedAt&&Date.now()-this.playedAt<this.eventLoopDuration()}},{key:"justReleasedPlaybar",value:function(){return this.playbarDragEndAt&&Date.now()-this.playbarDragEndAt<this.eventLoopDuration()}},{key:"secondsWatched",value:function(){return this._totalWatched||0}},{key:"secondsWatchedVector",value:function(){return this._secondsWatched}},{key:"reset",value:function(){clearTimeout(this.delayedScrubTimeout),this.timeChangeAt=null,this.lastTimeChangeAt=null,this.lastPlaybarDragEndAt=null,this._secondsWatched=[];for(var e=0;e<Math.ceil(this.duration);e++)this._secondsWatched.push(0);this._totalWatched=0,this._totalRewatched=0}}],n&&r(t.prototype,n),a&&r(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},(e,t,n)=>{var i,r=n(5);null==(i=window.Wistia)._onFullscreenChange&&(i._onFullscreenChange=function(){return r.fullscreenElement()?i.trigger("enterfullscreen",r.fullscreenElement()):i.trigger("cancelfullscreen")}),i._initializers.initFullscreenTriggers=function(){return r.elemRebind(document,"mozfullscreenchange",i._onFullscreenChange),r.elemRebind(document,"webkitfullscreenchange",i._onFullscreenChange),r.elemRebind(document,"MSFullscreenChange",i._onFullscreenChange),r.elemRebind(document,"fullscreenchange",i._onFullscreenChange)},i._destructors.destroyFullscreenTriggers=function(){return r.elemUnbind(document,"mozfullscreenchange",i._onFullscreenChange),r.elemUnbind(document,"webkitfullscreenchange",i._onFullscreenChange),r.elemUnbind(document,"MSFullscreenChange",i._onFullscreenChange),r.elemUnbind(document,"fullscreenchange",i._onFullscreenChange)}},(e,t,n)=>{n(29);var i,r=n(30),o=n(57),a=n(20),s=n(6);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(i=window.Wistia).BandwidthTest=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.opt=t,this.opt=(0,s.merge)({minKbps:2500,timeoutLength:4e3,freshFor:36e5},this.opt),this.opt.uuid||(this.opt.uuid=(0,a.seqId)("bandwidth_test_"))}var t,n,l;return t=e,(n=[{key:"start",value:function(){var e,t=this;null===(e=this._testXhr)||void 0===e||e.abort(),this._testStart=(new Date).getTime(),this._testXhr=new XMLHttpRequest,this._testXhr.open("GET",this.testFileUrl(),!0);var n=1e6*Math.floor(100*Math.random()),i=n+999999;return this._testXhr.setRequestHeader("Range","bytes=".concat(n,"-").concat(i)),(0,o.doTimeout)("".concat(this.uuid,".cancel_bandwidth_test"),(function(){return t.trigger("timeout"),t.fail()}),this.opt.timeoutLength),this._testDataLoaded=0,this._onTestXhrProgress=function(e){return t._testDataLoaded=e.loaded,t.trigger("progress",e)},this._testXhr.addEventListener("progress",this._onTestXhrProgress),this._onTestXhrLoaded=function(){return t.succeed()},this._testXhr.addEventListener("load",this._onTestXhrLoaded),this._testXhr.send(null),this.trigger("started")}},{key:"fail",value:function(){return this._sampleKbps(),this._supportsHd=!1,this.saveResult(),this.trigger("failed"),this.end()}},{key:"succeed",value:function(){if(this._sampleKbps(),this._supportsHd=!0,this.saveResult(),this.trigger("succeeded"),this.end(),this._suspiciouslyFast())return this._reportSuspiciousBandwidthTest()}},{key:"_reportSuspiciousBandwidthTest",value:function(){try{var e,t,n,r;if(this._suspiciouslyFast())return i.Metrics.count("player/suspicious-bandwidth-test",1,{bw_test_time:this._testTime,visitor_key:i.visitorKey.value(),location:null!==(e=location)&&void 0!==e&&null!==(t=e.protocol)&&void 0!==t&&t.length&&null!==(n=location)&&void 0!==n&&null!==(r=n.hostname)&&void 0!==r&&r.length?"".concat(location.protocol,"//").concat(location.hostname):null,connection_type:i.Metrics.connectionType(),agent:navigator.userAgent})}catch(e){return i.error(e)}}},{key:"_suspiciouslyFast",value:function(){return this._testTime<.05}},{key:"_sampleKbps",value:function(){return this._testEnd=(new Date).getTime(),this._testTime=(this._testEnd-this._testStart)/1e3,this._kbps=8*this._testDataLoaded/1e3/this._testTime}},{key:"endEarly",value:function(){return null==this._supportsHd&&null!=this._testDataLoaded?(this._sampleKbps(),this._supportsHd=!(this._testTime>1)||this._kbps>=this.opt.minKbps,this.trigger("ended-early"),this.end()):(this.end(),this.trigger("ended-early"))}},{key:"end",value:function(){var e,t,n;return this._onTestXhrLoaded&&(null===(t=this._testXhr)||void 0===t||t.removeEventListener("load",this._onTestXhrLoaded)),this._onTestXhrProgress&&(null===(n=this._testXhr)||void 0===n||n.removeEventListener("progress",this._onTestXhrProgress)),null===(e=this._testXhr)||void 0===e||e.abort(),this._testXhr=null,(0,o.clearTimeouts)("".concat(this.uuid,".cancel_bandwidth_test")),this.trigger("ended")}},{key:"testFileUrl",value:function(){return this.opt.testFileUrl||("https:"===(0,r.proto)()?"https://embed-ssl.wistia.com/deliveries/6992339c876a95a37250fbe5b0a0eaecca3018a5/file.jpg?bust=2015-12-29a":"http://embed.wistia.com/deliveries/76a57ca47a1978a834d82dcf7eeb03a6.bin?bust=2015-12-29a")}},{key:"saveKey",value:function(){return this.opt.saveKey||"bandwidth_test"}},{key:"saveResult",value:function(){return i.localStorage(this.saveKey(),{updatedAt:(new Date).getTime(),supportsHd:this._supportsHd,clientKbps:this._kbps})}},{key:"savedResult",value:function(){return i.localStorage(this.saveKey())}},{key:"isFresh",value:function(){var e;return(new Date).getTime()-((null===(e=this.savedResult())||void 0===e?void 0:e.updatedAt)||0)<this.opt.freshFor}},{key:"supportsHd",value:function(){return this._supportsHd||!1}}])&&u(t.prototype,n),l&&u(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}(),i.mixin(i.BandwidthTest.prototype,i.bindable)},function(e,t,n){var i,r,o,a,s,u,l,c,d,h,f,p,y,v,m,g=function(e,t){return function(){return e.apply(t,arguments)}};n(3).default,h=n(60).isVisitorTrackingEnabled,y=n(6),a=y.assign,f=y.merge,c=n(72).getResumableKeyForVideo,l=n(57).doTimeout,m=n(38).xhrPost,i=n(30).Url,p=n(5).pageLoaded,f=n(6).merge,v=n(18).runScript,s=n(39).base64Encode,o=n(114),r=n(116),u=function(e){var t;return null!=(t="none"===e)?t:{true:!1}},d=function(e){var t;return{campaign:(t=new i(e._attrs.pageUrl).params).utm_campaign||null,medium:t.utm_medium||null,source:t.utm_source||null}},function(e){if(!e.VideoTracker2)e.VideoTracker2=function(){function t(e){var t;this.publicApi=e,this.resendAllFailedEvents=g(this.resendAllFailedEvents,this),this.retrySendingFailedEvent=g(this.retrySendingFailedEvent,this),this.eventQueue=[],this.initializedOnce=!1,this.monitoring=!1,this._setStartValues(),this.publicApi.hasData((t=this,function(){t.utmParams=d(t.publicApi),t.params=f({transmitInterval:1e3*(t.publicApi._mediaData.trackingTransmitInterval||10)},t.publicApi._opts),t.publicApi._attrs.shouldTrack}))}return t.prototype.NUM_BUCKETS=1e3,t.prototype.conversions={"missing-conversion":0,"pre-roll-email":1,"post-roll-email":2,"mid-roll-email":3,"post-roll-click":4,"mid-roll-click":5,"non-video":6},t.prototype._setStartValues=function(){return this.clockStart=(new Date).getTime(),this._played=!1,this.lastRecordedTime=0,this.lastSeekTime=0,this.lastSecondsWatched=0,this.lastBucket=-1},t.prototype._getAccountKey=function(){return this.publicApi._opts.accountKey||this.publicApi._mediaData.accountKey},t.prototype._getEnabledEmbedOptions=function(){var e,t,n,i,r,o,a,s;for(t in o=(e=this.publicApi.embedOptions()).plugin||{},r={},n={turnstile_enabled:"requireEmail-v1",annotation_link_enabled:"midrollLink-v1",call_to_action_enabled:"postRoll-v1",eventbrite_enabled:"eventbrite",hubspot_form_enabled:"hubspotForm",marketo_form_enabled:"marketoForm"})i=n[t],r[t]=!!o[i]&&("true"===(a=o[i].on)||!0===a);return r.auto_play_enabled="true"===(s=e.autoPlay)||!0===s,r.looping_enabled="loop"===e.endVideoBehavior,r},t.prototype._data=function(){var e;return e=f({account_key:this._getAccountKey(),event_details:this.eventQueue,foreign_data:this.publicApi.foreignData(),media_duration:parseFloat(this.publicApi._mediaData.duration),media_id:this.publicApi._mediaData.mediaKey,media_type:this._mediaType(),referrer:this.publicApi._attrs.pageUrl,referrer_url:this.publicApi._attrs.referrerUrl,resumable_key:this.resumableKey(),session_id:this.visitorKey(),utm_params:this.utmParams,visitor_version:this.videoTrackerLocalStorage.getVisitorVersion(),event_version:"1.0.0",player_type:"modern",enabled_embed_options:this._getEnabledEmbedOptions(),visibility_metrics:this.publicApi._getEmbedVisibilityMetrics()},this.videoTrackerSession.fetchSessionData()),this.publicApi.email()&&(e.email=this.publicApi.email()),!this.publicApi._opts.anonymizeIp&&h()||(e.anonymizeIp=!0),this.params.conversionType&&(e.conversion_type=this.conversions[this.params.conversionType]),this.params.conversionData&&(e.conversion_data=this.params.conversionData),this.publicApi._opts.channel&&(e.channel=this.publicApi._opts.channel),this.publicApi._mediaData.channelId&&(e.channel_id=this.publicApi._mediaData.channelId),this.publicApi._mediaData.episodeId&&(e.episode_id=this.publicApi._mediaData.episodeId),this.publicApi._mediaData.projectId&&(e.project_id=this.publicApi._mediaData.projectId),JSON.stringify(e)},t.prototype._mediaType=function(){return this.publicApi._mediaData.mediaType},t.prototype.reset=function(){return this.stopMonitoring(),this._setStartValues(),this.initializedOnce=!1},t.prototype.initialize=function(){var e;return this.initializedOnce||(this.publicApi.info("video tracker initialize"),this.videoTrackerLocalStorage=new r(this._getAccountKey(),this.publicApi.hashedId(),(e=this,function(){var t;return(t=e.publicApi).info.apply(t,arguments)})),this._failedEventsQueue=[],this._retryTimer=null,this._retryInterval=1e3,this.initializedOnce=!0,this._setStartValues(),this.log("initialized"),this.videoTrackerLocalStorage.recordLoad(),this.debounceTransmit()),this},t.prototype.monitor=function(){var t;return this.initializedOnce||this.publicApi.hasData((t=this,function(){return t.videoTrackerSession=new o(t.publicApi)})),this.publicApi.embedded(function(t){return function(){return t.stopMonitoring(),t.publicApi.info("_tracker.monitor"),t.initialize(),null==t.onPlaybackRateChange&&(t.onPlaybackRateChange=function(e){return t.log("playbackRateChange",null,e)}),null==t.onPlay&&(t.onPlay=function(){if(t.log("play"),t.videoTrackerLocalStorage.recordPlay(),!t._played)return t._played=!0,t.debounceTransmit()}),null==t.onPause&&(t.onPause=function(){if(Math.abs(t.publicApi.duration()-t.publicApi.time())>.3)return t.log("pause")}),null==t.onEnd&&(t.onEnd=function(){return t.log("end"),t.transmit()}),null==t.onSeek&&(t.onSeek=function(e,n){if(!(Math.abs(n-e)<5))return t.lastSeekTime=n,t.log("seek")}),null==t.onPercentWatchedThreshold&&(t.onPercentWatchedThreshold=function(e){return t.log("percentWatchedThreshold",null,e),t.transmit()}),t.monitoring=!0,t.publicApi.rebind("play",t.onPlay),t.publicApi.rebind("pause",t.onPause),t.publicApi.rebind("end",t.onEnd),t.publicApi.rebind("seek",t.onSeek),t.publicApi.rebind("playbackratechange",t.onPlaybackRateChange),t.publicApi.rebind("percentWatchedThreshold",t.onPercentWatchedThreshold),t.videoTrackerSession.setupBindings(),"playing"===t.publicApi.state()&&t.onPlay(),l(t.publicApi.uuid+".start_tracking_timeout",(function(){return t.publicApi.info("_tracker start tracking_loop"),e.eventLoop.add(t.publicApi.uuid+".tracking_loop",t.params.transmitInterval,(function(){return"playing"===t.publicApi.state()&&t.log("update"),t.transmit()}))}),Math.random()*t.params.transmitInterval+1e3)}}(this))},t.prototype.stopMonitoring=function(){if(this.publicApi.info("_tracker.stopMonitoring"),this.monitoring=!1,this.onPlay&&this.publicApi.unbind("play",this.onPlay),this.onPause&&this.publicApi.unbind("pause",this.onPause),this.onEnd&&this.publicApi.unbind("end",this.onEnd),this.onSeek&&this.publicApi.unbind("seek",this.onSeek),this.onPercentWatchedChanged&&this.publicApi.unbind("percentwatchedchanged",this.onPercentWatchedChanged),this.videoTrackerSession)return this.videoTrackerSession.removeBindings()},t.prototype.distilleryUrl=function(){return this.publicApi._opts.statsUrl||this.publicApi._mediaData.distilleryUrl},t.prototype.sendToDistillery=function(t){return this.sendDataUsingXhr(t).catch((n=this,function(t){return e.Metrics.videoCount(n.publicApi,"player/distillery-error-response/"+t.status)}));var n},t.prototype.sendDataUsingXhr=function(e){return 3e4,m(this.distilleryUrl(),encodeURIComponent(e),{"content-type":"text/plain"},{timeout:3e4})},t.prototype.sendDataUsingJsonp=function(e){var t;return 3e4,t=this.distilleryUrl()+"?data="+encodeURIComponent(e),v(t,3e4)},t.prototype.retrySendingFailedEvent=function(){return this.sendToDistillery(this._failedEventsQueue.shift())},t.prototype.resendAllFailedEvents=function(){var e,t,n,i,r,o;if(n=this._failedEventsQueue.length,clearTimeout(this._retryTimer),n>0){var a;for(350,o=this._failedEventsQueue,a=this,e=function(e,t){return setTimeout((function(){return a.sendToDistillery(e)}),350*t)},t=i=0,r=o.length;i<r;t=++i)e(o[t],t);return this._failedEventsQueue=[]}},t.prototype.readyToTrack=function(t){return this.publicApi.hasData((function(){return p((function(){return e.visitorKey.ready().then(t)}))}))},t.prototype.transmit=function(e){var t;if(null==e&&(e={}),this.publicApi._attrs.shouldTrack)return this.readyToTrack((t=this,function(){var n;if(t.eventQueue.length>0||e.force)return n=t._data(),t.publicApi.info("_tracker.transmit",n),t.publicApi.trigger("transmit-stats",n),t.sendToDistillery(s(n)),t.eventQueue=[]}))},t.prototype.debounceTransmit=function(){return l(this.publicApi.uuid+".transmit_play_data",(e=this,function(){return e.transmit()}),350);var e},t.prototype.log=function(e,t,n){var i,r,o,a;if(this.publicApi._attrs.shouldTrack)return this.publicApi.info("_tracker.log",e,t,n),this.videoTrackerSession.ping(),o=(a=(r=this.videoTrackerSession.secondsWatched())-this.lastSecondsWatched)/this.publicApi.duration(),this.lastSecondsWatched=r,"conversion"===e?(this.params.conversionType=t,this.params.conversionData=n,this.transmit({force:!0})):(i={key:e,value:this.timeInVideo(),timeDelta:this.timeDelta(),uniquePlayedTime:a,uniquePlayedRatio:o},"initialized"===e?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastLoadForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastLoadForMedia(),i.isUnique=u(this.videoTrackerLocalStorage.lastLoadForMedia())):"play"===e?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastPlayForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastPlayForMedia(),i.isUnique=u(this.videoTrackerLocalStorage.lastPlayForMedia()),this._played?i.key="unpause":(this.addPlayedTime(i),this.addBuckets(i),this.lastRecordedTime=this.timeInVideo())):"seek"===e?(this.addPlayedTime(i,this.lastSeekTime),this.addBuckets(i,this.lastSeekTime),this.lastRecordedTime=this.timeInVideo()):"update"===e?(this.addPlayedTime(i),this.addBuckets(i),this.lastRecordedTime=this.timeInVideo()):"playbackRateChange"===e||"percentWatchedThreshold"===e?i.value=n:"end"===e&&(this.addPlayedTime(i),this.addBuckets(i),this.lastBucket=-1,this.lastRecordedTime=this.timeInVideo()),this.publicApi.debug("_tracker.log",i),this.eventQueue.push(i))},t.prototype.addPlayedTime=function(e,t){var n,i;return n=void 0!==t?t:this.timeInVideo(),i=Math.max(n-this.lastRecordedTime,0),e.playedTime=String(i)},t.prototype.addBuckets=function(e,t){var n,i;if("beforeplay"!==this.publicApi.state()&&(i=this.publicApi.time(),n=this._timeToBucket(t||i),this.lastBucket<n&&(e.startBucket=this.lastBucket+1,e.endBucket=n),this.lastBucket=this._timeToBucket(i),t))return this.lastBucket-=1},t.prototype._timeToBucket=function(e){return Math.floor(e/this.publicApi.duration()*this.NUM_BUCKETS)},t.prototype.logConversionOpportunity=function(t){var n;if(this.publicApi._attrs.shouldTrack)return this.videoTrackerSession.ping(),null!=t.co_key?(t.is_new_lead=this.videoTrackerLocalStorage.isNewLead(),n={key:"conversion",value:t,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logConversionOpportunity",t),this.eventQueue.push(n)):e.Metrics.videoCount(this.publicApi,"player/no-co-key",1)},t.prototype.logAction=function(e,t){var n,i;return null==t&&(t={}),this.videoTrackerSession.ping(),n={time:this.publicApi.time(),key:e,type:"default",category:"default",text:"test",uniqueToVisitor:!1},i={value:a({},n,t),key:"action",timeDelta:this.timeDelta()},this.eventQueue.push(i)},t.prototype.logCaptionSelection=function(e){var t;if(this.publicApi._attrs.shouldTrack&&(this.videoTrackerSession.ping(),e.caption_key))return t={key:"caption",value:e,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logCaptionSelection",e),this.eventQueue.push(t)},t.prototype.logChapterClick=function(e,t){return this.logAction("chapterConversion",{text:e.title,type:"conversion",category:"chapter",uniqueToVisitor:!0,time:t}),this.logAction("chapterSelection-"+e.id,{text:e.title,type:"interaction",category:"chapter",time:t})},t.prototype.logShareClick=function(e){return this.logAction("shareConversion",{text:e,type:"conversion",category:"share",uniqueToVisitor:!0}),this.logAction("shareClick-"+e,{text:e,type:"interaction",category:"share"})},t.prototype.resumableKey=function(){return!1!==this.publicApi.embedOptions().resumable?c(this.publicApi.hashedId()):null},t.prototype.timeInVideo=function(){var e;return null==(e=this.publicApi.time())&&(e="beforeplay"===this.publicApi.state()?0:this.publicApi.duration()),e.toFixed(1)},t.prototype.timeDelta=function(){return(new Date).getTime()-this.clockStart},t.prototype.visitorKey=function(){return this.publicApi.visitorKey()},t.prototype.eventKey=function(){if(this.videoTrackerSession)return this.videoTrackerSession.eventKey()},t}()}(Wistia)},(e,t,n)=>{var i,r,o,a;n(3).default,o=n(115).default,i=n(110).SecondsWatchedTracker,a=n(106).uniqId,r=function(){function e(e){this.publicApi=e,this.lastFetchTime=(new Date).getTime(),this.secondsWatchedTracker=new i(this.publicApi,this.publicApi.duration(),{maxWatchingPlaybackRate:this.publicApi._opts.maxWatchingPlaybackRate})}return e.prototype.EVENT_KEY_REFRESH_INTERVAL=1800,e.prototype.withRefresh=function(e){if(o(this.lastFetchTime)>this.EVENT_KEY_REFRESH_INTERVAL&&this.reset(),this.lastFetchTime=(new Date).getTime(),"function"==typeof e)return e()},e.prototype.fetchSessionData=function(){return this.withRefresh((e=this,function(){return{event_key:e.eventKey(),seconds_watched:e.secondsWatchedTracker.secondsWatched()}}));var e},e.prototype.secondsWatched=function(){return this.withRefresh((e=this,function(){return e.secondsWatchedTracker.secondsWatched()}));var e},e.prototype.ping=function(){return this.withRefresh()},e.prototype.setupBindings=function(){var e;return null==this.binding&&(this.binding=(e=this,function(t){return e.secondsWatchedTracker.trackSecond(t)})),this.publicApi.rebind("secondchange",this.binding)},e.prototype.reset=function(){return this._eventKey=null,this.secondsWatchedTracker.reset()},e.prototype.removeBindings=function(){if(this.binding)return this.publicApi.unbind("secondchange",this.binding)},e.prototype.eventKey=function(){return this.isValidKey(this._eventKey)||(this._eventKey=a("6290e1f2400e67586f946cc52cddffaa".substring(0,7)+"_"),this.publicApi.trigger("eventkeychange",this._eventKey)),this._eventKey},e.prototype.isValidKey=function(e){return(null!=e?e.length:void 0)>25&&/^[a-z0-9_\-\.]+$/i.test(e)},e}(),e.exports=r},(e,t,n)=>{n.d(t,{default:()=>i});const i=function(e){return e?Math.round(((new Date).getTime()-e)/1e3):null}},(e,t,n)=>{var i,r;n(3).default,r=n(115).default,i=function(){function e(e,t,n){this.accountKey=e,this.hashedId=t,this.logFn=n}return e.prototype.nullToNone=function(e){return null===e?"none":e},e.prototype.lastLoadForAccount=function(){return this._lastLoadForAccount||(this._lastLoadForAccount=this.nullToNone(r(Wistia.localStorage("accounts_loaded."+this.accountKey))))},e.prototype.lastLoadForMedia=function(){return this._lastLoadForMedia||(this._lastLoadForMedia=this.nullToNone(r(Wistia.localStorage("medias_loaded."+this.hashedId))))},e.prototype.lastPlayForAccount=function(){return this._lastPlayForAccount||(this._lastPlayForAccount=this.nullToNone(r(Wistia.localStorage("accounts_played."+this.accountKey))))},e.prototype.lastPlayForMedia=function(){return this._lastPlayForMedia||(this._lastPlayForMedia=this.nullToNone(r(Wistia.localStorage("medias_played."+this.hashedId))))},e.prototype.lastRecordingOfActionForMedia=function(e){return this.nullToNone(r(Wistia.localStorage("action_recorded."+this.hashedId+"."+e)))},e.prototype.isNewLead=function(){var e,t;return e="action_recorded.conversion",(t=Wistia.localStorage(e))?!t:(this.logFn("recordNewLead"),Wistia.localStorage(e,!0))},e.prototype.recordLastActionForMedia=function(e){return Wistia.localStorage("action_recorded."+this.hashedId+"."+e,(new Date).getTime())},e.prototype.recordLoad=function(){return this.logFn("recordLoad"),Wistia.localStorage("accounts_loaded."+this.accountKey,(new Date).getTime()),Wistia.localStorage("medias_loaded."+this.hashedId,(new Date).getTime())},e.prototype.recordPlay=function(){return this.logFn("recordPlay"),Wistia.localStorage("accounts_played."+this.accountKey,(new Date).getTime()),Wistia.localStorage("medias_played."+this.hashedId,(new Date).getTime())},e.prototype._saveVisitorVersion=function(e){if(null==e&&(e=1),null==Wistia.localStorage("visitor_version"))return Wistia.localStorage("visitor_version",e)},e.prototype.getVisitorVersion=function(){return Wistia.localStorage("visitor_version")||(this._saveVisitorVersion(0),0)},e.prototype.clearActionRecordings=function(){return["chapterImpression","chapterConversion","shareImpression","shareConversion"].forEach((e=this,function(t){return Wistia.localStorage("action_recorded."+e.hashedId+"."+t,"",!0)}));var e},e}(),e.exports=i},(e,t,n)=>{var i=n(29),r=n(87),o=n(118),a=n(88),s=n(31);!function(e){if(!e.remote)e.remote={},e.remote.appHostname=s.appHostname,e.remote.embedHost=i.cdnFastWistiaComHost,e.remote.externalEmbedHost=i.cdnFastWistiaNetHost,e.remote.appHost=i.appHost,e.remote.assetHost=i.deliveryHost,e.remote.media=r.fetchMedia,e.cacheMedia=r.cacheMedia,e.cacheAbTest=r.cacheAbTest,e.uncacheMedia=r.uncacheMedia,e.mediaFromCache=r.mediaFromCache,e.abTestFromCache=r.abTestFromCache,e.remote.playlist=o.fetchPlaylist,e.remote.fetch=a.jsonpPlus,e.jsonp={get:a.jsonp}}(window.Wistia)},(e,t,n)=>{n.d(t,{fetchPlaylist:()=>c});var i=n(3),r=n(88),o=n(30),a=n(29),s=n(12),u=n(20),l=n(57);null==i.default._remotePlaylist&&(i.default._remotePlaylist={});var c=function(e,t){var n=i.default._remotePlaylist[e];if(n)(0,l.doTimeout)("remote-playlist.".concat(e,".").concat((0,u.seqId)()),(function(){t(n)}));else{var c="".concat((0,o.proto)(),"//").concat((0,a.cdnFastWistiaComHost)(),"/embed/playlists/").concat(e,".json");(0,r.jsonpPlus)(c,{},(function(n){i.default._remotePlaylist[e]=n,t(n)}),{onerror:function(){s.wlog.error("Timed out fetching ".concat(c))},timeout:1e4})}}},(e,t,n)=>{!function(e){var t,i,r,o,a,s,u,l;if(!e.Metrics)n(29).metricsHost,l=(a=n(85)).send,t=a.count,u=a.sample,o=n(6).merge,s=n(5),r=s.elemWidth,i=s.elemHeight,e.Metrics={count:t,sample:u,send:l,videoCount:function(e,t,n,i){return null==n&&(n=1),this.videoSend(e,"count",t,n,i)},videoSample:function(e,t,n,i){return this.videoSend(e,"sample",t,n,i)},videoSend:function(t,n,a,s,u){return null==u&&(u={}),"function"==typeof t.hasData?t.hasData((l=this,function(){var c,d,h,f,p,y,v,m,g,b,_,w,O;if(c=("function"==typeof t.bandwidthTest?t.bandwidthTest().savedResult():void 0)||{},u=o({location:("undefined"!=typeof location&&null!==location&&null!=(y=location.protocol)?y.length:void 0)&&("undefined"!=typeof location&&null!==location&&null!=(v=location.hostname)?v.length:void 0)?location.protocol+"//"+location.hostname:null,agent:navigator.userAgent,account_key:null!=(m=t._mediaData)?m.accountKey:void 0,at:t.time(),video_id:t.hashedId(),embed_type:t.playerType,duration:t.duration(),client_kbps:c.clientKbps,supports_hd:c.supportsHd,autoplay:!!(null!=(g=t._opts)?g.autoPlay:void 0),in_iframe:top!==self,device_pixel_ratio:window.devicePixelRatio,window_width:r(window),window_height:i(window),video_width:t.videoWidth(),video_height:t.videoHeight(),visitor_key:null!=(b=t._tracker)?b.visitorKey():void 0,event_key:null!=(_=t._tracker)?_.eventKey():void 0,event_time_delta:null!=(w=t._tracker)?w.timeDelta():void 0,connection_type:l.connectionType(),version:9,channel:e.channelName},u),/romulus|html5|vulcan/.test(t.playerType)&&(u.errorState=null!=(O=t.elem())?O.error:void 0),null!=t._cacheStatus&&(u.cache_status=t._cacheStatus),null!=t._assetServer&&(u.asset_server=t._assetServer),null!=t._cacheHit&&(u.cache_hit=t._cacheHit),t.inFullscreen&&(u.in_fullscreen=t.inFullscreen()),null!=t._substream?(u.substream=t._substream.index,u.adaptive=t._substream.adaptive,u.current_level=t._substream.currentLevel,u.all_level_names=t._substream.allLevelNames,d=t._substream.asset,u.hls_error_counts=t._substream.hlsErrorCounts()):(u.substream=null,u.adaptive=null,d=null!=(h=t.data)?h.asset:void 0),null!=d&&(u.asset_type=d.type,u.asset_slug=d.slug,u.bitrate=d.bitrate,u.asset_height=d.height,u.asset_width=d.width),(null!=(f=t.videoElem)&&null!=(p=f.buffered)?p.length:void 0)>0&&(u.bufferedFrom0=t.videoElem.buffered.end(0)),null!=t._timeToFirstByte&&(u.time_to_first_byte=t._timeToFirstByte),u.buffered=null!=t.totalBuffered?t.totalBuffered():void 0,u.played=null!=t.totalPlayed?t.totalPlayed():void 0,l.send(n,a,s,u),t._mediaData&&t._mediaData.accountKey&&t._mediaData.accountSpecificMetrics)return l.send(n,t._mediaData.accountKey+"/"+a,s,u)})):void 0;var l},countEvent:function(e,t,n){var i;return n||(n=t),null==(i=this._private.countEventCallbacks)[n]&&(i[n]=this._private.mkCountEventCallback(t,n)),e.rebind(t,this._private.countEventCallbacks[n])},countEventOnce:function(e,t,n){var i;return n||(n=t),null==(i=this._private.countEventOnceCallbacks)[n]&&(i[n]=this._private.mkCountEventOnceCallback(t,n)),e.rebind(t,this._private.countEventOnceCallbacks[n])},sampleEvent:function(e,t,n){var i;return n||(n=t),null==(i=this._private.sampleEventCallbacks)[n]&&(i[n]=this._private.mkSampleEventCallback(t,n)),e.rebind(t,this._private.sampleEventCallbacks[n])},countShowLoadingOnce:function(e){var t,n;return t=-1,e.bind("waiting",(n=this,function(i){return t<2&&i>=2?(n.videoCount(e,"player/show-loading/first",1),t=i,e.unbind):t=i}))},countShowLoadingAll:function(e){var t,n;return t=-1,e.bind("waiting",(n=this,function(i){return t<2&&i>=2&&n.videoCount(e,"player/show-loading/all",1),t=i})),e.bind("done-waiting",(function(){return t=-1}))},countShowLoadingLongTimeOnce:function(e){var t,n;return t=-1,e.bind("waiting",(n=this,function(i){return t<5&&i>=5?(n.videoCount(e,"player/show-loading-long-time/first",1),t=i,e.unbind):t=i}))},countShowLoadingLongTimeAll:function(e){var t,n;return t=-1,e.bind("waiting",(n=this,function(i){return t<5&&i>=5&&n.videoCount(e,"player/show-loading-long-time/all",1),t=i})),e.bind("done-waiting",(function(){return t=-1}))},assetBuckets:function(t){return e.detect.iphone||e.detect.android||e.detect.blackberry||/mobile/i.test(navigator.userAgent)?e.detect.iphone?["mobile","iphone"]:e.detect.android?["mobile","android"]:["mobile"]:[]},connectionType:function(){var e;return null!=(e=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection)?e.type:void 0},sumTimeRanges:function(e){var t,n,i,r;if(null==e)return null;for(r=0,t=n=0,i=e.length;0<=i?n<i:n>i;t=0<=i?++n:--n)r+=e.end(t)-e.start(t);return r},millisecondsSince:function(e){return(new Date).getTime()-e},_private:{countEventCallbacks:{},mkCountEventCallback:function(t,n){return function(i){return n||(n=t),e.Metrics.videoCount(this,"player/"+n,i)}},countEventOnceCallbacks:{},mkCountEventOnceCallback:function(t,n){return function(i){return n||(n=t),e.Metrics.videoCount(this,"player/"+n,i),this.unbind}},sampleEventCallbacks:{},mkSampleEventCallback:function(t,n){return function(i){return n||(n=t),e.Metrics.videoSample(this,"player/"+n,i)}}}}}(Wistia)},(e,t,n)=>{!function(e){var t,i,r,o,a,s,u,l,c,d;if(e.Plugin||(e.Plugin={}),!e.Plugin.Base)a=n(29),i=a.eV1HostWithPort,r=a.eV1Protocol,t=n(91).allow3rdParty,o=n(6).merge,s=n(96),c=s.wData,d=s.wRemoveData,l=n(20).seqId,u=n(18).runScripts,e.Plugin.Base=function(){function t(){this.pluginName="plugin"}return t.prototype.instances=function(){return c(["plugins",this.pluginName,this.video.uuid])},t.prototype.register=function(e){var t;return(t=this.playlist||this.video||this.audio).plugins[this.uuid]=e,c(["plugins",this.pluginName,t.uuid,this.uuid],e)},t.prototype.remove=function(t){var n;if(null==t&&(t={}),(n=this.playlist||this.video||this.audio).plugins[this.uuid]=null,d(["plugins",this.pluginName,n.uuid,this.uuid]),n.plugins[this.uuid]===this&&delete n.plugins[this.uuid],n.plugin[this.pluginName]===this&&delete n.plugin[this.pluginName],!t.dontFit)return e.grid.fitHorizontal(n),e.grid.fitVertical(n)},t.prototype.fit=function(){},t.prototype.init=function(e,t){return null==e.plugins&&(e.plugins={}),(null!=e?e.playlist:void 0)?this.playlist=e:this.video=e,this.target=this.playlist||this.video||this.audio,this.options=t||{},this.params=o({},t||{}),this.uuid=this.params.uuid||l("wistia_","_plugin")},t}(),e.plugin||(e.plugin=function(t,n){var i,r,o,a,s,u;if((i=null!=(a=e.pluginQueue)&&null!=(s=a[t])?s.shift():void 0)&&(o=function(){var e,r;return i.video.info("initializing plugin",t,i.options),e=n(i.video._impl||i.video,i.options)||!0,i.video.plugin[t]=e,i.video._impl&&(i.video._impl.plugin[t]=e),i.video.trigger("plugininitialized",t),null!=(r=i.video._pluginStopGos)&&"function"==typeof r[t]?r[t](!0,e):void 0},r=function(){return i.options.initBeforeHasData?o():i.video.hasData(o)},!0!==i.options.initBeforeHasData&&(null!=(u=i.video)?u.looksDown():void 0)?(i.video.notice('W.plugin: delaying initialization of plugin until "up"',t,i.options),i.video.bind("up",(function(){return r(),this.unbind}))):i.video._implVersion===i.implVersion?r():i.video.notice("W.plugin impl changed, ignoring initialization",t,i.options)),!e.plugin[t])return e.plugin[t]=n},e.plugin._prefetched={},e.plugin._inject=function(t,n,o){var a,s;if(null==o&&(o={}),!1!==o.on)return a=r()+"//"+i()+"/assets/external/"+n+".js",s=[{name:n,options:o,src:o.src&&e.plugin._allow3rdParty(t.options)?o.src:a,async:!0}],e.plugin._setFnForDefinedPlugins(t,s),e.plugin._execQueue(t,s)},e.plugin._allow3rdParty=function(e){return t(e)},e.plugin._setFnForDefinedPlugins=function(t,n){var i,r,o,a;for(o=[],i=0,r=n.length;i<r;i++)a=n[i],e.plugin[a.name]&&o.push(function(n){return n.fn=function(){var i;return i=function(){var i,r,o;return r=e.plugin[n.name](t._impl||t,n.options)||!0,t.plugin[n.name]=r,t._impl&&(t._impl.plugin[n.name]=r,t.trigger("plugininitialized",n.name)),null!=(o=t._pluginStopGos)&&"function"==typeof o[i=n.name]?o[i](!0,r):void 0},n.options.initBeforeHasData?i():t.hasData(i)},n.async=!1}(a));return o},e.plugin._queueUndefinedPlugins=function(t,n){var i,r,o,a,s,u;for(null==e.pluginQueue&&(e.pluginQueue={}),s=[],i=0,r=n.length;i<r;i++)(a=n[i]).subScripts?s.push(function(){var n,i,r,s;for(s=[],n=0,i=(r=a.subScripts).length;n<i;n++)u=r[n],o=u.name||u.src,null==e.pluginQueue[o]&&(e.pluginQueue[o]=[]),a.fn?s.push(void 0):s.push(e.pluginQueue[o].push({video:t,implVersion:t._implVersion,options:u.options}));return s}()):(o=a.name||a.src,null==e.pluginQueue[o]&&(e.pluginQueue[o]=[]),a.fn?s.push(void 0):s.push(e.pluginQueue[o].push({video:t,implVersion:t._implVersion,options:a.options})));return s},e.plugin._execQueue=function(t,n,i){return e.plugin._queueUndefinedPlugins(t,n),u(n).then(i)},e.plugin._init=function(t,n,i){var r,o;return o=t.charAt(0).toUpperCase()+t.substr(1),(r=new(0,e.Plugin[o])).init(n,i),r},e.plugin._instance=function(e,t,n){return c(["plugins",e,t.uuid,n])},e.plugin._remove=function(t,n,i){var r;null!=(r=e.plugin._instance(t,n,i))&&r.remove()},e.plugin._isActive=function(t,n,i){return!!e.plugin._instance(t,n,i)},e.plugin._defined=function(){var t,n,i,r;for(t in i=[],n=e.plugin)r=n[t],/^_/.test(t)||i.push({name:t,options:r});return i})}(Wistia)},(e,t,n)=>{var i,r=n(86);(i=window.Wistia).localStorage||(i.localStorage=r.setOrGet,i.removeLocalStorage=r.removeLocalStorage)},(e,t,n)=>{!function(e){var t,i,r,o,a,s,u,l,c,d,h,f,p,y,v,m;p=n(5),t=p.addInlineCss,o=p.elemAppend,a=p.elemFromObject,s=p.elemHeight,u=p.elemRemove,l=p.elemStyle,c=p.elemWidth,r=n(59).countMetric,v=n(20).seqId,y=n(91),f=y.pluginScriptsToLoad,h=y.getPluginsNotInList,d=n(103).generateHtml,e.gridify||(e.gridifyCss=function(e){return e.replace(/_grid$/,""),"#"+e+"_wrapper{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;font-family:Arial,sans-serif;font-size:14px;height:100%;position:relative;text-align:left;width:100%;}\n#"+e+"_wrapper *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}\n#"+e+"_above{position:relative;}\n#"+e+"_main{display:block;height:100%;position:relative;}\n#"+e+"_behind{height:100%;left:0;position:absolute;top:0;width:100%;}\n#"+e+"_center{height:100%;overflow:hidden;position:relative;width:100%;}\n#"+e+"_front{display:none;height:100%;left:0;position:absolute;top:0;width:100%;}\n#"+e+"_top_inside{position:absolute;left:0;top:0;width:100%;}\n#"+e+"_top{width:100%;position:absolute;bottom:0;left:0;}\n#"+e+"_bottom_inside{position:absolute;left:0;bottom:0;width:100%;}\n#"+e+"_bottom{width:100%;position:absolute;top:0;left:0;}\n#"+e+"_left_inside{height:100%;position:absolute;left:0;top:0;}\n#"+e+"_left{height:100%;position:absolute;right:0;top:0;}\n#"+e+"_right_inside{height:100%;right:0;position:absolute;top:0;}\n#"+e+"_right{height:100%;left:0;position:absolute;top:0;}\n#"+e+"_below{position:relative;}"},e.gridifyHtml=function(e){return{id:e+"_wrapper",childNodes:[{id:e+"_above"},{id:e+"_main",childNodes:[{id:e+"_behind"},{id:e+"_center"},{id:e+"_front"},{id:e+"_top_inside",childNodes:{id:e+"_top"}},{id:e+"_bottom_inside",childNodes:{id:e+"_bottom"}},{id:e+"_left_inside",childNodes:{id:e+"_left"}},{id:e+"_right_inside",childNodes:{id:e+"_right"}}]},{id:e+"_below"}]}},e.createGrid=function(t,n){var r,o;for(o in r=e.createGridSkeleton(),e.initGridEventListeners(r),e.initGridDimensions(t,r,n),r)"STYLE"!==r[o].nodeName&&!0!==t._opts._inLegacyPlaylist&&i(r[o],t);return r},i=function(t,n){return t.originalAppendChild=t.appendChild,t.originalAppend=t.append,t.originalPrepend=t.prepend,t.appendChild=function(i,r){return null==r&&(r={}),!0!==r.wistiaGridCaller&&!0!==e._hasTrackedGrid&&(e._hasTrackedGrid=!0,m(n)),t.originalAppendChild(i)},t.append=function(i,r){return null==r&&(r={}),!0!==r.wistiaGridCaller&&!0!==e._hasTrackedGrid&&(e._hasTrackedGrid=!0,m(n)),t.originalAppend(i)},t.prepend=function(i,r){return null==r&&(r={}),!0!==r.wistiaGridCaller&&!0!==e._hasTrackedGrid&&(e._hasTrackedGrid=!0,m(n)),t.originalPrepend(i)}},m=function(e){var t;return t=f(e._mediaData,e._opts),r("custom-plugin-grid-append",1,{hashedId:e._mediaData.hashedId,href:window.location.href,plugins:h(t)})},e.createGridSkeleton=function(){var n,i,r,s,c,d,h,f;for(i=v("wistia_grid_"),r=a(e.gridifyHtml(i)),n=t(r,e.gridifyCss(i)),(d={}).css=n,d.root=r,l(r,{display:"none"}),o(document.body,r),s=0,c=(f=["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"]).length;s<c;s++)d[h=f[s]]=document.getElementById(i+"_"+h);return u(r),l(r,{display:"block"}),d},e.initGridEventListeners=function(e){return e.center.addEventListener("scroll",(function(){return e.center.scrollTop=0}))},e.initGridDimensions=function(e,t,n){var i,r;if(null==n&&(n={}),!1!==n.initDimensions)return r=e._embedContainer,i=e.chrome,e._opts,i.style.height=s(r)+"px",t.main.style.width=c(r)+"px"},e.gridify=function(n,i){var r,o,a,u,l,h;for(l={},r=i.id+"_grid",i.innerHTML=d(e.gridifyHtml(r)),o=0,a=(u=["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"]).length;o<a;o++)l[h=u[o]]=document.getElementById(r+"_"+h);return t(l.wrapper,e.gridifyCss(r)),l.wrapper.style.height=s(i)+"px",l.main.style.width=c(i)+"px",l},e.isGridElem=function(e,t){var n;for(n in e)if(t===e[n])return!0;return!1},e.grid={},e.grid.allNodesHidden=function(e){var t,n,i;if(0===e.length)return!0;for(t=0,n=e.length;t<n;t++)if((i=e[t]).style&&"none"!==i.style.display)return!1;return!0},e.grid.zeroEmptySections=function(t){var n,i,r,o,a,s;for(a=[],i=0,r=(o=["top","bottom","left","right","above","below"]).length;i<r;i++)s=o[i],(n=t.grid[s]).childNodes.length?e.grid.allNodesHidden(n.childNodes)?(n.style.height="0px",n.style.fontSize="0px",n.style.lineHeight="0px",a.push(n.isEmpty=!0)):(n.style.height="",n.style.fontSize="",a.push(n.style.lineHeight="")):(n.appendChild(document.createTextNode(" "),{wistiaGridCaller:!0}),n.style.height="0px",n.style.fontSize="0px",n.style.lineHeight="0px",a.push(n.isEmpty=!0));return a},e.grid.wrapperHeight=function(e){var t;return t=e.grid.wrapper,s(t)},e.grid.wrapperWidth=function(e){var t;return t=e.grid.wrapper,c(t)},e.grid.fitVertical=function(t){var n,i,r,o,a;t._opts.dontFit||(e.grid.zeroEmptySections(t),r=(i=t.grid).main,i.wrapper,a=Math.max(s(i.above),s(i.top)),n=Math.max(s(i.below),s(i.bottom)),o=Math.max(0,e.grid.wrapperHeight(t)-a-n),r.style.height=o+"px",0===c(i.left)&&(r.style.left="0px"),r.style.marginTop=s(i.top)+"px")},e.grid.fitHorizontal=function(t){var n,i,r,o,a;t._opts.dontFit||(e.grid.zeroEmptySections(t),(n=t.grid).wrapper,r=n.main,i=c(n.left),a=c(n.right),o=e.grid.wrapperWidth(t)-i-a,r.style.width=o+"px",r.style.left=i+"px")},e.grid.fit=function(t,n){/left|right/.test(n)?e.grid.fitHorizontal(t):/top|bottom|above|below/.test(n)&&e.grid.fitVertical(t),t.ieSizeHack()})}(Wistia)},(e,t,n)=>{!function(e){var t,i,r,o,a,s,u,l,c,d,h,f,p,y,v,m,g,b;if(!e.embeds)e.embeds={},i=n(90),b=n(12).wlog,h=n(8).onDocReady,o=n(124).asyncChain,g=n(39).throttle,(p=n(5)).elemClasses,s=p.elemHasClass,u=p.elemMutationObserver,n(30).queryParamsToObject,a=n(57).clearTimeouts,(y=n(6)).cast,d=y.isObject,r=y.assign,y.clone,f=n(125).optionsFromElemClass,l=n(101).getAllApiEmbedElements,c=(v=n(104)).getOrSetEmbedOptionStore,m=v.setEmbedOptionStore,t=v.GLOBAL_ID_KEY,e.embeds.setup=function(t){return e.embeds.notEmbedding((function(){var n;if(h(n=function(){var n,i,r,a,s,u,l,c,d;e.embeds.notEmbedding(!1),a=[];try{for((t=e.embeds.uninitialized(t))&&t.length&&t.length>0&&e.info("initializing",null!=t?t.length:void 0,"embedElems"),u=0,l=t.length;u<l;u++){r=t[u];try{e.info("initializing elem",r),s=e.embeds.hashedIdForElem(r,{asyncOnly:!0}),r.id?document.getElementById(r.id)!==r&&(c=e.embeds.genIdFor(s),e.error('Duplicate DOM ID found for container "'+r.id+'". Changing it to "'+c+'" to avoid issues.',r),r.id=c):r.id=e.embeds.genIdFor(s),d=f(r),m("__"+r.id+"_dom_options__",d),function(t,n){a.push((function(){if(!e.embeds.containerIsInitialized(n))return e.embed(t,{container:n.id})}))}(s,r)}catch(t){n=t,e.error(n)}}}catch(t){i=t,e.error(i)}return a.push((function(){return e.watchForInit()})),a.push((function(){return e.embeds.notEmbedding(!0)})),o("embeds_setup",a)}),0===e.detect.ios.version&&!e.detect.safari)return n()}))},e.embeds._setupThrottled=g(500,e.embeds.setup),e.embeds.hashedIdForElem=function(e,t){var n,i,r,o,a,s;return null==t&&(t={}),t.asyncOnly?(null!=(n=e.className)&&null!=(i=n.match(/wistia_async_([^\s]+)/))?i[1]:void 0)||null:(null!=(r=e.className)&&null!=(o=r.match(/wistia_async_([^\s]+)/))?o[1]:void 0)||(null!=(a=e.className)&&null!=(s=a.match(/wistia_([^\s]+)/))?s[1]:void 0)||null},e.embeds.genIdFor=function(e){var t,n,i;for(t="wistia-"+e,i=1;n=t+"-"+i,document.getElementById(n);)i+=1;return n},e.options=c,e.embeds.uninitialized=function(t){var n,i,r,o;for(null==t&&(t=l()),o=[],i=0,r=t.length;i<r;i++)n=t[i],e.embeds.hashedIdForElem(n,{asyncOnly:!0})&&!e.embeds.containerIsInitialized(n)&&o.push(n);return o},e.embeds.containerIsInitialized=function(t){return t&&t.wistiaApi&&!(t.wistiaApi instanceof e.IframeApiProxy)},e.embeds.initialized=function(t){var n,i,r,o;for(o in r=[],i=e._data.video)n=i[o],r.push(n);return r},e.embeds.observe=function(){var t,n;if(!e.embeds.initObserver){if(e.embeds.initObserver=u((function(t){var n,i,r,o,a,u,l,c,d,h;for(i=[],n=!1,r=0,a=t.length;r<a;r++)for((null!=(d=(l=t[r]).addedNodes)?d.length:void 0)>0&&(n=!0),o=0,u=(h=l.addedNodes||[]).length;o<u;o++)c=h[o],s(c,"wistia_embed")&&i.push(c);if(i.length>0&&setTimeout((function(){return e.embeds.setup(i)}),10),n)return e.embeds._setupThrottled()})),t={subtree:!0,childList:!0},e.detect.ios.version>0||e.detect.safari)return h((function(){return e.embeds.initObserver.observe(document.body,t)}));try{return e.embeds.initObserver.observe(document.body,t)}catch(i){return n=i,b.notice(n),h((function(){try{return e.embeds.initObserver.observe(document.body,t)}catch(e){return n=e,b.error(n)}}))}}},e.embeds.unobserve=function(){var t;return null!=(t=e.embeds.initObserver)&&t.disconnect(),e.embeds.initObserver=null},e.embeds.poll=function(t){return null==t&&(t=500),e.eventLoop.add("poll_setup_embeds",t,(function(){return e.embeds.setup()}))},e.embeds.unpoll=function(){var t;return null!=(t=e.eventLoop)?t.remove("poll_setup_embeds"):void 0},e.embeds.watch=function(){return e.embeds._dontWatch=!1,e.detect.mutationObserver?(e.embeds.observe(),e.embeds.poll(2e3)):e.embeds.poll()},e.embeds.dontWatch=function(){return e.embeds._dontWatch=!0,e.embeds.unwatch()},e.embeds.unwatch=function(){return e.embeds.unobserve(),e.embeds.unpoll()},e.flushInit=function(){var t,n,i,r;if(window.wistiaInit){if(wistiaInit instanceof Array)for(i=0,r=wistiaInit.length;i<r;i++){n=wistiaInit[i];try{"function"==typeof n&&n(e)}catch(e){t=e,b.error(t)}}else"function"==typeof wistiaInit&&wistiaInit(e);return window.wistiaInit=null}},e.addQueue=function(t){return e._queueNames.push(t),e.watchForInit()},e._queueNames=["_wq","wistiaInitQueue"],e._wqBoundListeners=[],e.flushInitQueue=function(){var n,i,r,o,a,s,u,l,c,h,f,p,y,v;if(!e._isFlushingInitQueue){e._isFlushingInitQueue=!0;try{for(y=e._queueNames,a=0,l=y.length;a<l;a++)if(f=y[a],(h=window[f])&&h instanceof Array&&h.length>0){for(o=[];h.length>0;)if(v=h.shift(),d(v))if(v.revoke&&e.revokeQueueListener(v.revoke),v.__unbinds||(v.__unbinds=[]),v.id)p=!1,v.options&&("_all"===v.id?(m(t,v.options),p=!0):(m(v.id,v.options),p=!0)),function(t){var n,i;i="_all"===t.id?[]:[t.id],t.onFind&&(n=i.concat([function(e){return t.onFind(e)}]),t.__unbinds=t.__unbinds.concat(e.api.apply(e,n)),p=!0),t.onHasData&&(n=i.concat([function(e){return e.hasData((function(){return t.onHasData(e)}))}]),t.__unbinds=t.__unbinds.concat(e.api.apply(e,n)),p=!0),t.onEmbedded&&(n=i.concat([function(e){return e.embedded((function(){return t.onEmbedded(e)}))}]),t.__unbinds=t.__unbinds.concat(e.api.apply(e,n)),p=!0),t.onReady&&(n=i.concat([function(e){return e.ready((function(){return t.onReady(e)}))}]),t.__unbinds=t.__unbinds.concat(e.api.apply(e,n)),p=!0),p?e._wqBoundListeners.push(t):e.error("No initialization function provided for ID "+t.id,t)}(v);else for(u in r=function(n,i,r){var a,s;return"function"==typeof r?(s=function(e){return e.hasData((function(){return r(e)}))},a=function(){return n.__unbinds="_all"===i?n.__unbinds.concat(e.api(s)):n.__unbinds.concat(e.api(i,s)),e._wqBoundListeners.push(n)},o.push(a)):d(r)?(a="_all"===i?function(){return m(t,r)}:function(){return m(i,r)},o.push(a)):"__unbinds"!==i&&"revoke"!==i?e.error("Unknown initialization object:",r,"Expected Object or Function."):void 0},v)r(v,u,v[u]);else"function"==typeof v?function(t){var n;n=function(){return t(e)},o.push(n)}(v):e.notice(f+": Don't know what to do with "+v+", ignoring.");for(s=0,c=o.length;s<c;s++){i=o[s];try{"function"==typeof i&&i(e)}catch(e){n=e,b.error(n)}}h.length=0}}catch(e){n=e,b.error(n)}return e._isFlushingInitQueue=!1}},e.getInitQueueListeners=function(){return r([],e._wqBoundListeners)},e.revokeQueueListener=function(t){var n,i,r,o,a,s,u,l;for(s=[],n=0,r=(u=t instanceof Array?t:[t]).length;n<r;n++){if((t=u[n]).__unbinds){for(i=0,o=(a=t.__unbinds).length;i<o;i++)"function"==typeof(l=a[i])&&l();delete t.__unbinds}s.push(e._wqBoundListeners=e._wqBoundListeners.filter((function(e){return e!==t})))}return s},e.watchForInit=function(){if(null==e._pollInit&&(e._pollInit=function(){return e.flushInitQueue(),e.flushInit()}),e._pollInit(),e.eventLoop)return e.eventLoop.unpause("poll_init"),e.eventLoop.add("poll_init",500,e._pollInit)},e.api=function(t,n){var i,r,o,a,s,u,l,c,d,h,f;if(null!=t){if(n)return e.api.onFind(t,n);if("function"==typeof t)return e.api.onFind(t);if("string"==typeof t){if(c=t,!(o=document.getElementById(c)))for(u=0,l=(r=e.api.all()).length;u<l;u++)if(0===(null!=(d=(a=r[u]).hashedId())?d.indexOf(c):void 0)||0===(null!=(h=a.container.id)?h.indexOf(c):void 0)){o=a.container;break}}else"number"==typeof t?(s=t,i=e.api.all(),s<0&&(s=i.length+s),o=(null!=(f=i[s])?f.container:void 0)||null):window.HTMLElement&&t instanceof HTMLElement?o=t:e.error("W.api: Unrecognized matcher",t);return(null!=o?o.wistiaApi:void 0)&&(o.wistiaApi instanceof e.PublicApi||e.IframeApi&&o.wistiaApi instanceof e.IframeApi)?o.wistiaApi:null}return e.api.all()[0]||null},e.api.all=function(){return e.api._apiHandles().concat(e.api._iframeHandles())},e.api._apiHandles=function(){return e.embeds.initialized()},e.api._iframeHandles=function(){var t,n,i,r;for(r in i=[],n=e._data.iframe_api)t=n[r],i.push(t);return i},e.api.onFind=function(t,n){var i,r;return"function"==typeof t&&(n=t,t=null),i=function(i){return(null===t||e.api(t)===i)&&(n(i),!0)},wistiaEmbeds.each(i),r=[wistiaEmbeds.on("initembed",i),wistiaEmbeds.on("afterreplace",i)],function(){var e,t,n,i;for(n=[],e=0,t=r.length;e<t;e++)i=r[e],n.push(i());return n}},e._asyncInitSoonAfterLoad=function(t){return null==t&&(t=10),setTimeout((function(){var t;try{return e.embeds.setup(),e.embeds._dontWatch||e.embeds.watch(),e.watchForInit()}catch(e){return t=e,b.error(t)}}),t)},e._initializers.initAsyncEmbeds=function(){var t,n,r;return e.embeds.notEmbedding=new i,e.embeds.notEmbedding(!0),null==e._data&&(e._data={}),null==(t=e._data).video&&(t.video={}),null==(n=e._data).iframe_api&&(n.iframe_api={}),window._inWistiaIframe?setTimeout((function(){return e.watchForInit()}),10):(e._asyncInitSoonAfterLoad(),e._asyncInitSoonAfterLoad(500),null!=(r=e.eventLoop)?r.pause("poll_init"):void 0)},e._destructors.destroyAsyncEmbeds=function(){var t,n;return a("embeds_setup"),null!=(t=e.eventLoop)&&t.remove("poll_init"),null!=(n=e.embeds)?n.unwatch():void 0}}(Wistia)},(e,t,n)=>{n.d(t,{asyncChain:()=>u});var i=n(90),r=n(12),o=n(57);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var u=function(e,t){var n,s=[],u=a(t);try{for(u.s();!(n=u.n()).done;){var l=n.value;!function(e){s.push((new i).run((function(){try{return e()}catch(e){return r.wlog.error(e)}})))}(l)}}catch(e){u.e(e)}finally{u.f()}var c=s[s.length-1];i._drainStopGosAsync(e,s);var d=new i;return c.then((function(){return(0,o.doTimeout)("".concat(e,".last"),(function(){return d.go()}),0)})),d}},(e,t,n)=>{n.d(t,{optionsFromElemClass:()=>a});var i=n(5),r=n(30),o=n(6),a=function(e){var t=[];(0,i.elemClasses)(e).forEach((function(e){e.indexOf("=")>0&&t.push(e)}));var n=(0,r.queryParamsToObject)(t.join("&"));return(0,o.cast)(n)}},(e,t,n)=>{var i=[].slice;!function(e){var t,r,o,a,s,u,l,c;if(u=n(5),o=u.elemRebind,a=u.elemUnbind,r=n(28).dynamicImport,e.iframeInit||(e.iframeInit=function(e,t){return r("insideIframe.js").then((function(n){return n.iframeInit(e,t)}))}),!e.IframeApiProxy){for(s in t=function(){function e(e){this.iframe=e,this.loadIframeApi()}return e.prototype.loadIframeApi=function(){return new Promise((function(e){return setTimeout((function(){return r("iframeApi.js").then(function(t){return function(){return t._loaded=!0,e()}}(this))}),0)}))},e.prototype.proxyFn=function(){var e,t,n,r;return t=arguments[0],e=2<=arguments.length?i.call(arguments,1):[],this._loaded?(n=this.iframe.wistiaApi)[t].apply(n,e):(this.loadIframeApi().then((r=this,function(){var n;if(r.iframe.wistiaApi!==r)return(n=r.iframe.wistiaApi)[t].apply(n,e)})),this)},e.prototype._hasImpl=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["_hasImpl"].concat(i.call(e)))},e.prototype.hasData=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["hasData"].concat(i.call(e)))},e.prototype.embedded=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["embedded"].concat(i.call(e)))},e.prototype.ready=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["ready"].concat(i.call(e)))},e.prototype.up=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["up"].concat(i.call(e)))},e.prototype.down=function(){return this.proxyFn.apply(this,["down"].concat(i.call(args)))},e}(),l=e.PublicApi.prototype)c=l[s],t.prototype[s]||"function"!=typeof c||function(e){t.prototype[e]=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,[e].concat(i.call(t)))}}(s);e.IframeApiProxy=t}null==e.maybeRequireIframeApi&&(e.maybeRequireIframeApi=function(){var e,n,i,r,o;if((o=document.querySelectorAll("iframe.wistia_embed,iframe[name=wistia_embed],iframe.wistia_playlist,iframe[name=wistia_playlist]")).length>0){for(r=[],e=0,i=o.length;e<i;e++)(n=o[e]).wistiaApi?r.push(void 0):r.push(n.wistiaIframeApiProxy=n.wistiaApi=new t(n));return r}}),null==e.onIframePostMessage&&(e.onIframePostMessage=function(e){if("new-wistia-iframe"===e.data)return r("iframeApi.js"),a}),o(window,"message",e.onIframePostMessage),e.bind("ev1initend",(function(){return e.maybeRequireIframeApi(),o(window,"message",e.onIframePostMessage)})),e.bind("ev1destroystart",(function(){return a(window,"message",e.onIframePostMessage)}))}(Wistia)},(e,t,n)=>{var i={}.hasOwnProperty;!function(e){var t,r,o,a;if(a=n(12).wlog,o=n(96).wData,t=n(57).doTimeout,r=n(20).seqId,!e.EmbedListener)e.EmbedListener=function(n){function s(){var e;this.uuid=r(),this.logger=a.getPrefixedFunctions("EmbedShepherd"),this.bindHandles(),this.bind("down",(e=this,function(){return e.logger.info("got down event, prune and rebind handles"),t("prune_zombies_later",(function(){return e.pruneZombies(),e.bindHandles()}))})),this.bind("up",function(e){return function(t){return e.logger.info("got up event, set _bound=false for",t),t._bound=!1,e.bindHandles()}}(this))}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(s,Array),s.prototype.bindHandles=function(){var e,t,n,i,r;for(e=this.allUnboundHandles(),this.logger.info("bindHandles",e),r=[],n=0,i=e.length;n<i;n++)t=e[n],this.logger.info("bind to all events for",t),t._bound=!0,r.push(this.push(t));return r},s.prototype.pruneZombies=function(){var e,t,n,i,r,o,a,s,u,l,c;for(this.logger.info("pruneZombies"),c=[],n=0,o=(s=this.allBoundHandles()).length;n<o;n++)(e=s[n]).looksDown()?this.logger.info("prune zombie",e):c.push(e);for(t=i=0,u=this.length;0<=u?i<=u:i>=u;t=0<=u?++i:--i)delete this[t];for(this.length=0,l=[],r=0,a=c.length;r<a;r++)e=c[r],l.push(this.push(e));return l},s.prototype.allBoundHandles=function(){var e,t,n,i,r;for(r=[],t=0,n=(i=this.allHandles()).length;t<n;t++)(e=i[t])._bound&&r.push(e);return r},s.prototype.allUnboundHandles=function(){var e,t,n,i,r;for(r=[],t=0,n=(i=this.allHandles()).length;t<n;t++)(e=i[t])._bound||r.push(e);return r},s.prototype.allHandles=function(){return this.apiHandles().concat(this.iframeApiHandles())},s.prototype.iframeApiHandles=function(){var t,n,i,r,o;for(this.iframes||(this.iframes=document.getElementsByTagName("iframe")),o=[],n=0,i=(r=this.iframes).length;n<i;n++)!(t=r[n]).wistiaApi||t.wistiaApi instanceof e.IframeApiProxy||"removed"===t.wistiaApi||o.push(t.wistiaApi);return o},s.prototype.apiHandles=function(){var e,t,n,i;if(t=[],window.Wistia)for(n in i=o("video"))e=i[n],t.push(e);return t},s.prototype.each=function(e){var t,n,i,r,o;for(o=[],n=0,i=(r=this.allBoundHandles()).length;n<i;n++)t=r[n],o.push(e(t));return o},s.prototype.onFind=function(e){var t,n;return n=this,t=function(t){return t.up((function(){return n.logger.info("onFind",t),e(t),t.unbind}))},this.each(t),this.bind("initembed",t)},s}(),e.mixin(e.EmbedListener.prototype,e.bindable),e._initializers.initEmbedShepherd=function(){return window.wistiaEmbeds?(a.info("EmbedShepherd window.wistiaEmbeds already exists, call bindHandles"),"function"==typeof wistiaEmbeds.bindHandles&&wistiaEmbeds.bindHandles()):(a.info("EmbedShepherd initialize embed shepherd"),window.wistiaEmbeds=new e.EmbedListener),a.info("EmbedShepherd call window.wistiaEmbedShepherdReady()"),"function"==typeof window.wistiaEmbedShepherdReady?window.wistiaEmbedShepherdReady():void 0},e._destructors.destroyEmbedShepherd=function(){var e;return null!=(e=window.wistiaEmbeds)&&e.each((function(e){return e._bound=!1})),window.wistiaEmbeds=null}}(Wistia)},(e,t,n)=>{!function(e){var t,i,r,o,a;if(!(i=e).VisitorKey)r=n(13).globalBind,o=n(60).isVisitorTrackingEnabled,a=n(106).uniqId,t="__distillery",r("visitortrackingchange",(function(e,t){var n,r,a,s,u;for(r=0,a=(s=i.api.all()).length;r<a;r++)"function"==typeof(u=s[r])._postDownVisitorTrackingEnabled&&u._postDownVisitorTrackingEnabled();if(i.visitorKey){if(!o())return i.visitorKey.unpersist(),"function"==typeof(n=i._destructors).destroyMux?n.destroyMux():void 0;if(i.visitorKey.value())return i.visitorKey.persist(i.visitorKey.value())}})),i.VisitorKey=function(){function e(){var e,t,n;this.ready=(e=this.ready,t=this,function(){return e.apply(t,arguments)}),this.unbinds=[],setTimeout((n=this,function(){return n.unbinds.push(i.api.onFind((function(e){return e.hasData((function(){var t;return e.iframe||!0!==(null!=(t=e._mediaData)?t.privacyMode:void 0)||n.unpersist(),n.ready()}))})))}),0)}return e.prototype.ready=function(){return this._readyPromise||(this._readyPromise=new Promise((e=this,function(t){return e.savedValue()||e.persist(i.VisitorKey.generate()),t()}))),this._readyPromise;var e},e.prototype.reinitialize=function(){return this.destroy(),this.unbinds=[],this._readyPromise=null,this.ready()},e.prototype.persist=function(e){if(i.VisitorKey.isValid(e)){if(this.info("@persist",e),this._value=e,o())return!0!==window.wistiaDisableCookies&&this.localStorageValue()!==this._value?i.localStorage(t,this._value):void 0}else this.error(new Error("Attempted to persist invalid visitor key '"+e+"'"))},e.prototype.unpersist=function(){return this.clearFromCurrentDomain()},e.prototype.clear=function(){return this.info("clear"),this.unpersist(),this._value=null},e.prototype.clearFromCurrentDomain=function(){return i.removeLocalStorage(t,null)},e.prototype.value=function(){var e;return(e=this._value||this.savedValue())||(e=i.VisitorKey.generate(),this.persist(e)),e},e.prototype.savedValue=function(){return o()?this.localStorageValue():void 0},e.prototype.localStorageValue=function(){return i.localStorage(t)},e.prototype.isValid=function(){return i.VisitorKey.isValid(this.value())},e.prototype.destroy=function(){var e,t,n;for(e=0,t=(n=this.unbinds).length;e<t;e++)(0,n[e])();return this.unbinds=[]},e.isValid=function(e){return(null!=e?e.length:void 0)>25&&/^[a-z0-9_\-\.]+$/i.test(e)},e.generate=function(){return a("6290e1f2400e67586f946cc52cddffaa".substring(0,7)+"_")},e}(),i.mixin(i.VisitorKey.prototype,i.logHelpers),i._initializers.initVisitorKey=function(){return i.visitorKey=new i.VisitorKey},i._destructors.destroyVisitorKey=function(){var e;return null!=(e=i.visitorKey)&&e.destroy(),i.visitorKey=null}}(Wistia)},()=>{var e;(e=window.Wistia)._initializers.initSpecificTime=function(){try{var t;if(parent!==self)return;var n=location.href.match(/[?&]wtime=([\dhms]*)/),i=null===(t=location.href.match(/[?&]wvideo(id)?=([^&]+)/))||void 0===t?void 0:t[2];if(!((null==n?void 0:n.length)>=2))return;if(e._specificTimeInitiated)return;e._specificTimeInitiated=!0;var r=!1;return window.wistiaEmbeds.onFind((function(e){if(!i||e.hashedId()===i)return r?void 0:(r=!0,e.embedded((function(){var t;return null===(t=e.popover)||void 0===t?void 0:t.show()})),e.time(n[1]).play())}))}catch(t){return e.error(t),e._specificTimeInitiated=!1}}},(e,t,n)=>{var i=n(131);!function(e){if(!e.Interpolation)e.Interpolation=i.default}(window.Wistia)},(e,t,n)=>{function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.d(t,{default:()=>s});const s=function(){function e(){o(this,e);var t=arguments.length<=0?void 0:arguments[0],n=t.seedRange,i=t.seedFunction,r=t.seedStart,a=t.outputStart,s=null!=a?a:0,u=t.outputEnd,l=null!=u?u:1,c=t.easing,d=null!=c?c:e.linear;if(null==n)throw new Error("Must provide seedRange argument");if(null!=i&&"function"!=typeof i)throw new Error("Given seed is not a function");if("function"!=typeof d)throw new Error("Invalid easing function given: ".concat(this.easing));this._seedRange=n,this._seedFunction=i||function(){return(new Date).getTime()},this._outputStart=s,this._outputEnd=l,this._easing=d,this._seedStart=(null==r?void 0:r())||this.seed()}var t,n,r;return t=e,r=[{key:"linear",value:function(e,t,n,i){return e*t/(n||1)+i}},{key:"easeInOut",value:function(e,t,n,i){return(t/=(n||1)/2)<1?e/2*t*t+i:-e/2*((t-=1)*(t-2)-1)+i}}],(n=[{key:"seed",value:function(){return this.seedFunction()()}},{key:"seedStart",value:function(){return this._seedStart}},{key:"seedRange",value:function(){return this._valOrFn(this._seedRange)}},{key:"seedFunction",value:function(){return this._seedFunction}},{key:"outputStart",value:function(){return this._valOrFn(this._outputStart)}},{key:"outputEnd",value:function(){return this._valOrFn(this._outputEnd)}},{key:"easing",value:function(){return this._valOrFn(this._easing)}},{key:"value",value:function(){return this._easing.apply(this,i(Array.from(this.easingArgs()||[])))}},{key:"atEnd",value:function(){return 1===this.ratio()}},{key:"atStart",value:function(){return 0===this.ratio()}},{key:"easingArgs",value:function(){return[this.c(),this.t(),this.d(),this.b()]}},{key:"seedDelta",value:function(){return this.seedRange()>0?Math.min(this.seedRange(),this.seed()-this.seedStart()):this.seedRange()<0?Math.max(this.seedRange(),this.seed()-this.seedStart()):0}},{key:"ratio",value:function(){var e=this.seedRange();return 0===e?1:Math.max(0,Math.min(1,this.seedDelta()/e))}},{key:"c",value:function(){return this.outputEnd()-this.outputStart()}},{key:"t",value:function(){return this.seedDelta()}},{key:"d",value:function(){return this.seedRange()}},{key:"b",value:function(){return this.outputStart()}},{key:"_valOrFn",value:function(e){return"function"==typeof e?e():e}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},(e,t,n)=>{var i,r=n(28);(i=window.Wistia).mux||(i.mux={}),i._initializers.initMux=function(){if(!i.mux._setup){var e,t=window.crypto||window.msCrypto;if(void 0!==t)e=t.getRandomValues(new Uint32Array(1))[0]/4294967296>=.1;else{var n=Math.random();e=Number(n>=.1)}e?i.mux._disabled=!0:(i.mux._setup=!0,i.mux._disabled=!1,i.api.onFind((function(e){var t=function(){return window.wistiaDisableMux};t()||i.mux._disabled||e.iframe||e._opts&&!1===e._opts.mux||(0,r.dynamicImport)("wistia-mux.js").then((function(n){e.embedded((function(){t()||n.init(e)}))}))})))}},i._destructors.destroyMux=function(){i.mux._disabled=!0;for(var e=i.api.all(),t=0;t<e.length;t++){var n;null===(n=e[t].mux)||void 0===n||n.destroy()}}},(e,t,n)=>{n(3);var i=n(5),r=n(28);window._wq=window._wq||[],window._wq.push({id:"_all",onHasData:function(e){(function(e){if(e._mediaData&&e._mediaData.integrations)for(var t in e._mediaData.integrations)if(e._mediaData.integrations[t])return!0;return!1})(e)&&(0,i.pageLoaded)((function(){setTimeout((function(){(0,r.dynamicImport)("allIntegrations.js").then((function(e){e.runIntegrationsSetup()}))}),1e3)}))}})},(e,t,n)=>{var i,r;i=n(27).getDefaultTranslation,(r=Wistia).initializeOnce=function(){return r._initializers.initDetect(),r._initializers.initWLog(),r._initializers.initVisitorKey(),r._initializers.initEventLoop(),r._initializers.initFullscreenTriggers(),r.trigger("ev1initonce"),performance.mark("player_init_start")},r.initializeEveryTime=function(){var e;return r.trigger("ev1initstart"),r._initializers.initEmbedShepherd(),r._initializers.initMux(),r._initializers.initAsyncEmbeds(),r._initializers.initSpecificTime(),i(),null!=(e=r.eventLoop)&&e.resync(),r.trigger("ev1initend")},r.destroy=function(){return r.trigger("ev1destroystart"),r._destructors.destroyAsyncEmbeds(),r._destructors.destroyEmbedShepherd(),r._destructors.destroyEmbedLinks(),r._destructors.destroyFullscreenTriggers(),r._destructors.destroyEventLoop(),r._destructors.destroyVisitorKey(),r._destructors.destroyWLog(),r._destructors.destroyMux(),r.trigger("ev1destroyend")},r.destroyGlobals=function(){var e,t;for(e in window.Wistia=null,window.wistiaApi=null,window.wistiaDispatch=null,window.wistiaBindIframes=null,window.wistiaEmbeds=null,window._wistiaElemId=null,window.wistiaInitQueue=null,window.wistiaInit=null,window.wistiaEmbedShepherdReady=null,t=[],window)window[e],/^wistiajson/.test(e)?t.push(window[e]=null):t.push(void 0);return t},r.reinitialize=function(){return r.destroy(),r.initializeOnce(),r.initializeEveryTime()},r._initialized||(r._initialized=!0,r.initializeOnce()),r.initializeEveryTime()},(e,t,n)=>{n(136)},(e,t,n)=>{var i=n(3),r=(n(2),n(72)),o=n(8),a=n(137),s=n(84),u=n(70),l=n(5),c=n(6),d=n(57),h=n(11),f=n(28),p=n(58),y=(n(145),n(151),n(153),n(154),n(158),n(160),n(162),n(164),n(165),n(167),n(169),n(174),n(176),n(178),n(180),n(181),n(183),n(187),n(189),n(193)),v=n(195),m=n(196),g=n(197),b=n(198),_=n(199),w=n(200),O=n(201),k=n(202),P=n(208),T=n(209),S=n(210),E=n(211),C=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(){return x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=M(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},x.apply(this,arguments)}function M(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=F(e)););return e}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=F(e);if(t){var r=F(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return B(this,n)}}function B(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var L=(0,h.cachedDetect)();if(!i.default.VulcanV2Player){var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(M,e);var t,n,h,D=I(M);function M(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,M),(t=D.call(this,e)).playerType="vulcan-v2",t._enabledControls={},t._visibilityRequests={},t._inputContextsToEnter=[],t._playerContext=[],t._overlays={},t._initialized=t.setupBehaviors(),t._isKeyboardFocused=void 0,t.setupTracking(),e._playlist&&e._playlist.length>1&&t.loadLastFrameCanvasControl(),t.on("playlistchange",(function(e){e.length>1&&t.loadLastFrameCanvasControl()}));var n=t.on("beforereplace",(function(){n(),t.loadLastFrameCanvasControl()}));return(0,o.onDocReady)((function(){(0,f.dynamicImport)("playPauseLoadingControl.js").then((function(e){(0,p.defineControl)(e.PlayPauseLoadingCircleControl)})),L.touchScreen&&!t.publicApi.isLiveMedia()&&(0,f.dynamicImport)("skipControls.js").then((function(e){(0,p.defineControl)(e.SkipAheadControl),(0,p.defineControl)(e.SkipBackControl)}))})),t._opts.techInfo&&(0,f.dynamicImport)("vulcanV2Player/video/controls/TechInfoControl/TechInfoControl.js").then((function(e){(0,p.defineControl)(e.TechInfoControl)})),t._opts.spherical&&(0,f.dynamicImport)("vulcanV2Player/video/controls/SphericalControl/SphericalControl.js").then((function(e){(0,p.defineControl)(e.SphericalControl)})),t.publicApi.isLiveMedia()&&(0,f.dynamicImport)("captions-v3.js").then((function(e){(0,p.defineControl)(e.CaptionsV3Control)})),t}return t=M,n=[{key:"loadLastFrameCanvasControl",value:function(){this.ready((function(){(0,f.dynamicImport)("vulcanV2Player/video/controls/LastFrameCanvasControl.js").then((function(e){(0,p.defineControl)(e.LastFrameCanvasControl)}))}))}},{key:"setupBehaviors",value:function(){var e=this;return new Promise((function(t){e.addBehaviors([y.default,v.default,m.default,g.default,P.PlaySuspendedOffScreenBehavior,b.default,_.ProblemMonitoringBehavior,w.default]),e.publicApi.isLiveMedia()||e.addBehavior(O.default),"Audio"===e._mediaData.type?Promise.all([(0,f.dynamicImport)("vulcanV2Player/audio/AudioUIBehavior.js"),(0,f.dynamicImport)("interFontFace.js")]).then((function(n){var i=A(n,1)[0];e.addBehavior(i.AudioUIBehavior),t()})):(e.addBehavior(k.default),t())}))}},{key:"removeBehaviors",value:function(){for(var e in this.behaviors)C(this.behaviors,e)&&this.removeBehavior(e)}},{key:"setupTracking",value:function(){this.publicApi.isLiveMedia()?(this._tracker=new a.LiveMediaTracker(this.publicApi),this._tracker.monitor()):(this._tracker=new i.default.VideoTracker2(this.publicApi),this._tracker.visitorKey(),this._tracker.monitor())}},{key:"elem",value:function(){return this.engine?this.engine.getMediaElement():(this._dummyVideo||(this._dummyVideo=document.createElement("video")),this._dummyVideo)}},{key:"embed",value:function(e){var t=this;return this._initialized.then((function(){return e instanceof M?t.behaviors.embed.embed(e):t.behaviors.embed.embed()}))}},{key:"eventKey",value:function(){return this._tracker.eventKey()}},{key:"renderUI",value:function(){var e=this;return this.ui||(this.ui=this.behaviors.ui),(this.ui.lastRenderPromise||Promise.resolve()).then((function(){return e.ui.render()}))}},{key:"rebuild",value:function(){return this.behaviors.embed.rebuild(this)}},{key:"onDimensionChangeSafe",value:function(){if(this.grid)try{this.onWidthChange(this.videoWidth()),this.onHeightChange(this.videoHeight())}catch(e){this.error(e)}}},{key:"transferStateFrom",value:function(e){this.behaviors.fullscreen&&this.behaviors.fullscreen.transferStateFrom(e),this.isKeyboardFocused(e.isKeyboardFocused()),!0!==this.publicApi._opts.skipFocus&&this.focus()}},{key:"bestEngine",value:function(){return s.bestUsableEngine(this.publicApi.judyCtx(),this._mediaData,this._opts)}},{key:"initEngineAfterEmbedded",value:function(){var e=this;this.embedded((function(){return e.behaviors.embed.initializeEngine()}))}},{key:"setupBindings",value:function(){this.setupVideoBindings()}},{key:"setupVideoBindings",value:function(){var e=this;this.publicApi.bind("click",(function(){e.initEngineAfterEmbedded()})),this.publicApi.bind("mouseenter",(function(){e.initEngineAfterEmbedded()})),this.publicApi.bind("focusin",(function(){e.initEngineAfterEmbedded()})),this.bind("widthchange",(function(t){e.onWidthChange(t)})),this.bind("heightchange",(function(t){e.onHeightChange(t)}))}},{key:"addBehavior",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];null==this.behaviors&&(this.behaviors={});var n=e.handle;if(n){this.behaviors[n]&&(this.behaviors[n].destroy(),this.behaviors[n]=null);try{var i=this.behaviors[n]=new e(this);return t&&i.init(),i}catch(e){setTimeout((function(){throw e}),0),delete this.behaviors[n]}}else this.error("No handle defined for",e)}},{key:"addBehaviors",value:function(e){var t=this,n=e.map((function(e){return t.addBehavior(e,!1)}));return n.forEach((function(e){try{e.init()}catch(n){t.error("error in init for",e.constructor.handle,"behavior"),setTimeout((function(){throw n}),0)}})),n}},{key:"removeBehavior",value:function(e){this.behaviors[e]&&(this.behaviors[e].destroy(),delete this.behaviors[e])}},{key:"isMediaDataUsingEmbedSsl",value:function(){for(var e=0;e<this._mediaData.assets.length;e++){var t=this._mediaData.assets[e];if(t.url&&/embed-ssl\.wistia\.com/.test(t.url))return!0}return!1}},{key:"onWidthChange",value:function(e){this.engine&&this.engine.onWidthChange(e)}},{key:"onHeightChange",value:function(e){this.engine&&this.engine.onHeightChange(e)}},{key:"controlScaling",value:function(e){if(null==e)return this._controlScaling||"auto";var t=this._controlScaling;this._controlScaling=e,t!==e&&this.trigger("controlscalingchange",e,t)}},{key:"audioDescriptionControlEnabled",value:function(e){this.setControlEnabled("audioDescriptionButton",e)}},{key:"bigPlayButtonEnabled",value:function(e){this.setControlEnabled("bigPlayButton",e)}},{key:"bigPlayButtonTimeEnabled",value:function(e){this.isControlEnabled("bigPlayButton")&&this.ui.controls.bigPlayButton.setTimeEnabled(e)}},{key:"smallPlayButtonEnabled",value:function(e){this.setControlEnabled("smallPlayButton",e)}},{key:"playbarControlEnabled",value:function(e){this.setControlEnabled("playbar",e)}},{key:"settingsControlEnabled",value:function(e){this.setControlEnabled("settingsButton",e)}},{key:"playbackRateControlEnabled",value:function(e){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setPlaybackRateEnabled(e)}},{key:"qualityControlEnabled",value:function(e){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setQualityEnabled(e)}},{key:"volumeControlEnabled",value:function(e){this.setControlEnabled("volumeButton",e)}},{key:"fullscreenButtonEnabled",value:function(e){this.setControlEnabled("fullscreenButton",e)}},{key:"hideControls",value:function(){return this.ui.releaseControls("showControls")}},{key:"showControls",value:function(){return this.requestControls("showControls",4e3)}},{key:"requestChromeless",value:function(e,t){return this.requestControls(e,t,!1)}},{key:"releaseChromeless",value:function(e){return this.releaseControls(e)}},{key:"requestControls",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this._visibilityRequests[e]=i,null!=t&&(0,d.doTimeout)("".concat(this.uuid,".").concat(e,".release_controls"),(function(){n.releaseControls(e)}),t),this.ui.maybeToggleControls()}},{key:"releaseControls",value:function(e){return this._visibilityRequests[e]=null,this.ui.maybeToggleControls()}},{key:"fit",value:function(){x(F(M.prototype),"fit",this).call(this),this.embedded((function(){}))}},{key:"getBuffered",value:function(){if(!this.engine)return[];if(this.engine.activeBufferRange()){var e=A(this.engine.activeBufferRange(),2);return[{start:e[0],end:e[1]}]}return[]}},{key:"rangeBuffered",value:function(){this.engine.activeBufferRange()}},{key:"timeBuffered",value:function(){var e=this.rangeBuffered();return e?e[1]-e[0]:0}},{key:"totalBuffered",value:function(){return this.engine?this.engine.totalBuffered():0}},{key:"totalPlayed",value:function(){return this.engine?this.engine.totalPlayed():0}},{key:"sequentialBufferedRange",value:function(){return this.engine?this.engine.sequentialBufferedRange():[0,0]}},{key:"requestFullscreen",value:function(){return this.behaviors.fullscreen.requestFullscreen()}},{key:"cancelFullscreen",value:function(){return this.behaviors.fullscreen.cancelFullscreen()}},{key:"inFullscreen",value:function(){var e;return null===(e=this.behaviors.fullscreen)||void 0===e?void 0:e.inFullscreen()}},{key:"stopStreaming",value:function(){this.info("stopStreaming"),this.engine&&this.engine.stopStreaming()}},{key:"cleanup",value:function(){this.info("cleanup"),this.removeBehaviors()}},{key:"videoQuality",value:function(e){var t=this;if(null==e)return this.engine?this.engine.getCurrentQuality():"auto";this.info("videoQuality",e),this.initEngineAfterEmbedded(),this.commandQueueOpen.synchronize((function(n){t.ready((function(){t.engine.changeQuality(e,"playing"===t.state()).then(n)}))}))}},{key:"changeAudioTrack",value:function(e){var t=this;null!=e&&(this.initEngineAfterEmbedded(),this.info("changeAudioTrack",e),this.commandQueueOpen.synchronize((function(n){t.ready((function(){t.engine.changeAudioTrack(e).then(n)}))})))}},{key:"getAudioTracks",value:function(){var e=this.bestEngine();return this.engine?this.engine.getAudioTracks():"engines/hls_video.js"===e||"engines/native_hls_video.js"===e?(0,S.audioTracksForVideo)((0,S.allHlsAudioAssets)(this._mediaData.assets)):[]}},{key:"getCurrentAudioTrack",value:function(){return this.engine?this.engine.getCurrentAudioTrack():0}},{key:"selectedQuality",value:function(){return this.engine?this.engine.selectedQuality():"auto"}},{key:"selectableQualities",value:function(){return this.engine?this.engine.selectableQualities():["auto"]}},{key:"stillUrl",value:function(e){return e=(0,c.merge)({playButton:!1},e),x(F(M.prototype),"stillUrl",this).call(this,e)}},{key:"play",value:function(){var e=this;this.suppressPlay()||this.trigger("playcalled"),this.initEngineAfterEmbedded();var t=(0,l.inUserEventContext)()&&!this.ready();this.info("play");var n=function(){e._isPlayPending=!1,e._lastPlayType=void 0,e._lastPlayRejectedAt=Date.now(),e.trigger("playrejected",e.lastPlayInfo())};return this.publicApi.isLiveMedia()&&!1===this.ready()?(n(),void console.log("The call to play() failed likely because the livestream media was not yet ready. Try calling play() in an onReady event instead.")):(this.commandQueueOpen.synchronize((function(r){e.suppressPlay()?r():(e._isPlayPending=!0,e._lastPlayType=void 0,e._lastPlaySource=H(),e._lastPlayIssuedAt=Date.now(),e._lastPlayResolvedAt=null,e._lastPlayRejectedAt=null,e.trigger("playpending",e.lastPlayInfo()),e.ready((function(){e._calledPlay=!0,e._mozillaAtEnd()&&e.engine.setCurrentTime(0);var o={};if(t&&!1===e._opts.silentAutoPlay&&(o.silentAutoPlay="allow",e.trigger("clicked-play-before-ready")),i.default.detect.ios.version&&i.default.detect.ios.version<10.1&&!(0,l.inUserEventContext)()&&!e.engine.isInitializingFromUnmuted())return e.notice("Play rejected because not in user context."),n(),void r();e._playPromise=e.engine.play(o).then((function(t){e._isPlayPending=!1,e._lastPlayType=t,e._lastPlayResolvedAt=Date.now(),"play-silently"!==t||e._inSilentPlaybackMode||(e._inSilentPlaybackMode=!0,e.trigger("silentplaybackmodechange",!0)),r()})).catch((function(t){e.notice(t),n(),r()}))})))})),this)}},{key:"pause",value:function(){var e=this;return this.info("pause"),this.trigger("receivepause"),this.initEngineAfterEmbedded(),this.commandQueueOpen.synchronize((function(t){e._isPausePending=!1,e._lastPauseSource=H(),e._lastPauseIssuedAt=Date.now(),e.ready()?e.engine.pause().then((function(){e._isPausePending=!1,t()})):t()})),this}},{key:"time",value:function(e,t){var n=this;return null!=e?(this.info("time",e),"beforeplay"===this.state()&&(this._startPosition=e),this.initEngineAfterEmbedded(),this.commandQueueOpen.synchronize((function(i){"beforeplay"===n.state()&&(n._lastPlaySource=H(),n._lastPlayIssuedAt=Date.now(),n._isPlayPending=!0,n._lastPlayType=void 0,n._isPausePending=!0,n._lastPauseIssuedAt=n._lastPlayIssuedAt,n._lastPauseSource=n._lastPlaySource),e=Math.max(0,Math.min(n.duration(),e)),n.ready((function(){if(t&&t.lazy&&"playing"!==n.state())return n.engine.seekOnPlay(e).then(n.behaviors.relayEvents.fireTimeChangedEventsIfChanged),n._isPlayPending=!1,void i();"beforeplay"===n.state()?n._seekPromise=n.engine.seek(e,t).catch((function(t){n.notice(t),n.engine.seekOnPlay(e),n._isPlayPending=!1,n._lastPlayRejectedAt=Date.now(),n._lastPlayType=void 0,n.trigger("playrejected",n.lastPlayInfo()),i()})).then((function(e){n.behaviors.relayEvents.fireTimeChangedEventsIfChanged(),n._isPlayPending=!1,n._isPausePending=!1,n._lastPlayType=e,"play-silently"===e&&(n._inSilentPlaybackMode=!0,n.trigger("silentplaybackmodechange",!0)),i()})):(n.info("time ".concat(e,": set immediately")),n.engine.setCurrentTime(e),n.behaviors.relayEvents.fireTimeChangedEventsIfChanged(),i())}))})),this):this.engine&&this.engine.getCurrentTime()||0}},{key:"duration",value:function(){if(this.publicApi.isLiveMedia())return Infinity;if(this.engine)return this.engine.getDuration();var e=this._mediaData.secondaryMediaData?this._mediaData.secondaryMediaData.duration:this._mediaData.duration,t={attributes:{cuts:this._opts.cuts,duration:e,trimEnd:this._opts.trimEnd,trimStart:this._opts.trimStart}};return(0,T.getDurationAfterCuts)(t)}},{key:"volume",value:function(e){return null!=e?(this.info("volume",e),e=Math.max(0,Math.min(1,e)),this.initEngineAfterEmbedded(),this._volume=e,this.ready()&&this.engine.setVolume(e),this):this.engine?this.engine.getVolume():null!=this._volume?this._volume:1}},{key:"mute",value:function(){var e=this;this._muted=!0,this.ready()?this.engine.mute():this.ready((function(){e.engine.mute()}))}},{key:"unmute",value:function(){this._muted=!1,this.ready()&&(i.default.detect.callingPlayRequiresEventContext?"playing"!==this.state()||(0,l.inUserEventContext)()?(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1))):this.notice("could not unmute"):(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1))))}},{key:"isMuted",value:function(){return this.engine?this.engine.isMuted():null!=this._muted?this._muted:!!this._opts.muted}},{key:"isResumableEnabled",value:function(){return!(!this.behaviors[O.default.handle]||null!=this._impl._startPosition||this.publicApi.isLiveMedia())&&(!0===this._opts.resumable||!1!==this._opts.resumable&&this.meetsAutoCriteraForResumable())}},{key:"meetsAutoCriteraForResumable",value:function(){var e=this.isControlEnabled("playbar")||this._opts.playbar;return!(0,r.shorterThanResumableThreshold)(this.duration())&&!this._opts.autoPlay&&!("loop"===this._opts.endVideoBehavior)&&(e||this.isAudio())}},{key:"shouldResume",value:function(){return this.isResumableEnabled()&&(0,r.withinResumableTime)(this.publicApi.hashedId(),this.duration())}},{key:"state",value:function(){if(this.engine){var e,t=this.engine.getPlaybackMode();return"beforeplay"===t&&null!==(e=this.behaviors.relayEvents)&&void 0!==e&&e._hasPlayed?"paused":t}return"beforeplay"}},{key:"setAriaLiveText",value:function(e){this.ui||(this.ui=this.behaviors.ui),this.ui.setAriaLiveText(e)}},{key:"lastPauseInfo",value:function(){return{source:this._lastPauseSource,issuedAt:this._lastPauseIssuedAt,isPending:!!this._isPausePending}}},{key:"lastPlayInfo",value:function(){return{source:this._lastPlaySource,issuedAt:this._lastPlayIssuedAt,isPending:!!this._isPlayPending,playType:this._lastPlayType,resolvedAt:this._lastPlayResolvedAt,rejectedAt:this._lastPlayRejectedAt}}},{key:"playerColor",value:function(e){var t=this;return null!=e?(this.info("playerColor",e),this.embedded((function(){var n=t._attrs.playerColor;e=i.default.Player._sanePlayerColor(e),t._attrs.playerColor=new u.default(e).toHex(),n!==t._attrs.playerColor&&t.trigger("playercolorchange",t._attrs.playerColor,n)})),this):this._attrs.playerColor}},{key:"playerBackgroundColor",value:function(e){if(null!=e){this.info("playerBackgroundColor",e);var t=this._attrs.playerBackgroundColor;return this._attrs.playerBackgroundColor=new u.default(e).toHex(),t!==this._attrs.playerBackgroundColor&&this.trigger("playerbackgroundcolorchange",this._attrs.playerBackgroundColor,t),this}return this._attrs.playerBackgroundColor}},{key:"width",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e?n.fullscreen||!this.inFullscreen()?x(F(M.prototype),"width",this).call(this,e,n):(this.info("notFullscreen => width(".concat(e,")")),this.notFullscreen((function(){x(F(M.prototype),"width",t).call(t,e,n)})),this):x(F(M.prototype),"width",this).call(this,e,n)}},{key:"height",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e?n.fullscreen||!this.inFullscreen()?x(F(M.prototype),"height",this).call(this,e,n):(this.info("notFullscreen => height(".concat(e,")")),this.notFullscreen((function(){x(F(M.prototype),"height",t).call(t,e,n)})),this):x(F(M.prototype),"height",this).call(this,e,n)}},{key:"videoWidth",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e?n.fullscreen||!this.inFullscreen()?x(F(M.prototype),"videoWidth",this).call(this,e,n):(this.info("notFullscreen => videoWidth(".concat(e,")")),this.notFullscreen((function(){x(F(M.prototype),"videoWidth",t).call(t,e,n)})),this):x(F(M.prototype),"videoWidth",this).call(this,e,n)}},{key:"videoHeight",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e?n.fullscreen||!this.inFullscreen()?x(F(M.prototype),"videoHeight",this).call(this,e,n):(this.info("notFullscreen => videoHeight(".concat(e,")")),this.notFullscreen((function(){x(F(M.prototype),"videoHeight",t).call(t,e,n)})),this):x(F(M.prototype),"videoHeight",this).call(this,e,n)}},{key:"playbackRate",value:function(e){var t=this;return null!=e?(this.initEngineAfterEmbedded(),this.ready((function(){t.info("playbackRate",e);var n=parseFloat(e);if(isNaN(n))return t.error('playbackRate: Invalid argument "#{rate}" given. Expected a float.'),t;e=n;var i=t.engine.getPlaybackRate();t.engine.setPlaybackRate(e),t._eventLoopDuration=Math.max(50,Math.min(500,t._baseEventLoopDuration/e)),t._playbackRate=e,i!==t._playbackRate&&t.trigger("playbackratechange",t._playbackRate)})),this):this.engine?this.engine.getPlaybackRate():1}},{key:"trim",value:function(e){var t=this;if(null==e)return this.engine.getTrim();this.embedded((function(){(0,c.equalsDeep)(e,t.engine.getTrim())||(t.engine.setTrim(e),t.trigger("trimchange",e))}))}},{key:"captureCurrentFrame",value:function(){var e;return(e=this.engine).captureCurrentFrame.apply(e,arguments)}},{key:"getReportAProblemData",value:function(e){var t=this,n=function(e){try{return e()}catch(e){return"threw exception: ".concat(e.message)}},r=V(this.publicApi._opts),o=this.publicApi._optionSources();Object.keys(o).forEach((function(e){o[e]=V(o[e])}));var a={player_version:E.PLAYER_VERSION,media_key:this._mediaData.mediaKey,account_key:this._mediaData.accountKey,visitor_key:this.visitorKey(),event_key:this.eventKey(),referrer:document.referrer,page_url:location.href,extra_data:{first_1000_logs:i.default.wlog.first1000LogLines(),last_1000_logs:i.default.wlog.last1000LogLines(),browser_time:new Date,option_sources:n((function(){return o})),embedOptions:r,active_plugins:n((function(){return Object.keys(t.publicApi.plugin)})),assets:this._mediaData.assets,selectedAsset:this.engine.selectedAsset(),attrs:this._attrs,judy:n((function(){return s.report(t.publicApi.judyCtx(),t._mediaData,t._opts)})),detect:i.default.detect,engineDiagnostics:n((function(){return t.engine.diagnosticData()}))}};for(var u in this.publicApi.plugin){var l=this.publicApi.plugin[u];"function"==typeof l.getReportAProblemData&&(a.extra_data[u]=l.getReportAProblemData())}return a}},{key:"isKeyboardFocused",value:function(e){return null!=e&&(this._isKeyboardFocused=e),this._isKeyboardFocused}},{key:"setControlEnabled",value:function(e,t){var n=this,i=this.isControlEnabled(e)!==t;this._enabledControls[e]=t;var r=function(){t?n.trigger("controlenabled",e):n.trigger("controldisabled",e)};return i?this.embedded()?this.renderUI().then(r):new Promise((function(e){n.embedded(e),r()})):this.ui&&this.ui.lastRenderPromise||Promise.resolve()}},{key:"isControlDisabled",value:function(e){var t=i.default._controlDefinitions[e];return!!(t&&t.isVideoChrome&&this._opts.chromeless)||!1===this._enabledControls[e]}},{key:"isControlEnabled",value:function(e){return!1!==this._enabledControls[e]&&null!=this.publicApi.controls[e]}},{key:"whenControlMounted",value:function(e){var t=this;return new Promise((function(n){t.embedded((function(){t.behaviors.ui.whenControlMounted(e).then(n)}))}))}},{key:"getControl",value:function(e){return this.ui&&this.ui.controls&&this.ui.controls[e]}},{key:"_doEnterInputContexts",value:function(){var e=this;this._inputContextsToEnter=this._inputContextsToEnter.reverse().map((function(t){var n=e._playerContext.indexOf(t);return n>0&&e._playerContext.splice(n,1),(-1===n||n>0)&&(e._playerContext.unshift(t),e.trigger("inputcontextchange",t)),t}))}},{key:"enterInputContext",value:function(e){var t=this;(0,d.clearTimeouts)("".concat(this.uuid,".enter_input_contexts")),this._inputContextsToEnter.push(e),(0,d.doTimeout)("".concat(this.uuid,".enter_input_contexts"),(function(){t._doEnterInputContexts()}),10)}},{key:"originalenterInputContext",value:function(e){var t=this._playerContext.indexOf(e);t>0&&this._playerContext.splice(t,1),(-1===t||t>0)&&(this._playerContext.unshift(e),this.trigger("inputcontextchange",e))}},{key:"exitInputContext",value:function(e){var t=this.getInputContext(),n=this._playerContext.indexOf(e);if(-1!==n){this._playerContext.splice(n,1);var i=this.getInputContext();t!==i&&this.trigger("inputcontextchange",i)}}},{key:"getInputContext",value:function(){return this._playerContext[0]}},{key:"getMediaElement",value:function(){return this.engine&&this.engine.getMediaElement()}},{key:"whenVideoElementInDom",value:function(){var e=this;return this._whenVideoElementInDom?this._whenVideoElementInDom:this.engine?Promise.resolve(this.getMediaElement()):this._whenVideoElementInDom=new Promise((function(t){e.bind("engine-initialized",(function(){return t(e.getMediaElement()),e.unbind}))}))}},{key:"inSilentPlaybackMode",value:function(){return!!this._inSilentPlaybackMode}},{key:"checkForReady",value:function(){this.behaviors.embed.checkForReady()}},{key:"loadOverlayCode",value:function(){var e=this;return new Promise((function(t){e.behaviors.overlays?t():(0,f.dynamicImport)("vulcanV2Player/behaviors/OverlaysBehavior.js").then((function(n){e.behaviors.overlays||e.addBehavior(n.OverlaysBehavior),t()}))}))}},{key:"defineOverlay",value:function(e,t){var n=this;return this.loadOverlayCode().then((function(){n._overlays[e]=t}))}},{key:"requestOverlay",value:function(e){var t=this;return this.loadOverlayCode().then((function(){return t.behaviors.overlays.requestOverlay(e)}))}},{key:"cancelOverlay",value:function(e){var t=this;return this.loadOverlayCode().then((function(){return t.behaviors.overlays.cancelOverlay(e)}))}},{key:"undefineOverlay",value:function(e){var t=this;return this.loadOverlayCode().then((function(){return t.behaviors.overlays.undefineOverlay(e)}))}},{key:"getOverlays",value:function(){return this._overlays}},{key:"layout",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return this._layout;this.whenVideoElementInDom().then((function(){t.engine.setLayout(e,n)})),this._layout=e}},{key:"focus",value:function(){this.isAudio()?this.whenControlMounted("audioBackgroundFocus").then((function(e){e.focus()})):this.whenControlMounted("backgroundFocus").then((function(e){e.focus()}))}},{key:"_inNativeMode",value:function(){var e;return(null===(e=this.behaviors.ui)||void 0===e?void 0:e.inNativeMode())||!1}},{key:"_bandwidthTest",value:function(){return this.behaviors.bandwidthTest.bandwidthTest()}},{key:"_mozillaAtEnd",value:function(){return this.behaviors.relayEvents.mozillaAtEnd()}},{key:"_focusNextVisibleElem",value:function(){return this.behaviors.ui.focusNextVisibleElem()}},{key:"openTabMenu",value:function(){this.isAudio()&&this.ui.openTabMenu()}},{key:"closeTabMenu",value:function(){this.isAudio()&&this.ui.closeTabMenu()}},{key:"openChaptersTab",value:function(){var e=this;this.isAudio()&&this.whenControlMounted("chaptersTab").then((function(t){e.ui.setSelectedTab(t.constructor.handle),e.openTabMenu()}))}},{key:"openShareTab",value:function(){var e=this;this.isAudio()&&this.whenControlMounted("shareTab").then((function(t){e.ui.setSelectedTab(t.constructor.handle),e.openTabMenu()}))}},{key:"openTranscriptTab",value:function(){var e=this;this.isAudio()&&this.whenControlMounted("transcriptTab").then((function(t){e.ui.setSelectedTab(t.constructor.handle),e.openTabMenu()}))}}],n&&j(t.prototype,n),h&&j(t,h),Object.defineProperty(t,"prototype",{writable:!1}),M}(i.default.Video);i.default.VulcanV2Player=W,i.default.plugin("vulcanV2Player",(function(e,t){i.default.info("vulcanV2Player no-op plugin executed")}));var H=function(){return(0,l.inUserEventContext)()?"user-event":"non-user-event"},V=function(e){var t=(0,c.clone)(e);return t.container&&(t.container="removed to avoid circular"),t}}i.default.VulcanV2Player},(e,t,n)=>{n.d(t,{LiveMediaTracker:()=>i.LiveMediaTracker});var i=n(138)},(e,t,n)=>{n.d(t,{LiveMediaTracker:()=>F});var i=n(106),r=n(5),o=n(60),a=n(139),s=n(143),u=n(144);function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){m(e,t),t.add(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t,n){m(e,t),t.set(e,n)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function b(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,w(e,t,"get"))}function _(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,w(e,t,"set"),n),n}function w(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}var O=new WeakMap,k=new WeakMap,P=new WeakMap,T=new WeakMap,S=new WeakMap,E=new WeakMap,C=new WeakMap,A=new WeakMap,D=new WeakMap,j=new WeakMap,x=new WeakMap,M=new WeakMap,R=new WeakSet,I=new WeakMap,B=new WeakSet,F=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,B),p(this,R),v(this,O,{writable:!0,value:void 0}),v(this,k,{writable:!0,value:void 0}),v(this,P,{writable:!0,value:void 0}),v(this,T,{writable:!0,value:[]}),v(this,S,{writable:!0,value:{}}),v(this,E,{writable:!0,value:void 0}),y(this,"SCOPE","live_event"),v(this,C,{writable:!0,value:function(){var e=b(n,k)._mediaData;_(n,T,[]),_(n,P,new u.Client(e.analyticsHost));var t=(0,s.getOrSetIsFirst)(n.hashedId,n.SCOPE,"load");_(n,E,a.PlaySession.load(b(n,O),{visitor_key:b(n,k).visitorKey(),session_key:(0,i.uniqId)("".concat("6290e1f2400e67586f946cc52cddffaa".substring(0,7),"_")),embed_url:b(n,k)._attrs.pageUrl,referrer_url:b(n,k)._attrs.referrerUrl,account_id:e.accountId,live_stream_event_id:e.liveStreamEventDetails.id,media_id:e.mediaId,media_type:"Video",player_type:"modern"},{first:t,scope:n.SCOPE,captions:n.captionsEnabled,live:n.isLive,email:n.email})),g(n,R,L).call(n,n.lastEvent,{force:!0}),"playing"===b(n,k).state()&&b(n,A).call(n),b(n,k).bind("play",b(n,A)),b(n,k).bind("pause",b(n,D)),b(n,k).bind("seek",b(n,x)),b(n,k).bind("end",b(n,M)),b(n,S).flush=setInterval(b(n,I),5e3)}}),v(this,A,{writable:!0,value:function(){var e=(0,s.getOrSetIsFirst)(n.hashedId,n.SCOPE,a.PlaySession.Event.PLAY),t=n.captionsEnabled;_(n,E,b(n,E).play(Date.now(),b(n,k).time(),{first:e,captions:t,live:n.isLive,email:n.email}));var i=b(n,E).lastEvent.event===a.PlaySession.Event.PLAY;g(n,R,L).call(n,n.lastEvent,{force:i}),b(n,S).update=setInterval(b(n,j),5e3)}}),v(this,D,{writable:!0,value:function(){g(n,B,W).call(n,"update"),_(n,E,b(n,E).pause(Date.now(),b(n,k).time(),{captions:n.captionsEnabled,live:n.isLive,email:n.email})),g(n,R,L).call(n,n.lastEvent)}}),v(this,j,{writable:!0,value:function(){n.isPlaying&&(_(n,E,b(n,E).update(Date.now(),b(n,k).time(),{captions:n.captionsEnabled,live:n.isLive,email:n.email})),g(n,R,L).call(n,n.lastEvent))}}),v(this,x,{writable:!0,value:function(e,t){_(n,E,b(n,E).seek(Date.now(),t,e,{captions:n.captionsEnabled,live:n.isLive,email:n.email})),g(n,R,L).call(n,n.lastEvent)}}),v(this,M,{writable:!0,value:function(){_(n,E,b(n,E).end(Date.now(),b(n,k).time(),{captions:n.captionsEnabled,live:n.isLive,email:n.email})),g(n,R,L).call(n,n.lastEvent,{force:!0})}}),v(this,I,{writable:!0,value:function(){if(0!==b(n,T).length){var e=b(n,T),t=h(h({},b(n,E).meta),{},{events:e,anonymize_ip:n.shouldAnonymizeIp});_(n,T,[]),b(n,k).debug("Submitting events",t),b(n,P).liveStream(t).then((function(e){if(!e.ok)throw new Error("Failed to send tracking events. Server responded with status: ".concat(e.status))})).catch((function(t){b(n,k).error(t),_(n,T,[].concat(l(e),l(b(n,T))).sort((function(e,t){return e.time-t.time})))}))}}}),_(this,O,Date.now()),_(this,k,t)}var t,n,c;return t=e,(n=[{key:"meta",get:function(){var e;return null===(e=b(this,E))||void 0===e?void 0:e.meta}},{key:"lastEvent",get:function(){var e;return null===(e=b(this,E))||void 0===e?void 0:e.lastEvent}},{key:"isPlaying",get:function(){var e;return null===(e=b(this,E))||void 0===e?void 0:e.isPlaying}},{key:"captionsEnabled",get:function(){return!!b(this,k).getSelectedCaptions()}},{key:"isLive",get:function(){var e,t;return!(null===(e=b(this,k)._mediaData)||void 0===e||null===(t=e.liveStreamEventDetails)||void 0===t||!t.startedAt)}},{key:"hashedId",get:function(){return b(this,k).hashedId()}},{key:"shouldAnonymizeIp",get:function(){return Boolean(b(this,k)._opts.anonymizeIp||!(0,o.isVisitorTrackingEnabled)())}},{key:"email",get:function(){return b(this,k).email()}},{key:"monitor",value:function(){var e=this;b(this,k).doNotTrack()||(this.stopMonitoring(),b(this,k).hasData((function(){return(0,r.pageLoaded)(b(e,C))})))}},{key:"stopMonitoring",value:function(){b(this,I).call(this),g(this,B,W).call(this,"flush"),g(this,B,W).call(this,"update"),b(this,k).unbind("play",b(this,A)),b(this,k).unbind("pause",b(this,D)),b(this,k).unbind("seek",b(this,x)),b(this,k).unbind("end",b(this,M))}},{key:"timeDelta",value:function(){return(new Date).getTime()-b(this,O)}},{key:"eventKey",value:function(){var e;return null===(e=this.meta)||void 0===e?void 0:e.session_key}},{key:"visitorKey",value:function(){return b(this,k).visitorKey()}}])&&f(t.prototype,n),c&&f(t,c),Object.defineProperty(t,"prototype",{writable:!1}),e}();function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.force,i=void 0!==n&&n;b(this,k).debug(e),_(this,T,[].concat(l(b(this,T)),[e])),i&&b(this,I).call(this)}function W(e){b(this,S)[e]&&(clearInterval(b(this,S)[e]),delete b(this,S)[e])}},(e,t,n)=>{n.d(t,{PlaySession:()=>i.PlaySession});n(140);var i=n(141)},(e,t,n)=>{function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function o(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,s(e,t,"get"))}function a(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,s(e,t,"set"),n),n}function s(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{InclusiveRange:()=>c});var u=new WeakMap,l=new WeakMap,c=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,u,{writable:!0,value:void 0}),r(this,l,{writable:!0,value:void 0}),a(this,u,t),a(this,l,n)}var t,n,s;return t=e,(n=[{key:"start",get:function(){return o(this,u)}},{key:"end",get:function(){return o(this,l)}},{key:"isEmpty",get:function(){return this.start==this.end}},{key:"isAscending",get:function(){return this.start<=this.end}},{key:"foreach",value:function(e){for(var t=this.start;t<=this.end;++t)e(t)}},{key:"reduce",value:function(e,t){var n=t;return this.foreach((function(t){n=e(n,t)})),n}},{key:"includes",value:function(e){var t=Math.min(this.start,this.end),n=Math.max(this.start,this.end);return t<=e&&e<=n}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}])&&i(t.prototype,n),s&&i(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},(e,t,n)=>{n.d(t,{PlaySession:()=>_});var i=n(142),r=n(140);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){h(e,t),t.add(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function p(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,v(e,t,"get"))}function y(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,v(e,t,"set"),n),n}function v(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}var m=new WeakMap,g=new WeakSet,b=new WeakSet,_=function(){function e(t){var n,i,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,b),c(this,g),r={writable:!0,value:void 0},h(n=this,i=m),i.set(n,r),y(this,m,t)}var t,n,r;return t=e,n=[{key:"meta",get:function(){return p(this,m).meta}},{key:"startedAt",get:function(){return p(this,m).startedAt}},{key:"isPlaying",get:function(){return void 0===p(this,m).inactiveAt}},{key:"scope",get:function(){return p(this,m).scope}},{key:"histogram",get:function(){return p(this,m).histogram}},{key:"history",get:function(){return p(this,m).history}},{key:"lastEvent",get:function(){return this.history[0]}},{key:"position",get:function(){return this.lastEvent.player_position}},{key:"play",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.first,a=void 0!==r&&r,s=i.captions,l=void 0!==s&&s,c=i.live,d=void 0!==c&&c,h=i.email,f=u({time:t,event:this.lastEvent.event===e.Event.LOAD?e.Event.PLAY:e.Event.UNPAUSE,scope:this.scope,first:a,live:d,captions:l,email:h,player_position:n},e.EMPTY_METRICS);return new e(u(u({},p(this,m)),{},{inactiveAt:void 0,history:[f].concat(o(this.history))}))}},{key:"pause",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,a=void 0!==r&&r,s=i.live,l=void 0!==s&&s,c=i.email,d=f(this,g,w).call(this,n),h=f(this,b,O).call(this,d),y=u({time:t,event:e.Event.PAUSE,scope:this.scope,live:l,captions:a,email:c,player_position:n},h);return new e(u(u({},p(this,m)),{},{inactiveAt:t,histogram:this.histogram.union(d),history:[y].concat(o(this.history))}))}},{key:"seek",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.captions,s=void 0!==a&&a,l=r.live,c=void 0!==l&&l,d=r.email,h=e.EMPTY_METRICS,y=this.histogram,v=t;if(this.isPlaying){var _=f(this,g,w).call(this,n);h=f(this,b,O).call(this,_),y=y.union(_),v=void 0}var k=u({time:t,event:e.Event.SEEK,scope:this.scope,live:c,captions:s,email:d,previous_player_position:n,player_position:i},h);return new e(u(u({},p(this,m)),{},{inactiveAt:v,histogram:y,history:[k].concat(o(this.history))}))}},{key:"update",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,a=void 0!==r&&r,s=i.live,l=void 0!==s&&s,c=i.email;if(this.isPlaying){var d=f(this,g,w).call(this,n),h=f(this,b,O).call(this,d),y=u({time:t,event:e.Event.UPDATE,scope:this.scope,live:l,captions:a,email:c,player_position:n},h);return new e(u(u({},p(this,m)),{},{histogram:this.histogram.union(d),history:[y].concat(o(this.history))}))}return this}},{key:"end",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,a=void 0!==r&&r,s=i.live,l=void 0!==s&&s,c=i.email,d=f(this,g,w).call(this,n),h=f(this,b,O).call(this,d),y=u({time:t,event:e.Event.END,scope:this.scope,live:l,captions:a,email:c,player_position:n},h);return new e(u(u({},p(this,m)),{},{inactiveAt:t,histogram:this.histogram.union(d),history:[y].concat(o(this.history))}))}}],r=[{key:"load",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.first,a=void 0!==o&&o,s=r.scope,l=r.captions,c=void 0!==l&&l,d=r.live,h=void 0!==d&&d,f=r.email,p=u({time:t,event:e.Event.LOAD,scope:s,first:a,live:h,captions:c,email:f},e.EMPTY_METRICS);return new e({startedAt:t,meta:n,scope:s,inactiveAt:t,histogram:new i.Histogram,history:[p]})}}],n&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function w(e){var t=this.lastEvent.event===_.Event.UPDATE,n=this.position;t&&(n+=1);var i=new r.InclusiveRange(Math.floor(n),Math.floor(e));return i.isAscending?i:void 0}function O(e){return e?this.histogram.chunkInRangeBy(e,(function(e){return 0===e.value})).reduce((function(e,t){var n=t.at(0),i=n.bucket,r=n.value,a=t.at(-1).bucket;return u(u({},e),{},0===r?{unique_played_time:e.unique_played_time+t.length,unique_played_ranges:[].concat(o(e.unique_played_ranges),[{start:i,end:a}])}:{replayed_time:e.replayed_time+t.length,replayed_ranges:[].concat(o(e.replayed_ranges),[{start:i,end:a}])})}),{unique_played_time:0,unique_played_ranges:[],replayed_time:0,replayed_ranges:[]}):_.EMPTY_METRICS}d(_,"Event",Object.freeze({LOAD:"load",PLAY:"play",SEEK:"seek",PAUSE:"pause",UNPAUSE:"unpause",UPDATE:"update",END:"end"})),d(_,"EMPTY_METRICS",{unique_played_time:0,unique_played_ranges:[],replayed_time:0,replayed_ranges:[]})},(e,t,n)=>{n.d(t,{Histogram:()=>y});var i=n(140);function r(e){return function(e){if(Array.isArray(e))return e}(e)||s(e)||a(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||s(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function h(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,f(e,t,"set"),n),n}function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}var p=new WeakMap,y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l(this,e),d(this,p,{writable:!0,value:void 0}),h(this,p,t)}var t,n,a;return t=e,(n=[{key:"buckets",get:function(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,f(e,p,"get"));var e}},{key:"valueAt",value:function(e){return this.buckets[e]||0}},{key:"union",value:function(t){var n=this;if(!t)return this;var r=o(this.buckets);return t.foreach((function(e){r[e]=n.valueAt(e)+1})),new i.InclusiveRange(0,t.start-1).foreach((function(e){r[e]=n.valueAt(e)})),new e(r)}},{key:"chunkInRangeBy",value:function(e,t){var n=this,i=Symbol("empty"),a=e.reduce((function(e,i){var a=e.chunks,s=e.flip,u={bucket:i,value:n.valueAt(i)},l=t(u);if(s!==l)return{chunks:[[u]].concat(o(a)),flip:l};var c=r(a),d=c[0],h=c.slice(1);return{chunks:[[].concat(o(d),[u])].concat(o(h)),flip:s}}),{chunks:[],flip:i});return a.chunks.reverse()}}])&&c(t.prototype,n),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},(e,t,n)=>{n.d(t,{getOrSetIsFirst:()=>s});var i=n(62);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e,t,n){var r=["wistia",e,t].join("."),s=(0,i.getLocalStorage)(r);return!(n in s)&&((0,i.setLocalStorage)(r,o(o({},s),{},a({},n,1))),!0)}},(e,t,n)=>{function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,s(e,t,"set"),n),n}function s(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Client:()=>c});var u=new WeakMap,l=new WeakSet,c=r((function e(t){var n,i,r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(n=this,i=l),i.add(n),function(e,t,n){o(e,t),t.set(e,n)}(this,u,{writable:!0,value:void 0}),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"liveStream",(function(e){return function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(r,l,d).call(r,"/live-stream/1.0.0",e)})),a(this,u,t)}));function d(e,t){var n,i=new URL(e,function(e,t){return t.get?t.get.call(e):t.value}(n=this,s(n,u,"get")));return fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},mode:"cors",credentials:"omit",body:JSON.stringify(t),keepalive:!0})}},(e,t,n)=>{var i=n(3),r=n(2),o=n(28),a=n(58),s=n(146),u=n(147),l=n(150),c=n(56),d=n(27);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},h.apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}(0,d.defineTranslations)("en-US",{AUDIO_DESCRIPTION_HIDE_MENU:"Hide audio description menu",AUDIO_DESCRIPTION_SHOW_MENU:"Show audio description menu"});var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(l,e);var t,n,i,a=y(l);function l(e){var t,n,i,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=a.call(this,e),n=m(t),r=function(e){var n=t.video.engine.getCurrentAudioTrackId();Number(n)!==Number(e)&&t.video.changeAudioTrack(e)},(i="onClickTrack")in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,t.video=e,t.unbinds.push(e.on("playerlanguagechange",(function(){t.menuElem&&t.renderMenu()})),e.on("audiostreamchange",(function(){t.menuElem&&t.renderMenu()}))),t}return t=l,(n=[{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"destroy",value:function(){(0,c.destroyControl)(this)}},{key:"mountButton",value:function(e){this.buttonRoot=e,this.renderButton()}},{key:"mountDialog",value:function(e){var t=this;this.dialogRoot=e;var n=(0,o.dynamicImport)("interFontFace.js").then((function(){t.renderMenu()}));return this.loading(new Promise((function(e){n.then(e)}))),n}},{key:"onControlPropsUpdated",value:function(e){this.dialog&&this.dialog.isOpen()&&this.renderMenu(),e.playerLanguage&&this.props.playerLanguage.code!==e.playerLanguage.code&&(this.renderButton(),this.renderMenu())}},{key:"renderButton",value:function(){this.updateButtonLabel(),(0,r.render)((0,r.h)(s.default,null),this.buttonRoot),this.reactMounts.button=[this.buttonRoot]}},{key:"renderMenu",value:function(){var e=this;if(this.dialog.isOpen()&&this.dialogRoot){var t=this.video.engine.getAudioTracks();(0,r.render)((0,r.h)(u.AudioDescriptionMenu,h({},this.props,{elemRef:function(t){return e.menuElem=t},onClick:this.onClickTrack,scale:this.props.scale,tracks:t})),this.dialogRoot),this.reactMounts.menu=[this.dialogRoot]}}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("HIDE_MENU")):this.setButtonLabel(this.translate("SHOW_MENU")))}},{key:"translate",value:function(e){return(0,d.getTranslation)(this.props.playerLanguage.code,"AUDIO_DESCRIPTION_".concat(e))}}])&&f(t.prototype,n),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(l.default);b.shouldMount=function(e){return!!(!1!==e._opts.audioDescriptionIsRequired&&e._impl&&e._impl.getAudioTracks&&e._impl.getAudioTracks().length>1)},b.handle="audioDescriptionButton",b.type="control-bar-right",b.sortValue=51,b.isVideoChrome=!0,(0,a.defineControl)(b),i.default.AudioDescriptionControl=b},(e,t,n)=>{n.d(t,{default:()=>y});var i=n(2),r=n(24);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}const y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(f,e);var t,n,a,u=h(f);function f(){return l(this,f),u.apply(this,arguments)}return t=f,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e={fill:"none",stroke:"#ffffff","stroke-width":"1.8","stroke-linecap":"round"},t=s(s({},e),{},{"stroke-linejoin":"round"});return(0,i.h)("svg",o({},(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),{onMouseEnter:this.props.onMouseEnter}),(0,i.h)("g",t,(0,i.h)("path",{d:"M19.6,14.5c2.2,0,3,1.4,3,2.8c0,1.3-0.7,2.8-3,2.8h-1.5v-5.6H19.6z"}),(0,i.h)("polyline",{points:"9.9,20.1 12.5,14.5 14.9,20.1 \t\t\t"}),(0,i.h)("path",{d:"M10.4,18.9h4"})),(0,i.h)("g",e,(0,i.h)("path",{d:"M27.4,24.7c2.2-2.1,3.2-4.9,3.2-7.4c0-2.7-1-5.3-3.2-7.4"}),(0,i.h)("path",{d:"M24.5,12.8c1.4,1.2,2,2.8,2,4.5c0,1.6-0.5,3.3-2,4.5"})))}}])&&c(t.prototype,n),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.Component)},(e,t,n)=>{n.d(t,{AudioDescriptionMenu:()=>f});var i=n(2),r=n(148),o=n(149);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,d,h=c(f);function f(){return s(this,f),h.apply(this,arguments)}return t=f,(n=[{key:"render",value:function(){var e=this;return(0,i.h)("div",null,(0,i.h)("fieldset",{style:{border:0,padding:0,margin:0}},(0,i.h)(r.default,{tagName:"legend"},"Audio Description Menu"),this.props.tracks.map((function(t,n){return(0,i.h)(o.AudioTrackMenuItem,a({},e.props,{track:t,id:n}))}))))}}])&&u(t.prototype,n),d&&u(t,d),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.Component)},(e,t,n)=>{n.d(t,{default:()=>d});var i=n(2);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r.apply(this,arguments)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}const d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(d,e);var t,n,l,c=u(d);function d(){return o(this,d),c.apply(this,arguments)}return t=d,(n=[{key:"render",value:function(){var e=this.props.tagName||"div";return(0,i.h)(e,r({},this.props,{ref:this.props.elemRef,style:this.visuallyHiddenStyles()}),this.props.children)}},{key:"visuallyHiddenStyles",value:function(){return{clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}}}])&&a(t.prototype,n),l&&a(t,l),Object.defineProperty(t,"prototype",{writable:!1}),d}(i.Component)},(e,t,n)=>{n.d(t,{AudioTrackMenuItem:()=>g});var i=n(2),r=n(22),o=n(26),a=n(24),s=n(20),u=n(27),l=n(148);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c.apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,u.defineTranslations)("en-US",{AUDIO_DESCRIPTION_OFF:"Off"});var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(g,e);var t,n,p,v=f(g);function g(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),m(y(t=v.call(this,e)),"onBlur",(function(){t.state.isKeyboardFocused&&t.setState({isKeyboardFocused:!1})})),m(y(t),"onClick",(function(){t.props.onClick(t.props.id)})),m(y(t),"onFocus",(function(){(0,o.isMouseDown)()||t.setState({isKeyboardFocused:!0})})),m(y(t),"onMouseEnter",(function(){t.setState({isHovering:!0})})),m(y(t),"onMouseLeave",(function(){t.setState({isHovering:!1})})),t.uuid=(0,s.seqId)(),t}return t=g,(n=[{key:"checkStyle",value:function(){return{height:_(this),verticalAlign:"middle",visibility:this.props.track.isSelected?"visible":"hidden",width:b(this)}}},{key:"menuItemStyle",value:function(){return{background:this.state.isHovering?"rgba(0,0,0,.3)":"",boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",display:"block",fontFamily:r.interFontFamily,fontSize:w(this),lineHeight:_(this),marginRight:"".concat(10*this.props.scale,"px"),textAlign:"left",width:"100%"}}},{key:"translate",value:function(e){return(0,u.getTranslation)(this.props.playerLanguage.code,"AUDIO_DESCRIPTION_".concat(e))}},{key:"render",value:function(){var e=this.props,t=e.track,n=e.elemRef,r=t.label;"Original"===r&&(r=this.translate("OFF"));var o="AD-".concat(this.uuid,"-").concat(r,"+").concat(t.id);return(0,i.h)("div",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:n,style:this.menuItemStyle()},(0,i.h)(l.default,{checked:Boolean(t.isSelected),id:o,name:"Audio Description Menu",onBlur:this.onBlur,onClick:this.onClick,onFocus:this.onFocus,tagName:"input",type:"radio",value:r}),(0,i.h)("label",{class:"w-css-reset",for:o},(0,i.h)("svg",c({},(0,a.standardSvgAttrs)({width:40,height:34}),{class:"w-checkmark",style:this.checkStyle()}),(0,i.h)("polyline",{fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",points:"17,17 20,20 25,14 "})),r))}}])&&d(t.prototype,n),p&&d(t,p),Object.defineProperty(t,"prototype",{writable:!1}),g}(i.Component),b=function(e){return"".concat(function(e){return 40*e.props.scale}(e),"px")},_=function(e){return"".concat(function(e){return 34*e.props.scale}(e),"px")},w=function(e){return 14*e.props.scale}},(e,t,n)=>{n.d(t,{default:()=>u});n(2);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function o(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,a(e,t,"set"),n),n}function a(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}var s=new WeakMap;const u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,s,{writable:!0,value:void 0}),this.video=t,this.unbinds=[],this.reactMounts={}}var t,n,u;return t=e,(n=[{key:"mount",value:function(e){this.rootElem=e}},{key:"disabledButton",get:function(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,a(e,s,"get"));var e},set:function(e){o(this,s,e)}}])&&i(t.prototype,n),u&&i(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}()},(e,t,n)=>{n(3);var i=n(2),r=n(28),o=n(150),a=n(152),s=n(56),u=n(58),l=n(27);function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t,n){g(e,t),t.set(e,n)}function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function b(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,w(e,t,"get"))}function _(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,w(e,t,"set"),n),n}function w(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}(0,l.defineTranslations)("en-US",{CAPTIONS_DISABLED:"No captions available",CAPTIONS_HIDE_MENU:"Hide captions menu",CAPTIONS_OFF:"Off",CAPTIONS_SHOW_MENU:"Show captions menu",CAPTIONS_TURN_OFF:"Turn off captions",CAPTIONS_TURN_ON:"Turn on captions"});var O="disabled",k="on",P="off",T=new WeakMap,S=new WeakMap,E=new WeakSet,C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,n,r,o=h(u);function u(e){var t,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t=o.call(this,e),g(n=p(t),i=E),i.add(n),m(p(t),T,{writable:!0,value:void 0}),m(p(t),S,{writable:!0,value:void 0}),v(p(t),"onClickButton",(function(){var e;if(null!==(e=t.captionsV3Control)&&void 0!==e&&e.selectedLanguage)t.captionsV3Control.setLanguage(void 0),_(p(t),S,P);else{var n=t.captionsV3Control.captionAndSubtitleTextTracks()[0].language;t.captionsV3Control.setLanguage(n),_(p(t),S,k)}t.renderButton()})),t.video=e,t.unbinds=[],t.disabledButton=!0,_(p(t),S,O),function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(p(t),E,A).call(p(t)).then((function(){t.captionsV3Control.captionAndSubtitleTextTracks().length>0&&(t.disabledButton=!1,_(p(t),S,P),t.renderButton()),t.unbinds.push(t.video.on("addtrack",(function(){t.disabledButton=!1,_(p(t),S,P),t.renderButton()})),t.video.on("captionschange",(function(){t.captionsV3Control.selectedLanguage?_(p(t),S,k):_(p(t),S,P),t.renderButton()})))})),t}return t=u,(n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"mountButton",value:function(e){this.buttonRoot=e,this.renderButton()}},{key:"onControlPropsUpdated",value:function(e){this.dialog&&this.dialog.isOpen()&&this.renderDialog(),e.playerLanguage&&this.props.playerLanguage.code!==e.playerLanguage.code&&this.updateButtonLabel()}},{key:"renderButton",value:function(){var e;!this.video._inNativeMode()&&this.buttonRoot&&(this.updateButtonLabel(),(0,i.render)((0,i.h)(a.default,{onClick:this.onClickCaptionsButton,color:this.video.playerColor(),filled:Boolean(null===(e=this.captionsV3Control)||void 0===e?void 0:e.selectedTrack)}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot])}},{key:"updateButtonLabel",value:function(){var e,t=(v(e={},k,"CAPTIONS_TURN_OFF"),v(e,P,"CAPTIONS_TURN_ON"),v(e,"menu-closed","CAPTIONS_SHOW_MENU"),v(e,"menu-open","CAPTIONS_HIDE_MENU"),v(e,O,"CAPTIONS_DISABLED"),e)[b(this,S)],n=(0,l.getTranslation)(this.props.playerLanguage.code,t);this.setButtonLabel(n)}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.default);function A(){var e=this;return b(this,T)||_(this,T,(0,r.dynamicImport)("captions-v3.js").then((function(t){return(0,u.defineControl)(t.CaptionsV3Control),e.video.whenControlMounted("captionsV3")})).then((function(){e.captionsV3Control=e.video.controls.captionsV3}))),b(this,T)}C.handle="captionsV3Button",C.type="control-bar-right",C.sortValue=50,C.shouldMount=function(e){return e.isLiveMedia()},(0,u.defineControl)(C)},(e,t,n)=>{n.d(t,{default:()=>y});var i=n(2),r=n(24);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}const y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(f,e);var t,n,a,u=h(f);function f(){return l(this,f),u.apply(this,arguments)}return t=f,(n=[{key:"shouldComponentUpdate",value:function(e){return this.props.filled!==e.filled}},{key:"render",value:function(){var e={"stroke-linecap":"round","stroke-miterlimit":10},t=s(s({},e),{},{fill:this.props.filled?"#fff":"none",stroke:"#ffffff"}),n=s(s({},e),{},{fill:"none",stroke:this.props.filled?"#".concat(this.props.color):"#fff"});return(0,i.h)("svg",(0,r.standardSvgAttrs)({width:40,height:34}),(0,i.h)("g",null,(0,i.h)("path",o({},t,{"stroke-width":"2",d:"M31,21.9c0,1.6-1.4,3-3,3H12c-1.6,0-3-1.4-3-3V12c0-1.6,1.4-3,3-3h16c1.6,0,3,1.4,3,3V21.9z"}))),(0,i.h)("g",null,(0,i.h)("path",o({},n,{"stroke-width":"1.8",d:"M18.4,18.7c-0.5,0.7-1.1,1.2-2.1,1.2c-1.3,0-2.4-1.1-2.4-2.8c0-1.6,1-2.8,2.4-2.8c1,0,1.6,0.5,2,1.2"}))),(0,i.h)("g",null,(0,i.h)("path",o({},n,{"stroke-width":"1.8",d:"M25.8,18.7c-0.5,0.7-1.1,1.2-2.1,1.2c-1.3,0-2.4-1.1-2.4-2.8c0-1.6,1-2.8,2.4-2.8c1,0,1.6,0.5,2,1.2"}))))}}])&&c(t.prototype,n),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.Component)},(e,t,n)=>{n(3);var i=n(2),r=n(11),o=n(150),a=n(56),s=n(58),u=n(27);function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,r.cachedDetect)();(0,u.defineTranslations)("en-US",{BACKGROUND_FOCUS_SHOW_CONTROLS:"Show controls"});var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(s,e);var t,n,r,o=d(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),y(f(t=o.call(this,e)),"onControlPropsUpdated",(function(e){var n=t.props.isFocusable;e.isFocusable!=n&&n&&t._focusImmediately&&(t.el.focus({preventScroll:!0}),t._focusImmediately=!1)})),y(f(t),"focus",(function(){t.props.isFocusable?t.el.focus({preventScroll:!0}):t._focusImmediately=!0})),y(f(t),"onBlur",(function(){t.video.exitInputContext("background-focus"),t.video.controls.focusOutline.hide()})),y(f(t),"onFocus",(function(){t.video.enterInputContext("background-focus"),!0===t.video.isKeyboardFocused()&&t.video.controls.focusOutline.show()})),y(f(t),"render",(function(){var e=!t.video.publicApi.popover||t.video.publicApi.popover.isVisible()?0:-1;(0,i.render)((0,i.h)("button",{ref:function(e){return t.el=e},"aria-label":t.getTranslation(),class:"w-css-reset w-vulcan-v2-button",onBlur:t.onBlur,onFocus:t.onFocus,style:t.style(),tabIndex:e}),t.rootElem),t.reactMounts=[t.rootElem]})),t.video=e,t._focusImmediately=!1,t.unbinds.push(t.video.on("play",t.render),t.video.on("pause",t.render),t.video.on("end",t.render)),t}return t=s,(n=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"mount",value:function(e){this.rootElem=e,this.render()}},{key:"style",value:function(){return{width:0,height:0,pointerEvents:"none"}}},{key:"getTranslation",value:function(){return v.touchScreen&&!this.props.chromeless?this.translate("BACKGROUND_FOCUS_SHOW_CONTROLS"):"playing"===this.video.state()?this.translate("PLAY_BUTTON_TITLE_WHEN_PLAYING"):this.translate("PLAY_BUTTON_TITLE_WHEN_NOT_PLAYING")}},{key:"translate",value:function(e){return(0,u.getTranslation)(this.props.playerLanguage.code,e)}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.default);m.shouldMount=function(){return!0},m.handle="backgroundFocus",m.type="background",m.sortValue=100,(0,s.defineControl)(m)},(e,t,n)=>{n(3);var i=n(155),r=n(2),o=n(150),a=n(156),s=n(56),u=n(58);function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,n,o,u=d(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),y(f(t=u.call(this,e)),"renderButton",(function(){if(!t.__destroyed&&!t.hiddenButton){var e=!t.video.publicApi.popover||t.video.publicApi.popover.isVisible()?0:-1;(0,r.render)((0,r.h)(a.default,{baseHeight:80,baseWidth:125,buttonTabIndex:e,color:t.video.playerColor(),duration:t.video.duration(),elemRef:function(e){return t.buttonElem=e},isLiveMedia:t.video.isLiveMedia(),isVisible:t.shouldShow(),leftNudgeFraction:t.getLeftNudgeFraction(),noMixBlendMode:t.video.embedOptions().noMixBlendMode,onClick:t.onClick,playerLanguage:t.props.playerLanguage,scale:t.scale(),showBpbTime:t._timeEnabled,topNudgeFraction:t.getTopNudgeFraction(),videoHeight:t.props.videoHeight-.75*t.props.controlBarHeight,videoName:t.video.name()||"",videoWidth:t.props.videoWidth}),t.rootElem),t.reactMounts=[t.rootElem]}})),y(f(t),"onClick",(function(){t.video.play(),t.video.focus()})),t.video=e,t.unbinds.push(e.on("playercolorchange",t.renderButton),e.on("play",t.renderButton),e.on("playrejected",t.renderButton),e.on("playpending",t.renderButton),e.on("playerlanguagechange",t.renderButton),e.on("end",t.renderButton),e.on("up",t.renderButton),e.on("trimchange",t.renderButton)),t._timeEnabled=t.video._opts.bpbTime,t.hiddenButton=t.video.isLiveMedia(),t.video.isLiveMedia()&&t.video.ready((function(){t.hiddenButton=!1,t.renderButton()})),t}return t=h,(n=[{key:"mount",value:function(e){this.rootElem=e,this.renderButton()}},{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(e){this.props.videoWidth===e.videoWidth&&this.props.videoHeight===e.videoHeight||this.renderButton()}},{key:"shouldShow",value:function(){var e=this.video;return!1===e.lastPlayInfo().isPending&&("beforeplay"===e.state()||"ended"===e.state()&&"reset"===e._opts.endVideoBehavior)}},{key:"scale",value:function(){return Math.min(1.3,Math.max(.3,(0,i.controlMultiplierBasedOnVideo)(this.video,[640,960])))}},{key:"setTimeEnabled",value:function(e){this._timeEnabled=e,this.renderButton()}},{key:"setLeftNudgeFraction",value:function(e){this._leftNudgeFraction=e,this.renderButton()}},{key:"setTopNudgeFraction",value:function(e){this._topNudgeFraction=e,this.renderButton()}},{key:"getLeftNudgeFraction",value:function(){return null!=this._leftNudgeFraction?this._leftNudgeFraction:this.video._opts.bpbLeftNudge}},{key:"getTopNudgeFraction",value:function(){return null!=this._topNudgeFraction?this._topNudgeFraction:this.video._opts.bpbTopNudge}},{key:"getButtonOffsets",value:function(){var e=this.buttonElem;return{offsetHeight:e.offsetHeight,offsetTop:e.offsetTop}}}])&&l(t.prototype,n),o&&l(t,o),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.default);v.shouldMount=function(e){var t=e._opts.playButton;return null==t||!0===t},v.handle="bigPlayButton",v.type="above-control-bar",(0,u.defineControl)(v)},(e,t,n)=>{n.d(t,{controlMultiplierBasedOnVideo:()=>l});n(5),n(57);var i=n(11),r=n(6);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=(0,i.cachedDetect)(),u=function(e){if(!(s.iphone||s.ipad||s.android))return[640,960];if(null!=e&&e.isAudio())return[500,960];var t,n,i,o,a=(t=document.querySelector("meta[name=viewport]"),n=t&&t.getAttribute("content"),i={},n&&n.split(/[\s,]+/).forEach((function(e){var t=e.split("=");2===t.length&&(i[t[0]]=(0,r.cast)(t[1]))})),i);if(a.width){o="number"==typeof a.width?0+a.width:screen.width||window.innerWidth;var u=Math.max(a["minimum-scale"]||0,Math.min(a["maximum-scale"]||10,a["initial-scale"]||1));u<1&&(o/=u)}else o=window.innerWidth;return[o,2*o/3]},l=function(e,t){var n=e.videoWidth(),i=o(t||u(e),2),r=i[0],a=i[1];return n<r?n/r:n>a?n/a:1}},(e,t,n)=>{n.d(t,{default:()=>O});var i=n(22),r=n(2),o=n(70),a=n(39),s=n(65),u=n(11),l=n(24),c=n(27),d=n(157);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},h.apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=(0,u.cachedDetect)(),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(v,e);var t,n,u,d=y(v);function v(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),b(m(t=d.call(this,e)),"onMouseEnter",(function(){t.setState({isHovering:!0})})),b(m(t),"onMouseLeave",(function(){t.setState({isHovering:!1})})),b(m(t),"onFocusIn",(function(){t.setState({isHovering:!0})})),b(m(t),"onFocusOut",(function(){t.setState({isHovering:!1})})),t.state={isHovering:!1},t}return t=v,(n=[{key:"render",value:function(){var e=this.props,t=e.baseHeight,n=e.baseWidth,i=e.elemRef,o=e.scale,u=(0,l.standardSvgAttrs)({width:n,height:t,styleOverride:{position:"absolute",height:"".concat(t*o,"px")},ariaHidden:!0});return(0,r.h)("div",{class:"w-bpb-wrapper w-css-reset w-css-reset-tree",ref:i,style:this.wrapperStyle()},(0,r.h)("button",{class:"w-big-play-button w-css-reset-button-important w-vulcan-v2-button",style:this.buttonStyle(),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onfocusin:this.onFocusIn,onfocusout:this.onFocusOut,"aria-label":"".concat(this.translate("TITLE_WHEN_NOT_PLAYING"),": ").concat((0,a.unescapeHtml)(this.props.videoName)),tabIndex:this.props.buttonTabIndex},(0,r.h)("div",{style:this.blendStyle()}),(0,r.h)("div",{style:this.overlayStyle()}),(0,r.h)("svg",h({},u,{alt:""}),(0,r.h)("rect",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"none",width:n,height:t}),(0,r.h)("polygon",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#FFFFFF",points:"53,22 53,58 79,40"}))),this.props.showBpbTime&&!0!==this.props.isLiveMedia?(0,r.h)("div",{class:"w-bpb-time",style:this.timeStyle()},(0,s.flexibleDuration)(this.props.duration)):null)}},{key:"translate",value:function(e){return(0,c.getTranslation)(this.props.playerLanguage.code,"PLAY_BUTTON_".concat(e))}},{key:"wrapperStyle",value:function(){var e=this.props,t=e.baseHeight,n=e.baseWidth,i=e.isVisible,r=e.leftNudgeFraction,o=e.topNudgeFraction,a=e.scale,s=n*a,u=t*a;return{display:i?"block":"none",left:"calc(50% + ".concat(100*(r||0),"%)"),marginLeft:"-".concat(s/2,"px"),marginTop:"-".concat(u/2,"px"),position:"absolute",top:"calc(50% + ".concat(100*(o||0),"%)")}}},{key:"shouldMixBlendMode",value:function(){var e=this.props.noMixBlendMode;return!_.edge&&!e}},{key:"blendStyle",value:function(){var e=this.props,t=e.baseHeight,n=e.baseWidth,i=e.color,r=e.scale;return{background:new o.default(i||"#000").alpha(1).toRgba(),display:this.shouldMixBlendMode()?"block":"none",left:0,height:"".concat(t*r,"px"),mixBlendMode:"darken",position:"absolute",top:0,width:"".concat(n*r,"px")}}},{key:"overlayStyle",value:function(){var e=this.props,t=e.baseHeight,n=e.baseWidth,i=e.color,r=e.scale,a=this.state.isHovering,s=new o.default(i||"#000");return s.alpha(.7),this.shouldMixBlendMode()||s.alpha(.85),a&&s.lighten(30),{backgroundColor:s.toRgba(),height:"".concat(t*r,"px"),left:0,position:"absolute",top:0,transition:"background-color 150ms",width:"".concat(n*r,"px")}}},{key:"buttonStyle",value:function(){var e=this.props,t=e.scale,n=e.baseHeight,i=e.baseWidth;return{cursor:"pointer",height:"".concat(n*t,"px"),boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",width:"".concat(i*t,"px")}}},{key:"timeStyle",value:function(){var e=this.props.scale;return{background:"rgba(0,0,0,.4)",color:"#fff",fontFamily:i.interNumbersSemiBold,fontSize:"".concat(18*e,"px"),lineHeight:"".concat(30*e,"px"),pointerEvents:"none",textAlign:"center"}}}])&&f(t.prototype,n),u&&f(t,u),Object.defineProperty(t,"prototype",{writable:!1}),v}(r.Component);const O=(0,d.default)(w)},(e,t,n)=>{n.d(t,{default:()=>f});var i=n(2),r=n(5);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=function(e){return function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(p,t);var n,l,d,f=u(p);function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return h(c(e=f.call.apply(f,[this].concat(n))),"onClick",(function(t){var n=e.props.onClick;n&&n(t)})),e}return n=p,(l=[{key:"render",value:function(){return(0,i.h)(e,this.props)}},{key:"componentDidMount",value:function(){this.setupBindings()}},{key:"componentDidUpdate",value:function(){this.destroyBindings(),this.setupBindings()}},{key:"componentWillUnmount",value:function(){this.destroyBindings()}},{key:"setupBindings",value:function(){this.unbinds=[],this.unbinds.push((0,r.elemBind)(this.base,"click",this.onClick))}},{key:"destroyBindings",value:function(){this.unbinds&&(this.unbinds.map((function(e){return e()})),this.unbinds=null)}}])&&a(n.prototype,l),d&&a(n,d),Object.defineProperty(n,"prototype",{writable:!1}),p}(i.Component)}},(e,t,n)=>{n(3);var i=n(2),r=n(15),o=n(26),a=n(11),s=n(28),u=n(58),l=n(27),c=n(56),d=n(159),h=n(150);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},f.apply(this,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=b(e);if(t){var r=b(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,a.cachedDetect)();(0,l.defineTranslations)("en-US",{CLICK_FOR_SOUND_DESKTOP_TEXT:"Click for sound",CLICK_FOR_SOUND_MOBILE_TEXT:"Tap for sound"});var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(u,e);var t,n,r,a=v(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),_(g(t=a.call(this,e)),"renderButton",(function(){var e,n=Boolean(t.video._opts.silentAutoPlayIsChromeless),r=t.isVisible();if(n&&(r?t.video.requestChromeless("clickForSound"):t.video.releaseChromeless("clickForSound")),t.video.trigger("clickforsoundvisibilitychange",r),r){var o=new Promise((function(e){setTimeout(e,1e3)}));e=Promise.race([o,(0,s.dynamicImport)("interFontFace.js")])}else e=Promise.resolve();t.lastRenderPromise||(t.lastRenderPromise=Promise.resolve()),t.lastRenderPromise.then((function(){t.lastRenderPromise=new Promise((function(n){e.then((function(){(0,i.render)((0,i.h)(d.default,f({},t.props,{backdropEnabled:t.getSilentAutoplayBackdropState(),buttonText:t.buttonText(),elemRef:function(e){return t.buttonRoot=e},isVisible:r,onClick:t.onClick,scale:t.scale()})),t.rootElem),t.reactMounts=[t.rootElem],t.trigger("buttonrootrendered"),n()}))}))}))})),_(g(t),"onClick",(function(e){(0,o.isMouseDown)()||t.video.focus(),t.video.unmute(),t.trigger("click",e)})),t.silentAutoPlayBackdropEnabled=t.video._opts.silentAutoPlayBackdropEnabled,t.unbinds.push(e.on("play",t.renderButton),e.on("silentplaybackmodechange",t.renderButton),e.on("volumechange",t.renderButton)),t}return t=u,(n=[{key:"destroy",value:function(){(0,c.destroyControl)(this)}},{key:"mount",value:function(e){this.rootElem=e,this.renderButton()}},{key:"onControlPropsUpdated",value:function(e){var t=this.props;e.scale===t.scale&&e.controlsAreVisible===t.controlsAreVisible&&e.controlBarHeight===t.controlBarHeight||this.renderButton(),e.playerLanguage&&this.props.playerLanguage.code!==e.playerLanguage.code&&this.renderButton()}},{key:"getSilentAutoplayBackdropState",value:function(){return null==this.silentAutoPlayBackdropEnabled||this.silentAutoPlayBackdropEnabled}},{key:"setSilentAutoPlayBackdropEnabled",value:function(e){this.silentAutoPlayBackdropEnabled=e,this.renderButton()}},{key:"isVisible",value:function(){return null!=this._isVisible?this._isVisible:this.video.inSilentPlaybackMode()}},{key:"setIsVisible",value:function(e){this._isVisible=e,this.renderButton(),this.video.trigger("clickforsoundvisibilitychange",this.isVisible())}},{key:"buttonText",value:function(){return this._buttonText?this._buttonText:w.touchScreen?this.translate("MOBILE_TEXT"):this.translate("DESKTOP_TEXT")}},{key:"setButtonText",value:function(e){this._buttonText=e,this.renderButton()}},{key:"afterButtonRenders",value:function(){var e=this;return new Promise((function(t){e.bind("buttonrootrendered",(function(){return t(e.buttonRoot),e.unbind}))}))}},{key:"translate",value:function(e){var t;return(0,l.getTranslation)(null===(t=this.props)||void 0===t?void 0:t.playerLanguage.code,"CLICK_FOR_SOUND_".concat(e))}},{key:"scale",value:function(){return 1.5*this.props.scale}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(h.default);(0,r.bindify)(O.prototype),O.handle="clickForSoundButton",O.type="above-control-bar",(0,u.defineControl)(O)},(e,t,n)=>{n.d(t,{default:()=>y});var i=n(2),r=n(22),o=n(26),a=n(53);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(y,e);var t,n,d,f=c(y);function y(){var e;s(this,y);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return p(h(e=f.call.apply(f,[this].concat(n))),"onFocus",(function(){(0,o.isMouseDown)()||e.setState({isKeyboardFocused:!0})})),p(h(e),"onBlur",(function(){e.setState({isKeyboardFocused:!1})})),e}return t=y,(n=[{key:"render",value:function(){var e=this.props.elemRef;return(0,i.h)(a.default,{class:"w-css-reset w-css-reset-tree","data-handle":"click-for-sound-backdrop",elemRef:e,onClick:this.props.onClick,style:this.rootStyle()},(0,i.h)("button",{"aria-label":this.props.buttonText,style:this.buttonStyle(),onFocus:this.onFocus,onBlur:this.onBlur,class:"w-vulcan-v2-button"},(0,i.h)("svg",{viewBox:"0 0 237 237"},(0,i.h)("style",null,this.styleText()),(0,i.h)("polygon",{fill:"white",points:"88 107 65 107 65 131 89 131 112 154 112 84"}),(0,i.h)("g",{fill:"none",stroke:"white","stroke-width":"10","stroke-linecap":"round"},(0,i.h)("path",{class:"volume__small-wave",d:"M 142 86 C 151 107 151 130 142 151"}),(0,i.h)("path",{class:"volume__large-wave",d:"M 165 74 C 178 97 178 140 165 163"})))))}},{key:"styleText",value:function(){return"\n @keyframes VOLUME_SMALL_WAVE_FLASH {\n 0% { opacity: 0; }\n 33% { opacity: 1; }\n 66% { opacity: 1; }\n 100% { opacity: 0; }\n }\n\n @keyframes VOLUME_LARGE_WAVE_FLASH {\n 0% { opacity: 0; }\n 33% { opacity: 1; }\n 66% { opacity: 1; }\n 100% { opacity: 0; }\n }\n\n .volume__small-wave {\n animation: VOLUME_SMALL_WAVE_FLASH 2s infinite;\n opacity: 0;\n }\n\n .volume__large-wave {\n animation: VOLUME_LARGE_WAVE_FLASH 2s infinite .3s;\n opacity: 0;\n }\n "}},{key:"rootStyle",value:function(){return{display:this.props.isVisible?"block":"none",height:"100%",left:0,pointerEvents:this.props.backdropEnabled?"auto":"none",position:"absolute",top:0,width:"100%"}}},{key:"buttonStyle",value:function(){var e=this.props.scale;return{background:"rgba(0,0,0,0.8)",border:"2px solid ".concat(this.state.isKeyboardFocused?"#fff":"transparent"),borderRadius:"50%",cursor:"pointer",height:"".concat(35*e,"px"),width:"".concat(35*e,"px"),lineHeight:"".concat(35*e,"px"),outline:"none",pointerEvents:"auto",position:"absolute",right:"".concat(15*e-2,"px"),textAlign:"left",top:"".concat(15*e-2,"px")}}},{key:"textStyle",value:function(){var e=this.props.scale;return{color:"white",display:"inline-block",fontFamily:r.interFontFamily,fontSize:"".concat(13*e,"px"),marginLeft:"".concat(-4*e,"px"),marginTop:"".concat(-.75*e,"px"),verticalAlign:"top",whiteSpace:"nowrap",width:"36%"}}}])&&u(t.prototype,n),d&&u(t,d),Object.defineProperty(t,"prototype",{writable:!1}),y}(i.Component)},(e,t,n)=>{var i=n(161),r=(n(3),n(2),n(5)),o=n(11),a=n(26),s=n(28),u=n(58),l=n(56),c=n(54),d=n(150);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=b(e);if(t){var r=b(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,o.cachedDetect)(),O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(d,e);var t,n,o,u=v(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),_(g(t=u.call(this,e)),"onContextMenu",(function(e,n){var o,s;e.altKey||(null!==(o=(s=t.video.ui).shouldOnlyShowControlBar)&&void 0!==o&&o.call(s)||("contextmenu"===e.type&&e.preventDefault(),t.pageX=e.pageX,t.pageY=e.pageY,t._hasLoaded||t.loading(new Promise((function(e){t.resolveLoadingPromise=e})),{x:t.pageX,y:t.pageY}),new Promise((function(e){!(n&&n.isLongPress)&&(0,a.isMouseDown)()?(0,r.elemBind)(document,"mouseup",(function(n){return t.pageX=n.pageX,t.pageY=n.pageY,e(),r.elemUnbind})):e()})).then((function(){(0,i.logPromiseErrors)(t.loadContextMenu().then((function(){t.renderMenu&&(t.resolveLoadingPromise(),t.renderMenu(),t.menuElemRef.focus())})))}))))})),_(g(t),"onClick",(function(e){(0,r.elemIsInside)(e.target,t.rootElem)||w.safari&&e.ctrlKey||(t.hideMenu?t.hideMenu():t._hasLoaded||t.loading(new Promise((function(e){e()}))))})),_(g(t),"onDocumentMouseUp",(function(e){e.ctrlKey||(0,r.elemIsInside)(e.target,t.rootElem)||((0,r.elemUnbind)(document,"mouseup",t.onDocumentMouseUp),t.loadContextMenu().then((function(){t.hideMenu()})))})),w.touchScreen?(t.touchEvents=new c.default(e.chrome),t.touchEvents.bind("longpress",t.onContextMenu)):t.unbinds.push((0,r.elemBind)(e.chrome,"contextmenu",t.onContextMenu)),t.unbinds.push((0,r.elemBind)(e.chrome,"click",t.onClick)),t}return t=d,(n=[{key:"mount",value:function(e){this.rootElem=e}},{key:"destroy",value:function(){this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),(0,l.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(e){this.props.playerLanguage!==e.playerLanguage&&this._visible&&this.renderMenu()}},{key:"loadContextMenu",value:function(){var e=this;return Promise.all([(0,s.dynamicImport)("interFontFace.js"),(0,s.dynamicImport)("vulcanV2Player/shared/controls/ContextMenuControl/menu.js")]).then((function(t){var n=h(t,2)[1].ContextMenuExtensions;for(var i in n)e[i]=n[i].bind(e);e._hasLoaded=!0}))}}])&&p(t.prototype,n),o&&p(t,o),Object.defineProperty(t,"prototype",{writable:!1}),d}(d.default);O.handle="contextMenu",O.type="foreground",(0,u.defineControl)(O)},(e,t,n)=>{n.d(t,{logPromiseErrors:()=>r});var i=function(e){setTimeout((function(){throw e}),0)},r=function(e){return e.catch(i)}},(e,t,n)=>{n(3);var i=n(2),r=n(150),o=n(163),a=n(56),s=n(58),u=n(27);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,u.defineTranslations)("en-US",{ELLIPSIS_LESS:"Show fewer buttons",ELLIPSIS_MORE:"Show more buttons"});var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(f,e);var t,n,r,s=h(f);function f(){var e;l(this,f);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return v(p(e=s.call.apply(s,[this].concat(n))),"onClickButton",(function(){e.video.ui.isShowingMore()?(e.video.ui.showLess(),e.renderButton()):(e.video.ui.showMore(),e.renderButton())})),e}return t=f,(n=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"mountButton",value:function(e){this.buttonElem=e,this.renderButton()}},{key:"renderButton",value:function(){(0,i.render)((0,i.h)(o.EllipsisButton,null),this.buttonElem),this.setButtonLabel(this.translate(this.video.ui.isShowingMore()?"LESS":"MORE"))}},{key:"translate",value:function(e){return(0,u.getTranslation)(this.props.playerLanguage.code,"ELLIPSIS_".concat(e))}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(r.default);m.handle="ellipsisButton",m.isVideoChrome=!0,m.type="ellipsis",m.sortValue=1e5,m.shouldMount=function(e){var t,n,i=(null===(t=e._impl.ui)||void 0===t?void 0:t.getControlsByType("control-bar-right"))||[],r=(null===(n=e._impl.ui)||void 0===n?void 0:n.getControlsByType("playbar"))||[];return i.length>0&&r.length>0&&e._impl.ui&&!e._impl.ui.shouldShowMoreDefaultValue()},(0,s.defineControl)(m)},(e,t,n)=>{n.d(t,{EllipsisButton:()=>a});var i=n(2),r=n(24);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){return(0,i.h)("svg",(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),(0,i.h)("circle",{cx:"20",cy:"17",r:"2"}),(0,i.h)("circle",{cx:"13",cy:"17",r:"2"}),(0,i.h)("circle",{cx:"27",cy:"17",r:"2"}))}}])&&o(t.prototype,n),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},(e,t,n)=>{n(3);var i=n(2),r=n(150),o=n(56),a=n(58);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,n,r,a=l(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).video=e,t._isVisible=!1,t}return t=c,(n=[{key:"destroy",value:function(){(0,o.destroyControl)(this)}},{key:"mount",value:function(e){this.rootElem=e,this.render()}},{key:"hide",value:function(){this._isVisible=!1,this.render()}},{key:"show",value:function(){this._isVisible=!0,this.render()}},{key:"style",value:function(){return{boxShadow:"0 0 0 2px #fff inset",display:this._isVisible?"block":"none",height:"100%",left:0,pointerEvents:"none",position:"absolute",right:0,width:"100%"}}},{key:"render",value:function(){(0,i.render)((0,i.h)("div",{style:this.style(),class:"w-focus-outline"}),this.rootElem)}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.default);h.shouldMount=function(e){return!e.isAudio()},h.handle="focusOutline",h.type="foreground",h.sortValue=100,(0,a.defineControl)(h)},(e,t,n)=>{n(3);var i=n(2),r=n(5),o=n(11),a=n(150),s=n(166),u=n(56),l=n(58),c=n(27);function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,o.cachedDetect)();(0,c.defineTranslations)("en-US",{FULLSCREEN_DOUBLE_TAP:"Double-tap to zoom in or out",FULLSCREEN_TITLE_WHEN_IN_FULLSCREEN:"Unfullscreen",FULLSCREEN_TITLE_WHEN_NOT_IN_FULLSCREEN:"Fullscreen"});var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(l,e);var t,n,o,a=f(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),m(y(t=a.call(this,e)),"onClickButton",(function(){t.toggleFullscreen()})),m(y(t),"onKeyUp",(function(e){if(!(0,r.formInputIsFocused)()){var n=t.video.getInputContext();"background-focus"!==n&&"player-mouseover"!==n&&"player-focus"!==n&&"playbar-focus"!==n||70===e.keyCode&&t.toggleFullscreen()}})),t.unbinds.push(e.on("enterfullscreen",(function(){t.renderButton()})),e.on("cancelfullscreen",(function(){t.renderButton()})),(0,r.elemBind)(document,"keyup",t.onKeyUp)),_()||w(t.video)||!O()||(t.mountDialog=t.maybeMountDialog),t}return t=l,(n=[{key:"destroy",value:function(){(0,u.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(e){e.playerLanguage&&this.props.playerLanguage.code!==e.playerLanguage.code&&(this.renderButton(),this.dialog&&this.dialog.isOpen()&&this.renderDialog())}},{key:"maybeMountDialog",value:function(e){this.dialogElem=e,this.renderDialog()}},{key:"renderDialog",value:function(){this.dialogElem.innerHTML=this.translate("DOUBLE_TAP")}},{key:"mountButton",value:function(e){this.buttonElem=e,this.renderButton()}},{key:"renderButton",value:function(){if(this.buttonElem){var e=this.video.inFullscreen()?this.translate("TITLE_WHEN_IN_FULLSCREEN"):this.translate("TITLE_WHEN_NOT_IN_FULLSCREEN");this.setButtonLabel(e),(0,i.render)((0,i.h)(s.default,null),this.buttonElem),this.reactMounts=[this.buttonElem]}}},{key:"translate",value:function(e){return(0,c.getTranslation)(this.props.playerLanguage.code,"FULLSCREEN_".concat(e))}},{key:"toggleFullscreen",value:function(){if(_()||w(this.video)){var e=this.video;e.inFullscreen()?e.cancelFullscreen():e.requestFullscreen()}}}])&&d(t.prototype,n),o&&d(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(a.default);b.handle="fullscreenButton",b.type="control-bar-right",b.sortValue=1e3,(0,l.defineControl)(b);var _=function(){return g.fullscreenEnabled},w=function(e){var t=e._mediaData,n=e._opts,i=(t.spherical||n.spherical)&&!n.overrideSpherical,r=!!t.secondaryMediaData,o=top!==self;return g.ios.version>0&&(!o||!i&&!r)},O=function(){return g.ios.version>0||g.android};b.shouldMount=function(e){var t=e._opts.fullscreenButton;return(!0===t||null==t)&&(_()||w(e)||O())}},(e,t,n)=>{n.d(t,{default:()=>h});var i=n(2),r=n(24);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}const h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(h,e);var t,n,c,d=l(h);function h(){return a(this,h),d.apply(this,arguments)}return t=h,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e={fill:"none",stroke:"#ffffff","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10};return(0,i.h)("svg",(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),(0,i.h)("g",null,(0,i.h)("g",null,(0,i.h)("polyline",o({},e,{points:"31.4,12.6 31.4,8.7 25.8,8.7"})),(0,i.h)("polyline",o({},e,{points:"14.7,8.7 9.1,8.7 9.1,12.6"})),(0,i.h)("polyline",o({},e,{points:"25.8,24.8 31.4,24.8 31.4,20.9"})),(0,i.h)("polyline",o({},e,{points:"9.1,20.9 9.1,24.8 14.7,24.8"}))),(0,i.h)("rect",o({x:"13.7",y:"12.3"},e,{"enable-background":"new",width:"13.3",height:"8.9"}))))}}])&&s(t.prototype,n),c&&s(t,c),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.Component)},(e,t,n)=>{n(3);var i=n(5),r=n(2),o=n(150),a=n(168),s=n(56),u=n(58);function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,n,o,u=d(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),y(f(t=u.call(this,e)),"show",(function(e){t._isVisible=!0,t.renderMenu(e)})),y(f(t),"hide",(function(){t._isVisible=!1,(0,r.render)((0,r.h)("nothing",null),t.rootElem),t.reactMounts=[t.rootElem]})),t._isVisible=!1,t}return t=h,(n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"mount",value:function(e){this.rootElem=e}},{key:"renderMenu",value:function(e){var t=e.x||0,n=e.y||0,o=(0,i.elemOffset)(this.video._embedContainer);this._isVisible&&((0,r.render)((0,r.h)(a.default,{videoOffset:o,x:t,y:n}),this.rootElem),this.reactMounts=[this.rootElem])}}])&&l(t.prototype,n),o&&l(t,o),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.default);v.handle="loadingHourglass",v.type="foreground",(0,u.defineControl)(v)},(e,t,n)=>{n.d(t,{default:()=>h});var i=n(2),r=n(5);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}const h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(h,e);var t,n,l,d=u(h);function h(e){var t,n,i,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),t=d.call(this,e),n=c(t),r=function(e){var n=e.pageX-t.props.videoOffset.left+10,i=e.pageY-t.props.videoOffset.top;t.setState({x:n,y:i})},(i="onMouseMove")in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,t.animationInterval=void 0,t.state={x:t.props.x+10,y:t.props.y,floatingPixel:8},t}return t=h,(n=[{key:"componentWillMount",value:function(){var e=this;this.animationInterval=setInterval((function(){var t=e.state.floatingPixel+1;t>10&&(t=8),e.setState({floatingPixel:t})}),500),(0,r.elemBind)(document,"mousemove",this.onMouseMove)}},{key:"componentWillUnmount",value:function(){clearInterval(this.animationInterval),(0,r.elemUnbind)(document,"mousemove",this.onMouseMove)}},{key:"sandStyle",value:function(){return{fill:"#000000",width:"1",height:"1"}}},{key:"anchorStyle",value:function(){return{height:0,left:"".concat(this.state.x,"px"),position:"absolute",top:"".concat(this.state.y,"px"),width:0}}},{key:"sandProps",value:function(e,t){return{className:"sand",x:e,y:t,style:this.sandStyle()}}},{key:"useRules",value:function(){return{fill:"#FFFFFF","fill-rule":"evenodd"}}},{key:"hourGlassProps",value:function(e){return{stroke:"#000000",x:"1.5",y:e,width:"12",height:"2"}}},{key:"defsProps",value:function(e){return{x:1,y:e,width:13,height:3}}},{key:"render",value:function(){var e=this;return(0,i.h)("div",{style:this.anchorStyle(),onMouseMove:this.onMouseMove},(0,i.h)("svg",{width:"15px",height:"20px",viewBox:"0 0 15 20",version:"1.1"},(0,i.h)("defs",null,(0,i.h)("rect",o({id:"path-1"},this.defsProps(1))),(0,i.h)("rect",o({id:"path-2"},this.defsProps(16))),(0,i.h)("polygon",{id:"path-3",points:"2 3 13 3 13 7 10.25 10 13 13 13 17 2 17 2 13 4.75 10 2 7"})),(0,i.h)("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,i.h)("g",{id:"hourglass"},(0,i.h)("g",{id:"top"},(0,i.h)("use",o({},this.useRules(),{xlinkKref:"#path-1"})),(0,i.h)("rect",this.hourGlassProps(1.5))),(0,i.h)("g",{id:"bottom"},(0,i.h)("use",o({},this.useRules(),{xlinkHref:"#path-2"})),(0,i.h)("rect",this.hourGlassProps(16.5))),(0,i.h)("g",{id:"glass"},(0,i.h)("use",o({},this.useRules(),{xlinkHref:"#path-3"})),(0,i.h)("path",{stroke:"#000000",d:"M2.5,3.5 L2.5,6.80550815 L5.42828419,10 L2.5,13.1944918 L2.5,16.5 L12.5,16.5 L12.5,13.1944918 L9.57171581,10 L12.5,6.80550815 L12.5,3.5 L2.5,3.5 Z"})),(0,i.h)("rect",{id:"floater",fill:"#000000",x:"7",y:this.state.floatingPixel,width:"1",height:"1"}),[[5,6],[7,6],[6,7],[8,7],[7,11],[6,12],[8,12],[7,13],[6,14],[8,14],[5,13],[9,13],[4,14],[10,14],[5,6],[9,6]].map((function(t){return(0,i.h)("rect",e.sandProps(t[0],t[1]))}))))))}}])&&a(t.prototype,n),l&&a(t,l),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.Component)},(e,t,n)=>{n(3);var i=n(170),r=n(58);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,i,r=u(l);function l(){return o(this,l),r.apply(this,arguments)}return t=l,(n=[{key:"width",value:function(){return this.props.width}},{key:"left",value:function(){return this.props.left}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.default);d.shouldMount=function(e){var t=e._opts.playbar;return!0===t||null==t},d.handle="playbar",d.type="playbar",(0,r.defineControl)(d)},(e,t,n)=>{n.d(t,{default:()=>O});var i=n(72),r=n(43),o=n(57),a=n(26),s=n(5),u=n(2),l=n(56),c=n(171),d=n(150);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},h.apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=y(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},p.apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=_(e);if(t){var r=_(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(g,e);var t,n,d,y=m(g);function g(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),w(b(t=y.call(this,e)),"renderPlaybar",(function(){var e=t.video,n=e.plugin.chapters,i=n?n.getAllChapters():[],r=n?n.getChapterWithVisibleTitle():null,o=n?n.getChapterWithFocusedMarker():null,a=t.PlaybarComponent;(0,u.render)((0,u.h)(a,h({getCurrentTime:t.getCurrentTime,getCurrentBufferTime:t.getCurrentBufferTime,duration:e.duration(),isBeforePlay:"beforeplay"===e.state(),isVisible:t.props.controlsAreVisible,isPlaying:"playing"===e.state(),isSeeking:e._impl.engine&&e._impl.engine.isSeeking()},t.props,{onDragStart:t.onDragStart,onDrag:t.onDrag,onDragEnd:t.onDragEnd,onBlur:t.onBlurPlaybar,onFocus:t.onFocusPlaybar,isPlaceholder:t.isPlaceholder(),chapters:i,chapterWithFocusedMarker:o,chapterWithVisibleTitle:r,onClickChapter:t.onClickChapter,onMouseEnterOrFocusChapter:t.onMouseEnterOrFocusChapter,onMouseLeaveOrBlurChapter:t.onMouseLeaveOrBlurChapter,mediaData:t.video._mediaData,embedOptions:t.video._opts,color:t.video.playerColor(),showTime:t.showTime,lastSeekedAt:t._lastSeekedAt||0,shouldShowStoryboard:t.shouldShowStoryboard(),shouldShowChapterTitles:!0,shouldShowTime:t.shouldShowTime(),storyboardAsset:t.storyboardAsset(),leftControlBarWidth:t.props.leftControlBarWidth,setTimeWidth:t.setTimeWidth,setRightBarMargin:t.setRightBarMargin,resumableTime:t.resumableTime(),getDurationBeforeCuts:t.getDurationBeforeCuts,getTimeBeforeCuts:t.getTimeBeforeCuts})),t.rootElem),t.reactMounts=[t.rootElem]})),w(b(t),"getDurationBeforeCuts",(function(){var e;return null!==(e=t.video)&&void 0!==e&&e.engine?t.video.engine.getDurationBeforeCuts():-1})),w(b(t),"getTimeBeforeCuts",(function(e){var n;return null!==(n=t.video)&&void 0!==n&&n.engine?t.video.engine.getTimeBeforeCuts(e):-1})),w(b(t),"setTimeWidth",(function(e){t._timeWidth=e})),w(b(t),"setRightBarMargin",(function(e){t._rightBarMargin=e})),w(b(t),"renderNothing",(function(){(0,u.render)((0,u.h)("nothing",null),t.rootElem),t.reactMounts=[t.rootElem]})),w(b(t),"renderIfNotPlaying",(function(){"playing"!==t.video.state()&&t.render()})),w(b(t),"getCurrentTime",(function(){return t.video?t.video.time():0})),w(b(t),"getCurrentBufferTime",(function(){var e=t.video?t.video.getBuffered():[];return 0===e.length?0:e[e.length-1].end})),w(b(t),"onClickChapter",(function(e,n){n&&(t.video.time(n.time),"beforeplay"===t.video.state()&&t.video.play())})),w(b(t),"onMouseEnterOrFocusChapter",(function(e,n){n&&(t.chaptersPlugin().setChapterWithVisibleTitle(n.id),t.chaptersPlugin().setChapterWithFocusedMarker(n.id))})),w(b(t),"onMouseLeaveOrBlurChapter",(function(){t.chaptersPlugin().setChapterWithVisibleTitle(null),t.chaptersPlugin().setChapterWithFocusedMarker(null)})),w(b(t),"onDragStart",(function(e,n){t.video.requestControls("playbar-drag"),t.stateBeforeDrag=t.video.state(),t.onDrag(e,n),(0,o.doTimeout)("".concat(t.video.uuid,".maybe-pause-on-scrub"),(function(){(0,a.isMouseDown)()&&t.video.pause()}),300)})),w(b(t),"onDrag",(function(e,n){var i=n*t.video.duration();i!==t._timeSeekedToRecently&&(t.video.time(i),t._timeSeekedToRecently=i,(0,o.doTimeout)("".concat(t.video.uuid,".prevent-double-seek"),(function(){t._timeSeekedToRecently=null}),300))})),w(b(t),"onDragEnd",(function(e,n){t.video.releaseControls("playbar-drag"),t.onDrag(e,n),t.video.trigger("playbardragend"),"beforeplay"!==t.stateBeforeDrag&&"playing"!==t.stateBeforeDrag||t.video.play()})),w(b(t),"onFocusPlaybar",(function(){t.video.enterInputContext("playbar-focus")})),w(b(t),"onBlurPlaybar",(function(){t.video.exitInputContext("playbar-focus")})),w(b(t),"onKeyDown",(function(e){var n=t.video;if(t.isVisible()&&!t.video._opts.spherical&&!(0,s.formInputIsFocused)()){var i=n.getInputContext();if("playbar-focus"===i||"player-mouseover"===i||"background-focus"===i||"player-focus"===i){var r=n.duration(),o=e.keyCode;if(32!==o){null==t.keyDownStartedAt&&(t.keyDownStartedAt=Date.now());var a=Date.now()-t.keyDownStartedAt,u=0;u="playing"===n.state()?e.shiftKey||a>200?33===o||34===o?r<30?5:r<60?10:10+r/60:r<30?2:r<60?5:5+r/60/2:33===o||34===o?r<60?5:20:2:e.shiftKey||a>200?1:1/24;var l=0;39===o||33===o?l=1:37!==o&&34!==o||(l=-1),-1===l?(e.preventDefault(),n.time(n.time()-u)):1===l&&(e.preventDefault(),n.time(n.time()+u))}else"playbar-focus"!==i&&"player-mouseover"!==i||e.preventDefault()}}})),w(b(t),"onKeyUp",(function(e){if(t.isVisible()&&!(0,s.formInputIsFocused)()){t.keyDownStartedAt=null;var n=t.video;"playbar-focus"===n.getInputContext()&&32===e.keyCode&&("playing"===n.state()?n.pause():n.play())}})),t.PlaybarComponent=c.default,t.showTime=!0,t}return t=g,(n=[{key:"destroy",value:function(){(0,l.destroyControl)(this)}},{key:"mount",value:function(e){var t=this;p(_(g.prototype),"mount",this).call(this,e);var n=this.video;this.unbinds.push(n.on("play",(function(){t.render()})),n.on("pause",(function(){t.render()})),n.on("progress",this.renderIfNotPlaying),n.on("timechange",this.renderIfNotPlaying),n.on("end",(function(){t.render()})),n.on("widthchange",(function(){t.render()})),n.on("playercolorchange",(function(){t.render()})),n.on("seekcomplete",(function(){t._lastSeekedAt=Date.now(),t.render()})),n.on("seeking",(function(){t.render()})),n.on("trimchange",(function(){t.renderNothing(),t.render()})),(0,s.elemBind)(document,"keydown",this.onKeyDown),(0,s.elemBind)(document,"keyup",this.onKeyUp));var i=function(){var e=n.plugin.chapters;t.unbinds.push(e.on("focuschange",(function(){t.render()})),e.on("changechapters",(function(){t.render()})))};n.plugin("chapters").then(i),n.on("plugininitialized",(function(e){"chapters"===e&&i()})),this.render()}},{key:"onControlPropsUpdated",value:function(e){e.width!==this.props.width&&this.render(),e.controlsAreVisible&&!this.props.controlsAreVisible&&this.render(),!e.controlsAreVisible&&this.props.controlsAreVisible&&this.render()}},{key:"render",value:function(){this.video.publicApi.isLiveMedia()?this.renderNothing():this.renderPlaybar()}},{key:"resumableTime",value:function(){if(this.video.shouldResume())return(0,i.getLastTime)(this.video.hashedId())}},{key:"timeWidth",value:function(){return this._timeWidth}},{key:"rightBarMargin",value:function(){return this._rightBarMargin}},{key:"chaptersPlugin",value:function(){return this.video.plugin.chapters}},{key:"isPlaceholder",value:function(){return!1}},{key:"isVisible",value:function(){return!0}},{key:"shouldShowTime",value:function(){return!0}},{key:"shouldShowStoryboard",value:function(){if(null!=this._shouldShowStoryboard)return this._shouldShowStoryboard;var e=!!this.storyboardAsset(),t=!!this.video._mediaData.secondaryMediaData;return this._shouldShowStoryboard=e&&!t}},{key:"storyboardAsset",value:function(){return(0,r.one)(this.video._mediaData.assets,{type:"storyboard",status:r.READY,metadata:function(e){return e&&e.frame_count&&e.frame_width&&e.frame_height}})}}])&&f(t.prototype,n),d&&f(t,d),Object.defineProperty(t,"prototype",{writable:!1}),g}(d.default)},(e,t,n)=>{n.d(t,{default:()=>M});n(3);var i=n(172),r=n(22),o=n(70),a=n(6),s=n(65),u=n(5),l=n(2),c=n(11),d=n(26),h=n(28),f=n(173),p=n(54);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},y.apply(this,arguments)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=k(e);if(t){var r=k(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return w(this,n)}}function w(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,i.addInterNumbersFontFace)();var T,S,E,C=(0,c.cachedDetect)(),A="vulcanV2Player/shared/ui_components",D="w-playbar",j=1.001,x=function(e){return Math.min(1,Math.max(0,e))};const M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(m,e);var t,n,i,c=_(m);function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),P(O(t=c.call(this,e)),"onFocusChapterMarkers",(function(){t.state.isKeyboardFocused&&t.setState({isKeyboardFocused:!1})})),P(O(t),"onFocus",(function(e){var n=t.props.onFocus;n&&n(e),(0,d.isMouseDown)()||t.setState({isKeyboardFocused:!0})})),P(O(t),"onFocusOut",(function(){t.state.isKeyboardFocused&&t.setState({isKeyboardFocused:!1})})),P(O(t),"onMouseEnter",(function(e){t.touchEvents||(e.wistiaPlayerHandled=!0,t.setState({hoveredAt:Date.now(),isHovering:!0}),t.cachePositionDetails(),t.props.shouldShowStoryboard&&t.loadStoryboard())})),P(O(t),"onMouseLeave",(function(e){t.touchEvents||(e.wistiaPlayerHandled=!0,t.setState({hoveredAt:void 0,isHovering:!1}))})),P(O(t),"onMouseMove",(function(e){if(!t.touchEvents){e.wistiaPlayerHandled=!0;var n=t.getPercentFromPossiblyExternalMouseEvent(e);t.setState({hoverPercent:n})}})),P(O(t),"onMouseDown",(function(e){if(!t.touchEvents&&!e.wistiaPlayerHandled&&!e.ctrlKey){e.preventDefault(),t.wrapperElem.focus(),e.wistiaPlayerHandled=!0,t.cachePositionDetails();var n=t.getPercentFromPossiblyExternalMouseEvent(e);t.handleWithProp("onDragStart",e,n),t.setState({dragPercent:n,dragMode:!0,wasBeforePlayOnDrag:t.props.isBeforePlay}),(0,u.elemBind)(document,"mousemove",t.onMouseMoveDragging),(0,u.elemBind)(document,"mouseup",t.onMouseUpDragging)}})),P(O(t),"onMouseMoveDragging",(function(e){e.preventDefault(),e.wistiaPlayerHandled=!0;var n=t.getPercentFromPossiblyExternalMouseEvent(e);t.handleWithProp("onDrag",e,n),t.setState({dragPercent:n,dragMode:!0})})),P(O(t),"onMouseUpDragging",(function(e){e.wistiaPlayerHandled=!0;var n=t.getPercentFromPossiblyExternalMouseEvent(e);t.setState({dragPercent:n,dragMode:!1,isOverPlayhead:!1}),t.handleWithProp("onDragEnd",e,n),(0,u.elemUnbind)(document,"mousemove",t.onMouseMoveDragging),(0,u.elemUnbind)(document,"mouseup",t.onMouseUpDragging)})),P(O(t),"onTouchStart",(function(e){e.preventDefault(),e.wistiaPlayerHandled=!0,t.cachePositionDetails();var n=t.getPercentFromTouchEvent(e);t.handleWithProp("onDragStart",e,n),t.setState({dragPercent:n,dragMode:!0}),t.touchEvents.on("touchmove",t.onTouchMoveDragging),t.touchEvents.on("touchend",t.onTouchEndDragging)})),P(O(t),"onTouchMoveDragging",(function(e){e.preventDefault(),e.wistiaPlayerHandled=!0;var n=t.getPercentFromTouchEvent(e);t.handleWithProp("onDrag",e,n),t.setState({dragPercent:n,dragMode:!0})})),P(O(t),"onTouchEndDragging",(function(e){e.wistiaPlayerHandled=!0;var n=t.getPercentFromTouchEvent(e);t.setState({dragPercent:n,dragMode:!1,isOverPlayhead:!1}),t.handleWithProp("onDragEnd",e,n),t.touchEvents.off("touchmove",t.onTouchMoveDragging),t.touchEvents.off("touchend",t.onTouchEndDragging)})),P(O(t),"onMouseEnterPlayhead",(function(){t.setState({isOverPlayhead:!0})})),P(O(t),"onMouseLeavePlayhead",(function(){t.setState({isOverPlayhead:!1})})),P(O(t),"setWrapperRef",(function(e){t.wrapperElem=e,t.props.setPlaybarElemRef&&t.props.setPlaybarElemRef(e)})),P(O(t),"startAnimLoopIfPlaying",(function(){t.props.isPlaying&&t.props.isVisible&&requestAnimationFrame(t.continuouslyUpdatePlaybar)})),P(O(t),"stopAnimLoop",(function(){cancelAnimationFrame(t.animReq)})),P(O(t),"continuouslyUpdatePlaybar",(function(){t.drawCanvas(),t.maybeUpdateTimeText(),(0,a.assign)(t.playheadEl.style,t.playheadStyle()),t.startAnimLoopIfPlaying()})),P(O(t),"loadStoryboard",(function(){return(0,h.dynamicImport)("vulcanV2Player/video/ui_components/Storyboard.js").then((function(e){E=e.Storyboard,t.setState({loadedStoryboard:!0})}))})),P(O(t),"loadChapters",(function(){return Promise.all([(0,h.dynamicImport)("".concat(A,"/ChapterMarkers.js")),(0,h.dynamicImport)("".concat(A,"/ChapterTitles.js"))]).then((function(e){var n=v(e,2),i=n[0],r=n[1];T=i.ChapterMarkers,S=r.ChapterTitles,t.setState({loadedChapters:!0})}))})),t.state={currentBufferTime:e.getCurrentBufferTime(),currentTime:e.getCurrentTime(),dragMode:!1,dragPercent:0,hasPlayed:!1,hoverPercent:0,isHovering:!1,isKeyboardFocused:!1,isOverPlayhead:!1,loadedChapters:!1,loadedStoryboard:!1,timeWidth:null,wasBeforePlayOnDrag:!1},t.setColorsFromPlayerColor(e.color),e.chapters&&e.chapters.length>0&&t.loadChapters(),t.playheadScale=j,t}return t=m,n=[{key:"canvasHeight",value:function(){return this.props.height*(window.devicePixelRatio||1)}},{key:"canvasStyle",value:function(){return{height:"".concat(this.props.height,"px"),left:"".concat(-this.leftBarMargin(),"px"),position:"absolute",top:0,width:"".concat(this.leftBarMargin()+this.unfilledBarWidth()+this.rightBarMargin(),"px")}}},{key:"canvasWidth",value:function(){return(this.leftBarMargin()+this.unfilledBarWidth()+this.rightBarMargin())*(window.devicePixelRatio||1)}},{key:"playheadStyle",value:function(){var e=1.4*this.barHeight()*4,t=this.props.height/2-e/2,n=this.playedPercent()*this.unfilledBarWidth()-e/2;return{borderRadius:"50%",height:"".concat(e,"px"),left:"".concat(n,"px"),opacity:0,position:"absolute",top:"".concat(t,"px"),width:"".concat(e,"px")}}},{key:"componentWillReceiveProps",value:function(e){var t=this.props;t.color!==e.color&&this.setColorsFromPlayerColor(e.color),this.setState({dragMode:!1,currentTime:t.getCurrentTime(),currentBufferTime:t.getCurrentBufferTime()}),e.chapters&&e.chapters.length>0&&this.loadChapters()}},{key:"drawCanvas",value:function(){var e,t=this;if(this.canvasEl){var n=window.devicePixelRatio||1,i=this.state,r=i.dragMode,o=i.hoverPercent,s=i.isHovering,u=i.isKeyboardFocused,l=i.isOverPlayhead,c=this.canvasWidth(),d=this.canvasHeight(),h=this.canvasEl.getContext("2d");h.globalCompositeOperation="source-over",h.clearRect(0,0,c,d);var f=this.unfilledBarWidth(),p=this.props.height*n/2;h.strokeStyle="rgba(255,255,255,.6)",h.lineWidth=this.barHeight()*n,h.beginPath(),h.lineCap="round",h.moveTo(this.leftBarMargin()*n,p),h.lineTo((this.leftBarMargin()+f)*n,p),h.stroke();var y=this.playedPercent()*f;h.strokeStyle="rgba(255,255,255,1)",h.lineWidth=this.barHeight()*n,h.beginPath(),h.lineCap="round",h.moveTo(this.leftBarMargin()*n,p),h.lineTo((this.leftBarMargin()+y)*n,p),h.stroke();var v=this.props.chapters,m=this.props,g=m.chapterWithFocusedMarker,b=m.duration,_=1.4*this.barHeight()*n;if((null===(e=v)||void 0===e?void 0:e.length)>0){if(g){v=(0,a.clone)(v);for(var w=-1,O=0;O<v.length;O++)if(v[O].id===g.id){w=O;break}v.splice(w,1),v.push(g)}v.forEach((function(e){var i=e.time/b,r=(t.leftBarMargin()+i*f)*n,o=_;g===e&&(o*=1.5),h.beginPath(),h.arc(r,p,1.6*o,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="destination-out",h.fill()})),v.forEach((function(e){var i=e.time/b,r=(t.leftBarMargin()+i*f)*n,o=.6,a=_;g===e&&(a*=2,o=1),h.beginPath(),h.arc(r,p,a,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="source-over",h.fillStyle="rgba(255,255,255,".concat(o,")"),h.fill();var s=a-.75*t.barHeight()*n;h.beginPath(),h.arc(r,p,s,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="destination-out",h.fillStyle="rgba(0,0,0,1)",h.fill()})),h.globalCompositeOperation="source-over"}var k=r||u||l,P=k?2:j,T=!1;P!==this.playheadScale&&(T=!0,this.playheadScale=k?2:j,this.lastScaledAt=Date.now());var S=k?0:100;T&&this.animateUntil(Date.now()+S);var E=0===S?1:2-Math.min(1,(Date.now()-this.lastScaledAt)/S),C=this.lastScaledAt?E*P:1,A=1.4*this.barHeight()*n*C,D=(this.leftBarMargin()+y)*n,x=2*A,M=2*x,R=h.createRadialGradient(D,p,0,D,p,x);if(R.addColorStop(0,"rgba(255,255,255,.5)"),R.addColorStop(1,"rgba(255,255,255,0)"),h.beginPath(),h.rect(D-x,p-x,M,M),h.closePath(),h.fillStyle=R,h.fill(),h.beginPath(),h.arc(D,p,A,0,2*Math.PI),h.closePath(),h.fillStyle="rgba(255,255,255,1)",h.fill(),u&&(h.beginPath(),h.arc(D,p,1.5*A,0,2*Math.PI),h.closePath(),h.strokeWidth=n||1,h.stroke()),s&&!r&&!g){h.beginPath();var I=1.4*this.barHeight()*n,B=(this.leftBarMargin()+o*this.unfilledBarWidth())*n-I/2;h.arc(B,p,I,0,2*Math.PI),h.closePath(),h.fillStyle="rgba(255,255,255,1)",h.fill()}}}},{key:"animateUntil",value:function(e){(!this._animEndTime||e>this._animEndTime)&&(this._animEndTime=e),this._animating||(this.animateCanvasUntilEndTime(),this._animating=!0)}},{key:"animateCanvasUntilEndTime",value:function(){var e=this;requestAnimationFrame((function(){Date.now()>e._animEndTime?e._animating=!1:(e.drawCanvas(),e.animateCanvasUntilEndTime())}))}},{key:"render",value:function(){var e=this;return this.oldWrapperElem=this.wrapperElem,(0,l.h)("div",{class:"".concat(D,"-wrapper w-css-reset w-css-reset-tree"),style:this.wrapperStyle()},this.props.shouldShowTime?this.renderTime():void 0,(0,l.h)("div",{"aria-label":"Playbar","aria-orientation":"horizontal","aria-valuemax":this.props.duration,"aria-valuemin":0,"aria-valuenow":this.ariaValueNow(),"aria-valuetext":this.ariaValueText(),onBlur:this.props.onBlur,onFocus:this.onFocus,onfocusout:this.onFocusOut,onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,ref:this.setWrapperRef,role:"slider",style:this.dragAreaStyle(),tabindex:this.props.isVisible?0:-1},(0,l.h)("canvas",{height:this.canvasHeight(),ref:function(t){return e.canvasEl=t},style:this.canvasStyle(),width:this.canvasWidth()}),(0,l.h)("div",{onMouseEnter:this.onMouseEnterPlayhead,onMouseLeave:this.onMouseLeavePlayhead,ref:function(t){return e.playheadEl=t},style:this.playheadStyle()}),void 0!==T?(0,l.h)(T,y({},this.props,{onFocus:this.onFocusChapterMarkers,timeLeft:-10,timeRight:-10})):null,this.props.shouldShowStoryboard&&void 0!==E?(0,l.h)(E,y({},this.props,{hasChapters:this.state.loadedChapters,isHovering:this.state.isHovering,getDurationBeforeCuts:this.props.getDurationBeforeCuts,getTimeBeforeCuts:this.props.getTimeBeforeCuts,hoverPercent:this.state.hoverPercent,left:this.props.left+this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin(),width:this.unfilledBarWidth()})):null,this.props.shouldShowTimeOnHover&&this.state.isHovering&&(0,l.h)(f.default,{left:this.state.hoverPercent*this.unfilledBarWidth(),time:this.getHoverTime(),height:this.props.height,widthOfPlaybar:this.unfilledBarWidth()}),this.props.shouldShowChapterTitles&&void 0!==S?(0,l.h)(S,y({},this.props,{left:this.props.left+this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin(),width:this.unfilledBarWidth()})):null))}},{key:"renderTime",value:function(){var e=this;return(0,l.h)("div",{class:"".concat(D,"__time"),style:this.timeStyle(),ref:function(t){return e.timeElem=t}})}},{key:"componentDidMount",value:function(){this.drawCanvas(),this.lastRenderedAt=Date.now(),C.touchScreen&&this.wrapperElem&&(this.touchEvents=new p.default(this.wrapperElem),this.touchEvents.on("touchstart",this.onTouchStart)),this.maybeUpdateTimeText();var e=this.props;e.isPlaying&&this.setState({hasPlayed:!0}),e.isPlaying&&this.startAnimLoopIfPlaying()}},{key:"componentDidUpdate",value:function(e,t){this.drawCanvas();var n=this.props;this.lastRenderedAt=Date.now(),C.touchScreen&&this.wrapperElem&&this.oldWrapperElem!==this.wrapperElem&&(this.touchEvents&&this.touchEvents.destroy(),this.touchEvents=new p.default(this.wrapperElem),this.touchEvents.on("touchstart",this.onTouchStart)),n.isPlaying&&!this.state.hasPlayed&&this.setState({hasPlayed:!0}),this.maybeUpdateTimeText();var i=n.isPlaying&&!e.isPlaying,r=t.currentBufferTime!=this.state.currentBufferTime,o=n.isVisible&&!e.isVisible;(i||o||r)&&this.startAnimLoopIfPlaying(),!n.isVisible&&e.isVisible&&this.stopAnimLoop(),this.props.setTimeWidth(this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin()),this.props.setRightBarMargin(this.rightBarMargin())}},{key:"componentWillUnmount",value:function(){(0,u.elemUnbind)(document,"mousemove",this.onMouseMoveDragging),(0,u.elemUnbind)(document,"mouseup",this.onMouseUpDragging),this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null)}},{key:"getHoverTime",value:function(){return(0,s.flexibleDuration)(Math.round(this.state.hoverPercent*this.props.duration))}},{key:"placeholderStyle",value:function(){return{cursor:"default",height:"100%",outline:"none",position:"relative",width:"100%"}}},{key:"wrapperStyle",value:function(){var e=this.props,t=e.videoWidth,n=e.width;return{display:"flex",height:"100%",width:n===t?"".concat(n,"px"):"100%"}}},{key:"dragAreaStyle",value:function(){return{cursor:"pointer",flex:"1 1",height:"".concat(this.props.height,"px"),outline:"none",marginLeft:"".concat(this.leftBarMargin(),"px"),marginRight:"".concat(this.rightBarMargin(),"px"),position:"relative"}}},{key:"leftBarMargin",value:function(){return 0===this.props.leftControlBarWidth?this.rightBarMargin():1.5*this.rightBarMargin()}},{key:"rightBarMargin",value:function(){var e=this.props,t=e.duration,n=e.scale,i=7*(0,s.flexibleDuration)(900).length,r=7*(0,s.flexibleDuration)(t).length;return 10*(i<r?i/r:1)*n}},{key:"timeLeftPadding",value:function(){var e=this.props,t=e.leftControlBarWidth,n=e.isPlaceholder;return e.shouldShowTime?0===t?this.leftBarMargin()/1.33:n?this.leftBarMargin():this.leftBarMargin()/3:0}},{key:"timeStyle",value:function(){var e=this.props,t=e.height,n=e.scale;return{boxSizing:"content-box",color:"white",fontFamily:r.interNumbersSemiBold,fontSize:"".concat(13*n,"px"),letterSpacing:"".concat(.5*n,"px"),lineHeight:"".concat(t,"px"),paddingLeft:"".concat(this.timeLeftPadding(),"px"),pointerEvents:"none",position:"relative",textAlign:"center",width:"".concat(this.timeWidth(),"px")}}},{key:"timeWidth",value:function(){var e=this.props,t=e.duration,n=e.scale;return e.shouldShowTime?7*(0,s.flexibleDuration)(t).length*n:0}},{key:"filledBarStyle",value:function(){var e=this.barHeight();return{background:"#fff",borderRadius:"".concat(e,"px"),height:"".concat(e,"px"),left:0,position:"absolute",top:0,width:"".concat(100*this.playedPercent(),"%")}}},{key:"barHeight",value:function(){return 2*this.props.scale}},{key:"unfilledBarStyle",value:function(){var e=this.props.height;return{background:"rgba(255,255,255,.6)",borderRadius:"".concat(this.barHeight(),"px"),height:"".concat(this.barHeight(),"px"),left:0,pointerEvents:"none",position:"absolute",top:"".concat((e-this.barHeight())/2,"px"),width:"".concat(this.unfilledBarWidth(),"px")}}},{key:"unfilledBarWidth",value:function(){return this.props.width-this.timeLeftPadding()-this.timeWidth()-this.leftBarMargin()-this.rightBarMargin()}},{key:"playedPercent",value:function(){var e=this.state,t=this.props,n=t.duration,i=t.getCurrentTime,r=t.isSeeking,o=t.resumableTime;return e.dragMode||e.wasBeforePlayOnDrag&&(r||!e.hasPlayed)?e.dragPercent:o&&!e.hasPlayed?x(o/n):x(i()/n)}},{key:"bufferedAheadPercent",value:function(){var e=this.state;if(this.props.isBeforePlay)return 0;if(e.dragMode){var t=e.currentBufferTime/this.props.duration;return x(t-e.dragPercent)}return x((this.props.getCurrentBufferTime()-this.props.getCurrentTime())/this.props.duration)}},{key:"emptyPercent",value:function(){return 1-x(this.playedPercent()+this.bufferedAheadPercent())}},{key:"timeText",value:function(){var e=this.state,t=this.props;return e.dragMode||e.wasBeforePlayOnDrag&&(this.props.isSeeking||!e.hasPlayed)?(0,s.flexibleDuration)(e.dragPercent*t.duration):e.hasPlayed||this.props.getCurrentTime()>=1?(0,s.flexibleDuration)(t.getCurrentTime()):t.resumableTime?(0,s.flexibleDuration)(t.resumableTime):(0,s.flexibleDuration)(t.duration)}},{key:"ariaValueNow",value:function(){return this.state.dragMode?this.state.dragPercent*this.props.duration:this.props.getCurrentTime()}},{key:"ariaValueText",value:function(){return(0,s.flexibleDuration)(this.ariaValueNow())}},{key:"cachePositionDetails",value:function(){this.offset=(0,u.elemOffset)(this.wrapperElem)}},{key:"getPercentFromPossiblyExternalMouseEvent",value:function(e){return e.target===this.wrapperElem?this.getPercentFromMouseEvent(e):this.getPercentFromPageX(e.pageX)}},{key:"getPercentFromMouseEvent",value:function(e){var t=e.offsetX,n=this.offset?this.offset.zoom:1;return this.getPercentFromOffsetX(t/n)}},{key:"getPercentFromOffsetX",value:function(e){return Math.max(0,Math.min(1,e/this.unfilledBarWidth()))}},{key:"getPercentFromPageX",value:function(e){if(void 0===this.offset)return 0;var t=this.unfilledBarWidth(),n=this.offset.width/t,i=(e-this.offset.left)/n;return this.getPercentFromOffsetX(i)}},{key:"getPercentFromTouchEvent",value:function(e){var t=e.changedTouches;return"0"in t?this.getPercentFromPageX(t[0].pageX):0}},{key:"handleWithProp",value:function(e,t){var n=this.props[e];if(n){for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];n.apply(void 0,[t].concat(r))}}},{key:"maybeUpdateTimeText",value:function(){var e=this.timeText();this.timeElem&&e!==this._lastTimeText&&(this.timeElem.innerText=e),this._lastTimeText=e}},{key:"playheadLeftPosition",value:function(){return this.unfilledBarWidth()*this.playedPercent()}},{key:"setColorsFromPlayerColor",value:function(e){this.playedColor=new o.default(e).darken(30).alpha(.7),this.bufferedColor=new o.default(e).lighten(75).alpha(.6),this.emptyColor=new o.default(e).lighten(40).alpha(.3)}}],n&&g(t.prototype,n),i&&g(t,i),Object.defineProperty(t,"prototype",{writable:!1}),m}(l.Component)},(e,t,n)=>{n.d(t,{addInterNumbersFontFace:()=>a});var i=n(3),r=n(5),o="\n@font-face {\nfont-family: 'WistiaPlayerInterNumbersSemiBold';\nfont-feature-settings: 'tnum' 1;\nsrc: url(data:application/x-font-woff;charset=utf-8;base64,".concat("d09GMk9UVE8AAAaMAAwAAAAACgAAAAZBAAMD1wAAAAAAAAAAAAAAAAAAAAAAAAAADYpwGhQbIBwqBmAAgTIBNgIkAzAEBgWDGgcgGykJEZWkARP8KHCbm2tEznyIN98tPTUk9Ig3oiVV3pbDIzXa+f/fZgXpALFTZhBoMVFC9cp036dXvRKVmVnsxe+D+1NDQI5lG7ikZWEINIElTeBIdnxlhauQ5GQtoLHA/wN0riVdSx5xgbxF3KTbgnjVQ4B9P7YqCx7FpEZK+6ilx0AoopUh4aExJEKmkU+0ncdr4iFfKhdSFD9y91LCRaxNbVqvi0dND3rxI7ndUDR7EiwT3bhiua9krFA0oepCy2hCjwmjnjDjKjNTDz2ZuHtN8820Wfw/l8u4w4yV/f8/6uscs5rmiN00LcP4hAofyZUSyS3WinX0RGFFtnGrjj36x6dlNa57+PLTlrUisH2n9orfgd+R34XfDd0NsWDXwfwhvKHpbs3UBni37dBlPvO4KYn/PgylilcgSdw6sjsSSxsRGfIJgqhi14bKZCHcQvjUh/+3HMotTYrGLVYCxyMFjEnYC98yTAp6atAKVxaZ9eu2NMji8WTj4w/Y34elD60PPwb5bEywLqAX/amwmUo6TBCy14N/TL44jb3sE5JdUIPXXI0RBSoGt3BUObn4agKGIxxQhlyQacbstK4fS2mZoBtFNQ1bd+4zND2vQu6anl7gWFOj8MV2DVMtU44xMhpwElrrjA7zO5IqWojd/v1Vso6cqp91zC2YrGhDOy07Iqyza2q9smDIwUYek0AWbCt/8x78QmrzayQ6xtpmqfCYsLfgU9HdeP3UqutZTTNd/9Q8k08XzXzIxSdvLPda8YaeeZnkxUwql0nDKyUYdaWZjGAy7UDLHpVqBVHTxSV0wBy21El9u/491ik2J3YkdiP2LPZL41RBeeNUWtp97Bbn0Ee1g9wr9qqV/X+4R9nlPX03743dylnaXZyNp8v58yLOsFYCbUnCVQzjN+5QhlmKccO7aMkueWJggROd4qnw2x5LydUcg/NRamE3XMlkGovpRWPKWEavP74P2O1RANM/3gIIPJj7TX+lqU2geQuaBx4B/7cWAOx0ucTiEHYJU9y5DBuUMYNIHeHZz9tn+Fw2G5EBTqUlHRfRi4eB5wNlJsRsv5k4b6HyFkhIC6BO4LzPbWhW7rbCcxubeKHOc6UaBKZBMMd4j8XuRUynOCCa4EMfF9grkI1NcTaSAVtk1nrIOwFfeEBlQw4f4phb6zHzBOm0ZZ0dBcaZRVdYIo5xYiyOMEWONwQHmjKGE//VuRBgul1QrpyxmMvF4vGj0xfuuQrNt4tVTsRhEnjY9AuKa1FVLSEneQWzFd5WbO7hasX08ONUOVQgwQuVqACFXkSoIoUgK1hJEkAgbkG5CjqBS5wrRFuY2IfVwhRnLsVyZTZpatveGR4yEbYqbE6J80nM4aa+LD7Oqmr8PdSJFUQVynmgN4lerGQV1+uLdYzdOFWHPW/iK2gIQayhizQ0NMwyvBEBlrDczRfmU40CTtAHqLQGnjQG8MYkxm1MwJuTqjHwVCu9iRJ1C8ojWGHxUYowH0c5X57zpXquvlw0wzHHGMTfufxiJ1psFJTzq6nGeDvHF4LgmHHWCUViZBaInRn+cswnBi460RBPRYg9TRUQ0CZUC5LAT0qLLu50FpdTeBhjGf7/h4dg9hE0uqsBx/saOcYRDIfnOhfzGFBHyizcJK3p2edUjWrC0rn1aGjXtfVUCHMAKKhlxV8eTEIcV2jCOdKiqahv/MisrfRQVnxPJoOU62mR6pu2ZllIzo8zOZqQB7kWJXW2/c0aihata5PcIVJKfFRgHAETmEQVTCELptGMGcyigTnMJ1voUVN6uCZS9pV2hrwl7FYMvBwtUSd7L7E5qP9t7BIPRF7EcmA9ct2nIPHrxgWajtDltbXuBLuaY6qRZGa5ZlX5anfR0lYXaHUzVSFjZa8rfdhZ8rKXFZg21LVL5LFjI5TlDIbwnFGHE2dypHs6Q50N015dpOgLONEUlOqoiQgIaeCsjMq9gITDKwRMieQgKUy9UQY1BTFYZU2KpE2SkILMIjW8IdFwIKmMaK8oClJVssAEtFnz5dQ1s+w6EZoNGtPGQfzx+aoE8ikiP8GCYOWtgB+HBdWDaxACAZInVq14dZI85RRDvZGIghyONw59KV/BBEQ02P1ER8hmNGiURT2hQP8WfAY=",");\n}\n"),a=function(){i.default._interNumbersFontFaceSemiBold||(i.default._interNumbersFontFaceSemiBold=(0,r.addInlineCss)(document.body||document.head,o))};a()},(e,t,n)=>{n.d(t,{default:()=>d});var i=n(22),r=n(2);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}const d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(d,e);var t,n,l,c=u(d);function d(){return o(this,d),c.apply(this,arguments)}return t=d,(n=[{key:"getLeftValue",value:function(){var e=this.props.left;return this.isInBeginningZone()?0:this.isInEndZone()?void 0:e}},{key:"getRightValue",value:function(){if(this.isInEndZone())return 0}},{key:"getTopValue",value:function(){var e=this.props.height/2-1.5*this.heightOfTimeBadge();return Math.max(2,e)}},{key:"isInBeginningZone",value:function(){return this.props.left<this.widthOfTimeBadge()/2}},{key:"isInEndZone",value:function(){return this.props.left>=this.props.widthOfPlaybar-this.widthOfTimeBadge()/2}},{key:"timeBadgeStyle",value:function(){var e=this.isInBeginningZone()||this.isInEndZone();return{color:"#fff",fontFamily:i.interNumbersSemiBold,fontSize:"13px",left:this.getLeftValue(),position:"absolute",right:this.getRightValue(),top:this.getTopValue(),transform:e?"":"translateX(-50%)"}}},{key:"widthOfTimeBadge",value:function(){var e;return(null===(e=this._timeBadgeRef)||void 0===e?void 0:e.getBoundingClientRect().width)||24}},{key:"heightOfTimeBadge",value:function(){var e;return(null===(e=this._timeBadgeRef)||void 0===e?void 0:e.getBoundingClientRect().height)||16}},{key:"render",value:function(){var e=this;return(0,r.h)("span",{ref:function(t){return e._timeBadgeRef=t},style:this.timeBadgeStyle()},this.props.time)}}])&&a(t.prototype,n),l&&a(t,l),Object.defineProperty(t,"prototype",{writable:!1}),d}(r.Component)},(e,t,n)=>{n(3);var i=n(2),r=n(155),o=n(11),a=n(150),s=n(175),u=n(56),l=n(58);function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=(0,o.cachedDetect)(),m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(l,e);var t,n,o,a=h(l);function l(e){var t,n,i,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=a.call(this,e),n=p(t),r=function(){t.playedOnce?t.video.isControlEnabled("centeredPlayPauseToggler")&&!t.props.chromeless||t.video._inNativeMode()||(t.ignoreNextPlayOrPause?t.ignoreNextPlayOrPause=!1:(t.isPlaying="playing"===t.video.state(),t.renderAndFade())):t.playedOnce=!0},(i="showIconAndFade")in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,t.isOpaque=!1,t.unbinds.push(e.on("play",t.showIconAndFade),e.on("pause",t.showIconAndFade)),t}return t=l,(n=[{key:"destroy",value:function(){(0,u.destroyControl)(this)}},{key:"mount",value:function(e){this.rootElem=e}},{key:"onControlPropsUpdated",value:function(e){e.videoWidth!==this.props.videoWidth&&this.renderButton()}},{key:"renderAndFade",value:function(){var e=this,t=this.video.lastPlayInfo();if(!this.isPlaying||"user-event"===t.source){var n=this.video.lastPauseInfo();(this.isPlaying||"user-event"===n.source)&&(this.isOpaque=!0,this.renderButton(),clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout((function(){e.isOpaque=!1,e.renderButton()}),20))}}},{key:"renderButton",value:function(){(0,i.render)((0,i.h)("div",{class:"w-play-pause-notifier",style:this.rootStyle()},(0,i.h)("div",{style:this.graphicStyle()},(0,i.h)(s.default,{isPlaying:!this.isPlaying,noPadding:!0}))),this.rootElem),this.reactMounts=[this.rootElem]}},{key:"oldRootStyle",value:function(){var e=this.scale(),t=this.isPlaying,n=t?60:50;return{height:"".concat((t?72:80)*e,"px"),left:"50%",pointerEvents:"none",position:"absolute",opacity:this.isOpaque?.5:0,top:"50%",transform:"translate(-".concat(t?33:50,"%, -50%) scale(").concat(this.isOpaque?.9:1.1,")"),transition:this.isOpaque?"":"opacity .8s, transform .8s",width:"".concat(n*e,"px")}}},{key:"rootStyle",value:function(){var e=this.scale();return{background:"rgba(0,0,0,.6)",borderRadius:"50%",height:"".concat(140*e,"px"),left:"50%",pointerEvents:"none",position:"absolute",opacity:this.isOpaque?.6:0,top:"50%",transform:"translate(-50%, -50%) scale(".concat(this.isOpaque?.7:.8,")"),transition:this.isOpaque?"":"opacity .8s, transform .8s",width:"".concat(140*e,"px")}}},{key:"graphicStyle",value:function(){var e=this.scale(),t=this.isPlaying,n=t?60:50;return{height:"".concat((t?72:80)*e,"px"),left:"50%",pointerEvents:"none",position:"absolute",top:"50%",transform:"translate(-".concat(t?38:50,"%, -").concat(t?47:50,"%)"),width:"".concat(n*e,"px")}}},{key:"scale",value:function(){return Math.min(1.3,Math.max(.3,(0,r.controlMultiplierBasedOnVideo)(this.video,[640,960])))}},{key:"svgStyle",value:function(){return{filter:"drop-shadow(0px 0px 3px rgba(0,0,0,0.5))"}}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(a.default);m.shouldMount=function(e){return!1!==e.embedOptions().playPauseNotifier&&!v.touchScreen},m.handle="playPauseNotifier",m.type="above-control-bar",(0,l.defineControl)(m)},(e,t,n)=>{n.d(t,{default:()=>f});var i=n(2),r=n(6),o=n(24);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}const f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,d,h=c(f);function f(){return s(this,f),h.apply(this,arguments)}return t=f,(n=[{key:"shouldComponentUpdate",value:function(e){return this.props.isPlaying!==e.isPlaying}},{key:"render",value:function(){return(0,i.h)("div",{style:this.rootStyle()},(0,i.h)("div",{style:{display:this.props.isPlaying?"block":"none",height:"100%",width:"100%"}},this.renderPauseIcon()),(0,i.h)("div",{style:{display:this.props.isPlaying?"none":"block",height:"100%",width:"100%"}},this.renderPlayIcon()))}},{key:"renderPlayIcon",value:function(){var e=this.props.noPadding,t=e?0:20,n=e?0:9,r=11.556,o="".concat(t+r,",").concat(n+7.5," ").concat(t,",").concat(n+15," ").concat(t,",").concat(n);return(0,i.h)("svg",a({},this.svgAttrs(r+2*t,15+2*n),{class:"w-css-reset w-css-reset-tree"}),(0,i.h)("polygon",{points:o}))}},{key:"renderPauseIcon",value:function(){var e=this.props.noPadding,t=e?0:20,n=e?0:11.3;return(0,i.h)("svg",a({},this.svgAttrs(10+2*t,12+2*n),{class:"w-css-reset w-css-reset-tree"}),(0,i.h)("g",null,(0,i.h)("rect",{x:t,y:n,width:"3.5",height:12}),(0,i.h)("rect",{x:t+6.5,y:n,width:"3.5",height:12})))}},{key:"rootStyle",value:function(){return{height:"100%",width:"100%"}}},{key:"svgAttrs",value:function(){var e=this.props.noPadding,t=this.props.isPlaying,n=e?0:20,i=e?0:t?11.3:9,a=t?12:16,s=t?10:11.556,u=(0,o.standardSvgAttrs)({width:s+2*n,height:a+2*i,ariaHidden:!0});return(0,r.merge)(u.style,this.props.svgStyle),u}}])&&u(t.prototype,n),d&&u(t,d),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.Component)},(e,t,n)=>{n(3);var i=n(2),r=n(72),o=n(150),a=n(73),s=n(177),u=n(56),l=n(58);function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(f,e);var t,n,o,l=h(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this,e)).video=e,t.unbinds.push(e.on("play",(function(){return t.renderProgressIndicator()})),e.on("playrejected",(function(){return t.renderProgressIndicator()})),e.on("playpending",(function(){return t.renderProgressIndicator()})),e.on("up",(function(){return t.renderProgressIndicator()})),e.on("end",(function(){return t.renderProgressIndicator()}))),t}return t=f,(n=[{key:"boundedScale",value:function(){var e=this.props.scale;return Math.min(Math.max(e,.8),2)}},{key:"destroy",value:function(){(0,u.destroyControl)(this)}},{key:"isVisible",value:function(){return this._isVisible}},{key:"mount",value:function(e){this.rootElem=e,this.renderProgressIndicator()}},{key:"onControlPropsUpdated",value:function(e){e.containerWidth!==this.props.containerWidth&&this.renderProgressIndicator()}},{key:"rootStyle",value:function(){return{bottom:0,left:0,position:"absolute",width:"100%"}}},{key:"renderProgressIndicator",value:function(){var e=function(e,t){if(null!=e&&t)return 100*e/t}((0,r.getLastTime)(this.video.hashedId()),this.video.duration());this._isVisible=e>0&&this.video.shouldResume()&&(0,s.default)(this.video),(0,i.render)((0,i.h)("div",{style:this.rootStyle()},(0,i.h)(a.default,{color:this.video.playerColor(),isVisible:this._isVisible,percentWatched:e,scale:this.boundedScale()})),this.rootElem)}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.default);y.handle="playbarlessProgressIndicator",y.type="foreground",y.sortValue=1800,y.shouldMount=function(e){return!e.isAudio()&&!1!==e._opts.resumable&&"v1"!==e._opts.version&&!e._opts.controlsVisibleOnLoad},(0,l.defineControl)(y)},(e,t,n)=>{n.d(t,{default:()=>r});var i=(0,n(11).cachedDetect)();const r=function(e){var t=e.lastPlayInfo(),n=Date.now()-t.issuedAt,r=!t.source||t.rejectedAt,o=t.isPending&&"user-event"===t.source&&n<2e3,a=e._opts&&"reset"===e._opts.endVideoBehavior&&"ended"===e.state(),s=t.isPending&&"non-user-event"===t.source&&!e.isMuted()&&(!1===e._opts.silentAutoPlay||null==e._opts.silentAutoPlay)&&(i.iphone||i.ipad||i.safari);return e.up()&&("beforeplay"===e.state()||a)&&(r||s||o||a)}},(e,t,n)=>{var i=n(3),r=n(5),o=n(2),a=n(28),s=n(179),u=n(150),l=n(56),c=n(58),d=n(27);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=b(e);if(t){var r=b(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,d.defineTranslations)("en-US",{SETTINGS_PLAYBACK_RATE_TITLE:"Speed",SETTINGS_QUALITY_AUTO:"Auto",SETTINGS_QUALITY_TITLE:"Quality",SETTINGS_TITLE:"Settings",SETTINGS_HIDE_MENU:"Hide settings menu",SETTINGS_SHOW_MENU:"Show settings menu"});var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(c,e);var t,n,i,u=v(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),_(g(t=u.call(this,e)),"onKeyUp",(function(e){var n=t.video.getInputContext(),i=["player-mouseover","player-focus","playbar-focus","background-focus"].indexOf(n)>=0;if(!(0,r.formInputIsFocused)()&&i&&t.getPlaybackRateEnabled()){if(">"===e.key){var o=Math.min(t.video.playbackRate()+.25,2);t.video.playbackRate(o)}if("<"===e.key){var a=Math.max(t.video.playbackRate()-.25,.5);t.video.playbackRate(a)}}})),_(g(t),"loadMenuCode",(function(){return Promise.all([(0,a.dynamicImport)("interFontFace.js"),(0,a.dynamicImport)("vulcanV2Player/video/controls/SettingsControl/dialog.js")]).then((function(e){var n=h(e,2)[1];if(!t.renderMenuImpl){var i=n.renderMenu,r=n.onSelect;t.renderMenuImpl=i.bind(g(t)),t.onSelect=r.bind(g(t))}}))})),_(g(t),"onMouseEnterButton",(function(){t.loadMenuCode()})),t.unbinds.push(e.on("playbackratechange",(function(){t.menuElem&&t.renderMenu()})),e.on("qualitychange",(function(){t.menuElem&&t.renderMenu()})),e.on("playerlanguagechange",(function(){t.menuElem&&t.renderMenu()})),(0,r.elemBind)(document,"keyup",t.onKeyUp)),e.hasData((function(){if(null==t._isQualityEnabled){var n=e._opts.qualityControl;t._isQualityEnabled=!0===n||null==n}if(null==t._isPlaybackRateEnabled){var i=e._opts.playbackRateControl;t._isPlaybackRateEnabled=!0===i||null==i}})),t}return t=c,(n=[{key:"destroy",value:function(){(0,l.destroyControl)(this)}},{key:"translate",value:function(e){return(0,d.getTranslation)(this.props.playerLanguage.code,"SETTINGS_".concat(e))}},{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"mountButton",value:function(e){this.buttonRoot=e,this.renderButton()}},{key:"mountDialog",value:function(e){return this.dialogRoot=e,this.renderMenu()}},{key:"renderButton",value:function(){this.setButtonLabel(this.translate("TITLE")),this.updateButtonLabel(),(0,o.render)((0,o.h)(s.default,{onMouseEnter:this.onMouseEnterButton}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot]}},{key:"renderMenu",value:function(){var e=this;if(this.dialog.isOpen()){var t=this.loadMenuCode().then((function(){e.renderMenuImpl()}));return this.loading(new Promise((function(e){t.then(e)}))),t}}},{key:"onControlPropsUpdated",value:function(e){this.dialog&&this.dialog.isOpen()&&this.renderMenu(),e.playerLanguage&&this.props.playerLanguage.code!==e.playerLanguage.code&&(this.renderButton(),this.renderMenu())}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("HIDE_MENU")):this.setButtonLabel(this.translate("SHOW_MENU")))}},{key:"setQualityEnabled",value:function(e){var t=this;return this._isQualityEnabled=e,this.loadMenuCode().then((function(){t.dialog.isOpen()&&t.renderMenuImpl()}))}},{key:"getPlaybackRateEnabled",value:function(){return Boolean(this._isPlaybackRateEnabled)}},{key:"setPlaybackRateEnabled",value:function(e){var t=this;return this._isPlaybackRateEnabled=e,this.loadMenuCode().then((function(){t.dialog.isOpen()&&t.renderMenuImpl()}))}}])&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(u.default);w.shouldMount=function(e){var t=e._opts,n=t.settingsControl,i=t.qualityControl,r=t.playbackRateControl;return!e.isLiveMedia()&&(!1!==n&&(!0===i||null==i||!0===r||null==r))},w.handle="settingsButton",w.type="control-bar-right",w.sortValue=200,w.isVideoChrome=!0,(0,c.defineControl)(w),i.default.SettingsControl=w},(e,t,n)=>{n.d(t,{default:()=>h});var i=n(2),r=n(24);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}const h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(h,e);var t,n,c,d=l(h);function h(){return a(this,h),d.apply(this,arguments)}return t=h,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){return(0,i.h)("svg",o({},(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),{onMouseEnter:this.props.onMouseEnter}),(0,i.h)("g",null,(0,i.h)("g",null,(0,i.h)("path",{d:"M28.3,16.4h-1.9c-0.4,0-0.8-0.3-0.9-0.7l-0.4-1.1c-0.2-0.3-0.1-0.8,0.2-1.1l1.3-1.3c0.3-0.3,0.3-0.7,0-1l-0.4-0.4c-0.3-0.3-0.7-0.3-1,0l-1.3,1.3c-0.3,0.3-0.8,0.3-1.1,0.1l-1.1-0.5c-0.4-0.1-0.7-0.5-0.7-0.9V9.1c0-0.4-0.3-0.7-0.7-0.7h-0.6c-0.4,0-0.7,0.3-0.7,0.7v1.7c0,0.4-0.3,0.8-0.7,0.9l-1.2,0.5c-0.3,0.2-0.8,0.1-1.1-0.2l-1.2-1.2c-0.3-0.3-0.7-0.3-1,0l-0.4,0.4c-0.3,0.3-0.3,0.7,0,1l1.2,1.2c0.3,0.3,0.3,0.8,0.1,1.1l-0.5,1.2c-0.1,0.4-0.5,0.7-0.9,0.7h-1.6c-0.4,0-0.7,0.3-0.7,0.7v0.6c0,0.4,0.3,0.7,0.7,0.7h1.6c0.4,0,0.8,0.3,0.9,0.7l0.5,1.2c0.2,0.3,0.1,0.8-0.1,1.1l-1.2,1.2c-0.3,0.3-0.3,0.7,0,1l0.4,0.4c0.3,0.3,0.7,0.3,1,0l1.2-1.2c0.3-0.3,0.8-0.3,1.1-0.2l1.2,0.5c0.4,0.1,0.7,0.5,0.7,0.9v1.7c0,0.4,0.3,0.7,0.7,0.7h0.6c0.4,0,0.7-0.3,0.7-0.7V24c0-0.4,0.3-0.8,0.7-0.9l1.1-0.5c0.3-0.2,0.8-0.1,1.1,0.1l1.3,1.3c0.3,0.3,0.7,0.3,1,0l0.4-0.4c0.3-0.3,0.3-0.7,0-1l-1.3-1.3C25,21,25,20.5,25.1,20.2l0.4-1.1c0.1-0.4,0.5-0.7,0.9-0.7h1.9c0.4,0,0.7-0.3,0.7-0.7v-0.6C29,16.7,28.7,16.4,28.3,16.4z M23.8,17.5c0,2.2-1.8,3.9-3.9,3.9c-2.2,0-3.9-1.8-3.9-3.9s1.7-3.9,3.9-3.9C22.1,13.6,23.8,15.3,23.8,17.5z"}))))}}])&&s(t.prototype,n),c&&s(t,c),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.Component)},(e,t,n)=>{n(3);var i=n(2),r=n(150),o=n(175),a=n(56),s=n(58),u=n(27);function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var m=new WeakSet,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,n,r,s=d(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),v(f(t=s.call(this,e)),m),y(f(t),"renderButton",(function(){t.buttonRoot&&(t.setButtonLabel(function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(f(t),m,b).call(f(t))),(0,i.render)((0,i.h)("div",{style:t.wrapperStyle()},(0,i.h)(o.default,{isPlaying:"playing"===t.video.state(),noPadding:!0,svgStyle:{verticalAlign:"top"}})),t.buttonRoot),t.reactMounts=[t.rootElem])})),y(f(t),"onClickButton",(function(){var e=t.video;"playing"===e.state()?e.pause():e.play()})),y(f(t),"onKeyDownButton",(function(e){32!==e.keyCode&&13!==e.keyCode||(e.__handledAlready=!0)})),t.unbinds.push(e.on("play",t.renderButton),e.on("pause",t.renderButton),e.on("end",t.renderButton)),e.isLiveMedia()?(t.disabledButton=!0,e.ready((function(){t.disabledButton=!1,t.renderButton()}))):t.disabledButton=!1,t}return t=h,(n=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(e){(e.playerLanguage&&this.props.playerLanguage.code!==e.playerLanguage.code||this.props.scale!==e.scale)&&this.renderButton()}},{key:"mountButton",value:function(e){this.buttonRoot=e,this.renderButton()}},{key:"wrapperStyle",value:function(){var e=this.props.scale,t="playing"===this.video.state(),n=t?"".concat(10*e,"px 0 ").concat(11*e,"px 0"):"".concat(10*e,"px 0 ").concat(9*e,"px 0");return{boxSizing:"border-box",height:"100%",marginLeft:t?0:"".concat(1*e,"px"),padding:n,position:"relative",width:"100%"}}},{key:"translate",value:function(e){return(0,u.getTranslation)(this.props.playerLanguage.code,"PLAY_BUTTON_".concat(e))}},{key:"pcfButtonWidth",value:function(){return 40}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(r.default);function b(){return this.disabledButton?this.translate("LIVE_NOT_STARTED"):"playing"===this.video.state()?this.translate("TITLE_WHEN_PLAYING"):this.translate("TITLE_WHEN_NOT_PLAYING")}g.shouldMount=function(e){var t=e.embedOptions().smallPlayButton,n=!0===t||null==t,i=e._impl.ui&&e._impl.ui.shouldShowMoreDefaultValue();return n&&i},g.handle="smallPlayButton",g.type="control-bar-left",g.sortValue=100,(0,s.defineControl)(g)},(e,t,n)=>{n(3);var i=n(2),r=n(58),o=n(150),a=n(182),s=n(56),u=n(27);function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}(0,u.defineTranslations)("en-US",{STATUS_BAR_EMBED_CODE_COPIED:"Embed Code is now copied to your clipboard!"});var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,n,r,o=d(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=o.call(this,e))._isVisible=!1,t}return t=h,n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"flash",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;this._isVisible=!0,this.renderMenu(this.translate(e)),setTimeout((function(){t.hide()}),n)}},{key:"translate",value:function(e){return(0,u.getTranslation)(this.props.playerLanguage.code,"STATUS_BAR_".concat(e))}},{key:"hide",value:function(){this._isVisible=!1,(0,i.render)((0,i.h)("nothing",null),this.rootElem)}},{key:"renderMenu",value:function(e){this._isVisible&&((0,i.render)((0,i.h)(a.default,{message:e}),this.rootElem),this.reactMounts=[this.rootElem])}}],n&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.default);p.handle="statusBar",p.type="background",(0,r.defineControl)(p)},(e,t,n)=>{n.d(t,{default:()=>f});var i=n(2);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=l(e);if(t){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(c,e);var t,n,u,l=s(c);function c(){return r(this,c),l.apply(this,arguments)}return t=c,(n=[{key:"styles",value:function(){return{background:"rgba(0,0,0,.3)",boxShadow:"none",cursor:"pointer",display:"flex",alignItems:"center",fontSize:h(this),lineHeight:d(this),padding:"0 ".concat(10*this.props.scale,"px"),width:"100%",height:"30px",color:"#fff",position:"absolute",justifyContent:"center"}}},{key:"render",value:function(){return(0,i.h)("div",{style:this.styles()},this.props.message)}}])&&o(t.prototype,n),u&&o(t,u),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.Component),d=function(e){return"".concat(function(e){return 34*e.props.scale}(e),"px")},h=function(e){return"".concat(14*e.props.scale,"px")};const f=c},(e,t,n)=>{n(3);var i=n(2),r=n(150),o=n(184),a=n(177),s=n(56),u=n(58);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l.apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(f,e);var t,n,r,u=h(f);function f(e){var t,n,r,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),t=u.call(this,e),n=p(t),a=function(e){var n=t.video,r=n.lastPlayInfo(),a=Date.now()-r.issuedAt,s=n.embedOptions().thumbnailAltText;t._isVisible=t.shouldShow(),(0,i.render)((0,i.h)(o.default,l({},t.props,{backgroundColor:"transparent"===n.embedOptions().wmode?"transparent":void 0,elemRef:function(e){return t.thumbnailElem=e},images:t.thumbnailAssets,isVisible:t.shouldShow(),onDisplay:e,hashedId:t.video.hashedId(),swatchEnabled:!n._opts.stillUrl&&t._swatchEnabled,uiHasRendered:t.video._impl.ui.hasRendered(),fitStrategy:t.video._opts.fitStrategy,thumbnailAltText:s})),t.rootElem),t._isVisible&&(t._hasRenderedVisible=!0),t._isVisible&&a<2e3&&setTimeout((function(){t._destroyed||t.renderThumbnail()}),2e3-a+1),t.reactMounts=[t.rootElem]},(r="renderThumbnail")in n?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,t.unbinds.push(e.on("play",(function(){t._hasPlayed=!0,t.renderThumbnail()})),e.on("playrejected",(function(){t.renderThumbnail()})),e.on("playpending",(function(){t.renderThumbnail()})),e.on("up",t.renderThumbnail),e.on("end",t.renderThumbnail)),t._swatchEnabled=e._opts.swatchEnabled?e._opts.swatchEnabled:e._embedContainer.querySelector(".wistia_swatch"),t}return t=f,(n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"mount",value:function(e){var t=this;if(this.rootElem=e,this.thumbnailAssets=this.thumbnailAssets||this.video.thumbnailAssets(),!this.shouldShow())return Promise.resolve();var n=new Promise((function(e){setTimeout(e,1e3)})),i=new Promise((function(e){t.renderThumbnail(e),t.video.embedded((function(){t.__destroyed||t.renderThumbnail()}))}));return Promise.race([i,n])}},{key:"shouldShow",value:function(){return Boolean((0,a.default)(this.video)&&this.video.thumbnailAssets().length)}},{key:"onControlPropsUpdated",value:function(e){var t=this;this._hasRenderedVisible&&["videoWidth","videoHeight","playerLanguage"].some((function(n){return t.props[n]!==e[n]}))&&this.renderThumbnail()}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(r.default);v.shouldShow=function(){return(0,a.default)(this.video)},v.shouldMount=function(e){return!e._opts.spherical},v.handle="thumbnail",v.type="background",v.sortValue=1e3,(0,u.defineControl)(v)},(e,t,n)=>{n.d(t,{default:()=>y});var i=n(6),r=n(2),o=n(29),a=n(185);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s.apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(y,e);var t,n,d,f=c(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),p(h(t=f.call(this,e)),"afterTwoSeconds",(function(){t._displayed||1!==t.state.normalThumbOpacity||t.setState({normalThumbOpacity:0})})),p(h(t),"onDisplayNormalThumb",(function(){t.setState({normalThumbOpacity:1}),t._displayed=!0,t.onDisplay&&t.onDisplay()})),t.state={normalThumbOpacity:e.isVisible?1:0},t.onDisplay=e.onDisplay,t}return t=y,(n=[{key:"componentWillReceiveProps",value:function(e){!this.onDisplay&&e.onDisplay&&(this.onDisplay=e.onDisplay)}},{key:"render",value:function(){this.props.isVisible&&(this._hasRenderedVisible=!0);var e={backgroundColor:this.props.backgroundColor,fitStrategy:this.props.fitStrategy,isVisible:this.props.isVisible,stillSnap:this.props.stillSnap,stretchLimit:this.props.stretchLimit,videoHeight:this.props.videoHeight,videoWidth:this.props.videoWidth,thumbnailAltText:this.props.thumbnailAltText},t=(0,i.assign)({},e,{ariaHidden:!0,images:[{url:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1Host)(),"/embed/medias/").concat(this.props.hashedId,"/swatch")}]}),n=(0,i.assign)({},e,{onDisplay:this.onDisplayNormalThumb,images:this.props.images});return(0,r.h)("div",{ref:this.props.elemRef},this.props.swatchEnabled&&this._hasRenderedVisible?(0,r.h)(a.default,s({},t,{wrapperStyle:this.swatchWrapperStyle()})):null,this._hasRenderedVisible?(0,r.h)(a.default,s({},n,{wrapperStyle:this.normalThumbWrapperStyle()})):null)}},{key:"componentDidMount",value:function(){setTimeout(this.afterTwoSeconds,2e3)}},{key:"normalThumbWrapperStyle",value:function(){var e=this.props.swatchEnabled&&this.props.uiHasRendered&&1===this.state.normalThumbOpacity?"opacity 3s":"";return{height:"100%",left:0,opacity:this.state.normalThumbOpacity,position:"naturalHeight"===this.props.fitStrategy?"relative":"absolute",top:0,transition:e,width:"100%"}}},{key:"swatchWrapperStyle",value:function(){return{filter:"blur(5px)",height:"100%",left:0,position:"naturalHeight"===this.props.fitStrategy?"relative":"absolute",top:0,width:"100%"}}}])&&u(t.prototype,n),d&&u(t,d),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.Component)},(e,t,n)=>{n.d(t,{default:()=>f});var i=n(186),r=n(2),o=n(6),a=n(5),s=n(27);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}(0,s.defineTranslations)("en-US",{THUMBNAIL_VIDEO_THUMBNAIL:"Video Thumbnail"});const f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,d,h=c(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=h.call(this,e)).initialState=t.state={isLoaded:!1,isDisplaying:!1},t.onDisplay=t.props.onDisplay,t}return t=f,(n=[{key:"componentWillReceiveProps",value:function(e){e.images!==this.props.images&&(clearTimeout(this.loadTimeout),this._sortedImages=null,this.loadTimeout=null,this.setState({isLoaded:!1,isDisplaying:!1})),!this.onDisplay&&e.onDisplay&&(this.onDisplay=e.onDisplay)}},{key:"render",value:function(){var e=this,t=void 0!==this.props.thumbnailAltText?this.props.thumbnailAltText:this.translate("VIDEO_THUMBNAIL");return(0,r.h)("div",{style:this.wrapperStyle(),class:"w-css-reset"},(0,r.h)("img",{class:"w-css-reset",srcset:this.props.images.length>1?this.srcSet():null,src:this.bestSrc(),style:this.imgStyle(),alt:t,ref:function(t){return e.imgElem=t},"aria-hidden":this.props.ariaHidden?"true":null}))}},{key:"translate",value:function(e){return(0,s.getTranslation)(this.props.playerLanguage,"THUMBNAIL_".concat(e))}},{key:"componentDidMount",value:function(){this.setStateBasedOnImgStatus(),this.maybeCallOnDisplay(this.initialState)}},{key:"componentDidUpdate",value:function(e,t){this.setStateBasedOnImgStatus(),this.maybeCallOnDisplay(t)}},{key:"maybeCallOnDisplay",value:function(){this.onDisplay&&this.state.isDisplaying&&!this.calledOnDisplay&&(this.calledOnDisplay=!0,this.onDisplay())}},{key:"setStateBasedOnImgStatus",value:function(){var e=this,t=this.state,n=this.imgElem;t.isLoaded||(n.onload||(n.onload=function(){(0,a.elemInDom)(n)&&e.setState({isLoaded:!0})}),n.complete&&this.setState({isLoaded:!0})),!t.isDisplaying&&t.isLoaded&&this.setState({isDisplaying:!0})}},{key:"wrapperStyle",value:function(){var e=this.state.isDisplaying&&this.props.isVisible;return(0,o.assign)({},this.props.wrapperStyle,{display:this.state.isLoaded&&!e?"none":"block"})}},{key:"baseStyle",value:function(){var e=this.props.fitStrategy;return"cover"===e?this.coverStyle():"contain"===e?this.containStyle():"fill"===e?this.fillStyle():"naturalHeight"===e?this.naturalHeightStyle():"modernContain"===e?this.modernContainStyle():this.containStyle()}},{key:"imgStyle",value:function(){var e=this.state.isDisplaying&&this.props.isVisible;return(0,o.assign)(this.baseStyle(),{clip:e?"auto":"rect(0,0,0,0)",display:this.state.isLoaded&&!e?"none":"block"})}},{key:"modernContainStyle",value:function(){return{height:"100%",objectFit:"contain",position:"absolute",width:"100%",top:0,left:0}}},{key:"containStyle",value:function(){if(!this.imgElem)return{height:"100%",left:0,position:"absolute",top:0,width:"100%"};var e,t,n=this.props,i=n.videoWidth,r=n.videoHeight,o=i/r,a=this.imgElem.naturalWidth/this.imgElem.naturalHeight;!1===n.stillSnap?(e=i,t=r):o>a?(t=r,e=Math.round(t*a)):o<=a&&(e=i,t=Math.round(e/a));var s=Math.max(0,r-t),u=Math.max(0,i-e),l=Math.round(s/2),c=Math.round(u/2),d=l,h=c,f=l,p=c;2*f<=this.stretchLimit()&&(f=0,d=0,t=r),2*p<=this.stretchLimit()&&(p=0,h=0,e=i);var y=this.props.backgroundColor||"#000";return{borderTop:"".concat(d,"px solid ").concat(y),borderBottom:"".concat(f,"px solid ").concat(y),borderLeft:"".concat(p,"px solid ").concat(y),borderRight:"".concat(h,"px solid ").concat(y),boxSizing:"content-box",height:"".concat(t,"px"),left:0,position:"absolute",top:0,webkitTouchCallout:"none",width:"".concat(e,"px")}}},{key:"coverStyle",value:function(){return{height:"100%",objectFit:"cover",position:"absolute",width:"100%"}}},{key:"fillStyle",value:function(){return{height:"100%",objectFit:"fill",position:"absolute",width:"100%"}}},{key:"naturalHeightStyle",value:function(){return{width:"100%",position:"relative"}}},{key:"bestSrc",value:function(){return(0,i.bestImage)(this.props.images,{videoWidth:this.props.videoWidth,videoHeight:this.props.videoHeight}).url}},{key:"srcSet",value:function(){var e=this.sortedImages();return 0===e.length&&(e=[(0,i.blankImage)(this.props.videoWidth,this.props.videoHeight)]),e.map((function(e){return"".concat(e.url," ").concat(e.width,"w")})).join(", ")}},{key:"sortedImages",value:function(){return this._sortedImages||(this._sortedImages=(0,i.sortedImages)(this.props.images)),this._sortedImages}},{key:"stretchLimit",value:function(){var e=this.props.stretchLimit;return null!=e?e:10}}])&&u(t.prototype,n),d&&u(t,d),Object.defineProperty(t,"prototype",{writable:!1}),f}(r.Component)},(e,t,n)=>{n.d(t,{bestImage:()=>r,blankImage:()=>o,sortedImages:()=>a});var i=n(29),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a(e);if(0===n.length)return o(t.videoWith,t.videoHeight);var i=t.videoWidth,r=(window.devicePixelRatio||1)*i;if(r<=n[0].width)return n[0];for(var s=0;s<n.length;s++){var u=n[s];if(u.width>=r)return u}return n[n.length-1]},o=function(e,t){return{height:t,url:"https://".concat((0,i.eV1HostWithPort)(),"/assets/images/blank.gif"),width:e}},a=function(e){return e.map((function(e){return e.aspect=e.width/e.height,e}))}},(e,t,n)=>{n(3);var i=n(97),r=n(5),o=n(2),a=n(11),s=n(28),u=n(27),l=n(58),c=n(56),d=n(188),h=n(150);function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=(0,a.cachedDetect)();(0,u.defineTranslations)("en-US",{VOLUME_TITLE_WHEN_MUTED:"Unmute",VOLUME_TITLE_WHEN_UNMUTED:"Mute"});var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(v,e);var t,n,a,h=y(v);function v(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),b(m(t=h.call(this,e)),"loadSliderCode",(function(){return(0,s.dynamicImport)("vulcanV2Player/video/controls/VolumeSliderControl/VolumeSliderControl.js").then((function(e){(0,l.defineControl)(e.VolumeSliderControl)}))})),b(m(t),"onClickButton",(function(){_.touchScreen||t.toggleMute()})),b(m(t),"onFocusInButton",(function(){t._isFocused=!0,t.video.enterInputContext("volume-button-focus"),t.loadSliderCode()})),b(m(t),"onFocusOutButton",(function(){t._isFocused=!1,t.video.exitInputContext("volume-button-focus")})),b(m(t),"onMouseEnter",(function(){t.props.anyDialogOpen?t.timeoutForOpenSlider=setTimeout((function(){t.openSlider()}),300):t.openSlider()})),b(m(t),"onMouseLeave",(function(){clearTimeout(t.timeoutForOpenSlider),t._isFocused=!1,t.video.controls.volumeSlider&&t.video.controls.volumeSlider.hide()})),b(m(t),"openSlider",(function(){t._isFocused=!0,t.loadSliderCode().then((function(){t._isFocused&&t.video.controls.volumeSlider.mounted.then((function(){t.video.controls.volumeSlider.show()}))}))})),b(m(t),"onKeyUp",(function(e){if(!(0,r.formInputIsFocused)()&&!e.wistiaPlayerHandled){var n=t.video,o=n.getInputContext();"background-focus"!==o&&"player-mouseover"!==o&&"player-focus"!==o&&"volume-button-focus"!==o&&"volume-slider-focus"!==o||77===e.keyCode&&(n.isMuted()?(n.unmute(),(0,i.setViewerPreference)("muted",void 0)):(n.mute(),(0,i.setViewerPreference)("muted",!0)))}})),b(m(t),"onKeyDown",(function(e){if(!(0,r.formInputIsFocused)()&&!e.wistiaPlayerHandled){var n=t.video,o=n.getInputContext();if("player-mouseover"===o||"player-focus"===o||"volume-button-focus"===o||"volume-slider-focus"===o){var a=e.keyCode,s=0;if(38===a?s=1:40===a&&(s=-1),1===s){e.preventDefault();var u=e.shiftKey?.01:.1;n.volume(n.volume()+u),(0,i.setViewerPreference)("volume",n.volume())}else if(-1===s){e.preventDefault();var l=e.shiftKey?.01:.1;n.volume(n.volume()-l),(0,i.setViewerPreference)("volume",n.volume())}}}})),t.video=e,t.unbinds.push(e.on("volumechange",(function(){t.buttonRoot&&t.renderButton()})),(0,r.elemBind)(document,"keyup",t.onKeyUp),(0,r.elemBind)(document,"keydown",t.onKeyDown)),t}return t=v,(n=[{key:"destroy",value:function(){(0,c.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(e){e.playerLanguage&&this.props.playerLanguage.code!==e.playerLanguage.code&&this.renderButton()}},{key:"mountButton",value:function(e){this.buttonRoot=e,this.renderButton()}},{key:"renderButton",value:function(){this.buttonRoot&&(this.setButtonLabel(this.video.isMuted()?this.translate("TITLE_WHEN_MUTED"):this.translate("TITLE_WHEN_UNMUTED")),(0,o.render)((0,o.h)(d.default,{volume:this.video.isMuted()?0:this.video.volume()}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot])}},{key:"translate",value:function(e){return(0,u.getTranslation)(this.props.playerLanguage.code,"VOLUME_".concat(e))}},{key:"getButtonTitle",value:function(){return 0===this.video.volume()?"Unmute":"Mute"}},{key:"toggleMute",value:function(){var e=this.video;e.isMuted()?(e.unmute(),(0,i.setViewerPreference)("muted",void 0)):(e.mute(),(0,i.setViewerPreference)("muted",!0))}}])&&f(t.prototype,n),a&&f(t,a),Object.defineProperty(t,"prototype",{writable:!1}),v}(h.default);w.shouldMount=function(e){var t=e._opts.volumeControl;return!(!0!==t&&null!=t||_.iphone||_.ipad||_.android)},w.handle="volumeButton",w.type="control-bar-right",w.sortValue=100,(0,l.defineControl)(w)},(e,t,n)=>{n.d(t,{default:()=>h});var i=n(2),r=n(24);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var d="opacity 100ms";const h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(h,e);var t,n,l,c=u(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=c.call(this,e)).state={volume:e.volume},t}return t=h,n=[{key:"waveCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.volume;return e>.66?2:e>.33?1:e>0?0:-1}},{key:"shouldComponentUpdate",value:function(e){return this.waveCount()!==this.waveCount(e.volume)}},{key:"render",value:function(){var e={fill:"none",stroke:"#ffffff","stroke-line-cap":"round","stroke-miterlimit":"10"};return(0,i.h)("svg",(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),(0,i.h)("g",{style:this.speakerGroupStyle()},(0,i.h)("g",null,(0,i.h)("path",{d:"M13.8,14.2c-0.5,0.5-1.4,0.8-2,0.8h-1.6C9.5,15,9,15.5,9,16.2v1.6c0,0.7,0.5,1.2,1.2,1.2h1.6c0.7,0,1.6,0.4,2,0.8l2.3,2.3c0.5,0.5,0.8,0.3,0.8-0.4v-9.6c0-0.7-0.4-0.8-0.8-0.4L13.8,14.2z"})),(0,i.h)("g",null,(0,i.h)("path",o({},e,{"stroke-width":"2",d:"M22,11.7c0,0,1.1,2.5,1.1,5s-1.1,5-1.1,5",style:this.wave1Style()})),(0,i.h)("path",o({},e,{"stroke-width":"2",d:"M25.8,9.2c0,0,1.7,3.8,1.7,7.5c0,3.7-1.7,7.5-1.7,7.5",style:this.wave2Style()}))),(0,i.h)("g",{style:this.waveXStyle()},(0,i.h)("line",o({},e,{"stroke-width":"1.8102",x1:"19.2",y1:"15",x2:"23.2",y2:"19"})),(0,i.h)("line",o({},e,{"stroke-width":"1.8102",x1:"19.2",y1:"19",x2:"23.2",y2:"15"})))))}},{key:"speakerGroupStyle",value:function(){return{transform:"translateX(".concat(this.positioningOffset(),"px)"),transition:"transform 100ms"}}},{key:"positioningOffset",value:function(){var e=this.waveCount();return 0==e?7:e<2?3:1.25}},{key:"waveXStyle",value:function(){return{opacity:this.waveCount()<0?1:0,transition:d}}},{key:"wave1Style",value:function(){return{opacity:this.waveCount()>=1?1:0,transition:d}}},{key:"wave2Style",value:function(){return{opacity:this.waveCount()>=2?1:0,transition:d}}}],n&&a(t.prototype,n),l&&a(t,l),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.Component)},(e,t,n)=>{n(3);var i=n(2),r=n(28),o=n(150),a=n(190),s=n(58);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},u.apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,n,o,s=d(h);function h(e){var t,n,i,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),t=s.call(this,e),n=f(t),r=function(e){t.video.setAriaLiveText(e)},(i="setAriaLiveText")in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,t.video=e,t.undbinds=[],t.undbinds.push(t.video.on("play",(function(){t.renderLiveStreamStatus()})),t.video.on("pause",(function(){t.renderLiveStreamStatus()})),t.video.on("end",(function(){t.renderLiveStreamStatus()})),t.video.on("widthchange",(function(){t.renderLiveStreamStatus()})),t.video.on("playerlanguagechange",(function(){t.renderLiveStreamStatus()}))),t.video.ready((function(){t.renderLiveStreamStatus()})),t}return t=h,(n=[{key:"onControlPropsUpdated",value:function(e){e.controlsAreVisible!==this.props.controlsAreVisible&&this.renderLiveStreamStatus()}},{key:"mount",value:function(e){var t=this;return this.rootElem=e,(0,r.dynamicImport)("interFontFace.js").then((function(){t.renderLiveStreamStatus(),t.reactMounts=[t.rootElem]}))}},{key:"renderLiveStreamStatus",value:function(){var e,t=null;null!==(e=this.video._mediaData.liveStreamEventDetails)&&void 0!==e&&e.scheduledFor&&(t=new Date(this.video._mediaData.liveStreamEventDetails.scheduledFor)),(0,i.render)((0,i.h)(a.default,u({videoState:this.video.state(),videoReady:this.video.ready(),scheduledFor:t,setAriaLiveText:this.setAriaLiveText},this.props)),this.rootElem)}}])&&l(t.prototype,n),o&&l(t,o),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.default);y.handle="liveStreamStatusOverlay",y.type="foreground",y.sortValue=500,y.shouldMount=function(e){return e.isLiveMedia()},(0,s.defineControl)(y)},(e,t,n)=>{n.d(t,{default:()=>g});var i=n(2),r=n(191),o=n(22),a=n(65),s=n(192),u=n(27);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function d(e,t){var n=e.toLocaleString(navigator.language,{month:"short",day:"numeric",year:"numeric"}),i=e.toLocaleString(navigator.language,{hour:"numeric",minute:"numeric",timeZoneName:"short"});return"".concat(n," ").concat((0,u.getTranslation)(t,"LIVE_STREAM_STATUS_SCHEDULED_FOR_TIME_SEPARATOR")," ").concat(i)}function h(e){var t=e.state;return(0,i.h)("div",{style:{backgroundColor:"live"===t?"#fa4040":"",borderRadius:"50%",width:"12px",height:"12px",marginRight:"4px"}})}(0,u.defineTranslations)("en-US",{LIVE_STREAM_STATUS_COUNTDOWN:"Stream begins in",LIVE_STREAM_STATUS_LIVE:"Live",LIVE_STREAM_STATUS_LIVE_ARIA:"The stream is now live",LIVE_STREAM_STATUS_MINUTES:"minutes",LIVE_STREAM_STATUS_SCHEDULED_FOR:"Scheduled for",LIVE_STREAM_STATUS_SCHEDULED_FOR_ARIA:"The stream is scheduled for",LIVE_STREAM_STATUS_SCHEDULED_FOR_TIME_SEPARATOR:"at",LIVE_STREAM_STATUS_SECONDS:"seconds",LIVE_STREAM_STATUS_STREAM_ENDED:"The stream has ended",LIVE_STREAM_STATUS_WAITING_FOR_HOST:"Waiting for host to begin",LIVE_STREAM_STATUS_WAITING_FOR_HOST_ARIA:"Waiting for host to begin live stream"});var f={initial:"idle",states:{idle:{on:{READY:"live",NOT_READY:"beforeStream",START_COUNTDOWN:"countdown",PAST_SCHEDULE:"waitingForHost"}},beforeStream:{on:{PAST_SCHEDULE:"waitingForHost",READY:"live",START_COUNTDOWN:"countdown"}},countdown:{on:{PAST_SCHEDULE:"waitingForHost",READY:"live"}},waitingForHost:{on:{READY:"live",END:"ended"}},live:{on:{END:"ended"}},ended:{}}};function p(e){var t=e.children,n=e.scale,r=e.show;return(0,i.h)("div",{className:"w-css-reset",style:{left:0,position:"absolute",top:0,display:"flex",opacity:r?1:0,transition:"opacity 200ms",margin:"".concat(v({base:12,scale:n}),"px 0 0 ").concat(v({base:12,scale:n}),"px")}},t)}function y(e,t){var n,i=null===(n=f.states[e].on)||void 0===n?void 0:n[t.type];return void 0===i?e:i}function v(e){var t=e.scale,n=e.base,i=2*n;return Math.min(i,Math.max(0,t*n))}function m(e){var t=e.children,n=e.scale;return(0,i.h)("div",{className:"w-live-status",style:{backgroundColor:"rgba(11, 13, 14, 0.7)",padding:"".concat(v({base:8,scale:n}),"px ").concat(v({base:12,scale:n}),"px"),display:"flex",color:"#fff",alignItems:"center",borderRadius:"4px",fontFamily:o.interFontFamily,fontSize:"".concat(v({base:14,scale:n}),"px")}},t)}const g=function(e){var t=this,n=e.controlsAreVisible,o=e.playerLanguage,c=e.scale,v=e.scheduledFor,g=e.videoReady,b=e.videoState,_=l((0,r.useState)(new Date),2),w=_[0],O=_[1],k="playing"!==b||n,P=l((0,r.useReducer)(y,f.initial),2),T=P[0],S=P[1];(0,r.useEffect)((function(){"ended"===b?S({type:"END"}):g?S({type:"READY"}):!function(e){return!!e&&Date.now()<e.getTime()}(v)?S(function(e){return!!e&&(0,a.getSecondsRemaining)(e,new Date)>600}(v)?{type:"END"}:{type:"PAST_SCHEDULE"}):S(function(e){return!!e&&(0,a.getSecondsRemaining)(new Date,e)<3600}(v)?{type:"START_COUNTDOWN"}:{type:"NOT_READY"})}),[w,g,b]),(0,r.useEffect)((function(){t.props.setAriaLiveText(E())}),[T]),(0,r.useEffect)((function(){if("countdown"===T){var e=(0,a.getSecondsRemaining)(new Date,v),n=Math.ceil(e),i=Math.ceil(e/60),r=e/60,o="";i%5==0?o="".concat(C("COUNTDOWN")," ").concat(i," ").concat(C("MINUTES")):r&&n%5==0&&(o="".concat(C("COUNTDOWN")," ").concat(n," ").concat(C("SECONDS"))),t.props.setAriaLiveText(o)}}),[w]),(0,s.useInterval)((function(){return O(new Date)}),"live"===T||"ended"===T?null:1e3);var E=function(){switch(T){case"live":return C("LIVE_ARIA");case"ended":return C("STREAM_ENDED");case"waitingForHost":return C("WAITING_FOR_HOST_ARIA");case"beforeStream":return"".concat(C("SCHEDULED_FOR_ARIA")," ").concat(d(v,o.code))}},C=function(e){return(0,u.getTranslation)(o.code,"LIVE_STREAM_STATUS_".concat(e))};return(0,i.h)(p,{scale:c,show:k},(0,i.h)(m,{scale:c},"live"===T&&(0,i.h)(h,{state:"live"}),function(){switch(T){case"live":return C("LIVE");case"ended":return C("STREAM_ENDED");case"waitingForHost":return C("WAITING_FOR_HOST");case"beforeStream":return"".concat(C("SCHEDULED_FOR")," ").concat(d(v,o.code));case"countdown":return"".concat(C("COUNTDOWN")," ").concat((0,a.flexibleDuration)((0,a.getSecondsRemaining)(new Date,v)))}}()))}},(e,t,n)=>{n.d(t,{useEffect:()=>b,useReducer:()=>g,useRef:()=>_,useState:()=>m});var i,r,o,a,s=n(2),u=0,l=[],c=[],d=s.options.__b,h=s.options.__r,f=s.options.diffed,p=s.options.__c,y=s.options.unmount;function v(e,t){s.options.__h&&s.options.__h(r,e,u||t),u=0;var n=r.__H||(r.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:c}),n.__[e]}function m(e){return u=1,g(C,e)}function g(e,t,n){var o=v(i++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):C(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){r.u=!0;var a=r.shouldComponentUpdate;r.shouldComponentUpdate=function(e,t,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var r=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(r=!0)}})),!(!r&&o.__c.props===e)&&(!a||a.call(this,e,t,n))}}return o.__N||o.__}function b(e,t){var n=v(i++,3);!s.options.__s&&E(n.__H,t)&&(n.__=e,n.i=t,r.__H.__h.push(n))}function _(e){return u=5,w((function(){return{current:e}}),[])}function w(e,t){var n=v(i++,7);return E(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function O(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(T),e.__H.__h.forEach(S),e.__H.__h=[]}catch(t){e.__H.__h=[],s.options.__e(t,e.__v)}}s.options.__b=function(e){"function"!=typeof e.type||e.__m||null===e.__?e.__m||(e.__m=e.__&&e.__.__m?e.__.__m:""):e.__m=(e.__&&e.__.__m?e.__.__m:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),r=null,d&&d(e)},s.options.__r=function(e){h&&h(e),i=0;var t=(r=e.__c).__H;t&&(o===r?(t.__h=[],r.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=c,e.__N=e.i=void 0}))):(t.__h.forEach(T),t.__h.forEach(S),t.__h=[])),o=r},s.options.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===s.options.requestAnimationFrame||((a=s.options.requestAnimationFrame)||P)(O)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==c&&(e.__=e.__V),e.i=void 0,e.__V=c}))),o=r=null},s.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(T),e.__h=e.__h.filter((function(e){return!e.__||S(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.options.__e(n,e.__v)}})),p&&p(e,t)},s.options.unmount=function(e){y&&y(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{T(e)}catch(e){t=e}})),n.__H=void 0,t&&s.options.__e(t,n.__v))};var k="function"==typeof requestAnimationFrame;function P(e){var t,n=function(){clearTimeout(i),k&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);k&&(t=requestAnimationFrame(n))}function T(e){var t=r,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),r=t}function S(e){var t=r;e.__c=e.__(),r=t}function E(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function C(e,t){return"function"==typeof t?t(e):t}},(e,t,n)=>{n.d(t,{useInterval:()=>r});var i=n(191);function r(e,t){var n=(0,i.useRef)(e);(0,i.useEffect)((function(){n.current=e}),[e]),(0,i.useEffect)((function(){if(null!==t){var e=setInterval((function(){return n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},(e,t,n)=>{n.d(t,{default:()=>d});var i=n(3);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=l(e);if(t){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(c,e);var t,n,u,l=s(c);function c(){return r(this,c),l.apply(this,arguments)}return t=c,(n=[{key:"init",value:function(){var e=this,t=this.impl;t.embedded((function(){"engines/manual_quality_video.js"===t.bestEngine()&&(e.bandwidthTest().isFresh()?(e._supportsHd=e.bandwidthTest().savedResult().supportsHd,e.impl.whenVideoElementInDom().then((function(){e.impl.engine.setAttributes({supportsHd:e._supportsHd})}))):e.hdAsset()&&e.unbinds.push(t.on("play",(function(){return e.doBandwidthTest(),t.unbind}))))}))}},{key:"bandwidthTest",value:function(){return this._bandwidthTest||(this._bandwidthTest=new i.default.BandwidthTest({timeoutLength:4e3,uuid:this.impl.uuid,saveKey:"vulcan.bandwidth"})),this._bandwidthTest}},{key:"doBandwidthTest",value:function(){var e=this,t=this.impl;t.info("doBandwidthTest"),this._endBandwidthTestEarly||(this._endBandwidthTestEarly=function(){t.info("_endBandwidthTestEarly"),e.bandwidthTest().endEarly(),i.default.Metrics.videoCount(t,"player/bandwidth_test/ended_early")});var n=["seek","pause","end","switched-to-asset-without-load"];n.forEach((function(n){e.unbinds.push(t.on(n,e._endBandwidthTestEarly))})),this._failBandwidthTestOnWaiting||(this._failBandwidthTestOnWaiting=function(){return t.info("_failBandwidthTestOnWaiting"),e.bandwidthTest().fail(),i.default.Metrics.videoCount(t,"player/bandwidth_test/failed"),t.unbind}),this.unbinds.push(t.on("waiting",this._failBandwidthTestOnWaiting)),this._endBandwidthTestOnTime=function(){t.info("_endBandwidthTestOnTime"),e._supportsHd=e.bandwidthTest().supportsHd(),t.engine.setAttributes({supportsHd:!0}),e._failBandwidthTestOnWaiting&&t.unbind("waiting",e._failBandwidthTestOnWaiting),e._endBandwidthTestEarly&&n.forEach((function(n){t.unbind(n,e._endBandwidthTestEarly)})),i.default.Metrics.videoCount(t,"player/bandwidth_test/ended_on_time")},this.bandwidthTest().bind("ended",this._endBandwidthTestOnTime),this.bandwidthTest().start()}},{key:"supportsHd",value:function(){return!!this.hdAsset()&&(null==this._supportsHd||this._supportsHd)}},{key:"hdAsset",value:function(){if(this._hdAsset)return this._hdAsset;var e=this.impl;return this._hdAsset=e.playableAssetInRange({width:[980,e._opts.maxHdWidth||2e3],sortBy:"width desc, bitrate desc"}),this._hdAsset}}])&&o(t.prototype,n),u&&o(t,u),Object.defineProperty(t,"prototype",{writable:!1}),c}(n(194).PlayerBehavior);c.handle="bandwidthTest";const d=c},(e,t,n)=>{n.d(t,{PlayerBehavior:()=>o});var i=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.impl=t,this.unbinds=[],this.namedUnbinds={}}var t,n,o;return t=e,(n=[{key:"addNamedUnbind",value:function(e,t){this.namedUnbinds[e]&&this.namedUnbinds[e](),this.namedUnbinds[e]=t}},{key:"removeNamedUnbind",value:function(e){this.namedUnbinds[e]&&(this.namedUnbinds[e](),delete this.namedUnbinds[e])}},{key:"destroy",value:function(){for(var e in this.unbinds instanceof Array&&this.unbinds.map((function(e){return e()})),this.namedUnbinds)i(this.namedUnbinds,e)&&this.namedUnbinds[e].map((function(e){return e()}));this.unbinds=[],this.namedUnbinds={},this.impl=null,this._destroyed=!0}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},(e,t,n)=>{n.d(t,{default:()=>k});var i=n(3),r=n(96),o=n(42),a=n(5),s=n(72),u=n(26),l=n(39),c=n(57),d=n(6),h=n(43),f=n(28);function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=_(e);if(t){var r=_(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(O,e);var t,n,g,_=m(O);function O(){var e;p(this,O);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return w(b(e=_.call.apply(_,[this].concat(n))),"onFocusIn",(function(){var t=!(0,u.isMouseDownRecently)();e.impl&&e.impl.isKeyboardFocused(t)})),w(b(e),"updateBackgroundColor",(function(){var t=e.impl;if(t.videoWrapper&&!t._replacing&&t.embedded()){var n=t.ui&&t.ui.isChromeless()&&("non-user-event"===t.lastPlayInfo().source||t._opts.autoPlay)&&t.isMuted();if("transparent"!==t._opts.wmode&&!n||t.inFullscreen()){var i=t._attrs.playerBackgroundColor||t._opts.backgroundColor||"#000";t.videoWrapper.style.backgroundColor=i||"#000"}else t.videoWrapper.style.backgroundColor="transparent"}})),w(b(e),"updateStartPosition",(function(){var t,n=e.impl,i="beforeplay"===n.state(),r="user-event"===(null===(t=n.lastPlayInfo())||void 0===t?void 0:t.source),o=n.shouldResume()&&i&&r;if(n.engine&&!o)n.engine.updateStartPosition(-1);else if(o){var a=(0,s.getLastTime)(n.hashedId());n.time(a,{lazy:!0})}})),e}return t=O,(n=[{key:"init",value:function(){this.unbinds.push(this.impl.on("playerbackgroundcolorchange",this.updateBackgroundColor),this.impl.publicApi.on("transitiondone",this.updateBackgroundColor),this.impl.on("playpending",this.updateStartPosition))}},{key:"embed",value:function(e){var t=this,n=this.impl,i=n&&n._opts.oldImpl;n.oldImpl=i||e,i&&i!==e?(this.impl.on("engine-initialized",(function(){i.rebuild(),i.fullRebuild()})),n.oldImpl=i):n.oldImpl=e,n.resetStateVariables(),n.videoWrapper=(0,a.elemFromObject)({class:"w-video-wrapper w-css-reset",style:{clip:"rect(0,0,0,0)",height:"100%",position:"absolute",top:0,width:"100%"}}),this.updateBackgroundColor(),(0,a.elemPrepend)(n.implContainer(),n.videoWrapper),n.uiContainer||(n.uiContainer=(0,a.elemFromObject)({class:"w-ui-container",style:{height:"100%",pointerEvents:n._inNativeMode()?"none":"",left:0,position:"absolute",top:0,width:"100%"}}),(0,a.elemAppend)(n.implContainer(),n.uiContainer)),n.uiContainer.addEventListener("focusin",this.onFocusIn),n.up((function(){t._preloadPreference=t.preloadValue(),n._replacing&&(t.initializeEngine(),n.info("embedded"),n.embedded(!0)),n.renderUI().then((function(){try{n.setupBindings()}catch(e){setTimeout((function(){throw e}),0)}(0,c.doTimeout)("".concat(n.uuid,".finish_embedding"),(function(){n.info("embedded"),n.embedded(!0),(0,a.pageLoaded)((function(){t.initializeEngine()}))}),0)}))})),n.down()&&n.embedded(!0)}},{key:"preloadValue",value:function(){var e,t,n=this.impl;if(e=n._opts.autoPlay&&!n.publicApi.popover&&n.looksUp()?"auto":null!=n._opts.preload?n._opts.preload:n._mediaData.preloadPreference,n._mediaData.spherical)if(n._opts._inIframe)t="none";else{var i=[],o=(0,r.wData)("video");for(var a in o)i.push(o[a]);t=i.length>1?"none":"auto"}else if("metadata"===e)t="metadata";else if(!0===e||"auto"===e)t="auto";else if(!1===e||"none"===e)t="none";else{var s=[],u=(0,r.wData)("video");for(var c in u)s.push(u[c]);t=n._opts._inIframe&&top!==parent||n._opts._inIframe&&(0,l.parentFramesLength)()>25||n._opts._inIframe&&(!window._allIframes||window._allIframes.length>2)||!n._opts._inIframe&&s.length>2||n._mediaData.stats&&n._mediaData.stats.loadCount>5e3&&n._mediaData.stats.uniquePlayCount/n._mediaData.stats.uniqueLoadCount<.1?"none":"metadata"}return t}},{key:"rebuild",value:function(){var e=this.impl;return e.info("rebuild"),e.trigger("beforerebuild"),e.embedded((function(){e.embedded(!1),e.ready(!1),e.removeBehaviors(),e.enginePromise=null,e.engine=null,e._oldVideoElem=e.elem(),e._whenVideoElementInDom=null,e.stopStreaming(),(0,a.elemRemove)(e.videoWrapper),e.videoWrapper=null,e.ui=null,e._lastPlayType=null,e._lastPlaySource=null,e._lastPlayIssuedAt=null,e._lastPlayResolvedAt=null,e._lastPlayRejectedAt=null,e.wipeOutstandingAsyncFunctions(),e.setupBehaviors(),e.embed(),e.trigger("afterrebuild")})),e}},{key:"checkForReady",value:function(){var e=this.impl;e._checkDownState(),e.up((function(){e.embedded((function(){e.onDimensionChangeSafe(),e.engine&&e.engine.onReady().then((function(){e.onDimensionChangeSafe(),e.ready(!0)}))}))}))}},{key:"initializeEngine",value:function(){var e=this,t=this.impl;if(t){if(t.enginePromise)return t.enginePromise;var n=t.bestEngine();return t.enginePromise=(0,f.dynamicImport)(n).then((function(n){var i=n.default;if(t.grid)try{t._mediaData=(0,o.mediaDataTransforms)(t._mediaData,t._opts),t.engine=new i(t.videoWrapper,t._mediaData,e.engineAttributes(),t.oldImpl&&t.oldImpl.engine),t.oldImpl=null,t.trigger("engine-initialized"),t.setupBindings(),e.checkForReady()}catch(e){t.error(e)}}))}}},{key:"engineAttributes",value:function(){var e,t,n,r=this.impl;if(r._opts.videoQuality?e=r._opts.videoQuality:(r._opts.videoFoam||r.videoWidth()>=720)&&(e="md"),r._bandwidthTest().isFresh()&&(t=r._bandwidthTest().savedResult().clientKbps),r._mediaData.secondaryMediaData)n=(0,d.clone)(r._mediaData.secondaryMediaData);else if(r._opts.secondaryVideoUrl){var o=(0,d.clone)(r._mediaData),a=r.originalAsset();o.assets=[{container:"mp4",ext:"mp4",codec:"x264",public:!0,url:r._opts.secondaryVideoUrl,height:a.height,width:a.width,type:"mp4_video",display_name:"".concat((0,h.numericSizeSnapped)(a.width,a.height),"p"),status:h.READY,created_at:(new Date).getTime()}],n=o}var u,l=r._opts.layoutTiming;r._opts.twoStroke&&r._opts.twoStroke.layoutTiming&&(l=r._opts.twoStroke.layoutTiming),(r._startPosition||r.shouldResume())&&(u=r._startPosition||(0,s.getLastTime)(r.hashedId())),r.isResumableEnabled()&&((0,s.atOrNearBeginning)(r.hashedId())?i.default.Metrics.videoCount(r,"player/resumable-close-to-beginning"):(0,s.atOrNearEnd)(r.hashedId(),r.duration())&&i.default.Metrics.videoCount(r,"player/resumable-close-to-end"));var c=0===r._opts.trimStart&&-1===r._opts.trimEnd;return{backgroundColor:"transparent"===r._opts.wmode?"transparent":r.playerBackgroundColor(),clipForPoster:r._opts.clipForPoster,clipFrom:r._opts.clipFrom,clipTo:r._opts.clipTo,controls:r._inNativeMode(),cuts:r._opts.cuts,deliveryCdn:r._opts.deliveryCdn,duration:r._mediaData.duration,embedHost:r._opts.embedHost,fitStrategy:r._opts.fitStrategy,hashedId:r.hashedId(),height:r.videoHeight(),hls:r._opts.hls,layoutTiming:l,liveMedia:r.isLiveMedia(),loop:"loop"===r._opts.endVideoBehavior,muted:r._muted,password:r._opts.password,playsinline:!0,preload:this._preloadPreference,qualityMax:r._attrs.qualityMax,qualityMin:r._attrs.qualityMin,savedBandwidth:t,secondaryMediaData:n,silentAutoPlay:r._opts.silentAutoPlay,startPosition:u,trimEnd:c?void 0:r._opts.trimEnd,trimStart:c?void 0:r._opts.trimStart,videoQuality:e,volume:r._volume,width:r.videoWidth()}}}])&&y(t.prototype,n),g&&y(t,g),Object.defineProperty(t,"prototype",{writable:!1}),O}(n(194).PlayerBehavior);O.handle="embed";const k=O},(e,t,n)=>{n.d(t,{default:()=>O});var i=n(3),r=n(11),o=n(13),a=n(57),s=n(20),u=n(5),l=n(105),c=n(194),d=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=(0,r.cachedDetect)(),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(v,e);var t,n,r,c=y(v);function v(){var e;h(this,v);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return b(m(e=c.call.apply(c,[this].concat(n))),"onEnterFullscreen",(function(t){var n=e.impl;t===n.chrome&&(n.info("_onEnterFullscreen"),n.trigger("beforeenterfullscreen"),e._hasBeenInFullscreen=!0,e._inFullscreen=!0,n.notFullscreen(!1),e.injectFullscreenStyles(),n.behaviors.embed.updateBackgroundColor(),n.width((0,u.elemWidth)(window),{fullscreen:!0,dontChangeContainer:!0}),n.height((0,u.elemHeight)(window),{fullscreen:!0,dontChangeContainer:!0}),n.engine&&n.engine.onEnterFullscreen(),n.trigger("enterfullscreen"),n.trigger("enter-fullscreen"))})),b(m(e),"onEnterWebkitFullscreen",(function(t){var n=e.impl;e._hasBeenInFullscreen=!0,e._inFullscreen=!0,e._nativeFullscreen=!0,n.notFullscreen(!1),n.trigger("enterfullscreen"),n.trigger("enter-fullscreen")})),b(m(e),"onCancelFullscreen",(function(){var t=e.impl;e._nativeFullscreen?(e._nativeFullscreen=!1,e._inFullscreen=!1,t.notFullscreen(!0),t.trigger("cancelfullscreen"),t.trigger("cancel-fullscreen")):e._inFullscreen&&(t.info("onCancelFullscreen"),e._inFullscreen=!1,t.notFullscreen(!0),e.removeFullscreenStyles(),t.behaviors.embed.updateBackgroundColor(),t.width(e._widthBeforeFullscreen),t.height(e._heightBeforeFullscreen),t.fit(),t.engine&&t.engine.onLeaveFullscreen(),t.trigger("cancelfullscreen"),t.trigger("cancel-fullscreen"))})),b(m(e),"onOrientationChange",(function(){var t=e.impl;if(e.fullscreenResizeToWindowFlurry(),-90===window.orientation||90===window.orientation){if("playing"!==t.state()||t.engine.isMuted())return;t.requestFullscreen()}else t.cancelFullscreen()})),b(m(e),"fullscreenResizeToWindowFlurry",(function(){var t=e.impl;e.fullscreenResizeToWindow(),[0,50,100,200,300,500,1e3].forEach((function(n){(0,a.doTimeout)("".concat(t.uuid,".fs-resize-flurry-").concat(n),e.fullscreenResizeToWindow,n)}))})),b(m(e),"fullscreenResizeToWindow",(function(){var t=e.impl;if(t.inFullscreen()&&!e._nativeFullscreen){t.debug("fullscreenResizeToWindow");var n=t.width(),i=t.height(),r=(0,u.elemWidth)(window),o=(0,u.elemHeight)(window);n!==r&&t.width(r,{fullscreen:!0,dontChangeContainer:!0}),i!==o&&t.height(o,{fullscreen:!0,dontChangeContainer:!0})}})),b(m(e),"maybeAutoFullscreen",(function(){e.impl.isAudio()||e.impl._inNativeMode()&&!1===e.impl._opts.playsinline&&(0,u.inUserEventContext)()&&!e._hasAutoFullscreened&&(e._hasAutoFullscreened=!0,e.requestFullscreen())})),e}return t=v,(n=[{key:"init",value:function(){var e=this,t=this.impl;this.unbinds.push((0,o.globalOn)("enterfullscreen",this.onEnterFullscreen),(0,o.globalOn)("cancelfullscreen",this.onCancelFullscreen),(0,u.elemBind)(window,"resize",(function(){e.fullscreenResizeToWindowFlurry()})),t.on("playpending",this.maybeAutoFullscreen)),t.whenVideoElementInDom().then((function(){t.engine.bind("webkitbeginfullscreen",e.onEnterWebkitFullscreen),t.engine.bind("webkitendfullscreen",e.onCancelFullscreen)})),this.getIsFullscreenOnRotateToLandscape()&&(window.screen.orientation?this.unbinds.push((0,u.elemBind)(window.screen.orientation,"change",this.onOrientationChange)):this.unbinds.push((0,u.elemBind)(window,"orientationchange",this.onOrientationChange)))}},{key:"injectFullscreenStyles",value:function(){if(!this._fullscreenStyle){document.body.id||(this._docBodyId=(0,s.seqId)("wistia_","_tmp_body_id"),document.body.setAttribute("id",this._docBodyId));var e="\n #".concat(document.body.id,", #").concat(document.body.id," :full-screen-ancestor {\n animation-name: none;\n -webkit-animation-name: none;\n transform: none;\n -webkit-transform: none;\n }\n ");["webkit","moz","ms","o"].forEach((function(t){e+="\n #".concat(document.body.id," :-").concat(t,"-full-screen-ancestor {\n animation-name: none;\n -webkit-animation-name: none;\n transform: none;\n -webkit-transform: none;\n }\n \n\n ")})),this._fullscreenStyle=(0,u.addInlineCss)(this.impl.wrapperElem,e)}}},{key:"removeFullscreenStyles",value:function(){this._fullscreenStyle&&(this._docBodyId&&document.body.id===this._docBodyId&&(document.body.removeAttribute("id"),this._docBodyId=null),(0,u.elemRemove)(this._fullscreenStyle),this._fullscreenStyle=null)}},{key:"requestFullscreen",value:function(){if(!this.impl._opts._inIframe||!/two_stroke/i.test(this.impl.bestEngine())||!_.iphone&&!_.ipad){var e,t=this.impl;if(!t.inFullscreen())if(t.info("requestFullscreen"),this._widthBeforeFullscreen=t.width(),this._heightBeforeFullscreen=t.height(),t.width(t.width()),t._inNativeMode())null===(e=t.engine)||void 0===e||e.requestFullscreen();else if(_.fullscreenEnabled)(0,u.elemRequestFullscreen)(t.chrome);else if(this.getAllowFakeFullscreen())this.enterFakeFullscreen();else if(t.engine){var n;"beforeplay"===t.state()&&(_.iphone||_.ipad)&&t.engine.play().then((function(){return t.engine.pause()})),null===(n=t.engine)||void 0===n||n.requestFullscreen()}}}},{key:"cancelFullscreen",value:function(){var e=this.impl;e.inFullscreen()&&(e.info("cancelFullscreen"),e._inNativeMode()?e.engine.cancelFullscreen():_.fullscreenEnabled?(0,u.elemCancelFullscreen)():this.getAllowFakeFullscreen()?this.cancelFakeFullscreen():e.engine.cancelFullscreen())}},{key:"getAllowFakeFullscreen",value:function(){return!this.impl._opts._inIframe&&_.ios.version>=10&&(this.impl._opts.fakeFullscreen||/two_stroke/i.test(this.impl.bestEngine()))}},{key:"getIsFullscreenOnRotateToLandscape",value:function(){if(!_.touchScreen)return!1;if(_.ios.version>0&&_.ios.version<10)return!1;var e=this.impl._opts.fullscreenOnRotateToLandscape;return null==e||e}},{key:"enterFakeFullscreen",value:function(){var e=this.impl;this._widthBeforeFullscreen=e.width(),this._heightBeforeFullscreen=e.height(),this._inFakeFullscreen=!0,this._chromeParent=e.chrome.parentNode,document.body.appendChild(e.chrome),this._leftOffsetBeforeFullscreen=(0,l.scrollLeft)(),this.onEnterFullscreen(e.chrome),this.setupFakeFullscreenBindings(),(0,u.elemStyle)(e.chrome,{position:"fixed",top:0,left:0,zIndex:2147483647}),(0,l.scrollLeft)(0),e.engine&&e.engine.onEnterFullscreen()}},{key:"setupFakeFullscreenBindings",value:function(){var e=this,t=this.impl;i.default.eventLoop.add("".concat(t.uuid,".fakefullscreen"),100,(function(){e.fullscreenResizeToWindow()})),this._preventDefaultForTouchMove||(this._preventDefaultForTouchMove=function(e){e.preventDefault()}),(0,u.elemRebind)(t.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"cancelFakeFullscreen",value:function(){var e=this.impl;this._inFakeFullscreen=!1,this.onCancelFullscreen(e.chrome),this._chromeParent&&this._chromeParent.appendChild(e.chrome),e.chrome.style.position="",(0,l.scrollLeft)(this._leftOffsetBeforeFullscreen),i.default.eventLoop.remove("".concat(e.uuid,".fakefullscreen")),e.engine&&e.engine.onLeaveFullscreen(),null!=this._preventDefaultForTouchMove&&(0,u.elemUnbind)(e.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"transferStateFrom",value:function(e){var t=this,n=e.behaviors&&e.behaviors.fullscreen;if(n)for(var i in n){if(d(n,i)){var r=n[i];"_"===i[0]&&"function"!=typeof r&&(this[i]=r)}n._inFullscreen&&function(){var e=t.impl;e.notFullscreen((function(){e.width(t._widthBeforeFullscreen),e.height(t._heightBeforeFullscreen)}))}()}}},{key:"inFullscreen",value:function(){return!!this._inFullscreen}},{key:"inNativeFullscreen",value:function(){return!!this._nativeFullscreen}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),v}(c.PlayerBehavior);w.handle="fullscreen",i.default._onFullscreenChange||(i.default._onFullscreenChange=function(){(0,u.fullscreenElement)()?(0,o.globalTrigger)("enterfullscreen",(0,u.fullscreenElement)()):(0,o.globalTrigger)("cancelfullscreen")},i.default._initializers.initFullscreenTriggers=function(){(0,u.elemRebind)(document,"mozfullscreenchange",i.default._onFullscreenChange),(0,u.elemRebind)(document,"webkitfullscreenchange",i.default._onFullscreenChange),(0,u.elemRebind)(document,"MSFullscreenChange",i.default._onFullscreenChange),(0,u.elemRebind)(document,"fullscreenchange",i.default._onFullscreenChange)},i.default._destructors.destroyFullscreenTriggers=function(){(0,u.elemUnbind)(document,"mozfullscreenchange",i.default._onFullscreenChange),(0,u.elemUnbind)(document,"webkitfullscreenchange",i.default._onFullscreenChange),(0,u.elemUnbind)(document,"MSFullscreenChange",i.default._onFullscreenChange),(0,u.elemUnbind)(document,"fullscreenchange",i.default._onFullscreenChange)});const O=w},(e,t,n)=>{n.d(t,{default:()=>f});var i=n(3);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(h,e);var t,n,u,c=s(h);function h(){var e;r(this,h);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return d(l(e=c.call.apply(c,[this].concat(n))),"onPlay",(function(){if(null==e._startedLoadingAt)return e._startedLoadingAt=Date.now(),e.impl.unbind})),d(l(e),"onProgress",(function(){var t=e.impl;if(t.engine.anyBuffered())return e._firstByteReceivedAt=Date.now(),null!=e._startedLoadingAt&&(e._timeToFirstByte=e._firstByteReceivedAt-e._startedLoadingAt),t.unbind})),d(l(e),"onWaiting",(function(t){var n=e.impl,r=n.engine.anyBuffered();!e._noDataFor5Seconds&&t>=5&&!r&&(e._noDataFor5Seconds=!0,i.default.Metrics.videoCount(n,"player/no-data/5-seconds")),!e._noDataFor10Seconds&&t>=10&&!r&&(e._noDataFor10Seconds=!0,i.default.Metrics.videoCount(n,"player/no-data/10-seconds")),!e._noDataFor15Seconds&&t>=15&&!r&&(e._noDataFor15Seconds=!0,i.default.Metrics.videoCount(n,"player/no-data/15-seconds"))})),d(l(e),"onClickedPlayBeforeReady",(function(){i.default.Metrics.videoCount(e.impl,"player/clicked-play-before-ready")})),e}return t=h,(n=[{key:"init",value:function(){var e=this;this.impl.whenVideoElementInDom().then((function(){return e.doInit()}))}},{key:"doInit",value:function(){var e=this.impl;e.engine&&e.engine.getPreload()&&(this._startedLoadingAt=Date.now()),this.unbinds.push(e.on("play",this.onPlay),e.on("progress",this.onProgress),e.on("waiting",this.onWaiting),e.on("clicked-play-before-ready",this.onClickedPlayBeforeReady))}}])&&o(t.prototype,n),u&&o(t,u),Object.defineProperty(t,"prototype",{writable:!1}),h}(n(194).PlayerBehavior);h.handle="metrics";const f=h},(e,t,n)=>{n.d(t,{default:()=>v});var i=n(3),r=n(11),o=n(194);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=(0,r.cachedDetect)(),y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,n,r,o=l(c);function c(){var e;a(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(d(e=o.call.apply(o,[this].concat(n))),"onError",(function(){var t=e.impl,n=t.getMediaElement();if(n&&n.error&&3===n.error.code&&/native_hls_video/.test(e.impl.bestEngine())){var r=t.lastPlayInfo().isPending;t.commandQueueOpen.clearSynchronized();var o=r?"playing":"not-playing";i.default.Metrics.videoCount(t,"player/rebuild-non-hls-on-error/".concat(o)),e.unbinds.push(t.on("play",(function(){return i.default.Metrics.videoCount(t,"player/rebuild-non-hls-on-error/".concat(o)),t.unbind}))),t.publicApi.fullRebuild({hls:!1,autoPlay:r&&!(p.ios.version&&p.ios.version<10.1)})}})),e}return t=c,(n=[{key:"init",value:function(){this.unbinds.push(this.impl.on("error",this.onError))}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.PlayerBehavior);y.handle="playbackErrorHandling";const v=y},(e,t,n)=>{function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=u(e);if(t){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}n.d(t,{ProblemMonitoringBehavior:()=>l});var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(l,e);var t,n,s,u=a(l);function l(){return i(this,l),u.apply(this,arguments)}return t=l,(n=[{key:"init",value:function(){var e=this;this.unbinds=[this.impl.on("waiting",(function(t){t>=5&&e.impl.trigger("problem",{type:"long-buffer",data:{secondsWaiting:t}})})),this.impl.on("error",(function(t){var n=e.impl.getMediaElement().error;e.impl.trigger("problem",{type:"video-error",errorCode:n&&n.code||n,errorMessage:n&&n.message})}))]}}])&&r(t.prototype,n),s&&r(t,s),Object.defineProperty(t,"prototype",{writable:!1}),l}(n(194).PlayerBehavior);l.handle="problemMonitoring"},(e,t,n)=>{n.d(t,{default:()=>v});var i=n(3),r=n(45);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=u(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},s.apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(y,e);var t,n,u,d=c(y);function y(){var e;o(this,y);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return p(h(e=d.call.apply(d,[this].concat(n))),"maybeFireStateAndTimeEvents",(function(){e.fireStateChangedEventsIfChanged(),e.fireTimeChangedEventsIfChanged()})),p(h(e),"onLookChange",(function(t){e.impl.trigger("lookchange",t)})),p(h(e),"onPause",(function(){e.maybeFireStateAndTimeEvents()})),p(h(e),"onPlaying",(function(){e._beforePlay=!1,e._ended=!1,e.maybeFireStateAndTimeEvents()})),p(h(e),"onEnded",(function(){e.maybeFireStateAndTimeEvents()})),p(h(e),"onAudioStreamChanged",(function(){e.impl.trigger("audiostreamchange")})),p(h(e),"onVolumeChange",(function(){var t=e.impl.isMuted();e.impl.trigger("volumechange",e.impl.volume(),t),t!==e._isMuted&&(e._isMuted=t,e.impl.trigger("mutechange",t))})),p(h(e),"onRateChange",(function(){e.impl.trigger("playbackratechange",e.impl.playbackRate()),r.globalEventLoop.interval("".concat(e.impl.uuid,".events"),e.impl._eventLoopDuration)})),p(h(e),"onProgress",(function(t){e.impl.trigger("progress",t)})),p(h(e),"onError",(function(t){e.impl.trigger("error",t)})),p(h(e),"onHlsLevelSwitched",(function(t){e.impl.trigger("hlslevelswitched",t)})),p(h(e),"onSeeking",(function(t){e.impl.trigger("seeking",t),e.engine.bind("seeked",(function(t){return e.impl.trigger("seekcomplete",t),e.engine.unbind}))})),p(h(e),"onCustomWaiting",(function(t){e._waiting=t,e.impl.trigger("waiting",t)})),p(h(e),"onCustomDoneWaiting",(function(t){e._waiting=-1,e.impl.trigger("done-waiting",t)})),p(h(e),"fireTimeChangedEventsIfChanged",(function(){if(!e._destroyed){var t=e.impl,n=!1,i=Date.now(),r=t.time(),o=r!==e._lastTimePosition,a=r-e._lastTimePosition,s=Math.floor(r),u=Math.floor(e._lastTimePosition),l=(i-e._lastClockTime)/1e3,c=t.playbackRate(),d="beforeplay"===t.state()&&r<.3,h=Math.abs(Math.floor(r)-Math.floor(e._lastTimePosition))>1;if(o&&r>=0&&!d){if(e._ended=!1,t.trigger("timechange",r),s!==u){if(Math.abs(a/c-l)<.05&&h){n=!0;for(var f=u+1;f<s;f++)t.trigger("secondchange",f)}t.trigger("secondchange",s)}!e._beforePlay&&!e._ended&&!n&&h&&Math.abs(r-e._lastTimePosition)>t._attrs.seekThreshold&&t.trigger("seek",r,e._lastTimePosition),e._lastTimePosition=r}return e._lastClockTime=i,Promise.resolve()}})),e}return t=y,(n=[{key:"init",value:function(){var e=this;this.resetState(),this.impl.whenVideoElementInDom().then((function(){return e.doInit()}))}},{key:"doInit",value:function(){var e=this,t=this.impl,n=t.engine;this.unbinds.push(n.bind("lookchange",this.onLookChange),n.bind("pause",this.onPause),n.bind("playing",this.onPlaying),n.bind("ended",this.onEnded),n.bind("volumechange",this.onVolumeChange),n.bind("audiostreamchange",this.onAudioStreamChanged),n.bind("ratechange",this.onRateChange),n.bind("progress",this.onProgress),n.bind("custom-waiting",this.onCustomWaiting),n.bind("custom-done-waiting",this.onCustomDoneWaiting),n.bind("error",this.onError),n.bind("hlslevelswitched",this.onHlsLevelSwitched)),r.globalEventLoop.add("".concat(t.uuid,".events"),t._eventLoopDuration,(function(){if(!t.looksDown()){e.fireStateChangedEventsIfChanged(),e.fireTimeChangedEventsIfChanged();var n=t.videoQuality();n!==e._lastQuality&&(t.trigger("qualitychange",n),e._lastQuality=n)}}))}},{key:"destroy",value:function(){r.globalEventLoop.remove("".concat(this.impl.uuid,".events")),s(f(y.prototype),"destroy",this).call(this)}},{key:"resetState",value:function(){this._waiting=-1,this._lastTimePosition=-1,this._beforePlay=!0,this._ended=!1,this._isMuted=this.impl.isMuted(),this._hasPlayed=!1}},{key:"fireStateChangedEventsIfChanged",value:function(){if(!this._destroyed){var e=this.impl,t=e.state();t!==this._lastState&&(e.trigger("statechange",t,this._lastState),"playing"===t&&(this._hasPlayed=!0,this._ended=!1,e.trigger("play",e.lastPlayInfo())),"paused"===t&&e.trigger("pause",e.lastPauseInfo()),"ended"===t&&(this._ended=!0,e.trigger("end"),this.triggerAfterendTimeout()),"ended"!==t&&this.mozillaAtEnd()&&(e.engine.pause(),this._ended=!0,e.trigger("end"),this.triggerAfterendTimeout()),this._lastState=t)}}},{key:"mozillaAtEnd",value:function(){return!this._ended&&i.default.detect.browser.mozilla&&i.default.detect.browser.version<45&&!i.default.detect.edge&&i.default.detect.windows&&this._waiting>=.6&&Math.abs(this.impl.time()-this.impl.duration())<2}},{key:"triggerAfterendTimeout",value:function(){var e=this;setTimeout((function(){e.impl.trigger("afterend")}),0)}}])&&a(t.prototype,n),u&&a(t,u),Object.defineProperty(t,"prototype",{writable:!1}),y}(n(194).PlayerBehavior);y.handle="relayEvents";const v=y},(e,t,n)=>{n.d(t,{default:()=>f});var i=n(72);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(h,e);var t,n,u,c=s(h);function h(){var e;r(this,h);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return d(l(e=c.call.apply(c,[this].concat(n))),"onEnd",(function(){(0,i.setLastTime)(e._hashedId,e.impl.time()),e.destroyResumableKey()})),d(l(e),"onSecondChange",(function(){e._hasPlayed&&((0,i.setLastTime)(e._hashedId,e.impl.time()),e.impl.shouldResume()||e.destroyResumableKey(),null===e._resumableKey&&e.setResumableKeyToEventKey())})),e}return t=h,(n=[{key:"init",value:function(){this._hasPlayed=!1,this._hashedId=this.impl.hashedId(),this._unbinds=[],this._resumableKey=(0,i.getResumableKeyForVideo)(this._hashedId)||null,this.setupBindings(),!this.impl.shouldResume()&&this._resumableKey&&this.destroyResumableKey()}},{key:"destroy",value:function(){this._unbinds.forEach((function(e){"function"==typeof e&&e()})),this._unbinds=[]}},{key:"destroyResumableKey",value:function(){(0,i.setResumableKeyForVideo)(this._hashedId,null),this._resumableKey=null}},{key:"lastTime",value:function(){return(0,i.getLastTime)(this._hashedId)}},{key:"resumableKey",value:function(){return this._resumableKey}},{key:"setupBindings",value:function(){var e=this;this._unbinds.push(this.impl.on("play",(function(){return e._hasPlayed=!0})),this.impl.on("end",this.onEnd),this.impl.on("secondchange",this.onSecondChange));var t=this.impl.on("eventkeychange",(function(){e.initResumableKey(),t()}))}},{key:"setResumableKeyToEventKey",value:function(){var e=this.impl.eventKey();e&&(this._resumableKey=e,(0,i.setResumableKeyForVideo)(this._hashedId,this._resumableKey))}},{key:"initResumableKey",value:function(){this._resumableKey||this.setResumableKeyToEventKey()}}])&&o(t.prototype,n),u&&o(t,u),Object.defineProperty(t,"prototype",{writable:!1}),h}(n(194).PlayerBehavior);h.handle="resumable";const f=h},(e,t,n)=>{n.d(t,{default:()=>H});var i=n(3),r=n(52),o=n(20),a=n(2),s=n(26),u=n(155),l=n(11),c=n(57),d=n(6),h=n(5),f=n(27),p=n(194),y=n(203),v=n(206),m=n(207),g=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};function b(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},w.apply(this,arguments)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function P(){return P="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=T(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},P.apply(this,arguments)}function T(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=D(e)););return e}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=D(e);if(t){var r=D(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return C(this,n)}}function C(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,l.cachedDetect)(),M=function(e){return"control-bar-left"===e||"control-bar-right"===e||"ellipsis"===e||"playbar"==e},R=["above-control-bar","background","control-bar-left","control-bar-right","ellipsis","foreground","left-flyout","playbar","right-flyout"].reduce((function(e,t){return e[t]=!0,e}),{}),I=function(e){return e.pcfButtonWidth?e.pcfButtonWidth():null!=e.constructor.width?e.constructor.width:40},B=function(e){return e.pcfButtonHeight?e.pcfButtonHeight():null!=e.constructor.height?e.constructor.height:34},F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(_,e);var t,n,l,p=E(_);function _(){var e;O(this,_);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return j(A(e=p.call.apply(p,[this].concat(n))),"onBlurButton",(function(t,n){var i=n.constructor.type;M(i)&&(n.__isFocused=!1,e.render())})),j(A(e),"onFocusButton",(function(t,n){var i=n.constructor.type;M(i)&&(n.__isFocused=!0,e.render())})),j(A(e),"onFocusComplete",(function(){e.impl.trigger("focuscomplete")})),j(A(e),"onFocusIn",(function(t){if(e.isMostRecentFocusViaMouse=(0,s.isMouseDownRecently)(),!(0,s.isMouseDownRecently)()&&!e._isMouseDownFromTouch||t.srcElement!==e.layoutRef){e.updateFocusedControl(t.target),e.impl.enterInputContext("player-focus");var n=e.isKeyboardFocused;e.isKeyboardFocused=!((0,s.isMouseDownRecently)()||e._isMouseDownFromTouch),!n&&e.isKeyboardFocused&&(e.impl.trigger("focusin",t),e.maybeToggleControls())}else t.srcElement.blur()})),j(A(e),"onFocusOut",(function(t){e.updateFocusedControl(null),e.impl.exitInputContext("player-focus"),e.isKeyboardFocused?(0,c.doTimeout)("".concat(e.impl.uuid,".maybe_toggle_on_blur"),(function(){var n;document.activeElement&&(0,h.elemIsInside)(document.activeElement,e.layoutRef)||(e.isKeyboardFocused=!1,null===(n=e.impl)||void 0===n||n.trigger("focusout",t),e.maybeToggleControls())}),1e3):(0,c.doTimeout)("".concat(e.impl.uuid,".maybe_toggle_on_blur"),e.maybeToggleControls,50)})),j(A(e),"onKeyDown",(function(t){if(t.target===e.layoutRef){var n=t.keyCode;t.__handledAlready||32!==n&&13!==n||e.togglePlay()}})),j(A(e),"onMouseEnter",(function(t){e.impl.trigger("mouseenter",t),e.isHovering=!0,e.maybeToggleControls(),e.impl.enterInputContext("player-mouseover")})),j(A(e),"onMouseLeave",(function(t){e.impl.trigger("mouseleave",t),e.isHovering=!1,e.maybeToggleControls(),e.impl.exitInputContext("player-mouseover")})),j(A(e),"onMouseMove",(function(t){if(!x.touchScreen&&"beforeplay"!==e.impl.state()){var n=e.lastPageX!==t.pageX||e.lastPageY!==t.pageY;n&&(e.lastMovedMouseAt=Date.now(),e.lastPageX=t.pageX,e.lastPageY=t.pageY),n&&(e.maybeToggleControls(),e.shouldShowControls()&&(clearTimeout(e.maybeToggleControlsTimeout),(0,h.elemIsInside)(t.target,e.backgroundElem)?(e.lastMouseMoveWasFromBackground=!0,e.maybeToggleControlsTimeout=setTimeout(e.maybeToggleControls,e.showControlsTimeout())):(e.lastMouseMoveWasFromBackground=!1,e.maybeToggleControls())))}})),j(A(e),"onClick",(function(t){var n;e.lastMovedMouseAt=Date.now();var r=null===(n=i.default.PopoverV3)||void 0===n?void 0:n._activePopover,o=!(0,s.isMouseDownRecently)();r&&r.setShouldShowFocusOutline(o),e.lastPageX=t.pageX,e.lastPageY=t.pageY,(0,h.elemIsInside)(t.target,e.backgroundElem)?x.touchScreen?(e.isBeforePlayOrReset()?e.impl.play():e.isChromeless()?e.togglePlay():x.ios.version&&x.ios.version<10.1?(e.tappedToHide=!1,e.impl.play()):e._areControlsVisible?e.tappedToHide=!e.tappedToHide:e.tappedToHide=!1,e.maybeToggleControls(),setTimeout(e.maybeToggleControls,e.showControlsTimeout())):t.ctrlKey||(e.togglePlay(),e.impl.isKeyboardFocused(o),e.impl.focus()):"beforeplay"!==e.impl.state()&&(e.tappedToHide=!1,e.maybeToggleControls(),setTimeout(e.maybeToggleControls,e.showControlsTimeout()))})),j(A(e),"onDblClick",(function(t){if(!x.touchScreen&&(0,h.elemIsInside)(t.target,e.backgroundElem)){var n=e.impl;e.impl.isControlEnabled("fullscreenButton")&&(n.inFullscreen()?n.cancelFullscreen():n.requestFullscreen())}})),j(A(e),"onTouchStart",(function(t){t._touchStartFromControlDialog&&(e._touchStartFromControlDialog=!0),e._cancelSwipe=!e.impl.inFullscreen()})),j(A(e),"onSwipe",(function(t,n){if(!e._cancelSwipe){e._swipeCtx=n;var i=e.impl,r=i.height(),o=i.width(),a=n.absYDelta/r,s=n.absXDelta/o;if(n.timeDelta>175&&(a<.02||s>a))return e._cancelSwipe=!0,void(0,h.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:function(){(0,h.elemAnimate)(i.chrome,{transform:""})}});if(a>=.02&&a>s){var u=n.yDelta/r;(0,h.elemStyle)(i.chrome,{transform:"translate(0, ".concat(-1*u*r,"px)")})}}})),j(A(e),"onPinch",(function(t,n){if(e.impl.isControlEnabled("fullscreenButton")){e._pinchCtx=n;var i,r,o=e.impl;e.impl.inFullscreen()?(i=.3,r=2.5):(i=.8,r=2.5),n.pinchScale<1?n.pinchScale*=1+.5*(1-n.pinchScale):n.pinchScale*=1+.25*(n.pinchScale-1);var a=Math.max(i,Math.min(r,n.pinchScale));(0,h.elemStyle)(o.chrome,{transform:"scale(".concat(a,")")})}})),j(A(e),"onTouchEnd",(function(){if(e.impl.isControlEnabled("fullscreenButton")){var t=e._pinchCtx,n=e._swipeCtx;e._pinchCtx=null,e._swipeCtx=null;var i=e.impl;if(t)!i.inFullscreen()&&t.pinchScale>1.5?((0,h.elemStyle)(i.chrome,{transform:""}),i.requestFullscreen()):i.inFullscreen()&&t.pinchScale<.7?((0,h.elemStyle)(i.chrome,{transform:""}),i.cancelFullscreen()):(0,h.elemAnimate)(i.chrome,{transform:"scale(1)"},{time:400,callback:function(){(0,h.elemStyle)(i.chrome,{transform:""})}});else if(n){var r=i.height(),o=i.width(),a=n.absYDelta/r,s=n.absXDelta/o,u=function(){(0,h.elemStyle)(i.chrome,{transform:""})};if(a>.16&&a>s&&Date.now()-n.startedAt<500&&!1===e._touchStartFromControlDialog){e._cancelSwipe=!0;var l=n.yDelta>0?-1:1;(0,h.elemAnimate)(i.chrome,{transform:"translate(0, ".concat(l*r,"px)")},{time:200,callback:function(){i.cancelFullscreen(),u()}})}else e._cancelSwipe=!0,(0,h.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:u})}e._touchStartFromControlDialog=!1}})),j(A(e),"maybeToggleControls",(function(){if(!e._destroyed){var t=e._shouldShowControls;return e._shouldShowControls=e.shouldShowControls(),t!==e._shouldShowControls?e.lastRenderPromise.then((function(){return e.render()})):Promise.resolve()}})),j(A(e),"mountRefsFn",(function(t){(0,d.assign)(e.mountRefs,t)})),j(A(e),"backgroundRefFn",(function(t){e.backgroundElem=t})),e}return t=_,n=[{key:"init",value:function(){var e=this;this.mountPromises=[],this.controls={},this.controlsByType={},this.dialogs=[],this.mountRefs={},this.buttonMountRefs={},this.lastRenderPromise=Promise.resolve(),this.lastMouseMoveWasFromBackground=!0,this._touchStartFromControlDialog=!1,this._ariaLiveText="",(0,f.getDefaultTranslation)().then((function(t){var n=e.impl.publicApi;n&&!n._wasPlayerLanguageSetViaApi&&e.impl.playerLanguage(t.code)})),this.domId||(this.domId=(0,o.seqId)("w-vulcan-v2-"))}},{key:"setupBindings",value:function(){var e=this;this._hasSetupBindings=!0;var t=this.impl;this.unbinds.push(t.on("play",(function(){e.doneWaitingForPlay=!0,null!=e.tappedToHide&&(e.tappedToHide=!1),e.render(),e.maybeToggleControls(),setTimeout(e.maybeToggleControls,e.showControlsTimeout())})),t.on("pause",(function(){x.touchScreen&&(null!=e.tappedToHide&&(e.tappedToHide=!1),e.maybeToggleControls())})),t.on("playrejected",(function(){e.doneWaitingForPlay=!0,e.showVideoWrapper(),e.render()})),t.on("enter-fullscreen",(function(){e._scale=null,e.cachedVideoHeight=null,e.cachedVideoWidth=null,e.render(),e.lastMouseMoveWasFromBackground=!0,e.maybeToggleControls(),(0,c.doTimeout)("".concat(e.impl.uuid,".maybe_toggle_on_fullscreen"),e.maybeToggleControls,e.showControlsTimeout())})),t.on("cancel-fullscreen",(function(){e._scale=null,e.cachedVideoHeight=null,e.cachedVideoWidth=null,e.render(),e.lastMouseMoveWasFromBackground=!0,e.maybeToggleControls(),(0,c.doTimeout)("".concat(e.impl.uuid,".maybe_toggle_on_fullscreen"),e.maybeToggleControls,e.showControlsTimeout())})),t.on("up",(function(){e._scale=null,e.cachedVideoHeight=null,e.cachedVideoWidth=null,e.render()})),t.on("playerlanguagechange",(function(){e.render()})),t.on("playercolorchange",(function(){e.render()})),t.on("popoverhide",(function(){e.render()})),t.on("popovershow",(function(){e.render()})),t.on("widthchange",(function(){e._scale=null,e._isShowingMore=null,e.cachedVideoWidth=null,e.render()})),t.on("heightchange",(function(){e._scale=null,e.cachedVideoHeight=null,e.render()})),i.default.on("controldefined",(function(){e.render()})),(0,h.elemBind)(document,"keyup",(function(n){(0,h.formInputIsFocused)()||"player-mouseover"===t.getInputContext()&&!1!==t._opts.hoverHotkeysEnabled&&32===n.keyCode&&e.togglePlay()})),(0,h.elemBind)(window,"mouseout",(function(t){var n=t.relatedTarget||t.toElement;n&&"HTML"!==n.nodeName||(e.isHovering=!1,e.impl.exitInputContext("player-mouseover"))})),(0,h.elemBind)(document,"touchend",(function(){(0,s.isMouseDown)()&&(e._isMouseDownFromTouch=!0),setTimeout((function(){e._isMouseDownFromTouch=!1,e.render()}),50)})),(0,h.elemBind)(window,"languagechange",(function(){(0,f.getDefaultTranslation)().then((function(t){var n=e.impl.publicApi,i=e.impl.playerLanguage().code!==t.code;n&&!n._wasPlayerLanguageSetViaApi&&i&&e.impl.playerLanguage(t.code)}))}))),t.whenVideoElementInDom().then((function(){e.unbinds.push(e.impl.engine.bind("webkitplaybacktargetavailabilitychanged",(function(){setTimeout((function(){e.render()}),0)})))})),t.whenVideoElementInDom().then((function(){e.unbinds.push(e.impl.engine.bind("audiotracksupdated",(function(){setTimeout((function(){e.render()}),0)})))})),t.whenVideoElementInDom().then((function(){e.unbinds.push(e.impl.engine.bind("livestreamready",(function(){e.impl.play()})))}))}},{key:"render",value:function(){var e=this;if(this.isRendering&&this.lastRenderPromise)return this.queuedRenderPromise||(this.queuedRenderPromise=this.lastRenderPromise.then((function(){return e.render().then((function(){e.queuedRenderPromise=void 0}))}))),this.queuedRenderPromise;var t=this.impl;if(this._destroyed||!t.grid)return new Promise((function(){}));if(this._hasSetupBindings||this.setupBindings(),this.cssResetStyle||(this.cssResetStyle=(0,h.addInlineCss)(t.uiContainer,this.cssResetContent())),null==this.doneWaitingForPlay){var n=t._isPlayPending&&"beforeplay"===t.state();this.doneWaitingForPlay=!n}return this.lastRenderPromise=new Promise((function(n){e.isRendering=!0;var i=e.setupControls(),r=i.newControls,o=i.existingControls;e.setControlProps();var s=null!=e._shouldShowControls?e._shouldShowControls:e.shouldShowControls();e._areControlsVisible=e._shouldShowControls,(0,a.render)((0,a.h)(m.default,{ariaLiveText:e._ariaLiveText,afterRender:r.length>0?function(){e.afterRender(o,r,n)}:null,allMounted:e.allMounted,backgroundRef:e.backgroundRefFn,bottomBarRightInnerRef:function(t){e.bottomBarRightInnerRef=t},color:t.playerColor(),controlBarHeight:e.controlBarHeight(),controlsByType:e.controlsByType,domId:e.domId,doneWaitingForPlay:e.doneWaitingForPlay,inFullscreen:t.inFullscreen(),inNativeMode:e.inNativeMode(),isMouseDownFromTouch:e._isMouseDownFromTouch,isShowingMore:e.isShowingMore(),hasClickedToShowMore:null!=e._isShowingMore,layoutRef:function(t){return e.layoutRef=t},leftControlWidth:e.leftControlWidth,mountRefs:e.mountRefsFn,noMixBlendMode:t._opts.noMixBlendMode,onClick:e.onClick,onDblClick:e.onDblClick,onFocusComplete:e.onFocusComplete,onfocusin:e.onFocusIn,onfocusout:e.onFocusOut,onKeyDown:e.onKeyDown,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseMove:e.onMouseMove,onPinch:e.onPinch,onSwipe:e.onSwipe,onTouchEnd:e.onTouchEnd,onTouchStart:e.onTouchStart,playerLanguage:t.playerLanguage(),rightControlWidth:e.rightControlWidth,shouldShowControls:s,videoHeight:e.videoHeight(),videoState:t.state(),videoWidth:e.videoWidth()}),t.uiContainer),0===r.length&&e.afterRender(o,r,n)})),this.lastRenderPromise}},{key:"afterRender",value:function(e,t,n){var i=this;if(!this._destroyed&&this.impl.grid)try{if(this.runOnControlPropsUpdated(e),this.renderButtons(e),this.mountControls(t),this.didFirstRender)n();else{this.didFirstRender=!0;var r=new Promise((function(e){(0,c.doTimeout)("".concat(i.impl.uuid,".two_seconds_elapsed"),e,2e3)}));this.allMountedPromise=Promise.race([r,Promise.all(this.mountPromises)]).catch((function(e){setTimeout((function(){throw e}),0)})).then((function(){i.allMounted=!0,i.render().then(n)})),0===this.mountPromises.length&&n(),this.doneWaitingForPlay?this.allMountedPromise.then((function(){i.showVideoWrapper()})):((0,c.doTimeout)("".concat(this.impl.uuid,".bail_on_autoplay"),(function(){i.doneWaitingForPlay||(i.doneWaitingForPlay=!0,i.showVideoWrapper(),i.render())}),2e3),this.showVideoWrapperAfterInitialPlay())}}catch(e){setTimeout((function(){throw e}),0)}finally{this.isRendering=!1}else this.isRendering=!1}},{key:"setControlProps",value:function(){var e=this,t=this.impl,n=this.anyDialogOpen(),i=this.isChromeless(),r=this.shouldShowControls(),o=this.isHovering,a=this.isMostRecentFocusViaMouse,s=t.playerLanguage(),u=this.scale(),l=this.videoHeight(),c=this.videoWidth(),f=this.vulcOffset=(0,h.elemOffset)(t.grid.center),p=this.bottomBarOffset={left:f.left,top:f.top+this.videoHeight()-this.controlBarHeight()},y=0;this.getControlsByType("control-bar-left").forEach((function(t){t.__prevProps=t.props,t.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:e.createFocusNextControlFunction(t),height:Math.round(B(t)*u),isMostRecentFocusViaMouse:a,left:y,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:Math.round(I(t))*u},y+=t.props.width})),this.leftControlWidth=y,this.getControlsByType("control-bar-right","ellipsis").forEach((function(t){t.__prevProps=t.props,t.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:e.createFocusNextControlFunction(t),height:Math.round(B(t)*u),isMostRecentFocusViaMouse:a,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:Math.round(I(t))*u}}));var v=0;this.getControlsByType("ellipsis").slice().reverse().forEach((function(e){v+=e.props.width,e.props.left=c-v})),this.ellipsisWidth=v,this.getControlsByType("control-bar-right").slice().reverse().forEach((function(e){v+=e.props.width,e.props.left=c-v})),this.rightControlWidth=v;var m=this.leftControlWidth+(this.ellipsisWidth>0?this.ellipsisWidth:this.rightControlWidth),g=c-m,b=this.getControlsByType("playbar")[0];b&&(b.__prevProps=b.props,b.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:this.createFocusNextControlFunction(b),height:this.controlBarHeight(),isMostRecentFocusViaMouse:a,left:y,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:g}),this.playbarControlWidth=g;var _=this.controlBarHeight();["background","foreground","left-flyout","above-control-bar","right-flyout"].forEach((function(t){(e.controlsByType[t]||[]).forEach((function(t){t.__prevProps=t.props,t.props={anyDialogOpen:n,chromeless:i,controlBarHeight:_,isFocusable:e.allMounted&&e.doneWaitingForPlay,controlsAreVisible:r,focusNextVisibleControl:e.createFocusNextControlFunction(t),isHoveringOnPlayer:o,isMostRecentFocusViaMouse:a,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c}}))}));var w=p.top;this.eachButtonControl((function(e){e.props.top=w})),b&&(0,d.assign)(b.props,{top:w}),this.eachControl((function(t){t.props.leftControlBarWidth=e.leftControlWidth,t.props.rightControlBarWidth=e.rightControlWidth}))}},{key:"runOnControlPropsUpdated",value:function(e){e.forEach((function(e){if("function"==typeof e.onControlPropsUpdated)try{e.onControlPropsUpdated(e.__prevProps||{})}catch(e){setTimeout((function(){throw e}),0)}e.__prevProps=null}))}},{key:"setupControls",value:function(){var e=this,t=this.impl,n=!1,r=[];for(var o in this.controls){var a=this.controls[o];if(R[a.constructor.type]){var s=a.constructor.shouldMount;if(t.isControlDisabled(o)||s&&!s(t.publicApi)){if(a.destroy)try{a.destroy()}catch(e){setTimeout((function(){throw e}),1)}a.__destroyed=!0,delete this.mountRefs[o],delete this.buttonMountRefs[o],delete this.controls[W(a)],n=!0,r.push(a),t.trigger("controldestroyed",o)}}}var u=!1,l=[],c=[],d=function(n){var r=i.default._controlDefinitions[n];if(R[r.type]){var o=null!=e.controls[n],a=!t.isControlDisabled(n)&&(null==r.shouldMount||r.shouldMount(t.publicApi));if(a&&o&&c.push(e.controls[n]),!o&&a){try{var s=e.controls[n]=new r(t);s.mounted=new Promise((function(e){s.__didMount=function(){s.mounted.isResolved=!0,t.trigger("controlmounted",n),e()}})),l.push(s)}catch(e){setTimeout((function(){throw e}),1)}u=!0}}};for(var h in i.default._controlDefinitions)d(h);if(u||n){var f={};for(var p in this.eachControl((function(e){var t=e.constructor.type;null==f[t]&&(f[t]=[]),f[t].push(e)})),f)f[p].sort((function(e,t){return(e.constructor.sortValue||0)-(t.constructor.sortValue||0)}));this.controlsByType=f,t.publicApi.controls=t.controls=this.controls}return{newControls:l,existingControls:c,destroyedControls:r}}},{key:"whenControlMounted",value:function(e){var t=this;return new Promise((function(n){var i=t.controls[e];i&&i.mounted?i.mounted.then((function(){n(i)})):t.impl.bind("controlmounted",(function(i){if(i===e)return n(t.controls[e]),t.impl.unbind}))}))}},{key:"mountControls",value:function(e){var t=this;e.forEach((function(e){var n=e.constructor.type,i=W(e),r=t.mountRefs[i];if(e.nextControlOfSameType||(e.nextControlOfSameType=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;return t.nextControlOfSameType(n)}),e.loading||(e.loading=function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="control-bar-right"===n;return o?t.renderButtonWithDialogLoader(e,i):t.renderHourglassLoader(i,r)}),"control-bar-left"===n||"control-bar-right"===n||"ellipsis"===n)if(e.mountButton){var o=t.renderButtonWithDialog(e);t.mountControl(e,(function(){return e.mountButton(o)}))}else e.mount&&t.mountControl(e,(function(){return e.mount(r)}));else t.mountControl(e,(function(){return e.mount(r)}))}))}},{key:"mountControl",value:function(e,t){try{var n=W(e),i=t();i&&i.then&&i.catch?(i.handle=n,this.mountPromises.push(i),i.then((function(){e.__didMount()}))):e.__didMount()}catch(e){setTimeout((function(){throw e}),0)}}},{key:"renderButtons",value:function(e){var t=this;e.forEach((function(e){e.mountButton&&t.renderButtonWithDialog(e)}))}},{key:"renderButtonWithDialog",value:function(e){var t=this,n=W(e);if(this.impl){try{e.mountDialog&&!e.dialog&&(e.dialog=new v.default(this,{dialogWillOpen:L(e.controlDialogWillOpen,e),dialogOpened:L(e.controlDialogOpened,e),dialogWillClose:L(e.controlDialogWillClose,e),dialogClosed:L(e.controlDialogClosed,e),control:e}),this.dialogs.push(e.dialog))}catch(e){setTimeout((function(){throw e}),0)}if(e.setButtonLabel||(e.setButtonLabel=function(n){e.__buttonLabel=n,t.renderButtonWithDialog(e)}),this.mountRefs[n]){var i,r=!this.impl.publicApi.popover||this.impl.publicApi.popover.isVisible()?0:-1;return(0,a.render)((0,a.h)(y.default,w({},e.props,{buttonLabel:e.__buttonLabel,buttonRef:function(t){e.buttonElement=t},closeDialogOnFocusOut:this.impl._opts.closeDialogsOnFocusOut,color:this.impl.playerColor(),control:e,key:"".concat(n,"_button_and_dialog"),onBlurButton:this.onBlurButton,onFocusButton:this.onFocusButton,rootRef:function(e){return t.buttonMountRefs[n]=e},stubRef:function(e){return i=e},tabIndex:r,videoState:this.impl.state()})),this.mountRefs[n]),i}}}},{key:"renderButtonWithDialogLoader",value:function(e,t){var n=this;return new Promise((function(i){var r="".concat(n.impl.uuid,".loading_dialog_indicator.").concat((0,o.seqId)());(0,c.doTimeout)(r,(function(){n.setLoadingDialogAndRender(e,!0),x.touchScreen?(0,h.elemBind)(document,"touchstart",(function(){try{n.setLoadingDialogAndRender(e,!1)}catch(e){setTimeout((function(){throw e}),0)}return i(),h.elemUnbind})):(0,h.elemBind)(document,"mousedown",(function(){try{n.setLoadingDialogAndRender(e,!1)}catch(e){setTimeout((function(){throw e}),0)}return i(),h.elemUnbind}))}),300),t.then((function(){(0,c.clearTimeouts)(r),n.setLoadingDialogAndRender(e,!1),i()}))}))}},{key:"setLoadingDialogAndRender",value:function(e,t){e.__isDialogLoading=t,this.renderButtonWithDialog(e)}},{key:"renderHourglassLoader",value:function(e,t){var n=this;return new Promise((function(i){var r="".concat(n.impl.uuid,".loading_indicator.").concat((0,o.seqId)());(0,c.doTimeout)(r,(function(){n.controls.loadingHourglass.show(t),x.touchScreen?(0,h.elemBind)(document,"touchstart",(function(){try{n.controls.loadingHourglass.hide()}catch(e){setTimeout((function(){throw e}),0)}return i(),h.elemUnbind})):(0,h.elemBind)(document,"mousedown",(function(){try{n.controls.loadingHourglass.hide()}catch(e){setTimeout((function(){throw e}),0)}return i(),h.elemUnbind}))}),300),e.then((function(){(0,c.clearTimeouts)(r),n.controls.loadingHourglass.hide(),i()}))}))}},{key:"eachControl",value:function(e){for(var t in this.controls)R[this.controls[t].constructor.type]&&e(this.controls[t])}},{key:"eachButtonControl",value:function(e){this.getControlsByType("control-bar-left","control-bar-right","ellipsis").forEach(e)}},{key:"spaceForPlaybar",value:function(){var e=0;return this.eachButtonControl((function(t){e+=I(t)})),this.videoWidth()-e*this.scale()}},{key:"controlBarHeight",value:function(){var e=this.impl;return this.isBeforePlayOrReset()&&!e._opts.controlsVisibleOnLoad||this.isChromeless()?0:Math.round(34*this.scale())}},{key:"isBeforePlayOrReset",value:function(){var e=this.impl;return"beforeplay"===e.state()||e._opts&&"reset"===e._opts.endVideoBehavior&&"ended"===e.state()}},{key:"shouldShowControls",value:function(){var e=this.impl;return!(this.isChromeless()||e.publicApi.popover&&!e.publicApi.popover.isVisible()||(this.isBeforePlayOrReset()&&this.doneWaitingForPlay?null!=e._opts.controlsVisibleOnLoad&&!0!==e._opts.controlsVisibleOnLoad:!this.hasRequestedControlsVisible()&&(x.touchScreen?null==this.tappedToHide||this.tappedToHide||"playing"===e.state()&&!this.anyDialogOpen()&&!(this.lastMovedMouseAt&&Date.now()-this.lastMovedMouseAt<3e3&&this.lastMovedMouseAt>e.lastPlayInfo().issuedAt):!this.anyDialogOpen()&&!this.isKeyboardFocused&&(!e.inFullscreen()&&!this.isHovering||!(this.lastMovedMouseAt&&Date.now()-this.lastMovedMouseAt<3e3)&&this.lastMouseMoveWasFromBackground))))}},{key:"hasRequestedControlsVisible",value:function(){var e=this.impl._visibilityRequests;for(var t in e)if(e[t])return!0;return!1}},{key:"createFocusNextControlFunction",value:function(e){var t=this,n=this.nextVisibleFocusableControl(e);return function(e){var i=n;e&&(i=t.nextVisibleFocusableControl(e));var r=W(i),o=t.mountRefs[r];return t.focusNextVisibleElem(o)}}},{key:"focusNextVisibleElem",value:function(e){for(var t=e||this.impl.uiContainer,n=this.getVisibleFocusableElems(t),i=0,r=0;r<n.length;r++)if(document.activeElement===n[r]){i=r;break}return 0!==n.length&&(i===n.length-1?n[0].focus():n[i+1].focus(),!0)}},{key:"getVisibleFocusableElems",value:function(e){var t=e.querySelectorAll('button, [href], input, select, textarea, [tabindex="0"]');return Array.prototype.slice.call(t).filter((function(e){return!(0,h.elemIsHidden)(e)}))}},{key:"updateFocusedControl",value:function(e){var t=this;this.eachControl((function(n){var i=n.constructor.handle,r=t.mountRefs[i];n.__isFocused=e&&(0,h.elemIsInside)(e,r)})),this.render()}},{key:"showControlsTimeout",value:function(){return this.impl.inFullscreen()||x.touchScreen?3e3:5e3}},{key:"togglePlay",value:function(){var e=this.impl;"playing"===e.state()?e.pause():e.play()}},{key:"showVideoWrapperAfterInitialPlay",value:function(){var e=this;this.impl.ready((function(){var t=[e.impl._playPromise,e.impl._seekPromise].filter((function(e){return null!=e}));return Promise.all(t).then((function(){e.showVideoWrapper()}))}))}},{key:"showVideoWrapper",value:function(){(0,h.elemStyle)(this.impl.videoWrapper,{clip:""})}},{key:"anyDialogOpen",value:function(){for(var e in this.controls){var t=this.controls[e];if(t.dialog&&t.dialog.isOpen())return!0}return!1}},{key:"openDialog",value:function(e){this.dialogs.forEach((function(t){t!==e&&t.close()})),this.render()}},{key:"closeDialog",value:function(e){this.render()}},{key:"resizeDialog",value:function(e){this.render()}},{key:"videoWidth",value:function(){return null!=this.cachedVideoWidth?this.cachedVideoWidth:this.cachedVideoWidth=this.impl.videoWidth()}},{key:"videoHeight",value:function(){return null!=this.cachedVideoHeight?this.cachedVideoHeight:this.cachedVideoHeight=this.impl.videoHeight()}},{key:"scale",value:function(){return null!=this._scale?this._scale:"auto"!==this.impl.controlScaling()?this.impl.controlScaling():this._scale=Math.min(1.3,Math.max(.6,(0,u.controlMultiplierBasedOnVideo)(this.impl)))}},{key:"destroy",value:function(){for(var e in this.buttonMountRefs)g(this.buttonMountRefs,e)&&(0,a.render)((0,a.h)("nothing",null),this.mountRefs[e]);(0,a.render)((0,a.h)("nothing",null),this.impl.uiContainer),this.eachControl((function(e){if(e.destroy)try{e.destroy()}catch(e){setTimeout((function(){throw e}),0)}e.__destroyed=!0})),this.unbinds.forEach((function(e){return e()})),(0,h.elemRemove)(this.cssResetStyle),this.cssResetStyle=null,P(D(_.prototype),"destroy",this).call(this)}},{key:"nextVisibleFocusableControl",value:function(e){var t=this.nextControlOfSameType(e);if(t)return t;for(var n,i=e.constructor.handle,r=Object.keys(this.mountRefs),o=r.indexOf(i)+1,a=r.slice(o),s=0;s<a.length;s++){var u=this.mountRefs[a[s]];if(this.getVisibleFocusableElems(u).length>0){n=a[s];break}}return n||void 0}},{key:"nextControlOfSameType",value:function(e){var t=e.constructor.type,n=this.controlsByType[t],i=n.indexOf(e),r=n[i+1];return"control-bar-left"===t&&(!r&&this.controlsByType.playbar&&(r=this.controlsByType.playbar[0]),!r&&this.controlsByType["control-bar-right"]&&(r=this.controlsByType["control-bar-right"][0]),!r&&this.controlsByType.ellipsis&&(r=this.controlsByType.ellipsis[0])),r}},{key:"hasAnyVideoChromeControls",value:function(){for(var e in this.controls){var t=this.controls[e];if(t.constructor.isVideoChrome||M(t.constructor.type))return!0}return!1}},{key:"hasRequestedChromeless",value:function(){var e=this.impl._visibilityRequests;for(var t in e)if(!1===e[t])return!0;return!1}},{key:"isChromeless",value:function(){return this.inNativeMode()||this.impl._opts.chromeless||this.hasRequestedChromeless()||!this.hasAnyVideoChromeControls()}},{key:"inNativeMode",value:function(){var e=this.impl._opts;return!0===e.nativeMode||x.ipad&&x.ios.version&&x.ios.version<10.1||!1===e.playsinline&&(x.ipad||x.iphone||x.android)&&!/two_stroke/.test(this.impl.bestEngine())}},{key:"cssResetContent",value:function(){var e="#".concat(this.impl.chrome.id," #").concat(this.impl.grid.wrapper.id),t=(0,r.cssResetForSelector)("".concat(e," "),".w-css-reset"),n=(0,r.cssResetForSelector)("".concat(e," .w-css-reset-tree "),"");return"\n ".concat(t,"\n ").concat(n,"\n ").concat(e," .w-css-reset-max-width-none-important{max-width:none!important}\n ").concat(e," .w-css-reset-button-important{border-radius:0!important;color:#fff!important;}\n ")}},{key:"hasRendered",value:function(){return!!this.allMounted}},{key:"shouldShowMoreDefaultValue",value:function(){return(this.rightControlWidth-this.ellipsisWidth)/this.videoWidth()<.35}},{key:"isShowingMore",value:function(){if(this.controlsByType.ellipsis){var e=this.getControlsByType("playbar");return 0===e.length||!(e.filter((function(e){return e.__isFocused})).length>0)&&(!!(this.getControlsByType("control-bar-right").filter((function(e){return e.__isFocused})).length>0)||(null!=this._isShowingMore?this._isShowingMore:this.shouldShowMoreDefaultValue()))}}},{key:"showMore",value:function(){return this._isShowingMore=!0,this.render()}},{key:"showLess",value:function(){return this.dialogs.forEach((function(e){return e.close()})),this._isShowingMore=!1,this.render()}},{key:"getControlsByType",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(1===n.length&&this.controlsByType[n[0]])return this.controlsByType[n[0]];var r=[];return n.forEach((function(t){r.push.apply(r,b(e.controlsByType[t]||[]))})),r}},{key:"setAriaLiveText",value:function(e){this._ariaLiveText=e,this.render()}}],n&&k(t.prototype,n),l&&k(t,l),Object.defineProperty(t,"prototype",{writable:!1}),_}(p.PlayerBehavior);F.handle="ui";var L=function(e,t){return e?e.bind(t):null},W=function(e){return e.constructor.handle};const H=F},(e,t,n)=>{n.d(t,{default:()=>y});var i=n(5),r=n(2),o=n(26),a=n(204),s=n(205);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(y,e);var t,n,d,f=c(y);function y(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),p(h(e=f.call(this)),"onClickButton",(function(){var t=e.props.control;if(t.buttonElement.focus(),!1!==t.toggleDialogOnClick){var n=t.dialog;n&&(n.isOpen()?n.close():n.open())}t.onClickButton&&t.onClickButton()})),p(h(e),"onKeyboardFocusButton",(function(t){if(t.relatedTarget!==e.dummyElem){var n=e.props,i=n.control,r=n.onFocusButton;r&&r(t,i),i.onFocusInButton&&i.onFocusInButton(t)}})),p(h(e),"onBlurButton",(function(t){var n=e.props,r=n.closeDialogOnFocusOut,o=n.control,a=n.onBlurButton,s=o.dialog;setTimeout((function(){var n=document.activeElement;!1===r||!1!==e.state.isMouseInDialog||n&&(0,i.elemIsInside)(n,e.base)||s&&s.close(),a&&a(t,o),o.onFocusOutButton&&o.onFocusOutButton(t)}),150)})),p(h(e),"onKeyDownButton",(function(t){var n=e.props.control;n.onKeyDownButton&&n.onKeyDownButton(t)})),p(h(e),"onMouseEnterDialog",(function(){e.setState({isMouseInDialog:!0})})),p(h(e),"onMouseLeaveDialog",(function(){e.setState({isMouseInDialog:!1})})),p(h(e),"onMouseEnter",(function(t){e._isHovering=!0;var n=e.props.control;n.onMouseEnter&&n.onMouseEnter(t)})),p(h(e),"onMouseLeave",(function(t){e._isHovering=!1;var n=e.props.control;n.onMouseLeave&&n.onMouseLeave(t)})),p(h(e),"onMouseDown",(function(){e._isMouseDown=!0,e._lastClickedElem=document.activeElement,(0,i.elemBind)(document,"mouseup",e.onMouseUp)})),p(h(e),"onMouseUp",(function(){e._isMouseDown=!1,(0,i.elemUnbind)(document,"mouseup",e.onMouseUp)})),p(h(e),"onFocusOut",(function(){setTimeout((function(){var t,n=e.props.control;!1===e.props.closeDialogOnFocusOut||!n.dialog||!n.dialog.isOpen()||document.activeElement&&(0,i.elemIsInside)(document.activeElement,e.base)||(document.activeElement&&document.activeElement.tagName.match(/input|button/i)||!0!==e.state.isMouseInDialog||!(0,o.isMouseDownRecently)()&&!e._isMouseDown?n.dialog.close():null===(t=e._lastClickedElem)||void 0===t||t.focus({preventScroll:!0}))}),500)})),p(h(e),"onBeforeDisplayNone",(function(){var t=e.props.control;if(e.dialogElem&&document.activeElement&&(0,i.elemIsInside)(document.activeElement,e.dialogElem)){var n=t.nextControlOfSameType();n&&n.buttonElement?n.buttonElement.focus():t.buttonElement.focus()}})),p(h(e),"dialogRefFn",(function(t){e.dialogElem=t,e.props.dialogRef&&e.props.dialogRef(t)})),e.state={isMouseInDialog:!1},e}return t=y,(n=[{key:"render",value:function(){var e=this.props.control,t=e.mountDialog&&e.dialog&&e.dialog.hasOpened();return(0,r.h)("div",{class:"w-vulcan-button-wrapper w-css-reset",style:this.wrapperStyle(),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onfocusout:this.onFocusOut,ref:this.props.rootRef},this.renderControlBarButton(),t?this.renderControlBarDialog():null)}},{key:"componentDidMount",value:function(){var e=this.props.buttonRef;e&&e(this.buttonElem)}},{key:"componentDidUpdate",value:function(){var e=this.props.buttonRef;e&&e(this.buttonElem)}},{key:"renderControlBarButton",value:function(){var e=this,t=this.props,n=this.props.control,i=n.mountDialog&&n.dialog&&n.dialog.isOpen();return(0,r.h)(s.default,{buttonLabel:this.props.buttonLabel,disabled:n.disabledButton,buttonRef:function(t){return e.buttonElem=t},controlsAreVisible:this.props.controlsAreVisible,handle:t.control.constructor.handle,isDialogOpen:i,isLoading:t.control.__isDialogLoading||!1,onBlur:this.onBlurButton,onClick:this.onClickButton,onKeyDownButton:this.onKeyDownButton,onKeyboardFocus:this.onKeyboardFocusButton,stubRef:t.stubRef,tabIndex:t.tabIndex,videoState:this.props.videoState})}},{key:"renderControlBarDialog",value:function(){var e=this.props,t=e.control,n=e.videoHeight-34*e.scale;return(0,r.h)(a.default,{canvasHeight:n,canvasWidth:e.videoWidth,dialogRef:this.dialogRefFn,handle:"".concat(t.constructor.handle,"__dialog"),isOpen:t.dialog.isOpen(),left:t.props.left,mount:function(e){return t.mountDialog(e)},newLook:this.props.newLook,onBeforeDisplayNone:this.onBeforeDisplayNone,onMouseEnter:this.onMouseEnterDialog,onMouseLeave:this.onMouseLeaveDialog,resizeRequestedAt:t.dialog._resizeRequestedAt,scale:e.scale,top:t.props.top})}},{key:"wrapperStyle",value:function(){var e=this.props.control;return{display:"inline-block",height:"".concat(e.props.height,"px"),position:"relative",verticalAlign:"top",width:"".concat(e.props.width,"px")}}}])&&u(t.prototype,n),d&&u(t,d),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.Component)},(e,t,n)=>{n.d(t,{default:()=>y});var i=n(5),r=n(2),o=n(45),a=n(20),s=n(55);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(y,e);var t,n,d,f=c(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),p(h(t=f.call(this,e)),"dialogRefFn",(function(e){t.dialogElem=e,t.props.dialogRef&&t.props.dialogRef(e)})),p(h(t),"handleTransitionsAfterRender",(function(){var e=t.props,n=t.state;e.isOpen?(n.isDisplayNone||n.isOpaque&&null==n.widthInButtons)&&t.setState({isDisplayNone:!1},(function(){t.measureUserElem(),t.setState({isOpaque:!0})})):!n.isDisplayNone&&n.isOpaque&&t.setState({isOpaque:!1},(function(){clearTimeout(t.displayNoneTimeout),t.displayNoneTimeout=setTimeout((function(){t.setState({isDisplayNone:!0})}),200)}))})),p(h(t),"measureUserElem",(function(){t.stubElem.style.width="";var e=(0,i.elemWidth)(t.stubElem);t.stubElem.style.width="100%";var n=Math.ceil(e/(40*t.props.scale));n!==t.state.widthInButtons&&t.setState({widthInButtons:n})})),p(h(t),"onTouchStart",(function(e){e._touchStartFromControlDialog=!0})),t.uuid=(0,a.seqId)(),t.state={isDisplayNone:!0,isOpaque:!1,widthInButtons:null},t}return t=y,(n=[{key:"componentWillReceiveProps",value:function(e){this.props.resizeRequestedAt!==e.resizeRequestedAt&&this.setState({widthInButtons:null})}},{key:"componentWillUpdate",value:function(e,t){!0===t.isDisplayNone&&!1===this.state.isDisplayNone&&(this.cancelMeasurementLoop(),e.onBeforeDisplayNone&&e.onBeforeDisplayNone()),!1===t.isDisplayNone&&!0===this.state.isDisplayNone&&this.setupMeasurementLoop()}},{key:"render",value:function(){var e=this;return(0,r.h)("div",{class:"w-anchor w-css-reset",style:this.anchorStyle(),onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onTouchStart:this.onTouchStart},(0,r.h)("div",{class:"w-dialog w-css-reset",style:this.dialogStyle(),ref:this.dialogRefFn},(0,r.h)("div",{class:"w-css-reset",style:this.dialogContentWrapperStyle()},(0,r.h)(s.default,{style:this.stubStyle(),stubRef:function(t){return e.stubElem=t},handle:this.props.handle,class:"w-css-reset"}))))}},{key:"componentDidMount",value:function(){var e=this.props.mount(this.stubElem);e&&e.then&&e.catch?this.mountPromise=e:this.mountPromise=Promise.resolve(),this.mountPromise.then(this.handleTransitionsAfterRender)}},{key:"componentDidUpdate",value:function(){this.mountPromise&&this.mountPromise.then(this.handleTransitionsAfterRender)}},{key:"componentWillUnmount",value:function(){this.cancelMeasurementLoop()}},{key:"anchorStyle",value:function(){return{height:0,left:0,position:"absolute",top:0,width:"100%"}}},{key:"dialogContentWrapperStyle",value:function(){var e=this.state.isOpaque,t=e?48:0;return{opacity:e?1:0,transition:"opacity ".concat(100,"ms ease ").concat(t,"ms")}}},{key:"dialogStyle",value:function(){var e=this.props,t=e.canvasHeight,n=e.canvasWidth,i=e.scale,r=this.state,o=r.isDisplayNone,a=r.isOpaque,s=r.widthInButtons,u=0,l=null;if(null!=s){l=40*s*i;var c=this.props.left+l-n;c>0&&(u=-1*c)}var d=a?0:40;return{background:"rgba(0,0,0,0.7)",bottom:0,color:"#fff",display:o?"none":"block",left:u,lineHeight:"34px",maxHeight:"".concat(t,"px"),opacity:a?1:0,overflowX:"hidden",overflowY:"auto",position:"absolute",transition:"opacity ".concat(120,"ms ease ").concat(d,"ms, transform ").concat(120,"ms ease ").concat(d,"ms"),transform:"scaleY(".concat(a?1:.6,")"),transformOrigin:"center bottom",width:null!=l?"".concat(l,"px"):null}}},{key:"stubStyle",value:function(){return{boxSizing:"border-box",display:"inline-block",height:"100%",verticalAlign:"bottom",width:"100%"}}},{key:"setupMeasurementLoop",value:function(){o.globalEventLoop.add(this.uuid,500,this.measureUserElem)}},{key:"cancelMeasurementLoop",value:function(){o.globalEventLoop.remove(this.uuid)}}])&&u(t.prototype,n),d&&u(t,d),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.Component)},(e,t,n)=>{n.d(t,{default:()=>b});var i=n(70),r=n(2),o=n(11),a=n(26),s=n(6),u=n(55),l=n(53);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c.apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,o.cachedDetect)();const b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(v,e);var t,n,o,p=f(v);function v(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),m(y(t=p.call(this,e)),"onFocus",(function(e){t.setState({isKeyboardFocused:!(0,a.isMouseDownRecently)()}),!(0,a.isMouseDownRecently)()&&t.props.onKeyboardFocus&&t.props.onKeyboardFocus(e)})),m(y(t),"onBlur",(function(e){t.setState({isKeyboardFocused:!1}),t.props.onBlur&&t.props.onBlur(e)})),m(y(t),"onMouseDown",(function(){t.setState({justClicked:!0})})),m(y(t),"onMouseUp",(function(){t.setState({justClicked:!1})})),m(y(t),"onMouseEnter",(function(){t.setState({isHovering:!0})})),m(y(t),"onMouseLeave",(function(){t.setState({isHovering:!1})})),t.interval=void 0,t.state={isKeyboardFocused:!1,isHovering:!1,justClicked:!1,opacity:1},t}return t=v,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.buttonLabel,i={class:"w-vulcan-v2-button w-css-reset w-css-reset-tree w-css-reset-button-important",style:this.buttonStyle(),"aria-label":n,title:n,onClick:function(){t.disabled||t.onClick()},onKeyDown:function(e){t.onKeyDownButton(e)},onMouseDown:!g.touchScreen&&!t.disabled&&this.onMouseDown,onMouseUp:!g.touchScreen&&!t.disabled&&this.onMouseUp,onTouchStart:g.touchScreen&&this.onMouseDown,onTouchEnd:g.touchScreen&&this.onMouseUp,elemRef:function(n){e.buttonElem=n,t.buttonRef&&t.buttonRef(n)},tabIndex:t.tabIndex};return void 0!==t.isDialogOpen&&(i["aria-expanded"]="".concat(t.isDialogOpen)),g.touchScreen||(i.onFocus=this.onFocus,i.onBlur=this.onBlur,i.onMouseEnter=this.onMouseEnter,i.onMouseLeave=this.onMouseLeave),t.disabled&&(i["aria-disabled"]=!0),(0,r.h)(l.default,c({tagName:"button"},i),(0,r.h)(u.default,{class:"w-vulcan-icon-wrapper",style:this.stubStyle(),stubRef:function(t){return e.stubRoot=t},handle:"".concat(this.props.handle,"_icon_wrapper")}))}},{key:"componentDidMount",value:function(){this.props.mount&&this.props.mount(this.stubRoot,this.anchorRoot,this.buttonElem),this.props.stubRef&&this.props.stubRef(this.stubRoot)}},{key:"createLoadingInterval",value:function(){var e=this;this.interval=setInterval((function(){var t=.2===e.state.opacity?.8:.2;e.setState({opacity:t})}),400)}},{key:"clearLoadingInterval",value:function(){clearInterval(this.interval),this.setState({opacity:1})}},{key:"componentWillReceiveProps",value:function(e){!1===this.props.isLoading&&!0===e.isLoading?this.createLoadingInterval():!0===this.props.isLoading&&!1===e.isLoading&&this.clearLoadingInterval()}},{key:"componentDidUpdate",value:function(){(0,s.assign)(this.stubRoot.style,this.stubStyle()),this.props.stubRef&&this.props.stubRef(this.stubRoot)}},{key:"rootStyle",value:function(){return{height:"100%",position:"relative",width:"100%"}}},{key:"buttonStyle",value:function(){var e=this.state,t=e.isHovering,n=e.isKeyboardFocused,r=new i.default("#000"),o=t&&!this.props.disabled?.2:0;return r.alpha(o),{backgroundColor:r.toRgba(),boxShadow:n?"0 0 0 2px #fff inset":"none",cursor:this.props.disabled?"not-allowed":"pointer",height:"100%",position:"relative",transition:"background-color 150ms",width:"100%"}}},{key:"stubStyle",value:function(){var e=this.state.justClicked;return{boxSizing:"border-box",height:"100%",position:"relative",opacity:this.props.disabled?.5:1,transform:"scale(".concat(e?1.2:1.001,")"),transition:"transform 200ms"}}},{key:"getOpacity",value:function(){return this.props.controlsAreVisible?null!=this.state.opacity?this.state.opacity:1:0}}])&&d(t.prototype,n),o&&d(t,o),Object.defineProperty(t,"prototype",{writable:!1}),v}(r.Component)},(e,t,n)=>{n.d(t,{default:()=>u});var i=n(15);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),a(this,"dialogWillOpen",(function(){return new Promise((function(e){if(n.config.dialogWillOpen){var t=n.config.dialogWillOpen();if(t&&t.then)return void t.then(e)}e()}))})),a(this,"doOpen",(function(){return new Promise((function(e){n._isOpen?e():(n._isOpen=!0,n._hasOpened=!0,n.ui.openDialog(n),setTimeout(e,170))}))})),a(this,"dialogOpened",(function(){return new Promise((function(e){n.config.dialogOpened&&n.config.dialogOpened(),e()}))})),a(this,"close",(function(){return n.control.mounted.then((function(){return n.isOpen()?n.dialogWillClose().then(n.doClose).then(n.dialogClosed):Promise.resolve()}))})),a(this,"dialogWillClose",(function(){return new Promise((function(e){if(n.config.dialogWillClose){var t=n.config.dialogWillClose();if(t&&t.then)return void t.then(e)}e()}))})),a(this,"doClose",(function(){return new Promise((function(e){n._isOpen?(n._isOpen=!1,n.ui.closeDialog(n),setTimeout(e,200)):e()}))})),a(this,"dialogClosed",(function(){return new Promise((function(e){n.config.dialogClosed&&n.config.dialogClosed(),e()}))})),this.ui=t,this.config=i,this._isOpen=!1,this._hasOpened=!1,this.control=i.control}var t,n,i;return t=e,(n=[{key:"open",value:function(){var e=this;return this.control.mounted.then((function(){return e.isOpen()?Promise.resolve():e.dialogWillOpen().then(e.doOpen).then(e.dialogOpened)}))}},{key:"isOpen",value:function(){return this._isOpen}},{key:"hasOpened",value:function(){return this._hasOpened}},{key:"resize",value:function(){this._resizeRequestedAt=Date.now(),this.ui.resizeDialog(this)}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();(0,i.bindify)(s.prototype);const u=s},(e,t,n)=>{n.d(t,{default:()=>k});var i=n(70),r=n(2),o=n(11),a=n(6),s=n(5),u=n(26),l=n(53),c=n(55);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=(0,o.cachedDetect)(),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(d,e);var t,n,o,s=y(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),b(m(t=s.call(this,e)),"onFocus",(function(){t.props.isMouseDownFromTouch||(0,u.isMouseDownRecently)()||t.setState({isKeyboardFocused:!0}),t.props.onFocusComplete()})),b(m(t),"onBlur",(function(){t.state.isKeyboardFocused&&t.setState({isKeyboardFocused:!1})})),b(m(t),"onFocusIn",(function(e){t.props.onfocusin&&t.props.onfocusin(e)})),b(m(t),"onFocusOut",(function(e){t.props.onfocusout&&t.props.onfocusout(e)})),b(m(t),"onClick",(function(e){if((0,u.isMouseDownRecently)()&&t.setState({isKeyboardFocused:!1}),O(e)&&e.preventDefault(),t.props.onClick)return t.props.onClick(e)})),b(m(t),"onTouchEnd",(function(e){if(t.props.onTouchEnd)return t.props.onTouchEnd(e)})),t.state={areControlsOpaque:e.shouldShowControls,isKeyboardFocused:!1},t}return t=d,n=[{key:"componentWillReceiveProps",value:function(e){this.handleControlBarAnimation(e)}},{key:"render",value:function(){var e=this;return this.mountRefs={},(0,r.h)(l.default,{class:"w-vulcan-v2 w-css-reset",elemRef:this.props.layoutRef,id:this.props.domId,onBlur:this.onBlur,onClick:this.onClick,onDblClick:this.props.onDblClick,onFocus:this.onFocus,onfocusin:this.props.onfocusin,onfocusout:this.props.onfocusout,onKeyDown:this.props.onKeyDown,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onMouseMove:this.props.onMouseMove,onPinch:this.props.onPinch,onSwipe:this.props.onSwipe,onTouchEnd:this.onTouchEnd,onTouchMove:this.props.onTouchMove,onTouchStart:this.props.onTouchStart,style:this.wrapperStyle()},(0,r.h)("div",{class:"w-vulcan--background w-css-reset",style:this.backgroundStyle(),ref:this.props.backgroundRef},this.renderControlCells("background")),(0,r.h)("div",{"aria-live":"polite",class:"w-vulcan--aria-live w-css-reset","aria-atomic":"true",style:{position:"absolute",left:"-99999em"}},this.props.ariaLiveText),(0,r.h)("div",{class:"w-vulcan-overlays-table w-css-reset",style:this.layoutTableStyle()},(0,r.h)("div",{class:"w-vulcan-overlays--left w-css-reset",style:this.tdLeftStyle()},(0,r.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("left-flyout",{height:"100%",pointerEvents:"auto"}))),(0,r.h)("div",{class:"w-vulcan-overlays--center w-css-reset",style:this.tdCenterStyle()},(0,r.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("above-control-bar",{pointerEvents:"auto"}))),(0,r.h)("div",{class:"w-vulcan-overlays--right w-css-reset",style:this.tdRightStyle()},(0,r.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("right-flyout",{height:"100%",pointerEvents:"auto"})))),(0,r.h)("div",{class:"w-bottom-bar w-css-reset",style:this.bottomBarStyle(),ref:function(t){return e.bottomBar=t}},(0,r.h)("div",{class:"w-bottom-bar-lower w-css-reset",style:this.bottomBarLowerStyle()},(0,r.h)("div",{style:this.leftBgStyle()},(0,r.h)("div",{style:this.blendStyle()}),(0,r.h)("div",{style:this.bgOverlayStyle()})),(0,r.h)("div",{style:this.rightBgStyle()},(0,r.h)("div",{style:this.blendStyle()}),(0,r.h)("div",{style:this.bgOverlayStyle()})),(0,r.h)("div",{class:"w-bottom-bar-left w-css-reset",style:this.bottomBarLeftStyle()},(0,r.h)("div",{class:"w-bottom-bar-left-inner w-css-reset",style:this.bottomBarLeftInnerStyle()},this.renderControlCells("control-bar-left",{display:"inline-block",verticalAlign:"top"}))),(0,r.h)("div",{class:"w-bottom-bar-middle w-css-reset",style:this.bottomBarMiddleStyle()},(0,r.h)("div",{class:"w-bottom-bar-middle-inner w-css-reset",style:this.bottomBarMiddleInnerStyle()},this.renderControlCells("playbar",this.playbarStyle()))),(0,r.h)("div",{class:"w-bottom-bar-right w-css-reset",style:this.bottomBarRightStyle()},(0,r.h)("div",{class:"w-bottom-bar-right-inner-anchor w-css-reset",style:this.bottomBarRightInnerAnchorStyle()},(0,r.h)("div",{class:"w-bottom-bar-right-inner w-css-reset",style:this.bottomBarRightInnerStyle()},this.renderControlCells("control-bar-right",{display:"inline-block",verticalAlign:"top"}))),(0,r.h)("div",{class:"w-ellipsis w-css-reset",style:this.ellipsisStyle()},this.renderControlCells("ellipsis",{display:"inline-block",verticalAlign:"top"}))))),(0,r.h)("div",{class:"w-foreground w-css-reset",style:this.foregroundStyle()},this.renderControlCells("foreground",{pointerEvents:"auto"})))}},{key:"componentDidMount",value:function(){this.props.mountRefs&&this.props.mountRefs(this.mountRefs),this.props.afterRender&&this.props.afterRender()}},{key:"componentDidUpdate",value:function(){var e=this.props.mountRefs,t=this.mountRefs,n=this.props.afterRender;setTimeout((function(){e&&e(t),n&&n()}),1)}},{key:"wrapperStyle",value:function(){return{boxSizing:"border-box",cursor:this.props.inFullscreen&&!this.props.shouldShowControls?"none":"default",direction:"ltr",height:"100%",left:0,pointerEvents:this.props.inNativeMode?"none":"",position:"absolute",visibility:this.props.allMounted&&this.props.doneWaitingForPlay?"visible":"hidden",top:0,width:"100%"}}},{key:"foregroundStyle",value:function(){return{height:"100%",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%"}}},{key:"backgroundStyle",value:function(){return{height:"100%",left:0,pointerEvents:this.props.inNativeMode?"none":"",position:"absolute",top:0,width:"100%"}}},{key:"layoutTableStyle",value:function(){return{display:"table",pointerEvents:"none",position:"absolute",width:"100%"}}},{key:"tdLeftStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdCenterStyle",value:function(){return this.standardCellStyle("100%")}},{key:"tdRightStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdLayoutInnerStyle",value:function(){return{height:"".concat(this.props.videoHeight-this.props.controlBarHeight,"px")}}},{key:"bottomBarStyle",value:function(){var e=this.state.areControlsOpaque,t=this.props.videoState;return{bottom:0,borderCollapse:"collapse",display:e||"beforeplay"!==t?"table":"none",height:"".concat(this.props.controlBarHeight,"px"),pointerEvents:"none",position:"absolute",right:0,tableLayout:"auto",width:"100%"}}},{key:"bottomBarLeftStyle",value:function(){return(0,a.assign)(this.standardCellStyle(0),{opacity:this.getOpacity(),transition:this.getTransition()})}},{key:"bottomBarLeftInnerStyle",value:function(){return this.standardInnerStyle()}},{key:"bottomBarMiddleStyle",value:function(){return(0,a.assign)(this.standardCellStyle("100%"),{opacity:this.getOpacity(),transition:this.getTransition()})}},{key:"bottomBarMiddleInnerStyle",value:function(){var e=this.props,t=e.hasClickedToShowMore,n=e.isShowingMore&&this.isEllipsisShowing(),i=t?150:0;return h(h({},this.standardInnerStyle()),{},{opacity:n?0:1,pointerEvents:n?"none":"auto",transform:"translateY(".concat(n?"-25%":0,")"),transition:"opacity ".concat(i,"ms, transform ").concat(i,"ms")})}},{key:"shouldMixBlendMode",value:function(){return!_.edge&&!1===this.props.noMixBlendMode}},{key:"blendStyle",value:function(){var e=this.props.color;return{background:new i.default(e||"#000").alpha(1).toRgba(),display:this.shouldMixBlendMode()?"block":"none",height:"100%",mixBlendMode:"darken",left:0,opacity:this.getOpacity(),position:"absolute",top:0,transition:this.getTransition(),width:"100%"}}},{key:"bgOverlayStyle",value:function(){var e=this.props.color,t=new i.default(e||"#000").alpha(.7);return this.shouldMixBlendMode()||t.alpha(.85),{background:t.toRgba(),height:"100%",opacity:this.getOpacity(),left:0,position:"absolute",top:0,transition:this.getTransition(),width:"100%"}}},{key:"bottomBarRightStyle",value:function(){return(0,a.assign)(this.standardCellStyle(0),{opacity:this.getOpacity(),transition:this.getTransition(),whiteSpace:"nowrap"})}},{key:"bottomBarRightInnerAnchorStyle",value:function(){var e=h(h({},this.standardInnerStyle()),{},{display:"inline-block",position:"relative",right:0,top:0,verticalAlign:"top"});return this.isEllipsisShowing()&&(e.height=0),e}},{key:"bottomBarRightInnerStyle",value:function(){var e=this.props,t=e.hasClickedToShowMore,n=e.isShowingMore,i=!this.isEllipsisShowing()||n,r=t?150:0;return h(h({},this.standardInnerStyle()),{},{display:"inline-block",opacity:i?1:0,pointerEvents:i?"auto":"none",position:this.isEllipsisShowing()?"absolute":"relative",right:0,top:0,transform:"translateY(".concat(i?0:"25%",")"),transition:"opacity ".concat(r,"ms, transform ").concat(r,"ms")})}},{key:"ellipsisStyle",value:function(){return h(h({},this.standardInnerStyle()),{},{display:this.props.controlsByType.ellipsis?"inline-block":"none"})}},{key:"standardCellStyle",value:function(e){return{display:"table-cell",verticalAlign:"top",position:"relative",width:e}}},{key:"standardInnerStyle",value:function(){return{height:this.props.controlBarHeight,position:"relative",pointerEvents:this.state.areControlsOpaque?"auto":"none",whiteSpace:"nowrap"}}},{key:"renderControlCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.props.controlsByType;return(i[e]||[]).map((function(e){var i=e.constructor.handle;return(0,r.h)(c.default,{class:"w-css-reset",handle:i,key:i,mount:function(e){return t.mountRefs[i]=e},style:n})}))}},{key:"handleControlBarAnimation",value:function(e){var t=this;e.shouldShowControls&&!this.props.shouldShowControls&&setTimeout((function(){t.setState({areControlsOpaque:!0})}),1),!e.shouldShowControls&&this.props.shouldShowControls&&this.setState({areControlsOpaque:!1})}},{key:"getOpacity",value:function(){return this.state.areControlsOpaque?1:0}},{key:"getTransition",value:function(){return"opacity ".concat("beforeplay"===this.props.videoState?0:.2,"s")}},{key:"playbarStyle",value:function(){return{height:"100%",position:"relative"}}},{key:"leftBgStyle",value:function(){var e=this.props,t=e.controlsByType,n=e.leftControlWidth;return{height:"100%",left:0,position:"absolute",top:0,width:(t.playbar||[]).length>0?"100%":"".concat(n,"px")}}},{key:"rightBgStyle",value:function(){return(this.props.controlsByType.playbar||[]).length>0?{display:"none"}:{height:"100%",position:"absolute",right:0,top:0,width:"".concat(this.props.rightControlWidth,"px")}}},{key:"bottomBarLowerStyle",value:function(){return{position:"relative"}}},{key:"isEllipsisShowing",value:function(){return Boolean(this.props.controlsByType.ellipsis)}}],n&&f(t.prototype,n),o&&f(t,o),Object.defineProperty(t,"prototype",{writable:!1}),d}(r.Component),O=function(e){return e.target&&((0,s.elemHasClass)(e.target,"w-vulcan-v2-button")||(0,s.elemAncestorHasClass)(e.target,"w-vulcan-v2-button"))};const k=w},(e,t,n)=>{function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=u(e);if(t){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}n.d(t,{PlaySuspendedOffScreenBehavior:()=>l});var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(l,e);var t,n,s,u=a(l);function l(){return i(this,l),u.apply(this,arguments)}return t=l,(n=[{key:"init",value:function(){var e=this,t=this.impl,n=t.publicApi;this.unbinds.push(n.on("enterviewport",(function(){t.inFullscreen()||e._isSuspended&&(e._isSuspended=!1,n._playSuspendedOffScreenEnabled()&&"paused"===t.state()&&t.play())})),n.on("leaveviewport",(function(){t.inFullscreen()||e._isSuspended||n._playSuspendedOffScreenEnabled()&&"playing"===t.state()&&(t.pause(),e._isSuspended=!0)})),t.on("receivepause",(function(){e._isSuspended&&(e._isSuspended=!1)})))}}])&&r(t.prototype,n),s&&r(t,s),Object.defineProperty(t,"prototype",{writable:!1}),l}(n(194).PlayerBehavior);l.handle="playSuspendedOffScreen"},(e,t,n)=>{function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,{getDurationAfterCuts:()=>a});var o=function(e){var t=e.attributes;return null!=t.duration?t.duration:e.video.readyState>=2?e.video.duration:null},a=function(e){var t=u(e),n=o(e);if(t.length<1)return n;var i=n;return t.forEach((function(e){i-=e.end-e.start})),i},s=Object.freeze([]),u=function(e){var t=e.attributes,n=t.cuts,i=t.trimStart,r=t.trimEnd;if(e._cuts&&n===e._rawCuts)return e._cuts;if(!n&&null==i&&null==r)return s;e._rawCuts=n,e._cuts=l(e);var o={start:e.attributes.trimStart,end:e.attributes.trimEnd};return e._cuts=c(e,o,e._cuts),Object.freeze(e._cuts),e._cuts},l=function(e){var t=o(e),n=e.attributes,i=n.cuts,r=n.trimStart,a=n.trimEnd;if(!i)return[];var s=i.map((function(n){var i=null!=n.start?d(e,n.start):0,r=null!=n.end&&-1!==n.end?d(e,n.end):t;return r>i?{start:i,end:r}:null})).filter(Boolean);null!=r&&s.push({start:0,end:r}),null!=a&&s.push({start:a,end:t}),s=s.sort((function(e,t){return e.start-t.start}));var u={start:0,end:0};return s=s.map((function(e){return e.end<u.end?null:(e.start<u.end&&(e.start=u.end),u=e,e)})).filter(Boolean)},c=function(e,t,n){var r=i(n),a=o(e),s=t.start,u=t.end,l=r[0],c=r[r.length-1],d=l&&(0===l.start||l.start<0)?l:void 0,h=c&&(c.end>=a||c.end<0)?c:void 0;if(null!=s)if(s>=0){var f={start:0,end:s};d?r.splice(0,1,f):r.unshift(f)}else d&&r.shift();if(null!=u)if(u>=0){var p={start:u,end:a};h?r.splice(r.length-1,1,p):r.push(p)}else h&&r.pop();return r},d=function(e,t){var n=o(e);return Math.min(n,Math.max(0,t))}},(e,t,n)=>{n.d(t,{allHlsAudioAssets:()=>r,audioTracksForVideo:()=>o});var i=n(43),r=(n(6),n(29),function(e){return(0,i.filter)(e,{type:"mp4_alternate_audio",status:i.READY})}),o=function(e){var t=[{audioCodec:void 0,autoselect:!0,default:!0,forced:!1,groupId:"audio",id:0,lang:void 0,name:"Off",label:"Off",type:"AUDIO",isSelected:!0}];return e.forEach((function(e,n){var i,r;t.push({audioCodec:void 0,autoselect:!1,default:!1,forced:!1,groupId:"audio",id:n+1,lang:void 0,name:(null===(i=e.details)||void 0===i?void 0:i.languageMetadata.name)||"Alt Audio",label:(null===(r=e.details)||void 0===r?void 0:r.languageMetadata.name)||"Alt Audio",type:"AUDIO",isSelected:!1})})),t}},(e,t,n)=>{n.d(t,{PLAYER_VERSION:()=>i});var i=1.13}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{__webpack_require__(79),__webpack_require__(134),__webpack_require__(135);window.Wistia.wistia=Date.now()})(); //# sourceMappingURL=E-v1.js.map