var __webpack_modules__=[,(e,t,n)=>{n.d(t,{Wistia:()=>K});var i,r,o,a,s,u,l,c,d,h,p,f,v,y,m,g,b,_,w,E,P,O,S,T,k,C,A,j,I,M,L,D,B,x,R,F,W,N=n(2),H=n(3),V=n(4),U=n(5);function z(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null!==(i=U.root.Wistia)&&void 0!==i||(U.root.Wistia={}),null!==(o=(r=U.root.Wistia).Preact)&&void 0!==o||(r.Preact=G(G({},N),{},{hooks:H,compat:V})),null!==(s=(a=U.root.Wistia)._destructors)&&void 0!==s||(a._destructors={}),null!==(l=(u=U.root.Wistia)._initializers)&&void 0!==l||(u._initializers={}),null!==(d=(c=U.root.Wistia)._remoteData)&&void 0!==d||(c._remoteData=new Map),null!==(p=(h=U.root.Wistia).api)&&void 0!==p||(h.api=function(){return console.error("Accessed Wistia.api() before it was initialized"),null}),null!==(v=(f=U.root.Wistia).defineControl)&&void 0!==v||(f.defineControl=function(){return console.error("Accessed Wistia.defineControl() before it was initialized"),null}),null!==(m=(y=U.root.Wistia).EventShepherdManager)&&void 0!==m||(y.EventShepherdManager={}),null!==(b=(g=U.root.Wistia).mixin)&&void 0!==b||(g.mixin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){(function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})(t,n)&&(e[n]=t[n])}))}),null!==(w=(_=U.root.Wistia).playlistMethods)&&void 0!==w||(_.playlistMethods=new Map),null!==(P=(E=U.root.Wistia).PublicApi)&&void 0!==P||(E.PublicApi=null),null!==(S=(O=U.root.Wistia).uncacheMedia)&&void 0!==S||(O.uncacheMedia=function(){return console.error("Accessed Wistia.uncacheMedia() before it was initialized"),null}),null!==(k=(T=U.root.Wistia).VisitorKey)&&void 0!==k||(T.VisitorKey=null),null!==(A=(C=U.root.Wistia).visitorKey)&&void 0!==A||(C.visitorKey=null),null!==(I=(j=U.root.Wistia).wistia)&&void 0!==I||(j.wistia=void 0),null!==(L=(M=U.root.Wistia)._liveStreamEventDataPromises)&&void 0!==L||(M._liveStreamEventDataPromises={}),null!==(B=(D=U.root.Wistia)._mediaDataPromises)&&void 0!==B||(D._mediaDataPromises={}),null!==(R=(x=U.root.Wistia)._liveStreamPollingPromises)&&void 0!==R||(x._liveStreamPollingPromises={}),null!==(W=(F=U.root.Wistia).first)&&void 0!==W||(F.first=function(){var e;return null!==(e=U.root.Wistia.api())&&void 0!==e?e:document.querySelector("wistia-player")});var K=U.root.Wistia},(e,t,n)=>{n.r(t),n.d(t,{Component:()=>T,Fragment:()=>S,cloneElement:()=>Q,createContext:()=>X,createElement:()=>E,createRef:()=>O,h:()=>E,hydrate:()=>Y,isValidElement:()=>a,options:()=>r,render:()=>K,toChildArray:()=>D});var i,r,o,a,s,u,l,c,d,h,p,f,v,y={},m=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function _(e,t){for(var n in t)e[n]=t[n];return e}function w(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function E(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,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(s),s}function O(){return{current:null}}function S(e){return e.children}function T(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+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?k(e):null}function C(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 C(e)}}function A(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!j.__r++||u!=r.debounceRendering)&&((u=r.debounceRendering)||l)(j)}function j(){for(var e,t,n,i,o,a,u,l=1;s.length;)s.length>l&&s.sort(c),e=s.shift(),l=s.length,e.__d&&(n=void 0,i=void 0,o=(i=(t=e).__v).__e,a=[],u=[],t.__P&&((n=_({},i)).__v=i.__v+1,r.vnode&&r.vnode(n),W(t.__P,n,i,t.__n,t.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?k(i):o,!!(32&i.__u),u),n.__v=i.__v,n.__.__k[n.__i]=n,H(a,n,u),i.__e=i.__=null,n.__e!=o&&C(n)));j.__r=0}function I(e,t,n,i,r,o,a,s,u,l,c){var d,h,p,f,v,g,b,_=i&&i.__k||m,w=t.length;for(u=M(n,t,_,u,w),d=0;d<w;d++)null!=(p=n.__k[d])&&(h=-1==p.__i?y:_[p.__i]||y,p.__i=d,g=W(e,p,h,r,o,a,s,u,l,c),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&z(h.ref,null,p),c.push(p.ref,p.__c||f,p)),null==v&&null!=f&&(v=f),(b=!!(4&p.__u))||h.__k===p.__k?u=L(p,u,e,b):"function"==typeof p.type&&void 0!==g?u=g:f&&(u=f.nextSibling),p.__u&=-7);return n.__e=v,u}function M(e,t,n,i,r){var o,a,s,u,l,c=n.length,d=c,h=0;for(e.__k=new Array(r),o=0;o<r;o++)null!=(a=t[o])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[o]=P(null,a,null,null,null):b(a)?a=e.__k[o]=P(S,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[o]=P(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[o]=a,u=o+h,a.__=e,a.__b=e.__b+1,s=null,-1!=(l=a.__i=B(a,n,u,d))&&(d--,(s=n[l])&&(s.__u|=2)),null==s||null==s.__v?(-1==l&&(r>c?h--:r<c&&h++),"function"!=typeof a.type&&(a.__u|=4)):l!=u&&(l==u-1?h--:l==u+1?h++:(l>u?h--:h++,a.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<c;o++)null!=(s=n[o])&&!(2&s.__u)&&(s.__e==i&&(i=k(s)),G(s,s));return i}function L(e,t,n,i){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=L(r[o],t,n,i));return t}e.__e!=t&&(i&&(t&&e.type&&!t.parentNode&&(t=k(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(b(e)?e.some((function(e){D(e,t)})):t.push(e)),t}function B(e,t,n,i){var r,o,a,s=e.key,u=e.type,l=t[n],c=null!=l&&!(2&l.__u);if(null===l&&null==s||c&&s==l.key&&u==l.type)return n;if(i>(c?1:0))for(r=n-1,o=n+1;r>=0||o<t.length;)if(null!=(l=t[a=r>=0?r--:o++])&&!(2&l.__u)&&s==l.key&&u==l.type)return a;return-1}function x(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function R(e,t,n,i,r){var o,a;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||x(e.style,t,"");if(n)for(t in n)i&&n[t]==i[t]||x(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(d,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i?n.u=i.u:(n.u=h,e.addEventListener(t,o?f:p,o)):e.removeEventListener(t,o?f:p,o);else{if("http://www.w3.org/2000/svg"==r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function F(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=h++;else if(t.t<n.u)return;return n(r.event?r.event(t):t)}}}function W(e,t,n,i,o,a,s,u,l,c){var d,h,p,f,v,y,m,g,E,P,O,k,C,A,j,M,L,D=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),a=[u=t.__e=n.__e]),(d=r.__b)&&d(t);e:if("function"==typeof D)try{if(g=t.props,E="prototype"in D&&D.prototype.render,P=(d=D.contextType)&&i[d.__c],O=d?P?P.props.value:d.__:i,n.__c?m=(h=t.__c=n.__c).__=h.__E:(E?t.__c=h=new D(g,O):(t.__c=h=new T(g,O),h.constructor=D,h.render=q),P&&P.sub(h),h.state||(h.state={}),h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),E&&null==h.__s&&(h.__s=h.state),E&&null!=D.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=_({},h.__s)),_(h.__s,D.getDerivedStateFromProps(g,h.__s))),f=h.props,v=h.state,h.__v=t,p)E&&null==D.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),E&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(E&&null==D.getDerivedStateFromProps&&g!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,O),t.__v==n.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,O)){for(t.__v!=n.__v&&(h.props=g,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),k=0;k<h._sb.length;k++)h.__h.push(h._sb[k]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,O),E&&null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(f,v,y)}))}if(h.context=O,h.props=g,h.__P=e,h.__e=!1,C=r.__r,A=0,E){for(h.state=h.__s,h.__d=!1,C&&C(t),d=h.render(h.props,h.state,h.context),j=0;j<h._sb.length;j++)h.__h.push(h._sb[j]);h._sb=[]}else do{h.__d=!1,C&&C(t),d=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=_(_({},i),h.getChildContext())),E&&!p&&null!=h.getSnapshotBeforeUpdate&&(y=h.getSnapshotBeforeUpdate(f,v)),M=d,null!=d&&d.type===S&&null==d.key&&(M=V(d.props.children)),u=I(e,b(M)?M:[M],t,n,i,o,a,s,u,l,c),h.base=t.__e,t.__u&=-161,h.__h.length&&s.push(h),m&&(h.__E=h.__=null)}catch(e){if(t.__v=null,l||null!=a)if(e.then){for(t.__u|=l?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,t.__e=u}else{for(L=a.length;L--;)w(a[L]);N(t)}else t.__e=n.__e,t.__k=n.__k,e.then||N(t);r.__e(e,t,n)}else null==a&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):u=t.__e=U(n.__e,t,n,i,o,a,s,l,c);return(d=r.diffed)&&d(t),128&t.__u?void 0:u}function N(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(N)}function H(e,t,n){for(var i=0;i<n.length;i++)z(n[i],n[++i],n[++i]);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 V(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:b(e)?e.map(V):_({},e)}function U(e,t,n,o,a,s,u,l,c){var d,h,p,f,v,m,g,_=n.props||y,E=t.props,P=t.type;if("svg"==P?a="http://www.w3.org/2000/svg":"math"==P?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(d=0;d<s.length;d++)if((v=s[d])&&"setAttribute"in v==!!P&&(P?v.localName==P:3==v.nodeType)){e=v,s[d]=null;break}if(null==e){if(null==P)return document.createTextNode(E);e=document.createElementNS(a,P,E.is&&E),l&&(r.__m&&r.__m(t,s),l=!1),s=null}if(null==P)_===E||l&&e.data==E||(e.data=E);else{if(s=s&&i.call(e.childNodes),!l&&null!=s)for(_={},d=0;d<e.attributes.length;d++)_[(v=e.attributes[d]).name]=v.value;for(d in _)if(v=_[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=v;else if(!(d in E)){if("value"==d&&"defaultValue"in E||"checked"==d&&"defaultChecked"in E)continue;R(e,d,null,v,a)}for(d in E)v=E[d],"children"==d?f=v:"dangerouslySetInnerHTML"==d?h=v:"value"==d?m=v:"checked"==d?g=v:l&&"function"!=typeof v||_[d]===v||R(e,d,v,_[d],a);if(h)l||p&&(h.__html==p.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(p&&(e.innerHTML=""),I("template"==t.type?e.content:e,b(f)?f:[f],t,n,o,"foreignObject"==P?"http://www.w3.org/1999/xhtml":a,s,u,s?s[0]:n.__k&&k(n,0),l,c),null!=s)for(d=s.length;d--;)w(s[d]);l||(d="value","progress"==P&&null==m?e.removeAttribute("value"):null!=m&&(m!==e[d]||"progress"==P&&!m||"option"==P&&m!=_[d])&&R(e,d,m,_[d],a),d="checked",null!=g&&g!=e[d]&&R(e,d,g,_[d],a))}return e}function z(e,t,n){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){r.__e(e,n)}}function G(e,t,n){var i,o;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||z(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&G(i[o],t,n||"function"!=typeof e.type);n||w(e.__e),e.__c=e.__=e.__e=void 0}function q(e,t,n){return this.constructor(e,n)}function K(e,t,n){var o,a,s,u;t==document&&(t=document.documentElement),r.__&&r.__(e,t),a=(o="function"==typeof n)?null:n&&n.__k||t.__k,s=[],u=[],W(t,e=(!o&&n||t).__k=E(S,null,[e]),a||y,y,t.namespaceURI,!o&&n?[n]:a?null:t.firstChild?i.call(t.childNodes):null,s,!o&&n?n:a?a.__e:t.firstChild,o,u),H(s,e,u)}function Y(e,t){K(e,t,Y)}function Q(e,t,n){var r,o,a,s,u=_({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?r=t[a]:"ref"==a?o=t[a]:u[a]=void 0===t[a]&&null!=s?s[a]:t[a];return arguments.length>2&&(u.children=arguments.length>3?i.call(arguments,2):n),P(e.type,u,r||e.key,o||e.ref,null)}function X(e){function t(e){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,A(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+v++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}i=m.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,a=function(e){return null!=e&&void 0===e.constructor},T.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},n),this.props)),e&&_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},T.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},T.prototype.render=S,s=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},j.__r=0,d=/(PointerCapture)$|Capture$/i,h=0,p=F(!1),f=F(!0),v=0},(e,t,n)=>{n.r(t),n.d(t,{useCallback:()=>S,useContext:()=>T,useDebugValue:()=>k,useEffect:()=>_,useErrorBoundary:()=>C,useId:()=>A,useImperativeHandle:()=>P,useLayoutEffect:()=>w,useMemo:()=>O,useReducer:()=>b,useRef:()=>E,useState:()=>g});var i,r,o,a,s=n(2),u=0,l=[],c=s.options,d=c.__b,h=c.__r,p=c.diffed,f=c.__c,v=c.unmount,y=c.__;function m(e,t){c.__h&&c.__h(r,e,u||t),u=0;var n=r.__H||(r.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function g(e){return u=1,b(x,e)}function b(e,t,n){var o=m(i++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):x(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.__f)){var a=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!s||s.call(this,e,t,n);var r=o.__c.props!==e;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(r=!0)}})),s&&s.call(this,e,t,n)||r};r.__f=!0;var s=r.shouldComponentUpdate,u=r.componentWillUpdate;r.componentWillUpdate=function(e,t,n){if(this.__e){var i=s;s=void 0,a(e,t,n),s=i}u&&u.call(this,e,t,n)},r.shouldComponentUpdate=a}return o.__N||o.__}function _(e,t){var n=m(i++,3);!c.__s&&B(n.__H,t)&&(n.__=e,n.u=t,r.__H.__h.push(n))}function w(e,t){var n=m(i++,4);!c.__s&&B(n.__H,t)&&(n.__=e,n.u=t,r.__h.push(n))}function E(e){return u=5,O((function(){return{current:e}}),[])}function P(e,t,n){u=6,w((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))}function O(e,t){var n=m(i++,7);return B(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function S(e,t){return u=8,O((function(){return e}),t)}function T(e){var t=r.context[e.__c],n=m(i++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(r)),t.props.value):e.__}function k(e,t){c.useDebugValue&&c.useDebugValue(t?t(e):e)}function C(e){var t=m(i++,10),n=g();return t.__=e,r.componentDidCatch||(r.componentDidCatch=function(e,i){t.__&&t.__(e,i),n[1](e)}),[n[0],function(){n[1](void 0)}]}function A(){var e=m(i++,11);if(!e.__){for(var t=r.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function j(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(L),e.__H.__h.forEach(D),e.__H.__h=[]}catch(t){e.__H.__h=[],c.__e(t,e.__v)}}c.__b=function(e){r=null,d&&d(e)},c.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),y&&y(e,t)},c.__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.u=e.__N=void 0}))):(t.__h.forEach(L),t.__h.forEach(D),t.__h=[],i=0)),o=r},c.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===c.requestAnimationFrame||((a=c.requestAnimationFrame)||M)(j)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),o=r=null},c.__c=function(e,t){t.some((function(e){try{e.__h.forEach(L),e.__h=e.__h.filter((function(e){return!e.__||D(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],c.__e(n,e.__v)}})),f&&f(e,t)},c.unmount=function(e){v&&v(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{L(e)}catch(e){t=e}})),n.__H=void 0,t&&c.__e(t,n.__v))};var I="function"==typeof requestAnimationFrame;function M(e){var t,n=function(){clearTimeout(i),I&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,35);I&&(t=requestAnimationFrame(n))}function L(e){var t=r,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),r=t}function D(e){var t=r;e.__c=e.__(),r=t}function B(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function x(e,t){return"function"==typeof t?t(e):t}},(e,t,n)=>{n.r(t),n.d(t,{Children:()=>b,Component:()=>i.Component,Fragment:()=>i.Fragment,PureComponent:()=>p,StrictMode:()=>ae,Suspense:()=>O,SuspenseList:()=>k,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Q,cloneElement:()=>te,createContext:()=>i.createContext,createElement:()=>i.createElement,createFactory:()=>$,createPortal:()=>I,createRef:()=>i.createRef,default:()=>ue,findDOMNode:()=>ie,flushSync:()=>oe,forwardRef:()=>m,hydrate:()=>W,isElement:()=>se,isFragment:()=>J,isMemo:()=>ee,isValidElement:()=>Z,lazy:()=>T,memo:()=>f,render:()=>F,startTransition:()=>l,unmountComponentAtNode:()=>ne,unstable_batchedUpdates:()=>re,useCallback:()=>r.useCallback,useContext:()=>r.useContext,useDebugValue:()=>r.useDebugValue,useDeferredValue:()=>c,useEffect:()=>r.useEffect,useErrorBoundary:()=>r.useErrorBoundary,useId:()=>r.useId,useImperativeHandle:()=>r.useImperativeHandle,useInsertionEffect:()=>h,useLayoutEffect:()=>r.useLayoutEffect,useMemo:()=>r.useMemo,useReducer:()=>r.useReducer,useRef:()=>r.useRef,useState:()=>r.useState,useSyncExternalStore:()=>s,useTransition:()=>d,version:()=>X});var i=n(2),r=n(3);function o(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function s(e,t){var n=t(),i=(0,r.useState)({t:{__:n,u:t}}),o=i[0].t,a=i[1];return(0,r.useLayoutEffect)((function(){o.__=n,o.u=t,u(o)&&a({t:o})}),[e,n,t]),(0,r.useEffect)((function(){return u(o)&&a({t:o}),e((function(){u(o)&&a({t:o})}))}),[e]),n}function u(e){var t,n,i=e.u,r=e.__;try{var o=i();return!((t=r)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function l(e){e()}function c(e){return e}function d(){return[!1,l]}var h=r.useLayoutEffect;function p(e,t){this.props=e,this.context=t}function f(e,t){function n(e){var n=this.props.ref,i=n==e.ref;return!i&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!i:a(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,i.createElement)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(p.prototype=new i.Component).isPureReactComponent=!0,p.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)};var v=i.options.__b;i.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),v&&v(e)};var y="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function m(e){function t(t){var n=o({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=y,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var g=function(e,t){return null==e?null:(0,i.toChildArray)((0,i.toChildArray)(e).map(t))},b={map:g,forEach:g,count:function(e){return e?(0,i.toChildArray)(e).length:0},only:function(e){var t=(0,i.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:i.toChildArray},_=i.options.__e;i.options.__e=function(e,t,n,i){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);_(e,t,n,i)};var w=i.options.unmount;function E(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=o({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return E(e,t,n)}))),e}function P(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return P(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function O(){this.__u=0,this.o=null,this.__b=null}function S(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function T(e){var t,n,r,o=null;function a(a){if(t||(t=e()).then((function(e){e&&(o=e.default||e),r=!0}),(function(e){n=e,r=!0})),n)throw n;if(!r)throw t;return o?(0,i.createElement)(o,a):null}return a.displayName="Lazy",a.__f=!0,a}function k(){this.i=null,this.l=null}i.options.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),w&&w(e)},(O.prototype=new i.Component).__c=function(e,t){var n=t.__c,i=this;null==i.o&&(i.o=[]),i.o.push(n);var r=S(i.__v),o=!1,a=function(){o||i.__z||(o=!0,n.__R=null,r?r(u):u())};n.__R=a;var s=n.__P;n.__P=null;var u=function(){if(! --i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=P(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.o.pop();)t.__P=s,t.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(a,a)},O.prototype.componentWillUnmount=function(){this.o=[]},O.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=E(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,i.createElement)(i.Fragment,null,e.fallback);return o&&(o.__u&=-33),[(0,i.createElement)(i.Fragment,null,t.__a?null:e.children),o]};var C=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function A(e){return this.getChildContext=function(){return e.context},e.children}function j(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){(0,i.render)(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;null!==r&&!r.__m&&null!==r.__;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}(0,i.render)((0,i.createElement)(A,{context:t.context},e.__v),t.v)}function I(e,t){var n=(0,i.createElement)(j,{__v:e,h:t});return n.containerInfo=t,n}(k.prototype=new i.Component).__a=function(e){var t=this,n=S(t.__v),i=t.l.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),C(t,e,i)):r()};n?n(o):o()}},k.prototype.render=function(e){this.i=null,this.l=new Map;var t=(0,i.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},k.prototype.componentDidUpdate=k.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){C(e,n,t)}))};var M="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,L=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,D=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,B=/[A-Z0-9]/g,x="undefined"!=typeof document,R=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function F(e,t,n){return null==t.__k&&(t.textContent=""),(0,i.render)(e,t),"function"==typeof n&&n(),e?e.__c:null}function W(e,t,n){return(0,i.hydrate)(e,t),"function"==typeof n&&n(),e?e.__c:null}i.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(i.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var N=i.options.event;function H(){}function V(){return this.cancelBubble}function U(){return this.defaultPrevented}i.options.event=function(e){return N&&(e=N(e)),e.persist=H,e.isPropagationStopped=V,e.isDefaultPrevented=U,e.nativeEvent=e};var z,G={enumerable:!1,configurable:!0,get:function(){return this.class}},q=i.options.vnode;i.options.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var a in t){var s=t[a];if(!("value"===a&&"defaultValue"in t&&null==s||x&&"children"===a&&"noscript"===n||"class"===a||"className"===a)){var u=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===s?s="":"translate"===u&&"no"===s?s=!1:"o"===u[0]&&"n"===u[1]?"ondoubleclick"===u?a="ondblclick":"onchange"!==u||"input"!==n&&"textarea"!==n||R(t.type)?"onfocus"===u?a="onfocusin":"onblur"===u?a="onfocusout":D.test(a)&&(a=u):u=a="oninput":o&&L.test(a)?a=a.replace(B,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===u&&r[a=u]&&(a="oninputCapture"),r[a]=s}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,i.toChildArray)(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=(0,i.toChildArray)(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",G)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=M,q&&q(e)};var K=i.options.__r;i.options.__r=function(e){K&&K(e),z=e.__c};var Y=i.options.diffed;i.options.diffed=function(e){Y&&Y(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),z=null};var Q={ReactCurrentDispatcher:{current:{readContext:function(e){return z.__n[e.__c].props.value},useCallback:r.useCallback,useContext:r.useContext,useDebugValue:r.useDebugValue,useDeferredValue:c,useEffect:r.useEffect,useId:r.useId,useImperativeHandle:r.useImperativeHandle,useInsertionEffect:h,useLayoutEffect:r.useLayoutEffect,useMemo:r.useMemo,useReducer:r.useReducer,useRef:r.useRef,useState:r.useState,useSyncExternalStore:s,useTransition:d}}},X="18.3.1";function $(e){return i.createElement.bind(null,e)}function Z(e){return!!e&&e.$$typeof===M}function J(e){return Z(e)&&e.type===i.Fragment}function ee(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function te(e){return Z(e)?i.cloneElement.apply(null,arguments):e}function ne(e){return!!e.__k&&((0,i.render)(null,e),!0)}function ie(e){return e&&(e.base||1===e.nodeType&&e)||null}var re=function(e,t){return e(t)},oe=function(e,t){return e(t)},ae=i.Fragment,se=Z,ue={useState:r.useState,useId:r.useId,useReducer:r.useReducer,useEffect:r.useEffect,useLayoutEffect:r.useLayoutEffect,useInsertionEffect:h,useTransition:d,useDeferredValue:c,useSyncExternalStore:s,startTransition:l,useRef:r.useRef,useImperativeHandle:r.useImperativeHandle,useMemo:r.useMemo,useCallback:r.useCallback,useContext:r.useContext,useDebugValue:r.useDebugValue,version:"18.3.1",Children:b,render:F,hydrate:W,unmountComponentAtNode:ne,createPortal:I,createElement:i.createElement,createContext:i.createContext,createFactory:$,cloneElement:te,createRef:i.createRef,Fragment:i.Fragment,isValidElement:Z,isElement:se,isFragment:J,isMemo:ee,findDOMNode:ie,Component:i.Component,PureComponent:p,memo:f,forwardRef:m,flushSync:oe,unstable_batchedUpdates:re,StrictMode:ae,Suspense:O,SuspenseList:k,lazy:T,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Q}},(e,t,n)=>{var i;n.d(t,{root:()=>r});try{(i=self).self!==i&&void 0!==i.self&&"undefined"!=typeof window&&(i=window)}catch(e){i="undefined"!=typeof globalThis?globalThis:window}var r=i},,,,(e,t,n)=>{n.d(t,{globalEventLoop:()=>u});var i=n(10),r=n(1),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.Wistia.eventLoop&&(r.Wistia.eventLoop=new a({latency:100,blurLatency:100}));var u=r.Wistia.eventLoop},(e,t,n)=>{n.d(t,{LOG_LEVELS:()=>s,wlog:()=>y});var i=n(11),r=n(1);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){if("string"==typeof e)return a(e,t);var n={}.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)?a(e,t):void 0}}(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=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,r=e<=this.ctx.level,a=e<4,s=(r||a)&&this.matchedGrep(t);if(0===e&&(0,i.globalTrigger)("problem",{type:"error-logged",data:{messages:t}}),s&&(r||a)&&(n=this.now()),a&&s){var u=this.messagesToLogLine(e,n,t);this.persistLine(u)}if(r&&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)},p=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.info.apply(console,t)},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug.apply(console,t)},v=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=p:4===e&&(t=f),t||(t=v),"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))}}},r.Wistia&&null==r.Wistia.wlogCtx&&(r.Wistia.wlogCtx={});var y=new l(r.Wistia.wlogCtx)},(e,t,n)=>{n.d(t,{globalBind:()=>o,globalOn:()=>a,globalTrigger:()=>s});var i=n(12),r=n(1);(0,i.makeWbindable)(r.Wistia);var o=r.Wistia.bind.bind(r.Wistia),a=r.Wistia.on.bind(r.Wistia),s=(r.Wistia.off.bind(r.Wistia),r.Wistia.rebind.bind(r.Wistia),r.Wistia.trigger.bind(r.Wistia));r.Wistia.unbind.bind(r.Wistia)},(e,t,n)=>{n.d(t,{makeWbindable:()=>a});var i=n(13),r=n(1),o=n(14);r.Wistia.bindable||(r.Wistia.EventShepherdManager||(r.Wistia.EventShepherdManager={}),r.Wistia.bindable={bind:function(e,t){if("crosstime"===e&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),this;if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]&&(r.Wistia.EventShepherdManager[a]=new o.EventShepherd),r.Wistia.EventShepherdManager[a].addListener(e,n,t),this}if(t)return i.bind.call(this,e,t),this;r.Wistia.warn&&r.Wistia.warn(this.constructor.name,"bind","falsey value passed in as callback:",t)},unbind:function(e,t){if("crosstime"===e&&this.crossTime)return t?this.crossTime.removeBinding(arguments[1],arguments[2]):this.crossTime.removeAllBindings(),this;if("betweentimes"===e&&this.betweenTimes)return t?this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]):this.betweenTimes.removeAllBindings(),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]||r.Wistia.EventShepherdManager[a].removeListener(e,n,t),this}return t?i.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=arguments,a=this;if("crosstime"===e&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),function(){a.crossTime.removeBinding(n[1],n[2])};if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),function(){a.betweenTimes.removeBinding(n[1],n[2],n[3])};var u=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&u){var l=s(u);return void 0===r.Wistia.EventShepherdManager[l]&&(r.Wistia.EventShepherdManager[l]=new o.EventShepherd(u)),r.Wistia.EventShepherdManager[l].addListener(e,u,t),function(){r.Wistia.EventShepherdManager[l].removeListener(e,u,t)}}return i.bind.call(this,e,t)},off:function(e,t){if("crosstime"===e&&this.crossTime)return this.crossTime.removeBinding(arguments[1],arguments[2]);if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]);var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]?function(){}:r.Wistia.EventShepherdManager[a].removeListener(e,n,t)}return i.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,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=i.trigger).call.apply(t,[this,e].concat(r)),this},bindNamed:function(){return i.bindNamed.apply(this,arguments)},unbindNamed:function(){return i.unbindNamed.apply(this,arguments)},unbindAllInNamespace:function(){return i.unbindAllInNamespace.apply(this,arguments)}});var a=function(e){for(var t in r.Wistia.bindable){var n=r.Wistia.bindable[t];e[t]||(e[t]=n)}},s=function(e){return null!=e&&e.mediaId?e.mediaId:null!=e&&e.id?e.id:void 0}},(e,t,n)=>{n.d(t,{bind:()=>u,bindNamed:()=>f,bindify:()=>g,trigger:()=>d,unbind:()=>l,unbindAllInNamespace:()=>y,unbindNamed:()=>v});var i=n(1),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){if("string"==typeof e)return a(e,t);var n={}.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)?a(e,t):void 0}}(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=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{u.apply(this,n)===this.unbind&&(null==t&&(t=[]),t.push({event:e,fn:u}))}catch(e){if(this._throwTriggerErrors)throw e;i.Wistia.error&&i.Wistia.error(e)}}if(t)for(var l=0;l<t.length;l++){var c=t[l];this.unbind(c.event,c.fn)}return this},p=function(e,t){null==e._namedBindings&&(e._namedBindings={}),null==e._namedBindings[t]&&(e._namedBindings[t]={})},f=function(e,t,n,i){return this.unbindNamed(e,t),function(e,t,n,i,r){p(e,t),e._namedBindings[t][n]={event:i,fn:r}}(this,e,t,n,i),this.bind(n,i),function(){this.unbindNamed(e,t)}},v=function(e,t){p(this,e);var n=function(e,t,n){return p(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},y=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=f,e.unbindNamed=v,e.unbindAllInNamespace=y,e};g(function(){}.prototype)},(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,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{EventShepherd:()=>s,convertedEventNames:()=>o});var o={mutechange:n(15).MUTE_CHANGE_EVENT},a={mutechange:function(e){return e.isMuted}},s=function(){return e=function e(){var t,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,i={},(n=r(n="convertedEventsMap"))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i},(t=[{key:"addListener",value:function(e,t,n){var i,r,s,u=null!==(i=o[e])&&void 0!==i?i:e;null!==(s=(r=this.convertedEventsMap)[u])&&void 0!==s||(r[u]=[]);var l=function(t){if(a[e]){var i=a[e](t.detail);n(i)}else n()};this.convertedEventsMap[u].push({givenCallback:n,eventListenerCallback:l}),t.addEventListener(u,l)}},{key:"removeAllListeners",value:function(e){var t=this;Object.keys(this.convertedEventsMap).forEach((function(n){var i;null===(i=t.convertedEventsMap[n])||void 0===i||i.forEach((function(t){e.removeEventListener(n,t.eventListenerCallback)})),t.convertedEventsMap[n]=[]}))}},{key:"removeListener",value:function(e,t,n){var i,r=this,a=null!==(i=o[e])&&void 0!==i?i:e,s=[];n?(t.removeEventListener(a,n),this.convertedEventsMap[a]&&(this.convertedEventsMap[a].forEach((function(e,i){e.givenCallback===n&&(s.push(i),t.removeEventListener(a,e.eventListenerCallback))})),s.forEach((function(e){r.convertedEventsMap[a]&&r.convertedEventsMap[a].splice(e,1)})))):this.convertedEventsMap[a]=[]}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},(e,t,n)=>{n.r(t),n.d(t,{AFTER_REPLACE_EVENT:()=>i,API_READY_EVENT:()=>r,BEFORE_REPLACE_EVENT:()=>o,BETWEENTIMES_EVENT_EV1:()=>a,CROSSTIME_EVENT_EV1:()=>s,EMBED_OPTIONS_CHANGED_EVENT:()=>u,IMPL_CREATED_EVENT:()=>l,INIT_EMBED_EVENT:()=>c,INPUT_CONTEXT_CHANGE_EVENT:()=>d,INTERNAL_API_ON_FIND_EVENT:()=>h,LOADED_MEDIA_DATA_EVENT:()=>p,MUTE_CHANGE_EVENT:()=>f,TIME_UPDATE_EVENT:()=>v});var i="after-replace",r="api-ready",o="before-replace",a="betweentimes",s="crosstime",u="embed-options-changed",l="impl-created",c="initembed",d="input-context-change",h="internal-api-on-find",p="loaded-media-data",f="mute-change",v="time-update"},,(e,t,n)=>{n.r(t),n.d(t,{HLS_ENGINE_PATH:()=>A,MANUAL_QUALITY_ENGINE_PATH:()=>M,NATIVE_HLS_ENGINE_PATH:()=>j,PLUGIN_CONFIGS:()=>D,SIMPLE_AUDIO_ENGINE_PATH:()=>I,SPHERICAL_VIDEO_ENGINE_PATH:()=>L,bestPlayer:()=>B,bestUsableEngine:()=>x,bestUsableEngineClass:()=>R,buildContext:()=>F,canPlayInline:()=>W,canUsePlayer:()=>N,choosePlayer:()=>H,determinePlayerPreferenceFromInput:()=>U,doesBrowserSupportHlsTools:()=>z,enginesToLoad:()=>G,getDefaultContext:()=>q,hasAssetsForPlayer:()=>X,hasEnoughReadyMp4Assets:()=>J,hasSupportedHlsAssets:()=>ee,isBrowserInNativeAndroid:()=>ie,isBrowserOldChrome:()=>re,isHlsEnabled:()=>oe,isMobile:()=>ae,isNotPlayable:()=>se,isPasswordProtected:()=>ue,isSupportedPlayer:()=>ce,isValidPlayer:()=>de,logWarnings:()=>he,playerPlugins:()=>pe,report:()=>fe,shouldServeHls:()=>ve,supportedPlayers:()=>ye,urlHasBeenTamperedWith:()=>ge,usablePlayers:()=>me,xhrHasBeenTamperedWith:()=>we});var i=n(18),r=n(20),o=n(22),a=n(43),s=n(5),u=n(10),l=n(44),c=n(1);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){p(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 p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f,v=u.wlog.getPrefixedFunctions("judy"),y="auto",m="carouselHardWall",g="external",b="hlsVideo",_="html5",w="manualQualityVideo",E="nativeHlsVideo",P="notplayable",O="passwordprotected",S="simplehtml5",T="vulcan-v2",k="sphericalVideo",C=[T,_,S,g,P,O],A="engines/hls_video.js",j="engines/native_hls_video.js",I="engines/simple_audio.js",M="engines/manual_quality_video.js",L="engines/spherical_video.js",D={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},externalPlayer:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},html5Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},playlist:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1}},B=function(e,t,n){var i=e.detect,r=e.logger;le({mediaData:t,options:n},i);return i.oldandroid?(r.info("external on old android"),g):N(e,T,t)?(r.info("default, ret",T),T):"Audio"===t.mediaType||"LiveStream"===t.mediaType?T:N(e,_,t)?(r.info("default, ret",_),_):(r.info("nothing left, use",g),g)},x=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=ve(e,t,n),a=le({mediaData:t,options:n},i);if(n.engine)return n.engine;if(a)return r.info(k),L;if("Audio"===t.mediaType)return I;var s=i.safari||i.ios.version>0,u="null"!==window.origin,l=s&&!u;return o&&i.nativeHls&&(!1===i.managedMediaSource||l)?(r.info(E),j):o?(r.info(b),A):(r.info(w),M)},R=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=ve(e,t,n),a=c.Wistia.engines||{};return"Audio"===t.mediaType?a.SimpleAudio:o&&i.nativeHls&&a.NativeHlsVideo?(r.info(E),a.NativeHlsVideo):o&&a.HlsVideo?(r.info(b),a.HlsVideo):(r.info(w),a.ManualQualityVideo)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=V(e);return h(h(h({},q()),e),{},{pageUrl:t})},W=function(e){var t=e.detect;return t.android||t.ios.version>=10},N=function(e,t,n){return ce(e,t)&&X(e,t,n)},H=function(e,t,n){var i=e.detect,r=e.logger,o=n.playerForce;r.info("choosePlayer input",t.hashedId);var a=U(e,t,n);if(o&&!de(e,o)&&(r.error('Invalid playerForce option: "'.concat(o,'", ignoring')),o=null),a&&a!==y&&!de(e,a)&&(r.error('Invalid playerPreference option: "'.concat(a,'", ignoring')),a=y),r.info("playerPreference is",a),o)return r.info('"playerForce" used, return',o),o;if(t.carouselHardWall)return r.info("return",m),m;if(ue(e,n))return r.info("return",O),O;if(se(e,t,n))return r.info("return",P),P;if(t.protected)return T;if(a!==y&&N(e,a,t)){var s=le({mediaData:t,options:n},i);return a!==T&&s?(r.info("this player doesn't support spherical, return",T),T):(r.info('"playerPreference" used, return',a),a)}return r.info("choosing player with no preference"),B(e,t,n)},V=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||""},U=function(e,t,n){var i=n.playerPreference||n.platformPreference;return i&&i!==y?i===_?ae(e)?_:T:i===S?_:i:y},z=function(e){var t=Boolean(window.Promise);return(e.mediaSource||e.nativeHls)&&t},G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.detect,r=e.logger,o=[];r.info("enginesToLoad");var a=ve(e,t,n);a&&i.nativeHls?(r.info(E),o.push(E)):a?(r.info(b),o.push(b)):(r.info(w),o.push(w)),le({mediaData:t,options:n},i)&&(o.push(k),r.info(k));var s={};o.forEach((function(e){s[e]=!0}));var u=[];for(var l in s)u.push(l);return u},q=function(){return f||(f={detect:(0,i.clone)((0,r.cachedDetect)()),inIframe:top!==self,location:window.location,logger:v,pageUrl:location.href,silenceGlobalWarnings:s.root.wistiaSilenceGlobalWarnings,userAgent:navigator.userAgent})},K=function(e,t){var n={};return n[t]=D[t],n},Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!1!==n.instantHls&&t.instantHlsAssetsReady&&ve(e,t,n)},Q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.originalIsEligibleForDirectPlayback&&ve(e,t,n)},X=function(e,t,n){if(!de(e,t))return!1;if(t===P||t===O||t===m)return!0;var i=n.assets;if(t===T)return Y(e,n)||Q(e,n)||$(i)||Z(i);if(t===_)return(0,l.readyPublicMp4s)(i).length>0;if(t===g)return(0,l.readyPublicMp4s)(i).length>0;throw new Error("Unhandled player type '".concat(t,"'"))},$=function(e){return(0,l.readyPublicMp4s)(e).length>0||(0,l.readyPublicM3u8s)(e).length>0},Z=function(e){return(0,l.readyPublicMp3s)(e).length>0},J=function(e){var t=(0,l.filter)(e,{container:"mp4",metadata:function(e){return e&&e.max_bitrate},public:!0,sortBy:"width desc",status:l.READY,type:/\b(?!captioned_video)\S+/});return Boolean(t[0]&&t[0].width>=400)},ee=function(e){if(!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).instantHls&&e.instantHlsAssetsReady)return!0;if(e.originalIsEligibleForDirectPlayback)return!0;var t=J(e.assets);return t||(0,o.count)("player/originV2/media-has-no-metadata",1,{hashedId:e.hashedId}),t},te=function(e,t){var n=e.pageUrl,i=ne(n);if(null!=i)return i;var r=(0,a.setOrGet)("forceHls");return null!=r?r:t.hls},ne=function(e){var t=e&&e.match&&e.match(/[&?]whls=([^&]+)/),n=t&&t[1];return null!=n?(0,i.cast)(n):null},ie=function(e,t){return e.android&&(!1===t.playsinline||!0===t.nativeMode)},re=function(e){return e.chrome&&parseInt(e.chrome.version,10)<50},oe=function(e,t,n){var i=te(e,n);return!0===i||!1===i?i:!1!==t.hls_enabled},ae=function(e){var t=e.detect;return t.iphone||t.ipad||t.android},se=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.assets;if(!t.protected&&(Y(e,t,i)||Q(e,t,i)))return!1;var o="Audio"===t.type?0==(0,l.readyPublicMp3s)(r).length:0==(0,l.readyPublicMp4s)(r).length;if("LiveStream"===t.mediaType)return!1;if(t.protected&&(null===(n=i.authorization)||void 0===n||!n.jwt))return i.notPlayableOptions={fadeIn:!1,message:"This video is set to private.",shouldRefresh:!1},!0;var a=ve(e,t,i);return t.protected&&!1===a?(i.notPlayableOptions={fadeIn:!1,message:"This video is not playable.",shouldRefresh:!1},!0):0===r.length||1===r.length&&"original"===r[0].type||o||(0,l.nonfailedPublicOver400)(r).length>0&&0===(0,l.readyPublicOver400)(r).length},ue=function(e,t){var n=(0,i.getDeep)(t,"plugin.passwordProtectedVideo");return null!=n&&!1!==n.on},le=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},ce=function(e,t){return!!de(e,t)&&(0,i.indexOf)(ye(e),t)>=0},de=function(e,t){return(0,i.indexOf)(C,t)>=0},he=function(e){var t=e.detect,n=e.userAgent,i=e.logger;if(!e.silenceGlobalWarnings){var r=/phantomjs/i.test(n);we()&&(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.")),ge()&&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)}},pe=function(e,t,n,r){var o=e.logger,a={};o.info("playerPlugins input",t,n.hashedId,n,r),t===P?(0,i.merge)(a,K(0,"notPlayableVideo")):t===O?(0,i.merge)(a,K(0,"passwordProtectedVideo")):t===_?(0,i.merge)(a,K(0,"html5Player")):t===g?(0,i.merge)(a,K(0,"externalPlayer")):t===T&&(0,i.merge)(a,K(0,"vulcanV2Player"));var s=[];for(var u in a)s.push(u);return o.info.apply(o,["playerPlugins output"].concat(s,[a])),a},fe=function(e,t,n){return{bestPlayer:B(e,t,n),playerPreferenceFromInput:U(e,t,n),supportedPlayers:ye(e),usablePlayers:me(e,t.assets)}},ve=function(e,t,n){if("LiveStream"===t.type)return!0;var i=e.detect;return z(i)&&!re(i)&&!ie(i,n)&&oe(e,t,n)&&ee(t)&&(!we(e)&&!ge(e)||te(e,n))},ye=function(e){var t=e.detect,n=[P,O,g,m];return t.vulcanV2Support&&n.push(T),t.video.h264&&n.push(_),n},me=function(e,t){for(var n=[],i=ye(e),r=0;r<i.length;r++){var o=i[r];N(e,o,t)&&n.push(o)}return n},ge=function(){return"function"!=typeof(window.URL&&window.URL.createObjectURL)},be=/\s*function\s+XMLHttpRequest\(\)\s*{\s*\[native code\]\s*}\s*/m,_e=/\[object XMLHttpRequestConstructor\]/m,we=function(){if(XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.constructor){var e=XMLHttpRequest.prototype.constructor.toString();return!(be.test(e)||_e.test(e))}return!0}},(e,t,n)=>{n.r(t),n.d(t,{assign:()=>i.assign,cast:()=>m,castDeep:()=>b,clone:()=>c,eachDeep:()=>W,eachLeaf:()=>N,equalsDeep:()=>F,except:()=>w,exists:()=>y,filter:()=>T,getDeep:()=>d,identityFunc:()=>u,indexOf:()=>V,isArray:()=>C,isBasicType:()=>B,isEmpty:()=>x,isFunction:()=>I,isObject:()=>j,isRegExp:()=>L,isSubsetDeep:()=>R,keys:()=>U,legacyShouldDeleteFromMerge:()=>l,merge:()=>a,mergeOne:()=>s,only:()=>_,pick:()=>H,select:()=>E,setAndPreserveUndefined:()=>p,setDeep:()=>h,sort:()=>S,unsetDeep:()=>v,values:()=>O});var i=n(19),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){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;if(C(t)){C(e)||(e=[]);for(var o=0;o<t.length;o++){var a=t[o];null==e[o]&&null!=a&&(C(a)?e[o]=[]:j(a)&&(e[o]={}));var c=s(e[o],a,n);i(t,o,c)?delete e[o]:e[o]=c}return n(e)}if(j(t)){for(var d in t)if(r(t,d)&&(r(e,d)||null==e[d])){var h=t[d];C(h)?(C(e[d])||(e[d]=[]),s(e[d],h,n),e[d]=n(e[d])):j(h)?(j(e[d])||(e[d]={}),s(e[d],h,n),e[d]=n(e[d])):null==e?(e={},i(t,d,h)||(e[d]=n(h))):i(t,d,h)?delete e[d]:e[d]=n(h)}return n(e)}return n(t)},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]&&(j(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 f(e,t,n,!0)},p=function(e,t,n){return f(e,t,n,!1)},f=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))&&(j(e)||C(e))&&null!=r&&(i&&null==n?delete e[r]:e[r]=n)},v=function(e,t){return h(e,t)},y=function(e,t){return void 0!==d(e,t)},m=function(e){return null==e?e:j(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},E=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 P){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},P=function(e){var t=this;return t.values=e,t},O=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new P(t)},S=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},T=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},k=/^\s*function Array()/,C=function(e){return null!=e&&e.push&&k.test(e.constructor)},A=/^\s*function Object()/,j=function(e){return null!=e&&"object"==typeof e&&A.test(e.constructor)},I=function(e){return null!=e&&"function"==typeof e},M=/^\s*function RegExp()/,L=function(e){return null!=e&&M.test(e.constructor)},D=/^string|number|boolean|function$/i,B=function(e){return null!=e&&(D.test(typeof e)||L(e))},x=function(e){return null==e||(!(!C(e)||e.length)||!!j(e)&&!Object.keys(e).length)},R=function(e,t){if(e===t)return!0;if(null!=e&&null==t||null==e&&null!=t)return!1;var n=!0;return N(e,(function(e,i){e!==d(t,i)&&(n=!1)})),n},F=function(e,t){return R(e,t)&&R(t,e)},W=function(e,t,n,i,a){if(null==n&&(n=[]),B(e))t(e,n,i,a);else if(j(e)||C(e)){for(var s in t(e,n,i,a),e)if(r(e,s)){var u=o.call(n);u.push(s),W(e[s],t,u,e,s)}}else t(e,n,i,a)},N=function(e,t){W(e,(function(e,n,i,r){C(e)||j(e)||t(e,n,i,r)}))},H=function(e,t){for(var n={},i=0;i<t.length;i++){var r=t[i];void 0!==e[r]&&(n[r]=e[r])}return n},V=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},U=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,{assign:()=>r});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){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 r=0;r<n.length;r++)o(e,n[r]);return e},o=function(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return e}},(e,t,n)=>{n.d(t,{cachedDetect:()=>W,detectIsMobile:()=>H});var i,r=n(5),o=n(21),a=navigator.userAgent,s=null,u=/(webkit)[ /]([^\s]+)/i,l=/OPR\/([^\s]+)/i,c=/(edge)\/(\d+(?:\.\d+)?)/i,d=/(mozilla)(?:.*? rv:([^\s)]+))?/i,h=/(android) ([^;]+)/i,p=/(iphone)/i,f=/(Windows Phone OS (\d+(?:\.\d+)?))/,v=/OS (\d+)_(\d+)/i,y=/(firefox)/i,m=/Mobile VR/i,g=/Version\/([^\s]+)/i,b=function(){return(w()[1]||"webkit").toLowerCase()},_=function(){return w()[2]},w=function(){var e;return(e=a.match(c))||(e=a.match(u))||(e=a.match(l))?e:e?(null!=document.documentMode&&(e[2]=document.documentMode),e):(e=a.match(d))||[]},E=function(){var e=a.match(h);return null!=e&&{version:e[2]}},P=function(){return p.test(a)},O=function(){return j()>0||E()||T()},S=function(){try{var e=matchMedia("(hover:hover)");if("not all"!==e.media)return e.matches}catch(e){}return!O()},T=function(){return/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1},k=function(){return u.test(a)&&!/chrome/i.test(a)&&!T()&&!P()},C=function(){return!(!/Chrome/.test(a)||!/Google Inc/.test(navigator.vendor))&&{version:A()}},A=function(){var e=a.match(/\bChrome\/([^\s]+)/);return e&&e[1]},j=function(){var e=a.match(v),t=a.match(g);return null!=e?parseFloat("".concat(e[1],".").concat(e[2])):null!=t&&t[1]&&T()?parseFloat(t[1]):0},I=function(){return c.test(a)},M=function(){return y.test(a)},L=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},D=function(){try{return"localStorage"in r.root&&null!=r.root.localStorage}catch(e){return!1}},B=["WebKit","Moz","O","Ms",""],x=function(){for(var e=0;e<B.length;e++){var t="".concat(B[e],"MutationObserver");if(r.root[t])return t}return null},R=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},F=function(){var e=C(),t=M(),n=I(),i=l.test(a),r=e&&_()>=32,o=e&&_()>=75&&E(),s=t&&_()>=65,u=t&&_()>=67&&E(),c=n&&_()>=18,d=i&&_()>=19;return r||o||s||u||c||d},W=function(){return s||(s=N())},N=function(){var e,t,n,i,s,u,l,c,d,h,p,v,y,g={browser:{version:_()},edge:I(),firefox:M(),gearvr:m.test(a),hdr:!(null===(v=(y=window).matchMedia)||void 0===v||!v.call(y,"(dynamic-range: high)").matches)||!!(screen.colorDepth&&screen.colorDepth>=30),hdrCodecs:{hevc:null!==(n=null===(i=window.MediaSource)||void 0===i||null===(s=i.isTypeSupported)||void 0===s?void 0:s.call(i,'video/mp4; codecs="hvc1.2.4.L153.B0"'))&&void 0!==n&&n,av1:null!==(u=null===(l=window.MediaSource)||void 0===l||null===(c=l.isTypeSupported)||void 0===c?void 0:c.call(l,'video/mp4; codecs="av01.0.08M.10.0.110.09.16.09"'))&&void 0!==u&&u,vp92:null!==(d=null===(h=window.MediaSource)||void 0===h||null===(p=h.isTypeSupported)||void 0===p?void 0:p.call(h,'video/mp4; codecs="vp09.02.10.10.01.09.16.09"'))&&void 0!==d&&d},android:E(),oldandroid:E()&&parseFloat(E().version)<4.1,iphone:P(),ipad:T(),safari:k(),chrome:C(),winphone:{version:f.test(a)[2]},ios:{version:j()},windows:/win/i.test(navigator.platform),mac:/mac/i.test(navigator.platform),retina:null!=r.root.devicePixelRatio&&r.root.devicePixelRatio>1,hoverIsNatural:S(),touchScreen:O(),video:L(),managedMediaSource:"ManagedMediaSource"in window&&"function"==typeof(null===(t=window.ManagedMediaSource)||void 0===t?void 0:t.isTypeSupported),mediaSource:r.root.MediaSource&&r.root.MediaSource.isTypeSupported("".concat('video/mp4; codecs="avc1.42E01E',', mp4a.40.2"')),nativeHls:(P()||T()||k())&&L().nativeHls,localstorage:D(),fullscreenEnabled:document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled,vulcanV2Support:(e=/webkit|mozilla|edge/.test(b()),!!(P()||T()||E())||Boolean(e&&L().h264&&Object.defineProperties)),mutationObserver:x(),callingPlayRequiresEventContext:j()>0||E()||k(),passiveSupported:R(),webp:F(),performanceMeasure:(0,o.hasPerformanceMeasureSupport)()};return g.browser[b()]=!0,g},H=function(){var e=E(),t=T(),n=P();return e||t||n}},(e,t,n)=>{n.d(t,{hasPerformanceMeasureSupport:()=>i});var i=function(){var e=window.performance;return Boolean(e)&&Boolean(e.measure)}},(e,t,n)=>{n.d(t,{count:()=>f,sample:()=>v,send:()=>h});var i=n(23),r=n(10),o=n(18),a=n(24),s=n(33),u=n(32),l=n(36),c=n(1);c.Wistia;null==c.Wistia._metricsCache&&(c.Wistia._metricsCache={});var d=c.Wistia._metricsCache,h=function(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{null==d.toMput&&(d.toMput=[]),null==d.requestId&&(d.requestId=0);var u=(0,o.merge)({type:e,key:t,value:null!=n?n:null,request_id:d.requestId},s),l=JSON.stringify(u);r.wlog.debug("send metrics",l),d.toMput.push(l),(0,i.doTimeout)("metrics.debounce",(function(){(0,a.pageLoaded)((function(){p.apply(undefined,d.toMput),d.toMput=[],d.requestId+=1}))}),500)}catch(e){r.wlog.error(e)}},p=function(){if((0,l.isVisitorTrackingEnabled)()){for(var e="".concat((0,s.proto)(),"//").concat((0,u.metricsHost)(),"/mput?topic=metrics"),t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return fetch(e,{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.join("\n")}).then((function(e){e.ok||console.error(e)})).catch((function(e){console.error(e)}))}},f=function(e){return h("count",e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})},v=function(e,t,n){return h("sample",e,t,n)}},(e,t,n)=>{n.r(t),n.d(t,{clearTimeouts:()=>a,doTimeout:()=>o});var i=n(18),r=n(1);r.Wistia;null==r.Wistia._timeouts&&(r.Wistia._timeouts={});var o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,i.isArray)(e)&&(e=e.join("."));var o=u(e);if(a(e,o),t){var s=r.Wistia._timeouts[o];null==s&&(s=r.Wistia._timeouts[o]={});var l=setTimeout((function(){delete s[e],t()}),n);return s[e]=l,l}return r.Wistia._timeouts[o][e]},a=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,i.isArray)(e)&&(e=e.join(".")),"__global__"===(n=n||u(e))&&(t=r.Wistia._timeouts[e]))for(var o in t){var a=t[o];clearTimeout(a),delete t[o]}if(t=r.Wistia._timeouts[n])for(var l in t){var c=t[l];!l.indexOf||0!==l.indexOf(e)||l.length!==e.length&&"."!==l.charAt(e.length)||(clearTimeout(c),delete t[l])}r.Wistia.blockSweepTimeouts||(r.Wistia.blockSweepTimeouts=!0,setTimeout(s,0),setTimeout((function(){r.Wistia.blockSweepTimeouts=!1}),5e3))},s=function(){for(var e in r.Wistia._timeouts){var t=r.Wistia._timeouts[e];(0,i.isEmpty)(t)&&delete r.Wistia._timeouts[e]}},u=function(e){var t=e.indexOf(".");return t>0?e.substring(0,t):"__global__"}},(e,t,n)=>{n.r(t),n.d(t,{addInlineCss:()=>b,currentEventSource:()=>ve,docScrollLeft:()=>he,docScrollTop:()=>de,elemAddClass:()=>A,elemAfter:()=>T,elemAncestorHasClass:()=>Y,elemAncestorWithClass:()=>K,elemAncestors:()=>Q,elemAnimate:()=>$,elemAppend:()=>P,elemBefore:()=>S,elemBind:()=>Z,elemBindKey:()=>ne,elemBindOnce:()=>re,elemCancelFullscreen:()=>ue,elemClasses:()=>L,elemClone:()=>E,elemContainsOffset:()=>V,elemFromObject:()=>_,elemHasClass:()=>j,elemHeight:()=>H,elemHtml:()=>v,elemInDom:()=>G,elemIsDescendantOf:()=>q,elemIsHidden:()=>z,elemIsInside:()=>X,elemMutationObserver:()=>ce,elemOffset:()=>l.elemOffset,elemPrepend:()=>O,elemRebind:()=>ie,elemRemove:()=>k,elemRemoveClass:()=>C,elemRequestFullscreen:()=>se,elemScrollOffset:()=>U,elemStripEventAttributes:()=>le,elemStyle:()=>B,elemToObject:()=>w,elemTrigger:()=>oe,elemUnbind:()=>J,elemUnbindAll:()=>ee,elemUnbindAllInside:()=>te,elemWidth:()=>N,elemZoom:()=>l.elemZoom,execCssTags:()=>m,execScriptTags:()=>c.execScriptTags,formInputIsFocused:()=>fe,fullscreenElement:()=>ae,getComputedStyle:()=>W,getCssTags:()=>y,getLastActiveEventAt:()=>me,getScriptTags:()=>c.getScriptTags,inUserEventContext:()=>ye,isBoxModel:()=>l.isBoxModel,isDocReady:()=>o.isDocReady,onDocReady:()=>o.onDocReady,pageLoaded:()=>a.pageLoaded,propsWithVendorPrefixes:()=>F,removeCssTags:()=>g,removeScriptTags:()=>c.removeScriptTags,safeRequestAnimationFrame:()=>pe});var i,r=n(18),o=n(25),a=n(27),s=n(20),u=n(10),l=n(28),c=n(29),d=n(35),h=n(1),p=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},f=(h.Wistia,(0,s.cachedDetect)()),v=function(e,t){var n=y(t),i=(0,c.getScriptTags)(t);return t=g(t),t=(0,c.removeScriptTags)(t),e.innerHTML=t,m(n,e),(0,c.execScriptTags)(i)},y=function(e){return e.match(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi)||[]},m=function(e,t){if(!e)return null;(0,r.isArray)(e)||(e=y(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=b(t||document.body||document.head,u[1]);n.push(l)}}}return n},g=function(e){return e.replace(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi,"")},b=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},_=function(e){if((0,r.isArray)(e)){for(var t=[],n=0;n<e.length;n++)t.push(_(e[n]));return t}var i=e.tagName||"div",o=e.childNodes||[];(0,r.isArray)(o)||(o=[o]);var a=document.createElement(i);for(var s in e)if(p(e,s)){var u=e[s];if("childNodes"!==s&&"tagName"!==s&&"ref"!==s){var l=s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if("style"===s)if((0,r.isObject)(u))for(var c in u)a.style[c]=u[c];else for(var d=u.split(";"),h=0;h<d.length;h++){var f=d[h].split(/\s*:\s*/),v=f[0],y=f[1];v&&y&&(a.style[v]=y)}else if("events"===s)for(var m in u){var g=u[m];Z(a,m,g)}else"className"===s||"class"===s?a.className=u:"innerHTML"===s?a.innerHTML=u:"innerText"===s?a.innerText=u:null!=u&&"function"==typeof u.toString&&a.setAttribute(l,u.toString())}}for(var b=0;b<o.length;b++){var w=o[b];if((0,r.isObject)(w)){var E=_(w);P(a,E)}else{var O=document.createTextNode(w.toString());P(a,O)}}return"function"==typeof e.ref&&e.ref(a),a},w=function(e){if((0,r.isArray)(e))for(var t=[],n=0;n<e.length;n++)t.push(w(e[n]));var i={};i.tagName=e.tagName.toLowerCase();for(var o=Object.keys(e),a=0;a<o.length;a++){var s=o[a];if("tagName"!==s&&"childNodes"!==s&&"nodeType"!==s&&"nodeValue"!==s)if("style"===s){i.style={};for(var u=Object.keys(e.style),l=0;l<u.length;l++){var c=u[l],d=e.style[c];d&&!/^\d/.test(c)&&"length"!==c&&(i.style[c]=d)}}else{var h=e.getAttribute(s);null!=h&&(i[s]=h)}}for(var p=[],f=0;f<e.childNodes.length;f++){var v=e.childNodes[f];1===v.nodeType?p.push(w(v)):3===v.nodeType&&p.push(v.nodeValue)}return p.length>0&&(i.childNodes=p),i},E=function(e){var t=w(e);return _(t)},P=function(e,t){if((0,r.isArray)(t))for(var n=0;n<t.length;n++)P(e,t[n]);else e.tagName.includes("-")?e.shadowRoot.appendChild(t,{wistiaGridCaller:!0}):e.appendChild(t,{wistiaGridCaller:!0})},O=function(e,t){if(!(0,r.isArray)(t))return 0===e.childNodes.length?P(e,t):e.insertBefore(t,e.childNodes[0]);for(var n=0;n<t.length;n++)O(e,t[n])},S=function(e,t){if(!(0,r.isArray)(t))return e.parentNode.insertBefore(t,e);t=t.reverse();for(var n=0;n<t.length;n++)S(e,t[n])},T=function(e,t){if(!(0,r.isArray)(t))return e.parentNode.insertBefore(t,e.nextSibling);t=t.reverse();for(var n=0;n<t.length;n++)T(e,t[n])},k=function(e){var t;if((0,r.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var n=0;n<e.length;n++)k(e[n]);else null==e||1!==e.nodeType&&3!==e.nodeType||!(t=e.parentNode)||(t.removeChild(e),e=null)},C=function(e,t){if((0,r.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var n=0;n<e.length;n++)C(e[n],t);else if(j(e,t)){var i=e.getAttribute("class");if(i){var o=new RegExp("\\b".concat(t,"\\b"),"g"),a=D(i.replace(o,""));e.setAttribute("class",a)}}},A=function(e,t){if((0,r.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var n=0;n<e.length;n++)A(e[n],t);else if(!j(e,t)){var i,o=e.getAttribute("class");o?(C(e,t),i=D("".concat(o," ").concat(t))):i=t,e.setAttribute("class",i)}},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,I})),i},I={},M=function(e,t,n){for(var i=-1;-1!=(i=e.indexOf(t,i+1))&&n(i)!==I;);},L=function(e){return e&&"string"!=typeof e.className?[""]:(e&&e.className||"").split(/\s+/)},D=function(e){return e.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," ")},B=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((0,r.isArray)(e)||window.NodeList&&e instanceof NodeList){for(var o=[],a=0;a<e.length;a++){var s=e[a];1===s.nodeType&&o.push(B.apply(void 0,[s].concat(n)))}return o}if(2===n.length){var l=n[0],c=n[1];e.style[l]=c}else if(1===n.length)if("string"==typeof n[0]){var d=n[0];try{return e.currentStyle?e.currentStyle[d]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(d):null}catch(e){u.wlog.notice(e)}}else{var h=F(n[0]);for(var p in h){var f=h[p];e.style[p]=f}}else u.wlog.apply(void 0,["Unexpected args",e].concat(n))},x={borderImage:!0,mixBlendMode:!0,transform:!0,transition:!0,transitionDuration:!0},R=["webkit","moz","o","ms"],F=function(e){if(f.chrome)return e;var t={};for(var n in e){var i=e[n];if(t[n]=i,x[n])for(var r=R,o=0;o<r.length;o++){var a=r[o]+n.charAt(0).toUpperCase()+n.slice(1);n[a]||(t[a]=i)}}return t},W=function(e,t){if(!window.getComputedStyle)return null;var n=window.getComputedStyle(e,null);return null==n?null:null!=t?n[t]:n},N=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=W(e,"width"))&&null!=i?parseFloat(i):e.currentStyle?e.offsetWidth:-1},H=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=W(e,"height"))&&null!=i?parseFloat(i):e.currentStyle?e.offsetHeight:-1},V=function(e,t,n){var i=(0,l.elemOffset)(e);return i.right=i.left+N(e),i.bottom=i.top+H(e),i.left<=t&&t<i.right&&i.top<=n&&n<i.bottom},U=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},G=function(e){for(;e;){if(e===document)return!0;e=e.parentNode||e.getRootNode().host}return!1},q=function(e,t){for(var n=Q(e),i=0;i<n.length;i++)if(n[i]===t)return!0;return!1},K=function(e,t){for(var n=Q(e),i=0;i<n.length;i++)if(j(n[i],t))return n[i];return null},Y=function(e,t){return!!K(e,t)},Q=function(e){for(var t=e,n=[];t=t.parentNode;)n.push(t);return n},X=function(e,t){return e===t||q(e,t)},$=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=function(e,t,n){var i=[];for(var r in e)i.push("".concat(r," ").concat(t,"ms ").concat(n));return i.join(",")}(t,n.time,n.easing);B(e,{transition:i}),pe((function(){B(e,t),setTimeout((function(){B(e,{transition:""}),"function"==typeof n.callback&&n.callback()}),n.time)}))},Z=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+he(),i.pageY=i.clientY+de()),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===J&&J(e,t,n),s};h.Wistia._elemBind=h.Wistia._elemBind||{};var o=ne(e,t,n);return h.Wistia._elemBind[o]=r,r.elem=e,r.event=t,e.addEventListener(t,r,i),function(){J(e,t,n,i)}},J=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=ne(e,t,n),o=h.Wistia._elemBind[r];return o&&(e.removeEventListener(t,o,i),o.elem=null,o.event=null),delete h.Wistia._elemBind[r]}},ee=function(e){for(var t in h.Wistia._elemBind){var n=h.Wistia._elemBind[t];if(n&&e===n.elem){var i=n.event;n.elem.removeEventListener(i,n,!1),n.elem=null,n.event=null,delete h.Wistia._elemBind[t]}}},te=function(e){var t=0;for(var n in h.Wistia._elemBind){var i=h.Wistia._elemBind[n];if(i&&X(i.elem,e)){var r=i.event;i.elem.removeEventListener(r,i,!1),i.elem=null,i.event=null,delete h.Wistia._elemBind[n],t+=1}}return t},ne=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)},ie=function(e,t,n){if(n)return J(e,t,n),Z(e,t,n)},re=function(e,t,n){return Z(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),J}))},oe=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)},ae=function(){return document.fullscreenElement||document.webkitFullscreenElement},se=function(e){try{if(e.requestFullscreen&&document.fullscreenEnabled)return e.requestFullscreen().catch((function(e){return u.wlog.notice("requestFullscreen failed",e),Promise.reject(e)}));if(e.webkitEnterFullscreen)return e.webkitEnterFullscreen(),Promise.resolve()}catch(e){return u.wlog.notice("requestFullscreen failed",e),Promise.reject(e)}return u.wlog.notice("no requestFullscreen functionality detected"),Promise.resolve()},ue=function(e){return document.exitFullscreen?document.exitFullscreen():e&&e.webkitExitFullscreen?new Promise((function(t){e.webkitExitFullscreen(),t()})):(u.wlog.notice("no cancelFullscreen functionality detected"),Promise.resolve())},le=function(e){var t=e&&e.attributes||[];try{for(var n=0;n<t.length;n++){var i=t[n];/^on.+/i.test(i.name)&&(e[i.name]=null,e.removeAttribute(i.name))}}catch(e){u.wlog.error(e)}if(e.childNodes)for(var r=0;r<e.childNodes.length;r++){var o=e.childNodes[r];1===o.nodeType&&le(o)}},ce=function(e){var t=f.mutationObserver;return t?new window[t](e):null},de=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)},he=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)},pe=function(e){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)})(e)},fe=function(){var e=document.activeElement;return"WISTIA-PLAYER"===document.activeElement.tagName&&(e=document.activeElement.shadowRoot.activeElement),"WISTIA-FORM-EMBED"===e.tagName&&(e=e.shadowRoot.activeElement),/^textarea|input|select$/i.test(e.tagName)||e.isContentEditable},ve=function(){return ye()?"user-event":"non-user-event"},ye=function(){return!!i},me=function(){return ge},ge=-1;["auxclick","click","contextmenu","dblclick","focus","keydown","keypress","keyup","mousedown","mouseup","reset","submit","touchend","touchstart"].forEach((function(e){Z(document,e,(function(e){i=e,ge=Date.now(),setTimeout((function(){i===e&&(i=void 0)}),0)}),!f.passiveSupported||{capture:!0,passive:!0})}))},(e,t,n)=>{n.d(t,{isDocReady:()=>r,onDocReady:()=>o});var i=n(26),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){(0,i.poll)((function(){try{return document.documentElement.doScroll("left"),!0}catch(e){return!1}}),t,50,e,t)}else{var n=function(){r()&&(clearTimeout(a),o(),t())},o=function(){document.removeEventListener("DOMContentLoaded",n,!1),document.removeEventListener("readystatechange",n,!1),window.removeEventListener("load",n,!1)},a=setTimeout((function(){o(),t()}),e);document.addEventListener("DOMContentLoaded",n,!1),document.addEventListener("readystatechange",n,!1),window.addEventListener("load",n,!1)}}},(e,t,n)=>{n.d(t,{poll:()=>i});var i=function(e,t,n,i,r){var o=null,a=(new Date).getTime(),s=function(){(new Date).getTime()-a>i?"function"==typeof r&&r():e()?t():(clearTimeout(o),o=setTimeout(s,n))};o=setTimeout(s,1)}},(e,t,n)=>{n.d(t,{pageLoaded:()=>i});var 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)=>{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){return e&&e!==document.documentElement?a(e.parentElement)*(getComputedStyle(e).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__(30),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=[],_loop=function _loop(){var scriptTag=scriptTags[i],hash={},matches=scriptTag.match(/<script.*?>/i);if(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)){var src=matches[1];hash.fn=function(){return eval(src)}}hashes.push(hash)},i=0;i<scriptTags.length;i++)_loop();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:()=>u,removeScriptsBySrc:()=>l,runScript:()=>c,runScripts:()=>d});var i=n(10),r=n(18),o=n(31);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,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=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("?");o=a[0]}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},l=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(){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)}};t=u(e,n);)i()},c=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=u(e))&&(n=!0),r.once&&n?t.readyState&&!/loaded|complete/.test(t.readyState)||setTimeout((function(){a()}),1):(0,o.runScript)(e,i).then(a).catch((function(e){a(e),setTimeout((function(){console.error(e)}),1)}))}))},d=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=h(e);var o=[],u=[],l=[];return e.forEach((function(e){var t=function(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){s(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}({},e),n=new Promise((function(e){t.resolve=e}));t.promise=n,l.push(t.promise),e.async?o.push(t):u.push(t)})),u.reduce((function(e,t){if(t.fn)try{t.fn()}catch(e){i.wlog.error(e)}finally{t.resolve()}else t.src&&c(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&&c(e.src,null,e).then(e.resolve)}))}),1),Promise.all(l)},h=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,{runScript:()=>r});var i=n(32),r=function(e,t){var n=i.TAGGED_VERSION;return new Promise((function(i,r){var o;null==t&&(t=8e3),(o=document.createElement("script")).src=e,o.async=!0,o.type="text/javascript",/https?:\/\/fast\.wistia\./.test(o.src)&&""!==n&&n.length>0&&(o.src="".concat(o.src,"@").concat(n));var a=null,s=!1,u=function(){o.onerror=o.onreadystatechange=o.onload=null,clearTimeout(a),clearTimeout(c),a=setTimeout((function(){o&&o.parentNode&&o.parentNode.removeChild(o)}),500)},l=function(){var e=o.readyState;s||e&&!/loaded|complete/.test(e)||(s=!0,setTimeout((function(){i(),u()}),1))},c=setTimeout((function(){s=!0,u(),r(new Error("timeout"))}),t);o.onerror=function(e){s=!0,u(),r(e)},o.onreadystatechange=l,o.onload=l,(document.body||document.head).appendChild(o)}))}},(e,t,n)=>{n.r(t),n.d(t,{CURRENT_SHA:()=>m,EMBED_HOST:()=>l,PROD_EMBED_HOST:()=>h,PROD_FASTLY_SSL_HOST:()=>f,PROD_FAST_HOSTNAME_COM:()=>d,PROD_FAST_HOSTNAME_NET:()=>c,PROD_SSL_EMBED_HOST:()=>p,SSL_EMBED_HOST:()=>v,TAGGED_VERSION:()=>y,VALID_FASTLY_HOSTS:()=>M,appHost:()=>_,cdnFastProtectedWistiaComHost:()=>P,cdnFastWistiaCanaryHost:()=>S,cdnFastWistiaComHost:()=>E,cdnFastWistiaNetHost:()=>O,deliveryHost:()=>b,eV1Host:()=>k,eV1HostWithPort:()=>C,eV1Protocol:()=>A,eV1Url:()=>T,forceValidFastWistiaHost:()=>D,getDevFastHostname:()=>w,isEmbedOnACustomerPage:()=>B,mediaDataHost:()=>j,metricsHost:()=>I});var i=n(5),r=n(33),o=n(34),a=(0,o.appHostname)("app"),s=(0,o.appHostname)("fast-protected"),u=(0,o.appHostname)("fast"),l="embed.wistia.com",c="fast.wistia.net",d="fast.wistia.com",h="embed.wistia.com",p="embed-ssl.wistia.com",f="embed-fastly.wistia.com",v="embed-ssl.wistia.com",y="0.6.6",m="baa38e5fb575eeb41b12d9518c0a44145ee8bd09",g="undefined"!=typeof window&&i.root===window&&i.root.location?i.root.location.protocol:"https:",b=function(){return function(e,t,n){return"https:"===e?t:n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,v,l)},_=function(){return a},w=function(){var e=(0,o.getSubdomainSuffixHostname)("fast");return e||null},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(e)return e;var t=w();return t||u},P=function(e){return e||s},O=function(){var e=w();if(e)return e;return"fast.".concat("wistia.net")},S=function(){return"fast-canary.wistia.net"},T=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?\.js$/.test(i.rawPath),a=i.host===E()||i.host===O()||i.host===S(),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(O(),"/E-v1.js"))}(),k=function(){return T.host},C=function(){return T.port?"".concat(k(),":").concat(T.port):k()},A=function(){return T.protocol},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.embedHost?D(e.embedHost):C()},I=function(){return"pipedream.".concat("wistia.com")},M=[].concat(["wistia.net","wistia.com"],["wistia.mx","wistia.dev","wistia.tech","wistia.am","wistia.se","wistia.io","wistia.st"]),L=new RegExp("(".concat(M.map((function(e){return"\\.".concat(e.replace(".","\\."))})).join("|"),")$")),D=function(e){return e&&L.test(e)?e:C()},B=function(){return null===window.location.href.match(/^http(s)?:\/\/(\S)*.wistia.(io|test|st|com)/gi)}},(e,t,n)=>{n.r(t),n.d(t,{Url:()=>f,brack:()=>d,createUrl:()=>y,debrack:()=>h,joinPath:()=>c,objectToQueryParams:()=>u,parseUrl:()=>m,proto:()=>o,queryParamsToObject:()=>a,splitPath:()=>l,urlComponentToObject:()=>s});var i=n(18),r=n(10),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=function(){var e=n[a].split("="),o=e[0],u=e[1];try{o=h(decodeURIComponent(o))||""}catch(e){setTimeout((function(){r.wlog.notice(e)}),50),o=""}(0,i.cast)(o);var l=(0,i.getDeep)(t,o);if(null!=l)if((0,i.isArray)(l))l.push(s(u));else{var c=[l];c.push(s(u)),(0,i.setAndPreserveUndefined)(t,o,c)}else(0,i.setAndPreserveUndefined)(t,o,s(u))},a=0;a<n.length;a++)o();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)},p=["protocol","host","port","params","path"],f=function(e){var t=this;t.params={},t.path=[],t.host="",t.rawPath="","object"==typeof e?t.fromOptions(e):e&&t.fromRaw(e)},v=f.prototype;v.fromOptions=function(e){for(var t=0;t<p.length;t++){var n=p[t];null!=e[n]&&(this[n]=e[n])}return this},v.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},v.clone=function(){return new f({protocol:this.protocol,host:this.host,port:this.port,path:(0,i.clone)(this.path),params:(0,i.clone)(this.params),anchor:this.anchor})},v.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},v.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)},v.toString=function(){return this.isRelative()?this.relative():this.absolute()},v.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())},v.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())},v.authority=function(){var e=null!=this.port?":".concat(this.port):"";return"".concat(this.host).concat(e)},v.relativeProtocol=function(){var e="";return null!=this.port&&(e=":".concat(this.port)),"//".concat(this.host).concat(e).concat(this.relative())},v.relativeAnchor=function(){var e="";return null!=this.anchor&&(e="#".concat(this.anchor)),"".concat(e)},v.setPath=function(e){this.rawPath=e,this._hasTrailingSlash=/\/$/.test(this.rawPath),this.path=l(this.rawPath)},f.create=function(e){return new f(e)};var y=f.create;f.parse=function(e){return new f(e)};var m=f.parse},(e,t,n)=>{n.d(t,{appHostname:()=>o,getSubdomainSuffixHostname:()=>a});var i=/([a-z0-9-]+)-cde-([a-z0-9-]+)\.([a-z0-9-]+)\.wistia\.io/i,r=/([a-z0-9-]+)-txl-([a-z0-9-]+)\.([a-z0-9-]+)\.mtl\.wistia\.io/i,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"app",t=a(e);return t||"".concat(e,".").concat("wistia.com")},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"app";if("undefined"!=typeof window&&window.location){var t=window.location.hostname,n=i.exec(t);if(n)return"".concat(e,"-cde-").concat(n[2],".").concat(n[3],".wistia.io");var o=r.exec(t);if(o)return"".concat(e,"-txl-").concat(o[2],".").concat(o[3],".mtl.wistia.io")}return null}},(e,t,n)=>{n.d(t,{seqId:()=>r});var i=n(1),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.Wistia._sequenceVal||1,r="".concat(e).concat(n).concat(t);return i.Wistia._sequenceVal=n+1,r}},(e,t,n)=>{n.d(t,{isVisitorTrackingEnabled:()=>d});var i=n(11),r=n(37),o=n(39),a=n(1);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){if("string"==typeof e)return u(e,t);var n={}.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}}(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=Array(t);n<t;n++)i[n]=e[n];return i}var l;a.Wistia._visitorTrackingDomain||(a.Wistia._visitorTrackingDomain=location.hostname||""),a.Wistia._visitorTracking||(null!=(l=(0,r.getWistiaLocalStorage)().visitorTrackingEnabled)&&((0,r.updateWistiaLocalStorage)((function(e){return delete e.visitorTrackingEnabled})),a.Wistia._visitorTracking={},a.Wistia._visitorTracking[a.Wistia._visitorTrackingDomain]={isEnabled:l,updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(e){return e.visitorTracking=a.Wistia._visitorTracking}))),a.Wistia._visitorTracking=(0,r.getWistiaLocalStorage)().visitorTracking||{});a.Wistia.consent=function(e){return null==e?d():c(e)};var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Wistia._visitorTrackingDomain;"default"===e?delete a.Wistia._visitorTracking[t]:a.Wistia._visitorTracking[t]={isEnabled:"true"==="".concat(e),updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(e){return e.visitorTracking=a.Wistia._visitorTracking})),(0,i.globalTrigger)("visitortrackingchange",e),s(document.getElementsByTagName("wistia-player")).forEach((function(t){t.dispatchEvent(new CustomEvent("visitor-tracking-change",{detail:{isTrackingEnabled:e}}))}))},d=function(){if("boolean"==typeof a.Wistia._visitorTracking)return a.Wistia._visitorTracking;if(a.Wistia._visitorTracking){var e=function(){if(a.Wistia._visitorTrackingDomain)for(var e=a.Wistia._visitorTrackingDomain.split(".");e.length>0;){var t=a.Wistia._visitorTracking[e.join(".")],n=t&&t.isEnabled;if(null!=n)return n;e.shift()}}();if(null!=e)return Boolean(e)}var t=(0,o.getAllApiHandles)();if(a.Wistia.channel&&a.Wistia.channel.all)try{t.push.apply(t,s(a.Wistia.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(38),r=n(1),o="wistia",a=function(){return(0,i.getLocalStorage)(o)},s=function(){return r.Wistia._localStorage=(0,i.removeLocalStorage)(o),r.Wistia._localStorage},u=function(e){return r.Wistia._localStorage=(0,i.updateLocalStorage)(o,e),r.Wistia._localStorage}},(e,t,n)=>{n.d(t,{getLocalStorage:()=>u,removeLocalStorage:()=>l,setLocalStorage:()=>c,updateLocalStorage:()=>d});var i=n(1),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.Wistia._localStorageWorks)return i.Wistia._localStorageWorks;try{var t=localStorage.getItem(e);localStorage.removeItem(e),localStorage.setItem(e,t),localStorage.removeItem(e),i.Wistia._localStorageWorks=!0}catch(e){i.Wistia._localStorageWorks=!1}return i.Wistia._localStorageWorks},s=function(){return null==i.Wistia[o]&&(i.Wistia[o]={}),i.Wistia[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.d(t,{getAllApiHandles:()=>l,getAllApiHandlesByDomOrder:()=>h,getOneApiHandle:()=>c,getOneApiHandleFromHashedId:()=>d});var i=n(40),r=n(10),o=n(41),a=n(42);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){if("string"==typeof e)return u(e,t);var n={}.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}}(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=Array(t);n<t;n++)i[n]=e[n];return i}var l=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")))},c=function(e){var t,n,i;if(void 0===e)return null!==(i=l()[0])&&void 0!==i?i:null;var o=null;if("string"==typeof e){var s,u=e;if(null===(o=null!==(s=document.querySelector("[unique-id='".concat(u,"']")))&&void 0!==s?s:document.getElementById(u))){var c,d=l().find((function(e){var t,n;if(null!==(t=e.hashedId())&&void 0!==t&&t.startsWith(u)||null!==(n=e.container)&&void 0!==n&&n.id.startsWith(u))return e;if("mediaLanguages"in e&&"languageToLocalization"in e){var i;if(e.mediaLanguages().some((function(t){var n=e.languageToLocalization(t);return null!=n&&(0,a.ensureString)(n.hashedId).startsWith(u)})))return e;if((0,a.ensureString)(null===(i=e._mediaData)||void 0===i?void 0:i.sourceHashedId).startsWith(u))return e}return null}));if("removed"!==d)o=null!==(c=null==d?void 0:d.container)&&void 0!==c?c:null}}else if("number"==typeof e){var h=e,p=l();h<0&&(h=p.length+h);var f,v=p[h];if(void 0!==v&&"removed"!==v)o=null!==(f=v.container)&&void 0!==f?f: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.deprecatedApiDoNotUse:void 0!==(null===(n=o)||void 0===n?void 0:n.wistiaApi)&&"removed"!==o.wistiaApi?o.wistiaApi:null},d=function(e){var t,n,i,r=null,o=e,a=l().find((function(e){var t;return null!==(t=e.hashedId())&&void 0!==t&&t.startsWith(o)?e:null}));"removed"!==a&&(r=null!==(i=null==a?void 0:a.container)&&void 0!==i?i:null);return"WISTIA-PLAYER"===(null===(t=r)||void 0===t?void 0:t.tagName)?r.deprecatedApiDoNotUse:void 0!==(null===(n=r)||void 0===n?void 0:n.wistiaApi)&&"removed"!==r.wistiaApi?r.wistiaApi:null},h=function(){var e=Array.from((0,i.getAllApiEmbedElements)("wistia_embed_initialized")).reduce((function(e,t){return void 0!==t.wistiaApi&&"removed"!==t.wistiaApi&&null!==t.wistiaApi&&e.push(t.wistiaApi),e}),[]),t=Array.from(document.querySelectorAll("wistia-player")).reduce((function(e,t){return void 0!==t.deprecatedApiDoNotUse&&"removed"!==t.deprecatedApiDoNotUse&&null!==t.deprecatedApiDoNotUse&&e.push(t.deprecatedApiDoNotUse),e}),[]);return[].concat(s(e),s(t))}},(e,t,n)=>{n.d(t,{getAllApiEmbedElements:()=>i});var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_embed",t=document.querySelectorAll("div.".concat(e,",span.").concat(e,",iframe.").concat(e));return Array.from(t).map((function(e){var t;return"WISTIA-PLAYER"===(null===(t=e.lastChild)||void 0===t?void 0:t.nodeName)?e.lastChild:e}))}},(e,t,n)=>{n.r(t),n.d(t,{wData:()=>o,wRemoveData:()=>a});var i=n(18),r=n(1),o=function(e,t){return(0,i.isArray)(e)||(e=e.split(".")),null!=t&&(0,i.setDeep)(r.Wistia,["_data"].concat(e),t),(0,i.getDeep)(r.Wistia,["_data"].concat(e))},a=function(e){return(0,i.isArray)(e)||(e=e.split(".")),(0,i.unsetDeep)(r.Wistia,["_data"].concat(e))}},(e,t,n)=>{n.d(t,{ensureString:()=>i});var i=function(e){return null==e?"":e.toString()}},(e,t,n)=>{n.d(t,{removeLocalStorage:()=>s,setOrGet:()=>a});var i=n(37),r=n(18),o=n(1);o.Wistia._localStorage||(o.Wistia._localStorage=(0,i.getWistiaLocalStorage)());var a=function(e,t){if(null!=t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?r.unsetDeep:r.setDeep;return o.Wistia._localStorage=(0,i.updateWistiaLocalStorage)((function(i){return n(i,e,t)})),t}return null!=e?(0,r.getDeep)(o.Wistia._localStorage,e):o.Wistia._localStorage},s=function(e){return a(e,"nada",!0)};i.removeWistiaLocalStorage},(e,t,n)=>{n.r(t),n.d(t,{BAKERY_HOSTS:()=>D,FAILED:()=>h,PROCESSING:()=>f,QUEUED:()=>p,READY:()=>v,channelArtworkStill:()=>A,filter:()=>m,filterOver400:()=>E,findClosestAssetByQuality:()=>k,getStillWidth:()=>L,hasAnyReadyHdrAssets:()=>R,iphone:()=>G,isBakeryUrl:()=>B,m3u8:()=>N,moveToFront:()=>Q,mp4:()=>F,nearestOutsideRange:()=>Y,nonfailedPublicOver400:()=>O,numericSizeSnapped:()=>T,one:()=>g,onePublicReadyWithContainer:()=>x,original:()=>H,originalAspect:()=>z,playable:()=>V,readyPublicM3u8s:()=>w,readyPublicMp3s:()=>b,readyPublicMp4s:()=>_,readyPublicOver400:()=>P,smallestNormalMp4:()=>q,still:()=>C,stillUrl:()=>M,thumbnailAssets:()=>j,urlWithCorrectHost:()=>K,videoAspect:()=>U,webm:()=>W,withinQualityRange:()=>S});var i=n(18),r=n(33),o=n(20),a=n(32),s=n(10),u=n(34);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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.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)?c(e,t):void 0}}(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=Array(t);n<t;n++)i[n]=e[n];return i}var d=Array.prototype.slice,h=-1,p=0,f=1,v=2,y=["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=S(e,t.qualityMin,t.qualityMax),t=(0,i.except)(t,["qualityMin","qualityMax"]));var n=(0,i.only)(t,y),r=n.select||(0,i.except)(t,y);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:v,public:!0})},_=function(e){return m(e,{container:"mp4",status:v,public:!0})},w=function(e){return m(e,{container:"m3u8",status:v,public:!0})},E=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},P=function(e){return E(m(e,{container:/mp4/,public:!0,status:v}))},O=function(e){return E(m(e,{container:/mp4/,public:!0,status:function(e){return e!==h}}))},S=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=T(e.width,e.height);return t<=i&&i<=n}})},T=function(e,t){if(t>e){var n=e;e=t,t=n}return e/t<1.05&&(e=t*(16/9)),e>=3740?2160:e>=3100?1800:e>=2460?1440:e>=1820?1080:e>=1180?720:e>=860?540:e>=540?360:t},k=function(e,t){var n;n="4k"===t?2160:parseInt(t,10);var i=S(e,n,n)[0];if(i)return i;var r=Y(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"})},j=function(e,t){if(t.stillUrl)return[{height:null,url:t.stillUrl,width:null}];var n=C(e);if(null!=t.instantHlsStillAsset&&(!n||/mp4/.test(n.container)))return[t.instantHlsStillAsset];if(null!=t.originalFileStillAsset&&(!n||/mp4/.test(n.container)))return[t.originalFileStillAsset];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:M(e,{videoWidth:t,videoHeight:n,playButton:!1}),width:t}}))},I=(0,u.appHostname)("fast"),M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=C(e);if(n){if(n.status!==v){var o=A();return o&&o.status===v?o.url:"//".concat(I,"/assets/images/blank.gif")}var s=(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,u=t.videoHeight,l=new r.Url(t.stillUrl);return t.retina&&(l.params.image_play_button_size="2x",s*=2,u*=2),t.stillSnap&&(s=L({videoWidth:s,stillAssetWidth:n.width||640}),u=Math.round(s/t.aspect)),B(t.stillUrl)?("https:"===t.protocol&&(l.protocol="https:",l.host=t.embedHost===a.PROD_FAST_HOSTNAME_COM||t.embedHost===a.PROD_FAST_HOSTNAME_NET?a.PROD_SSL_EMBED_HOST:a.SSL_EMBED_HOST),l.params.image_crop_resized="".concat(s,"x").concat(u),(null==t.playButton||t.playButton)&&(l.params.image_play_button_rounded=1,l.params.image_play_button_color="".concat("".concat(t.playerColor).replace(/^#+/,""),"e0")),t.ext&&l.ext(t.ext),"bin"===l.ext()&&l.ext("jpg"),l.absolute()):t.stillUrl}},L=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)},D=[a.EMBED_HOST,a.SSL_EMBED_HOST,(0,u.appHostname)("embed"),(0,u.appHostname)("prime"),(0,u.appHostname)("mixergy-cdn"),(0,u.appHostname)("embed-fastly"),a.PROD_EMBED_HOST,a.PROD_SSL_EMBED_HOST,a.PROD_FASTLY_SSL_HOST],B=function(e){if(null==e)return!1;var t=new r.Url(e);return!!t.host&&D.join(",").indexOf(t.host)>=0},x=function(e,t,n){return n=(0,i.merge)({container:t,public:!0,status:v},n),g(e,n)},R=function(e){return e.some((function(e){return"hdr_video"===e.type&&e.status===v&&e.public&&"mp4"===e.container}))},F=function(e,t){return x(e,"mp4",t)},W=function(e,t){return x(e,"webm",t)},N=function(e,t){return x(e,"m3u8",t)},H=function(e){return g(e,{type:"original"})},V=function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.cachedDetect)()).video.webm&&W(e,t)||F(e,t)},U=function(e){var t=F(e)||N(e)||W(e)||H(e);return t&&t.height?t.width/t.height:640/360},z=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},G=function(e,t){if(U(e)>1)return t=(0,i.merge)({width:640},t),F(e,t)||q(e,t);var n=(0,i.merge)({width:320},t),r=(0,i.merge)({width:640},t);return F(e,n)||F(e,r)||q(e,t)},q=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 B(e)&&("https:"===t?(n.host=a.deliveryHost(location.protocol),n.protocol="https:"):(n.host=a.deliveryHost(location.protocol),n.protocol="http:")),n.absolute()},Y=function(e,t,n){if(0===e.length)return[];for(var i,r,o=d.call(e).sort((function(e,t){return T(e.width,e.height)-T(t.width,t.height)})),a=0;a<o.length;a++){var u=o[a],l=T(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.r(t),n.d(t,{cacheMedia:()=>v,mediaDataScriptRegExp:()=>f,mediaDataUrl:()=>p,mediaFromCache:()=>g,transformResponse:()=>h,uncacheMedia:()=>y});var i=n(1),r=n(5),o=n(18),a=n(30),s=n(46),u=n(32),l=n(48);function c(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 d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e,t){var n,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),r=(0,o.merge)({},null===(n=i.media)||void 0===n?void 0:n.embedOptions,t);return i.error?i:(delete i.media.unnamed_assets,(0,l.mediaDataTransforms)(i.media,r),i.media)},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,u.mediaDataHost)(t);return"".concat((0,u.eV1Protocol)(),"//").concat(n,"/embed/medias/").concat(e,".json")},f=function(e){var t="https:"===location.protocol?"https":"https?";return new RegExp("^(".concat(t,":)?//((").concat((0,u.cdnFastWistiaComHost)().replace(".","\\."),")|(").concat((0,u.cdnFastWistiaNetHost)().replace(".","\\."),"))/embed/medias/").concat(e,"\\.jsonp\\??"))},v=function(e,t){return(0,s.cacheMediaData)(e,t)},y=function(e){var t;(0,s.uncacheMediaData)(e),null===(t=i.Wistia.uncacheCaptions)||void 0===t||t.call(i.Wistia,e),m(e)},m=function(e){window["wistiajsonp-/embed/medias/".concat(e,".json")]=null,(0,a.removeScriptsBySrc)(p(e),{scriptRegex:f(e)})},g=function(e){return b(e)},b=function(e){var t=(0,s.getMediaDataFromCache)(e);if(t)return t;var n=r.root["wistiajsonp-/embed/medias/".concat(e,".json")];return null!=n&&n.media?n.media:null}},(e,t,n)=>{n.d(t,{cacheMediaData:()=>u,getCarouselDataFromCache:()=>c,getMediaDataFromCache:()=>s,uncacheMediaData:()=>l});var i=n(47),r=n(1),o=n(10),a=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=function(e){var t=r.Wistia._remoteData.get("media_".concat(e));return(0,i.isNil)(t)?null:(a(t,"error")&&o.wlog.error("Received cached error response instead of MediaData when retrieving cached mediaData for ".concat(e)),t)},u=function(e,t){r.Wistia._remoteData.set("media_".concat(e),t)},l=function(e){r.Wistia._remoteData.delete("media_".concat(e)),Reflect.deleteProperty(r.Wistia._mediaDataPromises,e)},c=function(e){var t=r.Wistia._remoteData.get("carousel_".concat(e));return(0,i.isNil)(t)?null:t}},(e,t,n)=>{n.d(t,{isEmptyRecord:()=>p,isEmptyString:()=>u,isNil:()=>o,isNonEmptyArray:()=>y,isNonEmptyRecord:()=>f,isNonEmptyString:()=>l,isNotNil:()=>a,isNotNumber:()=>d,isNumber:()=>c});Number.NaN;var i=e=>null===e,r=e=>void 0===e,o=e=>i(e)||r(e),a=e=>!o(e),s=e=>"string"==typeof e,u=e=>s(e)&&""===e,l=e=>s(e)&&!u(e),c=e=>"number"==typeof e,d=e=>!c(e),h=e=>a(e)&&"object"==typeof e&&!(e instanceof Array),p=e=>h(e)&&0===Object.keys(e).length,f=e=>h(e)&&Object.keys(e).length>0,v=e=>a(e)&&"object"==typeof e&&e instanceof Array,y=e=>v(e)&&e.length>0},(e,t,n)=>{n.d(t,{mediaDataTransforms:()=>f});var i=n(18),r=n(33),o=n(20),a=n(47),s=n(44);function u(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)||l(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 l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.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)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var d=(0,o.cachedDetect)(),h=function(e,t){if(e&&t){t.plugin||(t.plugin={}),t.plugin.form||(t.plugin.form={});var n=t.plugin.form;e.form_button_text&&(n.formButtonText=e.form_button_text),e.form_lower_text&&(n.formLowerText=e.form_lower_text),e.title&&(n.title=e.title)}},p=function(e){if(h(e.formCustomizations,e.embedOptions),Array.isArray(e.translatedMediaData)){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.translatedMediaData);try{for(n.s();!(t=n.n()).done;){var i=t.value;h(i.formCustomizations,i.embedOptions)}}catch(e){n.e(e)}finally{n.f()}}},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){if(!0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOriginalAsMp4){var t=e.assets.filter((function(e){return"original"===e.type}))[0];(0,s.readyPublicOver400)(e.assets).length>0||(e.assets=[].concat(u(e.assets),[(0,i.assign)({},t,{display_name:"".concat(t.display_name," copy"),container:"mp4",codec:"h264",type:"mp4_video"})]))}}(e,t),function(e){e.assets&&d.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),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.isNotNil)(t.channelId)&&e.embedOptions&&(e.embedOptions.channelId=t.channelId)}(e,t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.isNotNil)(t.channelPassword)&&e.embedOptions&&(e.embedOptions.channelPassword=t.channelPassword)}(e,t),p(e),e}},(e,t,n)=>{n.d(t,{getInitialMediaData:()=>O});var i=n(1),r=n(30),o=n(45),a=n(32),s=n(48),u=n(46),l=n(50),c=n(18),d=n(51);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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.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)?p(e,t):void 0}}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function f(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return v(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(v(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,v(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,v(d,"constructor",l),v(l,"constructor",u),u.displayName="GeneratorFunction",v(l,r,"GeneratorFunction"),v(d),v(d,r,"Generator"),v(d,i,(function(){return this})),v(d,"toString",(function(){return"[object Generator]"})),(f=function(){return{w:o,m:h}})()}function v(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}v=function(e,t,n,i){function o(t,n){v(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},v(e,t,n,i)}function y(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)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){y(o,i,r,a,s,"next",e)}function s(e){y(o,i,r,a,s,"throw",e)}a(void 0)}))}}var g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.mediaDataUrl)(e,t).replace(/\.json(?!p)/,".jsonp").replace(/&$/,""),i=(0,r.findScriptInDomBySrc)(n,{ignoreProtocol:!0,scriptRegex:(0,o.mediaDataScriptRegExp)(e)});return Boolean(i)},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.mediaDataHost)(t);return"".concat((0,a.eV1Protocol)(),"//").concat(n,"/embed/").concat(e,".js")},_=function(e){var t=b(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=(0,r.findScriptInDomBySrc)(t,{ignoreProtocol:!0});return Boolean(n)},w=function(){var e=m(f().m((function e(t,n){return f().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e,i){var r=-1,o=function(){var o=window["wistiajsonp-/embed/medias/".concat(t,".jsonp")];if(o){if(o.media)return clearInterval(r),(0,u.cacheMediaData)(t,o.media),void(0,d.fetchMediaData)(t,n).then(e).catch((function(){i(new Error("Failed to fetch media data via jsonp"))}));(0,l.isMediaDataError)(o)&&(clearInterval(r),e(o))}};o(),r=window.setInterval(o,15),setTimeout((function(){clearInterval(r),i(new Error("Timeout loading jsonp media data"))}),3e4)})))}),e)})));return function(t,n){return e.apply(this,arguments)}}(),E=function(){var e=m(f().m((function e(t){var n,i,r=arguments;return f().w((function(e){for(;;)if(0===e.n)return i=b(t,n=r.length>1&&void 0!==r[1]?r[1]:{}),e.a(2,new Promise((function(e,r){setTimeout((function(){r(new Error("Timeout loading js media data"))}),3e4),import(i).then((function(e){var n=e.mediaData;(0,u.cacheMediaData)(t,n)})).then(m(f().m((function e(){return f().w((function(e){for(;;)if(0===e.n)return e.a(2,(0,d.fetchMediaData)(t,n))}),e)})))).then(e).catch((function(e){r(e instanceof Error?e:new Error(String(e)))}))})))}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={current:-1};return[new Promise((function(i,r){n.current=window.setTimeout((function(){(0,d.fetchMediaData)(e,t).then(i).catch((function(e){r(e instanceof Error?e:new Error(String(e)))}))}),15e3)})),n]},O=function(){var e=m(f().m((function e(t){var n,r,o,a,l,p,v,y,m,b,O=arguments;return f().w((function(e){for(;;)switch(e.n){case 0:if(r=O.length>1&&void 0!==O[1]?O[1]:{},null==(0,u.getMediaDataFromCache)(t)||!0===r.skipCache){e.n=1;break}return e.a(2,(0,d.fetchMediaData)(t,r));case 1:if(null==(o=null===(n=i.Wistia._inlineMediaData)||void 0===n?void 0:n[t])){e.n=2;break}return a=(0,c.clone)(o),(0,s.mediaDataTransforms)(a,r),(0,u.cacheMediaData)(t,a),e.a(2,(0,d.fetchMediaData)(t,r));case 2:if(l=[],g(t,r)&&l.push(w(t,r)),_(t,r)&&l.push(E(t,r)),0!==l.length){e.n=4;break}return e.n=3,(0,d.fetchMediaData)(t,r);case 3:p=e.v,e.n=6;break;case 4:return v=P(t,r),y=h(v,2),m=y[0],b=y[1],e.n=5,Promise.any([].concat(l,[m]));case 5:p=e.v,clearTimeout(b.current);case 6:return e.a(2,p)}}),e)})));return function(t){return e.apply(this,arguments)}}()},(e,t,n)=>{n.d(t,{isMediaDataError:()=>r});var i=n(47),r=function(e){return!(!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,"error")||(0,i.isNil)(e.error))&&("true"===e.error||!0===e.error)}},(e,t,n)=>{n.d(t,{fetchMediaData:()=>w});var i=n(47),r=n(1),o=n(32),a=n(48),s=n(46),u=n(50),l=n(52),c=n(53);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){p(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 p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return function(e){if(Array.isArray(e))return v(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){if("string"==typeof e)return v(e,t);var n={}.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)?v(e,t):void 0}}(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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function y(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return m(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(m(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,m(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,m(d,"constructor",l),m(l,"constructor",u),u.displayName="GeneratorFunction",m(l,r,"GeneratorFunction"),m(d),m(d,r,"Generator"),m(d,i,(function(){return this})),m(d,"toString",(function(){return"[object Generator]"})),(y=function(){return{w:o,m:h}})()}function m(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}m=function(e,t,n,i){function o(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},m(e,t,n,i)}function g(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)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){g(o,i,r,a,s,"next",e)}function s(e){g(o,i,r,a,s,"throw",e)}a(void 0)}))}}var _=function(){var e=b(y().m((function e(t){var n,l,c,d,h,p,f,v,m,g,b=arguments;return y().w((function(e){for(;;)switch(e.n){case 0:if(d=b.length>1&&void 0!==b[1]?b[1]:{},h=t,!(p=(0,s.getMediaDataFromCache)(h))||!0===d.skipCache){e.n=1;break}return e.a(2,Promise.resolve(p));case 1:if(!(0,i.isNotNil)(r.Wistia._mediaDataPromises[h])||!0===d.skipCache){e.n=2;break}return e.a(2,r.Wistia._mediaDataPromises[h]);case 2:return f=(0,o.mediaDataHost)(d),v=new window.URL("https://".concat(f,"/embed/medias/").concat(t,".json")),(0,i.isNotNil)(d.channelId)&&v.searchParams.set("channelId",d.channelId.toString()),m=null!==(n=d.channelPassword)&&void 0!==n?n:null===(l=d.plugin)||void 0===l||null===(c=l.passwordProtectedChannel)||void 0===c?void 0:c.password,(0,i.isNotNil)(m)&&v.searchParams.set("channelPassword",m),(0,i.isNotNil)(d.password)&&v.searchParams.set("password",d.password),d.deferFetchingToCarousel&&v.searchParams.set("defer_fetching_to_carousel","true"),d.bypassOriginShield&&v.searchParams.set("bos","1"),g=fetch(v.href).then((function(e){return e.json()})).then((function(e){var t;if((0,u.isMediaDataError)(e))return e;var n=e.media;return(0,a.mediaDataTransforms)(n,d),(0,s.cacheMediaData)(null!==(t=n.hashedId)&&void 0!==t?t:"",n),n})).finally((function(){Reflect.deleteProperty(r.Wistia._mediaDataPromises,h)})),r.Wistia._mediaDataPromises[h]=g,e.a(2,g)}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=b(y().m((function e(t){var n,i,r,o,a,s,d,p,v,m,g=arguments;return y().w((function(e){for(;;)switch(e.n){case 0:return n=g.length>1&&void 0!==g[1]?g[1]:{},e.n=1,_(t,n);case 1:if(i=e.v,!(0,u.isMediaDataError)(i)){e.n=2;break}return e.a(2,i);case 2:if(null!=(r=i).localizations&&0!==r.localizations.length){e.n=3;break}return e.a(2,r);case 3:if(o=(0,c.getViewerPreferences)(),a=o.localization,s=[],null!=n.overrideMediaLanguage&&s.push(n.overrideMediaLanguage),null!=(null==a?void 0:a.bcp47LanguageTag)&&s.push(a.bcp47LanguageTag),null!=n.defaultMediaLanguage&&s.push(n.defaultMediaLanguage),d=s.filter((function(e,t){return s.indexOf(e)===t})),-1===(p=(0,l.getPreferredAvailableLanguageIndex)(r.localizations.map((function(e){return e.bcp47LanguageTag})),d))&&(p=(0,l.getPreferredAvailableLanguageIndex)(r.localizations.map((function(e){return e.wistiaLanguageCode})),d)),-1===p&&(p=(0,l.getPreferredAvailableLanguageIndex)(r.localizations.map((function(e){return e.bcp47LanguageTag})),f(null!==(v=navigator.languages)&&void 0!==v?v:["en"]))),!(p>=0)){e.n=6;break}if(m=r.localizations[p],r.hashedId!==m.hashedId){e.n=4;break}return e.a(2,r);case 4:if("alternate_audio"!==m.localizationIntent){e.n=5;break}return e.a(2,r);case 5:return e.a(2,_(m.hashedId,h({},n)));case 6:return e.a(2,r)}}),e)})));return function(t){return e.apply(this,arguments)}}()},(e,t,n)=>{function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.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)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,{getPreferredAvailableLanguageIndex:()=>s});var o=function(e){return e.split("-")[0]},a=function(){var e;return null===(e=(new Error).stack)||void 0===e?void 0:e.split("\n").slice(2).join("\n")},s=function(e,t){e.some((function(e){return"string"!=typeof e}))&&(console.error("availableLanguages has non-string values",e,a()),e=e.filter((function(e){return"string"==typeof e}))),t.some((function(e){return"string"!=typeof e}))&&(console.error("preferredLanguages has non-string values",t,a()),t=t.filter((function(e){return"string"==typeof e})));var n,r=i(t);try{var s,u=function(){var t=n.value;if(e.includes(t))return{v:e.indexOf(t)};var i=o(t);return e.some((function(e){return o(e)===i}))?{v:e.findIndex((function(e){return o(e)===i}))}:void 0};for(r.s();!(n=r.n()).done;)if(s=u())return s.v}catch(e){r.e(e)}finally{r.f()}return-1}},(e,t,n)=>{n.r(t),n.d(t,{deleteViewerPreferences:()=>o,getViewerPreference:()=>u,getViewerPreferences:()=>s,setViewerPreference:()=>l});var i=n(38),r=n(1),o=function(){(0,i.removeLocalStorage)(a())},a=function(){return"wistia-viewer-preferences"},s=function(){return!1===r.Wistia._viewerPreferencesEnabled?{}:(0,i.getLocalStorage)(a())},u=function(e){var t=s();return t?t[e]:null},l=function(e,t){(0,i.updateLocalStorage)(a(),(function(n){n.plugin&&delete n.plugin,n[e]=t}))}},(e,t,n)=>{n.d(t,{dynamicImport:()=>u});var i=n(32),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(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function s(n,i,r,o){var s=i&&i.prototype instanceof l?i:l,c=Object.create(s.prototype);return a(c,"_invoke",function(n,i,r){var o,a,s,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,a=0,s=e,h.n=n,u}};function p(n,i){for(a=n,s=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(a=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,a=0))}if(r||n>1)return u;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),a=c,s=f;(t=a<2?e:s)||!d;){o||(a?a<3?(a>1&&(h.n=-1),p(a,s)):h.n=s:h.v=s);try{if(l=2,o){if(a||(r="next"),t=o[r]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),a=1);o=e}else if((t=(d=h.n<0)?s:n.call(i,h))!==u)break}catch(t){o=e,a=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),c}var u={};function l(){}function c(){}function d(){}t=Object.getPrototypeOf;var h=[][i]?t(t([][i]())):(a(t={},i,(function(){return this})),t),p=d.prototype=l.prototype=Object.create(h);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,a(p,"constructor",d),a(d,"constructor",c),c.displayName="GeneratorFunction",a(d,r,"GeneratorFunction"),a(p),a(p,r,"Generator"),a(p,i,(function(){return this})),a(p,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:s,m:f}})()}function a(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}a=function(e,t,n,i){function o(t,n){a(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},a(e,t,n,i)}function s(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 u=function(){var e,t=(e=o().m((function e(t){var n,a,s,u=arguments;return o().w((function(e){for(;;)switch(e.n){case 0:if(a=r(n=u.length>1&&void 0!==u[1]?u[1]:{},"host")&&null!=n.host?n.host:(0,i.eV1HostWithPort)(),!(""!==(s=i.TAGGED_VERSION)&&s.length>0&&!0!==n.mediaData)){e.n=1;break}return e.a(2,import("".concat((0,i.eV1Protocol)(),"//").concat(a,"/").concat(t,"@").concat(s)));case 1:return e.a(2,import("".concat((0,i.eV1Protocol)(),"//").concat(a,"/").concat(t)))}}),e)})),function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){s(o,i,r,a,u,"next",e)}function u(e){s(o,i,r,a,u,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()},(e,t,n)=>{n.r(t),n.d(t,{_clearMetricsCache:()=>p,countMetric:()=>l,sampleMetric:()=>d,sendMetric:()=>h,sendMetrics:()=>c});var i=n(19),r=n(27),o=n(36),a=n(32),s=n(1);null==s.Wistia._simpleMetricsCache&&(s.Wistia._simpleMetricsCache={}),null==s.Wistia._simpleMetricsDebounceInterval&&(s.Wistia._simpleMetricsDebounceInterval=500);var u=s.Wistia._simpleMetricsCache,l=function(e){return h("count",e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})},c=function(){if((0,o.isVisitorTrackingEnabled)()){for(var e="https://".concat((0,a.metricsHost)(),"/mput?topic=metrics"),t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return fetch(e,{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.join("\n")}).then((function(e){e.ok||console.error(e)})).catch((function(e){console.error(e)}))}},d=function(e,t,n){return h("sample",e,t,n)},h=function(e,t,n){var a,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if((0,o.isVisitorTrackingEnabled)())try{null==u.toMput&&(u.toMput=[]);var d=(0,i.assign)({type:e,key:t,value:null!=n?n:null},l),h=JSON.stringify(d,(a=new WeakSet,function(e,t){if("object"==typeof t&&null!==t){if(a.has(t))return"[Circular]";a.add(t)}return t}));u.toMput.push(h),clearTimeout(s.Wistia._msendTimeout),s.Wistia._msendTimeout=setTimeout((function(){(0,r.pageLoaded)((function(){c.apply(undefined,u.toMput),u.toMput=[]}))}),s.Wistia._simpleMetricsDebounceInterval)}catch(e){console.error(e.message),console.error(e.stack)}},p=function(){u.toMput=[]}},,(e,t,n)=>{n.r(t),n.d(t,{GLOBAL_ID_KEY:()=>s,OPTION_PREFIX:()=>a,getEmbedOptionStore:()=>u,getOrSetEmbedOptionStore:()=>d,removeEmbedOptionStore:()=>c,setEmbedOptionStore:()=>l});var i=n(18),r=n(41),o=n(39),a="wistia_embed_options_",s="__global__",u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.getOneApiHandle;if(void 0!==(0,r.wData)([a,e]))return(0,r.wData)([a,e]);var n=t(e);if(null===n||"removed"===n)return{};if(void 0!==(0,r.wData)(a)){var i=Object.keys((0,r.wData)(a)).find((function(e){return t(e)===n}));if(void 0!==(0,r.wData)([a,i]))return(0,r.wData)([a,i])}return{}},l=function(e,t){return null!==t?(0,r.wData)([a,e],(0,i.cast)((0,i.clone)(t))):{}},c=function(e){(0,r.wRemoveData)([a,e])},d=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,{TranslationApi:()=>j});var i=n(47),r=n(60),o=n(61),a=n(63),s=n(15),u=n(24),l=n(65),c=n(1),d=n(14);function h(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return p(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(p(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,p(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,p(d,"constructor",l),p(l,"constructor",u),u.displayName="GeneratorFunction",p(l,r,"GeneratorFunction"),p(d),p(d,r,"Generator"),p(d,i,(function(){return this})),p(d,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:o,m:f}})()}function p(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}p=function(e,t,n,i){function o(t,n){p(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},p(e,t,n,i)}function f(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)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){f(o,i,r,a,s,"next",e)}function s(e){f(o,i,r,a,s,"throw",e)}a(void 0)}))}}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,m(i.key),i)}}function m(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function g(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 b(e,t){return e.get(w(e,t))}function _(e,t,n){return e.set(w(e,t),n),n}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var E=new WeakMap,P=new WeakMap,O=new WeakMap,S=new WeakMap,T=new WeakMap,k=new WeakMap,C=new WeakMap,A=new WeakMap,j=function(){return e=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),g(this,E,void 0),g(this,P,void 0),g(this,O,void 0),g(this,S,void 0),g(this,T,void 0),g(this,k,void 0),g(this,C,void 0),g(this,A,void 0),_(A,this,t);var i=r.StopGo;_(k,this,new i),b(k,this).call(this,!0),_(C,this,new o.CrossTimeAurora(b(A,this),this.unbind)),_(T,this,new a.BetweenTimesAurora(b(A,this),this.unbind)),_(P,this,!1),b(A,this).whenApiReady().then((function(){_(P,n,!0)}))},t=[{key:"_mediaData",get:function(){return b(A,this).mediaData}},{key:"container",get:function(){return b(A,this)}},{key:"controls",get:function(){return b(A,this).controls}},{key:"plugin",get:function(){var e=this;return Object.keys(this.pluginFunction).forEach((function(t){e.pluginFunction[t]=void 0})),Object.keys(b(A,this).plugins).forEach((function(t){e.pluginFunction[t]=b(A,e).plugins[t]})),this.pluginFunction}},{key:"popover",get:function(){var e=this;return{show:function(){b(k,e).synchronize((function(t){b(A,e).showPopover().then((function(){t()})).catch((function(){t()}))}))},hide:function(){b(k,e).synchronize((function(t){b(A,e).hidePopover().then((function(){t()})).catch((function(){t()}))}))},height:function(t,n){var i=b(A,e).parentElement;if(!i)return e;if(void 0!==t&&(i.style.height="".concat(t,"px"),null!=n&&n.constrain)){var r=t/b(A,e).aspect;i.style.width="".concat(r,"px")}return e.height(t,n)},width:function(t,n){var i=b(A,e).parentElement;if(!i)return e;if(void 0!==t&&(i.style.width="".concat(t,"px"),null!=n&&n.constrain)){var r=t/b(A,e).aspect;i.style.height="".concat(r,"px")}return e.width(t,n)}}}},{key:"addPlugin",value:(j=v(h().m((function e(t,n){return h().w((function(e){for(;;)if(0===e.n)return e.a(2,b(A,this).definePlugin(t,n))}),e,this)}))),function(e,t){return j.apply(this,arguments)})},{key:"addToPlaylist",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!b(O,this)){var r=[{hashedId:b(A,this).mediaId}];_(O,this,new l.PlaylistMethods(r,b(A,this),{autoAdvance:!0,startIndex:0,source:{id:"test",type:"player-api"}},"fast.wistia.com"))}if(null!=i.index)t=i.index;else if(null!=i.after){if(0===(t=b(O,this).orderedPlaylistMedias.findIndex((function(e){return e.hashedId===i.after}))+1))throw new Error('Media to position "after" not found in playlist')}else if(null!=i.before&&-1===(t=b(O,this).orderedPlaylistMedias.findIndex((function(e){return e.hashedId===i.before}))))throw new Error('Media to position "before" not found in playlist');var o=null!=t?{index:t}:void 0;return b(O,this).addMediaToPlaylist({hashedId:e,embedOptions:n},o),b(O,this).orderedPlaylistMedias}},{key:"aspect",value:function(){return b(A,this).aspect}},{key:"bind",value:function(e,t,n,i){var r;if(Object.keys(d.convertedEventNames).includes(e)){var o,a,s=b(A,this).mediaId;return null!==(a=(o=c.Wistia.EventShepherdManager)[s])&&void 0!==a||(o[s]=new d.EventShepherd),c.Wistia.EventShepherdManager[s].addListener(e,b(A,this),t),this}switch(e){case"crosstime":return b(C,this).addBinding(t,n),this;case"betweentimes":return b(T,this).addBinding(t,n,i),this;default:return null===(r=b(A,this).deprecatedApiDoNotUse)||void 0===r||r.bind(e,t),this}}},{key:"cancelFullscreen",value:function(){var e=this;return b(k,this).synchronize((function(t){b(A,e).cancelFullscreen().then((function(){t()})).catch((function(){t()}))})),this}},{key:"captionsEnabled",value:function(e){return null!=e?(b(A,this).captionsEnabled=e,b(A,this).captionsEnabled):b(A,this).captionsEnabled}},{key:"captionsLanguage",value:function(e){return null!=e?(b(A,this).captionsLanguageCode=e,b(A,this).captionsLanguage):b(A,this).captionsLanguage}},{key:"captionsLanguageCode",value:function(e){return null!=e?(b(A,this).captionsLanguageCode=e,b(A,this).captionsLanguageCode):b(A,this).captionsLanguageCode}},{key:"captionsLanguages",value:function(){return b(A,this).captionsLanguages}},{key:"duration",value:function(){return b(A,this).duration}},{key:"email",value:function(e){var t,n=this;return void 0===e?null!==(t=b(A,this).email)&&void 0!==t?t:null:(b(k,this).synchronize((function(t){b(A,n).email=e,t()})),this)}},{key:"embedded",value:function(e){var t,n,i=this,r=null===(t=b(A,this).shadowRoot)||void 0===t?void 0:t.querySelector(".w-ui-container");return e?null!=r&&r.hasChildNodes()?(e(),this):(r&&_(S,this,r),_(E,this,new MutationObserver((function(t){t.forEach((function(t){Array.from(t.addedNodes).forEach((function(t){var n;1===t.nodeType&&(t.classList.contains("w-ui-container")&&_(S,i,t),(0,u.elemIsDescendantOf)(t,b(S,i))&&(e(),null===(n=b(E,i))||void 0===n||n.disconnect(),_(E,i,void 0),_(S,i,void 0)))}))}))}))),b(E,this).observe(b(A,this).shadowRoot,{subtree:!0,childList:!0}),this):null!==(n=null==r?void 0:r.hasChildNodes())&&void 0!==n&&n}},{key:"enterInputContext",value:function(e){b(A,this).enterInputContext(e)}},{key:"eventKey",value:function(){return b(A,this).eventKey}},{key:"exitInputContext",value:function(e){b(A,this).exitInputContext(e)}},{key:"getControl",value:function(e){return b(A,this).controls[e]}},{key:"getInputContext",value:function(){return b(A,this).inputContext}},{key:"getMediaElement",value:function(){var e,t;return null!==(e=null===(t=b(A,this).shadowRoot)||void 0===t?void 0:t.querySelector("video, audio"))&&void 0!==e?e:null}},{key:"getRemapTime",value:(w=v(h().m((function e(){return h().w((function(e){for(;;)if(0===e.n)return e.a(2,b(A,this).getRemapTime())}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"hasData",value:function(e){var t=Object.keys(b(A,this).mediaData).length>0;return e?t?(e(),this):(b(A,this).addEventListener(s.LOADED_MEDIA_DATA_EVENT,(function(){e()})),this):t}},{key:"hashedId",value:function(){return b(A,this).mediaId}},{key:"height",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e&&!Number.isNaN(e)){if(b(A,this).style.height="".concat(e,"px"),t.constrain){var n=e*b(A,this).aspect;b(A,this).style.width="".concat(n,"px")}return this}return b(A,this).getBoundingClientRect().height}},{key:"inFullscreen",value:function(){return b(A,this).inFullscreen}},{key:"isInstantHls",value:function(){return b(A,this).instantHls}},{key:"isMuted",value:function(){return b(A,this).muted}},{key:"language",value:function(e){return null!=e?(b(A,this).language=e,b(A,this).language):b(A,this).language}},{key:"languages",value:function(){return b(A,this).languages}},{key:"languagesToLocalizations",value:function(e){return b(A,this).languagesToLocalizations(e)}},{key:"languageToLocalization",value:function(e){return b(A,this).languageToLocalization(e)}},{key:"mediaLanguage",value:function(e){return null!=e?(b(A,this).mediaLanguageCode=e,b(A,this).mediaLanguage):b(A,this).mediaLanguage}},{key:"mediaLanguageCode",value:function(e){return null!=e?(b(A,this).mediaLanguageCode=e,b(A,this).mediaLanguageCode):b(A,this).mediaLanguageCode}},{key:"mediaLanguages",value:function(){return b(A,this).mediaLanguages}},{key:"mute",value:function(){var e=this;return b(k,this).synchronize((function(t){b(A,e).muted=!0,t()})),this}},{key:"name",value:function(){var e;return null!==(e=b(A,this).name)&&void 0!==e?e:null}},{key:"pause",value:function(){var e=this;return b(k,this).synchronize((function(t){b(A,e).pause().then((function(){t()})).catch((function(){t()}))})),this}},{key:"percentWatched",value:function(){return b(A,this).percentWatched}},{key:"play",value:function(){var e=this;return b(k,this).synchronize((function(t){b(A,e).play().then((function(){t()})).catch((function(){t()}))})),this}},{key:"playbackRate",value:function(e){var t=this;return void 0===e?b(A,this).playbackRate:(b(k,this).synchronize((function(n){b(A,t).playbackRate=e,n()})),this)}},{key:"ready",value:function(e){return e?(b(A,this).whenApiReady().then((function(){e()})),this):b(P,this)}},{key:"releaseControls",value:(m=v(h().m((function e(t){return h().w((function(e){for(;;)if(0===e.n)return e.a(2,b(A,this).releaseControls(t))}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"remove",value:function(){var e;null===(e=b(E,this))||void 0===e||e.disconnect(),_(E,this,void 0),_(S,this,void 0),b(A,this).remove()}},{key:"replaceWith",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b(k,this).synchronize((function(i){_(P,t,!1),b(A,t).replaceWithMedia(e,n).then((function(){_(P,t,!0),i()})).catch((function(){i()}))})),this}},{key:"requestControls",value:(f=v(h().m((function e(t){return h().w((function(e){for(;;)if(0===e.n)return e.a(2,b(A,this).requestControls(t))}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"requestFullscreen",value:function(){var e=this;return b(k,this).synchronize((function(t){b(A,e).requestFullscreen().then((function(){t()})).catch((function(){t()}))})),this}},{key:"secondsWatched",value:function(){return b(A,this).secondsWatched}},{key:"secondsWatchedVector",value:function(){return b(A,this).secondsWatchedVector}},{key:"setControlEnabled",value:function(e,t){var n=this;return b(k,this).synchronize((function(i){t&&b(A,n).enableControl(e).then((function(){i()})).catch((function(){i()})),t||b(A,n).disableControl(e).then((function(){i()})).catch((function(){i()})),i()})),this}},{key:"sourceHashedId",value:function(){return b(A,this).sourceMediaId}},{key:"state",value:function(){return b(A,this).state}},{key:"time",value:function(e){var t=this;return void 0===e?b(A,this).currentTime:(b(k,this).synchronize((function(n){var i=function(){b(A,t).removeEventListener("seeked",i),n()};b(A,t).addEventListener("seeked",i),b(A,t).currentTime=e})),this)}},{key:"unbind",value:function(e,t,n,i){var r,o;if(Object.keys(d.convertedEventNames).includes(e))return null===(o=c.Wistia.EventShepherdManager[b(A,this).mediaId])||void 0===o||o.removeListener(e,b(A,this),t),this;switch(e){case"crosstime":return b(C,this).removeBinding(t,n),this;case"betweentimes":return b(T,this).removeBinding(t,n,i),this;default:return null===(r=b(A,this).deprecatedApiDoNotUse)||void 0===r||r.unbind(e,t),this}}},{key:"unmute",value:function(){var e=this;return b(k,this).synchronize((function(t){b(A,e).muted=!1,t()})),this}},{key:"videoHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,i.isNumber)(e)&&!0!==b(A,this).embedOptions.videoFoam){if(b(A,this).style.height="".concat(e,"px"),t.constrain){var n=e/b(A,this).aspect;b(A,this).style.width="".concat(n,"px")}else console.warn("setting `videoHeight` while `videoFoam` is enabled results in a no-op");return this}return parseFloat(getComputedStyle(b(A,this)).height)}},{key:"videoQuality",value:function(e){var t=this;return void 0===e?b(A,this).videoQuality:(b(k,this).synchronize((function(n){b(A,t).videoQuality=e,n()})),this)}},{key:"videoWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,i.isNumber)(e)&&!0!==b(A,this).embedOptions.videoFoam){if(b(A,this).style.width="".concat(e,"px"),t.constrain){var n=e/b(A,this).aspect;b(A,this).style.height="".concat(n,"px")}else console.warn("setting `videoWidth` while `videoFoam` is enabled results in a no-op");return this}return parseFloat(getComputedStyle(b(A,this)).width)}},{key:"visitorKey",value:function(){var e,t;return null!=(null===(e=window.Wistia)||void 0===e||null===(t=e.visitorKey)||void 0===t?void 0:t.value())?window.Wistia.visitorKey.value():null}},{key:"volume",value:function(e){var t=this;return void 0===e?b(A,this).volume:(b(k,this).synchronize((function(n){b(A,t).volume=e,n()})),this)}},{key:"whenControlMounted",value:(p=v(h().m((function e(t){return h().w((function(e){for(;;)if(0===e.n)return e.a(2,b(A,this).whenControlMounted(t))}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"width",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e&&!Number.isNaN(e)){if(b(A,this).style.width="".concat(e,"px"),t.constrain){var n=e/b(A,this).aspect;b(A,this).style.height="".concat(n,"px")}return this}return b(A,this).getBoundingClientRect().width}},{key:"pluginFunction",value:function(e,t){var n=this;return t?(b(k,this).synchronize((function(i){t(b(A,n).getPlugin(e)),i()})),this):b(A,this).getPlugin(e)}}],t&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,p,f,m,w,j}()},(e,t,n)=>{n.d(t,{StopGo:()=>i});var i,r=n(23);(function(){var e=[].slice;i=function(){function t(){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 t.prototype.defineMethodsOn=function(e){var t,n,i,r;for(n in t={},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},t.prototype.flush=function(){var t,n;if(t=arguments.length>=1?e.call(arguments,0):[],!this._green)return this;for(this._lock=!0;this._queue.length>0&&(n=this._queue.shift(),t.length||!this.goArgs?this.tryAndReport((function(){return n.apply(null,t)})):this.tryAndReport(function(e){return function(){return n.apply(null,e.goArgs)}}(this)),!this._block&&this._green););return this._lock=!1,this},t.prototype._debug=function(){return"undefined"!=typeof console&&null!==console?console.log.apply(console,arguments):void 0},t.prototype.synchronize=function(){var t,n,i,r;for(i=0,r=(n=arguments.length>=1?e.call(arguments,0):[]).length;i<r;i++)t=n[i],this.synchronizeFn(t);return this},t.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},t.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}},t.prototype.clearSynchronized=function(){return this.setQueue([]),this._block=!1,this._green=!0},t.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},t.prototype.push=function(e){return this._queue.push(e),this},t.prototype.go=function(){var t;return t=arguments.length>=1?e.call(arguments,0):[],this._green=!0,this.goArgs=t,this.flush.apply(this,t),this},t.prototype.stop=function(){return this._green=!1,this},t.prototype.run=function(){var t,n,i,r;for(i=0,r=(n=arguments.length>=1?e.call(arguments,0):[]).length;i<r;i++)t=n[i],this.runFn(t);return this},t.prototype.then=function(){return this.run.apply(this,arguments)},t.prototype.runFn=function(e){return this._green&&!this._block?this._lock?this.tryAndReport(e):(this.push(e),this.flush()):this.push(e),this},t.prototype.remove=function(){var t,n,i,r;for(i=0,r=(n=arguments.length>=1?e.call(arguments,0):[]).length;i<r;i++)t=n[i],this.removeFn(t);return this},t.prototype.removeFn=function(e){return this.filter((function(t){return e!==t})),this},t.prototype.setQueue=function(e){return this._queue=e,this},t.prototype.getQueue=function(){return this._queue},t.prototype._allInOne=function(){var t,n;return t=arguments[0],n=arguments.length>=2?e.call(arguments,1):[],!0===t?this.go.apply(this,n):!1===t?this.stop():null!=t?t instanceof Array?this.run.apply(this,t):"string"==typeof t?this[t].apply(this,n):this.run.apply(this,arguments):this._green},t}(),i.when=function(){var t,n,r,o,a,s,u,l;for(l=arguments.length>=1?e.call(arguments,0):[],s=new i,r=function(){return s.go.apply(s,arguments)},t=function(e,t){return r=function(){return t((function(){return e.apply(null,arguments)}))}},n=0,o=(a=l.reverse()).length;n<o;n++)u=a[n],t(r,u);return r(),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)})),(0,r.doTimeout)("".concat(e,".").concat(n),(function(){return o.go()}),0),o}}).call(void 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,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function o(e,t,n){return t=s(t),function(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)}(e,a()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}n.d(t,{CrossTimeAurora:()=>l});var l=function(e){function t(e,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=o(this,t,[n])).apiInstance=e,i.embedElement=e,i}return 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)}(t,e),n=t,(r=[{key:"currentTime",get:function(){return this.apiInstance.currentTime}},{key:"state",get:function(){return this.apiInstance.state}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(n(62).CrossTime)},(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,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{CrossTime:()=>o});var o=function(){return e=function e(t){var n,i,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o={},(i=r(i="bindings"))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,this.unbindFunction=t},(t=[{key:"addBinding",value:function(e,t){var n,i,r=this;if(!/^(\d+\.)?\d+$/.test(e))throw new Error("crosstime: Expected first argument to be a number");if("function"!=typeof t)throw new Error("crosstime: Expected second argument to be a function");var o,a=this.currentTime>e,s=function(){r.currentTime<e&&(a=!1),a||function(){if(void 0===o){var n=function(){o=requestAnimationFrame((function(){r.currentTime<e&&e-r.currentTime<2&&"playing"===r.state?n():r.currentTime>e?(t.call(r.unbindFunction)===r.unbindFunction&&r.removeBinding(e,t),a=!0,o=void 0):(cancelAnimationFrame(o),o=void 0)}))};n()}}()};this.embedElement.addEventListener("time-update",s);var u=function(){void 0!==o&&cancelAnimationFrame(o),o=void 0};this.embedElement.addEventListener("pause",u),this.embedElement.addEventListener("end",u),this.embedElement.addEventListener("waiting",u),null!==(i=(n=this.bindings)[e])&&void 0!==i||(n[e]=[]),this.bindings[e].push({callback:t,clearAnimationFrame:u,timeChangeBinding:s})}},{key:"removeAllBindings",value:function(){var e=this;Object.keys(this.bindings).forEach((function(t){e.bindings[t].forEach((function(t){t.clearAnimationFrame(),e.embedElement.removeEventListener("time-update",t.timeChangeBinding),e.embedElement.removeEventListener("pause",t.clearAnimationFrame),e.embedElement.removeEventListener("end",t.clearAnimationFrame),e.embedElement.removeEventListener("waiting",t.clearAnimationFrame)}))})),this.bindings={}}},{key:"removeBinding",value:function(e,t){var n=this,i=this.bindings[e],r=[];i&&(i.forEach((function(e,i){e.callback===t&&(r.push(i),e.clearAnimationFrame(),n.embedElement.removeEventListener("time-update",e.timeChangeBinding),n.embedElement.removeEventListener("pause",e.clearAnimationFrame),n.embedElement.removeEventListener("end",e.clearAnimationFrame),n.embedElement.removeEventListener("waiting",e.clearAnimationFrame))})),r.forEach((function(e){i.splice(e,1)})))}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},(e,t,n)=>{n.d(t,{BetweenTimesAurora:()=>d});var i=n(64),r=n(61);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,a(i.key),i)}}function a(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function s(e,t,n){return t=l(t),function(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)}(e,u()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d=function(e){function t(e,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=s(this,t,[n])).apiInstance=e,i.embedElement=e,i.crossTime=new r.CrossTimeAurora(i.apiInstance,n),i}return 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)}(t,e),n=t,(i=[{key:"currentTime",get:function(){return this.apiInstance.currentTime}}])&&o(n.prototype,i),a&&o(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.BetweenTimes)},(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,o(i.key),i)}}function r(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)}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function a(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{BetweenTimes:()=>u});var s=new WeakSet,u=function(){return e=function e(t){var n,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,s),n=this,a={},(i=o(i="bindings"))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,this.unbindFunction=t},(t=[{key:"addBinding",value:function(e,t,n){var i,r,o=this;if(!/^(\d+\.)?\d+$/.test(e))throw new Error("betweenTimes: Expected first argument to be a number");if(!/^(\d+\.)?\d+$/.test(t))throw new Error("betweenTimes: Expected second argument to be number");if("function"!=typeof n)throw new Error("betweenTimes: Expected third argument to be a function");var u=a(s,this,l).call(this,e,t),c=!1,d=function(){var i=o.currentTime;e<=i&&i<t&&!c?(c=!0,n.call(o.unbindFunction,c)===o.unbindFunction&&o.removeBinding(e,t,n)):e<=i&&i<t||!c||(c=!1,n.call(o.unbindFunction,c)===o.unbindFunction&&o.removeBinding(e,t,n))};this.crossTime.addBinding(e,d),this.crossTime.addBinding(t,d),this.embedElement.addEventListener("time-update",d),d(),null!==(r=(i=this.bindings)[u])&&void 0!==r||(i[u]=[]),this.bindings[u].push({callback:n,endTime:t,startTime:e,timeUpdateBinding:d})}},{key:"removeAllBindings",value:function(){var e=this;Object.keys(this.bindings).forEach((function(t){var n=e.bindings[t];null==n||n.forEach((function(t){e.embedElement.removeEventListener("time-update",t.timeUpdateBinding),e.crossTime.removeBinding(t.startTime,t.timeUpdateBinding),e.crossTime.removeBinding(t.endTime,t.timeUpdateBinding)}))})),this.bindings={}}},{key:"removeBinding",value:function(e,t,n){var i=this,r=a(s,this,l).call(this,e,t),o=this.bindings[r],u=[];o&&(o.forEach((function(r,o){r.callback===n&&(u.push(o),i.embedElement.removeEventListener("time-update",r.timeUpdateBinding),i.crossTime.removeBinding(e,r.timeUpdateBinding),i.crossTime.removeBinding(t,r.timeUpdateBinding))})),u.forEach((function(e){o.splice(e,1)})))}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function l(e,t){return"".concat(e,"-").concat(t)}},(e,t,n)=>{n.d(t,{PlaylistMethods:()=>P});var i=n(47),r=n(66),o=n.n(r),a=n(1),s=n(32),u=n(46),l=n(51),c=n(67),d=n(68),h=n(50);function p(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return y(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(y(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,y(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,y(d,"constructor",l),y(l,"constructor",u),u.displayName="GeneratorFunction",y(l,r,"GeneratorFunction"),y(d),y(d,r,"Generator"),y(d,i,(function(){return this})),y(d,"toString",(function(){return"[object Generator]"})),(v=function(){return{w:o,m:h}})()}function y(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}y=function(e,t,n,i){function o(t,n){y(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},y(e,t,n,i)}function m(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)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){m(o,i,r,a,s,"next",e)}function s(e){m(o,i,r,a,s,"throw",e)}a(void 0)}))}}function b(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,w(i.key),i)}}function _(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var E=(0,s.cdnFastWistiaNetHost)(),P=function(){return e=function e(t,n,r,o){var s,u,l,c,d=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_(this,"_handlePlayerEnded",(function(){d.playNextMedia(!0)})),this.sourceIdentifier="".concat(r.source.type,"_").concat(r.source.id),this._embedHost=null!=o?o:E,this.orderedPlaylistMedias=t,this._player=n,this._autoAdvance=null===(s=r.autoAdvance)||void 0===s||s,this._endBehavior=null!==(u=r.endBehavior)&&void 0!==u?u:"default",this._transition=null!==(l=r.transition)&&void 0!==l?l:"fade",this._isInsidePlayerControl=null!==(c=r.isInsidePlayerControl)&&void 0!==c&&c,this._overrideEmbedOptions=r.overrideEmbedOptions,(0,i.isNumber)(r.startIndex)&&r.startIndex>=t.length-1?(this.activeMediaIndex=this._lastMediaIndex,this.activeMediaId=t[this._lastMediaIndex].hashedId):(0,i.isNotNumber)(r.startIndex)?(this.activeMediaIndex=0,this.activeMediaId=t[0].hashedId):(this.activeMediaIndex=r.startIndex,this.activeMediaId=t[r.startIndex].hashedId),this._autoAdvance&&this._player.addEventListener("ended",this._handlePlayerEnded),(0,i.isNil)(a.Wistia.playlistMethods)&&(a.Wistia.playlistMethods=new Map),a.Wistia.playlistMethods.set(this.sourceIdentifier,this)},t=[{key:"overrideEmbedOptions",set:function(e){this._overrideEmbedOptions=e}},{key:"_lastMediaIndex",get:function(){return this.orderedPlaylistMedias.length-1}},{key:"addMediaToPlaylist",value:function(e,t){(0,i.isNotNil)(t)&&(0,i.isNotNil)(t.index)?this.orderedPlaylistMedias.splice(t.index,0,e):this.orderedPlaylistMedias.push(e)}},{key:"getNextMedia",value:function(){if(this.activeMediaIndex===this._lastMediaIndex){if("no-loop"===this._endBehavior)return;return this.orderedPlaylistMedias[0]}return this.orderedPlaylistMedias[this.activeMediaIndex+1]}},{key:"getPreviousMedia",value:function(){if(0===this.activeMediaIndex){if("no-loop"===this._endBehavior)return;return this.orderedPlaylistMedias[this._lastMediaIndex]}return this.orderedPlaylistMedias[this.activeMediaIndex-1]}},{key:"playMedia",value:(m=g(v().m((function e(t){return v().w((function(e){for(;;)switch(e.n){case 0:return this.activeMediaIndex=this._getIndexOfMediaInPlaylist(t.hashedId),this.activeMediaId=t.hashedId,e.n=1,this._enqueueMedia(t);case 1:this.prefetchNextMedia(),this.prefetchPreviousMedia();case 2:return e.a(2)}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"playNextMedia",value:(y=g(v().m((function e(){var t,n=this,r=arguments;return v().w((function(e){for(;;)if(0===e.n)return t=r.length>0&&void 0!==r[0]&&r[0],e.a(2,new Promise((function(e,r){var o=n.getNextMedia();if((0,i.isNil)(o)){var a=new c.NoNextMediaError("no next media");throw r(a),a}n.activeMediaId=o.hashedId,n.activeMediaIndex=n.activeMediaIndex===n._lastMediaIndex?0:n.activeMediaIndex+1,n._enqueueMedia(o,t).then((function(){n.prefetchNextMedia(),e()})).catch((function(e){e instanceof Error&&r(e),r(new Error("failed to enqueue media ".concat(o.hashedId)))}))})))}),e)}))),function(){return y.apply(this,arguments)})},{key:"playPreviousMedia",value:(p=g(v().m((function e(){var t=this;return v().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e,n){var r=t.getPreviousMedia();if((0,i.isNil)(r)){var o=new d.NoPreviousMediaError("no previous media");throw n(o),o}t.activeMediaId=r.hashedId,t.activeMediaIndex=0===t.activeMediaIndex?t._lastMediaIndex:t.activeMediaIndex-1,t._enqueueMedia(r).then((function(){t.prefetchPreviousMedia(),e()})).catch((function(e){e instanceof Error&&n(e),n(new Error("failed to enqueue media ".concat(r.hashedId)))}))})))}),e)}))),function(){return p.apply(this,arguments)})},{key:"prefetchNextMedia",value:function(){var e=this.getNextMedia();(0,i.isNil)(e)||this._prefetchMedia(e)}},{key:"prefetchPreviousMedia",value:function(){var e=this.getPreviousMedia();(0,i.isNil)(e)||this._prefetchMedia(e)}},{key:"removePlayerEndedListener",value:function(){this._player.removeEventListener("ended",this._handlePlayerEnded)}},{key:"setAutoAdvance",value:function(e){this._autoAdvance=e}},{key:"setEndBehavior",value:function(e){this._endBehavior=e}},{key:"_enqueueMedia",value:(s=g(v().m((function e(t){var n,r,o,a,s,u=arguments;return v().w((function(e){for(;;)switch(e.n){case 0:return r=u.length>1&&void 0!==u[1]&&u[1],e.n=1,this._prefetchMedia(t);case 1:if(o=e.v,!(0,i.isNil)(o)){e.n=2;break}return e.a(2,Promise.resolve());case 2:return a=this.orderedPlaylistMedias[0].hashedId===t.hashedId,this._autoAdvance&&this._isInsidePlayerControl&&this.removePlayerEndedListener(),e.n=3,this._player.replaceWithMedia(o.hashedId,f(f(f({},o.embedOptions),null!==(n=this._overrideEmbedOptions)&&void 0!==n?n:{}),{},{transition:this._transition}));case 3:if(r&&document.dispatchEvent(new CustomEvent("playlist-methods-autoplay-next-media-started")),s=!1,r?this._autoAdvance&&(s=!a||"default"===this._endBehavior):s=!0,!s){e.n=4;break}return e.n=4,this._player.play();case 4:return document.dispatchEvent(new CustomEvent("playlist-methods-changed-media",{detail:{mediaId:o.hashedId}})),e.a(2,Promise.resolve())}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"_getCachedMediaDataAsPlaylistMedia",value:function(e){var t,n,r,o,a=(0,u.getMediaDataFromCache)(e);return(0,i.isNotNil)(a)?{durationInSeconds:null!==(t=a.duration)&&void 0!==t?t:0,embedOptions:null!==(n=a.embedOptions)&&void 0!==n?n:{},hashedId:null!==(r=a.hashedId)&&void 0!==r?r:"",name:null!==(o=a.name)&&void 0!==o?o:""}:null}},{key:"_getIndexOfMediaInPlaylist",value:function(e){return Math.max(this.orderedPlaylistMedias.findIndex((function(t){return t.hashedId===e})),0)}},{key:"_getMediaDataAsPlaylistMedia",value:function(e){var t,n,i,r;return{durationInSeconds:null!==(t=e.duration)&&void 0!==t?t:0,embedOptions:null!==(n=e.embedOptions)&&void 0!==n?n:{},hashedId:null!==(i=e.hashedId)&&void 0!==i?i:"",name:null!==(r=e.name)&&void 0!==r?r:""}}},{key:"_prefetchMedia",value:(r=g(v().m((function e(t){var n,r,a,s,u,c,d,p,y;return v().w((function(e){for(;;)switch(e.n){case 0:if(null!==(n=t.embedOptions)&&void 0!==n&&null!==(r=n.plugin)&&void 0!==r&&r.passwordProtectedVideo&&delete t.embedOptions.plugin.passwordProtectedVideo,u=this._getCachedMediaDataAsPlaylistMedia(t.hashedId),!(0,i.isNotNil)(u)){e.n=1;break}return o()(u.embedOptions,t.embedOptions),e.a(2,Promise.resolve(u));case 1:return c=f(f({},t.embedOptions),{},{embedHost:this._embedHost}),(0,i.isNotNil)(null===(a=t.embedOptions)||void 0===a?void 0:a.channelId)&&(c.channelId=t.embedOptions.channelId),(0,i.isNotNil)(null===(s=t.embedOptions)||void 0===s?void 0:s.channelPassword)&&(c.channelPassword=t.embedOptions.channelPassword),e.n=2,(0,l.fetchMediaData)(t.hashedId,c);case 2:if(d=e.v,!(0,h.isMediaDataError)(d)){e.n=3;break}return e.a(2,Promise.resolve(null));case 3:return p=d,y=this._getMediaDataAsPlaylistMedia(p),o()(y.embedOptions,t.embedOptions),e.a(2,y)}}),e,this)}))),function(e){return r.apply(this,arguments)})}],t&&b(e.prototype,t),n&&b(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,s,p,y,m}()},(e,t,n)=>{e=n.nmd(e);var i="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object Object]",u=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[o]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[a]=c["[object Map]"]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,p=d||h||Function("return this")(),f=t&&!t.nodeType&&t,v=f&&e&&!e.nodeType&&e,y=v&&v.exports===f,m=y&&d.process,g=function(){try{var e=v&&v.require&&v.require("util").types;return e||m&&m.binding&&m.binding("util")}catch(e){}}(),b=g&&g.isTypedArray;var _,w,E,P=Array.prototype,O=Function.prototype,S=Object.prototype,T=p["__core-js_shared__"],k=O.toString,C=S.hasOwnProperty,A=(_=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",j=S.toString,I=k.call(Object),M=RegExp("^"+k.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=y?p.Buffer:void 0,D=p.Symbol,B=p.Uint8Array,x=L?L.allocUnsafe:void 0,R=(w=Object.getPrototypeOf,E=Object,function(e){return w(E(e))}),F=Object.create,W=S.propertyIsEnumerable,N=P.splice,H=D?D.toStringTag:void 0,V=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),U=L?L.isBuffer:void 0,z=Math.max,G=Date.now,q=fe(p,"Map"),K=fe(Object,"create"),Y=function(){function e(){}return function(t){if(!Te(t))return{};if(F)return F(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Z(e){var t=this.__data__=new X(e);this.size=t.size}function J(e,t){var n=we(e),i=!n&&_e(e),r=!n&&!i&&Pe(e),o=!n&&!i&&!r&&Ce(e),a=n||i||r||o,s=a?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],u=s.length;for(var l in e)!t&&!C.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ve(l,u))||s.push(l);return s}function ee(e,t,n){(void 0!==n&&!be(e[t],n)||void 0===n&&!(t in e))&&ie(e,t,n)}function te(e,t,n){var i=e[t];C.call(e,t)&&be(i,n)&&(void 0!==n||t in e)||ie(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(be(e[n][0],t))return n;return-1}function ie(e,t,n){"__proto__"==t&&V?V(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Q.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},Q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Q.prototype.get=function(e){var t=this.__data__;if(K){var n=t[e];return n===i?void 0:n}return C.call(t,e)?t[e]:void 0},Q.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:C.call(t,e)},Q.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K&&void 0===t?i:t,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():N.call(t,n,1),--this.size,!0)},X.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},X.prototype.has=function(e){return ne(this.__data__,e)>-1},X.prototype.set=function(e,t){var n=this.__data__,i=ne(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},$.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(q||X),string:new Q}},$.prototype.delete=function(e){var t=pe(this,e).delete(e);return this.size-=t?1:0,t},$.prototype.get=function(e){return pe(this,e).get(e)},$.prototype.has=function(e){return pe(this,e).has(e)},$.prototype.set=function(e,t){var n=pe(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Z.prototype.clear=function(){this.__data__=new X,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof X){var i=n.__data__;if(!q||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new $(i)}return n.set(e,t),this.size=n.size,this};var re,oe=function(e,t,n){for(var i=-1,r=Object(e),o=n(e),a=o.length;a--;){var s=o[re?a:++i];if(!1===t(r[s],s,r))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":H&&H in Object(e)?function(e){var t=C.call(e,H),n=e[H];try{e[H]=void 0;var i=!0}catch(e){}var r=j.call(e);i&&(t?e[H]=n:delete e[H]);return r}(e):function(e){return j.call(e)}(e)}function se(e){return ke(e)&&ae(e)==o}function ue(e){return!(!Te(e)||function(e){return!!A&&A in e}(e))&&(Oe(e)?M:u).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function le(e){if(!Te(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ye(e),n=[];for(var i in e)("constructor"!=i||!t&&C.call(e,i))&&n.push(i);return n}function ce(e,t,n,i,r){e!==t&&oe(t,(function(o,a){if(r||(r=new Z),Te(o))!function(e,t,n,i,r,o,a){var u=me(e,n),l=me(t,n),c=a.get(l);if(c)return void ee(e,n,c);var d=o?o(u,l,n+"",e,t,a):void 0,h=void 0===d;if(h){var p=we(l),f=!p&&Pe(l),v=!p&&!f&&Ce(l);d=l,p||f||v?we(u)?d=u:ke(_=u)&&Ee(_)?d=function(e,t){var n=-1,i=e.length;t||(t=Array(i));for(;++n<i;)t[n]=e[n];return t}(u):f?(h=!1,d=function(e,t){if(t)return e.slice();var n=e.length,i=x?x(n):new e.constructor(n);return e.copy(i),i}(l,!0)):v?(h=!1,y=l,m=!0?(g=y.buffer,b=new g.constructor(g.byteLength),new B(b).set(new B(g)),b):y.buffer,d=new y.constructor(m,y.byteOffset,y.length)):d=[]:function(e){if(!ke(e)||ae(e)!=s)return!1;var t=R(e);if(null===t)return!0;var n=C.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&k.call(n)==I}(l)||_e(l)?(d=u,_e(u)?d=function(e){return function(e,t,n,i){var r=!n;n||(n={});var o=-1,a=t.length;for(;++o<a;){var s=t[o],u=i?i(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),r?ie(n,s,u):te(n,s,u)}return n}(e,Ae(e))}(u):Te(u)&&!Oe(u)||(d=function(e){return"function"!=typeof e.constructor||ye(e)?{}:Y(R(e))}(l))):h=!1}var y,m,g,b;var _;h&&(a.set(l,d),r(d,l,i,o,a),a.delete(l));ee(e,n,d)}(e,t,a,n,ce,i,r);else{var u=i?i(me(e,a),o,a+"",e,t,r):void 0;void 0===u&&(u=o),ee(e,a,u)}}),Ae)}function de(e,t){return ge(function(e,t,n){return t=z(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=z(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Me),e+"")}var he=V?function(e,t){return V(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Me;function pe(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ue(n)?n:void 0}function ve(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function ye(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||S)}function me(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ge=function(e){var t=0,n=0;return function(){var i=G(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(he);function be(e,t){return e===t||e!=e&&t!=t}var _e=se(function(){return arguments}())?se:function(e){return ke(e)&&C.call(e,"callee")&&!W.call(e,"callee")},we=Array.isArray;function Ee(e){return null!=e&&Se(e.length)&&!Oe(e)}var Pe=U||function(){return!1};function Oe(e){if(!Te(e))return!1;var t=ae(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Se(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Te(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==typeof e}var Ce=b?function(e){return function(t){return e(t)}}(b):function(e){return ke(e)&&Se(e.length)&&!!c[ae(e)]};function Ae(e){return Ee(e)?J(e,!0):le(e)}var je,Ie=(je=function(e,t,n){ce(e,t,n)},de((function(e,t){var n=-1,i=t.length,r=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(r=je.length>3&&"function"==typeof r?(i--,r):void 0,o&&function(e,t,n){if(!Te(n))return!1;var i=typeof t;return!!("number"==i?Ee(n)&&ve(t,n.length):"string"==i&&t in n)&&be(n[t],e)}(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var a=t[n];a&&je(e,a,n,r)}return e})));function Me(e){return e}e.exports=Ie},(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,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function o(e,t,n){return t=l(t),function(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)}(e,s()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(s())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&&u(r,n.prototype),r}(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)},a(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}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){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}n.d(t,{NoNextMediaError:()=>c});var c=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,t,[e])}return 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)}(t,e),n=t,r&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(a(Error))},(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,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function o(e,t,n){return t=l(t),function(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)}(e,s()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(s())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&&u(r,n.prototype),r}(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)},a(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}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){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}n.d(t,{NoPreviousMediaError:()=>c});var c=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,t,[e])}return 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)}(t,e),n=t,r&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(a(Error))},,,(e,t,n)=>{n.d(t,{base64Decode:()=>s,base64Encode:()=>u,parentFramesLength:()=>l,poll:()=>i.poll,throttle:()=>r.throttle,unescapeHtml:()=>o.unescapeHtml});var i=n(26),r=n(72),o=n(73),a=n(1),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 a.Wistia.warn(e),1}}},(e,t,n)=>{n.d(t,{throttle:()=>i});var 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,"&lt;").replace(/>/g,"&gt;"),r=o.childNodes.length>0?o.childNodes[0].nodeValue:"",t.cache&&(i[e]=r),r}},,,(e,t,n)=>{n.d(t,{ALL_API_HANDLES_KEY:()=>h,onFindApiHandle:()=>b,onFindApiHandleRunOnce:()=>_});var i=n(26),r=n(39),o=n(40),a=n(24),s=n(25),u=n(10),l=n(15);function c(e){return function(e){if(Array.isArray(e))return d(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){if("string"==typeof e)return d(e,t);var n={}.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)?d(e,t):void 0}}(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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var h="_all",p=null,f=[],v=[],y=function(e,t){var n,i,r=null!==(n=null!==(i=e.wistiaApi)&&void 0!==i?i:e.deprecatedApiDoNotUse)&&void 0!==n?n:null;null!==r&&"removed"!==r&&t(r)},m=function(e,t){return e.addEventListener(l.INIT_EMBED_EVENT,t),e.addEventListener(l.INTERNAL_API_ON_FIND_EVENT,t),e.addEventListener(l.AFTER_REPLACE_EVENT,t),[function(){return e.removeEventListener(l.INIT_EMBED_EVENT,t)},function(){return e.removeEventListener(l.INTERNAL_API_ON_FIND_EVENT,t)},function(){return e.removeEventListener(l.AFTER_REPLACE_EVENT,t)}]},g=function(e,t,n,i){null!==e&&"removed"!==e&&void 0!==e&&(t!==h&&e!==(0,r.getOneApiHandle)(t)||(i?e.up((function(){return n(e)})):n(e)))},b=function(e){var t=e.matcher,n=e.functionToRun,r=e.shouldOnlyRunWhenVisible,l=void 0!==r&&r,d=function(e){g(e,t,n,l)},h=function(e){var i=e.detail,r=i.api,o=i.deprecatedApiDoNotUse;g(null!=r?r:o,t,n,l)};f.push(d),v.push(h),null===p&&(p=(0,a.elemMutationObserver)((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){if(e instanceof HTMLElement){var t=null;"WISTIA-PLAYER"===e.tagName||(0,a.elemHasClass)(e,"wistia_embed")?t=e:e.querySelector("wistia-player")?t=e.querySelector("wistia-player"):e.querySelector(".wistia_embed")&&(t=e.querySelector(".wistia_embed")),null!==t&&(f.forEach((function(e){y(t,e)})),v.forEach((function(e){m(t,e)})))}}))}))})),(0,s.onDocReady)((function(){if(null!==p)try{p.observe(document.body,{subtree:!0,childList:!0})}catch(e){u.wlog.error(e)}})));var b=function(){var e=function(e,t){var n=Array.from((0,o.getAllApiEmbedElements)()),i=Array.from(document.getElementsByTagName("wistia-player"));return n.concat(i).reduce((function(n,i){return y(i,e),[].concat(c(n),c(m(i,t)))}),[])}(d,h);return function(){return e.map((function(e){return e()}))}};b(),(0,i.poll)(s.isDocReady,b,300,1e4)},_=function(e){var t=e.matcher,n=e.functionToRun,i=e.shouldOnlyRunWhenVisible,r=void 0!==i&&i,o=new Set;b({matcher:t,shouldOnlyRunWhenVisible:r,functionToRun:function(e){o.has(e)||(o.add(e),n(e))}})}},,,,(e,t,n)=>{var i=n(10),r=n(33);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){if("string"==typeof e)return a(e,t);var n={}.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)?a(e,t):void 0}}(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=Array(t);n<t;n++)i[n]=e[n];return i}!function(e){var t=e;if(!e.wlog)e.wlog=i.wlog,e.log=i.wlog.error,e.error=i.wlog.error,e.warn=i.wlog.warn,e.notice=i.wlog.notice,e.info=i.wlog.info,e.debug=i.wlog.debug,e.logLevels=i.LOG_LEVELS,e.stacktrace=function(){try{throw new Error("stacktrace")}catch(e){return e.stack}},e.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))))}},e._initializers.initWLog=function(){var e,t,n,o,a,s,u,l,c,d,h,p,f,v=(0,r.parseUrl)(location.href);if(document.referrer&&(h=(0,r.parseUrl)(document.referrer)),((d=null==v||null===(e=v.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),((p=null==v||null===(o=v.params)||void 0===o?void 0:o.wgrep)||(p=null===(a=h)||void 0===a||null===(s=a.params)||void 0===s?void 0:s.wgrep))&&i.wlog.setGrep(new RegExp(p,"i")),(f=null==v||null===(u=v.params)||void 0===u?void 0:u.wgrepv)||(f=null===(l=h)||void 0===l||null===(c=l.params)||void 0===c?void 0:c.wgrepv))return i.wlog.setGrepv(new RegExp(f,"i"))},e._destructors.destroyWLog=function(){return null===i.wlog||void 0===i.wlog?void 0:i.wlog.reset()}}(window.Wistia)},(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,p,f,v,y,m,g,b,_,w,E,P,O,S,T,k,C,A,j,I,M,L,D,B,x,R,F,W,N,H,V,U,z,G,q,K,Y,Q,X,$,Z,J,ee,te,ne,ie,re,oe,ae,se,ue,le,ce,de,he,pe,fe,ve,ye,me,ge,be,_e,we,Ee,Pe,Oe,Se,Te,ke,Ce,Ae,je,Ie,Me,Le,De,Be,xe,Re,Fe,We,Ne,He,Ve,Ue,ze,Ge,qe,Ke,Ye;if(!e.PublicApi)c=n(17),h=n(60).StopGo,n(5).root,Oe=n(82),Ee=Oe.pluginScriptsToLoad,ee=Oe.getPluginsNotInList,Pe=n(83).prefetchEngineAndPlugins,Se=n(84),le=Se.injectJsonLd,Ne=Se.removeInjectedJsonLd,(Me=n(33)).proto,_e=Me.parseUrl,Me.Url,s=n(90).CrossTimePublicApi,a=n(91).BetweenTimesPublicApi,Le=n(92),Z=Le.getLanguage,pe=Le.isSupportedPlayerLanguage,fe=Le.loadAndDefineTranslation,De=n(41),Ke=De.wData,Ye=De.wRemoveData,Be=n(23),_=Be.doTimeout,m=Be.clearTimeouts,ze=n(35).seqId,f=n(19).assign,xe=n(18),g=xe.clone,me=xe.merge,we=xe.pick,de=xe.isEmpty,y=xe.cast,xe.setDeep,xe.getDeep,he=xe.isObject,V=xe.equalsDeep,Re=n(55),b=Re.countMetric,He=Re.sampleMetric,n(71).poll,U=n(93).extractEmailFromParams,se=n(94).inferPageUrl,ne=n(95).getPreferredCaptionsIndex,te=n(52).getPreferredAvailableLanguageIndex,Fe=n(53),ie=Fe.getViewerPreference,re=Fe.getViewerPreferences,Ge=Fe.setViewerPreference,w=n(54).dynamicImport,n(100).getChannelStorage,ve=n(101).maybeLoadAndSetupEmbedLinksThrottled,n(102).debounce,z=n(88).formattedDurationToSeconds,n(103).DEFAULT_ASPECT,We=n(15),t=We.AFTER_REPLACE_EVENT,o=We.BEFORE_REPLACE_EVENT,d=We.LOADED_MEDIA_DATA_EVENT,l=We.IMPL_CREATED_EVENT,ue=n(104).inferQualityRangeFromOpts,G=n(105).generateRelativeBlockCss,Te=n(57),X=Te.getEmbedOptionStore,u=Te.GLOBAL_ID_KEY,J=n(39).getOneApiHandleFromHashedId,ke=n(106),Q=ke.getDefaultPlayerBorderRadius,q=ke.getDefaultBigPlayButtonBorderRadius,K=ke.getDefaultControlBarBorderRadius,Y=ke.getDefaultControlBarDistance,(Ce=n(45)).mediaDataUrl,Ce.mediaDataScriptRegExp,Ce.transformResponse,v=Ce.cacheMedia,$=n(49).getInitialMediaData,n(30).findScriptInDomBySrc,Ve=n(107).sanePlayerColor,p=n(59).TranslationApi,e.Judy=c,e.Assets=n(44),Ae=n(24),W=Ae.elemUnbindAllInside,N=Ae.elemWidth,O=Ae.elemAddClass,Ae.elemAfter,S=Ae.elemAnimate,T=Ae.elemAppend,k=Ae.elemBefore,C=Ae.elemFromObject,A=Ae.elemHasClass,j=Ae.elemHeight,I=Ae.elemInDom,M=Ae.elemIsHidden,L=Ae.elemOffset,Ae.elemPrepend,D=Ae.elemRebind,B=Ae.elemRemove,x=Ae.elemStyle,R=Ae.elemUnbind,F=Ae.elemUnbindAll,ae=Ae.inUserEventContext,Ue=n(108).scrollTop,je=n(32),P=je.eV1Protocol,E=je.eV1HostWithPort,oe=n(11).globalTrigger,n(109).uniqId,n(71).throttle,Ie=n(110),ce=Ie.insertIntoArray,qe=Ie.toArray,ye=n(48).mediaDataTransforms,H=n(111).embedOptionsFromQueryParams,ge=n(112).normalizeOptions,e.PublicApi=function(){function n(t,n){var r,o,a,s,u,l,c,d;this._definePluginMethod=i(this._definePluginMethod,this),this._doResize=i(this._doResize,this),this._doMonitor=i(this._doMonitor,this),this._loadTranslationsAndExecPlugins=i(this._loadTranslationsAndExecPlugins,this),this._loadTranslations=i(this._loadTranslations,this),this._initWithMediaData=i(this._initWithMediaData,this),this._allocEmbedSlot=i(this._allocEmbedSlot,this),this.on("problem",(d=this,function(e){return e.video=d,oe("problem",e)})),this.info("initialize"),this._hasImpl=new h,this._notReplacing=new h,this._notReplacing(!0),this.hasPlugins=new h,this.up=new h,this.up(!0),this.down=new h,this.down(!1),this.inViewport=new h,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(t),this._givenOptions=n,this._playlist=[],this._setupContainer(),this._setupTranslationApiForLegacyEmbeds(),this._validate(),this._inferPropertiesBeforeMediaData(),this._dedupContainer(),this._addToGlobalCache(),this._setupBindings(),this.supportedPlayers=[],this.addToPlaylist(this.hashedId(),n),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!=(l=window.wistiaEmbeds)&&l.bindHandles(),this.monitor(),this.embedded(function(e){return function(){return e.monitor()}}(this)),this.ready(function(e){return function(){return e.monitor()}}(this)),o=function(t){return function(){return t._onInitializable((function(){return t._withFreeEmbedSlots((function(){var n,i,r,o,a,s,u,l;return t._initTime=(new Date).getTime(),t.hasData((function(){return t._hasDataTime=(new Date).getTime()})),t.embedded((function(){return t._embeddedTime=(new Date).getTime()})),t.ready((function(){return t._readyTime=(new Date).getTime(),t.removeSwatch()})),o=t._gatherOptions(),n=t.hashedId(),null!==o.viewerPreferences&&void 0!==o.viewerPreferences&&(e._viewerPreferencesEnabled=o.viewerPreferences),(null!=(a=o.mediaData)?a.hashedId:void 0)&&(v(o.mediaData.hashedId,o.mediaData),n=o.mediaData.hashedId),(i=f({},t._gatherOptions())).overrideMediaLanguage=i.language,"alternate_audio"===(null!=(s=i.localization)?s.localizationIntent:void 0)&&(r=null!=(u=i.mediaData)&&null!=(l=u.localizations)?l.find((function(e){return e.sourceLanguage})):void 0)&&(n=r.hashedId,i.overrideMediaLanguage=r.iso6392LanguageCode,t._givenOptions.audioPreference={lang:i.localization.ietfLanguageTag||i.localization.bcp47LanguageTag,characteristics:""}),$(n,i).then((function(e){var n;return"alternate_audio"===(null!=(n=ie("localization"))?n.localizationIntent:void 0)&&e.hashedId===t.sourceHashedId()&&(t._givenOptions.audioPreference={lang:n.ietfLanguageTag||n.bcp47LanguageTag,characteristics:""}),t._initWithMediaData(e)})).catch((function(){return b("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)},w("assets/external/popover.js").then(function(t){return function(){return t.popover=new e.Popover(t),o()}}(this))):o(),this.trigger("initembed"),this.container.dispatchEvent(new CustomEvent("initembed",{detail:{api:this}})),ve(),performance.mark("player_init_complete");try{if(e.detect.performanceMeasure)for(He("player/initembed-latency",performance.measure("player_init_latency","player_init_start","player_init_complete").duration),c=e.Metrics.embedTypeBuckets(this.container),s=0,u=c.length;s<u;s++)r=c[s],He("player/initembed-latency."+r,performance.measure("player_init_latency","player_init_start","player_init_complete").duration)}catch(e){a=e,setTimeout((function(){throw a}),0)}}return n.prototype._withFreeEmbedSlots=function(t){var n,i;return this._setupEmbedSlots(),n=null,this.embedded((i=this,function(){return clearTimeout(n),n=setTimeout((function(){return i._freeEmbedSlot()}),i._embedSlotThrottleInterval())})),null==this._freeEmbedSlotOnError&&(this._freeEmbedSlotOnError=function(e){return function(){return e._freeEmbedSlot(),e.unbind}}(this)),this.rebind("servererror",this._freeEmbedSlotOnError),e._embedSlotFree(function(e){return function(){return e._allocEmbedSlot(),n=setTimeout((function(){return e._freeEmbedSlot()}),1e3),t()}}(this))},n.prototype._onInitializable=function(t){return this.popover&&M(this.container)?(this.info("popover, delaying init until container is visible"),e.eventLoop.add(this.uuid+".wait_for_container_visible",500,(n=this,function(){var i;if(!M(n.container)){n.info("container became visible, initializing");try{t()}catch(t){i=t,e.error(i)}return e.eventLoop.remove}}))):t();var n},n.prototype._setupEmbedSlots=function(){if(null==e._embedSlots&&(e._embedSlots=[]),!e._embedSlotFree)return e._embedSlotFree=new h,e._embedSlotFree(!0)},n.prototype._maxEmbedSlots=function(){var e,t;return(t=function(){var t,n;for(e in n=[],t=Ke("video"))t[e],n.push(e);return n}().length)>20?5:t>10?8:13},n.prototype._embedSlotThrottleInterval=function(){return 500},n.prototype._freeEmbedSlot=function(){var t;if(this._setupEmbedSlots(),e._embedSlots=function(){var n,i,r,o;for(o=[],n=0,i=(r=e._embedSlots).length;n<i;n++)(t=r[n])!==this&&o.push(t);return o}.call(this),e._embedSlots.length<this._maxEmbedSlots())return e._embedSlotFree(!0)},n.prototype._allocEmbedSlot=function(){if(this._setupEmbedSlots(),e._embedSlots.push(this),e._embedSlots.length>=this._maxEmbedSlots())return e._embedSlotFree(!1)},n.prototype._shouldLazyLoad=function(){var e;return e=this._gatherOptions(),!window._inWistiaIframe&&parent===self&&(e.lazyLoad||this.popover&&!1!==e.lazyLoad)},n.prototype._initWithMediaData=function(t){var n,i,r,o,u,d;this.info("_initWithMediaData",t);try{0===e.Player.assets(t,{public:!0}).length&&e.Metrics.videoCount(this,"player/no-public-assets")}catch(e){n=e,this.debug(n)}if(!this.isRemoved())return Object.hasOwn(t,"error")&&t.error?(this.notice("display error message from server"),this._displayServerError(t),void this.trigger("servererror")):(this.hashedId(t.hashedId),this._originalMediaData=g(t),this._mediaData=t,this._mediaData=ye(g(t),this._gatherOptions()),this.data.media=t,o=this._optionSources(),this.info("_optionSources",o),(null!=(u=o.inline)?u.container:void 0)instanceof HTMLElement&&(o.inline=f({},o.inline,{container:o.inline.container.uniqueId||o.inline.container.id||"container-with-no-id"})),b("player/option-sources",1,{optionSources:o,hashedId:this._hashedId,url:window.location.href}),this._opts=this._gatherOptions(),this.info("_opts",g(this._opts)),me(this._mediaData,this._opts.mergeMediaData),this._inferPropertiesAfterMediaData(),r=c.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=c.playerPlugins(this.judyCtx(),r,this._mediaData,this._opts),c.logWarnings(this.judyCtx(),r,this._mediaData,this._opts),this._implVersion+=1,i=this._implVersion,this._loadTranslationsAndExecPlugins().then((d=this,function(){var t,n,o;if(d.isRemoved())d.notice("abort, video already removed");else{if(d._implVersion===i){d.hasPlugins(!0),n=e.PublicApi.classFor(r),d.supportedPlayers=c.supportedPlayers(d.judyCtx(),d._mediaData.assets);try{d.crossTime=new s(d,d.unbind),d.betweenTimes=new a(d,d.unbind),d._impl=new n(d).init(),d.container.dispatchEvent(new CustomEvent(l,{detail:{impl:d._impl}}))}catch(e){throw t=e,d.error("Failed to initialize impl of class",n,"preferred",r,"supported",d.supportedPlayers),t}return d.grid=d._impl.setupGrid({initDimensions:!1}),d._hasImpl(!0),d.hasData(!0),(null!=(o=d._embedContainer)?o.parentNode:void 0)?(d._runMethodsFromOptions(),d._impl.embed(),d._getFadeInTime()>0&&x(d._impl.gridChildren(),{opacity:0}),d._impl.embedded((function(){return d._getFadeInTime()>0?S(d._impl.gridChildren(),{opacity:1},{time:d._getFadeInTime(),callback:function(){return d.trigger("transitiondone")}}):d.trigger("transitiondone")})),_(d.uuid+".prefetch_next_media",(function(){return d.prefetchNextMedia()}),2e3),d._injectJsonLd()):d.notice("embed(): container removed, giving up")}d.notice("_initWithMediaData(): impl changed from",i,"to",d._implVersion,"not completing init")}})));this.notice("abort, video already removed")},n.prototype._getFadeInTime=function(){return null!=this._opts.fadeInTime?this._opts.fadeInTime:200},n.prototype.judyCtx=function(){return this._judyCtx||(this._judyCtx=c.buildContext({pageUrl:this._attrs.pageUrl}))},n.prototype._wvideoInUrl=function(){return!this._opts._inIframe&&_e(this._attrs.pageUrl).params.wvideo===this.hashedId()},n.prototype._scrollToContainer=function(){var e;return e=L(this.container),Ue(e.top-100)},n.prototype._injectJsonLd=function(){if("WISTIA-PLAYER"!==this.container.tagName&&(this._jsonLdId&&Ne(this._jsonLdId),"notplayable"!==this.playerType&&"passwordprotected"!==this.playerType&&"carouselHardWall"!==this.playerType&&!1!==this._attrs.seo))return this._jsonLdId="w-json-ld"+this._impl.uuid,le(this._jsonLdId,this._mediaData,{videoWidth:this.videoWidth(),videoHeight:this.videoHeight(),embedOptions:this._opts})},n.prototype._setDeprecatedProperties=function(){return this.options=g(this._opts),this.params=g(this._opts),me(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},n.prototype.elem=function(){var e;return null!=(e=this._impl)&&"function"==typeof e.elem?e.elem():void 0},n.prototype._loadTranslations=function(){var e;return e=this.captionsLanguage(),pe(e.bcp47LanguageTag)?fe(e.bcp47LanguageTag):Promise.resolve()},n.prototype._loadTranslationsAndExecPlugins=function(){return Promise.all([this._loadTranslations(),this._execPlugins()])},n.prototype._execPlugins=function(){var t;return this._pluginScripts=Ee(this._mediaData,this._opts,this._playerPlugins),e.plugin._setFnForDefinedPlugins(this,this._pluginScripts),(t=ee(this._pluginScripts)).length>0&&b("custom-plugin-exec",1,{customPlugins:t,hashedId:this._hashedId,url:window.location.href}),this.info("_execPlugins",this._pluginScripts),e.plugin._execQueue(this,this._pluginScripts)},n.prototype._optionSources=function(e){var t,n,i,r,o,a,s,l,c,d,h,p;if(null==e&&(e={}),"v1"===(o=(e=me({givenOptions:g(this._givenOptions),mediaData:g(this._mediaData),hashedId:this._hashedId,container:this.container},e)).givenOptions).version?i={}:e.mediaData?(i=g(this._customizeEmbedOptions||e.mediaData.embedOptions),e.preserveStillUrl||delete i.stillUrl):i={},s=H(["disallowOriginalFilePlayback","autoPlay","deliveryCdn","forceInstantHls","forceOriginalFilePlayback","hls","techInfo"],this._inferPageUrl()),n=e.container.uniqueId||e.container.id,t=o.channelPreferences||(null!=(l=o.mediaData)&&null!=(c=l.embedOptions)?c.channelPreferences:void 0)||{},r={},delete(h={customize:i,global:X(u),hashedId:X(e.hashedId,J),dom:X("__"+n+"_dom_options__"),container:X(n),inline:o,inferredOptions:r,viewerPreferences:re(),channelPreferences:t,queryParamOptions:s,override:e.override||{}}).viewerPreferences.plugin,o.optionSourceOverrides)for(a in d=o.optionSourceOverrides)p=d[a],h.hasOwnProperty(a)&&(h[a]=p);for(a in h)p=h[a],de(p)&&delete h[a];return h},n.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?me(i,a):t.only||t.except||me(i,a);return i},n.prototype._gatherOptions=function(e){var t,n;return null==e&&(e={}),n=this._optionSources(e),"v1"===(t=this._mergeSources(n,e)).version&&(n.customize={},t=this._mergeSources(n,e)),y(t),ge(t)},n.prototype.hashedId=function(e){return null!=e?("number"==typeof e&&(e=e.toString()),this._hashedId=e,this):this._hashedId},n.prototype.sourceHashedId=function(){var e;return(null!=(e=this._mediaData)?e.sourceHashedId:void 0)||this.hashedId()},n.prototype.isAudio=function(){return"Audio"===this._mediaData.mediaType},n.prototype.isLiveMedia=function(){var e;return"LiveStream"===(null!=(e=this._mediaData)?e.mediaType:void 0)},n.prototype._setupContainer=function(){var e,t,n,i,r,o,a,s,u,l,c,d,h,p;if(this._containerId=this._givenOptions.container?this._givenOptions.container:"wistia_"+this.hashedId(),this.wistiaPlaylistElem=null,"string"==typeof this._containerId?this.container=document.getElementById(this._containerId):this.container=this._containerId,this.container){if("WISTIA-PLAYER"===this.container.tagName&&"WISTIA-PLAYLIST"===(null!=(s=this.container.parentElement)?s.tagName:void 0))return;if("WISTIA-PLAYER"===this.container.tagName&&(this._shouldBePopover()||this.wistiaPlaylistElem)){for(this.webComponentParent=this.container.parentNode,this._startingHtml=this.webComponentParent.cloneNode(!0),t=0,n=(u=Array.prototype.slice.call(this._startingHtml.childNodes)).length;t<n;t++)"WISTIA-PLAYER"===(e=u[t]).tagName&&B(e);for(this._startingHtml=this._startingHtml.innerHTML,o=0,i=(l=Array.prototype.slice.call(this.webComponentParent.childNodes)).length;o<i;o++)e=l[o],A(e,"wistia_swatch")||"WISTIA-PLAYER"===e.tagName||"WISTIA-CHANNEL-CAROUSEL"===e.tagName||B(e)}else if("WISTIA-PLAYER"!==this.container.tagName){for(this.container.wistiaApi=this,this._startingHtml=this.container.innerHTML,a=0,r=(c=Array.prototype.slice.call(this.container.childNodes)).length;a<r;a++)e=c[a],A(e,"wistia_swatch")||B(e);O(this.container,"wistia_embed_initialized")}}else"string"==typeof this._containerId&&(this.container=document.querySelector("[unique-id='"+this._containerId+"']"),"WISTIA-PLAYLIST"===(null!=(d=this.container)&&null!=(h=d.parentElement)?h.tagName:void 0)&&(this.wistiaPlaylistElem=this.container.parentElement),this._startingHtml=null!=(p=this.container)?p.innerHTML:void 0);return this.info("container",this.container)},n.prototype._setupTranslationApiForLegacyEmbeds=function(){if(this.container&&"WISTIA-PLAYER"===this.container.tagName&&this.container.getAttribute("use-web-component")&&!this.container.translationApi)return this.translationApi=new p(this.container),this.container.translationApi=this.translationApi},n.prototype._inferPropertiesBeforeMediaData=function(){var t;if(this.chrome=C({id:ze("wistia_chrome_"),class:"w-chrome notranslate",style:G,tabindex:-1}),x(this.chrome,{outline:"none",overflow:"hidden",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),t=this._gatherOptions(),this._shouldBePopover()?(this._popoverContainer=C({role:"dialog",id:this.container.id+"_popover_container"}),e.detect.safari||e.detect.iphone||e.detect.ipad||this._popoverContainer.setAttribute("aria-modal",!0),this._embedContainer=C({id:this.container.id+"_popover",style:{height:this._popoverSize(t).height+"px",width:this._popoverSize(t).width+"px"}}),"WISTIA-PLAYER"===this.container.tagName&&x(this._embedContainer,{position:"absolute"}),T(this._popoverContainer,this._embedContainer),T(document.body,this._popoverContainer)):this._embedContainer=this.container,T(this._embedContainer,this.chrome),t.uuid?this.uuid=t.uuid:this.uuid=ze(),this.info("uuid",this.uuid),null!=t.playlistLoop&&(this._attrs.playlistLoop=t.playlistLoop),this._embedContainer)return this._attrs.startingWidth=N(this._embedContainer),this._attrs.startingHeight=j(this._embedContainer)},n.prototype._shouldBePopover=function(){var e;return!(e=this._gatherOptions())._inIframe&&(!0===e.wistiaPopover||!0===e.popover||"v2"===e.popover)},n.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}},n.prototype._inferPropertiesAfterMediaData=function(){var t,n,i,r,o,a,s,u,l,c,d,h,p,f,v,y,m,g;return"WISTIA-PLAYER"===this.container.tagName&&this.isAudio()&&0===j(this.chrome)&&(this.chrome.style.height="45px"),this._opts.authorization&&(this._attrs.authorization=this._opts.authorization),this._attrs.audioPreference=this._opts.audioPreference,this._attrs.shouldTrack=!this._opts.doNotTrack,this._attrs.seekThreshold=this._opts.seekThreshold||1.5,c=(d=ue(this._opts,this._mediaData))[0],l=d[1],this._attrs.qualityMin=c,this._attrs.qualityMax=l,(null!=(h=this.container.parentNode)&&null!=(p=h.classList)?p.contains("wistia_responsive_wrapper"):void 0)&&(null!=(f=this.container.parentNode)&&null!=(v=f.parentNode)&&null!=(y=v.classList)?y.contains("wistia_responsive_padding"):void 0)&&(this.container.parentNode.style.height="100%",this.container.parentNode.style.left=0,this.container.parentNode.style.position="absolute",this.container.parentNode.style.top=0,this.container.parentNode.style.width="100%",this.container.parentNode.parentNode.style.padding=1/this._mediaData.aspectRatio*100+"% 0 0 0",this.container.parentNode.parentNode.style.position="relative"),this._opts.videoQuality&&b("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._inferPageUrl(),this._attrs.referrerUrl||(this._attrs.referrerUrl=(null!=(m=this._opts)?m.referrerUrl:void 0)||document.referrer),null!=this._opts.trackEmail&&(this._attrs.email=this._opts.trackEmail),!this._attrs.email&&this._attrs.shouldTrack&&(g=U(this._attrs.pageUrl))&&(this._attrs.email=g),!this._attrs.email&&e.localStorage([this._attrs.pageUrl,"trackEmail"])&&(this._attrs.email=e.localStorage([this._attrs.pageUrl,"trackEmail"])),this._handleDidPlayerColorChange(),t=(o=this._attrs.captionsBackgroundColor)&&o!==this._opts.captionsBackgroundColor,this._attrs.captionsBackgroundColor=this._opts.captionsBackgroundColor,t&&this.container.dispatchEvent(new CustomEvent("captionsbackgroundcolorchange",{detail:{color:this._attrs.captionsBackgroundColor,prevColor:o}})),r=(u=this._attrs.captionsTextSize)&&u!==this._opts.captionsTextSize,this._attrs.captionsTextSize=this._opts.captionsTextSize,r&&this.container.dispatchEvent(new CustomEvent("captionstextsizechange",{detail:{size:this._attrs.captionsTextSize,prevSize:u}})),i=(s=this._attrs.captionsFontFamily)&&s!==this._opts.captionsFontFamily,this._attrs.captionsFontFamily=this._opts.captionsFontFamily,i&&this.container.dispatchEvent(new CustomEvent("captionsfontfamilychange",{detail:{font:this._attrs.captionsFontFamily,prevFont:s}})),n=(a=this._attrs.captionsBorderRadius)&&a!==this._opts.captionsBorderRadius,this._attrs.captionsBorderRadius=this._opts.captionsBorderRadius,n&&this.container.dispatchEvent(new CustomEvent("captionsborderradiuschange",{detail:{borderRadius:this._attrs.captionsBorderRadius,prevBorderRadius:a}})),this._attrs.forceOriginalFilePlayback=this._opts.forceOriginalFilePlayback,this._attrs.disallowOriginalFilePlayback=this._opts.disallowOriginalFilePlayback,this._attrs.aspect=this._opts.aspect,null!==this._opts.audioDescriptionControl&&void 0!==this._opts.audioDescriptionControl&&(this._attrs.audioDescriptionControl=this._opts.audioDescriptionControl),null!==this._opts.audioDescriptionIsRequired&&void 0!==this._opts.audioDescriptionIsRequired&&(this._attrs.audioDescriptionControl=this._opts.audioDescriptionIsRequired),null!==this._opts.autoplay&&void 0!==this._opts.autoplay?this._attrs.autoplay=this._opts.autoplay:this._attrs.autoplay=this._opts.autoPlay,null!==this._opts.bigPlayButton&&void 0!==this._opts.bigPlayButton?this._attrs.bigPlayButton=this._opts.bigPlayButton:this._attrs.bigPlayButton=this._opts.playButton,null!==this._opts.controlsVisibleOnLoad&&void 0!==this._opts.controlsVisibleOnLoad?this._attrs.controlsVisibleOnLoad=this._opts.controlsVisibleOnLoad:this._attrs.controlsVisibleOnLoad=!0,null!==this._opts.copyLinkAndThumbnailEnabled&&void 0!==this._opts.copyLinkAndThumbnailEnabled?this._attrs.copyLinkAndThumbnail=this._opts.copyLinkAndThumbnailEnabled:null!==this._opts.copyLinkAndThumbnail&&void 0!==this._opts.copyLinkAndThumbnail?this._attrs.copyLinkAndThumbnail=this._opts.copyLinkAndThumbnail:this._attrs.copyLinkAndThumbnail=!0,this._attrs.doNotTrack=this._opts.doNotTrack,this._attrs.endVideoBehavior=this._opts.endVideoBehavior||"default",this._attrs.forceInstantHls=this._opts.forceInstantHls,null!==this._opts.fullscreenControl&&void 0!==this._opts.fullscreenControl?this._attrs.fullscreenControl=this._opts.fullscreenControl:this._attrs.fullscreenControl=this._opts.fullscreenButton,this._attrs.playbackRateControl=this._opts.playbackRateControl,null!==this._opts.playBarControl&&void 0!==this._opts.playBarControl?this._attrs.playBarControl=this._opts.playBarControl:this._attrs.playBarControl=this._opts.playbar,this._attrs.playerBackgroundColor=this._opts.playerBackgroundColor||"#000000",this._attrs.playlistLinks=this._opts.playlistLinks,null!==this._opts.playPauseControl&&void 0!==this._opts.playPauseControl?this._attrs.playPauseControl=this._opts.playPauseControl:this._attrs.playPauseControl=this._opts.smallPlayButton,this._attrs.playPauseNotifier=this._opts.playPauseNotifier,this._attrs.popoverAnimateThumbnail=this._opts.popoverAnimateThumbnail,this._attrs.popoverAnimation=this._opts.popoverAnimation,this._attrs.popoverBorderColor=this._opts.popoverBorderColor,this._attrs.popoverBorderRadius=this._opts.popoverBorderRadius,this._attrs.popoverBorderWidth=this._opts.popoverBorderWidth,this._attrs.popoverBoxShadow=this._opts.popoverBoxShadow,this._attrs.popoverCaption=this._opts.popoverCaption,this._attrs.popoverCaptionContainer=this._opts.popoverCaptionContainer,this._attrs.popoverContent=this._opts.popoverContent,null!==this._opts.popoverDisableAutoplay&&void 0!==this._opts.popoverDisableAutoplay?this._attrs.popoverDisableAutoplay=this._opts.popoverDisableAutoplay:this._attrs.popoverDisableAutoplay=this._opts.popoverDisableAutoPlay,this._attrs.popoverShowOnLoad=this._opts.popoverShowOnLoad,this._attrs.popoverOverlayColor=this._opts.popoverOverlayColor,this._attrs.popoverOverlayOpacity=this._opts.popoverOverlayOpacity,this._attrs.popoverPreventScroll=this._opts.popoverPreventScroll,null!==this._opts.poster&&void 0!==this._opts.poster?this._attrs.poster=this._opts.poster:this._attrs.poster=this._opts.stillUrl,this._attrs.preload=this._opts.preload,this._attrs.qualityControl=this._opts.qualityControl,this._attrs.resumable=this._opts.resumable,this._attrs.seo=this._opts.seo,"WISTIA-PLAYER"!==this.container.tagName||null!==this._opts.seo&&void 0!==this._opts.seo||(this._attrs.seo=!0),this._attrs.settingsControl=this._opts.settingsControl,null!==this._opts.silentAutoplay&&void 0!==this._opts.silentAutoplay?this._attrs.silentAutoplay=this._opts.silentAutoplay:this._attrs.silentAutoplay=this._opts.silentAutoPlay,this._attrs.statsUrl=this._opts.statsUrl,null!==this._opts.transparentLetterbox&&void 0!==this._opts.transparentLetterbox?this._attrs.transparentLetterbox=this._opts.transparentLetterbox:"transparent"===this._opts.wmode&&(this._attrs.transparentLetterbox=!0),this._opts.volume&&(this._attrs.volume=this._opts.volume),this._attrs.volumeControl=this._opts.volumeControl,null!==this._opts.wistiaPopover&&void 0!==this._opts.wistiaPopover?this._attrs.wistiaPopover=this._opts.wistiaPopover:this._attrs.wistiaPopover=this._opts.popover,this._attrs.bigPlayButtonBorderRadius=q(this._opts),this._attrs.controlBarBorderRadius=K(this._opts),this._attrs.floatingControlBar=this._opts.floatingControlBar||!1,this._attrs.controlBarDistance=Y(this._opts),this._attrs.playerBorderRadius=Q(this._opts),this._attrs.roundedPlayer=this._opts.roundedPlayer||0,this._attrs.captionsBackgroundColor=this._opts.captionsBackgroundColor,this._attrs.captionsTextColor=this._opts.captionsTextColor,this._attrs.captionsTextSize=this._opts.captionsTextSize,this._attrs.captionsFontFamily=this._opts.captionsFontFamily,this._attrs.captionsBorderRadius=this._opts.captionsBorderRadius,this._opts.noDeprecatedProperties||this._setDeprecatedProperties(),this},n.prototype._handleDidPlayerColorChange=function(e,t){var n,i,r,o,a,s,u,l,c,d,h,p,f,v;return null==e&&(e={}),null==t&&(t={}),c=g(this._attrs.playerColor),a=g(this._opts.playerColor),d=g(this._attrs.playerColorGradient),s=g(this._opts.playerColorGradient),l=g(this._attrs.opaqueControls),o=g(this._opts.opaqueControls),u=g(this._attrs.contrastIcons),r=g(this._opts.contrastIcons),p=c&&c!==a,i=d&&!V(d,s),h=l&&l!==o,n=u&&u!==r,v=this,f=function(){return v._attrs.playerColor=Ve(a||"636155"),v._attrs.playerColorGradient=s,v._attrs.opaqueControls=o,v._attrs.contrastIcons=r,(p||i||n)&&v.container.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:a,prevColor:c,gradient:s,prevGradient:d,prevContrastIcons:u,contrastIcons:r}})),h&&v.container.dispatchEvent(new CustomEvent("opaquecontrolschange",{detail:{opaqueControls:o,prevOpaqueControls:l}})),v.unbind("transitiondone",f)},!1===this._notReplacing()?this.bind("transitiondone",f):f()},n.prototype._inferPageUrl=function(){var e;return(null!=(e=this._opts)?e.pageUrl:void 0)?this._opts.pageUrl:se()},n.prototype._runMethodsFromOptions=function(){var t,n,i,r,o;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.captionsLanguage||this._hasReplaced||this.captionsLanguageCode(this._opts.captionsLanguage),null!=this._opts.mediaLanguage&&this.embedded((o=this,function(){if(o.mediaLanguageCode()!==o._opts.mediaLanguage&&!o._hasReplaced)return o.mediaLanguageCode(o._opts.mediaLanguage)})),null!=this._opts.videoFoam&&this.videoFoam(this._opts.videoFoam),this._opts.controlScaling&&this.controlScaling(this._opts.controlScaling),null!=this._attrs.volume&&this.volume(this._attrs.volume),this.isLiveMedia()||(!0!==this._opts.muted&&0!==this._attrs.volume||this.mute(),!1===this._opts.muted&&this.unmute()),this._opts.suppressPlay&&this.suppressPlay(this._opts.suppressPlay),this.popover&&!("function"==typeof(t=this.popover).isVisible?t.isVisible():void 0)||!this._attrs.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 i=e.detect.iphone||e.detect.ipad||e.detect.android,n=this.popover&&!this.popover._visible,r="playing"!==this.state()&&(i||n),this.time(this._opts.time,{lazy:r})},n.prototype._playSuspendedOffScreenEnabled=function(){return null!=this._opts.playSuspendedOffScreen&&"auto"!==this._opts.playSuspendedOffScreen?this._opts.playSuspendedOffScreen:this.isMuted()},n.prototype._validate=function(){var e;if((e=this._errors()).length>0)throw new Error(e.join(", "));return!0},n.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},n.prototype._dedupContainer=function(){var e,t,n,i,r,o,a,s,u,l;if(Ke("video")){for(l in u=[],o=Ke("video"))t=o[l],e=this.container.uniqueId||this.container.id,n=(null!=(a=t.container)?a.uniqueId:void 0)||(null!=(s=t.container)?s.id:void 0),e&&n===e&&u.push(t);for(i=0,r=u.length;i<r;i++)n=(t=u[i]).container.uniqueId||t.container.id,this.notice("_dedupContainer",n),t.remove();if(u.length>0)return this.container.wistiaApi=this}},n.prototype._addToGlobalCache=function(){var e;return this.info("_addToGlobalCache",this.uuid),e=this.container.translationApi?this.container.translationApi:this,Ke(["video",this.uuid],e)},n.prototype._displayServerError=function(e){var t,n,i,r,o;return r=Object.hasOwn(e,"iframe")&&e.iframe,i="",Object.hasOwn(e,"message")?i=e.message:Object.hasOwn(e,"error")&&(i=e.error),o=this,t=function(){var e,t;return(t=document.createElement("div")).style.cssText="background:#fff;border:2px dashed #ddd;color:#aaa;font-family:Century Gothic,Arial;font-size:14px;text-align:center;width:"+o.width()+";height:"+o.height()+";",(e=document.createElement("div")).style.padding="20px",e.textContent=i,t.appendChild(e),t},n=function(e){return function(){var t,n;return t=P()+"//"+E(),(n=document.createElement("iframe")).src=t+"/embed/iframe/"+e.hashedId(),n.height=e.height(),n.width=e.width(),n.frameBorder="0",n.scrolling="no",n}}(this),"WISTIA-PLAYER"===this.container.tagName&&(this.container.shadowRoot.innerHTML="",this.container.shadowRoot.appendChild(r?n():t())),this.container.innerHTML="",this.container.appendChild(r?n():t())},n.prototype._implExec=function(){var t,n,i;return n=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],this._hasImpl((i=this,function(){var r;return i._impl[n]?i._impl[n]._originalMethod===i[n]&&void 0!==i[n]?void i.warn("calling "+n+" would result in an infinite loop"):(r=i._impl)[n].apply(r,t):i.warn(n+" is not defined",e.stacktrace())})),this},n.prototype._implGet=function(){var t,n,i,o;return i=arguments[0],n=arguments[1],t=3<=arguments.length?r.call(arguments,2):[],null==n&&(n=null),this._hasImpl()?this._impl[i]?this._impl[i]._originalMethod===this[i]&&void 0!==this[i]?void this.warn("calling "+i+" would result in an infinite loop"):(o=this._impl)[i].apply(o,t):this.warn(i+" is not defined",e.stacktrace()):n},n.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)},n.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 0!==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"))}))}))},n.prototype._commandQueueImplPromise=function(){var t,n,i;return n=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],this._hasImpl((i=this,function(){return i._impl[n]&&i._impl.commandQueueOpen?i._impl[n]._originalMethod===i[n]&&void 0!==i[n]?void i.warn("calling "+n+" would result in an infinite loop"):i._impl.commandQueueOpen.synchronize((function(e){var r;return i._impl?(r=i._impl)[n].apply(r,t).finally((function(){return e()})):Promise.resolve()})):i.warn(n+" is not defined",e.stacktrace())})),this},n.prototype.rebuild=function(){return this._hasImpl((e=this,function(){return e._impl.rebuild(),e._runMethodsFromOptions()}));var e},n.prototype.fullRebuild=function(e){return null==e&&(e={}),this.replaceWith(this._impl._mediaData,me({force:this._impl.playerType,inPlace:!1,transition:"none"},e))},n.prototype.rebuildAs=function(e,t){return null==t&&(t={}),this.fullRebuild(me(this._givenOptions,t,{force:e,transition:"none"}))},n.prototype.replace=function(e,t){return null==t&&(t={}),this.replaceWith(e,me({inlineOptionsOnly:!0},t))},n.prototype.replaceWith=function(t,n){var i,r;return null==n&&(n={}),this.info("replaceWith",t,n),r=this,i=function(){var i,a,s,u,l,c,d,h,p,f,y;return f=r._impl?r._replaceWithMediaData:r._initWithMediaData,r._impl.trigger("beforereplace",t),r.container.dispatchEvent(new CustomEvent(o,{detail:{mediaId:t}})),null!==n.viewerPreferences&&void 0!==n.viewerPreferences&&(e._viewerPreferencesEnabled=n.viewerPreferences),r._notReplacing(!1),r.hasData(!1),r._hasImpl(!1),r._initTime=(new Date).getTime(),r.hasData((function(){return r._hasDataTime=(new Date).getTime(),r.embedded((function(){return r._embeddedTime=(new Date).getTime()}))})),r._lastHeight=null,he(t)&&t.hashedId&&(v(t.hashedId,t),t=t.hashedId),(null!=(c=n.mediaData)?c.hashedId:void 0)&&(v(n.mediaData.hashedId,n.mediaData),t=n.mediaData.hashedId),i=g(r._gatherOptions()),u=me({},i,n),l={bypassOriginShield:Boolean(u.bypassOriginShield),channelId:u.channelId||null,channelPassword:u.channelPassword||null,defaultMediaLanguage:u.defaultMediaLanguage||null,deferFetchingToCarousel:Boolean(u.deferFetchingToCarousel),embedHost:u.embedHost||null,overrideMediaLanguage:u.overrideMediaLanguage||null,password:u.password||null,plugin:u.plugin,skipCache:Boolean(u.skipCache)},(s=u.localization)||(a=u.language||r.mediaLanguage().wistiaLanguageCode,(y=r.findLocalizationByLanguage(a))&&(s=r.languageToLocalization(y))),"alternate_audio"===(null!=s?s.localizationIntent:void 0)?l.overrideMediaLanguage=null!=(d=r.sourceLocalization())?d.bcp47LanguageTag:void 0:s&&(l.overrideMediaLanguage=s.bcp47LanguageTag),(null!=(h=n.plugin)&&null!=(p=h.passwordProtectedVideo)?p.password:void 0)&&(l.password=n.plugin.passwordProtectedVideo.password),$(t,l).then((function(e){return f.call(r,e,n)})).catch((function(){return b("player/failure/replace-failed")}))},this._hasImpl(function(e){return function(){return e._notReplacing(i)}}(this)),this},n.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)}))},n.prototype._replaceWithMediaDataQueuable=function(n,i){var r,o,a,s,u,p,f,v,m,b,w,E,P,O,S,T;return null==i&&(i={}),i=g(i),this.info("_replaceWithMediaData",n,i),Object.hasOwn(n,"error")&&n.error?(this._displayServerError(n),void this.trigger("servererror")):(null!=i.playlistIndex?(this._playlistIndex=i.playlistIndex,delete i.playlistIndex):this._inPlaylist(n.hashedId)&&(this._playlistIndex=this._playlistIndexOf(n.hashedId)),null!=i.playlistShouldAutoAdvance&&(this._playlistShouldAutoAdvance=i.playlistShouldAutoAdvance),i.inlineOptionsOnly&&(u=i.inlineOptionsOnly,delete i.inlineOptionsOnly),null!=i.inPlace&&(s=i.inPlace,delete i.inPlace),null!=i.transition&&(O=i.transition,delete i.transition),null!=i.transitionTime&&(S=i.transitionTime,delete i.transitionTime),this.hasData(!1),this._hasImpl(!1),null!=(m=this._impl._tracker)&&m.stopMonitoring(),this._clobberVideoBindings(),this._savedState={},this._suspended=!1,"function"==typeof(f=this._impl).wipeOutstandingAsyncFunctions&&f.wipeOutstandingAsyncFunctions(),this._hashedId=n.hashedId,this._originalMediaData=n,this.data.media=n,this._givenOptions=i,this._mediaData=n,this.container.dispatchEvent(new CustomEvent(d,{detail:{mediaData:n}})),this._opts=u?this._gatherOptions({only:"inline"}):this._gatherOptions(),this._embedOptions=null,this._mediaData=ye(g(n),this._opts),this._languages=null,this._captionsLanguages=null,this._mediaLanguages=null,this._customizeEmbedOptions=null,f.trigger("beforereplaceengine"),f.freezeLastFrame(),v=new h,P=function(){return v.go()},ae()&&!0===this._attrs.autoplay&&!f.isMuted()&&(r=f.engine)?(r.stopStreaming(),r.play().then(P).catch(P),setTimeout(P,2e3)):P(),!1===y(null!=(b=this._mediaData.embedOptions.plugin)&&null!=(w=b.passwordProtectedVideo)?w.on:void 0)&&null!=(null!=(E=this._opts.plugin)?E.passwordProtectedVideo:void 0)&&(this._opts.plugin.passwordProtectedVideo.on=!1),this.info("_opts",g(this._opts)),me(this._mediaData,this._opts.mediaData),this._cachedRemapTime=null,this._cachedLoadedRemapTime=null,this._inferPropertiesAfterMediaData(),a="notplayable"!==f.playerType&&("passwordprotected"!==f.playerType&&("carouselHardWall"!==f.playerType&&(!("html5"!==f.playerType||!(e.detect.iphone||e.detect.android||e.detect.ipad||e.detect.safari))||null!=s&&s))),this.info("inPlace",a),p=c.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=c.playerPlugins(this.judyCtx(),p,this._mediaData,this._opts),c.logWarnings(this.judyCtx(),p,this._mediaData,this._opts),a&&(this.removePlugins(),f.stopStreaming()),this.plugin=null,this._pluginStopGos={},this._definePluginMethod(),this.hasPlugins(!1),f.commandQueueOpen.setQueue([]),this.removeSwatch(),this._implVersion+=1,o=this._implVersion,v((T=this,function(){var n;return null!=(n=f.engine)&&n.destroy(),T._loadTranslationsAndExecPlugins().then((function(){var n,i,r;if(T._implVersion===o)return T.hasPlugins(!0),T.supportedPlayers=c.supportedPlayers(T.judyCtx(),T._mediaData.assets),i=e.PublicApi.classFor(p),T._impl=new i(T).init(),T.container.dispatchEvent(new CustomEvent(l,{detail:{impl:T._impl}})),T._setupBindings(),T.grid=a?T._impl.grid=f.grid:T._impl.setupGrid({initDimensions:!1}),"function"==typeof(n=T._impl).transferStateFrom&&n.transferStateFrom(f),T._hasImpl(!0),T.hasData(!0),a||T._runMethodsFromOptions(),a?T._replaceMode((function(){return T._impl.initFrom(f)})):T._replaceMode((function(){return T._embedWithTransitionFrom(f,O,{time:S})})),T.embedded((function(){return T._hasReplaced=!0,T._notReplacing(!0)})),a&&T._runMethodsFromOptions(),T._allowContainerMatch()&&(T._allowFoam()&&!f._opts.videoFoam&&(T.container.style.width="",T.container.style.height=""),null!=(r=T._impl)&&r.width(T.containerWidth(),{constrain:!0})),_(T._impl.uuid+".inject_json_ld",(function(){return T._injectJsonLd()})),T.trigger("afterreplace"),T.container.dispatchEvent(new CustomEvent(t,{detail:{api:T}})),_(T.uuid+".prefetch_next_media",(function(){return T.prefetchNextMedia()}),2e3);T.notice("replaceWith(): impl changed from",o,"to",T._implVersion,"not completing replacement")}))})))},n.prototype._embedWithTransitionFrom=function(e,t,n){var i,r;return null==t&&(t="none"),this.info("_embedWithTransitionFrom",e,t),"none"!==t&&b("player/replacewith-transition",1,{transition:t,hashedId:this._hashedId,url:window.location.href}),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()})),_(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"),!0!==e._attrs.transparentLetterbox&&(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(),!0!==t._impl._attrs.transparentLetterbox&&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&&x(e.grid.root,{position:"absolute",zIndex:0}),x(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(),x(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(){if(e._impl)return e._impl.trigger("transitiondone")}),0)}}(this)))},n.prototype._clobberVideoBindings=function(){var t,n,i;for(t in this.crossTime.removeAllBindings(),this.betweenTimes.removeAllBindings(),e.EventShepherdManager[this.container.id]&&this.container&&e.EventShepherdManager[this.container.id].removeAllListeners(this.container),i=[],n=this._bindings)n[t],"afterreplace"!==t&&"beforereplace"!==t&&"all"!==t?i.push(this.unbind(t)):i.push(void 0);return i},n.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},n.prototype.remove=function(t){var n,i,r,o,a,s,u,l,c;return null==t&&(t={}),this.info("remove"),this.trigger("down"),this.trigger("beforeremove"),this._freeEmbedSlot(),null!=(n=this.elem())&&null!=(i=n.mux)&&"function"==typeof i.destroy&&i.destroy(),this.removeSwatch(),this._implExec("remove",{trigger:!1}),this._hasImpl(!1),Ne(this._jsonLdId),null!=(r=this.popover)&&"function"==typeof r.remove&&r.remove(),B(this._popoverContainer),null!=(o=this._impl)&&o.stopStreaming(),null!=(a=this._intersectionObserver)&&a.disconnect(),F(this._foamDummyElem),B(this._foamDummyElem),null!=(s=e.eventLoop)&&s.remove(this.uuid),null!=(u=this._resizeObserver)&&u.disconnect(),this._resizeObserver=null,m(this.uuid),this._unbindListeners(),B(this.chrome),Ye(["video",this.uuid]),this.trigger("afterremove"),this._bindings={},"WISTIA-PLAYER"===this.container.tagName&&this.container.getAttribute("use-web-component")&&B(this.container),t.unsetWistiaApiOnContainer?(this.container.wistiaApi=void 0,"WISTIA-PLAYER"===this.container.tagName&&this.container.getAttribute("use-web-component")&&(this.container.originalContainer.uniqueId=this.container.uniqueId,this.container.originalContainer._convertingToAurora=!1,B(this.container))):this.container.wistiaApi="removed",this._impl=null,null!=(l=window.__wistiaStores)&&(l[this.uuid]=null),null!=(c=window.__wistiaStores)?delete c[this.uuid]:void 0},n.prototype.removeSwatch=function(){var e,t;if((t=this.container.querySelector(".wistia_swatch")||(null!=(e=this.container.originalContainer)?e.querySelector(".wistia_swatch"):void 0))&&B(t),"WISTIA-PLAYER"===this.container.tagName&&(t=this.container.shadowRoot.querySelector(".wistia_swatch")))return B(t)},n.prototype.fullRemove=function(){var e,t,n;return t=this._embedContainer,n=this._popoverContainer,e=this.container,this.remove(),B(t),B(n),B(e),this.container=this._embedContainer=null,this},n.prototype.isRemoved=function(){return!Ke(["video",this.uuid])},n.prototype._unbindListeners=function(){if(W(this.chrome),this._throttleTriggerViewport&&R(window,"scroll",this._throttleTriggerViewport),this._doResize)return R(window,"resize",this._doResize)},n.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}},n.prototype.suspend=function(){var t,n;if(!this._suspended)return this._saveState(),this.info("suspend",g(this._savedState)),this.pause(),this.suppressPlay(!0),!(null!=(t=this._impl)&&"function"==typeof t._inNativeMode?t._inNativeMode():void 0)&&e.detect.fullscreenEnabled||this.cancelFullscreen(),this._suspended=!0,this._suspendPlayBinding=(n=this,function(){return n.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},n.prototype.unsuspend=function(e){var t,n,i;if(null==e&&(e={}),this._suspended)return n=me({},this._savedState,e),this.info("unsuspend",g(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},n.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),D(window,"resize",this._doResize)},n.prototype._nextEmbedOrPlaylistLoop=function(){return this.nextVideo()?this.embedNext():this._attrs.playlistLoop?(this.info("playlistLoop"),this.embedIndex(0,{autoPlay:!0})):void 0},n.prototype._isInViewportNow=function(){var e,t,n,i;return!this.down()&&!this.looksDown()&&(!window.IntersectionObserver&&top!==self||(e=(t=L(this.container).top)+j(this.container),i=Ue(),n=Ue()+j(window),t>=i&&t<n||e>=i&&e<n||t<=i&&e>=n))},n.prototype._pauseEventLoop=function(){var t;if(e.eventLoop.pause(this.uuid),null!=(t=this._impl)?t.uuid:void 0)return e.eventLoop.pause(this._impl.uuid)},n.prototype._unpauseEventLoop=function(){var t;if(e.eventLoop.unpause(this.uuid),null!=(t=this._impl)?t.uuid:void 0)return e.eventLoop.unpause(this._impl.uuid)},n.prototype.playlistIndex=function(){return this._playlistIndexOf(this.sourceHashedId())},n.prototype.nextVideo=function(){return this.playlistIndex()>=0&&this._playlist[this.playlistIndex()+1]||null},n.prototype.previousVideo=function(){return this.playlistIndex()>0&&this._playlist[this.playlistIndex()-1]||null},n.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},n.prototype._inPlaylist=function(e){return this._playlistIndexOf(e)>=0},n.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"},n.prototype.embedNext=function(e){var t,n;return n=this.nextVideo(),this.info("embedNext",n),(t=me({autoPlay:!0,resumable:!1},n.options,e)).playlistIndex=this._playlistIndex+1,t.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this._setTransitionOptions(t),this.replaceWith(n.hashedId,t)},n.prototype.embedPrevious=function(e){var t,n;return n=this.previousVideo(),this.info("embedPrevious",n),(t=me({autoPlay:!0,resumable:!1},n.options,e)).playlistIndex=this._playlistIndex-1,t.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(n.hashedId,t)},n.prototype.embedIndex=function(e,t){var n,i;return i=this._playlist[e],this.info("embedIndex",e,i),(n=me({autoPlay:!0},i.options,t)).playlistIndex=e,n.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(i.hashedId,n)},n.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=qe(e)).length;o<a;o++)i={hashedId:r=s[o],options:t},(n=g(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),ce(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",g(this._playlist)),this.trigger("playlistchange",this._playlist),this._playlist},n.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)},n.prototype.playlistShouldAutoAdvance=function(){return null==this._playlistShouldAutoAdvance||this._playlistShouldAutoAdvance},n.prototype.setPlaylistShouldAutoAdvance=function(e){return this._playlistShouldAutoAdvance=e},n.prototype.prefetchNextMedia=function(){var e;if(!this._opts._inLegacyPlaylist&&(e=this.nextVideo()))return this.prefetchMedia(e.hashedId,e.options)},n.prototype.sourceLocalization=function(){return this.limitedLanguageProperties(this.mediaLanguages().find((function(e){return e.isOriginal}))||this.mediaLanguages()[0]||this.defaultLocalization())},n.prototype.findLocalizationByLanguage=function(e){return this.mediaLanguages().find((function(t){return t.wistiaLanguageCode===e||t.bcp47LanguageTag===e}))},n.prototype.findCaptionsLanguageByCode=function(e){var t;return(t=this.captionsLanguages().findIndex((function(t){return t.wistiaLanguageCode===e||t.bcp47LanguageTag===e})))>=0||(t=te(this.languages().map((function(e){return e.bcp47LanguageTag})),[e]))>=0?this.captionsLanguages()[t]:null},n.prototype.prefetchMedia=function(e,t){var n,i;return null==t&&(t={}),(t=f({embedHost:this._opts.embedHost},t)).overrideMediaLanguage=null!=(n=this.findLocalizationByLanguage(t.language))?n.bcp47LanguageTag:void 0,this.info("@prefetchMedia",e),$(e,t).then((i=this,function(n){var r;return i.info("prefetched",e),r=i._gatherOptions({givenOptions:t,mediaData:n,hashedId:n.hashedId,container:i.container}),Pe(n,r)})).catch((function(){return b("player/failure/prefetch-failed")}))},n.prototype.addPlugin=function(t,n){return null==n&&(n={}),this.info("addPlugin",t,n),new Promise((i=this,function(r){return i._hasImpl((function(){return i.hasPlugin(t)||e.plugin._inject(i,t,n),i.plugin(t).then((function(e){return r(e)}))}))}));var i},n.prototype.hasPlugin=function(e){return!!this.plugin[e]},n.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},n.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],Ye(["plugins",e,this.uuid,n.uuid])),this.trigger("pluginremoved",e)}},n.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},n.prototype.containerWidth=function(){return N(this._embedContainer)},n.prototype.containerHeight=function(){return j(this._embedContainer)},n.prototype._getScreenScrolls=function(e,t){var n;return n=e.bottom+window.pageYOffset,Math.max(0,n/t-1)},n.prototype._getEmbedVisibilityMetrics=function(){var e,t,n,i,r;return this.embedOptions()._inIframe||this.isRemoved()?null:(r=j(window),i=(t=this.elem().getBoundingClientRect()).height,n=this._getScreenScrolls(t,r),this.popover&&(e=this.container.getBoundingClientRect(),n=this._getScreenScrolls(e,r)),{screen_scrolls:n,ratio_of_screen:i/r,screen_width:window.screen.width,screen_height:window.screen.height})},n.prototype._getPageTitle=function(){return this._attrs.pageTitle||document.title},n.prototype._getBrowserLanguage=function(){return window.navigator.language},n.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")},n.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),null!=(e=this._impl)&&e.checkForReady(),"playing"===this._stateBeforeDown&&this.play(),this.trigger("up")},n.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},n.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))},n.prototype._doFoam=function(){var e,t,n,i,r,o,a,s,u,l,c,d;if(null==this._parentBoxSizing&&(this._parentBoxSizing=x(this._embedContainer.parentNode,"box-sizing")),"WISTIA-PLAYER"!==this.container.tagName)return this.popover?(l=(d=N(window))/(c=j(window)),t=(u=Math.min(d,c))>500?160:Math.abs(l-this.aspect())<.2?.2*u:.1*u,a=l>this.aspect()?Math.round((c-t)*this.aspect()):d-t):"border-box"===this._parentBoxSizing?(this._foamDummyElem||(this._foamDummyElem=C({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"}}),k(this._embedContainer,this._foamDummyElem)),a=N(this._foamDummyElem)):a=N(this._embedContainer.parentNode),isNaN(a)||this._lastParentWidth===a&&this._didFoam?void 0:(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),null!=(s=this._impl)&&s.width(o,{constrain:!0}),this._lastParentWidth=a)},n.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()},n.prototype._allowContainerMatch=function(){return(this.up()||this._ignoreUp)&&!this._opts.dontMonitorSize&&!this.inFullscreen()&&"WISTIA-PLAYER"!==this.container.tagName},n.prototype._doContainerMatch=function(){var e,t,n,i;if(i=this.containerWidth(),e=this.containerHeight(),this._lastWidth!==i&&(this.notice("container width changed to "+i+", matching"),null!=(t=this._impl)&&t.width(i),this.info("_doContainerMatch set width",i),this.trigger("widthchange",i,this._lastWidth),this._lastWidth=i),this._lastHeight!==e)return this.notice("container height changed to "+e+", matching"),null!=(n=this._impl)&&n.height(e),this.trigger("heightchange",e,this._lastHeight),this._lastHeight=e},n.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((t=this,function(){var n,i,r;if(e.eventLoop.add(t.uuid+".monitor",500,t._doMonitor),window.ResizeObserver)return i=!1,n=null,r=function(e){var r;if(r=e[0])return n=r,i?void 0:(i=!0,requestAnimationFrame((function(){if(i=!1,n&&t._allowFoam())return t._lastWidth!==n.contentRect.width&&t.trigger("widthchange",n.contentRect.width,t._lastWidth),t._lastHeight!==n.contentRect.height&&t.trigger("heightchange",n.contentRect.height,t._lastHeight),t._lastWidth=n.contentRect.width,t._lastHeight=n.contentRect.height,t._doSizing()})))},t._resizeObserver=new ResizeObserver(r),t._resizeObserver.observe(t.container)}));var t},n.prototype._doMonitor=function(){if(!this._removeHandleIfGoneFromDOM())return this._checkDownState(),this.chrome&&!I(this.chrome)&&(this.notice("Chrome was removed from DOM. Injecting it back in."),T(this._embedContainer,this.chrome)),this._doSizing()},n.prototype._doSizing=function(){var e,t;if("WISTIA-PLAYER"!==this.container.tagName)if(this.popover){if(this.popover.fixedSizeTooBigForWindow())return this._doFoam();if(!this._opts.popoverSize)return this._doFoam();if(this._lastWidth=this.width(),this._lastHeight=this.height(),this._lastWidth!==this._popoverSize().width||this._lastHeight!==this._popoverSize().height)return null!=(e=this._impl)&&e.width(this._popoverSize().width),null!=(t=this._impl)?t.height(this._popoverSize().height):void 0}else{if(this._allowFoam())return this._doFoam();if(this._allowContainerMatch())return this._doContainerMatch()}},n.prototype.looksDown=function(){return!this._embedContainer||!I(this._embedContainer)||M(this._embedContainer)},n.prototype.looksUp=function(){return!this.looksDown()},n.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},n.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 h)(!!e.plugin[t],e.plugin[t]),n?i((function(){return n(e.plugin[t])})):i})},n.prototype.videoFoam=function(e){return null!=e?(this.info("videoFoam",e),this._attrs.videoFoam=e,this.monitor(),e):this._attrs.videoFoam||!1},n.prototype._transformAndUpdateMediaData=function(){var e,t,n;return this._mediaData=ye(g(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},n.prototype._trackVideoFoamManualSizeChange=function(t){return e.Metrics.count("player/videofoam-manual-sizechange",1,{method:t,href:window.location.href})},n.prototype.aspect=function(){return this._implGet("aspect",0)},n.prototype.asset=function(){return this._implGet.apply(this,["asset",null].concat(r.call(arguments)))},n.prototype.assets=function(){return this._implGet.apply(this,["assets",null].concat(r.call(arguments)))},n.prototype.audioDescriptionControlEnabled=function(){return this._implSetOrGet.apply(this,["audioDescriptionControlEnabled",!1].concat(r.call(arguments)))},n.prototype.bigPlayButtonEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonEnabled",!1].concat(r.call(arguments)))},n.prototype.bigPlayButtonTimeEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonTimeEnabled",!1].concat(r.call(arguments)))},n.prototype.cancelOverlay=function(){return this._implPromise.apply(this,["cancelOverlay"].concat(r.call(arguments)))},n.prototype.cancelFullscreen=function(){return this._commandQueueImplPromise("cancelFullscreen")},n.prototype.captureCurrentFrame=function(){return this._implGet.apply(this,["captureCurrentFrame",null].concat(r.call(arguments)))},n.prototype.closeTabMenu=function(){return this._implExec("closeTabMenu")},n.prototype.contrastIcons=function(){return this._implSetOrGet.apply(this,["contrastIcons",!1].concat(r.call(arguments)))},n.prototype.controlScaling=function(){return this._implSetOrGet.apply(this,["controlScaling","auto"].concat(r.call(arguments)))},n.prototype.createControl=function(){return this._implGet.apply(this,["createControl",null].concat(r.call(arguments)))},n.prototype.defineOverlay=function(){return this._implExec.apply(this,["defineOverlay"].concat(r.call(arguments)))},n.prototype.destroyControl=function(){return this._implExec.apply(this,["destroyControl"].concat(r.call(arguments)))},n.prototype.doNotTrack=function(){return this._opts.doNotTrack},n.prototype.duration=function(){return this._implGet("duration",null)},n.prototype.embedded=function(){return this._implSetOrGet.apply(this,["embedded",!1].concat(r.call(arguments)))},n.prototype.embedOptions=function(){return this._hasImpl()?this._implGet.apply(this,["embedOptions",{}].concat(r.call(arguments))):this._embedOptions?this._embedOptions:this._embedOptions=this._gatherOptions()},n.prototype.enterInputContext=function(){return this._implExec.apply(this,["enterInputContext"].concat(r.call(arguments)))},n.prototype.eventKey=function(){return this._implGet("eventKey",null)},n.prototype.exitInputContext=function(){return this._implExec.apply(this,["exitInputContext"].concat(r.call(arguments)))},n.prototype.extraHeight=function(){return this._implGet("extraHeight",0)},n.prototype.extraWidth=function(){return this._implGet("extraWidth",0)},n.prototype.fit=function(){return this._implExec("fit")},n.prototype.fullscreenControlEnabled=function(){return this._implSetOrGet.apply(this,["fullscreenControlEnabled",!1].concat(r.call(arguments)))},n.prototype.focus=function(){return this._implPromise.apply(this,["focus"].concat(r.call(arguments)))},n.prototype.getBuffered=function(){return this._implGet("getBuffered",[])},n.prototype.getConnectedCarouselEmbed=function(){var e;if(null===this.wistiaPlaylistElem)return Array.from(document.getElementsByTagName("wistia-channel-carousel")).find((e=this,function(t){return t.activeMediaId===e._mediaData.hashedId}))},n.prototype.getFocusedChapter=function(){return this._implGet("getFocusedChapter",null)},n.prototype.getInputContext=function(){return this._implGet("getInputContext",[])},n.prototype.getMediaElement=function(){return this._implGet("getMediaElement",null)},n.prototype.getMediaType=function(){return this._implGet("getMediaType",null)},n.prototype.getOverlays=function(){return this._implGet("getOverlays",{})},n.prototype.getRegion=function(){return this._implGet.apply(this,["getRegion",null].concat(r.call(arguments)))},n.prototype.getSelectedCaptions=function(){var e,t;return null!=(e=this.controls)&&null!=(t=e.captions)?t.getSelectedCaptions():void 0},n.prototype.hasData=function(){return this._implSetOrGet.apply(this,["hasData",!1].concat(r.call(arguments)))},n.prototype.height=function(){var e,t;return arguments.length>0?!0!==(null!=(t=this._opts)?t.videoFoam:void 0)?(e=parseFloat(arguments[0]),this.container.style.height=e+"px",this._implExec.apply(this,["height"].concat(r.call(arguments)))):(this._trackVideoFoamManualSizeChange("height"),console.warn("setting `height` while `videoFoam` is enabled results in a no-op"),this):this._implGet("height",null)},n.prototype.heightForWidth=function(){return this._implGet.apply(this,["heightForWidth",null].concat(r.call(arguments)))},n.prototype.hideControls=function(){return this._implExec.apply(this,["hideControls",null].concat(r.call(arguments)))},n.prototype.ieSizeHack=function(){return this._implExec("ieSizeHack")},n.prototype.inFullscreen=function(){return this._implGet("inFullscreen",!1)},n.prototype.inSilentPlaybackMode=function(){return this._implGet("inSilentPlaybackMode",!1)},n.prototype.isInstantHls=function(){return this._implGet("isInstantHls",!1)},n.prototype.isMuted=function(){return this._implGet("isMuted")},n.prototype.isResumableEnabled=function(){return this._implGet("isResumableEnabled")},n.prototype.language=function(e){return null!=e?(this.captionsLanguageCode(e),this.mediaLanguageCode(e),this):this.mediaLanguage()},n.prototype.languages=function(){var e;return this._languages=g(this.mediaLanguages()).concat(g(this.captionsLanguages())),e=[],this._languages.forEach((function(t){if(!e.find((function(e){return e.wistiaLanguageCode===t.wistiaLanguageCode})))return e.push(t)})),Object.freeze(e),this._languages=e,this._languages},n.prototype.mediaLanguageCode=function(e){var t,n,i,r,o,a,s;return null!=e?this.embedded()?(t=this.findLocalizationByLanguage(e))?(t=this.languageToLocalization(t))?("eng"!==t.wistiaLanguageCode&&fe(t.bcp47LanguageTag),ae()&&Ge("localization",t),a=f({},{language:t.bcp47LanguageTag,localization:t,existingTracker:null!=(n=this._impl)?n._tracker:void 0,embedHost:this._opts.embedHost}),t.hasCaptions&&this.captionsLanguageCode(t.wistiaLanguageCode),this.hashedId()!==this.sourceHashedId()||"alternate_audio"!==t.localizationIntent&&!t.sourceLanguage?(this.getRemapTime().then(function(e){return function(n){var i,r,o,s,u,l;if(l="playing"===e.state(),u="beforeplay"===e.state(),s=n(e.mediaLanguage().wistiaLanguageCode,t.wistiaLanguageCode,e.time()),u||(a.time=s),l&&(a.autoPlay=!0),i=null!=(r=e.plugin.carousel)?r.options:void 0,o=t.hashedId,"alternate_audio"===t.localizationIntent&&(o=e.sourceHashedId(),a.audioPreference={lang:t.ietfLanguageTag||t.bcp47LanguageTag,characteristics:""}),e.replaceWith(o,a),null!=i)return e.addPlugin("carousel",i)}}(this)),t.bcp47LanguageTag):(this._hasImpl((s=this,function(){return s._impl.getAudioTracks().then((function(e){var n,i;if(((n=e.find((function(e){return(e.language===t.wistiaLanguageCode||e.lang===t.wistiaLanguageCode||e.language===t.bcp47LanguageTag||e.lang===t.bcp47LanguageTag)&&!e.characteristics})))||t.sourceLanguage)&&(i=n?parseInt(n.id.toString(),10):0,s._impl.changeAudioTrack(i),t.sourceLanguage?(s._opts.audioPreference=null,s._attrs.audioPreference=null):(s._opts.audioPreference={lang:t.ietfLanguageTag||t.bcp47LanguageTag,characteristics:""},s._attrs.audioPreference=s._opts.audioPreference),ae()))return Ge("localization",t)}))})),t.bcp47LanguageTag)):(console.error("languageToLocalization returned null for "+e+". This language exists in mediaLanguages() but not in _mediaData.localizations"),null):(console.error("Language "+e+" not found. Available languages for "+this.sourceHashedId()+": "+JSON.stringify(this.mediaLanguages().map((function(e){return e.bcp47LanguageTag})))),null):(console.error("Cannot set media language before media is embedded"),null):(null!=(i=this._attrs)&&null!=(r=i.audioPreference)?r.lang:void 0)?this._attrs.audioPreference.lang:(null!=(o=this._mediaData)?o.ietfLanguageTag:void 0)?(this.findLocalizationByLanguage(this._mediaData.ietfLanguageTag)||this.defaultLocalization()).bcp47LanguageTag:this.sourceLocalization().bcp47LanguageTag},n.prototype.mediaLanguage=function(e){return null!=e?(b("player/api/deprecated-media-language-setter",1,{hashedId:this.hashedId(),code:e,url:window.location.href}),this.mediaLanguageCode(e)):this.limitedLanguageProperties(this.findLocalizationByLanguage(this.mediaLanguageCode())||this.defaultLocalization())},n.prototype.mediaLanguages=function(){var e,t,n;return this._mediaData?(this._mediaLanguages||(e=(null!=(t=this._mediaData)?t.localizations:void 0)||[],this._mediaLanguages=e.map((function(e){return f({},e,{isLocalization:!0})})),0===this._mediaLanguages.length&&this._mediaLanguages.push(this.defaultLocalization()),this._mediaLanguages=this._mediaLanguages.map((n=this,function(e){return n.limitedLanguageProperties(e)})),Object.freeze(this._mediaLanguages)),this._mediaLanguages):[]},n.prototype.addMissingLanguageCodesForLanguage=function(e){var t,n,i;for(t in null==e&&(e={}),n={alpha3Bibliographic:"alpha_3_bibliographic",alpha3Terminologic:"alpha_3_terminologic",genericName:"generic_name",genericNativeName:"generic_native_name",ietfLanguageTag:"ietf_language_tag",iso6392LanguageCode:"iso639_2_language_code",nativeName:"native_name"})i=n[t],null==e[t]&&(e[t]=e[i]);return e},n.prototype.limitedLanguageProperties=function(e){return we(e,["bcp47LanguageTag","familyName","hasCaptions","hasVideoStream","isOriginal","name","familyNativeName","nativeName","wistiaLanguageCode"])},n.prototype.captionsEnabled=function(e){var t,n,i,r,o,a,s;return null==e?null!=this._captionsEnabled?this._captionsEnabled:Boolean(null!=(a=this.controls)&&null!=(s=a.captions)?s.isEnabled():void 0):(r=this._captionsEnabled,this._captionsEnabled=e,r!==e?(ae()&&((n=ie("captionsViewerPreferences")||{}).onByViewerPreferences=e,Ge("captionsViewerPreferences",n)),i={visible:e,bcp47LanguageTag:(t=this.captionsLanguage()).bcp47LanguageTag,wistiaLanguageCode:t.wistiaLanguageCode,language:t.wistiaLanguageCode},this.trigger("captionschange",i),null!=(o=this._impl)?o.embedElement.dispatchEvent(new CustomEvent("captions-change",{detail:i})):void 0):void 0)},n.prototype.captionsLanguageCode=function(e){var t,n,i,r,o,a,s,u,l,c,d,h,p,v,y,m,g,b;return t=ie("captionsViewerPreferences")||{},m=this._captionsLanguageCode,null!=e?(i=this.findCaptionsLanguageByCode(e))?(ae()&&(t.language=i.wistiaLanguageCode,t.bcp47LanguageTag=i.bcp47LanguageTag,delete t.iso6392Language,Ge("captionsViewerPreferences",t)),null!=(g=null!=(d=(this._mediaData.translatedMediaData||[]).find((function(e){return e.wistiaLanguageCode===i.wistiaLanguageCode})))?d.embedOptions:void 0)&&this.setCustomizeEmbedOptions(g),c=this.playerLanguage(),r=this._captionsLanguageCode,this._captionsLanguageCode=i.wistiaLanguageCode,r!==this._captionsLanguageCode&&(n={visible:this.captionsEnabled(),bcp47LanguageTag:i.bcp47LanguageTag,wistiaLanguageCode:i.wistiaLanguageCode,language:i.wistiaLanguageCode},this.trigger("captionschange",n),null!=(h=this._impl)&&h.embedElement.dispatchEvent(new CustomEvent("captions-change",{detail:n})),a=i.bcp47LanguageTag,b=this,o=function(){var e;if(c.code!==a)return b.trigger("playerlanguagechange",b.playerLanguage()),null!=(e=b._impl)?e.embedElement.dispatchEvent(new CustomEvent("player-language-change",{detail:{playerLanguage:b.playerLanguage()}})):void 0},pe(a)?fe(a).then((function(){return o()})):(a="en-US",o())),i.bcp47LanguageTag):(console.error("Language "+e+" not found. Available languages for "+this.sourceHashedId()+": "+JSON.stringify(this.captionsLanguages().map((function(e){return e.bcp47LanguageTag})))),null):this._mediaData&&this._opts?(null!=m&&(y=this.findCaptionsLanguageByCode(m)),l=f({language:this._opts.language},(null!=(p=this._opts.plugin)?p["captions-v1"]:void 0)||{},(null!=(v=this._opts.plugin)?v.captions:void 0)||{}),u=ne(this._mediaData,l),null==y&&u>=0&&(s=this._mediaData.availableTranscripts[u],y=this.findCaptionsLanguageByCode(s.wistiaLanguageCode)),null==y&&this._mediaData.ietfLanguageTag&&(y=this.findCaptionsLanguageByCode(this._mediaData.ietfLanguageTag)),null==y&&(y=this.captionsLanguages().find((function(e){return e.isOriginal}))),null==y&&this.captionsLanguages().length>0&&(y=this.captionsLanguages().find((function(e){return"eng"===e.wistiaLanguageCode}))||this.captionsLanguages()[0]),(y||this.defaultLocalization()).bcp47LanguageTag):this.defaultLocalization().bcp47LanguageTag},n.prototype.captionsLanguage=function(e){return null!=e?(b("player/api/deprecated-captions-language-setter",1,{hashedId:this.hashedId(),code:e,url:window.location.href}),this.captionsLanguageCode(e)):this.limitedLanguageProperties(this.findCaptionsLanguageByCode(this.captionsLanguageCode())||this.defaultLocalization())},n.prototype.captionsLanguages=function(){var e,t;return this._mediaData?(this._captionsLanguages||(this._captionsLanguages=g((null!=(e=this._mediaData)?e.availableTranscripts:void 0)||[]).map((t=this,function(e){return t.limitedLanguageProperties(e)}))),Object.freeze(this._captionsLanguages),this._captionsLanguages):[]},n.prototype.defaultLocalization=function(){return{bcp47LanguageTag:"en",wistiaLanguageCode:"eng",familyName:"English",familyNativeName:"English",name:"English",nativeName:"English",duration:this.duration(),hashedId:this.hashedId(),sourceLanguage:!0,timeMappings:[],alpha3Bibliographic:"eng",alpha3Terminologic:"eng",genericName:"English",genericNativeName:"English",ietfLanguageTag:"eng",iso6392LanguageCode:"eng"}},n.prototype.languageToLocalization=function(e){return(this._mediaData.localizations||[]).find((function(t){return t.wistiaLanguageCode===e.wistiaLanguageCode}))},n.prototype.languagesToLocalizations=function(e){return e.map((t=this,function(e){return t.languageToLocalization(e)}));var t},n.prototype.lastPauseInfo=function(){return this._implGet("lastPauseInfo",{})},n.prototype.lastPlayInfo=function(){return this._implGet("lastPlayInfo",{})},n.prototype.layout=function(){return this._implSetOrGet.apply(this,["layout","primary"].concat(r.call(arguments)))},n.prototype.look=function(){return this._implSetOrGet.apply(this,["look",{}].concat(r.call(arguments)))},n.prototype.mp4Asset=function(){return this._implGet.apply(this,["mp4Asset",null].concat(r.call(arguments)))},n.prototype.mute=function(){return this._implExec("mute")},n.prototype.name=function(){return this._implSetOrGet.apply(this,["name",""].concat(r.call(arguments)))},n.prototype.opaqueControls=function(){return this._implSetOrGet.apply(this,["opaqueControls",!1].concat(r.call(arguments)))},n.prototype.openChaptersTab=function(){return this._implExec("openChaptersTab")},n.prototype.openShareTab=function(){return this._implExec("openShareTab")},n.prototype.openTabMenu=function(){return this._implExec("openTabMenu")},n.prototype.openTranscriptTab=function(){return this._implExec("openTranscriptTab")},n.prototype.originalAsset=function(){return this._implGet.apply(this,["originalAsset",null].concat(r.call(arguments)))},n.prototype.pause=function(){return this._commandQueueImplPromise("pause")},n.prototype.percentWatched=function(){return this._implGet("percentWatched",0)},n.prototype.playbarControlEnabled=function(){return this._implSetOrGet.apply(this,["playbarControlEnabled",!1].concat(r.call(arguments)))},n.prototype.play=function(){return this._commandQueueImplPromise("play")},n.prototype.playbackRate=function(){return this._implSetOrGet.apply(this,["playbackRate",1].concat(r.call(arguments)))},n.prototype.playbackRateControlEnabled=function(){return this._implSetOrGet.apply(this,["playbackRateControlEnabled",!1].concat(r.call(arguments)))},n.prototype.playerColor=function(){return this._implSetOrGet.apply(this,["playerColor","636155"].concat(r.call(arguments)))},n.prototype.playerBackgroundColor=function(){return this._implSetOrGet.apply(this,["playerBackgroundColor","000000"].concat(r.call(arguments)))},n.prototype.playPauseControlEnabled=function(){return this._implSetOrGet.apply(this,["playPauseControlEnabled",!1].concat(r.call(arguments)))},n.prototype.qualityControlEnabled=function(){return this._implSetOrGet.apply(this,["qualityControlEnabled",!1].concat(r.call(arguments)))},n.prototype.getRemapTime=function(){var e;return this._cachedRemapTime||(this._cachedRemapTime=new Promise((e=this,function(t){return e.hasData((function(){return e.mediaLanguages().length<=1?(null==e._cachedUnloadedRemapTime&&(e._cachedUnloadedRemapTime=Promise.resolve((function(e,t,n){return n}))),void t(e._cachedUnloadedRemapTime)):(null==e._cachedLoadedRemapTime&&(e._cachedLoadedRemapTime=w("assets/external/timeMapping.js").then((function(t){var n;return n=t.remapTime,function(t,i,r){var o,a,s,u;return a=1e3*r,s=e.languageToLocalization(e.sourceLocalization()),o=e.languageToLocalization(e.findLocalizationByLanguage(t)),u=e.languageToLocalization(e.findLocalizationByLanguage(i)),null==o||null==u||null==s?r:n(s,o,u,a)/1e3}}))),t(e._cachedLoadedRemapTime))}))}))),this._cachedRemapTime},n.prototype.playerLanguage=function(e){return null!=e?this.captionsLanguage(e):Z(this.captionsLanguage().bcp47LanguageTag)||Z("en-US")},n.prototype.requestFullscreen=function(){return this._commandQueueImplPromise("requestFullscreen")},n.prototype.requestOverlay=function(){return this._implPromise.apply(this,["requestOverlay"].concat(r.call(arguments)))},n.prototype.ready=function(){return this._implSetOrGet.apply(this,["ready",!1].concat(r.call(arguments)))},n.prototype.releaseChromeless=function(){return this._implExec.apply(this,["releaseChromeless"].concat(r.call(arguments)))},n.prototype.releaseControls=function(){return this._implExec.apply(this,["releaseControls"].concat(r.call(arguments)))},n.prototype.requestChromeless=function(){return this._implExec.apply(this,["requestChromeless"].concat(r.call(arguments)))},n.prototype.requestControls=function(){return this._implExec.apply(this,["requestControls"].concat(r.call(arguments)))},n.prototype.secondsWatched=function(){return this._implGet("secondsWatched",0)},n.prototype.secondsWatchedVector=function(){return this._implGet("secondsWatchedVector",[])},n.prototype.selectableQualities=function(){return this._implGet("selectableQualities",[])},n.prototype.selectedQuality=function(){return this._implGet("selectedQuality",[])},n.prototype.setCustomizeEmbedOptions=function(e){return this._implExec("setCustomizeEmbedOptions",e)},n.prototype.setFocusedChapter=function(){return this._implSetOrGet.apply(this,["setFocusedChapter",null].concat(r.call(arguments)))},n.prototype.settingsControlEnabled=function(){return this._implSetOrGet.apply(this,["settingsControlEnabled",!1].concat(r.call(arguments)))},n.prototype.shouldResume=function(){return this._implGet("shouldResume")},n.prototype.showControls=function(){return this._implExec.apply(this,["showControls",null].concat(r.call(arguments)))},n.prototype.state=function(){return this._implGet("state","beforeplay")},n.prototype.stillUrl=function(){return this._implGet.apply(this,["stillUrl",null].concat(r.call(arguments)))},n.prototype.suppressPlay=function(){return this._implSetOrGet.apply(this,["suppressPlay",this].concat(r.call(arguments)))},n.prototype.thumbnailAssets=function(){return this._implGet("thumbnailAssets",[])},n.prototype.time=function(){var e,t;return t=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],null!=t?this._commandQueueImplPromise.apply(this,["time",z(t)].concat(r.call(e))):this._implGet("time",0)},n.prototype.trim=function(){return this._implSetOrGet.apply(this,["trim",{start:0,end:-1}].concat(r.call(arguments)))},n.prototype.unmute=function(){return this._implExec("unmute")},n.prototype.undefineOverlay=function(){return this._implPromise.apply(this,["undefineOverlay"].concat(r.call(arguments)))},n.prototype.videoHeight=function(){var e,t;return arguments.length>0?!0!==(null!=(t=this._opts)?t.videoFoam:void 0)?(e=parseFloat(arguments[0]),this.container.style.height=e+"px",this._implExec.apply(this,["videoHeight"].concat(r.call(arguments)))):(this._trackVideoFoamManualSizeChange("videoHeight"),console.warn("setting `videoHeight` while `videoFoam` is enabled results in a no-op"),this):this._implGet("videoHeight",null)},n.prototype.videoQuality=function(e){return null!=e?this._commandQueueImplPromise.apply(this,["setVideoQuality",e].concat(r.call(arguments))):this._implGet("getVideoQuality")},n.prototype.videoWidth=function(){var e,t;return arguments.length>0?!0!==(null!=(e=this._opts)?e.videoFoam:void 0)?(t=parseFloat(arguments[0]),this.container.style.width=t+"px",this._implExec.apply(this,["videoWidth"].concat(r.call(arguments)))):(this._trackVideoFoamManualSizeChange("videoWidth"),console.warn("setting `videoWidth` while `videoFoam` is enabled results in a no-op"),this):this._implGet("videoWidth",null)},n.prototype.visitorKey=function(){return e.visitorKey.value()||null},n.prototype.volume=function(){return this._implSetOrGet.apply(this,["volume",0].concat(r.call(arguments)))},n.prototype.volumeControlEnabled=function(){return this._implSetOrGet.apply(this,["volumeControlEnabled",!1].concat(r.call(arguments)))},n.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},n.prototype.width=function(){var e,t;return arguments.length>0?!0!==(null!=(e=this._opts)?e.videoFoam:void 0)?(t=parseFloat(arguments[0]),this.container.style.width=t+"px",this._implExec.apply(this,["width"].concat(r.call(arguments)))):(this._trackVideoFoamManualSizeChange("width"),console.warn("setting `width` while `videoFoam` is enabled results in a no-op"),this):this._implGet("width",null)},n.prototype.widthForHeight=function(){return this._implGet.apply(this,["widthForHeight",null].concat(r.call(arguments)))},n.prototype.chaptersEnabled=function(){return this._implSetOrGet.apply(this,["chaptersEnabled",null].concat(r.call(arguments)))},n.prototype.chaptersVisibleOnLoad=function(){return this._implSetOrGet.apply(this,["chaptersVisibleOnLoad",null].concat(r.call(arguments)))},n.prototype.addChapter=function(){return this._implExec.apply(this,["addChapter"].concat(r.call(arguments)))},n.prototype.getChapter=function(){return this._implGet.apply(this,["getChapter",null].concat(r.call(arguments)))},n.prototype.removeChapter=function(){return this._implExec.apply(this,["removeChapter"].concat(r.call(arguments)))},n.prototype.chapters=function(){return this._implSetOrGet.apply(this,["chapters",[]].concat(r.call(arguments)))},n.prototype.customerLogo=function(){return this._implExec.apply(this,["customerLogo"].concat(r.call(arguments)))},n.prototype.setControlEnabled=function(e,t){return this._implSetOrGet("setControlEnabled",null,e,t)},n.prototype.isControlDisabled=function(e){return this._implGet("isControlDisabled",!1,e)},n.prototype.isControlEnabled=function(e){return this._implGet("isControlEnabled",!1,e)},n.prototype.whenControlMounted=function(e){return this._implPromise("whenControlMounted",e)},n.prototype.getControl=function(e){return this._implGet("getControl",null,e)},n.prototype.getEmail=function(){return this.email()},n.prototype.getEventKey=function(){return this.eventKey()},n.prototype.getVisitorKey=function(){return this.visitorKey()},n.prototype.setEmail=function(e){return this.email(e)},n.prototype.setPlayerColor=function(){return this._implExec.apply(this,["playerColor"].concat(r.call(arguments)))},n.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)}))},n.prototype.isKeyboardFocused=function(e){return this._implSetOrGet("isKeyboardFocused",null,e)},n.prototype.email=function(t){var n,i;return null!=t?(this.info("email",t),n=this._attrs.email,this._attrs.email=t,e.localStorage([this._attrs.pageUrl,"trackEmail"],t),(null!=(i=this._opts)?i.noDeprecatedProperties:void 0)||(this.params.trackEmail=t),t!==n&&this.container.dispatchEvent(new CustomEvent("emailchange",{detail:{email:t}})),this):this._attrs.email||null},n.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),!he(e))throw new Error("foreignData can only be an Object");return e=g(e),this._attrs.foreignData=e,null!=(t=this._impl)&&null!=(n=t.tracker)&&n.transmit({force:!0}),this.trigger("foreigndatachange",e)},n.prototype.foreignIds=function(){return Object.entries(this.foreignData()||{}).filter((function(e){var t,n;return t=e[0],n=e[1],["hubspot_utk","marketoCookie","eloqua_guid","klaviyo_exchange_id"].includes(t)&&!!n})).map((function(e){return{type:e[0],value:e[1]}}))},n.classFor=function(t){var n;return t instanceof e.Player?t=t.embedType:t instanceof e.PublicApi&&(t=null!=(n=t._impl)?n.embedType:void 0),function(){switch(t){case"vulcan":return e.VulcanPlayer;case"vulcan-v2":return e.VulcanV2Player;case"html5":return e.Html5Player;case"external":return e.ExternalPlayer;case"notplayable":return e.NotPlayablePlayer;case"passwordprotected":return e.PasswordProtectedPlayer;case"carouselHardWall":return e.CarouselHardWallPlayer;default:return e.Player}}()||(e.Metrics.count("player/"+t+"-class-not-defined",1,{ua:navigator.userAgent,detect:e.detect}),e.error("PublicApi.classFor: embedType is "+t+" but its class is not defined. Using 'vulcan-v2' instead."),e.VulcanV2Player)},n}(),e.mixin(e.PublicApi.prototype,e.bindable),be=e.PublicApi.prototype.trigger,e.PublicApi.prototype._triggerNoImpl=function(){var e,t,n,i;return n=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],be.call.apply(be,[this,n].concat(r.call(t))),e=this.container.translationApi?this.container.translationApi:this,null!=(i=window.wistiaEmbeds)?i.trigger.apply(i,[n,e].concat(r.call(t))):void 0},e.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)},e.mixin(e.PublicApi.prototype,e.logHelpers),e.PublicApi.prototype._logPrefix=function(){var e;return[this.constructor.name,this.hashedId()||"no hashedId",null!=(e=this.container)?e.id:void 0,this.uuid]}}(n(1).Wistia)},(e,t,n)=>{n.r(t),n.d(t,{allow3rdParty:()=>P,getPluginsNotInList:()=>v,getSourceName:()=>_,pluginScriptsFromDefinedPlugins:()=>m,pluginScriptsToLoad:()=>y});var i=n(18),r=n(17),o=n(32),a=n(20),s=n(1),u=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 l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(0,a.cachedDetect)(),p="Audio",f=["airplay","audioChapters","audioShare","captions","captions-v1","chapters","cropFill","customizePreview","customerLogo","dimTheLights","dimthelights","eventbrite","externalPlayer","facebookPixel","googleAnalytics4","hlsVideo","html5Player","formPlugin","hubspotForm","marketoForm","midrollLink-v1","midrollLink-v2","nativeHlsVideo","notPlayableVideo","passwordProtectedVideo","postRoll-v1","postRoll-v2","relatedMedia","requireEmail-v1","share","share-v2","socialbar-v1","thumbnailTextOverlay","thumbnailTextOverlay-v2","turnstile","videoThumbnail","vulcanV2Player","watchNext","wistiaLogo"],v=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).reduce((function(e,t){return-1===f.indexOf(t.name)&&e.push(t),e}),[])},y=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=r.buildContext(),l=e.mediaType,c=e.embedOptions,d=Object(c).plugin,p=n.plugin||d||{},f=(0,i.merge)({},p,a),v=r.choosePlayer(u,e,n),y=m(f,n);if((h.safari||h.iphone||h.ipad)&&!1!==n.airplayButton){var w={name:"airplay",options:f.airplay||{},async:!0,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/airplay.js")};y.push(w)}var E=g(y,n,v,l);return"vulcan-v2"===v&&n.chaptersOn&&!f.chapters&&E.push({name:_("chapters"),src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/chapters.js"),async:!0}),n.showCustomerLogo&&n.customerLogoImageUrl&&e.enableCustomerLogo&&E.push({name:"customerLogo",options:f.customerLogo||{},async:!0,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/customerLogo.js")}),!0!==n.branding&&!0!==e.branding||E.push({name:"wistiaLogo",options:f.wistiaLogo||{},async:!0,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/wistiaLogo.js")}),"vulcan-v2"!==v||s.Wistia.VulcanV2Player||E.push({name:"vulcanV2Player",options:{},async:!1,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/vulcanV2Player.js")}),"carouselHardWall"!==v||s.Wistia.CarouselHardWallPlayer||E.push({name:"carouselHardWall",options:{},async:!1,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/carouselHardWallPlayer.js")}),(null===(t=e.localizations)||void 0===t?void 0:t.length)>0&&E.push({name:"localizationSwitcher",options:{},async:!1,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/localizationSwitcher.js")}),b(E)},m=function(e,t){var n={};return Object.keys(e).forEach((function(r){if(u(e,r)&&function(e){return"socialbar-v1"!==e&&-1===e.indexOf("transcript")}(_(r)))if(E(r)){var a,s,l,d,h=e[r];if("form"===w(r))h=O(null!==(a=e["requireEmail-v1"])&&void 0!==a?a:{},h);if("turnstile"===w(r))("boolean"==typeof(null===(s=e.form)||void 0===s?void 0:s.on)?null===(l=e.form)||void 0===l?void 0:l.on:"true"===(null===(d=e.form)||void 0===d?void 0:d.on))&&(h=c(c({},h),{},{on:!1}));if(h&&!1!==h.on){var p=_(r),f={name:w(r),src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/").concat(p,".js"),async:null!=h.async?h.async:!/^(requireEmail|captions|midrollLink|share|turnstile)/.test(r),options:h};u(h,"src")&&h.src&&P(t)&&(f.src=h.src);var v=n[p];v?(0,i.assign)(v,f):n[p]=f}}else console.warn("invalid plugin name",r)})),Object.values(n)},g=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===p?(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===p?(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}))},b=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)}))},_=function(e){switch(e){case"form":return"formPlugin";case"requireEmail":case"requireEmail-v1":return"turnstile";case"postRoll":return"postRoll-v2";case"captions":return"captions-v1";default:return e}},w=function(e){return"form"===e?"form":_(e)},E=function(e){return/^[a-zA-Z0-9_-]+$/.test(e)},P=function(){return!1!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).allowThirdParty&&!/([\w_-]+\.)?wistia\.(com|st|io)$/.test(window.location.hostname)},O=function(e,t){var n,i,r,o;return c(c(c({},t),e),{},{skippable:null!==(n=e.allowSkip)&&void 0!==n?n:t.skippable,formButtonText:null!==(i=e.submitButtonText)&&void 0!==i?i:t.formButtonText,formLowerText:null!==(r=e.bottomText)&&void 0!==r?r:t.formLowerText,title:null!==(o=e.topText)&&void 0!==o?o:t.title})}},(e,t,n)=>{n.d(t,{prefetchEngineAndPlugins:()=>u});var i=n(17),r=n(30),o=n(82),a=n(54),s=n(1),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.pluginScriptsToLoad)(e,t),r=i.buildContext(),s=i.bestUsableEngine(r,e,t),u=l(n),c=(0,a.dynamicImport)("assets/external/".concat(s));return Promise.all([u,c])},l=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(e){return s.Wistia.plugin._prefetched[e.src]||(s.Wistia.plugin._prefetched[e.src]="fetching"),!s.Wistia.plugin._prefetched[e.src]}));return 0===e.length?Promise.resolve():(0,r.runScripts)(e).then((function(){e.forEach((function(e){s.Wistia.plugin._prefetched[e.src]="fetched"}))}))}},(e,t,n)=>{n.r(t),n.d(t,{injectJsonLd:()=>h,removeInjectedJsonLd:()=>p});var i=n(85),r=n(18),o=n(32),a=n(44),s=n(33),u=n(87),l=n(86),c=function(e,t){var n,r="https://".concat((0,o.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(e.hashedId);return(0,i.shouldAddKeyMoments)(e,t)&&!(0,i.shouldAddClipsFromChapters)(t)&&null!==(n=e.embedOptions.plugin)&&void 0!==n&&n.videoThumbnail?"".concat(r,"?wseektoaction=true"):r},d=function(e){var t,n=e.assets;if("Audio"===e.mediaType)return null===(t=(0,a.readyPublicMp3s)(n)[0])||void 0===t?void 0:t.url;var i=(0,a.readyPublicMp4s)(n);if(0!==i.length){var r=(0,a.findClosestAssetByQuality)(i,1080);if(r){var o=new s.Url(r.url);return o.ext("m3u8"),o.absolute()}}},h=function(e,t){var n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n="Audio"===t.mediaType?function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.videoWidth,s=n.videoHeight,l=n.embedOptions;l||(l=(0,r.cast)((0,r.clone)(e.embedOptions)));var h={"@context":"http://schema.org/","@id":"https://".concat((0,o.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(e.hashedId),"@type":"AudioObject",duration:"PT".concat((0,u.secondsToIso8601Duration)(e.duration)),name:e.name,thumbnailUrl:(0,a.stillUrl)(e.assets,{ext:"jpg",protocol:"https:",videoWidth:i,videoHeight:s,embedHost:null===(t=l)||void 0===t?void 0:t.embedHost}),contentUrl:d(e),embedUrl:c(e,l),uploadDate:new Date(1e3*e.createdAt).toISOString(),description:e.seoDescription};return e.captions&&e.captions[0]&&(h.transcript=e.captions[0].text),h}(t,s):function(e){var t,n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=s.videoWidth,p=s.videoHeight,f=s.embedOptions;f||(f=null!==(n=(0,r.cast)((0,r.clone)(e.embedOptions)))&&void 0!==n?n:{});var v={"@context":"http://schema.org/","@id":"https://".concat((0,o.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(e.hashedId),"@type":"VideoObject",duration:"PT".concat((0,u.secondsToIso8601Duration)(e.duration)),name:e.name,thumbnailUrl:(0,a.stillUrl)(e.assets,{ext:"jpg",protocol:"https:",videoWidth:h,videoHeight:p,embedHost:null===(t=f)||void 0===t?void 0:t.embedHost}),embedUrl:c(e,f),uploadDate:new Date(1e3*e.createdAt).toISOString(),description:e.seoDescription};if("Video"===e.mediaType&&(v.contentUrl=d(e)),e.captions&&e.captions[0]&&(v.transcript=e.captions[0].text),(0,i.shouldAddKeyMoments)(e,f))if((0,i.shouldAddClipsFromChapters)(f)){var y=(0,l.normalizeChapters)(f).chapterList;v.hasPart=(0,i.clipsFromChapters)(y,location.href,e.duration)}else v.potentialAction=(0,i.seekToAction)();return v}(t,s);var h=JSON.stringify(n),f=document.createElement("script");f.className="w-json-ld",f.type="application/ld+json",f.innerHTML=h,f._wistia=!0,f.setAttribute("id",e),p(e);var v=document.querySelectorAll("script.w-json-ld"),y=v[v.length-1];y?y.parentNode.insertBefore(f,y.nextSibling):document.head.insertBefore(f,document.head.childNodes[0])},p=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(47),r=n(86);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){if("string"==typeof e)return a(e,t);var n={}.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)?a(e,t):void 0}}(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=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&&Array.isArray(n)&&n.length>0},u=function(e,t){var n;if(!1===t.keyMoments)return!1;var i=e.duration,r=e.type,o=null!==(n=t.plugin)&&void 0!==n?n:{},a=o.passwordProtectedVideo,s=o["requireEmail-v1"],u=o.form,l="LiveStream"===r,c=!0===(null==a?void 0:a.on)||"true"===(null==a?void 0:a.on),d=s&&!1!==s.on&&"end"!==s.time&&!s.persistentTurnstile,h=!1!==(null==u?void 0:u.on)&&"end"!==(null==u?void 0:u.time)&&"pause"===(null==u?void 0:u.displayMode);return!c&&!d&&!h&&!l&&"number"==typeof i&&i>=30},l=function(e,t,n){if(!Array.isArray(e)||0===e.length)return[];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!Boolean(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 window.URL(t),l=Math.floor(a),c=o[r+1],d=(0,i.isNotNil)(c)?c.time:n;return u.searchParams.set("wtime","".concat(l,"s")),{"@type":"Clip",endOffset:Math.floor(d),name:s,startOffset:l,url:u.toString()}}));return r},c=function(){var e=new window.URL(window.location.href);return e.searchParams.set("wtime","{seek_to_second_number}"),{"@type":"SeekToAction",target:e.toString().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:()=>r});var i=n(47),r=function(e){var t=e.plugin,n=e.chaptersOn,r=e.chapterList;if(null!=t&&t.chapters)return t.chapters;var o=!0===n||"true"===n;return(0,i.isNotNil)(r)||o?{on:n,chapterList:(0,i.isNotNil)(r)&&r.length>0?r:[]}:void 0}},(e,t,n)=>{n.d(t,{secondsToIso8601Duration:()=>r});var i=n(88),r=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}},(e,t,n)=>{n.d(t,{accessibilityDuration:()=>l,flexibleDuration:()=>s,formattedDurationToSeconds:()=>u,getSecondsRemaining:()=>c,secondsConverter:()=>a});var i=n(89),r=n(47),o=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},a=function(e,t){var n=0,i=0,r=0,o=e,a=t.includes("h"),s=t.includes("m");return a&&o>0&&(n+=Math.floor(o/3600),o%=3600),s&&o>0&&(i+=Math.floor(o/60),o%=60),r=Math.round(o),a&&60===i&&(n+=1,i=0),s&&60===r&&(i+=1,r=0),{hours:n,minutes:i,seconds:r}},s=function(e){var t=a(e,"hms"),n=t.hours,i=t.minutes,r=t.seconds;return 0===n?"".concat(i,":").concat(o(r,2)):"".concat(n,":").concat(o(i,2),":").concat(o(r,2))},u=function(e){if((0,r.isNil)(e)||(0,r.isNumber)(e))return e;try{var t=(0,i.parse)(e.toUpperCase());return(0,i.toSeconds)(t)}catch(e){}try{var n=(0,i.parse)("PT".concat(e.toUpperCase()));return(0,i.toSeconds)(n)}catch(e){}return e},l=function(e){var t=a(e,"hms"),n=t.hours,i=t.minutes,r=t.seconds,o=0===n,s=0===i;if(o&&s)return"".concat(r," second").concat(1===r?"":"s");var u=o?"":"".concat(n," hour").concat(1===n?"":"s"),l=s?"":"".concat(i," minute").concat(1===n?"":"s");return"".concat(u," ").concat(l).trim()},c=function(e,t){return(t.getTime()-e.getTime())/1e3}},(e,t)=>{t.toSeconds=t.end=t.parse=t.pattern=void 0;var n="\\d+",i="".concat(n,"(?:[\\.,]").concat(n,")?"),r="(".concat(n,"Y)?(").concat(n,"M)?(").concat(n,"W)?(").concat(n,"D)?"),o="T(".concat(i,"H)?(").concat(i,"M)?(").concat(i,"S)?"),a="P(?:".concat(r,"(?:").concat(o,")?)"),s=["years","months","weeks","days","hours","minutes","seconds"],u=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0});t.pattern=new RegExp(a);t.parse=function(e){var n=e.replace(/,/g,".").match(t.pattern);if(!n)throw new RangeError("invalid duration: ".concat(e));var i=n.slice(1);if(0===i.filter((function(e){return null!=e})).length)throw new RangeError("invalid duration: ".concat(e));if(i.filter((function(e){return/\./.test(e||"")})).length>1)throw new RangeError("only the smallest unit can be fractional");return i.reduce((function(e,t,n){return e[s[n]]=parseFloat(t||"0")||0,e}),{})};t.end=function(e,t){void 0===t&&(t=new Date);var n=Object.assign({},u,e),i=t.getTime(),r=new Date(i);r.setFullYear(r.getFullYear()+n.years),r.setMonth(r.getMonth()+n.months),r.setDate(r.getDate()+n.days);var o=3600*n.hours*1e3,a=60*n.minutes*1e3;return r.setMilliseconds(r.getMilliseconds()+1e3*n.seconds+o+a),r.setDate(r.getDate()+7*n.weeks),r};t.toSeconds=function(e,n){void 0===n&&(n=new Date);var i=Object.assign({},u,e),r=n.getTime(),o=new Date(r),a=(0,t.end)(i,o),s=60*(n.getTimezoneOffset()-a.getTimezoneOffset());return(a.getTime()-o.getTime())/1e3+s},t.end,t.toSeconds,t.pattern,t.parse},(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,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function o(e,t,n){return t=s(t),function(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)}(e,a()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}n.d(t,{CrossTimePublicApi:()=>l});var l=function(e){function t(e,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=o(this,t,[n])).apiInstance=e,i.embedElement=e.container,i}return 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)}(t,e),n=t,(r=[{key:"currentTime",get:function(){return this.apiInstance.time()}},{key:"state",get:function(){return this.apiInstance.state()}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(n(62).CrossTime)},(e,t,n)=>{n.d(t,{BetweenTimesPublicApi:()=>d});var i=n(64),r=n(90);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,a(i.key),i)}}function a(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function s(e,t,n){return t=l(t),function(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)}(e,u()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d=function(e){function t(e,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=s(this,t,[n])).apiInstance=e,i.embedElement=e.container,i.crossTime=new r.CrossTimePublicApi(i.apiInstance,n),i}return 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)}(t,e),n=t,(i=[{key:"currentTime",get:function(){return this.apiInstance.time()}}])&&o(n.prototype,i),a&&o(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.BetweenTimes)},(e,t,n)=>{n.r(t),n.d(t,{defineTranslations:()=>v,getDefaultTranslation:()=>O,getLanguage:()=>p,getLanguagePreference:()=>_,getTranslation:()=>g,getTranslations:()=>b,isSupportedPlayerLanguage:()=>f,loadAndDefineTranslation:()=>E,matchingLanguages:()=>P,supportedLanguages:()=>l});var i=n(18),r=n(54),o=n(1),a=o.Wistia.languages=o.Wistia.languages||{},s=o.Wistia.translations=o.Wistia.translations||{};o.Wistia._translationPromises||(o.Wistia._translationPromises={});var u,l=["ar","de","es","en-US","fr","it","ja","ko","pt","ru","zh-CN"],c={ara:"ar",ger:"de",spa:"es",eng:"en-US",fre:"fr",ita:"it",jpn:"ja",kor:"ko",por:"pt",rus:"ru",chi:"zh-CN"},d=function(e){if(null==e)return"en-US";if(e=c[e]||e,!l.includes(e)){var t=P((function(){return[e]}))[0];t&&(e=t)}return("en"===e||/^en-/.test(e))&&(e="en-US"),("zh"===e||/^zh-/.test(e))&&(e="zh-CN"),e},h=function(e,t,n){a[e]={code:e,text:m(t)},n&&v(e,n)},p=function(e){return a[d(e)]},f=function(e){return l.includes(d(e))},v=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,i.merge)(n,t):s[e]=(0,i.clone)(t)},y=o.Wistia.cachedDecodings=o.Wistia.cachedDecodings||{},m=function(e){return u||(u=document.createElement("textarea")),null!=y[e]?y[e]:(u.innerHTML=e,y[e]=u.value,u.value)},g=function(e,t){var n;return e=d(e),n=s[e]&&s[e][t]?s[e][t]:s["en-US"][t],m(function(e){return null==e?"?":e}(n))},b=function(e){var t={};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(n){t[n]=g(e,n)})),t},_=function(){return navigator.languages||navigator.language?o.Wistia.languagePreference=navigator.languages||[navigator.language]:o.Wistia.languagePreference=["en-US"],o.Wistia.languagePreference},w=Promise.resolve({code:"en-US",translations:s["en-US"]}),E=function(e){if(e=d(e),!l.includes(e))return w;if(o.Wistia._translationPromises[e])return o.Wistia._translationPromises[e];if("en-US"===e)return w;var t=new Promise((function(t,n){(0,r.dynamicImport)(["assets/external/translations/".concat(e,".js")]).then((function(n){var i=n.languageCode,r=n.languageLabel,o=n.translations;h(i,r,o),t({code:e,translations:o[e]})})).catch(n)}));return o.Wistia._translationPromises[e]=t,t},P=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:_)().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}),[])},O=function(){var e=P()[0];return e&&"en"!==e||(e="en-US"),s[e]?Promise.resolve({code:e,translations:s[e]}):E(e)};h("en-US","English"),v("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,{extractEmailFromParams:()=>o});var i=n(71),r=n(10),o=function(e){var t,n,o=null!==(t=/wemail=([^&#]+)/.exec(e))&&void 0!==t?t:null;if(o)return o[1];var a=null!==(n=/wkey=([^&#]+)/.exec(e))&&void 0!==n?n:null;if(a){var s=a[1];try{return(0,i.base64Decode)(s)}catch(e){r.wlog.info("Failed to decode email from wkey",e)}}return null}},(e,t,n)=>{n.d(t,{inferPageUrl:()=>i});var i=function(){var e;return null!=(null===(e=window.FreshUrl)||void 0===e?void 0:e.originalUrl)?window.FreshUrl.originalUrl:window.top===window.self?window.location.href||"":document.referrer||""}},(e,t,n)=>{n.d(t,{getPreferredCaptionsIndex:()=>l});var i,r=n(1),o=(n(32),n(10),n(96)),a=n(52);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){if("string"==typeof e)return u(e,t);var n={}.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}}(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=Array(t);n<t;n++)i[n]=e[n];return i}null!==(i=r.Wistia.captionsPromises)&&void 0!==i||(r.Wistia.captionsPromises={});r.Wistia.captionsPromises;r.Wistia.uncacheCaptions=function(e,t){if(e&&t){var n=c(e,t);delete r.Wistia.captionsPromises[n]}else e?Object.keys(r.Wistia.captionsPromises).forEach((function(t){t.startsWith(e)&&delete r.Wistia.captionsPromises[t]})):Object.keys(r.Wistia.captionsPromises).forEach((function(e){delete r.Wistia.captionsPromises[e]}))};var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||null==e.availableTranscripts)return-1;var n=[];t.language&&n.push(t.language);var i=(0,o.getCaptionViewerPreferences)();null!=i.bcp47LanguageTag&&n.push(i.bcp47LanguageTag);var r=n.filter((function(e,t){return n.indexOf(e)===t})),u=(0,a.getPreferredAvailableLanguageIndex)(e.availableTranscripts.map((function(e){return e.bcp47LanguageTag})),r);return-1===u&&(u=(0,a.getPreferredAvailableLanguageIndex)(e.availableTranscripts.map((function(e){return e.wistiaLanguageCode})),r)),-1===u&&(u=(0,a.getPreferredAvailableLanguageIndex)(e.availableTranscripts.map((function(e){return e.bcp47LanguageTag})),[].concat(s(navigator.languages),["en"]))),u},c=function(e,t){return"".concat(e).concat(t?"-".concat(t):"")}},(e,t,n)=>{n.d(t,{getCaptionSettings:()=>d,getCaptionViewerPreferences:()=>c});var i=n(97),r=n(99),o=n(53);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=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l="captionsViewerPreferences",c=function(){var e,t=(0,o.getViewerPreference)(l);return"object"!=typeof(e=t)||null==e?{}:t},d=function(){var e=c();return(0,r.isCaptionsSettings)(e)?e:s({},i.DEFAULT_CAPTION_SETTINGS)}},(e,t,n)=>{n.d(t,{BASE_COLORS:()=>s,CAPTIONS_FONT_FAMILY_MAP:()=>r,DEFAULT_CAPTION_SETTINGS:()=>u,FONT_SIZES:()=>o,OPACITY_PERCENTAGES:()=>a});var i=n(98),r=new Map([["Monospace serif",'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'],["Monospace sans-serif",'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'],["Proportional serif",'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'],["Proportional sans-serif",i.interFontFamily],["Casual",'"Comic Sans MS", Impact, Handlee, fantasy'],["Cursive",'"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive'],["Small caps",i.interFontFamily]]),o=[100,120,140,160],a=[100,75,50,25,0],s=(a.filter((function(e){return 0!==e})),[{ariaLabel:"Black",hex:"#000000"},{ariaLabel:"Yellow",hex:"#FFF200"},{ariaLabel:"Green",hex:"#00F024"},{ariaLabel:"Cyan",hex:"#00EAFF"},{ariaLabel:"Blue",hex:"#001AFF"},{ariaLabel:"Magenta",hex:"#FF00AA"},{ariaLabel:"Red",hex:"#FF0000"},{ariaLabel:"White",hex:"#FFFFFF"}]),u={fontSize:o[0],fontOpacityPercentage:a[0],backgroundOpacityPercentage:a[1],windowOpacityPercentage:a[a.length-1],fontColor:s[s.length-1].hex,backgroundColor:s[0].hex,windowColor:s[0].hex,fontFamily:"Proportional sans-serif",characterEdgeStyle:"None"}},(e,t,n)=>{n.d(t,{interFontFamily:()=>i,interNumbersSemiBold:()=>r});var i="WistiaPlayerInter, Helvetica, Sans-Serif",r="WistiaPlayerInterNumbersSemiBold, Helvetica, Sans-Serif"},(e,t,n)=>{n.d(t,{isCaptionsSettings:()=>a});var i=n(97),r=function(e){return i.OPACITY_PERCENTAGES.some((function(t){return t===e}))},o=function(e){return i.BASE_COLORS.some((function(t){return t.hex===e}))},a=function(e){if("object"!=typeof e||null===e)return!1;var t=e;return o(t.backgroundColor)&&r(t.backgroundOpacityPercentage)&&o(t.fontColor)&&function(e){return i.FONT_SIZES.some((function(t){return t===e}))}(t.fontSize)&&r(t.fontOpacityPercentage)&&o(t.windowColor)&&r(t.windowOpacityPercentage)}},(e,t,n)=>{n.d(t,{getChannelStorage:()=>u});var i=n(37),r=n(38),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:()=>h});var i=n(25),r=n(23),o=n(54),a=n(72),s=n(39),u=n(1);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){if("string"==typeof e)return c(e,t);var n={}.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)?c(e,t):void 0}}(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=Array(t);n<t;n++)i[n]=e[n];return i}u.Wistia._destructors.destroyEmbedLinks=function(){u.Wistia.EmbedLink.EmbedLinkClass&&u.Wistia.EmbedLink.EmbedLinkClass._onEv1Destroy()};var d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(function(){for(var e=(0,s.getAllApiHandlesByDomOrder)(),t=0;t<e.length;t++)if(e[t]._attrs&&e[t]._attrs.playlistLinks)return!0;return document.querySelectorAll('a[href^="#wistia_"]').length>0||l(document.getElementsByTagName("wistia-player")).some((function(e){return e.shadowRoot.querySelectorAll('a[href^="#wistia_"]').length>0}))})()&&(0,o.dynamicImport)("assets/external/embedLinks.js").then((function(e){var n;(n=e.EmbedLink).setupAll.apply(n,t)}))},h=(0,a.throttle)(1e3,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];d.apply(void 0,t),(0,i.onDocReady)((function(){d.apply(void 0,t),(0,r.doTimeout)("maybe_load_embed_links_5000",d,5e3)}))}));u.Wistia.EmbedLink={},u.Wistia.EmbedLink.setupAll=d},(e,t,n)=>{n.d(t,{debounce:()=>r});var i=n(23);var r=function(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];(0,i.clearTimeouts)(e),(0,i.doTimeout)(e,(function(){return t.apply(void 0,o)}),n)}}},(e,t,n)=>{n.d(t,{DEFAULT_ASPECT:()=>i});var i=16/9},(e,t,n)=>{n.d(t,{inferQualityRangeFromOpts:()=>a});n(44);var i=n(55),r=2160,o=function(e){return"4k"===e?2160:parseInt(e,10)},a=function(e,t){return e.videoQuality&&"auto"!==e.videoQuality?((0,i.countMetric)("legacy/videoquality-embed-option",1,{videoQuality:e.videoQuality,hashedId:null==t?void 0:t.hashedId,url:window.location.href}),"sd-only"===e.videoQuality?[200,360]:"md"===e.videoQuality?[540,r]:"hd-only"===e.videoQuality?[720,r]:[360,r]):[e.qualityMin?o(e.qualityMin):360,e.qualityMax?o(e.qualityMax):r]}},(e,t,n)=>{n.d(t,{generateHtml:()=>a,generateRelativeBlockCss:()=>s});var i=n(18);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){if("string"==typeof e)return o(e,t);var n={}.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)?o(e,t):void 0}}(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=Array(t);n<t;n++)i[n]=e[n];return i}var a=function(e){if(/string|number|boolean/.test(typeof e))return e.toString();if(e instanceof Array){var t,n="",o=r(e);try{for(o.s();!(t=o.n()).done;){var s=t.value;n+=a(s)}}catch(e){o.e(e)}finally{o.f()}return n}if("object"!=typeof e)return e.toString();var u,l,c=[];for(var d in e){var h=e[d];"tagName"===d?u=h:"childNodes"===d?l=h:c.push({key:d,val:h})}u||(u="div");for(var p,f="<".concat(u),v=0,y=c;v<y.length;v++)p=void 0,"style"===(p=y[v]).key&&(0,i.isObject)(p.val)&&(p.val="".concat(function(){var e=[];for(var t in p.val){var n=p.val[t];e.push("".concat(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(n))}return e}().join(";"),";")),f+=" ".concat(p.key,'="').concat(p.val,'"');return/^(br|hr|img|link|meta|input)$/i.test(u)?f+=" />":(f+=">",l&&("string"==typeof l?f+=l:"object"==typeof l&&(f+=a(l))),f+="</".concat(u,">")),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,{CONTROL_BAR_DISTANCE_RATIO:()=>i,getDefaultBigPlayButtonBorderRadius:()=>o,getDefaultControlBarBorderRadius:()=>a,getDefaultControlBarDistance:()=>s,getDefaultPlayerBorderRadius:()=>r});var i=.75,r=function(e){var t=e.playerBorderRadius,n=e.roundedPlayer;return void 0!==n?n:void 0!==t?t:0},o=function(e){var t=e.bigPlayButtonBorderRadius,n=e.roundedPlayer;return void 0!==t?t:void 0!==n?.75*n:0},a=function(e){var t=e.controlBarBorderRadius,n=e.floatingControlBar,r=e.roundedPlayer;return void 0!==t?t:void 0!==r?r*i:!0===n?18:0},s=function(e){var t=e.controlBarBorderRadius,n=e.floatingControlBar,i=e.roundedPlayer;return void 0!==i?i/4:void 0!==t?t/2:!0===n?6:0}},(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)=>{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();return window.performance&&"function"==typeof window.performance.now&&(n+=window.performance.now()),e+"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)}))+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)=>{n.d(t,{embedOptionsFromQueryParams:()=>s});var i=n(33),r=n(18),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=/^w_([^&]+)/,s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;t||(t=top!==self?document.referrer||"":location.href||"");var s=new i.Url(t).params||{},u={};for(var l in s)if(o(s,l)){var c=l.match(n);if(c){var d=c[1];(0,r.indexOf)(e,d)>=0&&(u[d]=s[l])}}return u}},(e,t,n)=>{n.d(t,{normalizeOptions:()=>a});var i=n(18),r=n(10),o=n(47),a=function(e){return!0===e.twitter&&(r.wlog.info("twitter detected"),(0,o.isNotNil)((0,i.getDeep)(e,"plugin.socialbar-v1"))&&(r.wlog.info("disabled socialbar"),(0,i.setDeep)(e,"plugin.socialbar-v1.on",!1))),(0,o.isNotNil)(e.playButtonVisible)&&(e.playButton=Boolean((0,i.cast)(e.playButtonVisible)),delete e.playButtonVisible),e}},(e,t,n)=>{n(12),n(11),n(114),n(115),n(122),n(123),n(124),n(129),n(131),n(132),n(133),n(134),n(101),n(135),n(136),n(137),n(138),n(140)},(e,t,n)=>{var i=n(20);!function(e){e._initializers.initDetect=function(){if(!e.detect)return e.detect=(0,i.cachedDetect)()}}(window.Wistia)},(e,t,n)=>{var i=n(17),r=n(44),o=n(116),a=n(60),s=n(32),u=n(9),l=n(107),c=n(23),d=n(18),h=n(119),p=n(55),f=n(120),v=n(24),y=n(35),m=n(105),g=n(118),b=n(71),_=n(121),w=n(15),E=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 P(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return O(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(O(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,O(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,O(d,"constructor",l),O(l,"constructor",u),u.displayName="GeneratorFunction",O(l,r,"GeneratorFunction"),O(d),O(d,r,"Generator"),O(d,i,(function(){return this})),O(d,"toString",(function(){return"[object Generator]"})),(P=function(){return{w:o,m:h}})()}function O(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}O=function(e,t,n,i){function o(t,n){O(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},O(e,t,n,i)}function S(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)}function T(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 k(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,A(i.key),i)}}function A(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}!function(e,t){if(!e.Player){var n=function(){return t=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.embedElement=t.container,this.uuid=(0,y.seqId)(),this._baseEventLoopDuration=300,this._eventLoopDuration=300,this.info("constructor"),this.transferFacadeProperties(),this.crossTime=this.publicApi.crossTime,this.betweenTimes=this.publicApi.betweenTimes,this._impl=this,(0,d.keys)(t).forEach((function(e){var i=t[e];i instanceof a.StopGo&&!E(n,e)&&(n[e]=i)})),this.plugin=this.publicApi.plugin,this.ready=new a.StopGo,this.hasData=new a.StopGo,this.embedded=new a.StopGo,this.embedded((function(){n.embedElement.dispatchEvent(new CustomEvent("embedded"))})),this.commandQueueOpen=new a.StopGo,this.hasData(!0),this.commandQueueOpen(!0),this.playing=new a.StopGo,this.notFullscreen=new a.StopGo,this.resetStateVariables(),this.publicApi.isLiveMedia()||this.setupPercentTracking(),this._recordFirstEmbedIfEligible()},n=[{key:"addLoopBehavior",value:function(){var e=this;this.whenVideoElementInDom().then((function(){var t;null===(t=e.engine)||void 0===t||t.getMediaElement().setAttribute("loop","")}))}},{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,v.elemStyle)(e.grid.root,{position:"relative"}),null==i||i()},(0,v.elemStyle)(this.grid.root,{position:"absolute"}),(0,v.elemAnimate)(this.grid.root,t,n),this}},{key:"aspect",value:function(){var e,t;if(this._attrs.aspect)return this._attrs.aspect;if(this.publicApi.isAudio())return this.publicApi.width()/this.publicApi.height();if(null!=this._mediaData.aspectRatio)return this._mediaData.aspectRatio;if(this._currentAsset&&"variable"==this._currentAsset.width)return this.mp4Aspect()||this.originalAspect();if(null!==(e=this._currentAsset)&&void 0!==e&&e.width&&null!==(t=this._currentAsset)&&void 0!==t&&t.height)return this._currentAsset.width/this._currentAsset.height;var n=this.asset({container:/mp4/,status:2});if(null!=n&&n.width&&null!=n&&n.height)return n.width/n.height;if(null!=this._mediaData.instantHlsAspectRatio)return this._mediaData.instantHlsAspectRatio;var i=this.asset({container:/mp4/});return null!=i&&i.width&&null!=i&&i.height?i.width/i.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(e){return this.publicApi._attrs.bigPlayButton=e,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(){return this.videoWidth(this.widthForHeight(this.videoHeight()))}},{key:"constrainToWidth",value:function(){return this.videoHeight(this.heightForWidth(this.videoWidth()))}},{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(){var e;return null===(e=this._tracker)||void 0===e?void 0:e.eventKey()}},{key:"extraHeight",value:function(){return Math.max((0,v.elemHeight)(this.grid.above),(0,v.elemHeight)(this.grid.top))+Math.max((0,v.elemHeight)(this.grid.below),(0,v.elemHeight)(this.grid.bottom))}},{key:"extraWidth",value:function(){return(0,v.elemWidth)(this.grid.left)+(0,v.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 v.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,v.elemStyle)(e.gridChildren(),{opacity:""}),null==n||n()},(0,v.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,v.elemStyle)(this.gridChildren(),{opacity:1}),setTimeout((function(){return e.fade(0,t)}),1)}},{key:"fit",value:function(){}},{key:"focus",value:function(){var e;null===(e=this.chrome)||void 0===e||e.focus()}},{key:"freezeLastFrame",value:function(){}},{key:"fullscreenControlEnabled",value:function(e){return this.publicApi._attrs.fullscreenControl=e,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:"getReadyState",value:function(){var e,t;return null===(e=this.engine)||void 0===e||null===(t=e.getMediaElement())||void 0===t?void 0:t.readyState}},{key:"getStandardBuffered",value:function(){var e,t;return null===(e=this.engine)||void 0===e||null===(t=e.getMediaElement())||void 0===t?void 0:t.buffered}},{key:"gridChildren",value:function(){var t=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){t.grid[n].childNodes.forEach((function(n){e.isGridElem(t.grid,n)||i.push(n)}))})),i}},{key:"handleError",value:function(t){var n,i;e.Metrics.videoCount(this,"player/playback-error");var r=null!==(n=null===(i=t.target)||void 0===i?void 0:i.error)&&void 0!==n?n:new Error("Unspecified error in media playback");throw(0,g.reportError)("mediaPlayback",r.message,{mediaErrorCode:r.code}),r}},{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 t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e){this.info("height",e,t),e=parseFloat(e);var n=this.height();return this.chrome.style.height="".concat(e,"px"),this.trigger("heightchange",e,n),this.embedElement.dispatchEvent(new CustomEvent("heightchange",{detail:{height:e,prevHeight:n}})),t.constrain&&this.constrainToHeight(),this}return(0,v.elemHeight)(this.grid.center)+Math.max((0,v.elemHeight)(this.grid.above),(0,v.elemHeight)(this.grid.top))+Math.max((0,v.elemHeight)(this.grid.below),(0,v.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:"isInstantHls",value:function(){return Boolean((this._attrs.forceInstantHls||!this._mediaData.playableWithoutInstantHls)&&this._mediaData.instantHlsAssetsReady)}},{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()),this.embedElement.dispatchEvent(new CustomEvent("volume-change",{detail:{volume:this.volume(),isMuted:!0}}))}},{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?(0,b.unescapeHtml)(this._name):(0,b.unescapeHtml)(this._mediaData.name||"")}},{key:"contrastIcons",value:function(e){var t,n=this._attrs,i=this.embedElement;if(null!=e){this.info("contrastIcons",e);var r=n.contrastIcons;return n.contrastIcons=e,r!==n.contrastIcons&&i.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:n.playerColor,prevColor:n.playerColor,gradient:n.playerColorGradient,prevGradient:n.playerColorGradient,contrastIcons:n.contrastIcons,prevContrastIcons:r}})),this}return null!==(t=n.contrastIcons)&&void 0!==t&&t}},{key:"opaqueControls",value:function(e){var t,n=this._attrs,i=this.embedElement;if(null!=e){this.info("opaqueControls",e);var r=n.opaqueControls;return n.opaqueControls=e,r!==n.opaqueControls&&i.dispatchEvent(new CustomEvent("opaquecontrolschange",{detail:{opaqueControls:n.opaqueControls,prevOpaqueControls:r}})),this}return null!==(t=n.opaqueControls)&&void 0!==t&&t}},{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,v.elemFromObject)({id:(0,y.seqId)("wistia_video_wrapper_"),style:m.generateRelativeBlockCss,class:"wistia_video_wrapper"}),(0,v.elemStyle)(this.wrapperElem,{overflow:"hidden"}),(0,v.elemAppend)(t,this.wrapperElem),"string"==typeof e?this.wrapperElem.innerHTML+=e:(0,v.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(e){return this.publicApi._attrs.playBarControl=e,this}},{key:"playerColor",value:function(e){var t,n,i=this._attrs,r=this.embedElement;if(null!=e){this.info("playerColor",e);var a=i.playerColor;return e=(0,l.sanePlayerColor)(e),i.playerColor=new o.Color(e).toHex(),a!==i.playerColor&&r.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:i.playerColor,prevColor:a,gradient:i.playerColorGradient,prevGradient:i.playerColorGradient}})),this}return null!==(t=i.playerColorGradient)&&void 0!==t&&t.on&&(0,_.isGradient)(i.playerColorGradient)&&null!==(n=(0,f.getGradientColor)(i.playerColorGradient))&&void 0!==n?n:i.playerColor}},{key:"playerColorGradient",value:function(e){var t=this._attrs,n=this.embedElement;if(null!=e){this.info("playerGradientColor",e);var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.playerColorGradient);return t.playerColorGradient=e,n.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:t.playerColor,prevColor:t.playerColor,gradient:e,prevGradient:i}})),this}return t.playerColorGradient}},{key:"captionsBackgroundColor",value:function(e){var t=this._attrs,n=this.embedElement;if(null!=e){this.info("captionsBackgroundColor",e);var i=t.captionsBackgroundColor;return t.captionsTextColor,t.captionsBackgroundColor=new o.Color(e).toHex(),i!==t.captionsBackgroundColor&&n.dispatchEvent(new CustomEvent("captionsbackgroundcolorchange",{detail:{color:t.captionsBackgroundColor,prevColor:i}})),this}return t.captionsBackgroundColor}},{key:"captionsTextColor",value:function(e){var t=this._attrs,n=this.embedElement;if(null!=e){this.info("captionsTextColor",e);var i=t.captionsTextColor;return t.captionsTextColor=new o.Color(e).toHex(),i!==t.captionsTextColor&&n.dispatchEvent(new CustomEvent("captionstextcolorchange",{detail:{color:t.captionsTextColor,prevColor:i}})),this}return t.captionsTextColor}},{key:"captionsTextSize",value:function(e){var t=this._attrs,n=this.embedElement;if(null!=e){this.info("captionsTextSize",e);var i=t.captionsTextSize;return t.captionsTextSize=e,i!==t.captionsTextSize&&n.dispatchEvent(new CustomEvent("captionstextsizechange",{detail:{color:t.captionsTextSize,prevColor:i}})),this}return t.captionsTextSize}},{key:"captionsFontFamily",value:function(e){var t=this._attrs,n=this.embedElement;if(null!=e){this.info("captionsFontFamily",e);var i=t.captionsFontFamily;return t.captionsFontFamily=e,i!==t.captionsFontFamily&&n.dispatchEvent(new CustomEvent("captionsfontfamilychange",{detail:{color:t.captionsFontFamily,prevColor:i}})),this}return t.captionsFontFamily}},{key:"captionsBorderRadius",value:function(e){var t=this._attrs,n=this.embedElement;if(null!=e){this.info("captionsBorderRadius",e);var i=t.captionsBorderRadius;return t.captionsBorderRadius=e,i!==t.captionsBorderRadius&&n.dispatchEvent(new CustomEvent("captionsborderradiuschange",{detail:{color:t.captionsBorderRadius,prevColor:i}})),this}return t.captionsBorderRadius}},{key:"playPauseNotifierEnabled",value:function(e){return this.publicApi._attrs.playPauseNotifier=e,this}},{key:"preloadValue",value:function(){var e;return null===(e=this.engine)||void 0===e?void 0:e.getPreload()}},{key:"qualityMax",value:function(e){var t;null!==(t=this.engine)&&void 0!==t&&t.qualityMax&&this.engine.qualityMax(e)}},{key:"qualityMin",value:function(e){var t;null!==(t=this.engine)&&void 0!==t&&t.qualityMin&&this.engine.qualityMin(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,v.elemRemove)(e.wrapperElem),e.wipeOutstandingAsyncFunctions(),e.embed()})),this}},{key:"getRemapTime",value:(A=P().m((function e(){return P().w((function(e){for(;;)if(0===e.n)return e.a(2,this.publicApi.getRemapTime())}),e,this)})),j=function(){var e=this,t=arguments;return new Promise((function(n,i){var r=A.apply(e,t);function o(e){S(r,n,i,o,a,"next",e)}function a(e){S(r,n,i,o,a,"throw",e)}o(void 0)}))},function(){return j.apply(this,arguments)})},{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,v.elemUnbindAllInside)(this.grid.root),(0,v.elemRemove)(this.grid.root)),this.grid=null,this.elem()&&this.elem().removeEventListener("error",this.handleError)}},{key:"removeLoopBehavior",value:function(){var e=this;this.whenVideoElementInDom().then((function(){var t;null===(t=e.engine)||void 0===t||t.getMediaElement().removeAttribute("loop")}))}},{key:"renderUI",value:function(){}},{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:"setBigPlayButtonBorderRadius",value:function(e){this._attrs.bigPlayButtonBorderRadius=e,this.embedElement.dispatchEvent(new Event("bigplaybuttonborderradiuschange")),this.trigger("bigplaybuttonborderradiuschange")}},{key:"setControlBarBorderRadius",value:function(e){this._attrs.controlBarBorderRadius=e,this._attrs.playerBorderRadius&&0!==e?this.setControlBarDistance(this._attrs.playerBorderRadius/4):this.setControlBarDistance(.333*e),this.embedElement.dispatchEvent(new Event("controlbarborderradiuschange")),this.trigger("controlbarborderradiuschange")}},{key:"setControlBarDistance",value:function(e){this._attrs.controlBarDistance=e,this.embedElement.dispatchEvent(new Event("controlbardistancechange")),this.trigger("controlbardistancechange")}},{key:"setFloatingControlBar",value:function(e){this._attrs.floatingControlBar=e}},{key:"setOpaqueControls",value:function(e){this._attrs.opaqueControls=e}},{key:"setPlayerBorderRadius",value:function(e){this._attrs.playerBorderRadius=e,this.embedElement.dispatchEvent(new Event("playerborderradiuschange")),this.trigger("playerborderradiuschange")}},{key:"setPlayerColor",value:function(e){return this.playerColor(e),this}},{key:"setRoundedPlayer",value:function(e){this.setFloatingControlBar(Boolean(e)),this.setPlayerBorderRadius(e),this.setControlBarDistance(.25*e),this.setBigPlayButtonBorderRadius(.75*e),this.setControlBarBorderRadius(.75*e),this.renderUI()}},{key:"setResumable",value:function(e){this._attrs.resumable=e,this.embedElement.dispatchEvent(new Event("resumablechange"))}},{key:"setupGrid",value:function(t){return this.grid||(this.grid=e.createGrid(this,t),(0,v.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.embedElement.dispatchEvent(new CustomEvent("percent-watched-change",{detail:{percentWatched:e.percentWatched(),lastPercentWatched:n}})),e.trigger("percentwatchedchanged",e.percentWatched(),n),e._percentWatchedThreshold(e.percentWatched()))},this.rebind("secondchange",this._trackPercent)}}},{key:"setupPipedreamTracking",value:function(){var t=this;this.whenVideoElementInDom().then((function(n){(0,c.doTimeout)("".concat(t.uuid,".track-initembed"),(function(){e.Metrics.videoCount(t,"player/initembed"),e.Metrics.mobileBuckets(t).forEach((function(n){e.Metrics.videoCount(t,"player/initembed.".concat(n))})),e.Metrics.embedTypeBuckets(t.embedElement).forEach((function(n){e.Metrics.videoCount(t,"player/initembed.".concat(n))}));var n=(0,i.usablePlayers)(t.publicApi.judyCtx(),t.publicApi._mediaData);e.Metrics.videoCount(t,"player/available-players",1,{available_players:n})}),100),n.addEventListener("error",t.handleError)})),this.bind("play",(function(){return e.Metrics.videoCount(t,"player/play"),e.Metrics.mobileBuckets(t).forEach((function(n){e.Metrics.videoCount(t,"player/play.".concat(n))})),e.Metrics.embedTypeBuckets(t.embedElement).forEach((function(n){e.Metrics.videoCount(t,"player/play.".concat(n))})),t.unbind})),e.Metrics.countEventOnce(this,"enter-fullscreen"),e.Metrics.countEventOnce(this,"end"),e.Metrics.countShowLoadingOnce(this),e.Metrics.countShowLoadingAll(this),e.Metrics.countShowLoadingLongTimeOnce(this),e.Metrics.countShowLoadingLongTimeAll(this),this.bind("secondchange",(function(){if(t.secondsWatched()>=10)return e.Metrics.videoCount(t,"player/played-10-seconds"),e.Metrics.embedTypeBuckets(t.embedElement).forEach((function(n){e.Metrics.videoCount(t,"player/played-10-seconds.".concat(n))})),t.unbind})),this.bind("secondchange",(function(){if(t.secondsWatched()>=30)return e.Metrics.videoCount(t,"player/played-30-seconds"),t.unbind}))}},{key:"settingsControlEnabled",value:function(e){return this.publicApi._attrs.settingsControl=e,this}},{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,v.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,v.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,v.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,v.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout((function(){return e.slide(e.videoWidth(),0,t)}),1),this}},{key:"playPauseControlEnabled",value:function(e){return this.publicApi._attrs.playPauseControl=e,this}},{key:"setCustomizeEmbedOptions",value:function(e){var t=this;this.hasData((function(){var n=t.embedOptions();t.publicApi._embedOptions=null,t.publicApi._customizeEmbedOptions=e,t.publicApi._opts=t._gatherOptions(),t._opts=(0,d.clone)(t.publicApi._opts),t._embedOptions=null,t.embedElement.dispatchEvent(new CustomEvent(w.EMBED_OPTIONS_CHANGED_EVENT,{detail:{currentEmbedOptions:t.embedOptions(),previousEmbedOptions:n}}))}))}},{key:"sourceHashedId",value:function(){return this.publicApi.sourceHashedId()}},{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,{stillUrl:this._attrs.poster},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,{instantHlsStillAsset:this._mediaData.instantHlsStillAsset,originalFileStillAsset:this._mediaData.originalFileStillAsset,playButton:!1,stillUrl:this._attrs.poster,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()),this.embedElement.dispatchEvent(new CustomEvent("volume-change",{detail:{volume:this.volume(),isMuted:!1}}))}},{key:"videoHeight",value:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{constrain:!1,trigger:!1};if(null!=e){this.info("videoHeight",e,i),e=parseFloat(e);var r=this.height();return this.chrome.style.height="".concat(e,"px"),this.trigger("heightchange",e,r),this.embedElement.dispatchEvent(new CustomEvent("heightchange",{detail:{height:e,prevHeight:r}})),i.constrain&&this.constrainToHeight(),this}return"WISTIA-PLAYER"!==(null===(t=this.embedElement)||void 0===t?void 0:t.tagName)||null!==(n=this.embedElement)&&void 0!==n&&n.wistiaPopover||this.inFullscreen()?(0,v.elemHeight)(this.chrome):(0,v.elemHeight)(this.embedElement)}},{key:"videoWidth",value:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{constrain:!1,trigger:!1};if(null!=e){this.info("videoWidth",e,i),e=parseFloat(e);var r=this.width();return this.chrome.style.width="".concat(e,"px"),this.trigger("widthchange",e,r),this.embedElement.dispatchEvent(new CustomEvent("widthchange",{detail:{width:e,prevWidth:r}})),i.constrain&&this.constrainToWidth(),this}return"WISTIA-PLAYER"!==(null===(t=this.embedElement)||void 0===t?void 0:t.tagName)||null!==(n=this.embedElement)&&void 0!==n&&n.wistiaPopover||this.inFullscreen()?(0,v.elemWidth)(this.chrome):(0,v.elemWidth)(this.embedElement)}},{key:"getVideoQuality",value:function(){return"auto"}},{key:"setVideoQuality",value:function(){return this}},{key:"visitorKey",value:function(){var e;return null===(e=this._tracker)||void 0===e?void 0:e.visitorKey()}},{key:"volume",value:function(e){var t=this;return null!=e?(this.info("volume",e),this.volumeAttr(e),this.ready((function(){return t.volume(e)}))):0}},{key:"volumeAttr",value:function(e){this._attrs.volume=e}},{key:"volumeControlEnabled",value:function(e){return this.publicApi._attrs.volumeControl=e,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 t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e){this.info("width",e,t),e=parseFloat(e);var n=this.width();return this.chrome.style.width="".concat(e,"px"),this.trigger("widthchange",e,n),this.embedElement.dispatchEvent(new CustomEvent("widthchange",{detail:{width:e,prevWidth:n}})),t.constrain&&this.constrainToWidth(),this._width=e,this}return(0,v.elemWidth)(this.grid.left)+(0,v.elemWidth)(this.grid.center)+(0,v.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,o=n&&this._isExternallyEmbedded(),a=i&&this._isShared();if(o||a){var u,l="".concat((0,s.eV1Protocol)(),"//").concat((0,s.appHost)(),"/account/activities"),c={account_key:t,media_hashed_id:r};o&&(c.first_embed=this._isExternallyEmbedded()),a&&(c.first_share=this._isShared()),t>"wistia-production_1819717"&&((0,p.countMetric)("wistia/record-first-embed-or-share-metadata",1,{is_externally_embedded:this._isExternallyEmbedded(),is_shared:this._isShared(),first_embed_for_account:n,first_share_for_account:i,account_key:t,media_hashed_id:r}),o&&"WISTIA-PLAYER"===(null===(u=this.embedElement)||void 0===u?void 0:u.tagName)&&(0,p.countMetric)("player/first-embed-web-component",1,{account_key:t,media_hashed_id:r,url:window.location.href})),fetch(l,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)})}}},{key:"_refreshDataFromServer",value:function(t,n){var i=this,r=this.embedOptions().embedHost||e.remote.embedHost();return fetch("//".concat(r,"/embed/medias/").concat(this.hashedId(),".json")).then((function(e){return e.json()})).then((function(n){return i.publicApi._originalMediaData=n.media,i._mediaData=i.publicApi._transformAndUpdateMediaData(),i._newStill&&i._replaceStillAsset(i._newStill),i.publicApi._mediaData=i._mediaData,e.cacheMedia(i.hashedId(),i._mediaData),null==t||t(),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]})}}],n&&C(t.prototype,n),O&&C(t,O),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,O,A,j}();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,e.mixin(n.prototype,e.bindable),e.mixin(n.prototype,e.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 O=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 O.apply(this,n),(e=this.publicApi)._triggerNoImpl.apply(e,n)},null!==(t=e.PublicApi)&&void 0!==t&&t.prototype&&Object.getOwnPropertyNames(e.PublicApi.prototype).forEach((function(t){var i=e.PublicApi.prototype[t];"function"!=typeof i||E(n.prototype,t)||function(e,t){n.prototype[e]=function(){var t;return(t=this.publicApi)[e].apply(t,arguments)},n.prototype[e]._originalMethod=t}(t,i)})),e.Player=e.Video=n}}(window.Wistia)},(e,t,n)=>{n.d(t,{Color:()=>h});n(47);var i=n(117);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,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var a=/^#?([0-9a-f]{3,4}|[0-9a-f]{6,8})$/i,s=/^rgba?\((\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?)(?:,\s*([01]?\.?\d*))?\)$/,u=/^\d+(\.\d+)*%$/,l=/([0-9a-f])/gi,c=function(e){return u.test(e)?2.55*parseFloat(e):e},d=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},h=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)}return t=e,(n=[{key:"parse",value:function(e){var t=!1;if(Array.isArray(e)){var n;this.r=e[0],this.g=e[1],this.b=e[2],this.a=null!==(n=e[3])&&void 0!==n?n:1,t=!0}else{var i=String(e).replace(/\s+/g,"");if(a.test(i)){var r=i.replace(/^#/,"");3!==r.length&&4!==r.length||(r=r.replace(l,"$1$1")),this.r=parseInt(r.substr(0,2),16),this.g=parseInt(r.substr(2,2),16),this.b=parseInt(r.substr(4,2),16),8===r.length?this.a=parseInt(r.substr(6,2),16)/255:this.a=1,t=!0}else if(s.test(i)){var o=i.match(s);this.r=parseFloat(c(o[1])),this.g=parseFloat(c(o[2])),this.b=parseFloat(c(o[3])),o[4]?this.a=parseFloat(o[4]):this.a=1,t=!0}}return(!t||isNaN(this.r)||isNaN(this.g)||isNaN(this.b)||isNaN(this.a)||this.r<0||this.g<0||this.b<0||this.a<0)&&(this.r=41,this.g=73,this.b=229,this.a=1,console.error("An invalid color was provided, ".concat(e.toString(),", using default color instead."))),this}},{key:"clone",value:function(){return new e(this)}},{key:"_hslFromRgb",value:function(){var e=(0,i.rgbToHsl)([this.r,this.g,this.b]),t=e.hue,n=e.saturation,r=e.lightness;return this._h=t,this._s=n,this._l=r,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*d(r,i,e+1/3),this.g=255*d(r,i,e),this.b=255*d(r,i,e-1/3),this}},{key:"blendChannel",value:function(e,t,n,i){return i?(this[e]=Math.sqrt(Math.pow(this[e],2)*(1-n)+Math.pow(t,2)*n),this):(this[e]=n*t+(1-n)*this[e],this)}},{key:"blend",value:function(t,n,i){return t=new e(t),this.blendChannel("r",t.r,n,i),this.blendChannel("g",t.g,n,i),this.blendChannel("b",t.b,n,i),this}},{key:"getContrastRatio",value:function(t){return Number.parseFloat((0,i.getContrast)(this.toHexWithHash(),new e(t).toHexWithHash()).toFixed(3))}},{key:"hasAccessibleContrast",value:function(e,t){return this.getContrastRatio(e)>=i.colorContrastRatiosByShape[t]}},{key:"hue",value:function(){return this._hslFromRgb(),this._h}},{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:"setHue",value:function(e){if(this._hslFromRgb(),null!=e)return this._h=Math.max(0,Math.min(360,e)),this._rgbFromHsl(),this}},{key:"shade",value:function(e,t){return this.blend("#000000",e,t)}},{key:"grayLevel",value:function(){return(.299*this.r+.587*this.g+.114*this.b)/255}},{key:"tint",value:function(e,t){return this.blend("#ffffff",e,t)}},{key:"whiteLevel",value:function(){return Math.min(Math.min(this.r,this.g),this.b)}},{key:"getRelativeLuminance",value:function(){var e=function(e){var t=.003921569*e;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},t=e(this.r),n=e(this.g),i=e(this.b);return Math.min(.2126*t+.7152*n+.0722*i,1)}},{key:"isDark",value:function(e){return e?this.getRelativeLuminance()<.15:this.grayLevel()<=.4}},{key:"isLight",value:function(e){return e?this.getRelativeLuminance()>=.8:this.grayLevel()>.4}},{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:"toHexWithHash",value:function(){return"#".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()}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}()},(e,t,n)=>{n.d(t,{adjustColorForProperContrast:()=>l,colorContrastRatiosByShape:()=>a,getContrast:()=>u,getVideoPlayerIconColor:()=>c,rgbToHsl:()=>s});var i=n(47),r=n(116),o=n(118);var a={nonText:3,largeText:3,paragraphText:4.5,smallText:5.5,backgroundColorWhereNonTextHitAreaContentsHaveProperContrast:2},s=function(e){var t=e;if(e instanceof r.Color){if((0,i.isNil)(e.r)||(0,i.isNil)(e.g)||(0,i.isNil)(e.b))throw new Error("Color does not contain required RGB values");t=[e.r,e.g,e.b]}else if("string"==typeof e){var n=new r.Color(e);if((0,i.isNil)(n.r)||(0,i.isNil)(n.g)||(0,i.isNil)(n.b))throw new Error("Color does not contain required RGB values");t=[n.r,n.g,n.b]}var o=t[0]/255,a=t[1]/255,s=t[2]/255,u=Math.max(o,a,s),l=Math.min(o,a,s),c=0,d=0,h=(u+l)/2;u===l&&(c=0,d=0);var p=u-l;return 0===p?{hue:c,saturation:d,lightness:100*o}:(c=u===o?(a-s)/p+(a<s?6:0):u===a?(s-o)/p+2:(o-a)/p+4,{hue:360*(c/=6),saturation:100*(d=h>.5?p/(2-u-l):p/(u+l)),lightness:100*h})},u=function(e,t){var n=new r.Color(e),i=new r.Color(t),o=n.getRelativeLuminance(),a=i.getRelativeLuminance(),s=o>a?(o+.05)/(a+.05):(a+.05)/(o+.05);return Number.parseFloat(s.toFixed(3))},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"paragraphText",l=new r.Color(e),c=new r.Color(t);if((0,i.isNil)(l.r)||(0,i.isNil)(l.g)||(0,i.isNil)(l.b))throw new Error("Color does not contain required RGB values");var d=u(l.toHexWithHash(),c.toHexWithHash());if(l.hasAccessibleContrast(c,n))return l.toHexWithHash();var h=s([l.r,l.g,l.b]).lightness,p=new r.Color(l).lighten(1),f=new r.Color(l).darken(1),v=h<15||p.getContrastRatio(c)>f.getContrastRatio(c);h>75&&1===d&&(v=!1);for(var y=new r.Color(l),m=0;!y.hasAccessibleContrast(c,n);){if((m+=1)>1e3)return(0,o.reportError)("other",new Error("Exceeded ".concat(m," attempts to find contrasting color")),{key:"adjust-color-for-proper-contrast",foregroundColor:l.toHexWithHash(),backgroundColor:c.toHexWithHash()}),y.toHexWithHash();var g=y.getRelativeLuminance();if(m>1&&(1===g||0===g)){if(a[n]>3)return u("#fff",c.toHexWithHash())>u("#000",c.toHexWithHash())?"#fff":"#000";v=!v,y=new r.Color(l)}v?y.lighten(1):y.darken(1)}return y.toHexWithHash()},c=function(e,t,n){var i,o=new r.Color(e),s=new URL(window.location.toString()).searchParams,u=Boolean(null!==(i=s.get("useAccessiblePlayerIconColor"))&&void 0!==i&&i);return n||!u&&!t||new r.Color("#fff").getContrastRatio(o)>=a.paragraphText?"#ffffff":l(e,e,"paragraphText")}},(e,t,n)=>{n.d(t,{reportError:()=>a});var i=n(47),r=n(36),o=n(1),a=(n(34),n(32),function(e,t,n){try{if(!o.Wistia.isSentryInitialized)return;var a="mediaPlayback"===e?.001:1;false;var s=!1,u=(0,i.isNil)(window.crypto)?window.msCrypto:window.crypto;if(void 0!==u)s=u.getRandomValues(new Uint32Array(1))[0]/4294967296<a;else s=Math.random()<a;s?(0,r.isVisitorTrackingEnabled)()&&(o.Wistia._sentryScope.clear(),o.Wistia._sentryScope.setTag("pillar","publish"),o.Wistia._sentryScope.setTag("product",e),o.Wistia._sentryScope.setTag("url",window.location.href),(0,i.isNonEmptyRecord)(n)&&o.Wistia._sentryScope.setTags(n),o.Wistia._sentryScope.captureException(t)):console.error(t)}catch(e){console.error(e)}})},(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,o(i.key),i)}}function r(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{SecondsWatchedTracker:()=>a});var a=function(){return e=function e(t,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"onTimeChange",(function(){i.lastTimeChangeAt=i.timeChangeAt,i.timeChangeAt=Date.now()})),r(this,"onPlaybarDragEnd",(function(){i.playbarDragEndAt=Date.now()})),r(this,"onPlay",(function(){i.playedAt=Date.now()})),this.video=t,this.duration=n,this.maxWatchingPlaybackRate=o.maxWatchingPlaybackRate||8,this.video.bind("timechange",this.onTimeChange),this.video.bind("playbardragend",this.onPlaybarDragEnd),this.video.bind("play",this.onPlay),this.reset(),o.existingTracker&&(this._secondsWatched=o.existingTracker._secondsWatched,this._totalWatched=o.existingTracker._totalWatched,this._totalRewatched=o.existingTracker._totalRewatched,this.timeChangeAt=o.existingTracker.timeChangeAt,this.lastTimeChangeAt=o.existingTracker.lastTimeChangeAt,this.lastPlaybarDragEndAt=o.existingTracker.lastPlaybarDragEndAt)},t=[{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)||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(e){var t=e===this._secondsWatched.length-1&&"ended"===this.video.state();return"playing"!==this.video.state()&&!t||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}}],t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},(e,t,n)=>{n.d(t,{getCssGradient:()=>o,getGradientColor:()=>a});var i=n(121),r=n(116);n(18);var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.9;return 0===e.colors.length?null:e.colors.every((function(e){return Boolean(e[0]&&e[1]>=0&&e[1]<=1)}))?"linear-gradient(90deg, ".concat(e.colors.map((function(e){return"".concat(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.9;return new r.Color(e).alpha(t).toRgba()}(e[0],t)," ").concat(100*e[1],"%")})).join(", "),")"):null},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,i.isGradient)(e)?e.colors[t][0]:null}},(e,t,n)=>{n.d(t,{isGradient:()=>i});var i=function(e){if("object"!=typeof e||null===e)return!1;var t=e,n=t.colors,i=t.on;return!i||!(!Array.isArray(n)||"boolean"!=typeof i)&&(0!==n.length&&n.every((function(e){return"string"==typeof e[0]&&"number"==typeof e[1]})))}},(e,t,n)=>{var i=n(24);!function(e){null==e._onFullscreenChange&&(e._onFullscreenChange=function(){return i.fullscreenElement()?e.trigger("enterfullscreen",i.fullscreenElement()):e.trigger("cancelfullscreen")}),e._initializers.initFullscreenTriggers=function(){return i.elemRebind(document,"webkitfullscreenchange",e._onFullscreenChange),i.elemRebind(document,"fullscreenchange",e._onFullscreenChange)},e._destructors.destroyFullscreenTriggers=function(){return i.elemUnbind(document,"webkitfullscreenchange",e._onFullscreenChange),i.elemUnbind(document,"fullscreenchange",e._onFullscreenChange)}}(window.Wistia)},(e,t,n)=>{n(32);var i=n(33),r=n(23),o=n(35),a=n(18);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,u(i.key),i)}}function u(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}!function(e){e.BandwidthTest=function(){return t=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,a.merge)({minKbps:2500,timeoutLength:4e3,freshFor:36e5},this.opt),this.opt.uuid||(this.opt.uuid=(0,o.seqId)("bandwidth_test_"))},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,r.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 t,n,i,r;if(this._suspiciouslyFast())return e.Metrics.count("player/suspicious-bandwidth-test",1,{bw_test_time:this._testTime,visitor_key:e.visitorKey.value(),location:null!==(t=location)&&void 0!==t&&null!==(n=t.protocol)&&void 0!==n&&n.length&&null!==(i=location)&&void 0!==i&&null!==(r=i.hostname)&&void 0!==r&&r.length?"".concat(location.protocol,"//").concat(location.hostname):null,connection_type:e.Metrics.connectionType(),agent:navigator.userAgent})}catch(t){return e.error(t)}}},{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,r.clearTimeouts)("".concat(this.uuid,".cancel_bandwidth_test")),this.trigger("ended")}},{key:"testFileUrl",value:function(){return this.opt.testFileUrl||("https:"===(0,i.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 e.localStorage(this.saveKey(),{updatedAt:(new Date).getTime(),supportsHd:this._supportsHd,clientKbps:this._kbps})}},{key:"savedResult",value:function(){return e.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}}],n&&s(t.prototype,n),u&&s(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,u}(),e.mixin(e.BandwidthTest.prototype,e.bindable)}(window.Wistia)},function(e,t,n){var i,r,o,a,s,u,l,c,d,h,p,f,v,y,m;a=n(1).Wistia,f=n(36).isVisitorTrackingEnabled,m=n(18),s=m.assign,v=m.merge,h=n(125).getResumableKeyForVideo,d=n(46).getCarouselDataFromCache,c=n(23).doTimeout,i=n(33).Url,y=n(24).pageLoaded,v=n(18).merge,n(30).runScript,u=n(71).base64Encode,o=n(126),r=n(128),l=function(e){var t;return null!=(t="none"===e)?t:{true:!1}},p=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,term:t.utm_term||null,content:t.utm_content||null}},function(e){var t;if(!e.VideoTracker2)t=["_eventQueue","_failedEventsQueue","_played","_retryInterval","_retryTimer","clockStart","initializedOnce","lastBucket","lastRecordedTime","lastSecondsWatched","lastSeekTime","videoTrackerLocalStorage","videoTrackerSession"],e.VideoTracker2=function(){function n(e){var n,i;this.publicApi=e,this.eventQueue=[],this.initializedOnce=!1,this.monitoring=!1,this.remapTimeToSource=(i=this,function(e){var t,n;return n=i.publicApi.languageToLocalization(i.publicApi.sourceLocalization())||i.publicApi.defaultLocalization(),(t=i.publicApi.languageToLocalization(i.publicApi.mediaLanguage())||i.publicApi.defaultLocalization()).hasVideoStream&&n.wistiaLanguageCode!==t.wistiaLanguageCode?i.remapTime(t.wistiaLanguageCode,n.wistiaLanguageCode,e):e}),(n=this.publicApi.embedOptions().existingTracker)?(t.forEach(function(e){return function(t){return e[t]=n[t]}}(this)),this.initializedOnce&&this.publicApi.hasData(function(e){return function(){return e.timeRemappingReady((function(){return e.videoTrackerSession=new o(e.publicApi,e.remapTimeToSource,n.videoTrackerSession),e.videoTrackerLocalStorage=new r(e._getAccountKey(),e.publicApi.sourceHashedId(),(function(){var t;return(t=e.publicApi).info.apply(t,arguments)}))}))}}(this))):this._setStartValues(),this.publicApi.hasData(function(e){return function(){e.params=v({transmitInterval:1e3*(e.publicApi._mediaData.trackingTransmitInterval||10)},e.publicApi._opts),e.timeRemappingReady((function(){})),e.publicApi._attrs.shouldTrack}}(this))}return n.prototype.NUM_BUCKETS=1e3,n.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},n.prototype._setStartValues=function(){return this.clockStart=(new Date).getTime(),this._played=!1,this.lastRecordedTime=0,this.lastSeekTime=0,this.lastSecondsWatched=0,this.lastBucket=-1},n.prototype._getAccountKey=function(){return this.publicApi._opts.accountKey||this.publicApi._mediaData.accountKey},n.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"===this.publicApi._attrs.endVideoBehavior,r},n.prototype._sourceMediaKey=function(){return this.publicApi._mediaData.sourceMediaKey||this.publicApi._mediaData.mediaKey},n.prototype._data=function(){var e,t,n,i,r,o,a,s,u,l,c,h,y,m;return a=(r=(c=this.publicApi.languageToLocalization(this.publicApi.sourceLocalization())||this.publicApi.defaultLocalization()).wistiaLanguageCode!==this.publicApi.mediaLanguage().wistiaLanguageCode)?this.publicApi._mediaData.mediaKey:void 0,o=r?this.publicApi._mediaData.duration:void 0,y=r?this._sourceMediaKey():void 0,h=r?c.duration:void 0,l=v({account_key:this._getAccountKey(),event_details:this.eventQueue,page_title:this.publicApi._getPageTitle(),browser_language:this.publicApi._getBrowserLanguage(),foreign_data:this.publicApi.foreignData(),foreign_ids:this.publicApi.foreignIds(),is_localization:r,localized_media_id:a,localized_media_duration:o,source_media_id:y,source_media_duration:h,media_duration:this.remapTimeToSource(parseFloat(this.publicApi._mediaData.duration)),media_id:this._sourceMediaKey(),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:p(this.publicApi),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()&&(l.email=this.publicApi.email()),!this.publicApi._opts.anonymizeIp&&f()||(l.anonymizeIp=!0),this.params.conversionType&&(l.conversion_type=this.conversions[this.params.conversionType]),this.params.conversionData&&(l.conversion_data=this.params.conversionData),this.publicApi._opts.channel&&(l.channel=this.publicApi._opts.channel),this.publicApi.embedOptions().channelId&&(l.channel_id=this.publicApi.embedOptions().channelId),this.publicApi._mediaData.projectId&&(l.project_id=this.publicApi._mediaData.projectId),(null!=(s=this.publicApi._mediaData.liveStreamEventDetails)?s.id:void 0)&&(l.live_stream_event_id=null!=(u=this.publicApi._mediaData.liveStreamEventDetails)?u.id:void 0),l.episode_id=this.publicApi.embedOptions().episodeIdMappings?this.publicApi.embedOptions().episodeIdMappings[this.publicApi.sourceHashedId()]:this.publicApi.embedOptions().episodeId?this.publicApi.embedOptions().episodeId:void 0,n=null,i=this.publicApi.getConnectedCarouselEmbed(),null!==this.publicApi.wistiaPlaylistElem&&null!==this.publicApi.wistiaPlaylistElem.channelId?n=this.publicApi.wistiaPlaylistElem.channelId:i&&(n=i.channelId),null!==n&&(t=(e=d(n)).medias.find((m=this,function(e){return e.hashedId===m.publicApi.sourceHashedId()})),e&&t&&(l.channel_id=e.numericId,l.episode_id=t.episodeId)),JSON.stringify(l)},n.prototype._mediaType=function(){return this.publicApi._mediaData.mediaType},n.prototype.reset=function(){return this.stopMonitoring(),this._setStartValues(),this.initializedOnce=!1},n.prototype.initialize=function(){var e;return this.initializedOnce||(this.publicApi.info("video tracker initialize"),this.videoTrackerLocalStorage=new r(this._getAccountKey(),this.publicApi.sourceHashedId(),(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},n.prototype.monitor=function(){var t;return this.initializedOnce||this.publicApi.hasData((t=this,function(){return t.timeRemappingReady((function(){return t.videoTrackerSession=new o(t.publicApi,t.remapTimeToSource)}))})),this.publicApi.embedded(function(t){return function(){return t.timeRemappingReady((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.remappedVideoDuration()-t.remappedVideoTime())>.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.onConversionLink&&(t.onConversionLink=function(e){return t.logConversionOpportunity(e)}),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("conversion-link",t.onConversionLink),t.publicApi.rebind("percentWatchedThreshold",t.onPercentWatchedThreshold),t.videoTrackerSession.setupBindings(),"playing"===t.publicApi.state()&&t.onPlay(),c(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))},n.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.onConversionLink&&this.publicApi.unbind("conversion-link",this.onConversionLink),this.onPercentWatchedChanged&&this.publicApi.unbind("percentwatchedchanged",this.onPercentWatchedChanged),this.videoTrackerSession)return this.videoTrackerSession.removeBindings()},n.prototype.distilleryUrl=function(){return this.publicApi._attrs.statsUrl||this.publicApi._mediaData.distilleryUrl},n.prototype.sendToDistillery=function(t){return fetch(this.distilleryUrl(),{method:"POST",mode:"cors",headers:{"Content-Type":"text/plain"},body:encodeURIComponent(t)}).catch((n=this,function(t){return e.Metrics.videoCount(n.publicApi,"player/distillery-error-response/"+t.status)}));var n},n.prototype.readyToTrack=function(t){return this.publicApi.hasData((n=this,function(){return n.timeRemappingReady((function(){return y((function(){return e.visitorKey.ready().then(t)}))}))}));var n},n.prototype.timeRemappingReady=function(e){return this.publicApi.languages().length>1?this.publicApi.getRemapTime().then((t=this,function(n){return t.remapTime=n,e()})):e();var t},n.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(u(n)),t.eventQueue=[]}))},n.prototype.debounceTransmit=function(){return c(this.publicApi.uuid+".transmit_play_data",(e=this,function(){return e.transmit()}),350);var e},n.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.remappedVideoDuration(),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=l(this.videoTrackerLocalStorage.lastLoadForMedia())):"play"===e?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastPlayForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastPlayForMedia(),i.isUnique=l(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))},n.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)},n.prototype.addBuckets=function(e,t){var n,i;if("beforeplay"!==this.publicApi.state()&&(i=this.remappedVideoTime(),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},n.prototype._timeToBucket=function(e){return Math.floor(e/this.remappedVideoDuration()*this.NUM_BUCKETS)},n.prototype.logConversionOpportunity=function(t){var n,i;if(this.publicApi._attrs.shouldTrack)return this.videoTrackerSession.ping(),null!=t.co_key?(t.is_new_lead=(null!=(i=this.videoTrackerLocalStorage)?i.isNewLead():void 0)||!1,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)},n.prototype.logAction=function(e,t){var n,i;return null==t&&(t={}),this.videoTrackerSession.ping(),n={time:this.remappedVideoTime(),key:e,type:"default",category:"default",text:"test",uniqueToVisitor:!1},i={value:s({},n,t),key:"action",timeDelta:this.timeDelta()},this.eventQueue.push(i)},n.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)},n.prototype.logChapterClick=function(e,t){return this.logAction("chapterConversion",{text:e.title,type:"conversion",category:"chapter",uniqueToVisitor:!0,time:this.remapTimeToSource(t)}),this.logAction("chapterSelection-"+e.id,{text:e.title,type:"interaction",category:"chapter",time:this.remapTimeToSource(t)})},n.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"})},n.prototype.resumableKey=function(){return!1!==this.publicApi.embedOptions().resumable?h(this.publicApi.sourceHashedId()):null},n.prototype.timeInVideo=function(){var e;return null==(e=this.remappedVideoTime())&&(e="beforeplay"===this.publicApi.state()?0:this.remappedVideoDuration()),e.toFixed(1)},n.prototype.timeDelta=function(){return(new Date).getTime()-this.clockStart},n.prototype.remappedVideoDuration=function(){return this.remapTimeToSource(this.publicApi.duration())},n.prototype.remappedVideoTime=function(){return this.remapTimeToSource(this.publicApi.time())},n.prototype.visitorKey=function(){return this.publicApi.visitorKey()},n.prototype.eventKey=function(){if(this.videoTrackerSession)return this.videoTrackerSession.eventKey()},n}()}(a)},(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(38),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)=>{var i,r,o,a;n(1).Wistia,o=n(127).secondsSinceTime,i=n(119).SecondsWatchedTracker,a=n(109).uniqId,r=function(){function e(e,t,n){this.publicApi=e,this.lastFetchTime=(null!=n?n.lastFetchTime:void 0)||(new Date).getTime(),this._eventKey=(null!=n?n._eventKey:void 0)||null,this.remapTimeToSource=t,this.secondsWatchedTracker=new i(this.publicApi,this.remapTimeToSource(this.publicApi.duration()),{existingTracker:null!=n?n.secondsWatchedTracker:void 0,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(Math.floor(e.remapTimeToSource(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(Date.now().toString().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,{secondsSinceTime:()=>i});var i=function(e){return e?Math.round(((new Date).getTime()-e)/1e3):null}},(e,t,n)=>{var i,r,o,a;o=n(1).Wistia,a=n(127).secondsSinceTime,i="action_recorded.conversion",r=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(a(o.localStorage("accounts_loaded."+this.accountKey))))},e.prototype.lastLoadForMedia=function(){return this._lastLoadForMedia||(this._lastLoadForMedia=this.nullToNone(a(o.localStorage("medias_loaded."+this.hashedId))))},e.prototype.lastPlayForAccount=function(){return this._lastPlayForAccount||(this._lastPlayForAccount=this.nullToNone(a(o.localStorage("accounts_played."+this.accountKey))))},e.prototype.lastPlayForMedia=function(){return this._lastPlayForMedia||(this._lastPlayForMedia=this.nullToNone(a(o.localStorage("medias_played."+this.hashedId))))},e.prototype.lastRecordingOfActionForMedia=function(e){return this.nullToNone(a(o.localStorage("action_recorded."+this.hashedId+"."+e)))},e.prototype.isNewLead=function(){return!o.localStorage(i)},e.prototype.setConvertedLead=function(){return this.logFn("recordConvertedLead"),o.localStorage(i,!0)},e.prototype.recordLastActionForMedia=function(e){return o.localStorage("action_recorded."+this.hashedId+"."+e,(new Date).getTime())},e.prototype.recordLoad=function(){return this.logFn("recordLoad"),o.localStorage("accounts_loaded."+this.accountKey,(new Date).getTime()),o.localStorage("medias_loaded."+this.hashedId,(new Date).getTime())},e.prototype.recordPlay=function(){return this.logFn("recordPlay"),o.localStorage("accounts_played."+this.accountKey,(new Date).getTime()),o.localStorage("medias_played."+this.hashedId,(new Date).getTime())},e.prototype._saveVisitorVersion=function(e){if(null==e&&(e=1),null==o.localStorage("visitor_version"))return o.localStorage("visitor_version",e)},e.prototype.getVisitorVersion=function(){return o.localStorage("visitor_version")||(this._saveVisitorVersion(0),0)},e.prototype.clearActionRecordings=function(){return["chapterImpression","chapterConversion","shareImpression","shareConversion"].forEach((e=this,function(t){return o.localStorage("action_recorded."+e.hashedId+"."+t,"",!0)}));var e},e}(),e.exports=r},(e,t,n)=>{var i=n(32),r=n(45),o=n(130),a=n(51),s=n(34);!function(e){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=a.fetchMediaData,e.cacheMedia=r.cacheMedia,e.uncacheMedia=r.uncacheMedia,e.mediaFromCache=r.mediaFromCache,e.remote.playlist=o.fetchPlaylist)}(window.Wistia)},(e,t,n)=>{n.d(t,{fetchPlaylist:()=>l});var i=n(33),r=n(32),o=n(10),a=n(35),s=n(23),u=n(1);null==u.Wistia._remotePlaylist&&(u.Wistia._remotePlaylist={});var l=function(e,t){var n=u.Wistia._remotePlaylist[e];if(n)(0,s.doTimeout)("remote-playlist.".concat(e,".").concat((0,a.seqId)()),(function(){t(n)}));else{var l="".concat((0,i.proto)(),"//").concat((0,r.cdnFastWistiaComHost)(),"/embed/playlists/").concat(e,".json");fetch(l).then((function(e){return e.json()})).then((function(n){u.Wistia._remotePlaylist[e]=n,t(n)})).catch((function(){o.wlog.error("Timed out fetching ".concat(l))}))}}},(e,t,n)=>{var i=n(22),r=n(18),o=n(24);!function(e){if(!e.Metrics)e.Metrics={count:i.count,sample:i.sample,send:i.send,videoCount:function(e,t,n,i){var r;return null==n&&(n=1),null!==(r=e.isInstantHls)&&void 0!==r&&r.call(e)&&this.videoSend(e,"count","player/instant-hls/".concat(t),n,i),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,i,a,s){var u,l=this;return null==s&&(s={}),null===(u=t.hasData)||void 0===u?void 0:u.call(t,(function(){var u,c,d,h,p,f,v,y,m,g,b,_,w,E,P,O=(null===(u=t.bandwidthTest)||void 0===u?void 0:u.call(t).savedResult())||{};(s=(0,r.merge)({location:null!==(c=location)&&void 0!==c&&null!==(d=c.protocol)&&void 0!==d&&d.length&&null!==(h=location)&&void 0!==h&&null!==(p=h.hostname)&&void 0!==p&&p.length?"".concat(location.protocol,"//").concat(location.hostname):null,agent:navigator.userAgent,account_key:null===(f=t._mediaData)||void 0===f?void 0:f.accountKey,at:t.time(),video_id:t.hashedId(),embed_type:t.playerType,duration:t.duration(),client_kbps:O.clientKbps,supports_hd:O.supportsHd,autoplay:!(null===(v=t._attrs)||void 0===v||!v.autoplay),in_iframe:top!==self,device_pixel_ratio:window.devicePixelRatio,window_width:(0,o.elemWidth)(window),window_height:(0,o.elemHeight)(window),video_width:t.videoWidth(),video_height:t.videoHeight(),visitor_key:null===(y=t._tracker)||void 0===y?void 0:y.visitorKey(),event_key:null===(m=t._tracker)||void 0===m?void 0:m.eventKey(),event_time_delta:null===(g=t._tracker)||void 0===g?void 0:g.timeDelta(),connection_type:l.connectionType(),version:9,channel:e.channelName},s),/romulus|html5|vulcan/.test(t.playerType))&&(s.errorState=null===(E=t.elem())||void 0===E?void 0:E.error);(null!=t._cacheStatus&&(s.cache_status=t._cacheStatus),null!=t._assetServer&&(s.asset_server=t._assetServer),null!=t._cacheHit&&(s.cache_hit=t._cacheHit),t.inFullscreen&&(s.in_fullscreen=t.inFullscreen()),null!=t._substream)?(s.substream=t._substream.index,s.adaptive=t._substream.adaptive,s.current_level=t._substream.currentLevel,s.all_level_names=t._substream.allLevelNames,w=t._substream.asset,s.hls_error_counts=t._substream.hlsErrorCounts()):(s.substream=null,s.adaptive=null,w=null===(P=t.data)||void 0===P?void 0:P.asset);if(null!=w&&(s.asset_type=w.type,s.asset_slug=w.slug,s.bitrate=w.bitrate,s.asset_height=w.height,s.asset_width=w.width),(null===(b=t.videoElem)||void 0===b||null===(_=b.buffered)||void 0===_?void 0:_.length)>0&&(s.bufferedFrom0=t.videoElem.buffered.end(0)),null!=t._timeToFirstByte&&(s.time_to_first_byte=t._timeToFirstByte),s.buffered=null!=t.totalBuffered?t.totalBuffered():void 0,s.played=null!=t.totalPlayed?t.totalPlayed():void 0,l.send(n,i,a,s),t._mediaData&&t._mediaData.accountKey&&t._mediaData.accountSpecificMetrics)return l.send(n,"".concat(t._mediaData.accountKey,"/").concat(i),a,s)}))},countEvent:function(e,t,n){return n||(n=t),null==this._private.countEventCallbacks[n]&&(this._private.countEventCallbacks[n]=this._private.mkCountEventCallback(t,n)),e.rebind(t,this._private.countEventCallbacks[n])},countEventOnce:function(e,t,n){return n||(n=t),null==this._private.countEventOnceCallbacks[n]&&(this._private.countEventOnceCallbacks[n]=this._private.mkCountEventOnceCallback(t,n)),e.rebind(t,this._private.countEventOnceCallbacks[n])},sampleEvent:function(e,t,n){return n||(n=t),null==this._private.sampleEventCallbacks[n]&&(this._private.sampleEventCallbacks[n]=this._private.mkSampleEventCallback(t,n)),e.rebind(t,this._private.sampleEventCallbacks[n])},countShowLoadingOnce:function(e){var t=this,n=-1;return e.bind("waiting",(function(i){return n<2&&i>=2?(t.videoCount(e,"player/show-loading/first",1),n=i,e.unbind):n=i}))},countShowLoadingAll:function(e){var t=this,n=-1;return e.bind("waiting",(function(i){return n<2&&i>=2&&(t.videoCount(e,"player/show-loading/all",1),t.embedTypeBuckets(e.embedElement).forEach((function(n){t.videoCount(e,"player/show-loading/all.".concat(n),1)}))),n=i})),e.bind("done-waiting",(function(){return n=-1}))},countShowLoadingLongTimeOnce:function(e){var t=this,n=-1;return e.bind("waiting",(function(i){return n<5&&i>=5?(t.videoCount(e,"player/show-loading-long-time/first",1),n=i,e.unbind):n=i}))},countShowLoadingLongTimeAll:function(e){var t=this,n=-1;return e.bind("waiting",(function(i){return n<5&&i>=5&&t.videoCount(e,"player/show-loading-long-time/all",1),n=i})),e.bind("done-waiting",(function(){return n=-1}))},mobileBuckets:function(){return e.detect.iphone||e.detect.android||/mobile/i.test(navigator.userAgent)?e.detect.iphone?["mobile","iphone"]:e.detect.android?["mobile","android"]:["mobile"]:[]},embedTypeBuckets:function(e){return"WISTIA-PLAYER"===(null==e?void 0:e.tagName)?!0===(null==e?void 0:e.useWebComponent)?["web-component","translated-web-component"]:["web-component"]:["legacy"]},connectionType:function(){var e=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;return null==e?void 0:e.type},sumTimeRanges:function(e){if(null==e)return null;for(var t=0,n=0,i=e.length,r=i>=0;r?n<i:n>i;r?n++:n--)t+=e.end(n)-e.start(n);return t},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/".concat(n),i)}},countEventOnceCallbacks:{},mkCountEventOnceCallback:function(t,n){return function(i){return n||(n=t),e.Metrics.videoCount(this,"player/".concat(n),i),this.unbind}},sampleEventCallbacks:{},mkSampleEventCallback:function(t,n){return function(i){return n||(n=t),e.Metrics.videoSample(this,"player/".concat(n),i)}}}}}(window.Wistia)},(e,t,n)=>{!function(e){var t,i,r,o,a,s,u,l,c,d,h,p;if(e.Plugin||(e.Plugin={}),!e.Plugin.Base)s=n(32),i=s.eV1HostWithPort,r=s.eV1Protocol,u=n(82),t=u.allow3rdParty,o=u.getSourceName,a=n(18).merge,l=n(41),h=l.wData,p=l.wRemoveData,d=n(35).seqId,c=n(30).runScripts,e.Plugin.Base=function(){function e(){this.pluginName="plugin",this.unbinds=[]}return e.prototype.instances=function(){return h(["plugins",this.pluginName,this.video.uuid])},e.prototype.register=function(e){var t;return(t=this.playlist||this.video||this.audio).plugins[this.uuid]=e,h(["plugins",this.pluginName,t.uuid,this.uuid],e)},e.prototype.remove=function(e){var t,n;if(null==e&&(e={}),(n=this.playlist||this.video||this.audio).plugins[this.uuid]=null,p(["plugins",this.pluginName,n.uuid,this.uuid]),null!=n&&null!=(t=n.unbinds)&&t.map((function(e){return"function"==typeof e?e():wlog.warn("trying to unbind a non-function",e)})),n.plugins[this.uuid]===this&&delete n.plugins[this.uuid],n.plugin[this.pluginName]===this)return delete n.plugin[this.pluginName]},e.prototype.fit=function(){},e.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=a({},t||{}),this.uuid=this.params.uuid||d("wistia_","_plugin")},e}(),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('Wistia.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("Wistia.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,a){var s,u,l;if(null==a&&(a={}),!1!==a.on)return u=o(n),s=r()+"//"+i()+"/assets/external/"+u+".js",l=[{name:n,options:a,src:Object.hasOwn(a,"src")&&a.src&&e.plugin._allow3rdParty(t.options)?a.src:s,async:!0}],e.plugin._setFnForDefinedPlugins(t,l),e.plugin._execQueue(t,l)},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;if(!t.plugin[n.name])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),c(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 h(["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=n(43);!function(e){e.localStorage||(e.localStorage=i.setOrGet,e.removeLocalStorage=i.removeLocalStorage)}(window.Wistia)},(e,t,n)=>{var i=n(24),r=n(55),o=n(35),a=n(82),s=n(105);!function(e){if(!e.gridify){e.gridifyCss=function(e){e.replace(/_grid$/,"");return"#".concat(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#").concat(e,"_wrapper *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}\n#").concat(e,"_above{position:relative;}\n#").concat(e,"_main{display:block;height:100%;position:relative;}\n#").concat(e,"_behind{height:100%;left:0;position:absolute;top:0;width:100%;}\n#").concat(e,"_center{height:100%;overflow:hidden;position:relative;width:100%;}\n#").concat(e,"_front{display:none;height:100%;left:0;position:absolute;top:0;width:100%;}\n#").concat(e,"_top_inside{position:absolute;left:0;top:0;width:100%;}\n#").concat(e,"_top{width:100%;position:absolute;bottom:0;left:0;}\n#").concat(e,"_bottom_inside{position:absolute;left:0;bottom:0;width:100%;}\n#").concat(e,"_bottom{width:100%;position:absolute;top:0;left:0;}\n#").concat(e,"_left_inside{height:100%;position:absolute;left:0;top:0;}\n#").concat(e,"_left{height:100%;position:absolute;right:0;top:0;}\n#").concat(e,"_right_inside{height:100%;right:0;position:absolute;top:0;}\n#").concat(e,"_right{height:100%;left:0;position:absolute;top:0;}\n#").concat(e,"_below{position:relative;}")},e.gridifyHtml=function(e){return{id:"".concat(e,"_wrapper"),childNodes:[{id:"".concat(e,"_above")},{id:"".concat(e,"_main"),childNodes:[{id:"".concat(e,"_behind")},{id:"".concat(e,"_center")},{id:"".concat(e,"_front")},{id:"".concat(e,"_top_inside"),childNodes:{id:"".concat(e,"_top")}},{id:"".concat(e,"_bottom_inside"),childNodes:{id:"".concat(e,"_bottom")}},{id:"".concat(e,"_left_inside"),childNodes:{id:"".concat(e,"_left")}},{id:"".concat(e,"_right_inside"),childNodes:{id:"".concat(e,"_right")}}]},{id:"".concat(e,"_below")}]}},e.createGrid=function(n,i){var r=e.createGridSkeleton();for(var o in e.initGridEventListeners(r),r)"STYLE"!==r[o].nodeName&&!0!==n._opts._inLegacyPlaylist&&t(r[o],n);return r};var t=function(t,i){return t.originalAppendChild=t.appendChild,t.originalAppend=t.append,t.originalPrepend=t.prepend,t.appendChild=function(r,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==e._hasTrackedGrid&&(e._hasTrackedGrid=!0,n(i)),t.originalAppendChild(r)},t.append=function(r,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==e._hasTrackedGrid&&(e._hasTrackedGrid=!0,n(i)),t.originalAppend(r)},t.prepend=function(r,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==e._hasTrackedGrid&&(e._hasTrackedGrid=!0,n(i)),t.originalPrepend(r)}},n=function(e){var t=(0,a.pluginScriptsToLoad)(e._mediaData,e._opts);return(0,r.countMetric)("custom-plugin-grid-append",1,{hashedId:e._mediaData.hashedId,href:window.location.href,plugins:(0,a.getPluginsNotInList)(t)})};e.createGridSkeleton=function(){var t=(0,o.seqId)("wistia_grid_"),n=(0,i.elemFromObject)(e.gridifyHtml(t)),r=(0,i.addInlineCss)(n,e.gridifyCss(t)),a={};a.css=r,a.root=n,(0,i.elemStyle)(n,{display:"none"}),(0,i.elemAppend)(document.body,n);for(var s=0,u=Array.from(["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"]);s<u.length;s++){var l=u[s];a[l]=document.getElementById("".concat(t,"_").concat(l))}return(0,i.elemRemove)(n),(0,i.elemStyle)(n,{display:"block"}),a},e.initGridEventListeners=function(e){return e.center.addEventListener("scroll",(function(){return e.center.scrollTop=0}))},e.gridify=function(t,n){var r={},o="".concat(n.id,"_grid");n.innerHTML=(0,s.generateHtml)(e.gridifyHtml(o));for(var a=0,u=["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"];a<u.length;a++){var l=u[a];r[l]=document.getElementById("".concat(o,"_").concat(l))}return(0,i.addInlineCss)(r.wrapper,e.gridifyCss(o)),r.wrapper.style.height="100%",r.main.style.width="100%",r},e.isGridElem=function(e,t){for(var n in e){if(t===e[n])return!0}return!1},e.grid={},e.grid.allNodesHidden=function(e){if(0===e.length)return!0;for(var t=0,n=Array.from(e);t<n.length;t++){var i=n[t];if(i.style&&"none"!==i.style.display)return!1}return!0},e.grid.zeroEmptySections=function(t){return function(){for(var n=[],i=0,r=["top","bottom","left","right","above","below"];i<r.length;i++){var o=r[i],a=t.grid[o];a.childNodes.length?e.grid.allNodesHidden(a.childNodes)?(a.style.height="0px",a.style.fontSize="0px",a.style.lineHeight="0px",n.push(a.isEmpty=!0)):(a.style.height="",a.style.fontSize="",n.push(a.style.lineHeight="")):(a.appendChild(document.createTextNode(" "),{wistiaGridCaller:!0}),a.style.height="0px",a.style.fontSize="0px",a.style.lineHeight="0px",n.push(a.isEmpty=!0))}return n}()},e.grid.wrapperHeight=function(e){var t=e.grid.wrapper;return(0,i.elemHeight)(t)},e.grid.wrapperWidth=function(e){var t=e.grid.wrapper;return(0,i.elemWidth)(t)}}}(window.Wistia)},(e,t,n)=>{var i=[].slice;!function(e){var t,r,o,a,s,u,l,c,d;if(l=n(24),a=l.elemRebind,s=l.elemUnbind,o=n(54).dynamicImport,r=n(55).countMetric,e.iframeInit||(e.iframeInit=function(e,t){return o("assets/external/insideIframe.js").then((function(n){return n.iframeInit(e,t)}))}),!e.IframeApiProxy){for(u 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 o("assets/external/iframeApi.js").then(function(t){return function(){return t._loaded=!0,e()}}(this))}),0)}))},e.prototype.proxyFn=function(){var e,t,n,o;return t=arguments[0],e=2<=arguments.length?i.call(arguments,1):[],r("player/iframeApiProxy-praxyfn",1,{methodName:t}),this._loaded?(n=this.iframe.wistiaApi)[t].apply(n,e):(this.loadIframeApi().then((o=this,function(){var n;if(o.iframe.wistiaApi!==o)return(n=o.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}(),c=e.PublicApi.prototype)d=c[u],t.prototype[u]||"function"!=typeof d||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)))}}(u);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 o("assets/external/iframeApi.js"),s}),a(window,"message",e.onIframePostMessage),e.bind("ev1initend",(function(){return e.maybeRequireIframeApi(),a(window,"message",e.onIframePostMessage)})),e.bind("ev1destroystart",(function(){return s(window,"message",e.onIframePostMessage)}))}(Wistia)},(e,t,n)=>{var i=n(11),r=n(36),o=n(109),a=n(39),s=n(76);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,l(i.key),i)}}function l(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}!function(e){if(!e.VisitorKey){var t="__distillery";(0,i.globalBind)("visitortrackingchange",(function(t,n){for(var i=0,o=Array.from((0,a.getAllApiHandles)());i<o.length;i++){var s,u=o[i];null===(s=u._postDownVisitorTrackingEnabled)||void 0===s||s.call(u)}if(e.visitorKey){var l,c;if(!(0,r.isVisitorTrackingEnabled)())return e.visitorKey.unpersist(),null===(l=(c=e._destructors).destroyMux)||void 0===l?void 0:l.call(c);if(e.visitorKey.value())return e.visitorKey.persist(e.visitorKey.value())}})),e.VisitorKey=function(){return n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ready=this.ready.bind(this),this.unbinds=[],setTimeout((function(){return t.unbinds.push((0,s.onFindApiHandle)({matcher:s.ALL_API_HANDLES_KEY,functionToRun:function(e){return e.hasData((function(){var n;return e.iframe||!0!==(null===(n=e._mediaData)||void 0===n?void 0:n.privacyMode)||t.unpersist(),t.ready()}))}}))}),0)},a=[{key:"isValid",value:function(e){return(null==e?void 0:e.length)>25&&/^[a-z0-9_\-.]+$/i.test(e)}},{key:"generate",value:function(){return(0,o.uniqId)("".concat(Date.now().toString().substring(0,7),"_"))}}],(i=[{key:"ready",value:function(){var t=this;return this._readyPromise||(this._readyPromise=new Promise((function(n){t.savedValue()||t.persist(e.VisitorKey.generate()),n()}))),this._readyPromise}},{key:"reinitialize",value:function(){return this.destroy(),this.unbinds=[],this._readyPromise=null,this.ready()}},{key:"persist",value:function(n){var i;if(e.VisitorKey.isValid(n)){if(null===(i=this.info)||void 0===i||i.call(this,"@persist",n),this._value=n,(0,r.isVisitorTrackingEnabled)())return!0!==window.wistiaDisableCookies&&this.localStorageValue()!==this._value?e.localStorage(t,this._value):void 0}else this.error(new Error("Attempted to persist invalid visitor key '".concat(n,"'")))}},{key:"unpersist",value:function(){return this.clearFromCurrentDomain()}},{key:"clear",value:function(){var e;return null===(e=this.info)||void 0===e||e.call(this,"clear"),this.unpersist(),this._value=null}},{key:"clearFromCurrentDomain",value:function(){return e.removeLocalStorage(t,null)}},{key:"value",value:function(){var t=this._value||this.savedValue();return t||(t=e.VisitorKey.generate(),this.persist(t)),t}},{key:"savedValue",value:function(){if((0,r.isVisitorTrackingEnabled)())return this.localStorageValue()}},{key:"localStorageValue",value:function(){return e.localStorage(t)}},{key:"isValid",value:function(){return e.VisitorKey.isValid(this.value())}},{key:"destroy",value:function(){for(var e=0,t=Array.from(this.unbinds);e<t.length;e++)(0,t[e])();return this.unbinds=[]}}])&&u(n.prototype,i),a&&u(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(),e.logHelpers&&e.mixin(e.VisitorKey.prototype,e.logHelpers),e._initializers.initVisitorKey=function(){return e.visitorKey=new e.VisitorKey},e._destructors.destroyVisitorKey=function(){var t;return null===(t=e.visitorKey)||void 0===t||t.destroy(),e.visitorKey=null}}}(window.Wistia)},(e,t,n)=>{var i=n(76);!function(e){e._initializers.initSpecificTime=function(){try{var t;if(parent!==self)return;var n=location.href.match(/[?&]wtime=([\dhms]*)/),r=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 o=!1;return(0,i.onFindApiHandle)({matcher:i.ALL_API_HANDLES_KEY,shouldOnlyRunWhenVisible:!0,functionToRun:function(e){if(!r||e.hashedId()===r)return o?void 0:(o=!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}}}(window.Wistia)},(e,t,n)=>{var i=n(139);!function(e){if(!e.Interpolation)e.Interpolation=i.Interpolation}(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){if("string"==typeof e)return r(e,t);var n={}.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)?r(e,t):void 0}}(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=Array(t);n<t;n++)i[n]=e[n];return i}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,a(i.key),i)}}function a(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{Interpolation:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=arguments.length<=0?void 0:arguments[0],n=t.seedRange,i=t.seedFunction,r=t.seedStart,o=t.outputStart,a=null!=o?o:0,s=t.outputEnd,u=null!=s?s:1,l=t.easing,c=null!=l?l: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 c)throw new Error("Invalid easing function given: ".concat(this.easing));this._seedRange=n,this._seedFunction=i||function(){return(new Date).getTime()},this._outputStart=a,this._outputEnd=u,this._easing=c,this._seedStart=(null==r?void 0:r())||this.seed()},n=[{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}}],(t=[{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}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},(e,t,n)=>{var i=n(24),r=n(54),o=n(76);(0,o.onFindApiHandleRunOnce)({matcher:o.ALL_API_HANDLES_KEY,functionToRun:function(e){e.hasData((function(){(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)("assets/external/allIntegrations.js").then((function(e){e.runIntegrationsSetup()}))}),1e3)}))}))}})},(e,t,n)=>{var i;i=n(92).getDefaultTranslation,Wistia,Wistia.initializeOnce=function(){var e;return Wistia._initializers.initDetect(),Wistia._initializers.initWLog(),Wistia._initializers.initVisitorKey(),(null!=(e=Wistia._initializers)?e.initEventLoop:void 0)&&Wistia._initializers.initEventLoop(),Wistia._initializers.initFullscreenTriggers(),Wistia.trigger("ev1initonce"),performance.mark("player_init_start")},Wistia.initializeEveryTime=function(){var e,t,n,r;return Wistia.trigger("ev1initstart"),(null!=(e=Wistia._initializers)?e.initEmbedShepherd:void 0)&&Wistia._initializers.initEmbedShepherd(),(null!=(t=Wistia._initializers)?t.initMux:void 0)&&Wistia._initializers.initMux(),(null!=(n=Wistia._initializers)?n.initAsyncEmbeds:void 0)&&Wistia._initializers.initAsyncEmbeds(),Wistia._initializers.initSpecificTime(),i(),null!=(r=Wistia.eventLoop)&&r.resync(),Wistia.trigger("ev1initend")},Wistia.destroy=function(){return Wistia.trigger("ev1destroystart"),Wistia._destructors.destroyAsyncEmbeds(),Wistia._destructors.destroyEmbedShepherd(),Wistia._destructors.destroyEmbedLinks(),Wistia._destructors.destroyFullscreenTriggers(),Wistia._destructors.destroyEventLoop(),Wistia._destructors.destroyVisitorKey(),Wistia._destructors.destroyWLog(),Wistia._destructors.destroyMux(),Wistia.trigger("ev1destroyend")},Wistia.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},Wistia.reinitialize=function(){return Wistia.destroy(),Wistia.initializeOnce(),Wistia.initializeEveryTime()},Wistia._initialized||(Wistia._initialized=!0,Wistia.initializeOnce()),Wistia.initializeEveryTime()},(e,t,n)=>{n(143)},(e,t,n)=>{n(2);var i=n(125),r=n(25),o=n(144),a=n(17),s=n(116),u=n(24),l=n(18),c=n(23),d=n(20),h=n(54),p=n(156),f=n(1),v=(n(157),n(168),n(170),n(171),n(177),n(181),n(183),n(185),n(186),n(188),n(190),n(191),n(196),n(198),n(201),n(203),n(204),n(206),n(210),n(212),n(215)),y=n(217),m=n(218),g=n(219),b=n(220),_=n(221),w=n(222),E=n(223),P=n(224),O=n(239),S=n(240),T=n(167),k=n(241),C=n(32),A=n(15),j=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 I(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return M(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(M(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,M(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,M(d,"constructor",l),M(l,"constructor",u),u.displayName="GeneratorFunction",M(l,r,"GeneratorFunction"),M(d),M(d,r,"Generator"),M(d,i,(function(){return this})),M(d,"toString",(function(){return"[object Generator]"})),(I=function(){return{w:o,m:h}})()}function M(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}M=function(e,t,n,i){function o(t,n){M(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},M(e,t,n,i)}function L(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)}function D(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){L(o,i,r,a,s,"next",e)}function s(e){L(o,i,r,a,s,"throw",e)}a(void 0)}))}}function B(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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.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)?x(e,t):void 0}}(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 x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}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,F(i.key),i)}}function F(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function W(e,t,n){return t=U(t),function(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)}(e,N()?Reflect.construct(t,n||[],U(e).constructor):t.apply(e,n))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}function H(e,t,n,i){var r=V(U(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function V(){return V="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=U(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},V.apply(null,arguments)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}function z(e,t){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},z(e,t)}var G=(0,d.cachedDetect)();if(!f.Wistia.VulcanV2Player){var q=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=W(this,t,[e])).playerType="vulcan-v2",n._enabledControlOverrides={},n._visibilityRequests={},n._inputContextsToEnter=[],n._playerContext=[],n._overlays={},n._initialized=n.setupBehaviors(),n._isKeyboardFocused=void 0,n._overlayCodePromise=null,n.setupTracking(),e._playlist&&e._playlist.length>1&&n.loadLastFrameCanvasControl(),n.on("playlistchange",(function(e){e.length>1&&n.loadLastFrameCanvasControl()}));var i=n.on("beforereplace",(function(){i(),n.loadLastFrameCanvasControl()}));return(0,r.onDocReady)((function(){(0,h.dynamicImport)("assets/external/playPauseLoadingControl.js").then((function(e){(0,p.defineControl)(e.PlayPauseLoadingCircleControl)})),G.touchScreen&&!n.publicApi.isLiveMedia()&&(0,h.dynamicImport)("assets/external/skipControls.js").then((function(e){(0,p.defineControl)(e.SkipAheadControl),(0,p.defineControl)(e.SkipBackControl)}))})),n._opts.techInfo&&(0,h.dynamicImport)("assets/external/vulcanV2Player/video/controls/TechInfoControl/TechInfoControl.js").then((function(e){(0,p.defineControl)(e.TechInfoControl)})),n._opts.spherical&&(0,h.dynamicImport)("assets/external/vulcanV2Player/video/controls/SphericalControl/SphericalControl.js").then((function(e){(0,p.defineControl)(e.SphericalControl)})),n.publicApi.isLiveMedia()&&(0,h.dynamicImport)("assets/external/captions-v3.js").then((function(e){(0,p.defineControl)(e.CaptionsV3Control)})),n}return 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&&z(e,t)}(t,e),n=t,d=[{key:"loadLastFrameCanvasControl",value:function(){this.ready((function(){(0,h.dynamicImport)("assets/external/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([v.default,y.default,m.default,g.default,O.PlaySuspendedOffScreenBehavior,b.default,_.ProblemMonitoringBehavior,w.default]),e.publicApi.isLiveMedia()||e.addBehavior(E.default),"Audio"===e._mediaData.type?Promise.all([(0,h.dynamicImport)("assets/external/vulcanV2Player/audio/AudioUIBehavior.js"),(0,h.dynamicImport)("assets/external/interFontFace.js")]).then((function(n){var i=B(n,1)[0];e.addBehavior(i.AudioUIBehavior),t()})):(e.addBehavior(P.default),t())}))}},{key:"removeBehaviors",value:function(){for(var e in this.behaviors)j(this.behaviors,e)&&this.removeBehavior(e)}},{key:"setupTracking",value:function(){this.publicApi.isLiveMedia()?(this._tracker=new o.LiveMediaTracker(this.publicApi),this._tracker.monitor()):(this._tracker=new f.Wistia.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 n=this;return this._initialized.then((function(){return e instanceof t?n.behaviors.embed.embed(e):n.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 a.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._attrs.audioDescriptionControl=e,this.setControlEnabled("audioDescriptionButton",e)}},{key:"bigPlayButtonEnabled",value:function(e){H(t,"bigPlayButtonEnabled",this,3)([e]),this.setControlEnabled("bigPlayButton",e)}},{key:"bigPlayButtonTimeEnabled",value:function(e){this.isControlEnabled("bigPlayButton")&&this.ui.controls.bigPlayButton.setTimeEnabled(e)}},{key:"playPauseControlEnabled",value:function(e){H(t,"playPauseControlEnabled",this,3)([e]),this.setControlEnabled("smallPlayButton",e)}},{key:"playbarControlEnabled",value:function(e){H(t,"playbarControlEnabled",this,3)([e]),this.setControlEnabled("playbar",e)}},{key:"settingsControlEnabled",value:function(e){H(t,"settingsControlEnabled",this,3)([e]),this.setControlEnabled("settingsButton",e)}},{key:"playbackRateControlEnabled",value:function(e){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setPlaybackRateEnabled(e)}},{key:"playPauseNotifierEnabled",value:function(e){H(t,"playPauseNotifierEnabled",this,3)([e]),this.setControlEnabled("playPauseNotifier",e)}},{key:"qualityControlEnabled",value:function(e){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setQualityEnabled(e)}},{key:"volumeControlEnabled",value:function(e){H(t,"volumeControlEnabled",this,3)([e]),this.setControlEnabled("volumeButton",e)}},{key:"fullscreenControlEnabled",value:function(e){H(t,"fullscreenControlEnabled",this,3)([e]),this.setControlEnabled("fullscreenControl",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,i=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this._visibilityRequests[e]=r,null!=t&&(0,c.doTimeout)("".concat(this.uuid,".").concat(e,".release_controls"),(function(){i.releaseControls(e)}),t),null===(n=this.ui)||void 0===n?void 0:n.maybeToggleControls()}},{key:"releaseControls",value:function(e){var t;return this._visibilityRequests[e]=null,null===(t=this.ui)||void 0===t?void 0:t.maybeToggleControls()}},{key:"fit",value:function(){H(t,"fit",this,3)([]),this.embedded((function(){}))}},{key:"getBuffered",value:function(){if(!this.engine)return[];if(this.engine.activeBufferRange()){var e=B(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:"getVideoQuality",value:function(){return this.engine?this.engine.getCurrentQuality():"auto"}},{key:"setVideoQuality",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";return new Promise((function(n){e.info("videoQuality",t),e.initEngineAfterEmbedded(),e.ready((function(){n(e.engine.changeQuality(t,"playing"===e.state()))}))}))}},{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:(x=D(I().m((function e(){var t;return I().w((function(e){for(;;)switch(e.n){case 0:if(t=this.bestEngine(),!this.engine){e.n=1;break}return e.a(2,this.engine.getAudioTracks());case 1:if(t!==a.HLS_ENGINE_PATH&&t!==a.NATIVE_HLS_ENGINE_PATH){e.n=2;break}return e.a(2,Promise.resolve((0,T.audioTracksForVideo)((0,T.allHlsAudioAssets)(this._mediaData.assets))));case 2:return e.a(2,Promise.resolve([]))}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"getCurrentAudioTrack",value:(L=D(I().m((function e(){return I().w((function(e){for(;;)if(0===e.n)return e.a(2,this.engine?this.engine.getCurrentAudioTrack():{autoselect:!0,bitrate:0,default:!0,forced:!1,groupId:"audio",id:0,lang:void 0,name:"Off",label:"Off",isSelected:!0,enabled:!0,type:"AUDIO",url:""})}),e,this)}))),function(){return L.apply(this,arguments)})},{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,l.merge)({playButton:!1},e),H(t,"stillUrl",this,3)([e])}},{key:"play",value:function(){var e=this;this.suppressPlay()||this.trigger("playcalled"),this.initEngineAfterEmbedded();var t=(0,u.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(),console.log("The call to play() failed likely because the livestream media was not yet ready. Try calling play() in an onReady event instead."),Promise.reject()):this.suppressPlay()?Promise.resolve():(this._isPlayPending=!0,this._lastPlayType=void 0,this._lastPlaySource=(0,u.currentEventSource)(),this._lastPlayIssuedAt=Date.now(),this._lastPlayResolvedAt=null,this._lastPlayRejectedAt=null,this.trigger("playpending",this.lastPlayInfo()),new Promise((function(i,r){e.ready((function(){e._calledPlay=!0;var o={};t&&!1===e._attrs.silentAutoplay&&(o.silentAutoplay="allow",e.trigger("clicked-play-before-ready")),f.Wistia.detect.ios.version&&f.Wistia.detect.ios.version<10.1&&!(0,u.inUserEventContext)()&&!e.engine.isInitializingFromUnmuted()&&(e.notice("Play rejected because not in user context."),n(),r()),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),e.embedElement.dispatchEvent(new CustomEvent("silent-playback-mode-change",{detail:{isInSilentPlaybackMode:!0}}))),i()})).catch((function(t){e.notice(t),n(),r()}))}))})))}},{key:"pause",value:function(){var e=this;return this.info("pause"),this.trigger("receivepause"),this.initEngineAfterEmbedded(),this._isPausePending=!1,this._lastPauseSource=(0,u.currentEventSource)(),this._lastPauseIssuedAt=Date.now(),new Promise((function(t){e.ready()&&(e.engine.pause(),e._isPausePending=!1,t())}))}},{key:"time",value:function(e,t){var n=this;return null!=e?(this.info("time",e),"beforeplay"===this.state()&&(this._startPosition=e),this.initEngineAfterEmbedded(),new Promise((function(i){"beforeplay"===n.state()&&(n._lastPlaySource=(0,u.currentEventSource)(),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,n.embedElement.dispatchEvent(new CustomEvent("seeked")),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()),n.embedElement.dispatchEvent(new CustomEvent("seeked")),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),n.embedElement.dispatchEvent(new CustomEvent("silent-playback-mode-change",{detail:{isInSilentPlaybackMode:!0}}))),n.embedElement.dispatchEvent(new CustomEvent("seeked")),i()})):(n.info("time ".concat(e,": set immediately")),n.engine.setCurrentTime(e),n.behaviors.relayEvents.fireTimeChangedEventsIfChanged(),n.embedElement.dispatchEvent(new CustomEvent("seeked")),i())}))}))):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.duration,t={attributes:{cuts:this._opts.cuts,duration:e,trimEnd:this._opts.trimEnd,trimStart:this._opts.trimStart}};return(0,S.getDurationAfterCuts)(t)}},{key:"volume",value:function(e){return null!=e&&(this.info("volume",e),e=Math.max(0,Math.min(1,e)),this.initEngineAfterEmbedded(),H(t,"volumeAttr",this,3)([e]),this.ready()&&this.engine.setVolume(e)),this.engine?(H(t,"volumeAttr",this,3)([this.engine.getVolume()]),this.engine.getVolume()):null!=this._attrs.volume?this._attrs.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()&&(f.Wistia.detect.callingPlayRequiresEventContext?"playing"!==this.state()||(0,u.inUserEventContext)()?(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1),this.embedElement.dispatchEvent(new CustomEvent("silent-playback-mode-change",{detail:{isInSilentPlaybackMode:!1}})))):this.notice("could not unmute"):(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1),this.embedElement.dispatchEvent(new CustomEvent("silent-playback-mode-change",{detail:{isInSilentPlaybackMode:!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[E.default.handle]||null!=this._impl._startPosition||this.publicApi.isLiveMedia())&&(!0===this._attrs.resumable||!1!==this._attrs.resumable&&this.meetsAutoCriteraForResumable())}},{key:"meetsAutoCriteraForResumable",value:function(){var e=this.isControlEnabled("playbar")||this._attrs.playBarControl;return!(0,i.shorterThanResumableThreshold)(this.duration())&&!this._attrs.autoplay&&!("loop"===this._attrs.endVideoBehavior)&&(e||this.isAudio())}},{key:"setResumable",value:function(e){H(t,"setResumable",this,3)([e]),!1===e?this.behaviors.resumable.destroyResumableKey():this.shouldResume()&&this.behaviors.resumable.initResumableKey(),this.behaviors.embed.updateStartPosition()}},{key:"shouldResume",value:function(){return this.isResumableEnabled()&&(0,i.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:"playerBackgroundColor",value:function(e){if(null!=e){this.info("playerBackgroundColor",e);var t=this._attrs.playerBackgroundColor;return this._attrs.playerBackgroundColor=new s.Color(e).toHex(),t!==this._attrs.playerBackgroundColor&&this.trigger("playerbackgroundcolorchange",this._attrs.playerBackgroundColor,t),this}return this._attrs.playerBackgroundColor}},{key:"preloadValue",value:function(){return this.behaviors.embed.preloadValue()}},{key:"width",value:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e?i.fullscreen||!this.inFullscreen()?H(t,"width",this,3)([e,i]):(this.info("notFullscreen => width(".concat(e,")")),this.notFullscreen((function(){H(t,"width",n,3)([e,i])})),this):H(t,"width",this,3)([e,i])}},{key:"height",value:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e?i.fullscreen||!this.inFullscreen()?H(t,"height",this,3)([e,i]):(this.info("notFullscreen => height(".concat(e,")")),this.notFullscreen((function(){H(t,"height",n,3)([e,i])})),this):H(t,"height",this,3)([e,i])}},{key:"videoWidth",value:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e?i.fullscreen||!this.inFullscreen()?H(t,"videoWidth",this,3)([e,i]):(this.info("notFullscreen => videoWidth(".concat(e,")")),this.notFullscreen((function(){H(t,"videoWidth",n,3)([e,i])})),this):H(t,"videoWidth",this,3)([e,i])}},{key:"videoHeight",value:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e&&this.inFullscreen()?(this.info("notFullscreen => videoHeight(".concat(e,")")),this.notFullscreen((function(){H(t,"videoHeight",n,3)([e,i])})),this):H(t,"videoHeight",this,3)([e,i])}},{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),t.embedElement.dispatchEvent(new CustomEvent("rate-change",{detail:{playbackRate: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,l.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)}},i=K(this.publicApi._opts),r=this.publicApi._optionSources();Object.keys(r).forEach((function(e){r[e]=K(r[e])}));var o={player_version:""!==C.TAGGED_VERSION&&C.TAGGED_VERSION.length>0?C.TAGGED_VERSION:k.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:f.Wistia.wlog.first1000LogLines(),last_1000_logs:f.Wistia.wlog.last1000LogLines(),browser_time:new Date,option_sources:n((function(){return r})),embedOptions:i,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 a.report(t.publicApi.judyCtx(),t._mediaData,t._opts)})),detect:f.Wistia.detect,engineDiagnostics:n((function(){return t.engine.diagnosticData()}))}};for(var s in this.publicApi.plugin){var u=this.publicApi.plugin[s];"function"==typeof u.getReportAProblemData&&(o.extra_data[s]=u.getReportAProblemData())}return o}},{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._enabledControlOverrides[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:"shouldControlMount",value:function(e){var t=f.Wistia._controlDefinitions[e];return!(t&&t.isVideoChrome&&this._opts.chromeless)&&(t&&t.shouldMount?t.shouldMount(this.publicApi):null!=t)}},{key:"isControlDisabled",value:function(e){return!1===this._enabledControlOverrides[e]||!0!==this._enabledControlOverrides[e]&&!this.shouldControlMount(e)}},{key:"isControlEnabled",value:function(e){return!this.isControlDisabled(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),e.embedElement.dispatchEvent(new CustomEvent(A.INPUT_CONTEXT_CHANGE_EVENT,{detail:{context:t}}))),t}))}},{key:"enterInputContext",value:function(e){var t=this;(0,c.clearTimeouts)("".concat(this.uuid,".enter_input_contexts")),this._inputContextsToEnter.push(e),(0,c.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),this.embedElement.dispatchEvent(new CustomEvent(A.INPUT_CONTEXT_CHANGE_EVENT,{detail:{context: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 this._overlayCodePromise&&void 0!==this.behaviors.overlays||(this._overlayCodePromise=new Promise((function(t){e.behaviors.overlays?t():(0,h.dynamicImport)("assets/external/vulcanV2Player/behaviors/OverlaysBehavior.js").then((function(n){e.behaviors.overlays||e.addBehavior(n.OverlaysBehavior),t()}))}))),this._overlayCodePromise}},{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,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldSuspendPlayer:!0};return this.loadOverlayCode().then((function(){return t.behaviors.overlays.requestOverlay(e,n)}))}},{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:"_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()}))}},{key:"turnOffCaptions",value:function(){var e,t;null===(e=this.controls.captions)||void 0===e||e.turnOff(),null===(t=this.controls.captionsButton)||void 0===t||t.matchMenuToSelectedTextTrack()}}],d&&R(n.prototype,d),M&&R(n,M),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,d,M,L,x}(f.Wistia.Video);f.Wistia.VulcanV2Player=q,f.Wistia.plugin("vulcanV2Player",(function(e,t){f.Wistia.info("vulcanV2Player no-op plugin executed")}));var K=function(e){var t=(0,l.clone)(e);return t.container&&(t.container="removed to avoid circular"),t}}f.Wistia.VulcanV2Player},(e,t,n)=>{n.d(t,{LiveMediaTracker:()=>i.LiveMediaTracker});var i=n(145)},(e,t,n)=>{n.d(t,{LiveMediaTracker:()=>N});var i=n(109),r=n(24),o=n(36),a=n(146),s=n(149),u=n(153),l=n(154),c=n(155);function d(e){return function(e){if(Array.isArray(e))return h(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){if("string"==typeof e)return h(e,t);var n={}.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)?h(e,t):void 0}}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function p(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,m(i.key),i)}}function m(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function g(e,t,n){b(e,t),t.set(e,n)}function b(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _(e,t){return e.get(E(e,t))}function w(e,t,n){return e.set(E(e,t),n),n}function E(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var P=new WeakMap,O=new WeakMap,S=new WeakMap,T=new WeakMap,k=new WeakMap,C=new WeakMap,A=new WeakMap,j=new WeakMap,I=new WeakMap,M=new WeakMap,L=new WeakMap,D=new WeakMap,B=new WeakMap,x=new WeakMap,R=new WeakMap,F=new WeakSet,W=new WeakMap,N=function(){return e=function e(t){var n,r,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),b(n=this,r=F),r.add(n),g(this,P,void 0),g(this,O,void 0),g(this,S,void 0),g(this,T,[]),g(this,k,{}),g(this,C,void 0),g(this,A,(function(){var e,t=_(O,o)._mediaData;w(T,o,[]),w(S,o,new c.Client(t.analyticsHost));var n=(0,u.getOrSetIsFirst)(o.numericId,s.PlaySession.Scope.LIVE_EVENT,"load");w(C,o,s.PlaySession.load(_(P,o),{visitor_key:_(O,o).visitorKey(),session_key:(0,i.uniqId)("".concat(Date.now().toString().substring(0,7),"_")),embed_url:_(O,o)._attrs.pageUrl,referrer_url:_(O,o)._attrs.referrerUrl,account_id:t.accountId,live_stream_event_channel_id:o.channelId(),live_stream_event_id:t.liveStreamEventDetails.id,media_id:null!==(e=t.sourceMediaId)&&void 0!==e?e:t.mediaId,media_type:"Video",player_type:"modern"},{first:n,scope:s.PlaySession.Scope.LIVE_EVENT,captions:o.captionsEnabled,live:o.isLive,email:o.email})),E(F,o,H).call(o,o.lastEvent,{force:!0}),document.addEventListener("visibilitychange",_(B,o)),"playing"===_(O,o).state()&&_(j,o).call(o),_(O,o).bind("play",_(j,o)),_(O,o).bind("pause",_(I,o)),_(O,o).bind("seek",_(L,o)),_(O,o).bind("end",_(D,o)),_(O,o).bind("annotation-impression",_(x,o)),_(O,o).bind("annotation-click",_(R,o)),_(k,o).flush=setInterval(_(W,o),5e3)})),g(this,j,(function(){var e=(0,u.getOrSetIsFirst)(o.numericId,s.PlaySession.Scope.LIVE_EVENT,s.PlaySession.Event.PLAY),t=o.captionsEnabled;w(C,o,_(C,o).play(Date.now(),_(O,o).time(),{first:e,captions:t,live:o.isLive,email:o.email}));var n=_(C,o).lastEvent.event===s.PlaySession.Event.PLAY;E(F,o,H).call(o,o.lastEvent,{force:n}),_(k,o).update=setInterval(_(M,o),5e3)})),g(this,I,(function(){E(F,o,V).call(o,"update"),w(C,o,_(C,o).pause(Date.now(),_(O,o).time(),{captions:o.captionsEnabled,live:o.isLive,email:o.email})),E(F,o,H).call(o,o.lastEvent)})),g(this,M,(function(){o.isPlaying&&(w(C,o,_(C,o).update(Date.now(),_(O,o).time(),{captions:o.captionsEnabled,live:o.isLive,email:o.email})),E(F,o,H).call(o,o.lastEvent))})),g(this,L,(function(e,t){w(C,o,_(C,o).seek(Date.now(),t,e,{captions:o.captionsEnabled,live:o.isLive,email:o.email})),E(F,o,H).call(o,o.lastEvent)})),g(this,D,(function(){w(C,o,_(C,o).end(Date.now(),_(O,o).time(),{captions:o.captionsEnabled,live:o.isLive,email:o.email})),E(F,o,H).call(o,o.lastEvent,{force:!0})})),g(this,B,(function(){o.isPlaying&&(w(C,o,_(C,o).focusChange(Date.now(),_(O,o).time(),{focus:!document.hidden,captions:o.captionsEnabled,live:o.isLive,email:o.email})),E(F,o,H).call(o,o.lastEvent))})),g(this,x,(function(e){var t=e.annotationId,n=(0,u.getOrSetIsFirst)(o.numericId,s.PlaySession.Scope.LIVE_ANNOTATION,"impression_".concat(t));w(C,o,_(C,o).annotationImpression(Date.now(),_(O,o).time(),t,{first:n,captions:o.captionsEnabled,live:o.isLive,email:o.email})),E(F,o,H).call(o,o.lastEvent)})),g(this,R,(function(e){var t=e.annotationId,n=(0,u.getOrSetIsFirst)(o.numericId,s.PlaySession.Scope.LIVE_ANNOTATION,"click_".concat(t));w(C,o,_(C,o).annotationClick(Date.now(),_(O,o).time(),t,{first:n,captions:o.captionsEnabled,live:o.isLive,email:o.email})),E(F,o,H).call(o,o.lastEvent)})),g(this,W,(function(){if(0!==_(T,o).length){var e=_(T,o),t=f(f({},_(C,o).meta),{},{events:e,anonymize_ip:o.shouldAnonymizeIp});w(T,o,[]),_(O,o).debug("Submitting events",t),_(S,o).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){_(O,o).error(t),w(T,o,[].concat(d(e),d(_(T,o))).sort((function(e,t){return e.time-t.time})))}))}})),w(P,this,Date.now()),w(O,this,t)},(t=[{key:"meta",get:function(){var e;return null===(e=_(C,this))||void 0===e?void 0:e.meta}},{key:"lastEvent",get:function(){var e;return null===(e=_(C,this))||void 0===e?void 0:e.lastEvent}},{key:"isPlaying",get:function(){var e;return null===(e=_(C,this))||void 0===e?void 0:e.isPlaying}},{key:"captionsEnabled",get:function(){return!!_(O,this).getSelectedCaptions()}},{key:"isLive",get:function(){var e,t;return!(null===(e=_(O,this)._mediaData)||void 0===e||null===(t=e.liveStreamEventDetails)||void 0===t||!t.startedAt)}},{key:"numericId",get:function(){var e,t;return null===(e=_(O,this)._mediaData)||void 0===e||null===(t=e.liveStreamEventDetails)||void 0===t?void 0:t.id}},{key:"hashedId",get:function(){return _(O,this).hashedId()}},{key:"shouldAnonymizeIp",get:function(){return Boolean(_(O,this)._opts.anonymizeIp||!(0,o.isVisitorTrackingEnabled)())}},{key:"email",get:function(){return E(F,this,U).call(this),_(O,this).email()}},{key:"monitor",value:function(){var e=this;_(O,this).doNotTrack()||(this.stopMonitoring(),_(O,this).hasData((function(){return(0,r.pageLoaded)(_(A,e))})))}},{key:"stopMonitoring",value:function(){_(W,this).call(this),E(F,this,V).call(this,"flush"),E(F,this,V).call(this,"update"),document.removeEventListener("visibilitychange",_(B,this)),_(O,this).unbind("play",_(j,this)),_(O,this).unbind("pause",_(I,this)),_(O,this).unbind("seek",_(L,this)),_(O,this).unbind("end",_(D,this)),_(O,this).unbind("annotation-impression",_(x,this)),_(O,this).unbind("annotation-click",_(R,this))}},{key:"timeDelta",value:function(){return(new Date).getTime()-_(P,this)}},{key:"eventKey",value:function(){var e;return null===(e=this.meta)||void 0===e?void 0:e.session_key}},{key:"visitorKey",value:function(){return _(O,this).visitorKey()}},{key:"channelId",value:function(){var e,t=_(O,this)._mediaData,n=null==t||null===(e=t.liveStreamEventDetails)||void 0===e?void 0:e.id;return n?(0,a.getChannelId)(n):null}}])&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function H(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).force,n=void 0!==t&&t;_(O,this).debug(e),w(T,this,[].concat(d(_(T,this)),[e])),n&&_(W,this).call(this)}function V(e){_(k,this)[e]&&(clearInterval(_(k,this)[e]),delete _(k,this)[e])}function U(){var e,t=_(O,this)._mediaData,n=null==t||null===(e=t.liveStreamEventDetails)||void 0===e?void 0:e.hashedId;if(!_(O,this).email()&&n){var i,r=null===(i=(0,l.getLiveLocalStorageUser)(n))||void 0===i?void 0:i.email;_(O,this).email(r)}}},(e,t,n)=>{n.d(t,{getChannelId:()=>r});n(47);var i=n(147);var r=function(e){var t,n=new URLSearchParams(window.location.search).get("channelId");if(null!==n&&""!==n){var r=parseInt(n,10);if(!Number.isNaN(r))return r}var o=(0,i.getRegistrationByEventId)(e);return null!==(t=null==o?void 0:o.channelId)&&void 0!==t?t:null}},(e,t,n)=>{n.d(t,{getAnalyticEvents:()=>u,getRegistrationByEventId:()=>s,setAnalyticEvent:()=>l});var i=n(47),r=n(148),o=n(38);n(37);var a=function(){var e=(0,o.getLocalStorage)(r.REGISTRATION_LOCAL_STORAGE_KEY);return Array.isArray(e)?e:[]},s=function(e){return a().find((function(t){return t.eventId===e}))},u=function(){var e=window.localStorage.getItem(r.ANALYTICS_EVENT_LOCAL_STORAGE_KEY);return(0,i.isNil)(e)||(0,i.isEmptyString)(e)||(0,i.isEmptyRecord)(e)?null:JSON.parse(e)},l=function(e){var t,n=e.eventId,i=e.event,o=null!==(t=u())&&void 0!==t?t:{};o[n]=i,window.localStorage.setItem(r.ANALYTICS_EVENT_LOCAL_STORAGE_KEY,JSON.stringify(o))}},(e,t,n)=>{n.d(t,{ANALYTICS_EVENT_LOCAL_STORAGE_KEY:()=>o,FORM_SUBMISSIONS_KEY:()=>u,IDENTITIES_LOCAL_STORAGE_KEY:()=>s,REGISTRATION_LOCAL_STORAGE_KEY:()=>r,WISTIA_LOCAL_STORAGE_KEY:()=>a});var i="wistia:live:",r="".concat(i,"registeredEvents"),o="".concat(i,"analyticsEvents"),a=("".concat(i,"audienceMemberId"),"wistia"),s="".concat(a,":contact:identities"),u="".concat(a,":form:submissions")},(e,t,n)=>{n.d(t,{PlaySession:()=>i.PlaySession});n(150);var i=n(151)},(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,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function o(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 a(e,t){return e.get(u(e,t))}function s(e,t,n){return e.set(u(e,t),n),n}function u(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{InclusiveRange:()=>d});var l=new WeakMap,c=new WeakMap,d=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,l,void 0),o(this,c,void 0),s(c,this,t),s(l,this,n)},(t=[{key:"end",get:function(){return a(l,this)}},{key:"isAscending",get:function(){return this.start<=this.end}},{key:"isEmpty",get:function(){return this.start===this.end}},{key:"start",get:function(){return a(c,this)}},{key:"foreach",value:function(e){for(var t=this.start;t<=this.end;++t)e(t)}},{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:"reduce",value:function(e,t){var n=t;return this.foreach((function(t){n=e(n,t)})),n}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},(e,t,n)=>{n.d(t,{PlaySession:()=>g});var i,r=n(152),o=n(150);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){if("string"==typeof e)return s(e,t);var n={}.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)?s(e,t):void 0}}(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=Array(t);n<t;n++)i[n]=e[n];return i}function u(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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,h(i.key),i)}}function d(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(v(e,t))}function v(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var y=new WeakMap,m=new WeakSet,g=function(){function e(t){var n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(n=this,i=m),i.add(n),function(e,t,n){p(e,t),t.set(e,n)}(this,y,void 0),function(e,t,n){e.set(v(e,t),n)}(y,this,t)}return t=e,n=[{key:"meta",get:function(){return f(y,this).meta}},{key:"startedAt",get:function(){return f(y,this).startedAt}},{key:"isPlaying",get:function(){return void 0===f(y,this).inactiveAt}},{key:"scope",get:function(){return f(y,this).scope}},{key:"histogram",get:function(){return f(y,this).histogram}},{key:"history",get:function(){return f(y,this).history}},{key:"lastEvent",get:function(){return this.history[0]}},{key:"position",get:function(){return this.lastEvent.player_position}},{key:"hasPlayed",get:function(){return f(y,this).hasPlayed}},{key:"play",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.first,o=void 0!==r&&r,s=i.captions,u=void 0!==s&&s,c=i.live,d=void 0!==c&&c,h=i.email,p=i.focus,v=void 0===p||p,m=l({time:t,event:this.hasPlayed?e.Event.UNPAUSE:e.Event.PLAY,scope:this.scope,first:o,live:d,captions:u,email:h,focus:v,player_position:n},e.EMPTY_METRICS);return new e(l(l({},f(y,this)),{},{inactiveAt:void 0,history:[m].concat(a(this.history)),hasPlayed:!0}))}},{key:"pause",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,o=void 0!==r&&r,s=i.live,u=void 0!==s&&s,c=i.email,d=i.focus,h=void 0===d||d,p=v(m,this,b).call(this,n),g=v(m,this,_).call(this,p),w=l({time:t,event:e.Event.PAUSE,scope:this.scope,live:u,captions:o,email:c,focus:h,player_position:n},g);return new e(l(l({},f(y,this)),{},{inactiveAt:t,histogram:this.histogram.union(p),history:[w].concat(a(this.history))}))}},{key:"seek",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.captions,s=void 0!==o&&o,u=r.live,c=void 0!==u&&u,d=r.email,h=r.focus,p=void 0===h||h,g=e.EMPTY_METRICS,w=this.histogram,E=t;if(this.isPlaying){var P=v(m,this,b).call(this,n);g=v(m,this,_).call(this,P),w=w.union(P),E=void 0}var O=l({time:t,event:e.Event.SEEK,scope:this.scope,live:c,captions:s,email:d,focus:p,previous_player_position:n,player_position:i},g);return new e(l(l({},f(y,this)),{},{inactiveAt:E,histogram:w,history:[O].concat(a(this.history))}))}},{key:"update",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,o=void 0!==r&&r,s=i.live,u=void 0!==s&&s,c=i.email,d=i.focus,h=void 0===d?!document.hidden:d;if(this.isPlaying){var p=v(m,this,b).call(this,n),g=v(m,this,_).call(this,p),w=l({time:t,event:e.Event.UPDATE,scope:this.scope,live:u,captions:o,email:c,focus:h,player_position:n},g);return new e(l(l({},f(y,this)),{},{histogram:this.histogram.union(p),history:[w].concat(a(this.history))}))}return this}},{key:"focusChange",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.focus,o=void 0===r?!document.hidden:r,s=i.captions,u=void 0!==s&&s,c=i.live,d=void 0!==c&&c,h=i.email;if(!this.isPlaying)return this;var p=l({time:t,event:e.Event.FOCUS_CHANGE,scope:this.scope,captions:u,live:d,email:h,focus:o,player_position:n},e.EMPTY_METRICS);return new e(l(l({},f(y,this)),{},{history:[p].concat(a(this.history))}))}},{key:"end",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,o=void 0!==r&&r,s=i.live,u=void 0!==s&&s,c=i.email,d=i.focus,h=void 0===d?!document.hidden:d,p=v(m,this,b).call(this,n),g=v(m,this,_).call(this,p),w=l({time:t,event:e.Event.END,scope:this.scope,live:u,captions:o,email:c,focus:h,player_position:n},g);return new e(l(l({},f(y,this)),{},{inactiveAt:t,histogram:this.histogram.union(p),history:[w].concat(a(this.history))}))}},{key:"annotationImpression",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.first,s=void 0!==o&&o,u=r.captions,c=void 0!==u&&u,d=r.live,h=void 0!==d&&d,p=r.email,v=r.focus,m=void 0===v?!document.hidden:v,g=l({time:t,scope:e.Scope.LIVE_ANNOTATION,event:e.Event.IMPRESSION,first:s,live:h,captions:c,email:p,focus:m,player_position:n,annotation_id:i,role:e.Role.AUDIENCE_MEMBER},e.EMPTY_METRICS);return new e(l(l({},f(y,this)),{},{history:[g].concat(a(this.history))}))}},{key:"annotationClick",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.first,s=void 0!==o&&o,u=r.captions,c=void 0!==u&&u,d=r.live,h=void 0!==d&&d,p=r.email,v=r.focus,m=void 0===v?!document.hidden:v,g=l({time:t,scope:e.Scope.LIVE_ANNOTATION,event:e.Event.CLICK,first:s,live:h,captions:c,email:p,focus:m,player_position:n,annotation_id:i,role:e.Role.AUDIENCE_MEMBER},e.EMPTY_METRICS);return new e(l(l({},f(y,this)),{},{history:[g].concat(a(this.history))}))}}],i=[{key:"load",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.first,a=void 0!==o&&o,s=i.scope,u=i.captions,c=void 0!==u&&u,d=i.live,h=void 0!==d&&d,p=i.email,f=i.focus,v=void 0===f||f,y=l({time:t,event:e.Event.LOAD,scope:s,first:a,live:h,captions:c,email:p,focus:v},e.EMPTY_METRICS);return new e({startedAt:t,meta:n,scope:s,inactiveAt:t,histogram:new r.Histogram,history:[y]})}}],n&&c(t.prototype,n),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,i}();function b(e){var t=this.lastEvent.event===i.Event.UPDATE,n=this.position;t&&(n+=1);var r=new o.InclusiveRange(Math.floor(n),Math.floor(e));return r.isAscending?r:void 0}function _(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,o=t.at(-1).bucket;return l(l({},e),{},0===r?{unique_played_time:e.unique_played_time+t.length,unique_played_ranges:[].concat(a(e.unique_played_ranges),[{start:i,end:o}])}:{replayed_time:e.replayed_time+t.length,replayed_ranges:[].concat(a(e.replayed_ranges),[{start:i,end:o}])})}),{unique_played_time:0,unique_played_ranges:[],replayed_time:0,replayed_ranges:[]}):i.EMPTY_METRICS}i=g,d(g,"Scope",Object.freeze({LIVE_EVENT:"live_event",LIVE_ANNOTATION:"live_annotation"})),d(g,"Event",Object.freeze({LOAD:"load",PLAY:"play",SEEK:"seek",PAUSE:"pause",UNPAUSE:"unpause",UPDATE:"update",FOCUS_CHANGE:"focus_change",END:"end",IMPRESSION:"impression",CLICK:"click"})),d(g,"EMPTY_METRICS",{unique_played_time:0,unique_played_ranges:[],replayed_time:0,replayed_ranges:[]}),d(g,"Role",Object.freeze({AUDIENCE_MEMBER:"audienceMember"}))},(e,t,n)=>{n.d(t,{Histogram:()=>f});var i=n(150);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={}.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=Array(t);n<t;n++)i[n]=e[n];return i}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,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}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){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=function(){function e(){var t,n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,p,void 0),n=this,i=r,(t=p).set(h(t,n),i)}return t=e,(n=[{key:"buckets",get:function(){return t=this,(e=p).get(h(e,t));var e,t}},{key:"chunkInRangeBy",value:function(e,t){var n=this,i=Symbol("empty");return e.reduce((function(e,i){var a=e.chunks,s=e.flip,l={bucket:i,value:n.valueAt(i)},c=t(l);if(s!==c)return{chunks:[[l]].concat(o(a)),flip:c};var d=r(a),h=d[0],p=u(d).slice(1);return{chunks:[[].concat(o(h),[l])].concat(o(p)),flip:s}}),{chunks:[],flip:i}).chunks.reverse()}},{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:"valueAt",value:function(e){return this.buckets[e]||0}}])&&l(t.prototype,n),a&&l(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}()},(e,t,n)=>{n.d(t,{getOrSetIsFirst:()=>s});var i=n(147);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=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(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,s,u=null!==(s=(null!==(r=(0,i.getAnalyticEvents)())&&void 0!==r?r:{})[e])&&void 0!==s?s:{},l="".concat(t,"_").concat(n);return!(l in u)&&((0,i.setAnalyticEvent)({eventId:e,event:o(o({},u),{},a({},l,!0))}),!0)}},(e,t,n)=>{n.d(t,{getLiveLocalStorageUser:()=>r});var i=n(38),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"audience";return function(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}((0,i.getLocalStorage)("wistia:live:data"),["events",e,"user",t].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,o(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){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}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),a(n=this,i=l),i.add(n),function(e,t,n){a(e,t),t.set(e,n)}(this,u,void 0),function(e,t,n){(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"liveStream",(function(e){return s(l,r,d).call(r,"/live-stream/1.0.0",e)})),function(e,t,n){e.set(s(e,t),n)}(u,this,t)}));function d(e,t){var n,i,r=new URL(e,(i=this,(n=u).get(s(n,i))));return fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},mode:"cors",credentials:"omit",body:JSON.stringify(t),keepalive:!0})}},(e,t,n)=>{n.d(t,{defineControl:()=>o,getControlDefinitions:()=>a});var i=n(55),r=n(1);null==r.Wistia._controlDefinitions&&(r.Wistia._controlDefinitions={});var o=function(e){null!=e.handle?null==r.Wistia._controlDefinitions[e.handle]&&(r.Wistia._controlDefinitions[e.handle]=e,r.Wistia.trigger&&r.Wistia.trigger("controldefined",e)):console.error("Please specify a handle property for control",e)},a=function(){return r.Wistia._controlDefinitions||{}};r.Wistia.defineControl=function(e){(0,i.countMetric)("player/custom-control-definition",1,{name:e.handle,location:location.origin+location.pathname}),o(e)}},(e,t,n)=>{var i=n(2),r=n(54),o=n(156),a=n(158),s=n(1),u=n(164),l=n(92),c=n(162),d=n(166),h=n(167),p=n(17);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},f.apply(null,arguments)}function v(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,n){return t=g(t),function(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)}(e,m()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){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){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function _(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(0,l.defineTranslations)("en-US",{AUDIO_DESCRIPTION_HIDE_MENU:"Hide audio description menu",AUDIO_DESCRIPTION_SHOW_MENU:"Show audio description menu"});var w=function(e){function t(e){var n,i,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=y(this,t,[e]),i=n,o=function(e){var t=n.video.engine.getCurrentAudioTrackId();Number(t)!==Number(e)&&n.video.changeAudioTrack(e),(0,c.isMouseDownRecently)()&&setTimeout((function(){n.dialog.close(),n.buttonRoot.parentElement.focus()}),300)},(r=_(r="onClickTrack"))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,n.video=e,n.unbinds.push(e.on("playerlanguagechange",(function(){n.menuElem&&n.renderMenu()})),e.on("audiostreamchange",(function(){n.menuElem&&n.renderMenu()}))),n}return 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)}(t,e),n=t,(o=[{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){var t=this;this.dialogRoot=e;var n=(0,r.dynamicImport)("assets/external/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,i.render)((0,i.h)(d.RoundedAudioDescriptionButton,null),this.buttonRoot),this.reactMounts.button=[this.buttonRoot]}},{key:"renderMenu",value:function(){var e=this;this.dialog.isOpen()&&this.dialogRoot&&this.video.engine.getAudioTracks().then((function(t){var n=t.filter((function(e){return e.characteristics&&"public.accessibility.describes-video"===e.characteristics||"Original"===e.label})),r=n.some((function(e){return e.isSelected&&"public.accessibility.describes-video"===e.characteristics}));n.forEach((function(e){"Original"===e.label&&(e.isSelected=!r)})),(0,i.render)((0,i.h)(a.AudioDescriptionMenu,f({},e.props,{elemRef:function(t){return e.menuElem=t},onClick:e.onClickTrack,scale:e.props.scale,tracks:n})),e.dialogRoot),e.reactMounts.menu=[e.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,l.getTranslation)(this.props.playerLanguage.code,"AUDIO_DESCRIPTION_".concat(e))}}])&&v(n.prototype,o),s&&v(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(u.Control);w.shouldMount=function(e){var t=(0,h.allHlsAudioAssets)(e._mediaData.assets).filter((function(e){var t;return null==e||null===(t=e.details)||void 0===t?void 0:t.audioDescription})),n=(0,h.audioTracksForVideo)(t),i=e._impl.bestEngine();return!(i!==p.HLS_ENGINE_PATH&&i!==p.NATIVE_HLS_ENGINE_PATH||function(e){var t,n=null===(t=e.embedOptions().plugin)||void 0===t?void 0:t.extendedAudioDescription;return n&&!1!==n.on}(e)||!1===e._attrs.audioDescriptionIsRequired||!1===e._attrs.audioDescriptionControl||!(n.length>1))},w.handle="audioDescriptionButton",w.type="control-bar-right",w.sortValue=51,w.isVideoChrome=!0,(0,o.defineControl)(w),s.Wistia.AudioDescriptionControl=w},(e,t,n)=>{n.d(t,{AudioDescriptionMenu:()=>p});var i=n(2),r=n(159),o=n(161);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}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,u(i.key),i)}}function u(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function l(e,t,n){return t=d(t),function(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)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){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){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,arguments)}return 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)}(t,e),n=t,(u=[{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,{key:t.id,track:t,isLastItem:n===e.props.tracks.length-1,isFirstItem:0===n}))}))))}}])&&s(n.prototype,u),c&&s(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u,c}(i.Component)},(e,t,n)=>{n.d(t,{default:()=>h});var i=n(2),r=n(160);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(null,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,s(i.key),i)}}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function u(e,t,n){return t=c(t),function(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)}(e,l()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){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){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}const h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,t,arguments)}return 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)}(t,e),n=t,(s=[{key:"render",value:function(){var e=this.props.tagName||"div";return(0,i.h)(e,o({},this.props,{ref:this.props.elemRef,style:r.visuallyHiddenElementStyles}),this.props.children)}}])&&a(n.prototype,s),l&&a(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,s,l}(i.Component)},(e,t,n)=>{n.d(t,{visuallyHiddenElementStyles:()=>i});var i={clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(e,t,n)=>{n.d(t,{AudioTrackMenuItem:()=>g});var i=n(2),r=n(98),o=n(162),a=n(163),s=n(35),u=n(92),l=n(159);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c.apply(null,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,m(i.key),i)}}function h(e,t,n){return t=f(t),function(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)}(e,p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(0,u.defineTranslations)("en-US",{AUDIO_DESCRIPTION_OFF:"Off"});var g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y(n=h(this,t,[e]),"onBlur",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),y(n,"onClick",(function(){n.props.onClick(n.props.track.id)})),y(n,"onFocus",(function(){(0,o.isMouseDown)()||n.setState({isKeyboardFocused:!0})})),y(n,"onMouseEnter",(function(){n.setState({isHovering:!0})})),y(n,"onMouseLeave",(function(){n.setState({isHovering:!1})})),n.uuid=(0,s.seqId)(),n}return 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)}(t,e),n=t,(p=[{key:"checkStyle",value:function(){return{height:_(this),verticalAlign:"middle",visibility:this.props.track.isSelected?"visible":"hidden",width:b(this)}}},{key:"menuItemStyle",value:function(){var e=this.props.controlBarBorderRadius;return{background:this.state.isHovering?"rgba(0,0,0,.3)":"",borderBottomLeftRadius:this.props.isLastItem?"".concat(e,"px"):0,borderBottomRightRadius:this.props.isLastItem?"".concat(e,"px"):0,borderTopLeftRadius:this.props.isFirstItem?"".concat(e,"px"):0,borderTopRightRadius:this.props.isFirstItem?"".concat(e,"px"):0,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(n.prototype,p),f&&d(n,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p,f}(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,{isMouseDown:()=>c,isMouseDownRecently:()=>d});var i=n(24),r=n(20),o=n(1),a=(0,r.cachedDetect)();if(null==o.Wistia._isMouseDown){o.Wistia._isMouseDown=!1;var s=function(e){o.Wistia._isMouseDown=!0,o.Wistia._lastMouseDownAt=Date.now(),setTimeout((function(){e.defaultPrevented&&(o.Wistia._isMouseDown=!1)}),0)},u=function(){o.Wistia._lastMouseUpAt=Date.now(),setTimeout((function(){o.Wistia._isMouseDown=!1}),0)};a.touchScreen?((0,i.elemBind)(document,"touchstart",s,!0),(0,i.elemBind)(document,"touchend",(function(){o.Wistia._lastMouseUpAt=Date.now(),setTimeout((function(){o.Wistia._isMouseDown=!1}),0)}),!0)):((0,i.elemBind)(document,"mousedown",s,!0),(0,i.elemBind)(document,"mouseup",u,!0));var l=a.windows?u:s;(0,i.elemBind)(document,"contextmenu",l,!0)}var c=function(){return null!=o.Wistia._mouseDownForceReturnVal?o.Wistia._mouseDownForceReturnVal:o.Wistia._isMouseDown},d=function(){return null!=o.Wistia._mouseDownForceReturnVal?o.Wistia._mouseDownForceReturnVal:(e=500,Math.max(o.Wistia._lastMouseDownAt||0,(o.Wistia._lastMouseUpAt||0)-1)>Date.now()-e);var e}},(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=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(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(e){var t=e.width,n=void 0===t?40:t,i=e.height,o=void 0===i?34:i,a=e.styleOverride,s=void 0===a?{}:a,u=e.ariaHidden,l=void 0!==u&&u,c=e.fillColor,d=void 0===c?"#ffffff":c;return{x:"0px",y:"0px",viewBox:"0 0 ".concat(n," ").concat(o),"enable-background":"new 0 0 ".concat(n," ").concat(o),"aria-hidden":"".concat(l),style:r({fill:d,height:"100%",left:0,strokeWidth:0,top:0,width:"100%"},s)}}},(e,t,n)=>{n.d(t,{Control:()=>l});var i=n(165);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,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function a(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 s(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,l=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,u,void 0),this.video=t,this.embedElement=t.container,this.unbinds=[],this.eventListeners=new Map,this.reactMounts={},this.isWistiaPlayer="WISTIA-PLAYER"===this.embedElement.tagName,this.impl=t,this.isWistiaPlayer?this.api=this.embedElement:this.api=t.publicApi,this.props={}},(t=[{key:"disabledButton",get:function(){return t=this,(e=u).get(s(e,t));var e,t},set:function(e){var t,n,i;n=this,i=e,(t=u).set(s(t,n),i)}},{key:"destroy",value:function(){(0,i.destroyControl)(this)}},{key:"isAtRootLevel",value:function(){return!0}},{key:"mount",value:function(e){this.rootElem=e}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},(e,t,n)=>{n.d(t,{destroyControl:()=>s});n(19);var i=n(20),r=(n(23),n(24)),o=n(2),a=(n(35),n(156),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),function(e){e.eventListeners instanceof Map&&(e.eventListeners.forEach((function(t,n){try{"function"==typeof t&&e.embedElement.removeEventListener(n,t)}catch(e){setTimeout((function(){throw e}),1)}})),e.eventListeners.clear())}(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.d(t,{RoundedAudioDescriptionButton:()=>a});var i=n(2),r=n(163);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(null,arguments)}var a=function(e){var t=e.onMouseEnter,n=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:{fill:"none"}});return(0,i.h)("svg",o({},n,{onMouseEnter:t}),(0,i.h)("g",{stroke:"currentcolor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.7 14.6C21.9 14.6 22.7 16 22.7 17.4C22.7 18.7 22 20.2 19.7 20.2H18.2V14.6H19.7Z"}),(0,i.h)("path",{d:"M10 20.2L12.6 14.6L15 20.2"}),(0,i.h)("path",{d:"M10.5 19H14.5"}),(0,i.h)("path",{d:"M27.5 24.8C29.7 22.7 30.7 19.9 30.7 17.4C30.7 14.7 29.7 12.1 27.5 10"}),(0,i.h)("path",{d:"M24.6 12.9C26 14.1 26.6 15.7 26.6 17.4C26.6 19 26.1 20.7 24.6 21.9"})))}},(e,t,n)=>{n.d(t,{allHlsAudioAssets:()=>s,audioTracksForVideo:()=>u,multivariantM3u8Url:()=>a});var i=n(44),r=(n(18),n(32)),o=(0,n(20).cachedDetect)(),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.attributes.liveMedia)return e.mediaData.liveStreamEventDetails.manifestUrl;var n=e.attributes,i=n.allowHdr,a=n.authorization,s=n.bitDepth,u=n.channelId,l=n.channelPassword,c=n.clipForPoster,d=n.clipFrom,h=n.clipTo,p=n.codec,f=n.deliveryCdn,v=n.disallowOriginalFilePlayback,y=n.forceInstantHls,m=n.forceOriginalFilePlayback,g=(n.includeExtendedAudioDescription,n.password),b=n.qualityMax,_=n.qualityMin,w=n.startPosition,E=t.qualityMin||_,P=t.qualityMax||b,O=function(e){var t,n=e.mediaData,i=e.attributes,o="".concat((0,r.eV1Protocol)(),"//").concat((0,r.cdnFastWistiaComHost)(i.embedHost)),a="".concat((0,r.eV1Protocol)(),"//").concat((0,r.cdnFastProtectedWistiaComHost)(i.assetHost));return n.protected&&null!==(t=i.authorization)&&void 0!==t&&t.jwt?new URL("".concat(a,"/embed/accounts/").concat(n.accountId,"/medias/").concat(n.hashedId,".m3u8")):new URL("".concat(o,"/embed/medias/").concat(n.hashedId,".m3u8"))}(e);return"HlsVideo"!==(null==e?void 0:e.name)&&(E&&O.searchParams.set("quality_min",E),P&&O.searchParams.set("quality_max",P)),v&&O.searchParams.set("disallow_original_file_playback",v),f&&O.searchParams.set("delivery_cdn",f),w&&-1!==w&&O.searchParams.set("start_position",w),c&&null!=d&&h&&(O.searchParams.set("clip_to",h),O.searchParams.set("clip_from",d)),y&&O.searchParams.set("force_instant_hls",!0),m&&O.searchParams.set("force_original_file_playback",!0),i&&o.hdr&&O.searchParams.set("allow_hdr",!0),s&&(Array.isArray(s)?s.forEach((function(e){O.searchParams.append("bit_depth[]",e)})):O.searchParams.set("bit_depth",s)),p&&(Array.isArray(p)?p.forEach((function(e){O.searchParams.append("codec[]",e)})):O.searchParams.set("codec",p)),null!=a&&a.jwt&&O.searchParams.set("pma",a.jwt),g&&O.searchParams.set("password",g),u&&l&&(O.searchParams.set("channel_id",u),O.searchParams.set("channel_password",l)),O.toString()},s=function(e){return(0,i.filter)(e,{type:"mp4_alternate_audio",status:i.READY})},u=function(e){var t=[{audioCodec:void 0,autoselect:!0,default:!0,forced:!1,groupId:"audio",id:0,lang:void 0,name:"Off",label:"Original",type:"AUDIO",isSelected:!0}];return e.forEach((function(e,n){var i,r,o,a={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};!0===(null===(o=e.details)||void 0===o?void 0:o.audioDescription)&&(a.characteristics="public.accessibility.describes-video"),t.push(a)})),t}},(e,t,n)=>{var i=n(2),r=n(54),o=(n(1),n(164)),a=n(169),s=n(156),u=n(92);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,v(i.key),i)}}function c(e,t,n){return t=h(t),function(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)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function y(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){return e.get(_(e,t))}function b(e,t,n){return e.set(_(e,t),n),n}function _(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(0,u.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 w="disabled",E="on",P="off",O=new WeakMap,S=new WeakMap,T=new WeakSet,k=function(e){function t(e){var n,i,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=c(this,t,[e]),m(i=n,r=T),r.add(i),y(n,O,void 0),y(n,S,void 0),f(n,"onClickButton",(function(){var e;if(null!==(e=n.captionsV3Control)&&void 0!==e&&e.selectedLanguage)n.captionsV3Control.setLanguage(void 0),b(S,n,P);else{var t=n.captionsV3Control.captionAndSubtitleTextTracks()[0].language;n.captionsV3Control.setLanguage(t),b(S,n,E)}n.renderButton()})),n.video=e,n.unbinds=[],n.disabledButton=!0,b(S,n,w),_(T,n,C).call(n).then((function(){n.captionsV3Control.captionAndSubtitleTextTracks().length>0&&(n.disabledButton=!1,b(S,n,P),n.renderButton()),n.unbinds.push(n.video.on("addtrack",(function(){n.disabledButton=!1,b(S,n,P),n.renderButton()})),n.video.on("captionschange",(function(){n.captionsV3Control.selectedLanguage?b(S,n,E):b(S,n,P),n.renderButton()})))})),n}return 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)}(t,e),n=t,(r=[{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.RoundedCaptionsButton,{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=f(f(f(f(f({},E,"CAPTIONS_TURN_OFF"),P,"CAPTIONS_TURN_ON"),"menu-closed","CAPTIONS_SHOW_MENU"),"menu-open","CAPTIONS_HIDE_MENU"),w,"CAPTIONS_DISABLED")[g(S,this)],t=(0,u.getTranslation)(this.props.playerLanguage.code,e);this.setButtonLabel(t)}}])&&l(n.prototype,r),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(o.Control);function C(){var e=this;return g(O,this)||b(O,this,(0,r.dynamicImport)("assets/external/captions-v3.js").then((function(t){return(0,s.defineControl)(t.CaptionsV3Control),e.video.whenControlMounted("captionsV3")})).then((function(){e.captionsV3Control=e.video.controls.captionsV3}))),g(O,this)}k.handle="captionsV3Button",k.type="control-bar-right",k.sortValue=50,k.shouldMount=function(e){return e.isLiveMedia()},(0,s.defineControl)(k)},(e,t,n)=>{n.d(t,{RoundedCaptionsButton:()=>a});var i=n(2),r=n(163);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(null,arguments)}var a=function(e){var t=e.filled,n=e.color,a=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:{fill:"none"}}),s={fill:t?"currentcolor":"none",stroke:"currentcolor"},u={fill:"none",stroke:t?"#".concat(n):"currentcolor"};return(0,i.h)("svg",a,(0,i.h)("path",o({"fill-rule":"evenodd","clip-rule":"evenodd",d:"M31 21.9811C31 23.5912 29.6 25 28 25H12C10.4 25 9 23.5912 9 21.9811V12.0189C9 10.4088 10.4 9 12 9H28C29.6 9 31 10.4088 31 12.0189V21.9811Z","stroke-width":"2","stroke-linecap":"round"},s)),(0,i.h)("path",o({d:"M18.4 18.7C17.9 19.4 17.3 19.9 16.3 19.9C15 19.9 13.9 18.8 13.9 17.1C13.9 15.5 14.9 14.3 16.3 14.3C17.3 14.3 17.9 14.8 18.3 15.5","stroke-width":"1.8","stroke-linecap":"round"},u)),(0,i.h)("path",o({d:"M25.8 18.7C25.3 19.4 24.7 19.9 23.7 19.9C22.4 19.9 21.3 18.8 21.3 17.1C21.3 15.5 22.3 14.3 23.7 14.3C24.7 14.3 25.3 14.8 25.7 15.5","stroke-width":"1.8","stroke-linecap":"round"},u)))}},(e,t,n)=>{var i=n(2),r=n(71),o=n(20),a=n(164),s=n(156),u=n(160),l=n(92);function c(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(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,g(i.key),i)}}function p(e,t,n){return t=v(t),function(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)}(e,f()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var b=(0,o.cachedDetect)();(0,l.defineTranslations)("en-US",{BACKGROUND_FOCUS_SHOW_CONTROLS:"Show controls"});var _=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m(n=p(this,t,[e]),"onControlPropsUpdated",(function(e){var t=n.props.isFocusable;e.isFocusable!=t&&t&&n._focusImmediately&&(n.el.focus({preventScroll:!0}),n._focusImmediately=!1)})),m(n,"focus",(function(){n.props.isFocusable?n.el.focus({preventScroll:!0}):n._focusImmediately=!0})),m(n,"onBlur",(function(){n.video.exitInputContext("background-focus"),n.video.controls.focusOutline.hide()})),m(n,"onFocus",(function(){n.video.enterInputContext("background-focus"),!0===n.video.isKeyboardFocused()&&n.video.controls.focusOutline.show()})),m(n,"render",(function(){var e=!n.video.publicApi.popover||n.video.publicApi.popover.isVisible()?0:-1;(0,i.render)((0,i.h)("button",{ref:function(e){return n.el=e},"aria-label":"".concat(n.getTranslation(),": ").concat((0,r.unescapeHtml)(n.video.name()||"")),class:"w-css-reset w-vulcan-v2-button",onBlur:n.onBlur,onFocus:n.onFocus,style:n.style(),tabIndex:e}),n.rootElem),n.reactMounts=[n.rootElem]})),n.video=e,n._focusImmediately=!1,n.unbinds.push(n.video.on("play",n.render),n.video.on("pause",n.render),n.video.on("end",n.render)),n}return 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)}(t,e),n=t,(o=[{key:"mount",value:function(e){this.rootElem=e,this.render()}},{key:"style",value:function(){return d(d({},u.visuallyHiddenElementStyles),{},{pointerEvents:"none"})}},{key:"getTranslation",value:function(){return b.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,l.getTranslation)(this.props.playerLanguage.code,e)}}])&&h(n.prototype,o),a&&h(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(a.Control);_.shouldMount=function(){return!0},_.handle="backgroundFocus",_.type="background",_.sortValue=100,(0,s.defineControl)(_)},(e,t,n)=>{var i=n(172),r=n(2),o=n(120),a=n(164),s=n(173),u=n(156),l=n(176);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,y(i.key),i)}}function d(e,t,n){return t=p(t),function(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)}(e,h()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(n=d(this,t,[e]),"renderButton",(function(){var e,t;if(!n.__destroyed&&!n.hiddenButton){var i=!n.video.publicApi.popover||n.video.publicApi.popover.isVisible()?0:-1,o=(0,l.default)(s.BigPlayButton);(0,r.render)((0,r.h)(o,{borderRadius:n.props.bigPlayButtonBorderRadius,buttonTabIndex:i,color:n.video.playerColor(),duration:n.video.duration(),elemRef:function(e){return n.buttonElem=e},isLiveMedia:n.video.isLiveMedia(),isVisible:n.shouldShow(),leftNudgeFraction:n.getLeftNudgeFraction(),noMixBlendMode:n.video.embedOptions().noMixBlendMode,onClick:n.onClick,controlBarDistance:n.props.controlBarDistance,playerLanguage:n.props.playerLanguage,scale:n.scale(),showBpbTime:n._timeEnabled,topNudgeFraction:n.getTopNudgeFraction(),videoHeight:n.props.videoHeight-.75*n.props.controlBarHeight,videoName:n.video.name()||"",videoWidth:n.props.videoWidth,backgroundGradientCss:n.backgroundGradientCss(),isOpaque:null!==(e=n.video.opaqueControls())&&void 0!==e&&e,hasContrastIcons:null!==(t=n.video.contrastIcons())&&void 0!==t&&t}),n.rootElem),n.reactMounts=[n.rootElem]}})),v(n,"onClick",(function(){n.video.play(),n.video.focus()})),n.video=e,n.eventListeners.set("playercolorchange",(function(){return n.renderButton()})),n.eventListeners.set("opaquecontrolschange",(function(){return n.renderButton()})),n.unbinds.push(e.on("play",n.renderButton),e.on("playrejected",n.renderButton),e.on("playpending",n.renderButton),e.on("playerlanguagechange",n.renderButton),e.on("end",n.renderButton),e.on("up",n.renderButton),e.on("trimchange",n.renderButton)),n._timeEnabled=n.video._opts.bpbTime,n.hiddenButton=n.video.isLiveMedia(),n.video.isLiveMedia()&&n.video.ready((function(){n.hiddenButton=!1,n.renderButton()})),n}return 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&&f(e,t)}(t,e),n=t,(a=[{key:"mount",value:function(e){this.rootElem=e,this.renderButton()}},{key:"backgroundGradientCss",value:function(){var e=this.video.playerColorGradient();if(null!=e&&e.on)return(0,o.getCssGradient)(e)}},{key:"onControlPropsUpdated",value:function(e){this.props.videoWidth===e.videoWidth&&this.props.videoHeight===e.videoHeight&&this.props.bigPlayButtonBorderRadius===e.bigPlayButtonBorderRadius||this.renderButton()}},{key:"shouldShow",value:function(){var e=this.video;return!1===e.lastPlayInfo().isPending&&("beforeplay"===e.state()||"ended"===e.state()&&"reset"===e._attrs.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}}}])&&c(n.prototype,a),u&&c(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,u}(a.Control);m.shouldMount=function(e){var t=e._attrs.bigPlayButton;return null==t||!0===t},m.handle="bigPlayButton",m.type="above-control-bar",(0,u.defineControl)(m)},(e,t,n)=>{n.d(t,{controlMultiplierBasedOnVideo:()=>c});n(24),n(23);var i=n(20),r=n(18);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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.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)?a(e,t):void 0}}(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=Array(t);n<t;n++)i[n]=e[n];return i}var s=(0,i.cachedDetect)(),u=function(){var e=document.querySelector("meta[name=viewport]"),t=e&&e.getAttribute("content"),n={};t&&t.split(/[\s,]+/).forEach((function(e){var t=e.split("=");2===t.length&&(n[t[0]]=(0,r.cast)(t[1]))}));return n},l=function(e){if(!(s.iphone||s.ipad||s.android))return[640,960];if(null!=e&&e.isAudio())return[500,960];var t,n=u();if(n.width){t="number"==typeof n.width?0+n.width:screen.width||window.innerWidth;var i=Math.max(n["minimum-scale"]||0,Math.min(n["maximum-scale"]||10,n["initial-scale"]||1));i<1&&(t/=i)}else t=window.innerWidth;return[t,2*t/3]},c=function(e,t){var n=e.videoWidth(),i=e.videoHeight();if(n/i<1){var r=o(function(e){if(!(s.iphone||s.ipad||s.android))return[340,860];if(null!=e&&e.isAudio())return[500,960];var t,n=u();if(n.height){t="number"==typeof n.height?0+n.height:screen.height||window.innerHeight;var i=Math.max(n["minimum-scale"]||0,Math.min(n["maximum-scale"]||10,n["initial-scale"]||1));i<1&&(t/=i)}else t=window.innerWidth;return[t,2*t/1.3]}(e),2),a=r[0],c=r[1];if(i<=a)return i/a;if(i>c)return i/c}else{var d=o(t||l(e),2),h=d[0],p=d[1];if(n<=h)return n/h;if(n>p)return n/p}return 1}},(e,t,n)=>{n.d(t,{BigPlayButton:()=>b});var i=n(2),r=n(3),o=n(174),a=n(92),s=n(116),u=n(71),l=n(20),c=n(88),d=n(98),h=n(117);function p(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.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)?m(e,t):void 0}}(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=Array(t);n<t;n++)i[n]=e[n];return i}var g=(0,l.cachedDetect)(),b=function(e){var t,n=e.backgroundGradientCss,l=e.baseHeight,p=void 0===l?80:l,v=e.baseWidth,m=void 0===v?125:v,b=e.borderRadius,_=e.buttonTabIndex,w=e.color,E=e.controlBarDistance,P=void 0===E?0:E,O=e.duration,S=e.elemRef,T=e.hasContrastIcons,k=e.isLiveMedia,C=e.isLoading,A=void 0!==C&&C,j=e.isOpaque,I=void 0!==j&&j,M=e.isVisible,L=e.leftNudgeFraction,D=void 0===L?0:L,B=e.noMixBlendMode,x=void 0!==B&&B,R=e.onClick,F=e.playerLanguage,W=e.scale,N=e.showBpbTime,H=e.topNudgeFraction,V=void 0===H?0:H,U=e.videoName,z=e.videoWidth,G=y((0,r.useState)(!1),2),q=G[0],K=G[1],Y=m*W,Q=p*W,X=(0,u.unescapeHtml)(U),$="".concat((t="TITLE_WHEN_NOT_PLAYING",(0,a.getTranslation)(F.code,"PLAY_BUTTON_".concat(t))),": ").concat(X),Z={borderRadius:"".concat(b,"px"),display:M?"block":"none",left:"calc(50% + ".concat(100*(D||0),"%)"),marginLeft:"-".concat(Y/2,"px"),marginTop:"-".concat(Q/2,"px"),overflow:"hidden",position:"absolute",top:"calc(50% + ".concat(100*(V||0),"% - ").concat(P,"px)"),boxShadow:I?"0 3px 5px rgba(0,0,0,0.3)":void 0},J=!g.edge&&!x,ee={background:new s.Color(null!=w?w:"#000").alpha(1).toRgba(),display:J?"block":"none",left:0,height:"".concat(Q,"px"),mixBlendMode:"darken",position:"absolute",top:0,width:"".concat(Y,"px")},te=null!=n,ne=new s.Color(null!=w?w:"#000000"),ie=(0,h.adjustColorForProperContrast)(ne,ne,"nonText"),re=q?ie:ne,oe=J?.7:.85,ae=new s.Color(re),se=(0,h.getVideoPlayerIconColor)(ne,T,te),ue=T?(0,h.adjustColorForProperContrast)(se,ie,"paragraphText"):"#fff";ae.alpha(I?1:oe);var le=te?{background:n,backgroundSize:"".concat(z,"px 100%"),backgroundPositionX:"center"}:{};te&&(ue="#ffffff",ie="rgba(0,0,0,0.4)");var ce=f(f({backgroundColor:ae.toRgba()},le),{},{height:"".concat(Q,"px"),left:0,position:"absolute",top:0,transition:"background-color 150ms",width:"".concat(Y,"px")}),de={backgroundColor:"transparent",border:0,color:q?ue:se,cursor:"pointer",height:"".concat(Q,"px"),boxShadow:"none",width:"".concat(Y,"px")},he=N&&!k,pe={background:"rgba(0,0,0,.4)",color:"#fff",fontFamily:d.interNumbersSemiBold,fontSize:"".concat(18*W,"px"),lineHeight:"".concat(30*W,"px"),pointerEvents:"none",textAlign:"center"},fe=function(){K(!0)},ve=function(){K(!1)};return(0,i.h)("div",{class:"w-bpb-wrapper w-css-reset w-css-reset-tree",ref:S,style:Z},(0,i.h)("button",{class:"w-big-play-button w-css-reset-button-important w-vulcan-v2-button",style:de,onMouseEnter:fe,onMouseLeave:ve,onFocusIn:fe,onFocusOut:ve,onClick:R,"aria-label":$,tabIndex:_,type:"button"},(0,i.h)("div",{style:ee}),(0,i.h)("div",{style:ce}),(0,i.h)(o.BigPlayButtonSVG,{width:m,height:p,scale:W,isLoading:A,overrideFillColor:q?ue:se})),he?(0,i.h)("div",{class:"w-bpb-time",style:pe},(0,c.flexibleDuration)(O)):null)}},(e,t,n)=>{n.d(t,{BigPlayButtonSVG:()=>s});var i=n(2),r=n(175),o=n(163);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}var s=function(e){var t=e.width,n=e.height,s=e.scale,u=e.isLoading,l=void 0!==u&&u,c=e.overrideFillColor,d=n*s,h=(0,o.standardSvgAttrs)({width:t,height:n,styleOverride:{position:"absolute",height:"".concat(d,"px"),color:c},ariaHidden:!0}),p=t/2-18.5,f=n/2-18;return(0,i.h)("svg",a({},h,{"aria-hidden":"true"}),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentcolor",opacity:l?.5:1,transform:"translate(".concat(p,", ").concat(f,")"),d:"M12.138 2.173C10.812 1.254 9 2.203 9 3.817v28.366c0 1.613 1.812 2.563 3.138 1.644l20.487-14.183a2 2 0 0 0 0-3.288L12.138 2.173Z"}),l&&(0,i.h)(r.BigPlayButtonLoadingAnim,null))}},(e,t,n)=>{n.d(t,{BigPlayButtonLoadingAnim:()=>u});var i=n(2),r=n(3),o=n(24);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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.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)?s(e,t):void 0}}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var u=function(){var e=(0,r.useRef)(null),t=a((0,r.useState)(!1),2),n=t[0],s=t[1];return(0,r.useEffect)((function(){(0,o.addInlineCss)(e.current,"\n        @keyframes w-loading-pulse {\n          from {\n            stroke-dashoffset: 55;\n          }\n          to {\n            stroke-dashoffset: -175;\n          }\n        }\n        .w-big-play-button-loading-anim {\n          stroke-dasharray: 50 260;\n          stroke-dashoffset: 55;\n          animation: w-loading-pulse 1.2s infinite cubic-bezier(0.65, 0, 0, 1);\n        }\n      "),s(!0)}),[]),(0,i.h)("line",{ref:e,class:"w-big-play-button-loading-anim",x1:"0",y1:"78",x2:"125",y2:"78",style:{stroke:"currentcolor",strokeWidth:4,strokeLinecap:"round",opacity:n?1:0}})}},(e,t,n)=>{n.d(t,{default:()=>d});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,c(i.key),i)}}function a(e,t,n){return t=u(t),function(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)}(e,s()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(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(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}const d=function(e){return function(t){function n(){var e,t,i,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return e=a(this,n,[].concat(s)),t=e,r=function(t){var n=e.props.onClick;n&&n(t)},(i=c(i="onClick"))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,e}return 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)}(n,t),s=n,(u=[{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)}}])&&o(s.prototype,u),d&&o(s,d),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,u,d}(i.Component)}},(e,t,n)=>{var i=n(2),r=n(13),o=n(162),a=n(20),s=n(54),u=n(156),l=n(92),c=n(178),d=n(164);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},h.apply(null,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,b(i.key),i)}}function f(e,t,n){return t=y(t),function(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)}(e,v()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var _=(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 w=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(n=f(this,t,[e]),"renderButton",(function(){var e,t=Boolean(n.video._opts.silentAutoPlayIsChromeless),r=n.isVisible();if(t&&(r?n.video.requestChromeless("clickForSound"):n.video.releaseChromeless("clickForSound")),n.video.trigger("clickforsoundvisibilitychange",r),r){var o=new Promise((function(e){setTimeout(e,1e3)}));e=Promise.race([o,(0,s.dynamicImport)("assets/external/interFontFace.js")])}else e=Promise.resolve();n.lastRenderPromise||(n.lastRenderPromise=Promise.resolve()),n.lastRenderPromise.then((function(){return n.lastRenderPromise=e,e})).then((function(){(0,i.render)((0,i.h)(c.ClickForSoundButton,h({},n.props,{isLiveMedia:n.video.isLiveMedia(),isTouchscreen:_.touchScreen,backdropEnabled:n.getSilentAutoplayBackdropState(),buttonText:n.buttonText(),buttonTextEnabled:n.buttonTextEnabled(),elemRef:function(e){return n.buttonRoot=e},isVisible:n.isVisible(),onClick:n.onClick,scale:n.scale()})),n.rootElem),n.reactMounts=[n.rootElem],n.trigger("buttonrootrendered")}))})),g(n,"onClick",(function(e){var t,i;(0,o.isMouseDown)()||n.video.focus(),n.video.unmute(),!1===n.video.isLiveMedia()&&n.video.time(0).then((function(){return n.video.play()})),!0!==(null===(t=n.video.embedOptions().plugin)||void 0===t||null===(i=t.captions)||void 0===i?void 0:i.onByDefault)&&n.video.turnOffCaptions(),n.setIsVisible(!1),n.trigger("click",e)})),n.silentAutoPlayBackdropEnabled=n.video._opts.silentAutoPlayBackdropEnabled,n.unbinds.push(e.on("play",n.renderButton),e.on("silentplaybackmodechange",n.renderButton),e.on("volumechange",n.renderButton)),n}return 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&&m(e,t)}(t,e),n=t,(r=[{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(){var e;return!0!==(null===(e=this.video.embedOptions().clickForSound)||void 0===e?void 0:e.disabled)&&(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 _.touchScreen?this.translate("MOBILE_TEXT"):this.translate("DESKTOP_TEXT")}},{key:"buttonTextEnabled",value:function(){var e,t,n,i,r,o=this.video.embedOptions(),a=null===(e=o.plugin)||void 0===e?void 0:e.videoThumbnail;return null!=a&&a.on?null===(t=null===(n=a.clickForSound)||void 0===n?void 0:n.showText)||void 0===t||t:null===(i=null===(r=o.clickForSound)||void 0===r?void 0:r.showText)||void 0===i||i}},{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(){var e=this.props.scale;return _.touchScreen?e:1.5*e}}])&&p(n.prototype,r),a&&p(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(d.Control);(0,r.bindify)(w.prototype),w.handle="clickForSoundButton",w.type="above-control-bar",(0,u.defineControl)(w)},(e,t,n)=>{n.d(t,{ClickForSoundButton:()=>c});var i=n(2),r=n(3),o=n(162),a=n(98),s=n(179);function u(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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.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)?l(e,t):void 0}}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var c=function(e){var t=e.backdropEnabled,n=e.buttonText,l=e.buttonTextEnabled,c=e.elemRef,d=e.isLiveMedia,h=e.isTouchscreen,p=e.isVisible,f=e.onClick,v=e.scale,y=e.videoWidth,m="".concat(y,"px"),g=35*v,b=15*v-2,_=(0,r.useRef)(null),w=u((0,r.useState)(!1),2),E=w[0],P=w[1],O=u((0,r.useState)(h||d),2),S=O[0],T=O[1];return(0,i.h)(s.CustomEventsWrapper,{class:"w-css-reset w-css-reset-tree","data-handle":"click-for-sound-backdrop",elemRef:c,onClick:f,onMouseEnter:function(){T(!0)},onMouseLeave:function(){h||d||T(!1)},style:{display:p?"block":"none",height:"100%",left:0,pointerEvents:t?"auto":"none",position:"absolute",top:0,width:"100%"}},(0,i.h)("button",{"aria-label":n,onFocus:function(){(0,o.isMouseDown)()||P(!0)},onBlur:function(){return P(!1)},class:"w-vulcan-v2-button click-for-sound-btn",style:{background:"rgba(0,0,0,0.8)",border:"2px solid ".concat(E?"#fff":"transparent"),borderRadius:"60px",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",outline:"none",pointerEvents:"auto",position:"absolute",right:"".concat(b,"px"),top:"".concat(b,"px"),maxWidth:"".concat(y-2*b,"px")}},l?(0,i.h)("div",{ref:_,style:{display:"flex",alignItems:"center",justifyContent:"flex-end",whiteSpace:"nowrap",overflow:"hidden",maxWidth:S?m:0,transition:"max-width 200ms"}},(0,i.h)("span",{style:{color:"#fff",fontFamily:a.interFontFamily,fontSize:y<640?"15px":"18px",fontWeight:500,paddingLeft:"1em",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:m}},n)):null,(0,i.h)("svg",{viewBox:"0 0 237 237",width:g,height:g},(0,i.h)("style",null,"\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"),(0,i.h)("path",{fill:"#fff",d:"M88 107H65v24h24l23 23V84z"}),(0,i.h)("g",{fill:"none",stroke:"#fff","stroke-linecap":"round","stroke-width":"10"},(0,i.h)("path",{d:"M142 86c9 21 9 44 0 65",class:"volume__small-wave"}),(0,i.h)("path",{d:"M165 74c13 23 13 66 0 89",class:"volume__large-wave"})))))}},(e,t,n)=>{n.d(t,{CustomEventsWrapper:()=>v});var i=n(2),r=n(20),o=n(180);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}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,p(i.key),i)}}function u(e,t,n){return t=c(t),function(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)}(e,l()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){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){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var f=(0,r.cachedDetect)(),v=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return h(e=u(this,t,[].concat(i)),"onSwipe",(function(t,n){var i=e.props.onSwipe;i&&i(t,n)})),h(e,"onPinch",(function(t,n){var i=e.props.onPinch;i&&i(t,n)})),h(e,"onLongPress",(function(t,n){var i=e.props.onLongPress;i&&i(t,n)})),h(e,"onCustomTouchMove",(function(t,n){var i=e.props.onCustomTouchMove;i&&i(t,n)})),e}return 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)}(t,e),n=t,(r=[{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=[],f.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)}}])&&s(n.prototype,r),l&&s(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,l}(i.Component)},(e,t,n)=>{n.d(t,{default:()=>c});var i=n(13),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,s(i.key),i)}}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var u=(0,n(20).cachedDetect)(),l=function(){return e=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,!!u.passiveSupported&&{passive:!1})},t=[{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)}}],t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();(0,i.bindify)(l.prototype);const c=l},(e,t,n)=>{var i=n(182),r=(n(2),n(24)),o=n(20),a=n(162),s=n(54),u=n(156),l=n(180),c=n(164);function d(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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.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)?h(e,t):void 0}}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=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 f(e,t,n){return t=m(t),function(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)}(e,v()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},y.apply(null,arguments)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function b(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var w=(0,o.cachedDetect)(),E=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(n=f(this,t,[e]),"onContextMenu",(function(e,t){var o,s;e.altKey||(null!==(o=(s=n.video.ui).shouldOnlyShowControlBar)&&void 0!==o&&o.call(s)||("contextmenu"===e.type&&e.preventDefault(),n.pageX=e.pageX,n.pageY=e.pageY,n._hasLoaded||n.loading(new Promise((function(e){n.resolveLoadingPromise=e})),{x:n.pageX,y:n.pageY}),new Promise((function(e){!(t&&t.isLongPress)&&(0,a.isMouseDown)()?(0,r.elemBind)(document,"mouseup",(function(t){return n.pageX=t.pageX,n.pageY=t.pageY,e(),r.elemUnbind})):e()})).then((function(){return(0,i.logPromiseErrors)(n.loadContextMenu())})).then((function(){n.renderMenu&&(n.resolveLoadingPromise(),n.renderMenu(),n.menuElemRef.focus())}))))})),b(n,"onClick",(function(e){(0,r.elemIsInside)(e.target,n.rootElem)||w.safari&&e.ctrlKey||(n.hideMenu?n.hideMenu():n._hasLoaded||n.loading(new Promise((function(e){e()}))))})),b(n,"onDocumentMouseUp",(function(e){e.ctrlKey||(0,r.elemIsInside)(e.target,n.rootElem)||((0,r.elemUnbind)(document,"mouseup",n.onDocumentMouseUp),n.loadContextMenu().then((function(){n.hideMenu()})))})),w.touchScreen?(n.touchEvents=new l.default(e.chrome),n.touchEvents.bind("longpress",n.onContextMenu)):n.unbinds.push((0,r.elemBind)(e.chrome,"contextmenu",n.onContextMenu)),n.unbinds.push((0,r.elemBind)(e.chrome,"click",n.onClick)),n.eventListeners.set("hide-copy-link-and-thumbnail-change",(function(){n.renderMenu()})),n.eventListeners.forEach((function(t,n){e.embedElement.addEventListener(n,t)})),n}return 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&&g(e,t)}(t,e),n=t,o=[{key:"mount",value:function(e){this.rootElem=e}},{key:"destroy",value:function(){var e,n,i,r,o;this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),(e=t,n="destroy",i=this,o=y(m(1&(r=3)?e.prototype:e),n,i),2&r&&"function"==typeof o?function(e){return o.apply(i,e)}:o)([])}},{key:"onControlPropsUpdated",value:function(e){this.props.playerLanguage===e.playerLanguage&&this.props.controlBarBorderRadius===e.controlBarBorderRadius||!this._visible||this.renderMenu()}},{key:"loadContextMenu",value:function(){var e=this;return Promise.all([(0,s.dynamicImport)("assets/external/interFontFace.js"),(0,s.dynamicImport)("assets/external/vulcanV2Player/shared/controls/ContextMenuControl/menu.js")]).then((function(t){var n=d(t,2)[1].ContextMenuExtensions;for(var i in n)e[i]=n[i].bind(e);e._hasLoaded=!0}))}},{key:"removeEventListeners",value:function(){var e=this;this.eventListeners instanceof Map&&(this.eventListeners.forEach((function(t,n){e.impl.video.embedElement.removeEventListener(n,t)})),this.eventListeners.clear())}}],o&&p(n.prototype,o),u&&p(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,u}(c.Control);E.handle="contextMenu",E.type="foreground",(0,u.defineControl)(E)},(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)=>{var i=n(2),r=n(164),o=n(184),a=n(156),s=n(92);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,p(i.key),i)}}function l(e,t,n){return t=d(t),function(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)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){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){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(0,s.defineTranslations)("en-US",{ELLIPSIS_LESS:"Show fewer buttons",ELLIPSIS_MORE:"Show more buttons"});var f=function(e){function t(){var e,n,i,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return e=l(this,t,[].concat(a)),n=e,r=function(){e.video.ui.isShowingMore()?(e.video.ui.showLess(),e.renderButton()):(e.video.ui.showMore(),e.renderButton())},(i=p(i="onClickButton"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,e}return 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)}(t,e),n=t,(r=[{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,s.getTranslation)(this.props.playerLanguage.code,"ELLIPSIS_".concat(e))}}])&&u(n.prototype,r),a&&u(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(r.Control);f.handle="ellipsisButton",f.isVideoChrome=!0,f.type="ellipsis",f.sortValue=1e5,f.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,a.defineControl)(f)},(e,t,n)=>{n.d(t,{EllipsisButton:()=>v});var i=n(2),r=n(163),o=["onMouseEnter"];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=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function d(e,t,n){return t=p(t),function(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)}(e,h()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,arguments)}return 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&&f(e,t)}(t,e),n=t,a=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var e=this.props,t=e.onMouseEnter,n=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,o),a=s(s({},(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0})),n);return t&&(a.onMouseEnter=t),(0,i.h)("svg",a,(0,i.h)("circle",{cx:"20",cy:"17",r:"2",fill:"currentcolor"}),(0,i.h)("circle",{cx:"13",cy:"17",r:"2",fill:"currentcolor"}),(0,i.h)("circle",{cx:"27",cy:"17",r:"2",fill:"currentcolor"}))}}],a&&l(n.prototype,a),u&&l(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,u}(i.Component)},(e,t,n)=>{var i=n(2),r=n(164),o=n(156);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,s(i.key),i)}}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function u(e,t,n){return t=c(t),function(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)}(e,l()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){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){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var h=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=u(this,t,[e])).video=e,n._isVisible=!1,n}return 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)}(t,e),n=t,(r=[{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",borderRadius:"".concat(this.props.playerBorderRadius,"px"),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)}}])&&a(n.prototype,r),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.Control);h.shouldMount=function(e){return!e.isAudio()},h.handle="focusOutline",h.type="foreground",h.sortValue=100,(0,o.defineControl)(h)},(e,t,n)=>{var i=n(2),r=n(24),o=n(20),a=n(164),s=n(187),u=n(156),l=n(92);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,y(i.key),i)}}function d(e,t,n){return t=p(t),function(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)}(e,h()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var m=(0,o.cachedDetect)();(0,l.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 g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(n=d(this,t,[e]),"onClickButton",(function(){n.toggleFullscreen()})),v(n,"onKeyUp",(function(e){if(!(0,r.formInputIsFocused)()){var t=n.impl.getInputContext();"background-focus"!==t&&"player-mouseover"!==t&&"player-focus"!==t&&"playbar-focus"!==t||70===e.keyCode&&n.toggleFullscreen()}})),n.unbinds.push(n.impl.on("enterfullscreen",(function(){n.renderButton()})),n.impl.on("cancelfullscreen",(function(){n.renderButton()})),(0,r.elemBind)(document,"keyup",n.onKeyUp)),b()||_(n.impl)||!w()||(n.mountDialog=n.maybeMountDialog),n}return 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&&f(e,t)}(t,e),n=t,(o=[{key:"inFullscreen",value:function(){return this.isWistiaPlayer?this.api.inFullscreen:this.api.inFullscreen()}},{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.inFullscreen()?this.translate("TITLE_WHEN_IN_FULLSCREEN"):this.translate("TITLE_WHEN_NOT_IN_FULLSCREEN");this.setButtonLabel(e),(0,i.render)((0,i.h)(s.RoundedFullscreenButton,null),this.buttonElem),this.reactMounts=[this.buttonElem]}}},{key:"translate",value:function(e){return(0,l.getTranslation)(this.props.playerLanguage.code,"FULLSCREEN_".concat(e))}},{key:"toggleFullscreen",value:function(){(b()||_(this.impl))&&(this.inFullscreen()?this.api.cancelFullscreen():this.api.requestFullscreen())}}])&&c(n.prototype,o),a&&c(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(a.Control);g.handle="fullscreenControl",g.type="control-bar-right",g.sortValue=1e3,(0,u.defineControl)(g);var b=function(){return m.fullscreenEnabled},_=function(e){var t=e._mediaData,n=e._opts,i=(t.spherical||n.spherical)&&!n.overrideSpherical,r=top!==self;return m.ios.version>0&&(!r||!i)},w=function(){return m.ios.version>0||m.android};g.shouldMount=function(e){var t=e._attrs.fullscreenControl;return(!0===t||null==t)&&(b()||_(e)||w())}},(e,t,n)=>{n.d(t,{RoundedFullscreenButton:()=>o});var i=n(2),r=n(163),o=function(){var e=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:{fill:"none"}});return(0,i.h)("svg",e,(0,i.h)("rect",{x:"14",y:"13",width:"12",height:"8",rx:"1.5",stroke:"currentcolor","stroke-width":"2"}),(0,i.h)("g",{stroke:"currentcolor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,i.h)("path",{d:"M10 13V11C10 9.89543 10.8954 9 12 9H14"}),(0,i.h)("path",{d:"M30 13V11C30 9.89543 29.1046 9 28 9H26"}),(0,i.h)("path",{d:"M30 21L30 23C30 24.1046 29.1046 25 28 25L26 25"}),(0,i.h)("path",{d:"M10 21L10 23C10 24.1046 10.8954 25 12 25L14 25"})))}},(e,t,n)=>{var i=n(24),r=n(2),o=n(164),a=n(189),s=n(156);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,f(i.key),i)}}function l(e,t,n){return t=d(t),function(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)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){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){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(n=l(this,t,[e]),"show",(function(e){n._isVisible=!0,n.renderMenu(e)})),p(n,"hide",(function(){n._isVisible=!1,(0,r.render)((0,r.h)("nothing",null),n.rootElem),n.reactMounts=[n.rootElem]})),n._isVisible=!1,n}return 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)}(t,e),n=t,(o=[{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])}}])&&u(n.prototype,o),s&&u(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(o.Control);v.handle="loadingHourglass",v.type="foreground",(0,s.defineControl)(v)},(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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(null,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,d(i.key),i)}}function s(e,t,n){return t=l(t),function(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)}(e,u()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}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(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}const h=function(e){function t(e){var n,i,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=s(this,t,[e]),i=n,o=function(e){var t=e.pageX-n.props.videoOffset.left+10,i=e.pageY-n.props.videoOffset.top;n.setState({x:t,y:i})},(r=d(r="onMouseMove"))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,n.animationInterval=void 0,n.state={x:n.props.x+10,y:n.props.y,floatingPixel:8},n}return 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)}(t,e),n=t,(u=[{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(n.prototype,u),l&&a(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u,l}(i.Component)},(e,t,n)=>{var i=n(2),r=n(54),o=n(164),a=n(156),s=n(92),u=n(184);function l(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return c(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var h=[][i]?t(t([][i]())):(c(t={},i,(function(){return this})),t),p=d.prototype=s.prototype=Object.create(h);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,c(p,"constructor",d),c(d,"constructor",u),u.displayName="GeneratorFunction",c(d,r,"GeneratorFunction"),c(p),c(p,r,"Generator"),c(p,i,(function(){return this})),c(p,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:o,m:f}})()}function c(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}c=function(e,t,n,i){function o(t,n){c(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},c(e,t,n,i)}function d(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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.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)?h(e,t):void 0}}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function p(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)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){p(o,i,r,a,s,"next",e)}function s(e){p(o,i,r,a,s,"throw",e)}a(void 0)}))}}function v(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,w(i.key),i)}}function y(e,t,n){return t=g(t),function(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)}(e,m()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){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){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function _(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(0,s.defineTranslations)("en-US",{MULTI_CONTROL_TITLE:"Settings",MULTI_CONTROL_HIDE_MENU:"Hide Settings menu",MULTI_CONTROL_SHOW_MENU:"Show Settings menu"});var E=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return _(e=y(this,t,[].concat(i)),"loadMenuCode",f(l().m((function t(){return l().w((function(t){for(;;)if(0===t.n)return t.a(2,Promise.all([(0,r.dynamicImport)("assets/external/interFontFace.js"),(0,r.dynamicImport)("assets/external/vulcanV2Player/video/controls/MultiControl/dialog.js")]).then((function(t){var n=d(t,2)[1];if(!e.renderDialog){var i=n.renderDialog;e.renderDialog=i}})))}),t)})))),_(e,"onMouseEnterButton",(function(){e.loadMenuCode()})),e}return 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)}(t,e),n=t,a=[{key:"shouldMount",value:function(e){var t,n=e.embedOptions();return null!==(t=null==n?void 0:n.multiControl)&&void 0!==t&&t}}],(o=[{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"mountButton",value:function(e){this.buttonRoot=e,this.renderButton()}},{key:"mountDialog",value:function(e){this.dialogRoot=e,this.renderMenu()}},{key:"onControlPropsUpdated",value:function(e){var t;null!==(t=this.dialog)&&void 0!==t&&t.isOpen()&&this.renderMenu();var n=this.props.playerLanguage;null!=e.playerLanguage&&null!=this.props.playerLanguage&&e.playerLanguage.code!==n.code&&(this.renderButton(),this.renderMenu())}},{key:"renderButton",value:function(){this.setButtonLabel(this.translate("MULTI_CONTROL_TITLE")),this.updateButtonLabel(),this.buttonRoot&&((0,i.render)((0,i.h)(u.EllipsisButton,{onMouseEnter:this.onMouseEnterButton}),this.buttonRoot),this.reactMounts=[this.buttonRoot])}},{key:"renderMenu",value:function(){var e,t=this;if(this.dialogRoot&&null!==(e=this.dialog)&&void 0!==e&&e.isOpen()){var n=this.loadMenuCode().then((function(){var e;t.dialogRoot&&(null===(e=t.renderDialog)||void 0===e||e.call(t,t.dialogRoot,t.impl))}));this.loading(new Promise((function(e){n.then(e)})))}}},{key:"translate",value:function(e){var t=this.props.playerLanguage;return(0,s.getTranslation)(t.code,e)}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("MULTI_CONTROL_HIDE_MENU")):this.setButtonLabel(this.translate("MULTI_CONTROL_SHOW_MENU")))}}])&&v(n.prototype,o),a&&v(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(o.Control);_(E,"handle","multiControl"),_(E,"sortValue",800),_(E,"type","control-bar-right"),(0,a.defineControl)(E)},(e,t,n)=>{var i=n(192),r=n(156);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,a(i.key),i)}}function a(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function s(e,t,n){return t=l(t),function(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)}(e,u()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,t,arguments)}return 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)}(t,e),n=t,(i=[{key:"width",value:function(){return this.props.width}},{key:"left",value:function(){return this.props.left}}])&&o(n.prototype,i),r&&o(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(i.default);d.shouldMount=function(e){var t=e._attrs.playBarControl;return!0===t||null==t},d.handle="playbar",d.type="playbar",(0,r.defineControl)(d)},(e,t,n)=>{n.d(t,{default:()=>_});var i=n(125),r=n(44),o=n(23),a=n(162),s=n(24),u=n(2),l=n(193),c=n(164);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},d.apply(null,arguments)}function h(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,b(i.key),i)}}function p(e,t,n){return t=y(t),function(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)}(e,f()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},v.apply(null,arguments)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}const _=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(n=p(this,t,[e]),"onResize",(function(e){var t=e.playbarBarWidth,i=e.playbarBarLeftOffsetFromPlayerLeftEdge;n.video.trigger("playbarresize",{playbarBarWidth:t,playbarBarLeftOffsetFromPlayerLeftEdge:i}),n._barWidth=t,n._barLeftOffset=i})),g(n,"renderPlaybar",(function(){var e=n.video,t=e.plugin.chapters,i=t?t.getAllChapters():[],r=t?t.getChapterWithVisibleTitle():null,o=t?t.getChapterWithFocusedMarker():null,a=n.PlaybarComponent;(0,u.render)((0,u.h)(a,d({getCurrentTime:n.getCurrentTime,getCurrentBufferTime:n.getCurrentBufferTime,duration:e.duration(),isBeforePlay:"beforeplay"===e.state(),isVisible:n.props.controlsAreVisible,isPlaying:"playing"===e.state(),isSeeking:e._impl.engine&&e._impl.engine.isSeeking()},n.props,{onDragStart:n.onDragStart,onDrag:n.onDrag,onDragEnd:n.onDragEnd,onBlur:n.onBlurPlaybar,onFocus:n.onFocusPlaybar,isPlaceholder:n.isPlaceholder(),chapters:i,chapterWithFocusedMarker:o,chapterWithVisibleTitle:r,onClickChapter:n.onClickChapter,onMouseEnterOrFocusChapter:n.onMouseEnterOrFocusChapter,onMouseLeaveOrBlurChapter:n.onMouseLeaveOrBlurChapter,mediaData:n.video._mediaData,embedOptions:n.video._opts,color:n.video.playerColor(),showTime:n.showTime,shouldShowStoryboard:n.shouldShowStoryboard(),shouldShowChapterTitles:!0,shouldShowTime:n.shouldShowTime(),storyboardAsset:n.storyboardAsset(),leftControlBarWidth:n.props.leftControlBarWidth,setTimeWidth:n.setTimeWidth,setRightBarMargin:n.setRightBarMargin,resumableTime:n.resumableTime(),getDurationBeforeCuts:n.getDurationBeforeCuts,getTimeBeforeCuts:n.getTimeBeforeCuts,onResize:n.onResize,playerIconColor:n.props.playerIconColor})),n.rootElem),n.reactMounts=[n.rootElem]})),g(n,"getDurationBeforeCuts",(function(){var e;return null!==(e=n.video)&&void 0!==e&&e.engine?n.video.engine.getDurationBeforeCuts():-1})),g(n,"getTimeBeforeCuts",(function(e){var t;return null!==(t=n.video)&&void 0!==t&&t.engine?n.video.engine.getTimeBeforeCuts(e):-1})),g(n,"setTimeWidth",(function(e){n._timeWidth=e})),g(n,"setRightBarMargin",(function(e){n._rightBarMargin=e})),g(n,"renderNothing",(function(){(0,u.render)((0,u.h)("nothing",null),n.rootElem),n.reactMounts=[n.rootElem]})),g(n,"renderIfNotPlaying",(function(){"playing"!==n.video.state()&&n.render()})),g(n,"getCurrentTime",(function(){return n.video?n.video.time():0})),g(n,"getCurrentBufferTime",(function(){var e=n.video?n.video.getBuffered():[];return 0===e.length?0:e[e.length-1].end})),g(n,"onClickChapter",(function(e,t){t&&(n.video.time(t.time),"beforeplay"===n.video.state()&&n.video.play())})),g(n,"onMouseEnterOrFocusChapter",(function(e,t){t&&(n.chaptersPlugin().setChapterWithVisibleTitle(t.id),n.chaptersPlugin().setChapterWithFocusedMarker(t.id))})),g(n,"onMouseLeaveOrBlurChapter",(function(){n.chaptersPlugin().setChapterWithVisibleTitle(null),n.chaptersPlugin().setChapterWithFocusedMarker(null)})),g(n,"onDragStart",(function(e,t){n.video.requestControls("playbar-drag"),n.stateBeforeDrag=n.video.state(),n.onDrag(e,t),(0,o.doTimeout)("".concat(n.video.uuid,".maybe-pause-on-scrub"),(function(){(0,a.isMouseDown)()&&n.video.pause()}),300)})),g(n,"onDrag",(function(e,t){if(n.video){var i=t*n.video.duration();i!==n._timeSeekedToRecently&&(n.video.time(i),n._timeSeekedToRecently=i,(0,o.doTimeout)("".concat(n.video.uuid,".prevent-double-seek"),(function(){n._timeSeekedToRecently=null}),300))}})),g(n,"onDragEnd",(function(e,t){n.video&&(n.video.releaseControls("playbar-drag"),n.onDrag(e,t),n.video.trigger("playbardragend"),"beforeplay"!==n.stateBeforeDrag&&"playing"!==n.stateBeforeDrag||n.video.play())})),g(n,"onFocusPlaybar",(function(){n.video.enterInputContext("playbar-focus")})),g(n,"onBlurPlaybar",(function(){n.video.exitInputContext("playbar-focus")})),g(n,"onKeyDown",(function(e){var t=n.video;if(n.isVisible()&&!n.video._opts.spherical&&!(0,s.formInputIsFocused)()){var i=t.getInputContext();if("playbar-focus"===i||"player-mouseover"===i||"background-focus"===i||"player-focus"===i){var r=t.duration(),o=e.keyCode;if(32!==o){null==n.keyDownStartedAt&&(n.keyDownStartedAt=Date.now());var a=Date.now()-n.keyDownStartedAt,u=0;u="playing"===t.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(),t.time(t.time()-u)):1===l&&(e.preventDefault(),t.time(t.time()+u))}else"playbar-focus"!==i&&"player-mouseover"!==i||e.preventDefault()}}})),g(n,"onKeyUp",(function(e){if(n.isVisible()&&!(0,s.formInputIsFocused)()){n.keyDownStartedAt=null;var t=n.video;"playbar-focus"===t.getInputContext()&&32===e.keyCode&&("playing"===t.state()?t.pause():t.play())}})),n.PlaybarComponent=l.default,n.showTime=!0,n._barWidth=0,n._barLeftOffset=0,n}return 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&&m(e,t)}(t,e),n=t,c=[{key:"barWidth",get:function(){return this._barWidth}},{key:"barLeftOffset",get:function(){return this._barLeftOffset}},{key:"mount",value:function(e){var n,i,r,o,a,u=this;(n=t,i="mount",r=this,a=v(y(1&(o=3)?n.prototype:n),i,r),2&o&&"function"==typeof a?function(e){return a.apply(r,e)}:a)([e]),this.eventListeners.set("playercolorchange",(function(){return u.render()})),this.eventListeners.set("opaquecontrolschange",(function(){return u.render()})),this.eventListeners.set("resumablechange",(function(){return u.render()}));var l=this.video;this.unbinds.push(l.on("play",(function(){u.render()})),l.on("pause",(function(){u.render()})),l.on("progress",this.renderIfNotPlaying),l.on("timechange",(function(){u.render()})),l.on("end",(function(){u.render()})),l.on("widthchange",(function(){u.render()})),l.on("seeking",(function(){u.render()})),l.on("trimchange",(function(){u.renderNothing(),u.render()})),(0,s.elemBind)(document,"keydown",this.onKeyDown),(0,s.elemBind)(document,"keyup",this.onKeyUp));var c=function(){var e=l.plugin.chapters;u.unbinds.push(e.on("focuschange",(function(){u.render()})),e.on("changechapters",(function(){u.render()})))};l.plugin("chapters").then(c),l.on("plugininitialized",(function(e){"chapters"===e&&c()})),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(),this.props.controlBarBorderRadius!==e.controlBarBorderRadius&&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();return this._shouldShowStoryboard=e}},{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}})}}],c&&h(n.prototype,c),f&&h(n,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,c,f}(c.Control)},(e,t,n)=>{n.d(t,{default:()=>L});var i=n(194),r=n(98),o=n(116),a=n(18),s=n(24),u=n(2),l=n(20),c=n(162),d=n(54),h=n(195),p=n(180),f=n(88);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},v.apply(null,arguments)}function y(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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.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)?m(e,t):void 0}}(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=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,O(i.key),i)}}function b(e,t,n){return t=w(t),function(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)}(e,_()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function P(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(0,i.addInterNumbersFontFace)();var S,T,k,C=(0,l.cachedDetect)(),A="vulcanV2Player/shared/ui_components",j="w-playbar",I=1.001,M=function(e){return Math.min(1,Math.max(0,e))};const L=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),P(n=b(this,t,[e]),"onFocusChapterMarkers",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),P(n,"onFocus",(function(e){var t=n.props.onFocus;t&&t(e),(0,c.isMouseDown)()||n.setState({isKeyboardFocused:!0})})),P(n,"onFocusOut",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),P(n,"onMouseEnter",(function(e){n.touchEvents||(e.wistiaPlayerHandled=!0,n.setState({hoveredAt:Date.now(),isHovering:!0}),n.cachePositionDetails(),n.props.shouldShowStoryboard&&n.loadStoryboard())})),P(n,"onMouseLeave",(function(e){n.touchEvents||(e.wistiaPlayerHandled=!0,n.setState({hoveredAt:void 0,isHovering:!1}))})),P(n,"onMouseMove",(function(e){if(!n.touchEvents){e.wistiaPlayerHandled=!0;var t=n.getPercentFromPossiblyExternalMouseEvent(e);n.setState({hoverPercent:t})}})),P(n,"onMouseDown",(function(e){if(!n.touchEvents&&!e.wistiaPlayerHandled&&!e.ctrlKey){e.preventDefault(),n.wrapperElem.focus(),e.wistiaPlayerHandled=!0,n.cachePositionDetails();var t=n.getPercentFromPossiblyExternalMouseEvent(e);n.handleWithProp("onDragStart",e,t),n.setState({dragPercent:t,dragMode:!0,wasBeforePlayOnDrag:n.props.isBeforePlay}),(0,s.elemBind)(document,"mousemove",n.onMouseMoveDragging),(0,s.elemBind)(document,"mouseup",n.onMouseUpDragging)}})),P(n,"onMouseMoveDragging",(function(e){e.preventDefault(),e.wistiaPlayerHandled=!0;var t=n.getPercentFromPossiblyExternalMouseEvent(e);n.handleWithProp("onDrag",e,t),n.setState({dragPercent:t,dragMode:!0})})),P(n,"onMouseUpDragging",(function(e){e.wistiaPlayerHandled=!0;var t=n.getPercentFromPossiblyExternalMouseEvent(e);n.setState({dragPercent:t,dragMode:!1,isOverPlayhead:!1}),n.handleWithProp("onDragEnd",e,t),(0,s.elemUnbind)(document,"mousemove",n.onMouseMoveDragging),(0,s.elemUnbind)(document,"mouseup",n.onMouseUpDragging)})),P(n,"onTouchStart",(function(e){e.preventDefault(),e.wistiaPlayerHandled=!0,n.cachePositionDetails();var t=n.getPercentFromTouchEvent(e);n.handleWithProp("onDragStart",e,t),n.setState({dragPercent:t,dragMode:!0}),n.touchEvents.on("touchmove",n.onTouchMoveDragging),n.touchEvents.on("touchend",n.onTouchEndDragging)})),P(n,"onTouchMoveDragging",(function(e){e.preventDefault(),e.wistiaPlayerHandled=!0;var t=n.getPercentFromTouchEvent(e);n.handleWithProp("onDrag",e,t),n.setState({dragPercent:t,dragMode:!0})})),P(n,"onTouchEndDragging",(function(e){e.wistiaPlayerHandled=!0;var t=n.getPercentFromTouchEvent(e);n.setState({dragPercent:t,dragMode:!1,isOverPlayhead:!1}),n.handleWithProp("onDragEnd",e,t),n.touchEvents.off("touchmove",n.onTouchMoveDragging),n.touchEvents.off("touchend",n.onTouchEndDragging)})),P(n,"onMouseEnterPlayhead",(function(){n.setState({isOverPlayhead:!0})})),P(n,"onMouseLeavePlayhead",(function(){n.setState({isOverPlayhead:!1})})),P(n,"setWrapperRef",(function(e){n.wrapperElem=e,n.props.setPlaybarElemRef&&n.props.setPlaybarElemRef(e)})),P(n,"startAnimLoopIfPlaying",(function(){n.props.isPlaying&&n.props.isVisible&&requestAnimationFrame(n.continuouslyUpdatePlaybar)})),P(n,"stopAnimLoop",(function(){cancelAnimationFrame(n.animReq)})),P(n,"continuouslyUpdatePlaybar",(function(){n.drawCanvas(),n.maybeUpdateTimeText(),(0,a.assign)(n.playheadEl.style,n.playheadStyle()),n.startAnimLoopIfPlaying()})),P(n,"loadStoryboard",(function(){return(0,d.dynamicImport)("assets/external/vulcanV2Player/video/ui_components/Storyboard.js").then((function(e){k=e.Storyboard,n.setState({loadedStoryboard:!0})}))})),P(n,"loadChapters",(function(){return Promise.all([(0,d.dynamicImport)("assets/external/".concat(A,"/ChapterMarkers.js")),(0,d.dynamicImport)("assets/external/".concat(A,"/ChapterTitles.js"))]).then((function(e){var t=y(e,2),i=t[0],r=t[1];S=i.ChapterMarkers,T=r.ChapterTitles,n.setState({loadedChapters:!0})}))})),n.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},n.setColorsFromPlayerColor(e.color),e.chapters&&e.chapters.length>0&&n.loadChapters(),n.playheadScale=I,n}return 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&&E(e,t)}(t,e),n=t,i=[{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,s=i.hoverPercent,u=i.isHovering,l=i.isKeyboardFocused,c=i.isOverPlayhead,d=this.canvasWidth(),h=this.canvasHeight(),p=this.canvasEl.getContext("2d");p.globalCompositeOperation="source-over",p.clearRect(0,0,d,h);var f=this.unfilledBarWidth(),v=this.props.height*n/2;p.strokeStyle="".concat(this.props.playerIconColor,"99"),p.lineWidth=this.barHeight()*n,p.beginPath(),p.lineCap="round",p.moveTo(this.leftBarMargin()*n,v),p.lineTo((this.leftBarMargin()+f)*n,v),p.stroke();var y=this.playedPercent()*f;p.strokeStyle=new o.Color(this.props.playerIconColor).toRgba(),p.lineWidth=this.barHeight()*n,p.beginPath(),p.lineCap="round",p.moveTo(this.leftBarMargin()*n,v),p.lineTo((this.leftBarMargin()+y)*n,v),p.stroke();var m=this.props.chapters,g=this.props,b=g.chapterWithFocusedMarker,_=g.duration,w=1.4*this.barHeight()*n;if((null===(e=m)||void 0===e?void 0:e.length)>0){if(b){m=(0,a.clone)(m);for(var E=-1,P=0;P<m.length;P++)if(m[P].id===b.id){E=P;break}m.splice(E,1),m.push(b)}m.forEach((function(e){var i=e.time/_,r=(t.leftBarMargin()+i*f)*n,o=w;b===e&&(o*=1.5),p.beginPath(),p.arc(r,v,1.6*o,0,2*Math.PI),p.closePath(),p.globalCompositeOperation="destination-out",p.fill()})),m.forEach((function(e){var i=e.time/_,r=(t.leftBarMargin()+i*f)*n,a=.6,s=w;b===e&&(s*=2,a=1),p.beginPath(),p.arc(r,v,s,0,2*Math.PI),p.closePath(),p.globalCompositeOperation="source-over",p.fillStyle=new o.Color(t.props.playerIconColor).alpha(a).toRgba(),p.fill();var u=s-.75*t.barHeight()*n;p.beginPath(),p.arc(r,v,u,0,2*Math.PI),p.closePath(),p.globalCompositeOperation="destination-out",p.fillStyle="rgba(0,0,0,1)",p.fill()})),p.globalCompositeOperation="source-over"}var O=r||l||c,S=O?2:I,T=!1;S!==this.playheadScale&&(T=!0,this.playheadScale=O?2:I,this.lastScaledAt=Date.now());var k=O?0:100;T&&this.animateUntil(Date.now()+k);var C=0===k?1:2-Math.min(1,(Date.now()-this.lastScaledAt)/k),A=this.lastScaledAt?C*S:1,j=1.4*this.barHeight()*n*A,M=(this.leftBarMargin()+y)*n,L=2*j,D=2*L,B=p.createRadialGradient(M,v,0,M,v,L);if(B.addColorStop(0,new o.Color(this.props.playerIconColor).alpha(.5).toRgba()),B.addColorStop(1,new o.Color(this.props.playerIconColor).alpha(0).toRgba()),p.beginPath(),p.rect(M-L,v-L,D,D),p.closePath(),p.fillStyle=B,p.fill(),p.beginPath(),p.arc(M,v,j,0,2*Math.PI),p.closePath(),p.fillStyle=new o.Color(this.props.playerIconColor).alpha(1).toRgba(),p.fill(),l&&(p.beginPath(),p.arc(M,v,1.5*j,0,2*Math.PI),p.closePath(),p.strokeWidth=n||1,p.stroke()),u&&!r&&!b){p.beginPath();var x=1.4*this.barHeight()*n,R=(this.leftBarMargin()+s*this.unfilledBarWidth())*n-x/2;p.arc(R,v,x,0,2*Math.PI),p.closePath(),p.fillStyle="".concat(this.props.playerIconColor,"FF"),p.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:"maybeCallOnResize",value:function(){var e,t,n=this.unfilledBarWidth()+2,i=this.props.left+this.timeLeftPadding()+this.leftBarMargin()+this.timeWidth()-1;this._lastPlaybarWidth===n&&this._lastPlaybarBarLeftOffsetFromPlayerLeftEdge===i||(null===(e=(t=this.props).onResize)||void 0===e||e.call(t,{playbarBarWidth:n,playbarBarLeftOffsetFromPlayerLeftEdge:i}),this._lastPlaybarWidth=n,this._lastPlaybarBarLeftOffsetFromPlayerLeftEdge=i)}},{key:"render",value:function(){var e=this;return this.maybeCallOnResize(),this.oldWrapperElem=this.wrapperElem,(0,u.h)("div",{class:"".concat(j,"-wrapper w-css-reset w-css-reset-tree"),style:this.wrapperStyle()},this.props.shouldShowTime?this.renderTime():void 0,(0,u.h)("div",{style:{width:"100%",position:"relative"}},(0,u.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,u.h)("canvas",{height:this.canvasHeight(),ref:function(t){return e.canvasEl=t},style:this.canvasStyle(),width:this.canvasWidth()}),(0,u.h)("div",{onMouseEnter:this.onMouseEnterPlayhead,onMouseLeave:this.onMouseLeavePlayhead,ref:function(t){return e.playheadEl=t},style:this.playheadStyle()}),this.props.shouldShowStoryboard&&void 0!==k?(0,u.h)(k,v({},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,u.h)(h.default,{left:this.state.hoverPercent*this.unfilledBarWidth(),time:this.getHoverTime(),height:this.props.height,widthOfPlaybar:this.unfilledBarWidth()})),this.props.chapters&&this.props.chapters.length>0&&void 0!==S&&(0,u.h)("div",{"aria-label":"Chapter Markers",role:"toolbar",style:{bottom:0,height:"".concat(this.props.height,"px"),outline:"none",paddingLeft:"".concat(this.leftBarMargin(),"px"),paddingRight:"".concat(this.rightBarMargin(),"px"),pointerEvents:"none",position:"absolute",width:"100%"}},(0,u.h)(S,v({},this.props,{onFocus:this.onFocusChapterMarkers,paddingLeft:this.leftBarMargin(),paddingRight:this.rightBarMargin(),timeLeft:-10,timeRight:-10})),this.props.shouldShowChapterTitles?(0,u.h)(T,v({},this.props,{leftBarMargin:this.leftBarMargin(),left:this.props.left+this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin(),width:this.unfilledBarWidth()})):null)))}},{key:"renderTime",value:function(){var e=this;return(0,u.h)("div",{class:"".concat(j,"__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(),this.props.setTimeWidth(this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin()),this.props.setRightBarMargin(this.rightBarMargin())}},{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,s.elemUnbind)(document,"mousemove",this.onMouseMoveDragging),(0,s.elemUnbind)(document,"mouseup",this.onMouseUpDragging),this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null)}},{key:"getHoverTime",value:function(){return(0,f.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,f.flexibleDuration)(900).length,r=7*(0,f.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:this.props.playerIconColor,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,f.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:"".concat(this.props.playerIconColor,"99"),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(){var e=2*this.props.controlBarDistance;return this.props.width-this.timeLeftPadding()-this.timeWidth()-this.leftBarMargin()-this.rightBarMargin()-e}},{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?M(o/n):M(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 M(t-e.dragPercent)}return M((this.props.getCurrentBufferTime()-this.props.getCurrentTime())/this.props.duration)}},{key:"emptyPercent",value:function(){return 1-M(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,f.flexibleDuration)(e.dragPercent*t.duration):e.hasPlayed||this.props.getCurrentTime()>=1?(0,f.flexibleDuration)(t.getCurrentTime()):t.resumableTime?(0,f.flexibleDuration)(t.resumableTime):(0,f.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,f.accessibilityDuration)(this.props.getCurrentTime())}},{key:"cachePositionDetails",value:function(){this.offset=(0,s.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.Color(e).darken(30).alpha(.7),this.bufferedColor=new o.Color(e).lighten(75).alpha(.6),this.emptyColor=new o.Color(e).lighten(40).alpha(.3)}}],i&&g(n.prototype,i),l&&g(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,l}(u.Component)},(e,t,n)=>{n.d(t,{addInterNumbersFontFace:()=>a});var i=n(24),r=n(1),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(){r.Wistia._interNumbersFontFaceSemiBold||(r.Wistia._interNumbersFontFaceSemiBold=(0,i.addInlineCss)(document.body||document.head,o))};a()},(e,t,n)=>{n.d(t,{default:()=>d});var i=n(98),r=n(2);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,a(i.key),i)}}function a(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function s(e,t,n){return t=l(t),function(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)}(e,u()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}const d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,t,arguments)}return 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)}(t,e),n=t,(a=[{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:"var(--wistia-player-icon-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)}}])&&o(n.prototype,a),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,u}(r.Component)},(e,t,n)=>{var i=n(2),r=n(172),o=n(20),a=n(164),s=n(156),u=n(197);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,f(i.key),i)}}function c(e,t,n){return t=h(t),function(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)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var v=(0,o.cachedDetect)(),y=function(e){function t(e){var n,i,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=c(this,t,[e]),i=n,o=function(){n.playedOnce?n.video.isControlEnabled("centeredPlayPauseToggler")&&!n.props.chromeless||n.video._inNativeMode()||(n.ignoreNextPlayOrPause?n.ignoreNextPlayOrPause=!1:(n.isPlaying="playing"===n.video.state(),n.renderAndFade())):n.playedOnce=!0},(r=f(r="showIconAndFade"))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,n.isOpaque=!1,n.unbinds.push(e.on("play",n.showIconAndFade),e.on("pause",n.showIconAndFade)),n}return 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)}(t,e),n=t,(o=[{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)(u.RoundedSmallPlayButton,{isPlaying:!this.isPlaying,svgStyle:{color:"#fff"}})),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))"}}}])&&l(n.prototype,o),a&&l(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(a.Control);y.shouldMount=function(e){return!1!==e._attrs.playPauseNotifier&&!v.touchScreen},y.handle="playPauseNotifier",y.type="above-control-bar",(0,s.defineControl)(y)},(e,t,n)=>{n.d(t,{RoundedSmallPlayButton:()=>u});var i=n(2),r=n(163);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){var t=e.isPlaying,n=e.svgStyle,o=void 0===n?{}:n,s=e.marginLeft,u=void 0===s?0:s,l=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:a(a({},o),{},{fill:"none"})});return(0,i.h)("div",{style:{width:"100%",height:"100%",marginLeft:null!=u?u:0}},(0,i.h)("svg",l,t?(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.5 11C15.6716 11 15 11.6716 15 12.5V22.5C15 23.3284 15.6716 24 16.5 24H17.5C18.3284 24 19 23.3284 19 22.5V12.5C19 11.6716 18.3284 11 17.5 11H16.5ZM23.5 11C22.6716 11 22 11.6716 22 12.5V22.5C22 23.3284 22.6716 24 23.5 24H24.5C25.3284 24 26 23.3284 26 22.5V12.5C26 11.6716 25.3284 11 24.5 11H23.5Z",fill:"currentcolor"}):(0,i.h)("path",{d:"M24.888 16.1913C25.4371 16.5906 25.4371 17.4094 24.888 17.8087L16.5882 23.845C15.9272 24.3257 15 23.8535 15 23.0362V10.9638C15 10.1465 15.9272 9.67433 16.5882 10.155L24.888 16.1913Z",fill:"currentcolor"})))}},(e,t,n)=>{var i=n(2),r=n(125),o=n(164),a=n(199),s=n(200),u=n(156);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,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function d(e,t,n){return t=p(t),function(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)}(e,h()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=d(this,t,[e])).video=e,n.unbinds.push(e.on("play",(function(){return n.renderProgressIndicator()})),e.on("playrejected",(function(){return n.renderProgressIndicator()})),e.on("playpending",(function(){return n.renderProgressIndicator()})),e.on("up",(function(){return n.renderProgressIndicator()})),e.on("end",(function(){return n.renderProgressIndicator()}))),n}return 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&&f(e,t)}(t,e),n=t,(o=[{key:"boundedScale",value:function(){var e=this.props.scale;return Math.min(Math.max(e,.8),2)}},{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.ProgressIndicator,{color:this.video.playerColor(),isVisible:this._isVisible,percentWatched:e,scale:this.boundedScale()})),this.rootElem)}}])&&l(n.prototype,o),u&&l(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,u}(o.Control);v.handle="playbarlessProgressIndicator",v.type="foreground",v.sortValue=1800,v.shouldMount=function(e){return!e.isAudio()&&!1!==e._attrs.resumable&&"v1"!==e._opts.version&&!1===e._attrs.controlsVisibleOnLoad},(0,u.defineControl)(v)},(e,t,n)=>{n.d(t,{ProgressIndicator:()=>c});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,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function a(e,t,n){return t=u(t),function(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)}(e,s()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var c=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=a(this,t,[e])).state={filledWidth:0,isDisplayNone:!0,isOpaque:!1,widthTransitionShouldDelay:!0},n}return 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)}(t,e),n=t,(o=[{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(n.prototype,o),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(i.Component)},(e,t,n)=>{n.d(t,{default:()=>r});var i=(0,n(20).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._attrs.endVideoBehavior&&"ended"===e.state(),s=t.isPending&&"non-user-event"===t.source&&!e.isMuted()&&(!1===e._attrs.silentAutoplay||null==e._attrs.silentAutoplay)&&(i.iphone||i.ipad||i.safari);return e.up()&&("beforeplay"===e.state()||a)&&(r||s||o||a)}},(e,t,n)=>{var i=n(24),r=n(2),o=n(54),a=n(1),s=n(164),u=n(156),l=n(92),c=n(202);function d(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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.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)?h(e,t):void 0}}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=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,b(i.key),i)}}function f(e,t,n){return t=y(t),function(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)}(e,v()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(0,l.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 _=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(n=f(this,t,[e]),"onKeyUp",(function(e){var t=n.video.getInputContext(),r=["player-mouseover","player-focus","playbar-focus","background-focus"].indexOf(t)>=0;if(!(0,i.formInputIsFocused)()&&r&&n.getPlaybackRateEnabled()){if(">"===e.key){var o=Math.min(n.video.playbackRate()+.25,2);n.video.playbackRate(o)}if("<"===e.key){var a=Math.max(n.video.playbackRate()-.25,.5);n.video.playbackRate(a)}}})),g(n,"loadMenuCode",(function(){return Promise.all([(0,o.dynamicImport)("assets/external/interFontFace.js"),(0,o.dynamicImport)("assets/external/vulcanV2Player/video/controls/SettingsControl/dialog.js")]).then((function(e){var t=d(e,2)[1];if(!n.renderMenuImpl){var i=t.renderMenu,r=t.onSelect,o=t.focusItemParent;n.renderMenuImpl=i.bind(n),n.onSelect=r.bind(n),n.focusItemParent=o.bind(n)}}))})),g(n,"onMouseEnterButton",(function(){n.loadMenuCode()})),n.unbinds.push(e.on("playbackratechange",(function(){n.menuElem&&n.renderMenu()})),e.on("qualitychange",(function(){n.menuElem&&n.renderMenu()})),e.on("playerlanguagechange",(function(){n.menuElem&&n.renderMenu()})),(0,i.elemBind)(document,"keyup",n.onKeyUp)),e.hasData((function(){if(null==n._isQualityEnabled){var t=e._attrs.qualityControl;n._isQualityEnabled=!0===t||null==t}if(null==n._isPlaybackRateEnabled){var i=e._attrs.playbackRateControl;n._isPlaybackRateEnabled=!0===i||null==i}})),n}return 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&&m(e,t)}(t,e),n=t,(a=[{key:"translate",value:function(e){return(0,l.getTranslation)(this.props.playerLanguage.code,"SETTINGS_".concat(e))}},{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"isAtRootLevel",value:function(){var e;return null===(e=this.menuElem)||void 0===e?void 0:e.isAtRootLevel()}},{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,r.render)((0,r.h)(c.RoundedSettingsButton,{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(n.prototype,a),s&&p(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,s}(s.Control);_.shouldMount=function(e){var t=e._attrs,n=t.settingsControl,i=t.qualityControl,r=t.playbackRateControl;return!e.isLiveMedia()&&(!1!==n&&(!0===i||null==i||!0===r||null==r))},_.handle="settingsButton",_.type="control-bar-right",_.sortValue=200,_.isVideoChrome=!0,(0,u.defineControl)(_),a.Wistia.SettingsControl=_},(e,t,n)=>{n.d(t,{RoundedSettingsButton:()=>a});var i=n(2),r=n(163);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(null,arguments)}var a=function(e){var t=e.onMouseEnter,n=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:{fill:"none"}});return(0,i.h)("svg",o({},n,{onMouseEnter:t}),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M26.4 15.4H28.3C28.7 15.4 29 15.7 29 16.1V16.7C29 17.1 28.7 17.4 28.3 17.4H26.4C26 17.4 25.6 17.7 25.5 18.1L25.1 19.2C25 19.5 25 20 25.3 20.3L26.6 21.6C26.9 21.9 26.9 22.3 26.6 22.6L26.2 23C25.9 23.3 25.5 23.3 25.2 23L23.9 21.7C23.6 21.5 23.1 21.4 22.8 21.6L21.7 22.1C21.3 22.2 21 22.6 21 23V24.7C21 25.1 20.7 25.4 20.3 25.4H19.7C19.3 25.4 19 25.1 19 24.7V23C19 22.6 18.7 22.2 18.3 22.1L17.1 21.6C16.8 21.5 16.3 21.5 16 21.8L14.8 23C14.5 23.3 14.1 23.3 13.8 23L13.4 22.6C13.1 22.3 13.1 21.9 13.4 21.6L14.6 20.4C14.8 20.1 14.9 19.6 14.7 19.3L14.2 18.1C14.1 17.7 13.7 17.4 13.3 17.4H11.7C11.3 17.4 11 17.1 11 16.7V16.1C11 15.7 11.3 15.4 11.7 15.4H13.3C13.7 15.4 14.1 15.1 14.2 14.7L14.7 13.5C14.9 13.2 14.9 12.7 14.6 12.4L13.4 11.2C13.1 10.9 13.1 10.5 13.4 10.2L13.8 9.8C14.1 9.5 14.5 9.5 14.8 9.8L16 11C16.3 11.3 16.8 11.4 17.1 11.2L18.3 10.7C18.7 10.6 19 10.2 19 9.8V8.1C19 7.7 19.3 7.4 19.7 7.4H20.3C20.7 7.4 21 7.7 21 8.1V9.8C21 10.2 21.3 10.6 21.7 10.7L22.8 11.2C23.1 11.4 23.6 11.4 23.9 11.1L25.2 9.8C25.5 9.5 25.9 9.5 26.2 9.8L26.6 10.2C26.9 10.5 26.9 10.9 26.6 11.2L25.3 12.5C25 12.8 24.9 13.3 25.1 13.6L25.5 14.7C25.6 15.1 26 15.4 26.4 15.4ZM19.9 20.4C22 20.4 23.8 18.7 23.8 16.5C23.8 14.3 22.1 12.6 19.9 12.6C17.7 12.6 16 14.4 16 16.5C16 18.6 17.7 20.4 19.9 20.4Z",fill:"currentcolor"}))}},(e,t,n)=>{var i=n(2),r=n(156),o=n(164),a=n(92),s=n(197);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,f(i.key),i)}}function l(e,t,n){return t=d(t),function(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)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){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){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}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 y=(0,n(20).cachedDetect)(),m=new WeakSet,g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(n=l(this,t,[e]),m),p(n,"renderButton",(function(){if(n.buttonRoot){n.setButtonLabel(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(m,n,b).call(n));var e="playing"!==n.video.state()?"".concat(1.5*n.props.scale,"px"):0;(0,i.render)((0,i.h)(s.RoundedSmallPlayButton,{isPlaying:"playing"===n.video.state(),svgStyle:{verticalAlign:"top"},marginLeft:e}),n.buttonRoot),n.reactMounts=[n.rootElem]}})),p(n,"onClickButton",(function(){var e=n.video;"playing"===e.state()?e.pause():e.play()})),p(n,"onKeyDownButton",(function(e){32!==e.keyCode&&13!==e.keyCode||(e.__handledAlready=!0)})),n.unbinds.push(e.on("play",n.renderButton),e.on("pause",n.renderButton),e.on("end",n.renderButton)),e.isLiveMedia()?(n.disabledButton=!0,e.ready((function(){n.disabledButton=!1,n.renderButton()}))):n.disabledButton=!1,n}return 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)}(t,e),n=t,(r=[{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,a.getTranslation)(this.props.playerLanguage.code,"PLAY_BUTTON_".concat(e))}},{key:"pcfButtonWidth",value:function(){return 40}}])&&u(n.prototype,r),o&&u(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(o.Control);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._attrs.playPauseControl,n=!0===t||null==t,i=e._impl.ui&&e._impl.ui.shouldShowMoreDefaultValue();return!(y.iphone||y.ipad||y.android)&&!e.isAudio()&&e.aspect()<1?n:n&&i},g.handle="smallPlayButton",g.type="control-bar-left",g.sortValue=100,(0,r.defineControl)(g)},(e,t,n)=>{var i=n(2),r=n(156),o=n(164),a=n(205),s=n(92);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,l(i.key),i)}}function l(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function c(e,t,n){return t=h(t),function(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)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}(0,s.defineTranslations)("en-US",{STATUS_BAR_EMBED_CODE_COPIED:"Embed Code is now copied to your clipboard!"});var f=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=c(this,t,[e]))._isVisible=!1,n}return 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)}(t,e),n=t,r=[{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,s.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])}}],r&&u(n.prototype,r),o&&u(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(o.Control);f.handle="statusBar",f.type="background",(0,r.defineControl)(f)},(e,t,n)=>{n.d(t,{default:()=>p});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,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function a(e,t,n){return t=u(t),function(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)}(e,s()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,t,arguments)}return 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)}(t,e),n=t,(o=[{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)}}])&&r(n.prototype,o),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(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 p=c},(e,t,n)=>{var i=n(2),r=n(164),o=n(207),a=n(200),s=n(156);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},u.apply(null,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,v(i.key),i)}}function c(e,t,n){return t=h(t),function(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)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(n=c(this,t,[e]),"renderThumbnail",(function(e){var t=n.video,r=t.lastPlayInfo(),a=Date.now()-r.issuedAt,s=t.embedOptions().thumbnailAltText;n._isVisible=n.shouldShow();var l=!0===t._attrs.transparentLetterbox;(0,i.render)((0,i.h)(o.ProgressiveThumbnail,u({},n.props,{backgroundColor:l?"transparent":void 0,elemRef:function(e){return n.thumbnailElem=e},images:n.thumbnailAssets,isVisible:n.shouldShow(),onDisplay:e,hashedId:n.video.hashedId(),swatchEnabled:!t._attrs.poster&&n._swatchEnabled,uiHasRendered:n.video._impl.ui.hasRendered(),fitStrategy:n.video._opts.fitStrategy,thumbnailAltText:s})),n.rootElem),n._isVisible&&(n._hasRenderedVisible=!0);var c=2e3-a+1;n._isVisible&&a<2e3&&setTimeout((function(){n._destroyed||n.renderThumbnailAndUpdateSwatch()}),c),n.reactMounts=[n.rootElem]})),f(n,"renderThumbnailAndUpdateSwatch",(function(e){n.renderThumbnail(e),n.updateSwatch()})),n.unbinds.push(e.on("play",(function(){n._hasPlayed=!0,n.renderThumbnailAndUpdateSwatch()})),e.on("playrejected",(function(){n.renderThumbnailAndUpdateSwatch()})),e.on("playpending",(function(){n.renderThumbnailAndUpdateSwatch()})),e.on("up",n.renderThumbnailAndUpdateSwatch),e.on("end",n.renderThumbnailAndUpdateSwatch)),n.eventListeners.set("thumbnailchange",(function(){n.thumbnailAssets=n.video.thumbnailAssets(),n.renderThumbnailAndUpdateSwatch()})),n._swatchEnabled=e._opts.swatchEnabled?e._opts.swatchEnabled:e._embedContainer.querySelector(".wistia_swatch"),n}return 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)}(t,e),n=t,(r=[{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.renderThumbnailAndUpdateSwatch(e),t.video.embedded((function(){t.__destroyed||t.renderThumbnailAndUpdateSwatch()}))}));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","playerBorderRadius"].some((function(n){return t.props[n]!==e[n]}))&&this.renderThumbnailAndUpdateSwatch()}},{key:"updateSwatch",value:function(){var e=this.video._embedContainer.querySelector(".wistia_swatch");e&&(e.style.borderRadius="".concat(this.props.playerBorderRadius,"px"))}}])&&l(n.prototype,r),s&&l(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(r.Control);y.shouldShow=function(){return(0,a.default)(this.video)},y.shouldMount=function(e){return!e._opts.spherical},y.handle="thumbnail",y.type="background",y.sortValue=1e3,(0,s.defineControl)(y)},(e,t,n)=>{n.d(t,{ProgressiveThumbnail:()=>v});var i=n(18),r=n(2),o=n(32),a=n(208);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s.apply(null,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,f(i.key),i)}}function l(e,t,n){return t=d(t),function(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)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){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){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(n=l(this,t,[e]),"afterTwoSeconds",(function(){n._displayed||1!==n.state.normalThumbOpacity||n.setState({normalThumbOpacity:0})})),p(n,"onDisplayNormalThumb",(function(){n.setState({normalThumbOpacity:1}),n._displayed=!0,n.onDisplay&&n.onDisplay()})),n.state={normalThumbOpacity:e.isVisible?1:0},n.onDisplay=e.onDisplay,n}return 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)}(t,e),n=t,(c=[{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,playerBorderRadius:this.props.playerBorderRadius},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.Thumbnail,s({},t,{wrapperStyle:this.swatchWrapperStyle()})):null,this._hasRenderedVisible?(0,r.h)(a.Thumbnail,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(n.prototype,c),d&&u(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,c,d}(r.Component)},(e,t,n)=>{n.d(t,{Thumbnail:()=>f});var i=n(209),r=n(2),o=n(18),a=n(24),s=n(92);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,l(i.key),i)}}function l(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function c(e,t,n){return t=h(t),function(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)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}(0,s.defineTranslations)("en-US",{THUMBNAIL_VIDEO_THUMBNAIL:"Video Thumbnail"});var f=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=c(this,t,[e])).initialState=n.state={isLoaded:!1,isDisplaying:!1},n.onDisplay=n.props.onDisplay,n}return 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)}(t,e),n=t,l=[{key:"componentWillReceiveProps",value:function(e){e.images!==this.props.images&&(this._sortedImages=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,isDisplaying:!0})}),n.complete&&this.setState({isLoaded:!0,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():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",borderRadius:"".concat(this.props.playerBorderRadius,"px")})}},{key:"containStyle",value:function(){return{backgroundColor:this.props.backgroundColor||"#000",height:"100%",objectFit:"contain",position:"absolute",width:"100%",top:0,left:0}}},{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}}],l&&u(n.prototype,l),d&&u(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,l,d}(r.Component)},(e,t,n)=>{n.d(t,{bestImage:()=>r,blankImage:()=>o,sortedImages:()=>a});var i=n(32),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)=>{var i=n(53),r=n(24),o=n(2),a=n(20),s=n(54),u=n(92),l=n(156),c=n(211),d=n(164);function h(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return p(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(p(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,p(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,p(d,"constructor",l),p(l,"constructor",u),u.displayName="GeneratorFunction",p(l,r,"GeneratorFunction"),p(d),p(d,r,"Generator"),p(d,i,(function(){return this})),p(d,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:o,m:f}})()}function p(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}p=function(e,t,n,i){function o(t,n){p(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},p(e,t,n,i)}function f(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)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){f(o,i,r,a,s,"next",e)}function s(e){f(o,i,r,a,s,"throw",e)}a(void 0)}))}}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,E(i.key),i)}}function m(e,t,n){return t=b(t),function(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)}(e,g()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){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){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function w(e,t,n){return(t=E(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var P=(0,a.cachedDetect)();(0,u.defineTranslations)("en-US",{VOLUME_TITLE_WHEN_MUTED:"Unmute",VOLUME_TITLE_WHEN_UNMUTED:"Mute"});var O=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),w(n=m(this,t,[e]),"loadSliderCode",(function(){return(0,s.dynamicImport)("assets/external/vulcanV2Player/video/controls/VolumeSliderControl/VolumeSliderControl.js").then((function(e){(0,l.defineControl)(e.VolumeSliderControl)}))})),w(n,"onClickButton",(function(){P.touchScreen||n.toggleMute()})),w(n,"onFocusInButton",(function(){n._isFocused=!0,n.video.enterInputContext("volume-button-focus"),n.loadSliderCode()})),w(n,"onFocusOutButton",(function(){n._isFocused=!1,n.video.exitInputContext("volume-button-focus")})),w(n,"onMouseEnter",(function(){n.timeoutForCloseSlider&&clearTimeout(n.timeoutForCloseSlider),n.props.anyDialogOpen?n.timeoutForOpenSlider=setTimeout((function(){n.openSlider()}),300):n.openSlider()})),w(n,"onMouseLeave",(function(){clearTimeout(n.timeoutForOpenSlider),n.timeoutForCloseSlider&&clearTimeout(n.timeoutForCloseSlider),n._isFocused=!1,n.video.controls.volumeSlider&&(n.props.controlBarBorderRadius?n.timeoutForCloseSlider=setTimeout((function(){n.video.controls.volumeSlider.isVisible()||n.video.controls.volumeSlider.hide()}),300):n.video.controls.volumeSlider.hide())})),w(n,"openSlider",v(h().m((function e(){return h().w((function(e){for(;;)switch(e.n){case 0:return n._isFocused=!0,e.n=1,n.loadSliderCode();case 1:if(!n._isFocused){e.n=3;break}return e.n=2,n.video.controls.volumeSlider.mounted;case 2:n.video.controls.volumeSlider.show();case 3:return e.a(2)}}),e)})))),w(n,"onKeyUp",(function(e){if(!(0,r.formInputIsFocused)()&&!e.wistiaPlayerHandled){var t=n.video,o=t.getInputContext();"background-focus"!==o&&"player-mouseover"!==o&&"player-focus"!==o&&"volume-button-focus"!==o&&"volume-slider-focus"!==o||77===e.keyCode&&(t.isMuted()?(t.unmute(),(0,i.setViewerPreference)("muted",void 0)):(t.mute(),(0,i.setViewerPreference)("muted",!0)))}})),w(n,"onKeyDown",(function(e){if(!(0,r.formInputIsFocused)()&&!e.wistiaPlayerHandled){var t=n.video,o=t.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;t.volume(t.volume()+u),(0,i.setViewerPreference)("volume",t.volume())}else if(-1===s){e.preventDefault();var l=e.shiftKey?.01:.1;t.volume(t.volume()-l),(0,i.setViewerPreference)("volume",t.volume())}}}})),n.video=e,n.ariaPressed=Boolean(n.video.isMuted()),n.unbinds.push(e.on("volumechange",(function(){n.buttonRoot&&n.renderButton()})),(0,r.elemBind)(document,"keyup",n.onKeyUp),(0,r.elemBind)(document,"keydown",n.onKeyDown)),n}return 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&&_(e,t)}(t,e),n=t,(a=[{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)(c.RoundedVolumeButton,{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:"mute",value:function(){this.video.mute(),(0,i.setViewerPreference)("muted",!0)}},{key:"unmute",value:function(){this.video.unmute(),(0,i.setViewerPreference)("muted",void 0)}},{key:"toggleMute",value:function(){this.video.isMuted()?(this.ariaPressed=!1,this.unmute()):(this.ariaPressed=!0,this.mute())}}])&&y(n.prototype,a),d&&y(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,d}(d.Control);O.shouldMount=function(e){var t=e._attrs.volumeControl;return!(!0!==t&&null!=t||P.iphone||P.ipad||P.android)},O.handle="volumeButton",O.type="control-bar-right",O.sortValue=100,(0,l.defineControl)(O)},(e,t,n)=>{n.d(t,{RoundedVolumeButton:()=>a});var i=n(2),r=n(163),o="opacity 100ms",a=function(e){var t,n=e.volume,a=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:{fill:"none"}}),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;return e>.66?2:e>.33?1:e>0?0:-1};return(0,i.h)("svg",a,(0,i.h)("g",{style:{transform:"translateX(".concat((t=s(),0===t?7:t<2?3:1.25),"px)"),transition:"transform 100ms"}},(0,i.h)("path",{d:"M15.8 13.9995C15.3 14.4995 14.4 14.7995 13.8 14.7995H12.2C11.5 14.7995 11 15.2995 11 15.9995V17.5995C11 18.2995 11.5 18.7995 12.2 18.7995H13.8C14.5 18.7995 15.4 19.1995 15.8 19.5995L18.2 21.3999C18.5296 21.6472 19 21.412 19 20.9999V12.154C19 11.7163 18.4774 11.4899 18.1581 11.7892L15.8 13.9995Z",fill:"currentcolor"}),(0,i.h)("g",{stroke:"currentcolor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},(0,i.h)("path",{d:"M22 11.5C22 11.5 23.1 14 23.1 16.5C23.1 19 22 21.5 22 21.5",style:{opacity:s()>=1?1:0,transition:o}}),(0,i.h)("path",{d:"M26 9C26 9 27.7 12.8 27.7 16.5C27.7 20.2 26 24 26 24",style:{opacity:s()>=2?1:0,transition:o}}),(0,i.h)("g",{style:{opacity:s()<0?1:0,transition:o}},(0,i.h)("path",{d:"M22 14L27 19"}),(0,i.h)("path",{d:"M27 14L22 19"})))))}},(e,t,n)=>{var i=n(2),r=n(54),o=n(164),a=n(213),s=n(156);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},u.apply(null,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,f(i.key),i)}}function c(e,t,n){return t=h(t),function(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)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var v=function(e){function t(e){var n,i,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=c(this,t,[e]),i=n,o=function(e){n.video.setAriaLiveText(e)},(r=f(r="setAriaLiveText"))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,n.video=e,n.undbinds=[],n.undbinds.push(n.video.on("play",(function(){n.renderLiveStreamStatus()})),n.video.on("pause",(function(){n.renderLiveStreamStatus()})),n.video.on("end",(function(){n.renderLiveStreamStatus()})),n.video.on("widthchange",(function(){n.renderLiveStreamStatus()})),n.video.on("playerlanguagechange",(function(){n.renderLiveStreamStatus()}))),n.video.ready((function(){n.renderLiveStreamStatus()})),n}return 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)}(t,e),n=t,(o=[{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)("assets/external/interFontFace.js").then((function(){t.renderLiveStreamStatus(),t.reactMounts=[t.rootElem]}))}},{key:"renderLiveStreamStatus",value:function(){var e,t,n=null,r=!1;null!==(e=this.video._mediaData.liveStreamEventDetails)&&void 0!==e&&e.scheduledFor&&(n=new Date(this.video._mediaData.liveStreamEventDetails.scheduledFor)),null!==(t=this.video._mediaData.liveStreamEventDetails)&&void 0!==t&&t.enableCountdown&&(r=this.video._mediaData.liveStreamEventDetails.enableCountdown),(0,i.render)((0,i.h)(a.default,u({videoState:this.video.state(),videoReady:this.video.ready(),scheduledFor:n,setAriaLiveText:this.setAriaLiveText,enableCountdown:r},this.props)),this.rootElem)}}])&&l(n.prototype,o),s&&l(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(o.Control);v.handle="liveStreamStatusOverlay",v.type="foreground",v.sortValue=500,v.shouldMount=function(e){return e.isLiveMedia()},(0,s.defineControl)(v)},(e,t,n)=>{n.d(t,{default:()=>g});var i=n(2),r=n(3),o=n(98),a=n(214),s=n(92),u=n(88);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){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.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)?c(e,t):void 0}}(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=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,s.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,s.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",LIVE_STREAM_STATUS_WAITING_FOR_HOST_ARIA:"Waiting for host to connect to live stream"});var p={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 f(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(y({base:12,scale:n}),"px 0 0 ").concat(y({base:12,scale:n}),"px")}},t)}function v(e,t){var n,i=null===(n=p.states[e].on)||void 0===n?void 0:n[t.type];return void 0===i?e:i}function y(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(y({base:8,scale:n}),"px ").concat(y({base:12,scale:n}),"px"),display:"flex",color:"#fff",alignItems:"center",borderRadius:"4px",fontFamily:o.interFontFamily,fontSize:"".concat(y({base:14,scale:n}),"px")}},t)}const g=function(e){var t=this,n=e.controlsAreVisible,o=e.playerLanguage,c=e.scale,y=e.scheduledFor,g=e.videoReady,b=e.videoState,_=e.enableCountdown,w=l((0,r.useState)(new Date),2),E=w[0],P=w[1],O="playing"!==b||n,S=l((0,r.useReducer)(v,p.initial),2),T=S[0],k=S[1];(0,r.useEffect)((function(){"ended"===b?k({type:"END"}):g?k({type:"READY"}):!function(e){return!!e&&Date.now()<e.getTime()}(y)?k({type:"PAST_SCHEDULE"}):k(function(e){return!!e&&(0,u.getSecondsRemaining)(new Date,e)<3600}(y)?{type:"START_COUNTDOWN"}:{type:"NOT_READY"})}),[E,g,b]),(0,r.useEffect)((function(){t.props.setAriaLiveText(C())}),[T]),(0,r.useEffect)((function(){if("countdown"===T){var e=(0,u.getSecondsRemaining)(new Date,y),n=Math.ceil(e),i=Math.ceil(e/60),r=e/60,o="";i%5==0?o="".concat(A("COUNTDOWN")," ").concat(i," ").concat(A("MINUTES")):r&&n%5==0&&(o="".concat(A("COUNTDOWN")," ").concat(n," ").concat(A("SECONDS"))),t.props.setAriaLiveText(o)}}),[E]),(0,a.useInterval)((function(){return P(new Date)}),"live"===T||"ended"===T?null:1e3);var C=function(){switch(T){case"live":return A("LIVE_ARIA");case"ended":return A("STREAM_ENDED");case"waitingForHost":return A("WAITING_FOR_HOST_ARIA");case"beforeStream":return"".concat(A("SCHEDULED_FOR_ARIA")," ").concat(d(y,o.code))}},A=function(e){return(0,s.getTranslation)(o.code,"LIVE_STREAM_STATUS_".concat(e))};return(0,i.h)(f,{scale:c,show:O},(0,i.h)(m,{scale:c},"live"===T&&(0,i.h)(h,{state:"live"}),function(){switch(T){case"live":return A("LIVE");case"ended":return A("STREAM_ENDED");case"waitingForHost":return A("WAITING_FOR_HOST");case"beforeStream":return"".concat(A("SCHEDULED_FOR")," ").concat(d(y,o.code));case"countdown":return _?"".concat(A("COUNTDOWN")," ").concat((0,u.flexibleDuration)((0,u.getSecondsRemaining)(new Date,y))):A("WAITING_FOR_HOST")}}()))}},(e,t,n)=>{n.d(t,{useInterval:()=>r});var i=n(3);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:()=>p});var i=n(1),r=n(216),o=n(17);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,s(i.key),i)}}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function u(e,t,n){return t=c(t),function(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)}(e,l()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){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){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,t,arguments)}return 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)}(t,e),n=t,(r=[{key:"init",value:function(){var e=this,t=this.impl;t.embedded((function(){t.bestEngine()===o.MANUAL_QUALITY_ENGINE_PATH&&(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.Wistia.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.Wistia.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.Wistia.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.Wistia.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,2e3],sortBy:"width desc, bitrate desc"}),this._hdAsset}}])&&a(n.prototype,r),s&&a(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(r.PlayerBehavior);h.handle="bandwidthTest";const p=h},(e,t,n)=>{n.d(t,{PlayerBehavior:()=>a});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,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var a=function(){return e=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.embedElement=t.container,this.unbinds=[],this.eventListeners=new Map,this.namedUnbinds={}},(t=[{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(){var e=this;for(var t in this.unbinds instanceof Array&&this.unbinds.map((function(e){return e()})),this.eventListeners instanceof Map&&(this.eventListeners.forEach((function(t,n){e.embedElement.removeEventListener(n,t)})),this.eventListeners.clear()),this.namedUnbinds)i(this.namedUnbinds,t)&&this.namedUnbinds[t].map((function(e){return e()}));this.unbinds=[],this.namedUnbinds={},this.impl=null,this._destroyed=!0}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},(e,t,n)=>{n.d(t,{default:()=>M});var i=n(41),r=n(48),o=n(24),a=n(125),s=n(162),u=n(71),l=n(23),c=n(18),d=n(44),h=n(54),p=n(1),f=n(216),v=n(167),y=n(55);function m(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return g(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(g(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,g(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,g(d,"constructor",l),g(l,"constructor",u),u.displayName="GeneratorFunction",g(l,r,"GeneratorFunction"),g(d),g(d,r,"Generator"),g(d,i,(function(){return this})),g(d,"toString",(function(){return"[object Generator]"})),(m=function(){return{w:o,m:h}})()}function g(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}g=function(e,t,n,i){function o(t,n){g(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},g(e,t,n,i)}function b(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(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)}function E(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){w(o,i,r,a,s,"next",e)}function s(e){w(o,i,r,a,s,"throw",e)}a(void 0)}))}}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,A(i.key),i)}}function O(e,t,n){return t=T(t),function(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)}(e,S()?Reflect.construct(t,n||[],T(e).constructor):t.apply(e,n))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function C(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var j=(0,n(20).cachedDetect)(),I=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return C(e=O(this,t,[].concat(i)),"onFocusIn",(function(){var t=!(0,s.isMouseDownRecently)();e.impl&&e.impl.isKeyboardFocused(t)})),C(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._attrs.autoplay)&&t.isMuted();if(!(!0===t._attrs.transparentLetterbox)&&!n||t.inFullscreen()){var i=t._attrs.playerBackgroundColor||t._opts.backgroundColor||"#000";t.videoWrapper.style.backgroundColor=i||"#000"}else t.videoWrapper.style.backgroundColor="transparent"}})),C(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()&&r;if(i)if(!n.engine||"HlsVideo"!==n.engine.name&&"NativeHlsVideo"!==n.engine.name){if(o){var s=(0,a.getLastTime)(n.hashedId());n.time(s,{lazy:!0})}}else{var u=!1!==n._attrs.silentAutoplay||!0!==p.Wistia._specificTimeInitiated;if(o){var l=(0,a.getLastTime)(n.hashedId());n.engine.updateStartPosition(l)}else u&&n.engine.updateStartPosition(-1)}})),e}return 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&&k(e,t)}(t,e),n=t,f=[{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,n=this,i=this.impl,r=i&&i._opts.oldImpl;i.oldImpl=r||e,r&&r!==e?(this.impl.on("engine-initialized",(function(){r.rebuild(),r.fullRebuild()})),i.oldImpl=r):i.oldImpl=e,i.resetStateVariables(),i.videoWrapper=(0,o.elemFromObject)({class:"w-video-wrapper w-css-reset",style:{width:"100%",height:"100%"}}),"WISTIA-PLAYER"===(null===(t=i.embedElement)||void 0===t?void 0:t.tagName)&&(i.videoWrapper.style.display="flex",i.videoWrapper.style.alignItems="center"),this.updateBackgroundColor(),(0,o.elemPrepend)(i.implContainer(),i.videoWrapper),i.uiContainer||(i.uiContainer=(0,o.elemFromObject)({class:"w-ui-container",style:{height:"100%",pointerEvents:i._inNativeMode()?"none":"",left:0,position:"absolute",top:0,width:"100%"}}),(0,o.elemAppend)(i.implContainer(),i.uiContainer)),i.uiContainer.addEventListener("focusin",this.onFocusIn),i.up(E(m().m((function e(){var t,r,a;return m().w((function(e){for(;;)switch(e.p=e.n){case 0:if(n._preloadPreference=n.preloadValue(),!i._mediaData.protected||!i._attrs.authorization){e.n=4;break}return t=(0,v.multivariantM3u8Url)({mediaData:i._mediaData,attributes:n.engineAttributes()}),r=function(e){i.replaceWith(i.hashedId(),{notPlayableOptions:{fadeIn:!1,message:e,shouldRefresh:!1},playerForce:"notplayable"})},e.p=1,e.n=2,fetch(t,{mode:"cors",headers:{"Content-Type":"text/plain"}});case 2:!(a=e.v).ok&&String(a.status).startsWith(4)&&r("This video is set to private."),e.n=4;break;case 3:e.p=3,e.v,r("This video cannot be played.");case 4:i._replacing&&(n.initializeEngine(),i.info("embedded"),i.embedded(!0)),i.renderUI().then((function(){try{i.setupBindings()}catch(e){setTimeout((function(){throw e}),0)}(0,l.doTimeout)("".concat(i.uuid,".finish_embedding"),(function(){i.info("embedded"),i.embedded(!0),(0,y.countMetric)("player/hdr-codec-support",1,_(_({},j.hdrCodecs),{},{hdr:j.hdr})),(0,o.pageLoaded)((function(){n.initializeEngine()}))}),0)}));case 5:return e.a(2)}}),e,null,[[1,3]])})))),i.down()&&i.embedded(!0)}},{key:"preloadValue",value:function(){var e,t,n=this.impl;if(e=n._attrs.autoplay&&!n.publicApi.popover&&n.looksUp()?"auto":null!=n._attrs.preload?n._attrs.preload:n._mediaData.preloadPreference,n._mediaData.spherical)if(n._opts._inIframe)t="none";else{var r=[],o=(0,i.wData)("video");for(var a in o)r.push(o[a]);t=r.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=[],l=(0,i.wData)("video");for(var c in l)s.push(l[c]);t=n._opts._inIframe&&top!==parent||n._opts._inIframe&&(0,u.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,o.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._tracker=null,e.setupTracking(),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:"cleanOldImplEngine",value:function(){this.impl.oldImpl=null,this.impl.embedElement._oldEngine&&(this.impl.embedElement._oldEngine=null)}},{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,h.dynamicImport)("assets/external/".concat(n)).then((function(n){var i=n.default;if(t.grid)try{t._mediaData=(0,r.mediaDataTransforms)((0,c.clone)(t._mediaData),t._opts),t.engine=new i(t.videoWrapper,t._mediaData,e.engineAttributes(),e.otherEngine()),e.cleanOldImplEngine(),t.trigger("engine-initialized"),t.setupBindings(),e.checkForReady()}catch(e){t.error(e)}}))}}},{key:"engineAttributes",value:function(){var e,t,n,i,r,o,s,u,l,c,h=this.impl;h._opts.videoQuality?l=h._opts.videoQuality:(h._opts.videoFoam||h.videoWidth()>=720)&&(l="md"),h._bandwidthTest().isFresh()&&(c=h._bandwidthTest().savedResult().clientKbps);var f,v=h._opts.layoutTiming;(h._startPosition||h.shouldResume())&&(f=h._startPosition||(0,a.getLastTime)(h.hashedId())),h.isResumableEnabled()&&((0,a.atOrNearBeginning)(h.hashedId())?p.Wistia.Metrics.videoCount(h,"player/resumable-close-to-beginning"):(0,a.atOrNearEnd)(h.hashedId(),h.duration())&&p.Wistia.Metrics.videoCount(h,"player/resumable-close-to-end"));var y=0===h._opts.trimStart&&-1===h._opts.trimEnd,m=!0===h._attrs.transparentLetterbox,g=null===(e=h.embedOptions())||void 0===e||null===(t=e.plugin)||void 0===t||null===(n=t.passwordProtectedVideo)||void 0===n?void 0:n.password,b=null===(i=h.embedOptions())||void 0===i?void 0:i.channelId,_=null===(r=h.embedOptions())||void 0===r?void 0:r.channelPassword;return{audioPreference:h._attrs.audioPreference,allowHdr:!1!==h._opts.allowHdr&&(0,d.hasAnyReadyHdrAssets)(h._mediaData.assets),aspectRatio:null!==(o=h._attrs.aspect)&&void 0!==o?o:h._mediaData.aspectRatio,assetHost:h._opts.assetHost,authorization:h._attrs.authorization,backgroundColor:m?"transparent":h.playerBackgroundColor(),bitDepth:h._opts.bitDepth,channelId:b,channelPassword:_,clipForPoster:h._opts.clipForPoster,clipFrom:h._opts.clipFrom,clipTo:h._opts.clipTo,codec:h._opts.codec,controls:h._inNativeMode(),cuts:h._opts.cuts,deliveryCdn:h._opts.deliveryCdn,disallowOriginalFilePlayback:h._opts.disallowOriginalFilePlayback,duration:h._mediaData.duration,embedHost:h._opts.embedHost,fitStrategy:h._opts.fitStrategy,forceInstantHls:h._opts.forceInstantHls,forceOriginalFilePlayback:h._opts.forceOriginalFilePlayback,hashedId:h.hashedId(),height:h.videoHeight(),hls:h._opts.hls,isInstantHls:h.isInstantHls(),isWebComponentPlayer:"WISTIA-PLAYER"===(null===(s=h.embedElement)||void 0===s?void 0:s.tagName),layoutTiming:v,liveMedia:h.isLiveMedia(),loop:"loop"===h._attrs.endVideoBehavior,muted:h._muted,name:null===(u=h.name)||void 0===u?void 0:u.call(h),password:g,playbackRate:h._opts.playbackRate,playsinline:!0,preload:this._preloadPreference,qualityMax:h._attrs.qualityMax,qualityMin:h._attrs.qualityMin,savedBandwidth:c,silentAutoplay:h._attrs.silentAutoplay,startPosition:f,trimEnd:y?void 0:h._opts.trimEnd,trimStart:y?void 0:h._opts.trimStart,videoQuality:l,volume:h._attrs.volume,width:h.videoWidth()}}},{key:"otherEngine",value:function(){var e,t,n,i,r=this.impl;return null!==(e=r.oldImpl)&&void 0!==e&&e.engine?null===(n=r.oldImpl)||void 0===n?void 0:n.engine:null!==(t=r.embedElement)&&void 0!==t&&t._oldEngine?null===(i=r.embedElement)||void 0===i?void 0:i._oldEngine:null}}],f&&P(n.prototype,f),g&&P(n,g),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,f,g}(f.PlayerBehavior);I.handle="embed";const M=I},(e,t,n)=>{n.d(t,{default:()=>P});var i=n(20),r=n(11),o=n(23),a=n(55),s=n(47),u=n(24),l=n(108),c=n(1),d=n(216);function h(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(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 v(e,t,n){return t=m(t),function(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)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function b(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var w=(0,i.cachedDetect)(),E=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return b(e=v(this,t,[].concat(i)),"onEnterFullscreen",(function(t){var n=e.impl;t!==n.chrome&&n.embedElement!==t&&t!==n.embedElement.getRootNode().host||(n.info("_onEnterFullscreen"),n.trigger("beforeenterfullscreen"),e.setFullscreenStateOnEmbedElement({inFullscreen:!0}),n.notFullscreen(!1),n.behaviors.embed.updateBackgroundColor(),n.engine&&n.engine.onEnterFullscreen(),n.trigger("enterfullscreen"),n.embedElement.dispatchEvent(new CustomEvent("enter-fullscreen")),n.trigger("enter-fullscreen"))})),b(e,"onEnterWebkitFullscreen",(function(t){var n=e.impl;e.setFullscreenStateOnEmbedElement({inFullscreen:!0,nativeFullscreen:!0}),n.notFullscreen(!1),n.trigger("enterfullscreen"),n.embedElement.dispatchEvent(new CustomEvent("enter-fullscreen")),n.trigger("enter-fullscreen")})),b(e,"onCancelFullscreen",(function(){var t=e.impl,n=e.getFullscreenStateOnEmbedElement(),i=n.inFullscreen;if(n.nativeFullscreen)e.setFullscreenStateOnEmbedElement({inFullscreen:!1,nativeFullscreen:!1}),t.notFullscreen(!0),"WISTIA-PLAYER"===t.embedElement.tagName&&t.embedElement.cancelFullscreen(),t.engine&&t.engine.onLeaveFullscreen(),t.trigger("cancelfullscreen"),t.embedElement.dispatchEvent(new CustomEvent("cancel-fullscreen")),t.trigger("cancel-fullscreen");else if(i){t.info("onCancelFullscreen"),e.setFullscreenStateOnEmbedElement({inFullscreen:!1}),t.notFullscreen(!0),t.behaviors.embed.updateBackgroundColor(),e._inFakeFullscreen&&(e.impl.chrome.style.width=e.getFullscreenStateOnEmbedElement().widthBeforeFullscreen,e.impl.chrome.style.height=e.getFullscreenStateOnEmbedElement().heightBeforeFullscreen),"WISTIA-PLAYER"===t.embedElement.tagName&&t.embedElement.cancelFullscreen(),t.engine&&t.engine.onLeaveFullscreen();var r=t.width(),o=t.height(),a=(0,u.elemWidth)(window),s=(0,u.elemHeight)(window);t.trigger("widthchange",a,r),t.trigger("heightchange",s,o),t.trigger("cancelfullscreen"),t.embedElement.dispatchEvent(new CustomEvent("cancel-fullscreen")),t.trigger("cancel-fullscreen")}})),b(e,"fullscreenResizeToWindowFlurry",(function(){var t=e.impl;e.fullscreenResizeToWindow(),[0,50,100,200,300,500,1e3].forEach((function(n){(0,o.doTimeout)("".concat(t.uuid,".fs-resize-flurry-").concat(n),e.fullscreenResizeToWindow,n)}))})),b(e,"fullscreenResizeToWindow",(function(){var t=e.impl;if(t.inFullscreen()&&!e.getFullscreenStateOnEmbedElement().nativeFullscreen){t.debug("fullscreenResizeToWindow");var n=t.width(),i=t.height(),r=(0,u.elemWidth)(window),o=(0,u.elemHeight)(window);t.trigger("widthchange",r,n),t.trigger("heightchange",o,i),e._inFakeFullscreen&&(n!==r&&(e.impl.chrome.style.width="".concat(r,"px")),i!==o&&(e.impl.chrome.style.height="".concat(o,"px")))}})),b(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 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&&g(e,t)}(t,e),n=t,i=[{key:"init",value:function(){var e=this,t=this.impl;(0,s.isNil)(this.impl.embedElement._fullscreenState)&&(this.impl.embedElement._fullscreenState={heightBeforeFullscreen:void 0,inFullscreen:!1,nativeFullscreen:!1,widthBeforeFullscreen:void 0}),this.unbinds.push((0,r.globalOn)("enterfullscreen",this.onEnterFullscreen),(0,r.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)}))}},{key:"requestFullscreen",value:function(){var e=this.impl;return e.inFullscreen()?Promise.resolve():(e.info("requestFullscreen"),e._inNativeMode()&&e.engine?e.engine.requestFullscreen():w.fullscreenEnabled?(0,u.elemRequestFullscreen)(e.chrome):this.getAllowFakeFullscreen()?(this.enterFakeFullscreen(),Promise.resolve()):e.engine?("beforeplay"===e.state()&&(w.iphone||w.ipad)&&e.engine.play().then((function(){return e.engine.pause()})),e.engine.requestFullscreen()):Promise.resolve())}},{key:"cancelFullscreen",value:function(){var e=this.impl;return e.inFullscreen()?(e.info("cancelFullscreen"),e._inNativeMode()?e.engine.cancelFullscreen():w.fullscreenEnabled?(0,u.elemCancelFullscreen)():this.getAllowFakeFullscreen()?(this.cancelFakeFullscreen(),Promise.resolve()):e.engine.cancelFullscreen()):Promise.resolve()}},{key:"getAllowFakeFullscreen",value:function(){return!this.impl._opts._inIframe&&w.ios.version>=10&&this.impl._opts.fakeFullscreen}},{key:"enterFakeFullscreen",value:function(){var e=this.impl;this.setFullscreenStateOnEmbedElement({widthBeforeFullscreen:e.chrome.style.width,heightBeforeFullscreen:e.chrome.style.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;c.Wistia.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.onCancelFullscreen(e.chrome),this._inFakeFullscreen=!1,this._chromeParent&&this._chromeParent.appendChild(e.chrome),e.chrome.style.position="",(0,l.scrollLeft)(this._leftOffsetBeforeFullscreen),c.Wistia.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=e.behaviors&&e.behaviors.fullscreen;t&&(this.impl.embedElement._fullscreenState=e.embedElement._fullscreenState,t.getFullscreenStateOnEmbedElement().inFullscreen&&(0,a.countMetric)("player/replacewith-fullscreen",1,{inNativeFullscreen:this.inNativeFullscreen()}))}},{key:"inFullscreen",value:function(){return this.getFullscreenStateOnEmbedElement().inFullscreen}},{key:"inNativeFullscreen",value:function(){return this.getFullscreenStateOnEmbedElement().nativeFullscreen}},{key:"getFullscreenStateOnEmbedElement",value:function(){return this.impl.embedElement._fullscreenState||{}}},{key:"setFullscreenStateOnEmbedElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,s.isNotNil)(this.impl.embedElement._fullscreenState)){var t=p(p({},this.impl.embedElement._fullscreenState),e);this.impl.embedElement._fullscreenState=t}}}],i&&f(n.prototype,i),d&&f(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,d}(d.PlayerBehavior);E.handle="fullscreen",c.Wistia._onFullscreenChange||(c.Wistia._onFullscreenChange=function(){(0,u.fullscreenElement)()?(0,r.globalTrigger)("enterfullscreen",(0,u.fullscreenElement)()):(0,r.globalTrigger)("cancelfullscreen")},c.Wistia._initializers.initFullscreenTriggers=function(){(0,u.elemRebind)(document,"webkitfullscreenchange",c.Wistia._onFullscreenChange),(0,u.elemRebind)(document,"fullscreenchange",c.Wistia._onFullscreenChange)},c.Wistia._destructors.destroyFullscreenTriggers=function(){(0,u.elemUnbind)(document,"webkitfullscreenchange",c.Wistia._onFullscreenChange),(0,u.elemUnbind)(document,"fullscreenchange",c.Wistia._onFullscreenChange)});const P=E},(e,t,n)=>{n.d(t,{default:()=>p});var i=n(216),r=n(1);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,d(i.key),i)}}function a(e,t,n){return t=u(t),function(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)}(e,s()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(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,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var h=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return c(e=a(this,t,[].concat(i)),"onPlay",(function(){if(null==e._startedLoadingAt)return e._startedLoadingAt=Date.now(),e.impl.unbind})),c(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})),c(e,"onWaiting",(function(t){var n=e.impl,i=n.engine.anyBuffered();!e._noDataFor5Seconds&&t>=5&&!i&&(e._noDataFor5Seconds=!0,r.Wistia.Metrics.videoCount(n,"player/no-data/5-seconds")),!e._noDataFor10Seconds&&t>=10&&!i&&(e._noDataFor10Seconds=!0,r.Wistia.Metrics.videoCount(n,"player/no-data/10-seconds")),!e._noDataFor15Seconds&&t>=15&&!i&&(e._noDataFor15Seconds=!0,r.Wistia.Metrics.videoCount(n,"player/no-data/15-seconds"))})),c(e,"onClickedPlayBeforeReady",(function(){r.Wistia.Metrics.videoCount(e.impl,"player/clicked-play-before-ready")})),e}return 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)}(t,e),n=t,(i=[{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(n.prototype,i),s&&o(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(i.PlayerBehavior);h.handle="metrics";const p=h},(e,t,n)=>{n.d(t,{default:()=>f});var i=n(20),r=n(216),o=n(1);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,d(i.key),i)}}function s(e,t,n){return t=l(t),function(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)}(e,u()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}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(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var h=(0,i.cachedDetect)(),p=function(e){function t(){var e,n,i,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];return e=s(this,t,[].concat(u)),n=e,r=function(){var t=e.impl,n=t.getMediaElement();if(n&&n.error&&3===n.error.code&&/native_hls_video/.test(e.impl.bestEngine())){var i=t.lastPlayInfo().isPending;t.commandQueueOpen.clearSynchronized();var r=i?"playing":"not-playing";o.Wistia.Metrics.videoCount(t,"player/rebuild-non-hls-on-error/".concat(r)),e.unbinds.push(t.on("play",(function(){return o.Wistia.Metrics.videoCount(t,"player/rebuild-non-hls-on-error/".concat(r)),t.unbind}))),t.publicApi.fullRebuild({hls:!1,autoPlay:i&&!(h.ios.version&&h.ios.version<10.1)})}},(i=d(i="onError"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,e}return 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)}(t,e),n=t,(i=[{key:"init",value:function(){this.unbinds.push(this.impl.on("error",this.onError))}}])&&a(n.prototype,i),r&&a(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(r.PlayerBehavior);p.handle="playbackErrorHandling";const f=p},(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,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function o(e,t,n){return t=s(t),function(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)}(e,a()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}n.d(t,{ProblemMonitoringBehavior:()=>l});var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,t,arguments)}return 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)}(t,e),n=t,(r=[{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})}))]}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(n(216).PlayerBehavior);l.handle="problemMonitoring"},(e,t,n)=>{n.d(t,{default:()=>m});var i=n(9),r=(n(1),n(216)),o=n(24),a=n(15),s=n(17);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,v(i.key),i)}}function l(e,t,n){return t=h(t),function(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)}(e,c()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},d.apply(null,arguments)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var y=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),u=0;u<n;u++)r[u]=arguments[u];return f(e=l(this,t,[].concat(r)),"maybeFireStateAndTimeEvents",(function(){e.fireStateChangedEventsIfChanged(),e.fireTimeChangedEventsIfChanged()})),f(e,"onLookChange",(function(t){e.impl.trigger("lookchange",t)})),f(e,"onPause",(function(){e.maybeFireStateAndTimeEvents()})),f(e,"onPlaying",(function(){e._beforePlay=!1,e.maybeFireStateAndTimeEvents()})),f(e,"onEnded",(function(){e.maybeFireStateAndTimeEvents()})),f(e,"onAudioStreamChanged",(function(){e.impl.trigger("audiostreamchange")})),f(e,"onVolumeChange",(function(){var t=e.impl.isMuted();e.impl.trigger("volumechange",e.impl.volume(),t),e.impl.embedElement.dispatchEvent(new CustomEvent("volume-change",{detail:{volume:e.impl.volume(),isMuted:t}})),t!==e._isMuted&&(e._isMuted=t,e.impl.embedElement.dispatchEvent(new CustomEvent(a.MUTE_CHANGE_EVENT,{detail:{isMuted:t}})))})),f(e,"onRateChange",(function(){e.impl.trigger("playbackratechange",e.impl.playbackRate()),e.impl.embedElement.dispatchEvent(new CustomEvent("rate-change",{detail:{playbackRate:e.impl.playbackRate()}})),i.globalEventLoop.interval("".concat(e.impl.uuid,".events"),e.impl._eventLoopDuration)})),f(e,"onProgress",(function(t){e.impl.trigger("progress",t)})),f(e,"onError",(function(t){e.impl.trigger("error",t)})),f(e,"onHlsLevelSwitched",(function(t){e.impl.trigger("hlslevelswitched",t)})),f(e,"onHlsFatalErrorRebuild",(function(t){e.impl.fullRebuild({engine:s.MANUAL_QUALITY_ENGINE_PATH})})),f(e,"onSeeking",(function(t){e.impl.trigger("seeking",t),e.impl.embedElement.dispatchEvent(new CustomEvent("seeking"))})),f(e,"onTimeUpdate",(function(t){e.impl.embedElement.dispatchEvent(new CustomEvent("time-update"))})),f(e,"onLoadedData",(function(t){e.impl.embedElement.dispatchEvent(new CustomEvent("loaded-data"))})),f(e,"onLoadedMetadata",(function(t){e.impl.embedElement.dispatchEvent(new CustomEvent("loaded-metadata"))})),f(e,"onCanPlay",(function(t){e.impl.embedElement.dispatchEvent(new CustomEvent("can-play"))})),f(e,"onCanPlayThrough",(function(t){e.impl.embedElement.dispatchEvent(new CustomEvent("can-play-through"))})),f(e,"onCustomWaiting",(function(t){e._waiting=t,e.impl.trigger("waiting",t),e.impl.embedElement.dispatchEvent(new CustomEvent("waiting",{detail:{duration:t}}))})),f(e,"onCustomDoneWaiting",(function(t){e._waiting=-1,e.impl.trigger("done-waiting",t)})),f(e,"fireTimeChangedEventsIfChanged",(function(){if(!e._destroyed){var t=e.impl,n=!1,i=Date.now(),r=t.time(),a=r!==e._lastTimePosition,s=r-e._lastTimePosition,u=Math.floor(r),l=Math.floor(e._lastTimePosition),c=(i-e._lastClockTime)/1e3,d=t.playbackRate(),h="beforeplay"===t.state()&&r<.3,p=Math.abs(Math.floor(r)-Math.floor(e._lastTimePosition))>1;if(a&&r>=0&&!h){if(t.trigger("timechange",r),t.embedElement.dispatchEvent(new CustomEvent("timechange",{detail:{timePosition:r}})),u!==l){if(Math.abs(s/d-c)<.05&&p){n=!0;for(var f=l+1;f<u;f++)t.trigger("secondchange",f),t.embedElement.dispatchEvent(new CustomEvent("second-change",{detail:{second:f}}))}t.trigger("secondchange",u),t.embedElement.dispatchEvent(new CustomEvent("second-change",{detail:{second:u}}))}!e._beforePlay&&"ended"!==t.state()&&!n&&p&&Math.abs(r-e._lastTimePosition)>t._attrs.seekThreshold&&t.trigger("seek",r,e._lastTimePosition,{source:(0,o.currentEventSource)()}),e._lastTimePosition=r}return e._lastClockTime=i,Promise.resolve()}})),e}return 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)}(t,e),n=t,r=[{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),n.bind("fatalerrorrebuild",this.onHlsFatalErrorRebuild),n.bind("seeking",this.onSeeking),n.bind("timeupdate",this.onTimeUpdate),n.bind("loadeddata",this.onLoadedData),n.bind("loadedmetadata",this.onLoadedMetadata),n.bind("canplay",this.onCanPlay),n.bind("canplaythrough",this.onCanPlayThrough)),i.globalEventLoop.add("".concat(t.uuid,".events"),t._eventLoopDuration,(function(){if(!t.looksDown()){e.fireStateChangedEventsIfChanged(),e.fireTimeChangedEventsIfChanged();var n=t.getVideoQuality();n!==e._lastQuality&&(t.trigger("qualitychange",n),e._lastQuality=n)}}))}},{key:"destroy",value:function(){var e,n,r,o,a;i.globalEventLoop.remove("".concat(this.impl.uuid,".events")),(e=t,n="destroy",r=this,a=d(h(1&(o=3)?e.prototype:e),n,r),2&o&&"function"==typeof a?function(e){return a.apply(r,e)}:a)([])}},{key:"resetState",value:function(){this._waiting=-1,this._lastTimePosition=-1,this._beforePlay=!0,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,e.trigger("play",e.lastPlayInfo()),e.embedElement.dispatchEvent(new CustomEvent("play",{detail:{lastPlayInfo:e.lastPlayInfo()}}))),"paused"===t&&(e.trigger("pause",e.lastPauseInfo()),e.embedElement.dispatchEvent(new CustomEvent("pause",{detail:{lastPauseInfo:e.lastPauseInfo()}}))),"ended"===t&&(e.trigger("end"),e.embedElement.dispatchEvent(new Event("end")),e.embedElement.dispatchEvent(new Event("ended")),this.triggerAfterendTimeout()),this._lastState=t)}}},{key:"triggerAfterendTimeout",value:function(){var e=this;setTimeout((function(){e.impl.trigger("afterend")}),0)}}],r&&u(n.prototype,r),c&&u(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,c}(r.PlayerBehavior);y.handle="relayEvents";const m=y},(e,t,n)=>{n.d(t,{default:()=>h});var i=n(125);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,c(i.key),i)}}function o(e,t,n){return t=s(t),function(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)}(e,a()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}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,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var d=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return l(e=o(this,t,[].concat(r)),"onEnd",(function(){(0,i.setLastTime)(e._hashedId,e.impl.time()),e.destroyResumableKey()})),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 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)}(t,e),n=t,a=[{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()}}],a&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,s}(n(216).PlayerBehavior);d.handle="resumable";const h=d},(e,t,n)=>{n.d(t,{default:()=>Q});var i=n(225),r=n(35),o=n(2),a=n(162),s=n(172),u=n(20),l=n(23),c=n(18),d=n(120),h=n(24),p=n(1),f=n(216),v=n(226),y=n(232),m=n(234),g=n(231),b=n(96),_=n(235),w=n(236),E=n(237),P=n(238),O=n(117),S=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 T(e){return function(e){if(Array.isArray(e))return k(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){if("string"==typeof e)return k(e,t);var n={}.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)?k(e,t):void 0}}(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 k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},C.apply(null,arguments)}function A(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return j(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,u=e,h.n=n,a}};function p(n,i){for(s=n,u=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(j(t={},i,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,j(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,j(d,"constructor",l),j(l,"constructor",u),u.displayName="GeneratorFunction",j(l,r,"GeneratorFunction"),j(d),j(d,r,"Generator"),j(d,i,(function(){return this})),j(d,"toString",(function(){return"[object Generator]"})),(A=function(){return{w:o,m:h}})()}function j(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}j=function(e,t,n,i){function o(t,n){j(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},j(e,t,n,i)}function I(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)}function M(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){I(o,i,r,a,s,"next",e)}function s(e){I(o,i,r,a,s,"throw",e)}a(void 0)}))}}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,N(i.key),i)}}function D(e,t,n){return t=R(t),function(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)}(e,B()?Reflect.construct(t,n||[],R(e).constructor):t.apply(e,n))}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B=function(){return!!e})()}function x(){return x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=R(e)););return e}(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(null,arguments)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function W(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var H=(0,u.cachedDetect)(),V=function(e){return"control-bar-left"===e||"control-bar-right"===e||"wistia-logo"===e||"ellipsis"===e||"playbar"==e},U=["above-control-bar","background","control-bar-left","control-bar-right","wistia-logo","ellipsis","foreground","left-flyout","playbar","right-flyout"].reduce((function(e,t){return e[t]=!0,e}),{}),z=function(e){return e.pcfButtonWidth?e.pcfButtonWidth():e.wistiaLogoButtonWidth?e.wistiaLogoButtonWidth():null!=e.constructor.width?e.constructor.width:g.DEFAULT_BUTTON_WIDTH_PX},G=function(e){return e.pcfButtonHeight?e.pcfButtonHeight():null!=e.constructor.height?e.constructor.height:g.BASE_CONTROL_BAR_HEIGHT_PX},q=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return W(e=D(this,t,[].concat(i)),"onBlurButton",(function(t,n){var i=n.constructor.type;V(i)&&(n.__isFocused=!1,e.render())})),W(e,"onFocusButton",(function(t,n){var i=n.constructor.type;V(i)&&(n.__isFocused=!0,e.render())})),W(e,"onFocusComplete",(function(){e.impl.trigger("focuscomplete")})),W(e,"onFocusIn",(function(t){if(e.isMostRecentFocusViaMouse=(0,a.isMouseDownRecently)(),!(0,a.isMouseDownRecently)()&&!e._isMouseDownFromTouch||t.srcElement!==e.layoutRef){e.updateFocusedControl(t.target),e.impl.enterInputContext("player-focus");var n=e.isKeyboardFocused;e.isKeyboardFocused=!((0,a.isMouseDownRecently)()||e._isMouseDownFromTouch),!n&&e.isKeyboardFocused&&(e.impl.trigger("focusin",t),e.maybeToggleControls())}else t.srcElement.blur()})),W(e,"onFocusOut",(function(t){e._isDestroying||(e.updateFocusedControl(null),e.impl.exitInputContext("player-focus"),e.isKeyboardFocused?(0,l.doTimeout)("".concat(e.impl.uuid,".maybe_toggle_on_blur"),(function(){var n,i,r,o=document.activeElement;"WISTIA-PLAYER"===(null===(n=o)||void 0===n?void 0:n.tagName)&&(o=null===(i=o.shadowRoot)||void 0===i?void 0:i.activeElement);o&&(0,h.elemIsInside)(o,e.layoutRef)||(e.isKeyboardFocused=!1,null===(r=e.impl)||void 0===r||r.trigger("focusout",t),e.maybeToggleControls())}),1e3):(0,l.doTimeout)("".concat(e.impl.uuid,".maybe_toggle_on_blur"),e.maybeToggleControls,50))})),W(e,"onKeyDown",(function(t){if(t.target===e.layoutRef){var n=t.keyCode;t.__handledAlready||32!==n&&13!==n||e.togglePlay()}})),W(e,"onMouseEnter",(function(t){e.impl.trigger("mouseenter",t),e.isHovering=!0,e.maybeToggleControls(),e.impl.enterInputContext("player-mouseover")})),W(e,"onMouseLeave",(function(t){e.impl.trigger("mouseleave",t),e.isHovering=!1,e.maybeToggleControls(),e.impl.exitInputContext("player-mouseover")})),W(e,"onMouseMove",(function(t){if(!H.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())))}})),W(e,"onClick",(function(t){var n;e.lastMovedMouseAt=Date.now();var i=null===(n=p.Wistia.PopoverV3)||void 0===n?void 0:n._activePopover,r=!(0,a.isMouseDownRecently)();i&&i.setShouldShowFocusOutline(r),e.lastPageX=t.pageX,e.lastPageY=t.pageY,(0,h.elemIsInside)(t.target,e.backgroundElem)?H.touchScreen?(e.isBeforePlayOrReset()?e.impl.play():e.isChromeless()?e.togglePlay():H.ios.version&&H.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(r),e.impl.focus()):"beforeplay"!==e.impl.state()&&(e.tappedToHide=!1,e.maybeToggleControls(),setTimeout(e.maybeToggleControls,e.showControlsTimeout()))})),W(e,"onDblClick",(function(t){if(!H.touchScreen&&(0,h.elemIsInside)(t.target,e.backgroundElem)){var n=e.impl;e.impl.isControlEnabled("fullscreenControl")&&(n.inFullscreen()?n.cancelFullscreen():n.requestFullscreen())}})),W(e,"onTouchStart",(function(t){t._touchStartFromControlDialog&&(e._touchStartFromControlDialog=!0),e._cancelSwipe=!e.impl.inFullscreen()})),W(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)")})}}})),W(e,"onPinch",(function(t,n){if(e.impl.isControlEnabled("fullscreenControl")){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,")")})}})),W(e,"onTouchEnd",(function(){if(e.impl.isControlEnabled("fullscreenControl")){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}})),W(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()}})),W(e,"mountRefsFn",(function(t){(0,c.assign)(e.mountRefs,t)})),W(e,"backgroundRefFn",(function(t){e.backgroundElem=t})),e}return 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&&F(e,t)}(t,e),n=t,u=[{key:"init",value:function(){this.mountPromises=[],this.controls={},this.controlsByType={},this.dialogs=[],this.mountRefs={},this.buttonMountRefs={},this.lastRenderPromise=Promise.resolve(),this.lastMouseMoveWasFromBackground=!0,this._touchStartFromControlDialog=!1,this._ariaLiveText="",this._previousBorderRadiusOn=!1,this._isDestroying=!1,this._viewerCaptionSettings=(0,b.getCaptionSettings)(),this.domId||(this.domId=(0,r.seqId)("w-vulcan-v2-"))}},{key:"bigPlayButtonBorderRadius",value:function(){return this.impl._attrs.bigPlayButtonBorderRadius*this.scale()}},{key:"controlBarBorderRadius",value:function(){return this.impl._attrs.controlBarBorderRadius*this.scale()}},{key:"controlBarDistance",value:function(){return this.impl._attrs.controlBarDistance*this.scale()}},{key:"controlBarWidth",value:function(){return this.videoWidth()-2*this.controlBarDistance()}},{key:"captionsBackgroundColor",value:function(){var e,t;return null!==(e=null===(t=this._viewerCaptionSettings)||void 0===t?void 0:t.backgroundColor)&&void 0!==e?e:this.impl._attrs.captionsBackgroundColor}},{key:"captionsBackgroundOpacityPercentage",value:function(){var e;return null!=(null===(e=this._viewerCaptionSettings)||void 0===e?void 0:e.backgroundOpacityPercentage)?this._viewerCaptionSettings.backgroundOpacityPercentage/100:.7}},{key:"captionsTextColor",value:function(){var e,t;return null!==(e=null===(t=this._viewerCaptionSettings)||void 0===t?void 0:t.fontColor)&&void 0!==e?e:this.impl._attrs.captionsTextColor}},{key:"captionsTextSize",value:function(){var e;return null!=(null===(e=this._viewerCaptionSettings)||void 0===e?void 0:e.fontSize)?(0,_.convertFontSizePercentageToPx)(this._viewerCaptionSettings.fontSize):this.impl._attrs.captionsTextSize}},{key:"captionsTextShadow",value:function(){var e,t;return(0,E.getTextShadowForCharacterEdgeStyle)({characterEdgeStyle:null!==(e=null===(t=this._viewerCaptionSettings)||void 0===t?void 0:t.characterEdgeStyle)&&void 0!==e?e:"none",scale:this.scale()})}},{key:"captionsTextOpacityPercentage",value:function(){var e;return null!=(null===(e=this._viewerCaptionSettings)||void 0===e?void 0:e.fontOpacityPercentage)?this._viewerCaptionSettings.fontOpacityPercentage/100:1}},{key:"captionsFontFamily",value:function(){var e;return null!=(null===(e=this._viewerCaptionSettings)||void 0===e?void 0:e.fontFamily)?(0,w.getFontFamilyForFontOptionLabel)(this._viewerCaptionSettings.fontFamily):this.impl._attrs.captionsFontFamily}},{key:"captionsFontVariant",value:function(){return(0,P.getFontVariantForFontOptionLabel)(this.captionsFontFamily())}},{key:"captionsBorderRadius",value:function(){return this.impl._attrs.captionsBorderRadius}},{key:"captionsWindowColor",value:function(){var e,t;return null!==(e=null===(t=this._viewerCaptionSettings)||void 0===t?void 0:t.windowColor)&&void 0!==e?e:"#000"}},{key:"captionsWindowOpacityPercentage",value:function(){var e;return null!=(null===(e=this._viewerCaptionSettings)||void 0===e?void 0:e.windowOpacityPercentage)?this._viewerCaptionSettings.windowOpacityPercentage/100:0}},{key:"setupBindings",value:function(){var e=this;this._hasSetupBindings=!0;var t=this.impl;this.video=t.video,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(){H.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,l.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,l.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("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()})),p.Wistia.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,a.isMouseDown)()&&(e._isMouseDownFromTouch=!0),setTimeout((function(){e._isMouseDownFromTouch=!1,e.render()}),50)}))),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("livestream-mediadata-changed",(function(t){e.impl._mediaData=t,e.impl.behaviors.embed.rebuild()})),e.impl.engine.bind("livestreamready",(function(){e.impl.ready((function(){e.impl.play()}))})))}))}},{key:"setupEventListeners",value:function(){var e=this;this._hasSetupEventListeners=!0,this.eventListeners instanceof Map&&(this.eventListeners.set("bigplaybuttonborderradiuschange",(function(){e.resetCssReset(),e.render()})),this.eventListeners.set("controlbarborderradiuschange",(function(){e.resetCssReset(),e.render()})),this.eventListeners.set("playerborderradiuschange",(function(){e.resetCssReset(),e.render()})),this.eventListeners.set("playercolorchange",(function(){return e.render()})),this.eventListeners.set("opaquecontrolschange",(function(){return e.render()})),this.eventListeners.set("captionsbackgroundcolorchange",(function(){e.render()})),this.eventListeners.set("captionstextcolorchange",(function(){e.render()})),this.eventListeners.set("captionstextsizechange",(function(){e.render()})),this.eventListeners.set("captionsfontfamilychange",(function(){e.render()})),this.eventListeners.set("captionsborderradiuschange",(function(){e.render()})),this.eventListeners.set("captionssettingschange",(function(){e._viewerCaptionSettings=(0,b.getCaptionSettings)(),e.render()})),this.eventListeners.forEach((function(t,n){e.embedElement.addEventListener(n,t)})))}},{key:"backgroundGradientCss",value:function(){var e=this.impl._attrs.playerColorGradient;if(null!=e&&e.on)return(0,d.getCssGradient)(e)}},{key:"contrastIcons",value:function(){return this.impl.contrastIcons()}},{key:"opaqueControls",value:function(){return this.impl.opaqueControls()}},{key:"shouldUseAccessibleIconColor",value:function(){return this.impl._attrs.contrastIcons}},{key:"render",value:function(){var e=this;if(this.isRendering&&this.lastRenderPromise)return this.queuedRenderPromise||(this.queuedRenderPromise=this.lastRenderPromise.then(M(A().m((function t(){return A().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,e.render();case 1:e.queuedRenderPromise=void 0;case 2:return t.a(2)}}),t)}))))),this.queuedRenderPromise;var t=this.impl;if(this._destroyed||!t.grid)return new Promise((function(){}));if(this._hasSetupBindings||this.setupBindings(),this._hasSetupEventListeners||this.setupEventListeners(),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,a=i.existingControls;e.setControlProps();var s=null!=e._shouldShowControls?e._shouldShowControls:e.shouldShowControls();e._areControlsVisible=e._shouldShowControls,(0,h.elemStyle)(e.impl.chrome,{borderRadius:"".concat(e.playerBorderRadius(),"px"),clipPath:"inset(.5px round ".concat(e.playerBorderRadius(),"px)")}),(0,o.render)((0,o.h)(m.default,{ariaLiveText:e._ariaLiveText,afterRender:r.length>0?function(){e.afterRender(a,r,n)}:null,allMounted:e.allMounted,backgroundRef:e.backgroundRefFn,bottomBarRightInnerRef:function(t){e.bottomBarRightInnerRef=t},color:t.playerColor(),controlBarHeight:e.controlBarHeight(),controlBarBorderRadius:e.controlBarBorderRadius(),controlsByType:e.controlsByType,domId:e.domId,doneWaitingForPlay:e.doneWaitingForPlay,playerIconColor:e.playerIconColor(),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,opaqueControls:e.opaqueControls(),contrastIcons:e.contrastIcons(),controlBarDistance:e.controlBarDistance(),playerBorderRadius:e.playerBorderRadius(),playerLanguage:t.playerLanguage(),rightControlWidth:e.rightControlWidth,scale:e.scale(),shouldAnimateIn:"WISTIA-PLAYER"===e.embedElement.tagName,shouldShowControls:s,videoHeight:e.videoHeight(),videoState:t.state(),videoWidth:e.videoWidth(),backgroundGradientCss:e.backgroundGradientCss()}),t.uiContainer),0===r.length&&e.afterRender(a,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,l.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(){return i.allMounted=!0,i.render()})).then(n),0===this.mountPromises.length&&n(),this.doneWaitingForPlay?this.allMountedPromise.then((function(){i.showVideoWrapper()})):((0,l.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:"resetCssReset",value:function(){var e=Boolean(this.impl._attrs.controlBarBorderRadius||this.impl._attrs.bigPlayButtonBorderRadius);this.cssResetStyle&&this._previousBorderRadiusOn!==e&&((0,h.elemRemove)(this.cssResetStyle),this.cssResetStyle=null,this._previousBorderRadiusOn=e)}},{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(),d=this.videoWidth(),p=this.vulcOffset=(0,h.elemOffset)(t.grid.center),f=this.bottomBarOffset={left:p.left,top:p.top+this.videoHeight()-this.controlBarHeight()},v=0;this.getControlsByType("control-bar-left").forEach((function(o,c){o.__prevProps=o.props,o.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:e.createFocusNextControlFunction(o),height:Math.round(G(o)*u),isMostRecentFocusViaMouse:a,left:v,isLeftMostControl:0===v,isRightMostControl:t.isControlDisabled("playbar"),playerIconColor:e.playerIconColor(),playerLanguage:s,scale:u,videoHeight:l,videoWidth:d,width:Math.round(z(o))*u},v+=o.props.width})),this.leftControlWidth=v;var y=this.getControlsByType("control-bar-right","wistia-logo","ellipsis");y.forEach((function(o,c){o.__prevProps=o.props,o.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:e.createFocusNextControlFunction(o),height:Math.round(G(o)*u),isMostRecentFocusViaMouse:a,isLeftMostControl:0===c&&t.isControlDisabled("playbar"),isRightMostControl:c===y.length-1,playerIconColor:e.playerIconColor(),playerLanguage:s,scale:u,videoHeight:l,videoWidth:d,width:Math.round(z(o))*u},"volumeButton"===o.constructor.handle&&c===y.length-2&&(o.props.isRightMostControl=!0),"volumeSlider"===o.constructor.handle&&c===y.length-1&&(o.props.isRightMostControl=!1)}));var m=0;this.getControlsByType("ellipsis").slice().reverse().forEach((function(e){m+=e.props.width,e.props.left=d-m})),this.ellipsisWidth=m;var g=0;this.getControlsByType("wistia-logo").slice().reverse().forEach((function(e){m+=Math.round(e.largestButtonWidth)*u,g+=e.props.width,e.props.left=d-m})),this.wistiaLogoWidth=g,this.getControlsByType("control-bar-right").slice().reverse().forEach((function(e){m+=e.props.width,e.props.left=d-m})),this.rightControlWidth=m;var b=this.leftControlWidth+(this.ellipsisWidth>0?this.ellipsisWidth+this.wistiaLogoWidth:this.rightControlWidth),_=d-b,w=this.getControlsByType("playbar")[0];w&&(w.__prevProps=w.props,w.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:this.createFocusNextControlFunction(w),height:this.controlBarHeight(),isMostRecentFocusViaMouse:a,left:v,playerIconColor:this.playerIconColor(),playerLanguage:s,scale:u,videoHeight:l,videoWidth:d,width:_}),this.playbarControlWidth=_;var E=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:E,isFocusable:e.allMounted&&e.doneWaitingForPlay,controlsAreVisible:r,focusNextVisibleControl:e.createFocusNextControlFunction(t),isHoveringOnPlayer:o,isMostRecentFocusViaMouse:a,playerIconColor:e.playerIconColor(),playerLanguage:s,scale:u,videoHeight:l,videoWidth:d}}))}));var P=f.top;this.eachButtonControl((function(e){e.props.top=P})),w&&(0,c.assign)(w.props,{top:P}),this.eachControl((function(t){t.props.bigPlayButtonBorderRadius=e.bigPlayButtonBorderRadius(),t.props.controlBarBorderRadius=e.controlBarBorderRadius(),t.props.controlBarDistance=e.controlBarDistance(),t.props.controlBarWidth=e.controlBarWidth(),t.props.leftControlBarWidth=e.leftControlWidth,t.props.playerBorderRadius=e.playerBorderRadius(),t.props.rightControlBarWidth=e.rightControlWidth})),this.forControls(["captions"],(function(t){t.props.captionsBackgroundColor=e.captionsBackgroundColor(),t.props.captionsBackgroundOpacityPercentage=e.captionsBackgroundOpacityPercentage(),t.props.captionsTextColor=e.captionsTextColor(),t.props.captionsTextSize=e.captionsTextSize(),t.props.captionsTextOpacityPercentage=e.captionsTextOpacityPercentage(),t.props.captionsFontFamily=e.captionsFontFamily(),t.props.captionsFontVariant=e.captionsFontVariant(),t.props.captionsBorderRadius=e.captionsBorderRadius(),t.props.captionsTextShadow=e.captionsTextShadow(),t.props.captionsWindowColor=e.captionsWindowColor(),t.props.captionsWindowOpacityPercentage=e.captionsWindowOpacityPercentage()}))}},{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,i=[],r=function(){var r=e.controls[o];if(U[r.constructor.type]){var a=r.constructor.shouldMount;if(t.isControlDisabled(o)||a&&!a(t.publicApi)){if(r.destroy)try{r.destroy()}catch(e){setTimeout((function(){throw e}),1)}r.__destroyed=!0,delete e.mountRefs[o],delete e.buttonMountRefs[o],delete e.controls[Y(r)],n=!0,i.push(r),t.trigger("controldestroyed",o)}}};for(var o in this.controls)r();var a=!1,s=[],u=[],l=function(n){var i=p.Wistia._controlDefinitions[n];if(U[i.type]){var r=null!=e.controls[n],o=!t.isControlDisabled(n)&&(null==i.shouldMount||i.shouldMount(t.publicApi));if(o&&r&&u.push(e.controls[n]),!r&&o){try{var l=e.controls[n]=new i(t);l.mounted=new Promise((function(e){l.__didMount=function(){l.mounted.isResolved=!0,t.trigger("controlmounted",n),e()}})),s.push(l)}catch(e){setTimeout((function(){throw e}),1)}a=!0}}};for(var c in p.Wistia._controlDefinitions)l(c);if(a||n){var d={};for(var h in this.eachControl((function(e){var t=e.constructor.type;null==d[t]&&(d[t]=[]),d[t].push(e)})),d)d[h].sort((function(e,t){return(e.constructor.sortValue||0)-(t.constructor.sortValue||0)}));this.controlsByType=d,t.publicApi.controls=t.controls=this.controls}return{newControls:s,existingControls:u,destroyedControls:i}}},{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=Y(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]:{};return"control-bar-right"===n?t.renderButtonWithDialogLoader(e,i):t.renderHourglassLoader(i,r)}),"control-bar-left"===n||"control-bar-right"===n||"wistia-logo"===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)}));e.eventListeners instanceof Map&&e.eventListeners.forEach((function(t,n){e.embedElement.addEventListener(n,t)}))}))}},{key:"mountControl",value:function(e,t){try{var n=Y(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=Y(e);if(this.impl){try{e.mountDialog&&!e.dialog&&(e.dialog=new y.default(this,{dialogWillOpen:K(e.controlDialogWillOpen,e),dialogOpened:K(e.controlDialogOpened,e),dialogWillClose:K(e.controlDialogWillClose,e),dialogClosed:K(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,o.render)((0,o.h)(v.default,C({},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 o="".concat(n.impl.uuid,".loading_dialog_indicator.").concat((0,r.seqId)());(0,l.doTimeout)(o,(function(){n.setLoadingDialogAndRender(e,!0),H.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,l.clearTimeouts)(o),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 o="".concat(n.impl.uuid,".loading_indicator.").concat((0,r.seqId)());(0,l.doTimeout)(o,(function(){n.controls.loadingHourglass.show(t),H.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,l.clearTimeouts)(o),n.controls.loadingHourglass.hide(),i()}))}))}},{key:"forControl",value:function(e,t){var n=this.controls[e];n&&U[n.constructor.type]&&t(n)}},{key:"forControls",value:function(e,t){var n=this;e.forEach((function(e){n.forControl(e,t)}))}},{key:"eachControl",value:function(e){for(var t in this.controls)U[this.controls[t].constructor.type]&&e(this.controls[t])}},{key:"eachButtonControl",value:function(e){this.getControlsByType("control-bar-left","control-bar-right","wistia-logo","ellipsis").forEach(e)}},{key:"spaceForPlaybar",value:function(){var e=0;return this.eachButtonControl((function(t){e+=z(t)})),this.videoWidth()-e*this.scale()}},{key:"controlBarHeight",value:function(){var e=this.impl;return this.isBeforePlayOrReset()&&!e._attrs.controlsVisibleOnLoad||this.isChromeless()?0:Math.round(g.BASE_CONTROL_BAR_HEIGHT_PX*this.scale())}},{key:"isBeforePlayOrReset",value:function(){var e=this.impl;return"beforeplay"===e.state()||e._opts&&"reset"===e._attrs.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?!0!==e._attrs.controlsVisibleOnLoad:!this.hasRequestedControlsVisible()&&(H.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=Y(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()||H.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(){var e;null!==(e=this.impl)&&void 0!==e&&e.videoWrapper&&(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(.95,(0,s.controlMultiplierBasedOnVideo)(this.impl)))}},{key:"playerIconColor",value:function(){return(0,O.getVideoPlayerIconColor)(this.impl.playerColor(),this.shouldUseAccessibleIconColor(),null!=this.backgroundGradientCss())}},{key:"destroy",value:function(){for(var e in this._isDestroying=!0,this.buttonMountRefs)S(this.buttonMountRefs,e)&&(0,o.render)((0,o.h)("nothing",null),this.mountRefs[e]);var n,i,r,a,s;(0,o.render)((0,o.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,(n=t,i="destroy",r=this,s=x(R(1&(a=3)?n.prototype:n),i,r),2&a&&"function"==typeof s?function(e){return s.apply(r,e)}:s)([])}},{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["wistia-logo"]&&(r=this.controlsByType["wistia-logo"][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||V(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||H.ipad&&H.ios.version&&H.ios.version<10.1||!1===e.playsinline&&(H.ipad||H.iphone||H.android)}},{key:"cssResetContent",value:function(){var e="#".concat(this.impl.chrome.id," #").concat(this.impl.grid.wrapper.id),t=(0,i.cssResetForSelector)("".concat(e," "),".w-css-reset"),n=(0,i.cssResetForSelector)("".concat(e," .w-css-reset-tree "),""),r=Boolean(this.impl._attrs.controlBarBorderRadius||this.impl._attrs.bigPlayButtonBorderRadius)?"":"border-radius:0!important;";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{").concat(r,"color:var(--wistia-player-icon-color)!important;}\n      ").concat(e," .w-css-reset-dialog-button-important{").concat(r,"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:"playerBorderRadius",value:function(){return this.impl._attrs.playerBorderRadius*this.scale()}},{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,T(e.controlsByType[t]||[]))})),r}},{key:"setAriaLiveText",value:function(e){this._ariaLiveText=e,this.render()}}],u&&L(n.prototype,u),f&&L(n,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u,f}(f.PlayerBehavior);q.handle="ui";var K=function(e,t){return e?e.bind(t):null},Y=function(e){return e.constructor.handle};const Q=q},(e,t,n)=>{n.d(t,{cssResetForSelector:()=>l});var i=n(19),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.assign)({},o,{"font-size":"2em"})),"}\nh2{").concat(s((0,i.assign)({},o,{"font-size":"1.5em"})),"}\nh3{").concat(s((0,i.assign)({},o,{"font-size":"1.17em"})),"}\np{margin:1.4em 0;}\na,span,svg{display:inline;}\nul,ol,li{").concat(s((0,i.assign)({},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.assign)({},r,{float:"none",outline:"none"})),"}\nbutton{").concat(s((0,i.assign)({},r,a)),"}\nimg{").concat(s((0,i.assign)({},{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:()=>g});var i=n(24),r=n(2),o=n(162),a=n(20),s=n(55),u=n(227),l=n(230),c=n(231);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,m(i.key),i)}}function h(e,t,n){return t=f(t),function(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)}(e,p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}const g=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y(e=h(this,t),"onClickButton",(function(){var t=e.props.control;if(t.buttonElement.focus(),!1!==t.toggleDialogOnClick){var n=t.dialog;n&&(n.isOpen()?n.close():((0,s.countMetric)("player/control-button-click",1,{control:t.constructor.handle,desktop:!(0,a.detectIsMobile)(),mobile:(0,a.detectIsMobile)()}),n.open()))}t.onClickButton&&((0,s.countMetric)("player/control-button-click",1,{control:t.constructor.handle,desktop:!(0,a.detectIsMobile)(),mobile:(0,a.detectIsMobile)()}),t.onClickButton())})),y(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)}})),y(e,"onBlurButton",(function(t){var n=e.props,i=n.closeDialogOnFocusOut,r=n.control,o=n.onBlurButton,a=r.dialog;setTimeout((function(){var n=e.getActiveElement();!1!==i&&!1===e.state.isMouseInDialog&&e.isNewElemOutsideOfBase(n,e.base)&&a&&a.close(),o&&o(t,r),r.onFocusOutButton&&r.onFocusOutButton(t)}),150)})),y(e,"onKeyDownButton",(function(t){var n=e.props.control;n.onKeyDownButton&&n.onKeyDownButton(t)})),y(e,"onDialogKeyDown",(function(t){var n,i,r=e.props.control;"Escape"===t.key&&r.isAtRootLevel()&&(null===(n=r.dialog)||void 0===n||n.close(),null===(i=r.buttonElement)||void 0===i||i.focus())})),y(e,"onMouseEnterDialog",(function(){e.setState({isMouseInDialog:!0})})),y(e,"onMouseLeaveDialog",(function(){e.setState({isMouseInDialog:!1})})),y(e,"onMouseEnter",(function(t){e._isHovering=!0;var n=e.props.control;n.onMouseEnter&&n.onMouseEnter(t)})),y(e,"onMouseLeave",(function(t){e._isHovering=!1;var n=e.props.control;n.onMouseLeave&&n.onMouseLeave(t)})),y(e,"onMouseDown",(function(){e._isMouseDown=!0,e._lastClickedElem=e.getActiveElement(),(0,i.elemBind)(document,"mouseup",e.onMouseUp)})),y(e,"onMouseUp",(function(){e._isMouseDown=!1,(0,i.elemUnbind)(document,"mouseup",e.onMouseUp)})),y(e,"onFocusOut",(function(){setTimeout((function(){var t,n=e.props.control;!1!==e.props.closeDialogOnFocusOut&&n.dialog&&n.dialog.isOpen()&&(!e.getActiveElement()||e.isNewElemOutsideOfBase(e.getActiveElement(),e.base))&&(e.getActiveElement()&&e.getActiveElement().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)})),y(e,"onBeforeDisplayNone",(function(){var t=e.props.control;if(e.dialogElem&&e.getActiveElement()&&(0,i.elemIsInside)(e.getActiveElement(),e.dialogElem)){var n=t.nextControlOfSameType();n&&n.buttonElement?n.buttonElement.focus():t.buttonElement.focus()}})),y(e,"dialogRefFn",(function(t){e.dialogElem=t,e.props.dialogRef&&e.props.dialogRef(t)})),e.state={isMouseInDialog:!1},e}return 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)}(t,e),n=t,p=[{key:"getActiveElement",value:function(){var e;return"WISTIA-PLAYER"===(null===(e=this.props.control.embedElement)||void 0===e?void 0:e.tagName)?this.props.control.embedElement.shadowRoot.activeElement:document.activeElement}},{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)(l.default,{ariaPressed:n.ariaPressed,buttonLabel:this.props.buttonLabel,buttonRef:function(t){return e.buttonElem=t},controlBarBorderRadius:this.props.controlBarBorderRadius,controlsAreVisible:this.props.controlsAreVisible,disabled:n.disabledButton,handle:t.control.constructor.handle,isActuallyLink:!!n.isActuallyLink&&n.isActuallyLink(),isDialogOpen:i,isLeftMostControl:this.props.isLeftMostControl,isLoading:t.control.__isDialogLoading||!1,isRightMostControl:this.props.isRightMostControl,linkAttrs:n.linkAttrs?n.linkAttrs():{},onBlur:this.onBlurButton,onClick:this.onClickButton,onKeyDownButton:this.onKeyDownButton,onKeyboardFocus:this.onKeyboardFocusButton,scale:t.scale,stubRef:t.stubRef,tabIndex:t.tabIndex,videoState:this.props.videoState})}},{key:"isNewElemOutsideOfBase",value:function(e,t){return!e||!(0,i.elemIsInside)(e,t)}},{key:"renderControlBarDialog",value:function(){var e=this.props,t=e.control,n=c.BASE_CONTROL_BAR_HEIGHT_PX*e.scale,i=e.videoHeight-e.controlBarDistance-n-10,o=t.dialogComponent;return(0,r.h)(u.default,{canvasHeight:i,canvasWidth:e.controlBarWidth,controlBarBorderRadius:e.controlBarBorderRadius,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,onDialogKeyDown:this.onDialogKeyDown,onMouseEnter:this.onMouseEnterDialog,onMouseLeave:this.onMouseLeaveDialog,controlBarDistance:e.controlBarDistance,resizeRequestedAt:t.dialog._resizeRequestedAt,scale:e.scale,top:t.props.top,videoWidth:e.videoWidth},o&&(0,r.h)(o,{control:t,scale:e.scale}))}},{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")}}}],p&&d(n.prototype,p),f&&d(n,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p,f}(r.Component)},(e,t,n)=>{n.d(t,{default:()=>y});var i=n(24),r=n(2),o=n(35),a=n(228),s=n(229);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,f(i.key),i)}}function l(e,t,n){return t=d(t),function(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)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){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){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var v=120;const y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(n=l(this,t,[e]),"initStubResizeObserver",(function(){n.stubElem&&(n._stubResizeObserver=new ResizeObserver((function(){n.measureUserElem()})),n._stubResizeObserver.observe(n.stubElem))})),p(n,"dialogRefFn",(function(e){n.dialogElem=e,n.props.dialogRef&&n.props.dialogRef(e)})),p(n,"handleTransitionsAfterRender",(function(){var e=n.props,t=n.state;e.isOpen?(t.isDisplayNone||t.isOpaque&&null==t.widthInButtons)&&n.setState({isDisplayNone:!1},(function(){n.measureUserElem(),n.setState({isOpaque:!0},(function(){setTimeout((function(){n.setState({isFullyOpen:!0})}),v)}))})):!t.isDisplayNone&&t.isOpaque&&n.setState({isOpaque:!1,isFullyOpen:!1},(function(){clearTimeout(n.displayNoneTimeout),n.displayNoneTimeout=setTimeout((function(){n.setState({isDisplayNone:!0})}),200)}))})),p(n,"measureUserElem",(function(){n.stubElem.style.width="";var e=(0,i.elemWidth)(n.stubElem),t=Number.isNaN(e)?120*n.props.scale:e;n.stubElem.style.width="100%";var r=40*n.props.scale,o=5*n.props.scale,a=Math.ceil((t+o)/r),s="captionsButton__dialog"!==n.props.handle?Math.min(6,a):a,u=Math.max(3,s);u===n.state.widthInButtons||isNaN(u)||n.setState({widthInButtons:u})})),p(n,"onTouchStart",(function(e){e._touchStartFromControlDialog=!0})),n.uuid=(0,o.seqId)(),n.state={isDisplayNone:!0,isOpaque:!1,widthInButtons:null},n}return 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)}(t,e),n=t,c=[{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&&e.onBeforeDisplayNone&&e.onBeforeDisplayNone()}},{key:"render",value:function(){var e=this;return(0,r.h)("div",{ref:function(t){return e.anchorElem=t},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.RawHTMLStub,{style:this.stubStyle(),stubRef:function(t){return e.stubElem=t},handle:this.props.handle,class:"w-css-reset"},this.props.children))))}},{key:"componentDidMount",value:function(){var e=this,t=this.props.mount(this.stubElem);t&&t.then&&t.catch?this.mountPromise=t:this.mountPromise=Promise.resolve(),this.mountPromise.then(this.handleTransitionsAfterRender),this.unbindWhenWistiaPlayerInterLoaded=(0,a.whenWistiaPlayerInterLoaded)(this.measureUserElem),this.initStubResizeObserver(),this.anchorElem&&this.props.onDialogKeyDown&&this.anchorElem.addEventListener("keydown",(function(t){e.props.onDialogKeyDown(t)}))}},{key:"componentDidUpdate",value:function(){this.mountPromise&&this.mountPromise.then(this.handleTransitionsAfterRender)}},{key:"componentWillUnmount",value:function(){this.unbindWhenWistiaPlayerInterLoaded(),this._stubResizeObserver&&this._stubResizeObserver.disconnect(),this.anchorElem&&this.props.onDialogKeyDown&&this.anchorElem.removeEventListener("keydown",this.props.onDialogKeyDown)}},{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.controlBarBorderRadius,i=e.controlBarDistance,r=this.state,o=r.isDisplayNone,a=r.isOpaque,s=this.dialogDimensions(),u=s.height,l=s.left,c=s.width,d=a?0:40,h="opacity ".concat(v,"ms ease ").concat(d,"ms, transform ").concat(v,"ms ease ").concat(d,"ms");return this.state.isFullyOpen&&(h+=", width ".concat(v,"ms ease, left ").concat(v,"ms ease")),{background:"rgba(0,0,0,0.7)",borderRadius:"".concat(n,"px"),bottom:"".concat(i,"px"),color:"#fff",display:o?"none":"block",left:l,lineHeight:"34px",height:u,maxHeight:"".concat(t,"px"),opacity:a?1:0,overflowX:"hidden",overflowY:"auto",position:"absolute",transition:h,transform:"scaleY(".concat(a?1:.6,")"),transformOrigin:"center bottom",width:c}}},{key:"dialogDimensions",value:function(){var e=this.props,t=e.canvasHeight,n=e.canvasWidth,i=e.scale,r=e.controlBarDistance,o=e.handle,a=e.left,s=e.videoWidth,u=this.state.widthInButtons;if(o.includes("multiControl")&&s<=400){var l=2*r,c=a-l;return{height:"".concat(t,"px"),left:"".concat(-c,"px"),width:"".concat(s-l,"px")}}var d=0,h=null;if(null!=u){h=Math.min(40*u*i,n);var p=this.props.left+h-2*r-n;p>0&&(d=-1*p)}return{height:"auto",left:"".concat(d,"px"),width:"".concat(h,"px")}}},{key:"stubStyle",value:function(){return{boxSizing:"border-box",display:"inline-block",height:"100%",verticalAlign:"bottom",width:"100%"}}}],c&&u(n.prototype,c),d&&u(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,c,d}(r.Component)},(e,t,n)=>{n.d(t,{whenWistiaPlayerInterLoaded:()=>i});var i=function(e){var t=function(t){Array.from(t.fontfaces).some((function(e){return"WistiaPlayerInter"===e.family}))&&e()};return document.fonts.addEventListener("loadingdone",t),function(){document.fonts.removeEventListener("loadingdone",t)}}},(e,t,n)=>{n.d(t,{RawHTMLStub:()=>c});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,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function a(e,t,n){return t=u(t),function(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)}(e,s()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,t,arguments)}return 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)}(t,e),n=t,(o=[{key:"shouldComponentUpdate",value:function(e){return e.children!==this.props.children}},{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},e.children)}},{key:"componentDidMount",value:function(){var e=this.props.mount;e&&!this.props.children&&e(this.base)}},{key:"componentWillUnmount",value:function(){var e=this.props.destroy;e&&e()}}])&&r(n.prototype,o),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(i.Component)},(e,t,n)=>{n.d(t,{default:()=>w});var i=n(116),r=n(2),o=n(20),a=n(162),s=n(18),u=n(229),l=n(179);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)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c.apply(null,arguments)}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){g(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 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,b(i.key),i)}}function f(e,t,n){return t=y(t),function(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)}(e,v()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var _=(0,o.cachedDetect)();const w=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(n=f(this,t,[e]),"onFocus",(function(e){n.setState({isKeyboardFocused:!(0,a.isMouseDownRecently)()}),!(0,a.isMouseDownRecently)()&&n.props.onKeyboardFocus&&n.props.onKeyboardFocus(e)})),g(n,"onBlur",(function(e){n.setState({isKeyboardFocused:!1}),n.props.onBlur&&n.props.onBlur(e)})),g(n,"onMouseDown",(function(){n.setState({justClicked:!0})})),g(n,"onMouseUp",(function(){n.setState({justClicked:!1})})),g(n,"onMouseEnter",(function(){n.setState({isHovering:!0})})),g(n,"onMouseLeave",(function(){n.setState({isHovering:!1})})),n.interval=void 0,n.state={isKeyboardFocused:!1,isHovering:!1,justClicked:!1,opacity:1},n}return 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&&m(e,t)}(t,e),n=t,o=[{key:"render",value:function(){var e=this,t=this.props,n=t.buttonLabel,i=h({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:!_.touchScreen&&!t.disabled&&this.onMouseDown,onMouseUp:!_.touchScreen&&!t.disabled&&this.onMouseUp,onTouchStart:_.touchScreen&&this.onMouseDown,onTouchEnd:_.touchScreen&&this.onMouseUp,elemRef:function(n){e.buttonElem=n,t.buttonRef&&t.buttonRef(n)},tabIndex:t.tabIndex},t.linkAttrs);void 0!==t.isDialogOpen&&(i["aria-expanded"]="".concat(t.isDialogOpen)),void 0!==t.ariaPressed&&(i["aria-pressed"]="".concat(t.ariaPressed)),_.touchScreen||(i.onFocus=this.onFocus,i.onBlur=this.onBlur,i.onMouseEnter=this.onMouseEnter,i.onMouseLeave=this.onMouseLeave),t.disabled&&(i["aria-disabled"]=!0);var o=t.isActuallyLink?"a":"button";return(0,r.h)(l.CustomEventsWrapper,c({tagName:o},i),(0,r.h)(u.RawHTMLStub,{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),this.setInlineColorWithImportantFlag()}},{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),this.setInlineColorWithImportantFlag()}},{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=this.props,o=r.controlBarBorderRadius,a=r.isActuallyLink,s=new i.Color("#000"),u=t&&!this.props.disabled?.2:0;s.alpha(u);var l=a?{display:"block",outline:"none"}:{};return h({backgroundColor:t&&!this.props.disabled?"var(--wistia-player-color-hover)":"transparent",borderBottomLeftRadius:this.props.isLeftMostControl?"".concat(o,"px"):0,borderBottomRightRadius:this.props.isRightMostControl?"".concat(o,"px"):0,borderTopLeftRadius:this.props.isLeftMostControl?"".concat(o,"px"):0,borderTopRightRadius:this.props.isRightMostControl?"".concat(o,"px"):0,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%"},l)}},{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:"setInlineColorWithImportantFlag",value:function(){if(this.buttonElem){var e=this.state.isHovering&&!this.props.disabled?"var(--wistia-player-icon-color-hover)":"var(--wistia-player-icon-color)";this.buttonElem.style.setProperty("color",e,"important")}}},{key:"getOpacity",value:function(){return this.props.controlsAreVisible?null!=this.state.opacity?this.state.opacity:1:0}}],o&&p(n.prototype,o),d&&p(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,d}(r.Component)},(e,t,n)=>{n.d(t,{BASE_CONTROL_BAR_HEIGHT_PX:()=>i,DEFAULT_BUTTON_WIDTH_PX:()=>r});var i=34,r=40},(e,t,n)=>{n.d(t,{default:()=>f});var i=n(13),r=n(233),o=n(162);function a(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var a=i&&i.prototype instanceof l?i:l,c=Object.create(a.prototype);return s(c,"_invoke",function(n,i,r){var o,a,s,l=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,a=0,s=e,h.n=n,u}};function p(n,i){for(a=n,s=i,t=0;!d&&l&&!r&&t<c.length;t++){var r,o=c[t],p=h.p,f=o[2];n>3?(r=f===i)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=p&&((r=n<2&&p<o[1])?(a=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,a=0))}if(r||n>1)return u;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),a=c,s=f;(t=a<2?e:s)||!d;){o||(a?a<3?(a>1&&(h.n=-1),p(a,s)):h.n=s:h.v=s);try{if(l=2,o){if(a||(r="next"),t=o[r]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),a=1);o=e}else if((t=(d=h.n<0)?s:n.call(i,h))!==u)break}catch(t){o=e,a=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,r,o),!0),c}var u={};function l(){}function c(){}function d(){}t=Object.getPrototypeOf;var h=[][i]?t(t([][i]())):(s(t={},i,(function(){return this})),t),p=d.prototype=l.prototype=Object.create(h);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,s(p,"constructor",d),s(d,"constructor",c),c.displayName="GeneratorFunction",s(d,r,"GeneratorFunction"),s(p),s(p,r,"Generator"),s(p,i,(function(){return this})),s(p,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:o,m:f}})()}function s(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}s=function(e,t,n,i){function o(t,n){s(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},s(e,t,n,i)}function u(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)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){u(o,i,r,a,s,"next",e)}function s(e){u(o,i,r,a,s,"throw",e)}a(void 0)}))}}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,h(i.key),i)}}function d(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var p=function(){return e=function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(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()}))})),d(this,"doOpen",(function(){return new Promise((function(e){n._isOpen?e():(n._isOpen=!0,n._hasOpened=!0,n.ui.openDialog(n),setTimeout(e,170))}))})),d(this,"dialogOpened",(function(){return new Promise((function(e){n.config.dialogOpened&&n.config.dialogOpened(),n.focusFirstElementInDialog(),e()}))})),d(this,"focusFirstElementInDialog",(function(){(0,o.isMouseDownRecently)()||setTimeout((function(){var e=n.control.dialogRoot;e&&(0,r.focusFirstFocusableElement)(e)}),0)})),d(this,"close",l(a().m((function e(){return a().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,n.control.mounted;case 1:if(!n.isOpen()){e.n=2;break}return e.a(2,n.dialogWillClose().then(n.doClose).then(n.dialogClosed));case 2:return e.a(2,Promise.resolve())}}),e)})))),d(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()}))})),d(this,"doClose",(function(){return new Promise((function(e){n._isOpen?(n._isOpen=!1,n.ui.closeDialog(n),setTimeout(e,200)):e()}))})),d(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},t=[{key:"open",value:(i=l(a().m((function e(){return a().w((function(e){for(;;)switch(e.n){case 0:if("beforeplay"!==this.ui.impl.state()||this.ui.impl._attrs.controlsVisibleOnLoad){e.n=1;break}return e.a(2);case 1:return e.n=2,this.control.mounted;case 2:if(!this.isOpen()){e.n=3;break}return e.a(2,Promise.resolve());case 3:return e.a(2,this.dialogWillOpen().then(this.doOpen).then(this.dialogOpened))}}),e,this)}))),function(){return i.apply(this,arguments)})},{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)}}],t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,i}();(0,i.bindify)(p.prototype);const f=p},(e,t,n)=>{n.d(t,{focusFirstFocusableElement:()=>o});var i=function(e){return"INPUT"===e.tagName},r=function(e){for(var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){if(!(e instanceof HTMLElement))return NodeFilter.FILTER_SKIP;var t,n=i(e)&&"hidden"===e.type;return(i(t=e)||"BUTTON"===t.tagName)&&e.disabled||e.hidden||n?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)t.push(n.currentNode);return t},o=function(e){var t;null===(t=r(e)[0])||void 0===t||t.focus({preventScroll:!0})}},(e,t,n)=>{n.d(t,{default:()=>O});var i=n(116),r=n(2),o=n(20),a=n(18),s=n(24),u=n(162),l=n(117),c=n(179),d=n(229);function h(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(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 v(e,t,n){return t=m(t),function(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)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function b(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var w=(0,o.cachedDetect)(),E=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(n=v(this,t,[e]),"onFocus",(function(){n.props.isMouseDownFromTouch||(0,u.isMouseDownRecently)()||n.setState({isKeyboardFocused:!0}),n.props.onFocusComplete()})),b(n,"onBlur",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),b(n,"onFocusIn",(function(e){n.props.onfocusin&&n.props.onfocusin(e)})),b(n,"onFocusOut",(function(e){n.props.onfocusout&&n.props.onfocusout(e)})),b(n,"onClick",(function(e){if((0,u.isMouseDownRecently)()&&n.setState({isKeyboardFocused:!1}),P(e)&&e.preventDefault(),n.props.onClick)return n.props.onClick(e)})),b(n,"onTouchEnd",(function(e){if(n.props.onTouchEnd)return n.props.onTouchEnd(e)})),n.state={areControlsOpaque:e.shouldShowControls,isKeyboardFocused:!1},n}return 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&&g(e,t)}(t,e),n=t,o=[{key:"componentWillReceiveProps",value:function(e){this.handleControlBarAnimation(e)}},{key:"render",value:function(){var e=this;return this.mountRefs={},(0,r.h)(c.CustomEventsWrapper,{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.leftBgOverlayStyle()})),(0,r.h)("div",{style:this.rightBgStyle()},(0,r.h)("div",{style:this.blendStyle()}),(0,r.h)("div",{style:this.rightBgOverlayStyle()})),(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-wistia-logo w-css-reset",style:this.wistiaLogoStyle()},this.renderControlCells("wistia-logo",{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(),(0,s.addInlineCss)(this.bottomBar,"\n        @media (prefers-reduced-motion: no-preference) {\n          @keyframes w-control-bar-fade-in {\n            0% {\n              opacity: 0;\n              transform: translateX(50%) translateY(10px);\n            }\n            100% {\n              opacity: 1;\n              transform: translateX(50%) translateY(0px);\n            }\n          }\n        }\n      ")}},{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(){var e=this.props.inFullscreen&&!this.props.shouldShowControls,t=new i.Color(this.props.color),n=(0,l.adjustColorForProperContrast)(t,t,"nonText"),r=null!=this.props.backgroundGradientCss,o=(0,l.adjustColorForProperContrast)(this.props.playerIconColor,n,"paragraphText");return r&&(o="#ffffff",n="rgba(0,0,0,0.4)"),{borderRadius:"".concat(this.props.controlBarBorderRadius,"px"),boxSizing:"border-box",cursor:e?"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%","--wistia-player-icon-color":this.props.playerIconColor,"--wistia-player-color-hover":n,"--wistia-player-icon-color-hover":this.props.contrastIcons?o:"#fff"}}},{key:"foregroundStyle",value:function(){return{height:"100%",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%",zIndex:1}}},{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%",height:"calc(100% - ".concat(this.props.controlBarHeight,"px)")}}},{key:"tdLeftStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdCenterStyle",value:function(){return this.standardCellStyle("100%","100%")}},{key:"tdRightStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdLayoutInnerStyle",value:function(){return{height:"100%"}}},{key:"bottomBarStyle",value:function(){var e=this.state.areControlsOpaque,t=this.props,n=t.videoState,i=t.controlBarBorderRadius,r=t.controlBarDistance,o=e||"beforeplay"!==n?"table":"none",a=r<2?0:r,s=t.shouldAnimateIn?{animation:"w-control-bar-fade-in ease-in-out 250ms",animationIterationCount:1,animationFillMode:"forwards"}:{};return p({bottom:"".concat(a,"px"),borderRadius:"".concat(i,"px"),borderCollapse:"collapse",display:o,height:"".concat(this.props.controlBarHeight,"px"),pointerEvents:"none",position:"absolute",paddingLeft:"".concat(a,"px"),paddingRight:"".concat(a,"px"),right:"50%",tableLayout:"auto",transform:"translate(50%)",width:"calc(100% - ".concat(2*a,"px)"),zIndex:1},s)}},{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 p(p({},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!w.edge&&!1===this.props.noMixBlendMode}},{key:"blendStyle",value:function(){var e=this.props.color;return{background:new i.Color(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:"baseBgOverlayStyle",value:function(){var e=this.props,t=e.color,n=e.controlBarBorderRadius,r=new i.Color(t||"#000").alpha(.7);return this.shouldMixBlendMode()||r.alpha(.85),this.props.opaqueControls&&r.alpha(1),{background:r.toRgba(),borderRadius:"".concat(n,"px"),height:"100%",opacity:this.getOpacity(),left:0,position:"absolute",top:0,transition:this.getTransition(),width:"100%"}}},{key:"bgGradientStyle",value:function(){var e=this.props.backgroundGradientCss;return null!=e?{background:e,backgroundSize:"".concat(this.props.videoWidth,"px")}:{}}},{key:"leftBgOverlayStyle",value:function(){return p(p({},this.baseBgOverlayStyle()),this.bgGradientStyle())}},{key:"rightBgOverlayStyle",value:function(){return p(p(p({},this.baseBgOverlayStyle()),this.bgGradientStyle()),{},{backgroundPositionX:"right"})}},{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=p(p({},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 p(p({},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:"wistiaLogoStyle",value:function(){return p(p({},this.standardInnerStyle()),{},{display:this.props.controlsByType["wistia-logo"]?"inline-block":"none",right:0,top:0})}},{key:"ellipsisStyle",value:function(){return p(p({},this.standardInnerStyle()),{},{display:this.props.controlsByType.ellipsis?"inline-block":"none"})}},{key:"standardCellStyle",value:function(e,t){return{display:"table-cell",height:null!=t?t:"auto",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]:{};return(this.props.controlsByType[e]||[]).map((function(e){var i=e.constructor.handle;return(0,r.h)(d.RawHTMLStub,{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)}}],o&&f(n.prototype,o),h&&f(n,h),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,h}(r.Component),P=function(e){return e.target&&((0,s.elemHasClass)(e.target,"w-vulcan-v2-button")||(0,s.elemAncestorHasClass)(e.target,"w-vulcan-v2-button"))};const O=E},(e,t,n)=>{n.d(t,{convertFontSizePercentageToPx:()=>i});var i=function(e){return e/100*18}},(e,t,n)=>{n.d(t,{getFontFamilyForFontOptionLabel:()=>o});var i=n(97),r=n(98),o=function(e){var t;return null!==(t=i.CAPTIONS_FONT_FAMILY_MAP.get(e))&&void 0!==t?t:r.interFontFamily}},(e,t,n)=>{n.d(t,{getTextShadowForCharacterEdgeStyle:()=>i});var i=function(e){var t=e.characterEdgeStyle,n=e.scale,i="".concat(1*n,"px"),r="".concat(1.5*n,"px"),o="".concat(2*n,"px"),a="".concat(3*n,"px"),s="".concat(-1*n,"px");switch(t){case"Depressed":return"".concat(i," ").concat(i," #aaa, ").concat(s," ").concat(s," #222");case"Drop shadow":return"".concat(i," ").concat(i," ").concat(i," #222, ").concat(i," ").concat(i," ").concat(o," #222, ").concat(i," ").concat(i," ").concat(a," #222");case"Outline":return"0 0 ".concat(i," #222, 0 0 ").concat(i," #222, 0 0 ").concat(i," #222, 0 0 ").concat(i," #222, 0 0 ").concat(i," #222, 0 0 ").concat(i," #222");case"Raised":return"".concat(i," ").concat(i," 0 #222, ").concat(r," ").concat(r," 0 #222");default:return""}}},(e,t,n)=>{n.d(t,{getFontVariantForFontOptionLabel:()=>i});var i=function(e){return"Small caps"===e?"small-caps":"normal"}},(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,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function o(e,t,n){return t=s(t),function(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)}(e,a()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}n.d(t,{PlaySuspendedOffScreenBehavior:()=>l});var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,t,arguments)}return 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)}(t,e),n=t,(r=[{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)})))}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(n(216).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){if("string"==typeof e)return r(e,t);var n={}.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)?r(e,t):void 0}}(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=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 p={start:0,end:s};d?r.splice(0,1,p):r.unshift(p)}else d&&r.shift();if(null!=u)if(u>=0){var f={start:u,end:a};h?r.splice(r.length-1,1,f):r.push(f)}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,{PLAYER_VERSION:()=>i});var i="main"}],__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]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__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__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__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})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};__webpack_require__(1),__webpack_require__(80),__webpack_require__(81),__webpack_require__(113),__webpack_require__(141),__webpack_require__(142);
//# debugId=f7698c9d-d251-4340-ae2f-227beafa8ef1
//# sourceMappingURL=publicApi.js.map