(()=>{var e,t,r={29:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},56:(e,t,r)=>{var n=r(1741),o=r(7888),a=r(4509),i=r(3062),l=n?n.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},179:(e,t,r)=>{var n=r(9106),o=r(7956),a=r(5063),i=r(5659),l=r(403);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=l,e.exports=c},188:(e,t,r)=>{var n=r(2993),o=r(179),a=r(723);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},377:e=>{e.exports=function(e){return this.__data__.get(e)}},403:(e,t,r)=>{var n=r(2077);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},513:(e,t,r)=>{var n=r(1162),o=r(7926);e.exports=function(e){return o(e)&&n(e)}},537:(e,t,r)=>{var n=r(958),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},546:(e,t,r)=>{var n=r(9052),o=r(7926);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},632:(e,t,r)=>{var n=r(3242);e.exports=function(e,t){return n(e,t)}},723:(e,t,r)=>{var n=r(7922)(r(5289),"Map");e.exports=n},780:e=>{e.exports=function(e){return e}},905:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},958:(e,t,r)=>{var n=r(7922)(Object,"create");e.exports=n},1101:(e,t,r)=>{var n=r(7922)(r(5289),"Set");e.exports=n},1162:(e,t,r)=>{var n=r(4174),o=r(9906);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},1190:(e,t,r)=>{e=r.nmd(e);var n=r(5289),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,l=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=l?l(r):new e.constructor(r);return e.copy(n),n}},1201:(e,t,r)=>{var n=r(6365),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),c=Array(l);++i<l;)c[i]=a[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=a[i];return u[t]=r(c),n(e,this,u)}}},1236:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1274:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},1598:(e,t,r)=>{var n=r(4509),o=r(3062),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},1616:(e,t,r)=>{var n=r(2309),o=r(5355),a=r(2862),i=r(1861),l=r(6689),c=r(4509),u=r(5628),s=r(3371),d="[object Arguments]",p="[object Array]",f="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,v,m){var y=c(e),h=c(t),w=y?p:l(e),S=h?p:l(t),E=(w=w==d?f:w)==f,x=(S=S==d?f:S)==f,O=w==S;if(O&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(O&&!E)return m||(m=new n),y||s(e)?o(e,t,r,b,v,m):a(e,t,w,r,b,v,m);if(!(1&r)){var A=E&&g.call(e,"__wrapped__"),C=x&&g.call(t,"__wrapped__");if(A||C){var k=A?e.value():e,P=C?t.value():t;return m||(m=new n),v(k,P,r,b,m)}}return!!O&&(m||(m=new n),i(e,t,r,b,v,m))}},1741:(e,t,r)=>{var n=r(5289).Symbol;e.exports=n},1750:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}},1861:(e,t,r)=>{var n=r(9158),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,l){var c=1&r,u=n(e),s=u.length;if(s!=n(t).length&&!c)return!1;for(var d=s;d--;){var p=u[d];if(!(c?p in t:o.call(t,p)))return!1}var f=l.get(e),g=l.get(t);if(f&&g)return f==t&&g==e;var b=!0;l.set(e,t),l.set(t,e);for(var v=c;++d<s;){var m=e[p=u[d]],y=t[p];if(a)var h=c?a(y,m,p,t,e,l):a(m,y,p,e,t,l);if(!(void 0===h?m===y||i(m,y,r,a,l):h)){b=!1;break}v||(v="constructor"==p)}if(b&&!v){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(b=!1)}return l.delete(e),l.delete(t),b}},1869:(e,t,r)=>{var n=r(6841);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},1967:(e,t,r)=>{var n=r(9604),o=r(7332),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var i=e[t];a.call(e,t)&&o(i,r)&&(void 0!==r||t in e)||n(e,t,r)}},2077:(e,t,r)=>{var n=r(7332);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},2141:e=>{"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),a="/*# ".concat(o," */");return[t].concat([a]).join("\n")}return[t].join("\n")}},2143:(e,t,r)=>{var n=r(1741),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=i.call(e);return n&&(t?e[l]=r:delete e[l]),o}},2204:(e,t,r)=>{var n=r(6369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},2218:(e,t,r)=>{"use strict";var n=r(905);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},2275:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var a={},i=[],l=0;l<e.length;l++){var c=e[l],u=n.base?c[0]+n.base:c[0],s=a[u]||0,d="".concat(u," ").concat(s);a[u]=s+1;var p=r(d),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var g=o(f,n);n.byIndex=l,t.splice(l,0,{identifier:d,updater:g,references:1})}i.push(d)}return i}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var a=n(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=r(a[i]);t[l].references--}for(var c=n(e,o),u=0;u<a.length;u++){var s=r(a[u]);0===t[s].references&&(t[s].updater(),t.splice(s,1))}a=c}}},2309:(e,t,r)=>{var n=r(179),o=r(3768),a=r(4062),i=r(377),l=r(6485),c=r(3373);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=l,u.prototype.set=c,e.exports=u},2372:(e,t,r)=>{var n=r(9049),o=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},2521:e=>{e.exports=function(e){return function(t){return e(t)}}},2687:(e,t,r)=>{var n=r(7922),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},2700:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},2862:(e,t,r)=>{var n=r(1741),o=r(7264),a=r(7332),i=r(5355),l=r(8873),c=r(3147),u=n?n.prototype:void 0,s=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,d,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=l;case"[object Set]":var g=1&n;if(f||(f=c),e.size!=t.size&&!g)return!1;var b=p.get(e);if(b)return b==t;n|=2,p.set(e,t);var v=i(f(e),f(t),n,u,d,p);return p.delete(e),v;case"[object Symbol]":if(s)return s.call(e)==s.call(t)}return!1}},2993:(e,t,r)=>{var n=r(6860),o=r(8682),a=r(7429),i=r(537),l=r(4769);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=l,e.exports=c},2995:(e,t,r)=>{var n=r(9049),o=r(6811),a=r(5561),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=o(e),r=[];for(var l in e)("constructor"!=l||!t&&i.call(e,l))&&r.push(l);return r}},3062:(e,t,r)=>{var n=r(9052),o=r(7926);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},3147:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},3242:(e,t,r)=>{var n=r(1616),o=r(7926);e.exports=function e(t,r,a,i,l){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,a,i,e,l))}},3287:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),a=r(5387),i=r.n(a)()(o());i.push([e.id,".focus-visible-highlight:focus-visible {\n  outline: 1px auto Highlight;\n  outline: 1px auto -webkit-focus-ring-color;\n}\n","",{version:3,sources:["webpack://./../components/src/video/controls/buttons/index.css"],names:[],mappings:"AAAA;EACE,2BAA2B;EAC3B,0CAA0C;AAC5C",sourcesContent:[".focus-visible-highlight:focus-visible {\n  outline: 1px auto Highlight;\n  outline: 1px auto -webkit-focus-ring-color;\n}\n"],sourceRoot:""}]);const l=i},3297:(e,t,r)=>{var n=r(7135);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},3371:(e,t,r)=>{var n=r(7929),o=r(2521),a=r(6005),i=a&&a.isTypedArray,l=i?o(i):n;e.exports=l},3373:(e,t,r)=>{var n=r(179),o=r(723),a=r(6369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},3539:(e,t,r)=>{var n=r(5787)(Object.getPrototypeOf,Object);e.exports=n},3550:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},3592:(e,t,r)=>{var n=r(7922)(r(5289),"DataView");e.exports=n},3768:(e,t,r)=>{var n=r(179);e.exports=function(){this.__data__=new n,this.size=0}},3814:(e,t,r)=>{var n=r(2309),o=r(6305),a=r(5754),i=r(5764),l=r(9049),c=r(4893),u=r(6002);e.exports=function e(t,r,s,d,p){t!==r&&a(r,(function(a,c){if(p||(p=new n),l(a))i(t,r,c,s,e,d,p);else{var f=d?d(u(t,c),a,c+"",t,r,p):void 0;void 0===f&&(f=a),o(t,c,f)}}),c)}},3987:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},4026:(e,t,r)=>{var n=r(7643),o=r(8972),a=r(1162);e.exports=function(e){return a(e)?n(e):o(e)}},4035:(e,t,r)=>{var n=r(4484),o=r(4509);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},4062:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4168:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),a=r(5387),i=r.n(a)()(o());i.push([e.id,"@keyframes rotation {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(359deg);\n  }\n}\n\n.infinite-rotate {\n  animation: rotation 2s infinite linear;\n  @media (prefers-reduced-motion) {\n    animation: none;\n  }\n}\n\n.infinite-rotate-icon svg {\n  animation: rotation 2s infinite linear;\n  @media (prefers-reduced-motion) {\n    animation: none;\n  }\n}\n","",{version:3,sources:["webpack://./../components/src/common/styles/animations.css"],names:[],mappings:"AAAA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF;;AAEA;EACE,sCAAsC;EACtC;IACE,eAAe;EACjB;AACF;;AAEA;EACE,sCAAsC;EACtC;IACE,eAAe;EACjB;AACF",sourcesContent:["@keyframes rotation {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(359deg);\n  }\n}\n\n.infinite-rotate {\n  animation: rotation 2s infinite linear;\n  @media (prefers-reduced-motion) {\n    animation: none;\n  }\n}\n\n.infinite-rotate-icon svg {\n  animation: rotation 2s infinite linear;\n  @media (prefers-reduced-motion) {\n    animation: none;\n  }\n}\n"],sourceRoot:""}]);const l=i},4174:(e,t,r)=>{var n=r(9052),o=r(9049);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4304:(e,t,r)=>{var n=r(7802);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},4326:e=>{"use strict";e.exports=require("react")},4484:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},4509:e=>{var t=Array.isArray;e.exports=t},4611:e=>{e.exports=function(){return!1}},4642:e=>{e.exports=function(e){return function(){return e}}},4769:(e,t,r)=>{var n=r(958);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},4893:(e,t,r)=>{var n=r(7643),o=r(2995),a=r(1162);e.exports=function(e){return a(e)?n(e,!0):o(e)}},4894:(e,t,r)=>{var n=r(4642),o=r(2687),a=r(780),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;e.exports=i},4940:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},4993:(e,t,r)=>{var n=r(9049),o=r(9328),a=r(9570),i=Math.max,l=Math.min;e.exports=function(e,t,r){var c,u,s,d,p,f,g=0,b=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=c,n=u;return c=u=void 0,g=t,d=e.apply(n,r)}function h(e){var r=e-f;return void 0===f||r>=t||r<0||v&&e-g>=s}function w(){var e=o();if(h(e))return S(e);p=setTimeout(w,function(e){var r=t-(e-f);return v?l(r,s-(e-g)):r}(e))}function S(e){return p=void 0,m&&c?y(e):(c=u=void 0,d)}function E(){var e=o(),r=h(e);if(c=arguments,u=this,f=e,r){if(void 0===p)return function(e){return g=e,p=setTimeout(w,t),b?y(e):d}(f);if(v)return clearTimeout(p),p=setTimeout(w,t),y(f)}return void 0===p&&(p=setTimeout(w,t)),d}return t=a(t)||0,n(r)&&(b=!!r.leading,s=(v="maxWait"in r)?i(a(r.maxWait)||0,t):s,m="trailing"in r?!!r.trailing:m),E.cancel=function(){void 0!==p&&clearTimeout(p),g=0,c=f=u=p=void 0},E.flush=function(){return void 0===p?d:S(o())},E}},5042:(e,t,r)=>{var n=r(780),o=r(1201),a=r(8261);e.exports=function(e,t){return a(o(e,t,n),e+"")}},5063:(e,t,r)=>{var n=r(2077);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},5152:(e,t,r)=>{e.exports=r(2218)()},5289:(e,t,r)=>{var n=r(9348),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},5345:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[e?l:++o];if(!1===r(a[c],c,a))break}return t}}},5355:(e,t,r)=>{var n=r(6423),o=r(4940),a=r(7519);e.exports=function(e,t,r,i,l,c){var u=1&r,s=e.length,d=t.length;if(s!=d&&!(u&&d>s))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var g=-1,b=!0,v=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++g<s;){var m=e[g],y=t[g];if(i)var h=u?i(y,m,g,t,e,c):i(m,y,g,e,t,c);if(void 0!==h){if(h)continue;b=!1;break}if(v){if(!o(t,(function(e,t){if(!a(v,t)&&(m===e||l(m,e,r,i,c)))return v.push(t)}))){b=!1;break}}else if(m!==y&&!l(m,y,r,i,c)){b=!1;break}}return c.delete(e),c.delete(t),b}},5380:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5387:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(i[c]=!0)}for(var u=0;u<e.length;u++){var s=[].concat(e[u]);n&&i[s[0]]||(void 0!==a&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=a),r&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=r):s[2]=r),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),t.push(s))}},t}},5561:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},5598:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),a=r(5387),i=r.n(a)()(o());i.push([e.id,"#media-components-scrubber #media-components-scrubber-bar {\n  position: relative;\n  border-radius: 3px;\n  height: 4px;\n}\n#media-components-scrubber #media-components-scrubber-dot {\n  min-width: 10px;\n  min-height: 10px;\n  margin-left: -4px;\n  background-color: inherit;\n  transform: scale(0);\n  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);\n  border-radius: 50%;\n  position: relative;\n  box-sizing: border-box;\n  user-select: none;\n  transition-property: transform;\n  transition-duration: var(--motion-duration-200);\n}\n\n#media-components-scrubber:hover #media-components-scrubber-dot {\n  transform: scale(1);\n}\n","",{version:3,sources:["webpack://./../components/src/common/scrubber.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,yBAAyB;EACzB,mBAAmB;EACnB,qDAAqD;EACrD,kBAAkB;EAClB,kBAAkB;EAClB,sBAAsB;EACtB,iBAAiB;EACjB,8BAA8B;EAC9B,+CAA+C;AACjD;;AAEA;EACE,mBAAmB;AACrB",sourcesContent:["#media-components-scrubber #media-components-scrubber-bar {\n  position: relative;\n  border-radius: 3px;\n  height: 4px;\n}\n#media-components-scrubber #media-components-scrubber-dot {\n  min-width: 10px;\n  min-height: 10px;\n  margin-left: -4px;\n  background-color: inherit;\n  transform: scale(0);\n  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);\n  border-radius: 50%;\n  position: relative;\n  box-sizing: border-box;\n  user-select: none;\n  transition-property: transform;\n  transition-duration: var(--motion-duration-200);\n}\n\n#media-components-scrubber:hover #media-components-scrubber-dot {\n  transform: scale(1);\n}\n"],sourceRoot:""}]);const l=i},5628:(e,t,r)=>{e=r.nmd(e);var n=r(5289),o=r(4611),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?n.Buffer:void 0,c=(l?l.isBuffer:void 0)||o;e.exports=c},5659:(e,t,r)=>{var n=r(2077);e.exports=function(e){return n(this.__data__,e)>-1}},5747:(e,t,r)=>{var n=r(7922)(r(5289),"WeakMap");e.exports=n},5754:(e,t,r)=>{var n=r(5345)();e.exports=n},5764:(e,t,r)=>{var n=r(6305),o=r(1190),a=r(1869),i=r(3987),l=r(5901),c=r(6888),u=r(4509),s=r(513),d=r(5628),p=r(4174),f=r(9049),g=r(9335),b=r(3371),v=r(6002),m=r(8432);e.exports=function(e,t,r,y,h,w,S){var E=v(e,r),x=v(t,r),O=S.get(x);if(O)n(e,r,O);else{var A=w?w(E,x,r+"",e,t,S):void 0,C=void 0===A;if(C){var k=u(x),P=!k&&d(x),j=!k&&!P&&b(x);A=x,k||P||j?u(E)?A=E:s(E)?A=i(E):P?(C=!1,A=o(x,!0)):j?(C=!1,A=a(x,!0)):A=[]:g(x)||c(x)?(A=E,c(E)?A=m(E):f(E)&&!p(E)||(A=l(x))):C=!1}C&&(S.set(x,A),h(A,x,y,w,S),S.delete(x)),n(e,r,A)}}},5787:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5901:(e,t,r)=>{var n=r(2372),o=r(3539),a=r(6811);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(o(e))}},6002:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},6005:(e,t,r)=>{e=r.nmd(e);var n=r(9348),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,l=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l},6044:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},6175:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),a=16-(o-n);if(n=o,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},6269:e=>{e.exports=function(){return[]}},6305:(e,t,r)=>{var n=r(9604),o=r(7332);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},6328:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},6365:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},6369:(e,t,r)=>{var n=r(188),o=r(8250),a=r(8677),i=r(9721),l=r(3297);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=l,e.exports=c},6423:(e,t,r)=>{var n=r(6369),o=r(6744),a=r(8455);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},6485:e=>{e.exports=function(e){return this.__data__.has(e)}},6689:(e,t,r)=>{var n=r(3592),o=r(723),a=r(6808),i=r(1101),l=r(5747),c=r(9052),u=r(7677),s="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",b=u(n),v=u(o),m=u(a),y=u(i),h=u(l),w=c;(n&&w(new n(new ArrayBuffer(1)))!=g||o&&w(new o)!=s||a&&w(a.resolve())!=d||i&&w(new i)!=p||l&&w(new l)!=f)&&(w=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case b:return g;case v:return s;case m:return d;case y:return p;case h:return f}return t}),e.exports=w},6744:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6808:(e,t,r)=>{var n=r(7922)(r(5289),"Promise");e.exports=n},6811:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},6841:(e,t,r)=>{var n=r(7264);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},6860:(e,t,r)=>{var n=r(958);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},6888:(e,t,r)=>{var n=r(546),o=r(7926),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},7135:(e,t,r)=>{var n=r(3550);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},7264:(e,t,r)=>{var n=r(5289).Uint8Array;e.exports=n},7332:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7429:(e,t,r)=>{var n=r(958),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},7519:e=>{e.exports=function(e,t){return e.has(t)}},7598:(e,t,r)=>{var n=r(8116),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},7643:(e,t,r)=>{var n=r(2700),o=r(6888),a=r(4509),i=r(5628),l=r(29),c=r(3371),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),s=!r&&o(e),d=!r&&!s&&i(e),p=!r&&!s&&!d&&c(e),f=r||s||d||p,g=f?n(e.length,String):[],b=g.length;for(var v in e)!t&&!u.call(e,v)||f&&("length"==v||d&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,b))||g.push(v);return g}},7659:(e,t,r)=>{var n=r(5042),o=r(7788);e.exports=function(e){return n((function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,l=a>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,l&&o(r[0],r[1],l)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var c=r[n];c&&e(t,c,n,i)}return t}))}},7677:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7756:(e,t,r)=>{var n=r(6044),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},7788:(e,t,r)=>{var n=r(7332),o=r(1162),a=r(29),i=r(9049);e.exports=function(e,t,r){if(!i(r))return!1;var l=typeof t;return!!("number"==l?o(r)&&a(t,r.length):"string"==l&&t in r)&&n(r[t],e)}},7802:(e,t,r)=>{var n=r(8461),o=r(9897);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r<a;)e=e[o(t[r++])];return r&&r==a?e:void 0}},7888:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},7922:(e,t,r)=>{var n=r(8151),o=r(1236);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},7926:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7929:(e,t,r)=>{var n=r(9052),o=r(9906),a=r(7926),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},7956:(e,t,r)=>{var n=r(2077),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},8035:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},8116:(e,t,r)=>{var n=r(2204);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},8151:(e,t,r)=>{var n=r(4174),o=r(9804),a=r(9049),i=r(7677),l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,s=c.toString,d=u.hasOwnProperty,p=RegExp("^"+s.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?p:l).test(i(e))}},8250:(e,t,r)=>{var n=r(7135);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},8261:(e,t,r)=>{var n=r(4894),o=r(6175)(n);e.exports=o},8398:(e,t,r)=>{var n=r(5787)(Object.keys,Object);e.exports=n},8432:(e,t,r)=>{var n=r(9571),o=r(4893);e.exports=function(e){return n(e,o(e))}},8455:e=>{e.exports=function(e){return this.__data__.has(e)}},8461:(e,t,r)=>{var n=r(4509),o=r(1598),a=r(7598),i=r(8514);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},8468:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},8514:(e,t,r)=>{var n=r(56);e.exports=function(e){return null==e?"":n(e)}},8677:(e,t,r)=>{var n=r(7135);e.exports=function(e){return n(this,e).get(e)}},8682:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8873:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},8948:()=>{},8972:(e,t,r)=>{var n=r(6811),o=r(8398),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8986:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),a=r(5387),i=r.n(a)()(o());i.push([e.id,"#orca-promo-button {\n  padding: 0;\n  border-color: white !important;\n  background-color: transparent !important;\n  transition: border-width 0.5s ease-in-out;\n}\n\n#orca-promo-button.live {\n  border-color: red !important;\n}\n\n#orca-promo-button.livePreview {\n  border-color: white !important;\n  background-color: white !important;\n}\n\n#orca-promo-wrapper:hover #orca-promo-button,\n#orca-promo-button.buffer {\n  border-width: 1px !important;\n}\n\n#orca-promo-button svg {\n  z-index: 1;\n  color: black;\n  transition: color 0.35s step-end;\n}\n\n#orca-promo-button.live svg {\n  color: white;\n}\n\n#orca-promo-button.livePreview svg {\n  color: #111 !important;\n}\n\n#orca-promo-wrapper:hover #orca-promo-button svg,\n#orca-promo-button.buffer svg {\n  color: white;\n  transition: none;\n}\n\n.mini #orca-promo-button,\n.small #orca-promo-button {\n  min-width: 40px;\n  min-height: 40px;\n  border-width: 20px;\n}\n\n.mini #orca-promo-button svg,\n.small #orca-promo-button svg {\n  width: 16px;\n  height: 16px;\n  margin: -18px;\n}\n\n.medium #orca-promo-button {\n  min-width: 56px;\n  min-height: 56px;\n  border-width: 28px;\n}\n\n.medium #orca-promo-button svg {\n  width: 24px;\n  height: 24px;\n  margin: -12px;\n}\n\n.large #orca-promo-button {\n  min-width: 64px;\n  min-height: 64px;\n  border-width: 32px;\n}\n\n.large #orca-promo-button svg {\n  width: 28px;\n  height: 28px;\n  margin: -14px;\n}\n\n.mini #orca-promo-title,\n.small #orca-promo-title {\n  font-size: 14px;\n}\n\n.medium #orca-promo-title,\n.large #orca-promo-title {\n  font-size: 20px;\n}\n\n.mini #orca-promo-duration,\n.small #orca-promo-duration {\n  font-size: 12px;\n}\n\n.medium #orca-promo-duration,\n.large #orca-promo-duration {\n  font-size: 16px;\n}\n","",{version:3,sources:["webpack://./../components/src/video/orca/components/Promo/promo.css"],names:[],mappings:"AAAA;EACE,UAAU;EACV,8BAA8B;EAC9B,wCAAwC;EACxC,yCAAyC;AAC3C;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,8BAA8B;EAC9B,kCAAkC;AACpC;;AAEA;;EAEE,4BAA4B;AAC9B;;AAEA;EACE,UAAU;EACV,YAAY;EACZ,gCAAgC;AAClC;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,sBAAsB;AACxB;;AAEA;;EAEE,YAAY;EACZ,gBAAgB;AAClB;;AAEA;;EAEE,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;;EAEE,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAEA;;EAEE,eAAe;AACjB;;AAEA;;EAEE,eAAe;AACjB;;AAEA;;EAEE,eAAe;AACjB;;AAEA;;EAEE,eAAe;AACjB",sourcesContent:["#orca-promo-button {\n  padding: 0;\n  border-color: white !important;\n  background-color: transparent !important;\n  transition: border-width 0.5s ease-in-out;\n}\n\n#orca-promo-button.live {\n  border-color: red !important;\n}\n\n#orca-promo-button.livePreview {\n  border-color: white !important;\n  background-color: white !important;\n}\n\n#orca-promo-wrapper:hover #orca-promo-button,\n#orca-promo-button.buffer {\n  border-width: 1px !important;\n}\n\n#orca-promo-button svg {\n  z-index: 1;\n  color: black;\n  transition: color 0.35s step-end;\n}\n\n#orca-promo-button.live svg {\n  color: white;\n}\n\n#orca-promo-button.livePreview svg {\n  color: #111 !important;\n}\n\n#orca-promo-wrapper:hover #orca-promo-button svg,\n#orca-promo-button.buffer svg {\n  color: white;\n  transition: none;\n}\n\n.mini #orca-promo-button,\n.small #orca-promo-button {\n  min-width: 40px;\n  min-height: 40px;\n  border-width: 20px;\n}\n\n.mini #orca-promo-button svg,\n.small #orca-promo-button svg {\n  width: 16px;\n  height: 16px;\n  margin: -18px;\n}\n\n.medium #orca-promo-button {\n  min-width: 56px;\n  min-height: 56px;\n  border-width: 28px;\n}\n\n.medium #orca-promo-button svg {\n  width: 24px;\n  height: 24px;\n  margin: -12px;\n}\n\n.large #orca-promo-button {\n  min-width: 64px;\n  min-height: 64px;\n  border-width: 32px;\n}\n\n.large #orca-promo-button svg {\n  width: 28px;\n  height: 28px;\n  margin: -14px;\n}\n\n.mini #orca-promo-title,\n.small #orca-promo-title {\n  font-size: 14px;\n}\n\n.medium #orca-promo-title,\n.large #orca-promo-title {\n  font-size: 20px;\n}\n\n.mini #orca-promo-duration,\n.small #orca-promo-duration {\n  font-size: 12px;\n}\n\n.medium #orca-promo-duration,\n.large #orca-promo-duration {\n  font-size: 16px;\n}\n"],sourceRoot:""}]);const l=i},9021:(e,t,r)=>{var n=r(5289)["__core-js_shared__"];e.exports=n},9049:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},9052:(e,t,r)=>{var n=r(1741),o=r(2143),a=r(1274),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},9106:e=>{e.exports=function(){this.__data__=[],this.size=0}},9158:(e,t,r)=>{var n=r(4035),o=r(9516),a=r(4026);e.exports=function(e){return n(e,a,o)}},9255:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},9328:(e,t,r)=>{var n=r(5289);e.exports=function(){return n.Date.now()}},9335:(e,t,r)=>{var n=r(9052),o=r(3539),a=r(7926),i=Function.prototype,l=Object.prototype,c=i.toString,u=l.hasOwnProperty,s=c.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==s}},9348:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},9516:(e,t,r)=>{var n=r(1750),o=r(6269),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=l},9570:(e,t,r)=>{var n=r(7756),o=r(9049),a=r(3062),i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):i.test(e)?NaN:+e}},9571:(e,t,r)=>{var n=r(1967),o=r(9604);e.exports=function(e,t,r,a){var i=!r;r||(r={});for(var l=-1,c=t.length;++l<c;){var u=t[l],s=a?a(r[u],e[u],u,r,e):void 0;void 0===s&&(s=e[u]),i?o(r,u,s):n(r,u,s)}return r}},9604:(e,t,r)=>{var n=r(2687);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},9721:(e,t,r)=>{var n=r(7135);e.exports=function(e){return n(this,e).has(e)}},9734:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),a=r(5387),i=r.n(a)()(o());i.push([e.id,'.audio-scrubber {\n  -webkit-appearance: none;\n  width: 100px;\n  height: 4px;\n  border-radius: 5px;\n  cursor: pointer;\n}\n\n.audio-scrubber::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  background: #fff;\n  cursor: pointer;\n  box-shadow: 0 0 2px 0 #555;\n  transition: background 0.3s ease-in-out;\n}\n\n.audio-scrubber::-moz-range-thumb {\n  -webkit-appearance: none;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  background: #fff;\n  cursor: pointer;\n  box-shadow: 0 0 2px 0 #555;\n  transition: background 0.3s ease-in-out;\n}\n\ninput[type="range"]::-webkit-slider-runnable-track {\n  -webkit-appearance: none;\n  box-shadow: none;\n  border: none;\n  background: transparent;\n}\n\ninput[type="range"]::-moz-range-track {\n  -webkit-appearance: none;\n  box-shadow: none;\n  border: none;\n  background: transparent;\n}\n',"",{version:3,sources:["webpack://./../components/src/video/controls/audio-scrubber.css"],names:[],mappings:"AAAA;EACE,wBAAwB;EACxB,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB,eAAe;AACjB;;AAEA;EACE,wBAAwB;EACxB,WAAW;EACX,UAAU;EACV,kBAAkB;EAClB,gBAAgB;EAChB,eAAe;EACf,0BAA0B;EAC1B,uCAAuC;AACzC;;AAEA;EACE,wBAAwB;EACxB,WAAW;EACX,UAAU;EACV,kBAAkB;EAClB,gBAAgB;EAChB,eAAe;EACf,0BAA0B;EAC1B,uCAAuC;AACzC;;AAEA;EACE,wBAAwB;EACxB,gBAAgB;EAChB,YAAY;EACZ,uBAAuB;AACzB;;AAEA;EACE,wBAAwB;EACxB,gBAAgB;EAChB,YAAY;EACZ,uBAAuB;AACzB",sourcesContent:['.audio-scrubber {\n  -webkit-appearance: none;\n  width: 100px;\n  height: 4px;\n  border-radius: 5px;\n  cursor: pointer;\n}\n\n.audio-scrubber::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  background: #fff;\n  cursor: pointer;\n  box-shadow: 0 0 2px 0 #555;\n  transition: background 0.3s ease-in-out;\n}\n\n.audio-scrubber::-moz-range-thumb {\n  -webkit-appearance: none;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  background: #fff;\n  cursor: pointer;\n  box-shadow: 0 0 2px 0 #555;\n  transition: background 0.3s ease-in-out;\n}\n\ninput[type="range"]::-webkit-slider-runnable-track {\n  -webkit-appearance: none;\n  box-shadow: none;\n  border: none;\n  background: transparent;\n}\n\ninput[type="range"]::-moz-range-track {\n  -webkit-appearance: none;\n  box-shadow: none;\n  border: none;\n  background: transparent;\n}\n'],sourceRoot:""}]);const l=i},9804:(e,t,r)=>{var n,o=r(9021),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},9840:(e,t,r)=>{var n=r(3814),o=r(7659)((function(e,t,r){n(e,t,r)}));e.exports=o},9897:(e,t,r)=>{var n=r(3062);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},9906:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return r[e](a,a.exports,o),a.loaded=!0,a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&r;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,o.d(a,i),a},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.nc=void 0;var a={};(()=>{"use strict";o.r(a),o.d(a,{default:()=>jm});var e=o(4326),t=o.t(e,2),r=o.n(e),n=o(5152),i=o.n(n),l=(0,e.createContext)({videoId:null,videoData:null,originalVideo:null,videoApiDataFailed:!1,videoApiUrl:null,domain:null,dispatchVideoApiEvent:function(){}}),c=function(){return(0,e.useContext)(l)},u=function(e){return p(e)&&"upcoming"===e.status},s=function(e){return p(e)&&"ended"===e.status},d=function(e){return"live"===e.status},p=function(e){return"live"===e.video_type};function f(e){var t;return s(e)||b(null==e||null===(t=e.additional_properties)||void 0===t?void 0:t.publicationEndDate)}function g(e){return u(e)||!v(null==e?void 0:e.display_date)}var b=function(e){if(!e)return!1;try{var t=new Date,r=new Date(e);if(r.setHours(r.getHours()+1),t>r)return!0}catch(e){console.error("Unable to parse publicationEndDate",e)}return!1},v=function(e){if(!e)return!1;try{var t=new Date,r=new Date(e);return r.setMinutes(r.getMinutes()),t>r}catch(e){console.debug(e)}},m={type:null,status:null,isLooping:!1,isAutoplay:!1,isPreroll:!1,isLivePreview:!1,isPlaythrough:!1,isInitialized:!1,overrideAutoplayMuteBehavior:!1},y=(0,e.createContext)({autoplayState:m,updateAutoplayState:function(){},isMotionReduced:!1}),h=function(){return(0,e.useContext)(y)},w=o(632),S=o.n(w),E=o(2204),x=o.n(E),O=o(9840),A=o.n(O);function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k,P,j="https://www.washingtonpost.com/player/prod/img/video-thumbnail-bg.png",$="https://www.washingtonpost.com",I={PROD:"".concat($,"/prism/api"),SANDBOX:"".concat($,"/prism/api")},R="INIT",T="COMPLETE",D="controlsTouch",M="videoApiData",L="fullscreenChange",_="ended",B="error",N="play",z="timeupdate",V="captionsloaded",F="fullscreen",W="unfullscreen",U="start",H="NEW_VIDEO_DATA",q="AD_COMPLETE",G="AD_START",Y="AD_ERROR",Z="AD_BYPASSED",X="AD_TIMEOUT",K="destroyed",J="orcaRender",Q="earlyExit",ee="orca-render",te="orca-ready",re="orca-iris-ready",ne="orca-ad-start",oe="orca-promo-click",ae="homepage",ie="article page",le={AUTOPLAY:"autoplay",LOOPING_PROMO:"looping-promo",LOOPING_VIDEO:"looping-video",LOOPING_NO_CONTROLS:"looping-no-controls"},ce={HD:"force-hd",YOUTUBE:"force-youtube"},ue=(k=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){C(e,t,r[t])}))}return e}({},ce),P=null!=(P={BURNED_HEADLINE:"headline-burned",BURNED_CAPTIONS:"captions-burned"})?P:{},Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(P)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(P)).forEach((function(e){Object.defineProperty(k,e,Object.getOwnPropertyDescriptor(P,e))})),k),se={AUTO:"autoplay",LOOP:"loop",LOOP_NO_CONTROLS:"loop-no-controls"},de={INIT:"INIT",REQUESTED:"REQUESTED",LOADING:"LOADING",LOADED:"LOADED",PLAYING:"PLAYING",COMPLETE:"COMPLETE",ERROR:"ERROR",BYPASSED:"BYPASSED",TIMEOUT:"TIMEOUT"},pe="adDisabled",fe="adError",ge="adCompleted",be="adBlank",ve="adNotSupported",me="adRequest",ye="adLoad",he="adStart",we="complete",Se="adPlay",Ee="adPause",xe="skipReady",Oe="adTimeChange",Ae="adError",Ce="adBypassed",ke="LOADING",Pe="READY",je="BUFFER",$e="HIDDEN";function Ie(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=null==e||null===(r=e.taxonomy)||void 0===r||null===(t=r.tags)||void 0===t?void 0:t.map((function(e){return e.text})),a=!n&&[le.LOOPING_PROMO,le.LOOPING_NO_CONTROLS].some((function(e){return null==o?void 0:o.includes(e)}));return a?se.LOOP_NO_CONTROLS:!n&&(null==o?void 0:o.includes(le.LOOPING_VIDEO))?se.LOOP:(null==o?void 0:o.includes(le.AUTOPLAY))?se.AUTO:null}function Re(e){var t=Ie(e);return t===se.LOOP||t===se.LOOP_NO_CONTROLS}function Te(e,t,r){var n,o,a,i;if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]&&console.log(e,t),null===(n=window)||void 0===n?void 0:n.orcaPlayers){var l=window.orcaPlayers[r];l&&l.events.push((i=t,(a=e)in(o={})?Object.defineProperty(o,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[a]=i,o))}}var De=function(e){var t,r=null==e||null===(t=e.taxonomy)||void 0===t?void 0:t.tags;return(null==r?void 0:r.filter((function(e){return e.text===ue.BURNED_HEADLINE})).length)>0},Me=function(e){return e=e.replace(/[^a-z0-9\s-]/gi,""),"https://d2p9l91d5g68ru.cloudfront.net/LiveConfig/".concat(e,".json")};function Le(e){var t;return!!(e&&e.streams&&(null===(t=e.streams[0])||void 0===t?void 0:t.url))}var _e=function(e){var t,r;return(null===(t=e.additional_properties)||void 0===t?void 0:t.vertical)||"vertical"===(null===(r=e.additional_properties)||void 0===r?void 0:r.videoCategory)||!1};function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.self!==window.top?document.referrer:window.location.href;try{if(!/^https?:\/\//.test(e))return"";e=(e=e.split("/")[2]).split(":")[0]}catch(e){console.log(e)}return e}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.self!==window.top?document.referrer:window.location.href,t=function(e){return/washingtonpost\.com|localhost|thelily\.com|arcpublishing\.com|wpprivate\.com|wapo\.st|wapo\.pub|github\.io|zeustechnology\.com|zeus\.aws\.arc\.pub/.test(e)},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.self!==window.top?document.referrer:window.location.href;try{if(e=Be(e)){var t=e.split("."),r=t.length,n="co"===t[r-2]?3:2;if(r>=n){for(var o=[];n;)o.push(t[r-n]),n--;e=o.join(".")}}}catch(e){console.log(e)}return e}(e);if(t(r)||t(e))return!0;var n=Be(e);return!!/www-washingtonpost-com\.cdn\.ampproject\.org|wpit\.nile\.works|washpost\.arcpublishing\.com/.test(n)}var ze=o(4993);function Ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Fe=[],We=o.n(ze)()((function(){for(var e=[],t=0;Fe.length>0&&t<10;t++){var r=Fe.pop(),n=r.name,o=r.data;e.push({name:n,data:o})}var a;a={postBody:function(){var e="";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.name,n=t.data,o={sourcetype:"httpevent",event:{name:r,data:n}};n.evtTime&&(o.time=Math.floor(n.evtTime/1e3)),e+=JSON.stringify(o)})),e}(e)},fetch("https://d1get58iwmjrxx.cloudfront.net/collector",{method:"POST",body:a.postBody}).then((function(e){})).catch((function(e){console.error(e)})),Fe.length&&We()}),1e4,{maxWait:1e4}),Ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"send",value:function(e,t){var r;r={name:e,data:Object.assign({evtName:e,evtTime:Date.now()},t)},Fe.push(r),We()}}],null&&Ve(t.prototype,null),r&&Ve(t,r),e}(),He=function(e){var t,r;return null===(r=e.taxonomy)||void 0===r||null===(t=r.tags)||void 0===t?void 0:t.map((function(e){return e.text})).includes(ce.YOUTUBE)},qe=o(4304),Ge=o.n(qe),Ye={homepage:"homepage",leaf:"leaf","article page":"embed","interactive graphics":"graphics",iframe:"iframe",other:"embed"},Ze={continuous:"rollthrough","continuous-carousel":"rollthrough-carousel",manual:"click",autoplay:"autoplay",looping:"looping",hover:"hover-carousel","click-carousel":"click-carousel","click-carousel-all":"click-carousel-all","click-carousel-forward":"click-carousel-forward","click-carousel-back":"click-carousel-back","swipe-carousel":"swipe-carousel","youtube-embed":"youtube"},Xe=function(){if("undefined"!=typeof window){if("homepage"===Ge()(window,"Fusion.metas.contentType.value",""))return ae;if(function(){if(Ge()(window,"pageName","").startsWith("video-leaf-page"))return!0}())return"leaf";if((e=Ge()(window,"Fusion.template","")).startsWith("article")||e.startsWith("template/article")||function(){if("LUF"===window.pageType)return!0;var e=Ge()(window,"__NEXT_DATA__.props.pageProps.globalContent.subtype");return"highlights"===e||"live-all"===e}())return ie;if("interactive graphics"===Ge()(window,"wp_content_type",""))return"interactive graphics";if("wpvIframe"===window.pageType||/washingtonpost\.com\/(video|posttv)\/c\/embed/.test(window.location.href))return"iframe"}var e;return"other"},Ke="video-start",Je="video-pause",Qe="video-unpause",et="video-autoplay",tt="sticky-player-close",rt="video_progress",nt="youtube-embed",ot=function(e){var t;return(null==e?void 0:e.playerTypeOverride)?e.playerTypeOverride:"undefined"!=typeof window?!0===(null===(t=window.wp_meta_data)||void 0===t?void 0:t.isHomepage)?"orca-embed-hp":window.self!==window.top?"orca-embed-iframe":window.wp_pb&&/video-leaf-page/.test(window.wp_pb.pageName)?"orca-leaf":"orca-embed":void 0},at=function(e){var t=Xe();return t&&e?"".concat(e,"-").concat(Ge()(Ye,t)):Ge()(Ye,t)},it=function(e,t){return t.type===se.LOOP_NO_CONTROLS?"looping-no-controls":e};function lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){lt(e,t,r[t])}))}return e}function ut(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var st="SET_ORIGINAL",dt="SET_ORIGINAL_FROM_API",pt="SET_NEXT",ft="SET_NEXT_FROM_API",gt="SET_API_FAILED",bt="SET_NEXT_FROM_FORCE_LOAD",vt=function(e,t){switch(t.type){case dt:return{videoData:t.videoData,videoApiDataFailed:!1,originalVideo:t.videoData,fetchedByUUID:!0};case gt:return ut(ct({},e),{videoApiDataFailed:!0});case pt:return ut(ct({},e),{videoData:t.videoData});case ft:return ut(ct({},e),{videoData:t.videoData,videoApiDataFailed:!1});case st:return ut(ct({},e),{videoData:t.videoData,originalVideo:t.videoData});case bt:return ut(ct({},e),{videoData:t.videoData,originalVideo:t.videoData,isForceLoadVideo:!0});default:return e}};function mt(e,t,r,n,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function yt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){mt(a,n,o,i,l,"next",e)}function l(e){mt(a,n,o,i,l,"throw",e)}i(void 0)}))}}function ht(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var St="prod",Et=function(){var e=yt((function(e,t,r){var n,o,a,i;return wt(this,(function(l){switch(l.label){case 0:if(r)return[2,null];n=e.videoApiUrl,o=e.domain,l.label=1;case 1:return l.trys.push([1,4,,5]),(a=new URL(n)).searchParams.append("uuid",t),a.searchParams.append("domain",o),[4,fetch(a,{cache:"no-cache"})];case 2:return[4,l.sent().json()];case 3:return[2,l.sent()];case 4:return i=l.sent(),console.error("Error retrieving video data",i),[2,null];case 5:return[2]}}))}));return function(t,r,n){return e.apply(this,arguments)}}(),xt=function(){var e=yt((function(e){var t;return wt(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,fetch(e,{cache:"no-cache"})];case 1:return[4,r.sent().json()];case 2:return[2,r.sent()];case 3:return t=r.sent(),console.error("Error retrieving live config",t),[2,null];case 4:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),Ot=function(e,t,r){var n=(null==t?void 0:t[0])||{},o=x()((function(e,t){return A()({},e,t)}))(r,n);return At(e,o)},At=function(e,t){var r=(null==e?void 0:e[t._id])||{};if(Object.keys(r).length>0){if(r.forceStatus&&(t.status=r.forceStatus,d(t)&&delete t.additional_properties.publicationEndDate),r.forceTags){var n;t.taxonomy=t.taxonomy||{};var o=(null===(n=t.taxonomy)||void 0===n?void 0:n.tags.map((function(e){return e.text})))||[];r.forceTags.forEach((function(e){o.includes(e)||t.taxonomy.tags.push({text:e})}))}return r.forceAdditionalProperties&&(t.additional_properties=t.additional_properties||{},Object.assign(t.additional_properties,r.forceAdditionalProperties)),t}return t},Ct=function(){var e=yt((function(e,t,r,n,o){var a,i,l,c;return wt(this,(function(u){switch(u.label){case 0:return l=null===(a=e.additional_properties)||void 0===a?void 0:a.youtubeVideoId,He(e)&&l?[2,t({type:pt,videoData:e})]:(c=null==e||null===(i=e.additional_properties)||void 0===i?void 0:i.forceLoadVideo)?[4,kt(c,r,n,o,t)]:[3,2];case 1:return[2,u.sent()];case 2:return[2]}}))}));return function(t,r,n,o,a){return e.apply(this,arguments)}}(),kt=function(){var e=yt((function(e,t,r,n,o){var a,i;return wt(this,(function(l){switch(l.label){case 0:(a=new URL(t)).searchParams.append("uuid",e),a.searchParams.append("domain",r),l.label=1;case 1:return l.trys.push([1,4,,5]),[4,fetch(a,{cache:"no-cache"})];case 2:return[4,l.sent().json()];case 3:return i=l.sent(),Te(M,!0,e),n.current.resetVideoState(!1),o({type:bt,videoData:i[0]}),n.current.initializeNewVideo(!1),[3,5];case 4:return l.sent(),console.error("Cannot fetch video data for video ID: "+e),Ue.send("errorGettingVideoData",{userAgent:window.navigator.userAgent,href:window.location.href,errorMessage:"Video data not found for video ID: "+e}),[3,5];case 5:return[2]}}))}));return function(t,r,n,o,a){return e.apply(this,arguments)}}(),Pt=function(e,t,r,n,o,a,i){S()(e,t)||(clearInterval(r.current),n({type:pt,videoData:t}),s(t)?o.current.resetVideoState(!1):d(t)&&i&&a({status:R}))},jt="colors",$t="sizes",It="space",Rt={gap:It,gridGap:It,columnGap:It,gridColumnGap:It,rowGap:It,gridRowGap:It,inset:It,insetBlock:It,insetBlockEnd:It,insetBlockStart:It,insetInline:It,insetInlineEnd:It,insetInlineStart:It,margin:It,marginTop:It,marginRight:It,marginBottom:It,marginLeft:It,marginBlock:It,marginBlockEnd:It,marginBlockStart:It,marginInline:It,marginInlineEnd:It,marginInlineStart:It,padding:It,paddingTop:It,paddingRight:It,paddingBottom:It,paddingLeft:It,paddingBlock:It,paddingBlockEnd:It,paddingBlockStart:It,paddingInline:It,paddingInlineEnd:It,paddingInlineStart:It,top:It,right:It,bottom:It,left:It,scrollMargin:It,scrollMarginTop:It,scrollMarginRight:It,scrollMarginBottom:It,scrollMarginLeft:It,scrollMarginX:It,scrollMarginY:It,scrollMarginBlock:It,scrollMarginBlockEnd:It,scrollMarginBlockStart:It,scrollMarginInline:It,scrollMarginInlineEnd:It,scrollMarginInlineStart:It,scrollPadding:It,scrollPaddingTop:It,scrollPaddingRight:It,scrollPaddingBottom:It,scrollPaddingLeft:It,scrollPaddingX:It,scrollPaddingY:It,scrollPaddingBlock:It,scrollPaddingBlockEnd:It,scrollPaddingBlockStart:It,scrollPaddingInline:It,scrollPaddingInlineEnd:It,scrollPaddingInlineStart:It,fontSize:"fontSizes",background:jt,backgroundColor:jt,backgroundImage:jt,borderImage:jt,border:jt,borderBlock:jt,borderBlockEnd:jt,borderBlockStart:jt,borderBottom:jt,borderBottomColor:jt,borderColor:jt,borderInline:jt,borderInlineEnd:jt,borderInlineStart:jt,borderLeft:jt,borderLeftColor:jt,borderRight:jt,borderRightColor:jt,borderTop:jt,borderTopColor:jt,caretColor:jt,color:jt,columnRuleColor:jt,fill:jt,outline:jt,outlineColor:jt,stroke:jt,textDecorationColor:jt,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:$t,minBlockSize:$t,maxBlockSize:$t,inlineSize:$t,minInlineSize:$t,maxInlineSize:$t,width:$t,minWidth:$t,maxWidth:$t,height:$t,minHeight:$t,maxHeight:$t,flexBasis:$t,gridTemplateColumns:$t,gridTemplateRows:$t,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Tt=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,Dt=()=>{const e=Object.create(null);return(t,r,...n)=>{const o=(e=>JSON.stringify(e,Tt))(t);return o in e?e[o]:e[o]=r(t,...n)}},Mt=Symbol.for("sxs.internal"),Lt=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),_t=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Bt}=Object.prototype,Nt=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),zt=/\s+(?![^()]*\))/,Vt=e=>t=>e(..."string"==typeof t?String(t).split(zt):[t]),Ft={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Vt(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:Vt(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:Vt(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:Vt(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:Vt(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:Vt(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},Wt=/([\d.]+)([^]*)/,Ut=(e,t)=>e.length?e.reduce(((e,r)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e))),e)),[]):t,Ht=(e,t)=>e in qt&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,r,n,o)=>r+("stretch"===n?`-moz-available${o};${Nt(e)}:${r}-webkit-fill-available`:`-moz-fit-content${o};${Nt(e)}:${r}fit-content`)+o)):String(t),qt={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Gt=e=>e?e+"-":"",Yt=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,n,o,a,i)=>"$"==a==!!o?e:(n||"--"==a?"calc(":"")+"var(--"+("$"===a?Gt(t)+(i.includes("$")?"":Gt(r))+i.replace(/\$/g,"-"):i)+")"+(n||"--"==a?"*"+(n||"")+(o||"1")+")":""))),Zt=/\s*,\s*(?![^()]*\))/,Xt=Object.prototype.toString,Kt=(e,t,r,n,o)=>{let a,i,l;const c=(e,t,r)=>{let u,s;const d=e=>{for(u in e){const g=64===u.charCodeAt(0),b=g&&Array.isArray(e[u])?e[u]:[e[u]];for(s of b){const e=/[A-Z]/.test(f=u)?f:f.replace(/-[^]/g,(e=>e[1].toUpperCase())),b="object"==typeof s&&s&&s.toString===Xt&&(!n.utils[e]||!t.length);if(e in n.utils&&!b){const t=n.utils[e];if(t!==i){i=t,d(t(s)),i=null;continue}}else if(e in Ft){const t=Ft[e];if(t!==l){l=t,d(t(s)),l=null;continue}}if(g&&(p=u.slice(1)in n.media?"@media "+n.media[u.slice(1)]:u,u=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,r,n,o,a)=>{const i=Wt.test(t),l=.0625*(i?-1:1),[c,u]=i?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===i?"max-":"min-")+c+":"+("="!==r[0]&&1===r.length?u.replace(Wt,((e,t,n)=>Number(t)+l*(">"===r?1:-1)+n)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+c+":"+(1===o.length?a.replace(Wt,((e,t,r)=>Number(t)+l*(">"===o?-1:1)+r)):a):"")+")"}))),b){const e=g?r.concat(u):[...r],n=g?[...t]:Ut(t,u.split(Zt));void 0!==a&&o(Jt(...a)),a=void 0,c(s,n,e)}else void 0===a&&(a=[[],t,r]),u=g||36!==u.charCodeAt(0)?u:`--${Gt(n.prefix)}${u.slice(1).replace(/\$/g,"-")}`,s=b?s:"number"==typeof s?s&&e in Qt?String(s)+"px":String(s):Yt(Ht(e,null==s?"":s),n.prefix,n.themeMap[e]),a[0].push(`${g?`${u} `:`${Nt(u)}:`}${s}`)}}var p,f};d(e),void 0!==a&&o(Jt(...a)),a=void 0};c(e,t,r)},Jt=(e,t,r)=>`${r.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,Qt={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},er=e=>String.fromCharCode(e+(e>25?39:97)),tr=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=er(t%52)+r;return er(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),rr=["themed","global","styled","onevar","resonevar","allvar","inline"],nr=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},or=e=>{let t;const r=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((r,n)=>{const{cssText:o}=r;let a="";if(o.startsWith("--sxs"))return"";if(e[n-1]&&(a=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return r.cssRules.length?`${a}${o}`:""}return o})).join("")},n=()=>{if(t){const{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(const t in e)delete e[t]}const o=Object(e).styleSheets||[];for(const e of o)if(nr(e)){for(let o=0,a=e.cssRules;a[o];++o){const i=Object(a[o]);if(1!==i.type)continue;const l=Object(a[o+1]);if(4!==l.type)continue;++o;const{cssText:c}=i;if(!c.startsWith("--sxs"))continue;const u=c.slice(14,-3).trim().split(/\s+/),s=rr[u[0]];s&&(t||(t={sheet:e,reset:n,rules:{},toString:r}),t.rules[s]={group:l,index:o,cache:new Set(u)})}if(t)break}if(!t){const o=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,o(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:o("","text/css"),rules:{},reset:n,toString:r}}const{sheet:a,rules:i}=t;for(let e=rr.length-1;e>=0;--e){const t=rr[e];if(!i[t]){const r=rr[e+1],n=i[r]?i[r].index:a.cssRules.length;a.insertRule("@media{}",n),a.insertRule(`--sxs{--sxs:${e}}`,n),i[t]={group:a.cssRules[n+1],index:n,cache:new Set([e])}}ar(i[t])}};return n(),t},ar=e=>{const t=e.group;let r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},ir=Symbol(),lr=Dt(),cr=(e,t)=>lr(e,(()=>(...r)=>{let n={type:null,composers:new Set};for(const t of r)if(null!=t)if(t[Mt]){null==n.type&&(n.type=t[Mt].type);for(const e of t[Mt].composers)n.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==n.type&&(n.type=t):n.composers.add(ur(t,e));return null==n.type&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),sr(e,n,t)})),ur=({variants:e,compoundVariants:t,defaultVariants:r,...n},o)=>{const a=`${Gt(o.prefix)}c-${tr(n)}`,i=[],l=[],c=Object.create(null),u=[];for(const e in r)c[e]=String(r[e]);if("object"==typeof e&&e)for(const t in e){s=c,d=t,Bt.call(s,d)||(c[t]="undefined");const r=e[t];for(const e in r){const n={[t]:String(e)};"undefined"===String(e)&&u.push(t);const o=r[e],a=[n,o,!_t(o)];i.push(a)}}var s,d;if("object"==typeof t&&t)for(const e of t){let{css:t,...r}=e;t="object"==typeof t&&t||{};for(const e in r)r[e]=String(r[e]);const n=[r,t,!_t(t)];l.push(n)}return[a,n,i,l,c,u]},sr=(e,t,r)=>{const[n,o,a,i]=dr(t.composers),l="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;r<t[ir].length;r++){const[n,o]=t[ir][r];e.rules[n].apply(o)}return t[ir]=[],null}return t[ir]=[],t.rules={},rr.forEach((e=>t.rules[e]={apply:r=>t[ir].push([e,r])})),t})(r):null,c=(l||r).rules,u=`.${n}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,s=s=>{s="object"==typeof s&&s||fr;const{css:d,...p}=s,f={};for(const e in a)if(delete p[e],e in s){let t=s[e];"object"==typeof t&&t?f[e]={"@initial":a[e],...t}:(t=String(t),f[e]="undefined"!==t||i.has(e)?t:a[e])}else f[e]=a[e];const g=new Set([...o]);for(const[n,o,a,i]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),Kt(o,[`.${n}`],[],e,(e=>{c.styled.apply(e)})));const t=pr(a,f,e.media),l=pr(i,f,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,a,i]of o){const o=`${n}-${tr(a)}-${t}`;g.add(o);const l=(i?r.rules.resonevar:r.rules.onevar).cache,u=i?c.resonevar:c.onevar;l.has(o)||(l.add(o),Kt(a,[`.${o}`],[],e,(e=>{u.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,a]of t){const t=`${n}-${tr(a)}-${o}`;g.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),Kt(a,[`.${t}`],[],e,(e=>{c.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${n}-i${tr(d)}-css`;g.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),Kt(d,[`.${t}`],[],e,(e=>{c.inline.apply(e)})))}for(const e of String(s.className||"").trim().split(/\s+/))e&&g.add(e);const b=p.className=[...g].join(" ");return{type:t.type,className:b,selector:u,props:p,toString:()=>b,deferredInjector:l}};return Lt(s,{className:n,selector:u,[Mt]:t,toString:()=>(r.rules.styled.cache.has(n)||s(),n)})},dr=e=>{let t="";const r=[],n={},o=[];for(const[a,,,,i,l]of e){""===t&&(t=a),r.push(a),o.push(...l);for(const e in i){const t=i[e];(void 0===n[e]||"undefined"!==t||l.includes(t))&&(n[e]=t)}}return[t,r,n,new Set(o)]},pr=(e,t,r,n)=>{const o=[];e:for(let[a,i,l]of e){if(l)continue;let e,c=0,u=!1;for(e in a){const n=a[e];let o=t[e];if(o!==n){if("object"!=typeof o||!o)continue e;{let e,t,a=0;for(const i in o){if(n===String(o[i])){if("@initial"!==i){const e=i.slice(1);(t=t||[]).push(e in r?r[e]:i.replace(/^@media ?/,"")),u=!0}c+=a,e=!0}++a}if(t&&t.length&&(i={["@media "+t.join(", ")]:i}),!e)continue e}}}(o[c]=o[c]||[]).push([n?"cv":`${e}-${a[e]}`,i,u])}return o},fr={},gr=Dt(),br=(e,t)=>gr(e,(()=>(...r)=>{const n=()=>{for(let n of r){n="object"==typeof n&&n||{};let r=tr(n);if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}Kt(n,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return Lt(n,{toString:n})})),vr=Dt(),mr=(e,t)=>vr(e,(()=>r=>{const n=`${Gt(e.prefix)}k-${tr(r)}`,o=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const o=[];Kt(r,[],[],e,(e=>o.push(e)));const a=`@keyframes ${n}{${o.join("")}}`;t.rules.global.apply(a)}return n};return Lt(o,{get name(){return o()},toString:o})})),yr=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Gt(this.prefix)+Gt(this.scale)+this.token}toString(){return this.computedValue}},hr=Dt(),wr=(e,t)=>hr(e,(()=>(r,n)=>{n="object"==typeof r&&r||Object(n);const o=`.${r=(r="string"==typeof r?r:"")||`${Gt(e.prefix)}t-${tr(n)}`}`,a={},i=[];for(const t in n){a[t]={};for(const r in n[t]){const o=`--${Gt(e.prefix)}${t}-${r}`,l=Yt(String(n[t][r]),e.prefix,t);a[t][r]=new yr(r,l,t,e.prefix),i.push(`${o}:${l}`)}}const l=()=>{if(i.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const o=`${n===e.theme?":root,":""}.${r}{${i.join(";")}}`;t.rules.themed.apply(o)}return r};return{...a,get className(){return l()},selector:o,toString:l}})),Sr=Dt(),Er=Dt(),xr=Object.defineProperty,Or=Object.defineProperties,Ar=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,jr=(e,t,r)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$r=(e,t)=>{for(var r in t||(t={}))kr.call(t,r)&&jr(e,r,t[r]);if(Cr)for(var r of Cr(t))Pr.call(t,r)&&jr(e,r,t[r]);return e},Ir={"alpha0-static":"rgba(0, 0, 0, .65)","alpha20-static":"rgba(0, 0, 0, .45)","alpha40-static":"rgba(0, 0, 0, .40)","alpha60-static":"rgba(0, 0, 0, .35)","alpha80-static":"rgba(0, 0, 0, .30)","alpha100-static":"rgba(0, 0, 0, .25)","alpha200-static":"rgba(0, 0, 0, .20)","alpha300-static":"rgba(0, 0, 0, .15)","alpha400-static":"rgba(0, 0, 0, .10)","alpha500-static":"rgba(0, 0, 0, .05)","alpha50-static":"rgba(0, 0, 0, .50)","alpha25-static":"rgba(0, 0, 0, .05)","mustard600-static":"rgba(251, 241, 221, 1)","mustard500-static":"rgba(254, 227, 156, 1)","mustard400-static":"rgba(247, 202, 111, 1)","mustard300-static":"rgba(235, 179, 71, 1)","mustard200-static":"rgba(217, 158, 32, 1)","mustard100-static":"rgba(226, 163, 31, 1)","mustard80-static":"rgba(193, 139, 0, 1)","mustard60-static":"rgba(145, 104, 2, 1)","mustard40-static":"rgba(100, 72, 1, 1)","yellow600-static":"rgba(253, 250, 219, 1)","yellow100-static":"rgba(255, 236, 68, 1)","gold600-static":"rgba(250, 240, 227, 1)","gold500-static":"rgba(243, 228, 205, 1)","gold400-static":"rgba(232, 203, 164, 1)","gold300-static":"rgba(222, 181, 126, 1)","gold200-static":"rgba(211, 158, 76, 1)","gold100-static":"rgba(229, 160, 56, 1)","gold80-static":"rgba(194, 136, 47, 1)","gold60-static":"rgba(158, 97, 5, 1)","gold40-static":"rgba(109, 69, 8, 1)","green600-static":"rgba(238, 249, 234, 1)","green500-static":"rgba(213, 237, 202, 1)","green400-static":"rgba(178, 214, 160, 1)","green300-static":"rgba(145, 192, 120, 1)","green200-static":"rgba(110, 169, 81, 1)","green100-static":"rgba(54, 167, 92, 1)","green80-static":"rgba(73, 147, 39, 1)","green60-static":"rgba(56, 113, 30, 1)","green40-static":"rgba(40, 81, 21, 1)","orange600-static":"rgba(255, 239, 224, 1)","orange500-static":"rgba(251, 225, 195, 1)","orange400-static":"rgba(249, 194, 150, 1)","orange300-static":"rgba(241, 162, 106, 1)","orange200-static":"rgba(230, 130, 61, 1)","orange100-static":"rgba(243, 117, 14, 1)","orange80-static":"rgba(216, 97, 0, 1)","orange60-static":"rgba(166, 74, 0, 1)","orange40-static":"rgba(118, 53, 2, 1)","teal600-static":"rgba(234, 251, 254, 1)","teal500-static":"rgba(199, 234, 239, 1)","teal400-static":"rgba(159, 203, 211, 1)","teal300-static":"rgba(118, 172, 182, 1)","teal200-static":"rgba(74, 142, 155, 1)","teal100-static":"rgba(3, 175, 202, 1)","teal80-static":"rgba(15, 113, 128, 1)","teal60-static":"rgba(15, 84, 95, 1)","teal40-static":"rgba(11, 57, 64, 1)","purple600-static":"rgba(250, 238, 249, 1)","purple500-static":"rgba(248, 221, 244, 1)","purple400-static":"rgba(234, 179, 223, 1)","purple300-static":"rgba(217, 137, 201, 1)","purple200-static":"rgba(201, 92, 182, 1)","purple100-static":"rgba(209, 56, 191, 1)","purple80-static":"rgba(182, 35, 161, 1)","purple60-static":"rgba(136, 27, 121, 1)","purple40-static":"rgba(93, 18, 84, 1)","pink600-static":"rgba(252, 233, 239, 1)","pink500-static":"rgba(249, 222, 231, 1)","pink400-static":"rgba(239, 180, 191, 1)","pink300-static":"rgba(228, 138, 155, 1)","pink200-static":"rgba(213, 94, 119, 1)","pink100-static":"rgba(255, 79, 131, 1)","pink80-static":"rgba(195, 39, 85, 1)","pink60-static":"rgba(149, 25, 64, 1)","pink40-static":"rgba(105, 11, 44, 1)","red600-static":"rgba(253, 231, 231, 1)","red500-static":"rgba(249, 221, 219, 1)","red400-static":"rgba(242, 180, 171, 1)","red300-static":"rgba(229, 138, 124, 1)","red200-static":"rgba(211, 95, 79, 1)","red100-static":"rgba(234, 0, 23, 1)","red80-static":"rgba(190, 44, 37, 1)","red60-static":"rgba(142, 31, 27, 1)","red40-static":"rgba(99, 16, 14, 1)","blue600-static":"rgba(231, 240, 254, 1)","blue500-static":"rgba(211, 231, 250, 1)","blue400-static":"rgba(172, 197, 231, 1)","blue300-static":"rgba(132, 164, 214, 1)","blue200-static":"rgba(87, 132, 197, 1)","blue100-static":"rgba(22, 109, 252, 1)","blue80-static":"rgba(19, 102, 179, 1)","blue60-static":"rgba(15, 75, 132, 1)","blue40-static":"rgba(10, 50, 88, 1)","gray700-static":"rgba(255, 255, 255, 1)","gray600-static":"rgba(247, 247, 247, 1)","gray500-static":"rgba(240, 240, 240, 1)","gray400-static":"rgba(233, 233, 233, 1)","gray300-static":"rgba(212, 212, 212, 1)","gray200-static":"rgba(170, 170, 170, 1)","gray100-static":"rgba(115, 115, 115, 1)","gray80-static":"rgba(89, 89, 89, 1)","gray60-static":"rgba(73, 73, 73, 1)","gray40-static":"rgba(42, 42, 42, 1)","gray20-static":"rgba(17, 17, 17, 1)","gray0-static":"rgba(0, 0, 0, 1)"},Rr="wpds",Tr="767px",Dr="900px",Mr="1024px",Lr="1280px",_r="1440px",Br=(t=>{const r=(e=>{let t=!1;const r=Sr(e,(e=>{t=!0;const r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,a="object"==typeof e.theme&&e.theme||{},i={prefix:r,media:n,theme:a,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...Rt},utils:"object"==typeof e.utils&&e.utils||{}},l=or(o),c={css:cr(i,l),globalCss:br(i,l),keyframes:mr(i,l),createTheme:wr(i,l),reset(){l.reset(),c.theme.toString()},theme:{},sheet:l,config:i,prefix:r,getCssText:l.toString,toString:l.toString};return String(c.theme=c.createTheme(a)),c}));return t||r.reset(),r})(t);return r.styled=(({config:t,sheet:r})=>Er(t,(()=>{const n=cr(t,r);return(...t)=>{const r=n(...t),o=r[Mt].type,a=e.forwardRef(((t,n)=>{const a=t&&t.as||o,{props:i,deferredInjector:l}=r(t);return delete i.as,i.ref=n,l?e.createElement(e.Fragment,null,e.createElement(a,i),e.createElement(l,null)):e.createElement(a,i)}));return a.className=r.className,a.displayName=`Styled.${o.displayName||o.name||o}`,a.selector=r.selector,a.toString=()=>r.selector,a[Mt]=r[Mt],a}})))(r),r})({prefix:Rr,theme:{colors:$r($r($r({},{alpha0:"rgba(0, 0, 0, .50)",alpha20:"rgba(0, 0, 0, .45)",alpha40:"rgba(0, 0, 0, .40)",alpha60:"rgba(0, 0, 0, .35)",alpha80:"rgba(0, 0, 0, .30)",alpha100:"rgba(0, 0, 0, .25)",alpha200:"rgba(0, 0, 0, .20)",alpha300:"rgba(0, 0, 0, .15)",alpha400:"rgba(0, 0, 0, .10)",alpha500:"rgba(0, 0, 0, .05)",alpha50:"rgba(0, 0, 0, .50)",alpha25:"rgba(0, 0, 0, .05)",mustard600:"rgba(251, 241, 221, 1)",mustard500:"rgba(254, 227, 156, 1)",mustard400:"rgba(247, 202, 111, 1)",mustard300:"rgba(235, 179, 71, 1)",mustard200:"rgba(217, 158, 32, 1)",mustard100:"rgba(226, 163, 31, 1)",mustard80:"rgba(193, 139, 0, 1)",mustard60:"rgba(145, 104, 2, 1)",mustard40:"rgba(100, 72, 1, 1)",yellow600:"rgba(253, 250, 219, 1)",yellow100:"rgba(255, 236, 68, 1)",gold600:"rgba(250, 240, 227, 1)",gold500:"rgba(243, 228, 205, 1)",gold400:"rgba(232, 203, 164, 1)",gold300:"rgba(222, 181, 126, 1)",gold200:"rgba(211, 158, 76, 1)",gold100:"rgba(229, 160, 56, 1)",gold80:"rgba(194, 136, 47, 1)",gold60:"rgba(158, 97, 5, 1)",gold40:"rgba(109, 69, 8, 1)",green600:"rgba(238, 249, 234, 1)",green500:"rgba(213, 237, 202, 1)",green400:"rgba(178, 214, 160, 1)",green300:"rgba(145, 192, 120, 1)",green200:"rgba(110, 169, 81, 1)",green100:"rgba(54, 167, 92, 1)",green80:"rgba(73, 147, 39, 1)",green60:"rgba(56, 113, 30, 1)",green40:"rgba(40, 81, 21, 1)",orange600:"rgba(255, 239, 224, 1)",orange500:"rgba(251, 225, 195, 1)",orange400:"rgba(249, 194, 150, 1)",orange300:"rgba(241, 162, 106, 1)",orange200:"rgba(230, 130, 61, 1)",orange100:"rgba(243, 117, 14, 1)",orange80:"rgba(216, 97, 0, 1)",orange60:"rgba(166, 74, 0, 1)",orange40:"rgba(118, 53, 2, 1)",teal600:"rgba(234, 251, 254, 1)",teal500:"rgba(199, 234, 239, 1)",teal400:"rgba(159, 203, 211, 1)",teal300:"rgba(118, 172, 182, 1)",teal200:"rgba(74, 142, 155, 1)",teal100:"rgba(3, 175, 202, 1)",teal80:"rgba(15, 113, 128, 1)",teal60:"rgba(15, 84, 95, 1)",teal40:"rgba(11, 57, 64, 1)",purple600:"rgba(250, 238, 249, 1)",purple500:"rgba(248, 221, 244, 1)",purple400:"rgba(234, 179, 223, 1)",purple300:"rgba(217, 137, 201, 1)",purple200:"rgba(201, 92, 182, 1)",purple100:"rgba(209, 56, 191, 1)",purple80:"rgba(182, 35, 161, 1)",purple60:"rgba(136, 27, 121, 1)",purple40:"rgba(93, 18, 84, 1)",pink600:"rgba(252, 233, 239, 1)",pink500:"rgba(249, 222, 231, 1)",pink400:"rgba(239, 180, 191, 1)",pink300:"rgba(228, 138, 155, 1)",pink200:"rgba(213, 94, 119, 1)",pink100:"rgba(255, 79, 131, 1)",pink80:"rgba(195, 39, 85, 1)",pink60:"rgba(149, 25, 64, 1)",pink40:"rgba(105, 11, 44, 1)",red600:"rgba(253, 231, 231, 1)",red500:"rgba(249, 221, 219, 1)",red400:"rgba(242, 180, 171, 1)",red300:"rgba(229, 138, 124, 1)",red200:"rgba(211, 95, 79, 1)",red100:"rgba(234, 0, 23, 1)",red80:"rgba(190, 44, 37, 1)",red60:"rgba(142, 31, 27, 1)",red40:"rgba(99, 16, 14, 1)",blue600:"rgba(231, 240, 254, 1)",blue500:"rgba(211, 231, 250, 1)",blue400:"rgba(172, 197, 231, 1)",blue300:"rgba(132, 164, 214, 1)",blue200:"rgba(87, 132, 197, 1)",blue100:"rgba(22, 109, 252, 1)",blue80:"rgba(19, 102, 179, 1)",blue60:"rgba(15, 75, 132, 1)",blue40:"rgba(10, 50, 88, 1)",gray700:"rgba(255, 255, 255, 1)",gray600:"rgba(247, 247, 247, 1)",gray500:"rgba(240, 240, 240, 1)",gray400:"rgba(233, 233, 233, 1)",gray300:"rgba(212, 212, 212, 1)",gray200:"rgba(170, 170, 170, 1)",gray100:"rgba(115, 115, 115, 1)",gray80:"rgba(89, 89, 89, 1)",gray60:"rgba(73, 73, 73, 1)",gray40:"rgba(42, 42, 42, 1)",gray20:"rgba(17, 17, 17, 1)",gray0:"rgba(0, 0, 0, 1)"}),Ir),{errorContainer:"$red600",error:"$red200",warningContainer:"$orange600",warning:"$orange200",successContainer:"$green600",success:"$green80",signalContainer:"$blue600",signal:"$blue200","onMessage-subtle-hover":"$gray80","onMessage-subtle":"$gray60","onMessage-hover":"$gray80",onMessage:"$gray20",portal:"$gray700","onPortal-subtle-hover":"$gray100","onPortal-subtle":"$gray80","onPortal-hover":"$gray100",onPortal:"$gray20","onSurface-subtle-hover":"$gray100","onSurface-subtle":"$gray80","onSurface-hover":"$gray100",onSurface:"$gray20","surface-highest":"$gray700",surface:"$gray700","onBackground-subtle-hover":"$gray100","onBackground-subtle":"$gray80","onBackground-hover":"$gray100",onBackground:"$gray20","background-forSurfaces":"$gray600",background:"$gray700",accessible:"$gray80","outline-subtle":"$alpha500",outline:"$alpha400",subtle:"$gray300",faint:"$gray400",onDisabled:"$alpha80",disabled:"$alpha500","onCtaContainer-subtle-hover":"$gray80","onCtaContainer-subtle":"$gray60","onCtaContainer-hover":"$gray80",onCtaContainer:"$gray20",ctaContainer:"$blue600","onCta-hover":"$gray600-static",onCta:"$gray700-static","cta-hover":"$blue80",cta:"$blue100","onSecondary-subtle-hover":"$gray100","onSecondary-subtle":"$gray80","onSecondary-hover":"$gray100",onSecondary:"$gray20","secondary-hover":"$gray500",secondary:"$gray700","onPrimary-subtle-hover":"$gray200","onPrimary-subtle":"$gray300","onPrimary-hover":"$gray200",onPrimary:"$gray700","primary-hover":"$gray40",primary:"$gray20"}),sizes:{100:"1rem",125:"1.25rem",150:"1.5rem",175:"1.75rem",200:"2rem",225:"2.25rem",250:"2.5rem",275:"2.75rem",300:"3rem",350:"3.5rem",400:"4rem",450:"4.5rem",500:"5rem","025":"0.25rem","050":"0.5rem","075":"0.75rem","087":"0.875rem"},space:{100:"1rem",125:"1.25rem",150:"1.5rem",175:"1.75rem",200:"2rem",225:"2.25rem",250:"2.5rem",275:"2.75rem",300:"3rem",350:"3.5rem",400:"4rem",450:"4.5rem",500:"5rem","025":"0.25rem","050":"0.5rem","075":"0.75rem"},radii:{100:"1rem",125:"1.25rem",150:"1.5rem","012":"0.125rem","025":"0.25rem","050":"0.5rem","075":"0.75rem",round:"9999px"},fonts:{headline:"Postoni, garamond, serif",subhead:"Franklin, arial, sans-serif",body:"georgia, Times New Roman, serif",meta:"Franklin, arial, sans-serif",magazine:"PostoniDisplayMag, garamond, serif"},fontSizes:{100:"1rem",112:"1.125rem",125:"1.25rem",150:"1.5rem",175:"1.75rem",200:"2rem",225:"2.25rem",250:"2.5rem",275:"2.75rem",300:"3rem",350:"3.5rem",400:"4rem",450:"4.5rem",500:"5rem","075":"0.75rem","087":"0.875rem"},fontWeights:{light:300,regular:400,bold:700,ultra:800},shadows:{50:"0px 2px 0px 0px #D5D5D5",100:"0px 1px 2px 0px rgba(0, 0, 0, 0.15)",200:"0px 2px 4px 0px rgba(0, 0, 0, 0.15)",300:"0px 4px 8px 0px rgba(0, 0, 0, 0.15)",400:"0px 8px 16px 0px rgba(0, 0, 0, 0.15)",500:"0px 16px 32px 0px rgba(0, 0, 0, 0.15)"},zIndices:{offer:400,shell:300,ads:200,page:100},lineHeights:(e=>Or(e,Ar({headline:"$110",body:"$160",meta:"$125",subhead:"$meta"})))($r({},{100:1,110:1.1,125:1.25,150:1.5,160:1.6,175:1.75,200:2,240:2.4})),transitions:{allFast:"all $fast $inOut",fast:"0.2s",normal:"0.3s",inOut:"cubic-bezier(.4, 0, .2, 1)"},borderStyles:{},borderWidths:{},letterSpacings:{}},media:{sm:`(max-width: ${Tr})`,md:`(min-width: calc(${Tr} + 1px)) and (max-width: ${Dr})`,lg:`(min-width: calc(${Dr} + 1px)) and (max-width: ${Mr})`,xl:`(min-width: calc(${Mr} + 1px)) and (max-width: ${Lr})`,xxl:`(min-width: calc(${Lr} + 1px)) and (max-width: ${_r})`,notSm:`(min-width: calc(${Tr} + 1px))`,notMd:`(min-width: calc(${Dr} + 1px))`,notLg:`(min-width: calc(${Mr} + 1px))`,notXl:`(min-width: calc(${Lr} + 1px))`,notXxl:`(min-width: calc(${_r} + 1px ))`,minSm:`(min-width: calc(${Tr} + 1px))`,minMd:`(min-width: calc(${Dr} + 1px))`,minLg:`(min-width: calc(${Mr} + 1px))`,minXl:`(min-width: calc(${Lr} + 1px))`,minXxl:`(min-width: calc(${_r} + 1px ))`,maxSm:`(max-width: ${Tr})`,maxMd:`(max-width: ${Dr})`,maxLg:`(max-width: ${Mr})`,maxXl:`(max-width: ${Lr})`,maxXxl:`(max-width: ${_r})`,reducedMotion:"(prefers-reduced-motion)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"},utils:{px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),my:e=>({marginTop:e,marginBottom:e}),mx:e=>({marginLeft:e,marginRight:e}),size:e=>({width:e,height:e})}}),{styled:Nr,css:zr,globalCss:Vr,keyframes:Fr,getCssText:Wr,theme:Ur,createTheme:Hr,config:qr,reset:Gr}=Br,Yr=(qr.utils,Hr(`${Rr}-dark.${Rr}-dark`,{colors:$r($r($r({},{alpha0:"rgba(255, 255, 255, .50)",alpha20:"rgba(255, 255, 255, .45)",alpha40:"rgba(255, 255, 255, .40)",alpha60:"rgba(255, 255, 255, .35)",alpha80:"rgba(255, 255, 255, .30)",alpha100:"rgba(255, 255, 255, .25)",alpha200:"rgba(255, 255, 255, .20)",alpha300:"rgba(255, 255, 255, .15)",alpha400:"rgba(255, 255, 255, .10)",alpha500:"rgba(255, 255, 255, .05)",alpha50:"rgba(255, 255, 255, .20)",alpha25:"rgba(255, 255, 255, .05)",mustard600:"rgba(33, 32, 30, 1)",mustard500:"rgba(44, 39, 27, 1)",mustard400:"rgba(64, 52, 29, 1)",mustard300:"rgba(83, 64, 25, 1)",mustard200:"rgba(104, 75, 15, 1)",mustard100:"rgba(102, 76, 6, 1)",mustard80:"rgba(124, 90, 0, 1)",mustard60:"rgba(161, 125, 37, 1)",mustard40:"rgba(184, 171, 139, 1)",yellow600:"rgba(27, 26, 23, 1)",yellow100:"rgba(40, 37, 11, 1)",gold600:"rgba(31, 30, 28, 1)",gold500:"rgba(42, 39, 35, 1)",gold400:"rgba(60, 53, 43, 1)",gold300:"rgba(79, 65, 45, 1)",gold200:"rgba(102, 77, 37, 1)",gold100:"rgba(105, 70, 19, 1)",gold80:"rgba(128, 89, 31, 1)",gold60:"rgba(172, 121, 42, 1)",gold40:"rgba(187, 168, 140, 1)",green600:"rgba(30, 33, 30, 1)",green500:"rgba(36, 40, 34, 1)",green400:"rgba(49, 59, 44, 1)",green300:"rgba(59, 78, 48, 1)",green200:"rgba(65, 101, 48, 1)",green100:"rgba(34, 112, 60, 1)",green80:"rgba(62, 125, 33, 1)",green60:"rgba(113, 153, 94, 1)",green40:"rgba(168, 184, 160, 1)",orange600:"rgba(36, 31, 27, 1)",orange500:"rgba(43, 39, 34, 1)",orange400:"rgba(68, 53, 41, 1)",orange300:"rgba(97, 65, 43, 1)",orange200:"rgba(133, 75, 35, 1)",orange100:"rgba(150, 76, 15, 1)",orange80:"rgba(179, 81, 0, 1)",orange60:"rgba(192, 127, 74, 1)",orange40:"rgba(200, 174, 154, 1)",teal600:"rgba(29, 33, 33, 1)",teal500:"rgba(36, 42, 43, 1)",teal400:"rgba(50, 64, 67, 1)",teal300:"rgba(61, 89, 94, 1)",teal200:"rgba(61, 118, 129, 1)",teal100:"rgba(2, 106, 122, 1)",teal80:"rgba(78, 150, 162, 1)",teal60:"rgba(148, 178, 183, 1)",teal40:"rgba(200, 210, 212, 1)",purple600:"rgba(33, 29, 33, 1)",purple500:"rgba(43, 38, 42, 1)",purple400:"rgba(74, 56, 70, 1)",purple300:"rgba(112, 71, 103, 1)",purple200:"rgba(165, 75, 149, 1)",purple100:"rgba(198, 53, 181, 1)",purple80:"rgba(204, 100, 189, 1)",purple60:"rgba(204, 157, 198, 1)",purple40:"rgba(220, 204, 218, 1)",pink600:"rgba(36, 32, 33, 1)",pink500:"rgba(44, 39, 41, 1)",pink400:"rgba(76, 57, 61, 1)",pink300:"rgba(117, 71, 79, 1)",pink200:"rgba(175, 77, 98, 1)",pink100:"rgba(173, 54, 89, 1)",pink80:"rgba(213, 103, 136, 1)",pink60:"rgba(210, 157, 174, 1)",pink40:"rgba(223, 203, 210, 1)",red600:"rgba(38, 31, 31, 1)",red500:"rgba(45, 39, 39, 1)",red400:"rgba(77, 58, 55, 1)",red300:"rgba(120, 72, 65, 1)",red200:"rgba(184, 83, 69, 1)",red100:"rgba(240, 46, 65, 1)",red80:"rgba(212, 114, 109, 1)",red60:"rgba(210, 165, 164, 1)",red40:"rgba(225, 208, 208, 1)",blue600:"rgba(31, 34, 38, 1)",blue500:"rgba(37, 41, 44, 1)",blue400:"rgba(55, 63, 73, 1)",blue300:"rgba(69, 86, 112, 1)",blue200:"rgba(74, 112, 168, 1)",blue100:"rgba(22, 109, 252, 1)",blue80:"rgba(88, 146, 201, 1)",blue60:"rgba(154, 179, 203, 1)",blue40:"rgba(205, 213, 221, 1)",gray700:"rgba(20, 20, 20, 1)",gray600:"rgba(26, 26, 26, 1)",gray500:"rgba(32, 32, 32, 1)",gray400:"rgba(37, 37, 37, 1)",gray300:"rgba(51, 51, 51, 1)",gray200:"rgba(79, 79, 79, 1)",gray100:"rgba(127, 127, 127, 1)",gray80:"rgba(161, 161, 161, 1)",gray60:"rgba(177, 177, 177, 1)",gray40:"rgba(222, 222, 222, 1)",gray20:"rgba(242, 242, 242, 1)",gray0:"rgba(255, 255, 255, 1)"}),Ir),{errorContainer:"$red600",error:"$red200",warningContainer:"$orange600",warning:"$orange200",successContainer:"$green600",success:"$green80",signalContainer:"$blue600",signal:"$blue200","onMessage-subtle-hover":"$gray80","onMessage-subtle":"$gray60","onMessage-hover":"$gray80",onMessage:"$gray20",portal:"$gray200","onPortal-subtle-hover":"$gray40","onPortal-subtle":"$gray20","onPortal-hover":"$gray40",onPortal:"$gray0","onSurface-subtle-hover":"$gray80","onSurface-subtle":"$gray60","onSurface-hover":"$gray80",onSurface:"$gray0","surface-highest":"$gray300",surface:"$gray500","onBackground-subtle-hover":"$gray100","onBackground-subtle":"$gray80","onBackground-hover":"$gray100",onBackground:"$gray0","background-forSurfaces":"$gray700",background:"$gray700",accessible:"$gray80","outline-subtle":"$alpha500",outline:"$alpha400",subtle:"$gray300",faint:"$gray400",onDisabled:"$alpha80",disabled:"$alpha500","onCtaContainer-subtle-hover":"$gray80","onCtaContainer-subtle":"$gray60","onCtaContainer-hover":"$gray80",onCtaContainer:"$gray0",ctaContainer:"$blue600","onCta-hover":"$gray600-static",onCta:"$gray700-static","cta-hover":"$blue300",cta:"$blue100","onSecondary-subtle-hover":"$gray100","onSecondary-subtle":"$gray80","onSecondary-hover":"$gray100",onSecondary:"$gray0","secondary-hover":"$gray500",secondary:"$gray700","onPrimary-subtle-hover":"$gray200","onPrimary-subtle":"$gray300","onPrimary-hover":"$gray200",onPrimary:"$gray700","primary-hover":"$gray40",primary:"$gray0"})})),Zr={get className(){return Yr.className,`${Rr}-dark`},selector:Yr.selector,colors:Yr.colors,toString:()=>(Yr.toString(),`${Rr}-dark`)};function Xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Vr({":root":{"--base":"16px",lineHeight:"$meta",$$screenSize:"unknown","@sm":{$$screenSize:"small"},"@md":{$$screenSize:"medium"},"@lg":{$$screenSize:"large"},"@xl":{$$screenSize:"xlarge"},"@xxl":{$$screenSize:"xxlarge"},"@minXxl":{$$screenSize:"infinity"}},"*":{boxSizing:"border-box","&:focus-visible":{outline:"1px auto Highlight","@media screen and (-webkit-min-device-pixel-ratio: 0)":{outline:"1px auto -webkit-focus-ring-color"}}},html:{"-webkit-font-smoothing":"antialiased",textRendering:"optimizeLegibility",textSizeAdjust:"100%"},body:{margin:0,fontFamily:"$meta",overflowX:"hidden"},"@font-face":[{fontFamily:"Postoni",fontWeight:700,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniWide-Bold.woff2)"},{fontFamily:"Postoni",fontWeight:300,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniWide-Regular.woff2)"},{fontFamily:"Franklin",fontWeight:700,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/ITC_Franklin-Bold.woff2)"},{fontFamily:"Franklin",fontWeight:300,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/ITC_Franklin-Light.woff2)"},{fontFamily:"PostoniDisplayMag",fontWeight:800,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniDisplayMag-Ultra.woff2)"},{fontFamily:"PostoniDisplayMag",fontWeight:800,fontDisplay:"fallback",fontStyle:"italic",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniDisplayMag-Ultra_Italic.woff2)"}]}),Vr({"@dark":$r({},Object.keys(Zr.colors).reduce(((e,t)=>{let r=Zr.colors[t],n="$"===r.value.substring(0,1)?`$colors${r.value}`:r.value;return $r({[r.variable]:n},e)}),{}))});var Kr={MINI:"mini",SMALL:"small",MEDIUM:"medium",LARGE:"large"};function Jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Jr(e,t,r[t])}))}return e}var en=Nr("div",{backgroundColor:"rgba(0,0,0,0.7)",display:"flex",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80%",height:"10%",justifyContent:"center",alignItems:"center",fontFamily:"$meta",color:"$secondary",fontSize:"$100",fontWeight:"$light",textAlign:"center",lineHeight:"$125"}),tn=function(e){var t=e.playerSize,n=t===Kr.SMALL||t===Kr.MINI;return r().createElement(en,{css:Qr({},n&&{height:"unset"})},"This live event has ended.")};function rn(e){return{hours:Math.floor(e/3600),minutes:Math.floor(e%3600/60),seconds:Math.floor(e%60)}}tn.propTypes={playerSize:i().string};var nn=function(e){return e<10?"0".concat(e):"".concat(e)},on=function(e){var t=e.hours,r=e.minutes,n=e.seconds;return"".concat(t,":").concat(function(e){return e<10?"0".concat(e):"".concat(e)}(r),":").concat(nn(n))},an=function(e){var t=e.hours,r=void 0===t?0:t,n=e.minutes,o=e.seconds;return"".concat(n+=60*r,":").concat(nn(o))},ln="(not set)",cn="dark",un="human_read",sn="Opera",dn="Chrome",pn="Safari",fn="Firefox",gn=function(e){if("undefined"!=typeof document){var t="; ".concat(document.cookie).split("; ".concat(e,"="));return 2==t.length?t.pop().split(";").shift():void 0}};function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bn(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.")}()}var yn=function(e,t,r,n){if(!e||0===e.length)return r;var o=n?e.map((function(e){return e[n]})):e;return o.join(t)},hn=function(e){var t=e.topPercent,r=e.bottomPercent;return[t?"linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 3%, rgba(0, 0, 0, 0) ".concat(t,"%)"):null,r?"linear-gradient(to top, rgba(0, 0, 0, 0.75) 3%, rgba(0, 0, 0, 0) ".concat(r,"%)"):null].filter(Boolean).join()};function wn(e,t,r){if("undefined"!=typeof document){var n=document.createElement("script");n.src=e,n.async=!0,n.onload=function(){return null==t?void 0:t()},n.onerror=function(){return null==r?void 0:r("Failed to load script: ".concat(e))},document.body.appendChild(n)}}var Sn=function(){var e,t,r,n=(null===(t=window)||void 0===t||null===(e=t.navigator)||void 0===e?void 0:e.userAgent)||"",o=(vn(r={},sn,n.includes(sn)||n.includes("OPR")),vn(r,"Edge",n.includes("Edg")),vn(r,dn,n.includes(dn)),vn(r,pn,n.includes(pn)),vn(r,fn,n.includes(fn)),r);return Object.keys(o).find((function(e){return o[e]}))||""},En=function(){var e=gn("wp_devicetype");if(e)return"2"===e?"tablet":"1"===e?"mobile":"desktop";var t=xn(),r=/ipod|iphone|ipad/i.test(t),n=/tablet|ipad/i.test(t),o=!n&&(r||/[^-]mobi/i.test(t));return n?"tablet":o?"mobile":"desktop"},xn=function(){var e,t;return"undefined"==typeof window?"":(null===(t=window)||void 0===t||null===(e=t.navigator)||void 0===e?void 0:e.userAgent)?navigator.userAgent:""};function On(e,t,r){return Math.max(t,Math.min(r,e))}function An(e,t){t.forEach((function(t){var r=mn(t,2),n=r[0],o=r[1];e.addEventListener(n,o)}))}function Cn(e,t){t.forEach((function(t){var r=mn(t,2),n=r[0],o=r[1];e.removeEventListener(n,o)}))}function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:960,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="".concat("https://www.washingtonpost.com/wp-apps/imrs.php","?src=").concat(encodeURIComponent(e),"&w=").concat(t);return r&&(n+="&h=".concat(r)),n}function Pn(e){return e.toString().padStart(2,"0")}var jn=function(){var e,t,n,o=c().videoData;if(!o||!o._id||Re(o)||"ended"===(null==o?void 0:o.status))return null;var a,i,l,u,s,d,p,f={"@context":"https://schema.org","@type":"VideoObject",name:null===(e=o.headlines)||void 0===e?void 0:e.basic,description:null===(t=o.description)||void 0===t?void 0:t.basic,thumbnailUrl:(null===(n=o.promo_image)||void 0===n?void 0:n.url)?kn(o.promo_image.url):"https://www.washingtonpost.com/wp-apps/imrs.php?src=https%3A%2F%2Fwww.washingtonpost.com%2Fplayer%2Fprod%2Fimg%2Fwp_grey.jpg&w=960",uploadDate:o.publish_date,embedUrl:"https://www.washingtonpost.com/video/c/embed/".concat(o._id)};if("live"===o.video_type){var g;f.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:o.display_date,endDate:null===(g=o.additional_properties)||void 0===g?void 0:g.publicationEndDate}]}else{var b,v=null===(b=o.streams)||void 0===b?void 0:b.filter((function(e){return"mp4"===e.stream_type&&600===e.bitrate}))[0];(null==v?void 0:v.url)&&(f.contentUrl=v.url),f.duration=(i=(a=rn(o.duration/1e3)).hours,l=a.minutes,u=a.seconds,s=i?"".concat(i,"H"):"",d="".concat(l,"M"),p="".concat(u,"S"),"PT".concat(s).concat(d).concat(p))}return r().createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(f)}})};jn.propTypes={video:i().object};var $n=(0,e.createContext)({isStickyEnabled:!1,setIsStickyEnabled:function(){},isOpenSticky:!1,playingId:null,updateStickyContext:function(){},setOverrideStickyContext:function(){}}),In=function(){return(0,e.useContext)($n)};function Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Tn=(0,e.createContext)({promoState:ke,setPromoState:function(){}}),Dn=function(){return(0,e.useContext)(Tn)},Mn=function(t){var n=t.children,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Rn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rn(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.")}()}((0,e.useState)(ke),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return{promoState:a,setPromoState:i}}),[a,i]);return r().createElement(Tn.Provider,{value:l},n)};Mn.propTypes={children:i().node};var Ln={adState:null,setAdState:function(){},adSettings:null,shouldShowAds:!1,transitionToAd:function(){},isAdsInitialized:!0,isIrisReady:!1},_n=(0,e.createContext)(Ln),Bn=function(){return(0,e.useContext)(_n)},Nn=function(t){var r=t.autoplayState,n=t.resetControlsState,o=t.setAdState,a=t.updateAutoplayState,i=t.adState,l=t.removeHLS,c=t.videoElementRef,u=t.closeStickyPlayer,s=t.isOpenSticky,d=t.setIsFullscreen,p=t.setRenderControls,f=t.setPromoState,g=t.isFullscreen;return(0,e.useCallback)((function(e){var t;i!==de.ERROR&&o(de.INIT),p(!1),f(Pe),n(),a({isPlaythrough:e,status:(null==r?void 0:r.status)?T:null}),l(),t=c.current.getElementsByTagName("track"),Array.from(t).forEach((function(e){e.remove()})),!e&&s&&u(),g&&d(!1)}),[null==r?void 0:r.status,i,o,p,f,n,a,l,c,s,u,d,g])},zn=(0,e.createContext)({current:null}),Vn=function(){return(0,e.useContext)(zn)},Fn=function(t){var n=t.children,o=t.initialValue,a=void 0===o?null:o,i=(0,e.useRef)(a);return r().createElement(zn.Provider,{value:i},n)};function Wn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Fn.propTypes={children:i().node,initialValue:i().any};var Un=function(e,t,r){e&&e.addEventListener(t,r)},Hn=function(e,t,r){e&&e.removeEventListener(t,r)},qn=function(e,t,r){if(e){var n=new CustomEvent(t,{detail:r});e.dispatchEvent(n)}};function Gn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Gn(e,t,r[t])}))}return e}function Zn(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const Xn=function(e){var t,r,n,o,a,i,l,c,u,s,d,p,f,g,b,v,m,y,h,w=e.videoData,S=e.eventAction,E=e.label,x=e.config,O=void 0===x?{}:x,A=e.soundMuted,C=e.videoElementRef,k=e.avAdMeta,P=e.adAttribute,j=e.autoplayState,$=void 0===j?{}:j,I=e.playerType,R=e.avLiveProgress,T=e.videostart_id,D=e.carouselState,M=void 0===D?{}:D,L=e.engaged_time;if("undefined"!=typeof window&&window.dataLayer&&w&&function(e,t){var r,n=null===(r=t.config)||void 0===r?void 0:r.shouldSendAnalyticsEvent;return"function"!=typeof n||!1!==n(e,t)}(S,{eventAction:S,videoData:w,config:O,autoplayState:$,playerType:I,carouselState:M,soundMuted:A,avAdMeta:k,adAttribute:P,avLiveProgress:R,videostart_id:T,engaged_time:L,label:E})){var _=w.canonical_url||(null===(t=w.additional_properties)||void 0===t?void 0:t.permalinkUrl),B=null===(r=w.additional_properties)||void 0===r?void 0:r.gifAsThumbnail,N=null===(n=w.streams)||void 0===n?void 0:n.reduce((function(e,t){return"gif"===t.stream_type?Zn(Yn({},e),{gifPromo:!0}):"gif-mp4"===t.stream_type?Zn(Yn({},e),{mp4Promo:!0}):e}),{gifPromo:!1,mp4Promo:!1}),z=null==O?void 0:O.getStartReasonOverride,V="function"==typeof z?z($,E,M):function(e,t,r){var n=function(e){return e.isPlaythrough?"continuous":e.isLooping?"looping":e.isAutoplay?"autoplay":null}(e)||t||function(e){return e&&e.analyticsLabel?e.analyticsLabel:null}(r)||"manual";return Ge()(Ze,n)}($,E,M),F=(null==w?void 0:w.duration)/1e3;"video-start"===S&&(null==C?void 0:C.current)&&qn(C.current,U,{startReason:it(V,$)}),function(e,t,r){var n=e.label,o=e.event,a=e.avName,i=e.category,l=e.progressThreshold,c=e.avCMS,u=e.avLength,s=e.avArcID,d=e.avSection,p=e.avSource,f=e.avType,g=e.avTags,b=e.avProducer,v=e.avProducerID,m=e.avHost,y=e.avHostID,h=e.avContributors,w=e.avContributorID,S=e.avLiveProgress,E=e.avPublishDate,x=e.avPromoType,O=e.avTestGroup,A=e.avPlayerType,C=e.adAttribute,k=e.avAdMeta,P=e.avSystem,j=e.avPlayer,$=e.hosts,I=e.contributors,R=e.producers,T=e.publishDate,D=e.keywords,M=e.avKeywords,L=e.pageName,_=e.soundStatus,B=e.videostart_id,N=e.engaged_time;window.dataLayer.push(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Wn(e,t,r[t])}))}return e}({label:n,event:o,action:o,category:i,progressThreshold:l||ln,avCMS:c||ln,avSystem:P||ln,avName:a||ln,avLength:u||ln,avArcID:s||ln,avSection:d||ln,avSource:p||ln,avType:f||ln,avTags:g,avKeywords:M||yn(D,";",ln),avHost:m||yn($,";",ln,"name"),avProducer:b||yn(R,";",ln,"name"),avContributors:h||yn(I,";",ln,"name"),avPromoType:x||ln,avPublishDate:E||(T?new Date(T).toISOString().substring(0,10):ln),avTestGroup:O||ln,avPlayerType:A||j,avPlayer:A||j,adAttribute:C||"undefined",avAdMeta:k||ln,avLiveProgress:S||ln},L&&{pageName:L},"audio"===r&&{avProducerID:v||yn(R,";",ln,"id"),avContributorID:w||yn(I,";",ln,"id"),avHostID:y||yn($,";",ln,"id")},_&&{soundStatus:_},B&&{videostart_id:B},N&&{engaged_time:N})),t&&console.log(window.dataLayer)}(Yn(Zn(Yn(Zn(Yn({label:at(V),event:S,action:S,category:"video",avCMS:null===(o=w.source)||void 0===o?void 0:o.system,avName:null===(a=w.headlines)||void 0===a?void 0:a.basic,avLength:F,avArcID:w._id,avSection:null===(l=w.taxonomy)||void 0===l||null===(i=l.primary_site)||void 0===i?void 0:i.name,avSource:null===(c=w.source)||void 0===c?void 0:c.name,avType:null===(u=w.additional_properties)||void 0===u?void 0:u.videoCategory,avTags:yn(null===(s=w.taxonomy)||void 0===s?void 0:s.tags,";",ln,"text"),keywords:null===(d=w.taxonomy)||void 0===d?void 0:d.seo_keywords,avPromoType:function(){if(B){if(N.mp4Promo)return"mp4";if(N.gifPromo)return"gif"}return"image"}(),publishDate:w.display_date,avTestGroup:null==O?void 0:O.testGroup,avPlayerType:I},_&&{pageName:_}),{hosts:null===(p=w.credits)||void 0===p?void 0:p.host_talent,contributors:null===(f=w.credits)||void 0===f?void 0:f.contributors}),O.isCarousel&&{progressThreshold:O.carouselIndex+1},(null==C?void 0:C.current)&&{soundStatus:C.current.muted?"sound-off":"sound-on"},void 0!==A&&{soundStatus:A?"sound-off":"sound-on"}),{adAttribute:P,avAdMeta:yn(k,";",ln),avLiveProgress:R||ln}),T&&{videostart_id:T},L&&{engaged_time:L},(null===(v=w.credits)||void 0===v||null===(b=v.by)||void 0===b||null===(g=b[0])||void 0===g?void 0:g.name)?{producers:null===(m=w.credits)||void 0===m?void 0:m.by}:{avProducer:(null===(h=w.additional_properties)||void 0===h||null===(y=h.firstPublishedBy)||void 0===y?void 0:y.name)||ln}),O.debug,"video")}};function Kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Jn=function(t){var n=t.setIsInViewPort,o=t.children,a=(0,e.useRef)(null),i=(0,e.useCallback)((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kn(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.")}()}(e,1)[0];n(t.isIntersecting)}),[n]);return(0,e.useEffect)((function(){var e=null==a?void 0:a.current;if(e){var t=new IntersectionObserver(i,{});return t.observe(e),function(){t.unobserve(e)}}}),[a,i]),r().createElement("div",{ref:a},o)};function Qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Jn.propTypes={setIsInViewPort:i().func,children:i().node};var eo=(0,e.createContext)({isInViewPort:!1,setIsInViewPort:function(){}}),to=function(){return(0,e.useContext)(eo)},ro=function(t){var n=t.children,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qn(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.")}()}((0,e.useState)(!1),2),a=o[0],i=o[1],l=(0,e.useMemo)((function(){return{isInViewPort:a,setIsInViewPort:i}}),[a]);return r().createElement(eo.Provider,{value:l},r().createElement(Jn,{setIsInViewPort:i},n))};ro.propTypes={config:i().object,children:i().node,stickyPlayerContext:i().object};var no=["715998959","138210079292","716945960","138228291976"];function oo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ao(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){oo(e,t,r[t])}))}return e}var io=(0,e.createContext)({adWrapperRef:{current:null},adContainerRef:{current:null},adControlsRef:{current:null}}),lo=function(){return(0,e.useContext)(io)},co=function(t){var n=t.children,o=(0,e.useRef)(),a=(0,e.useRef)(),i=(0,e.useRef)(),l=(0,e.useMemo)((function(){return{adWrapperRef:o,adContainerRef:a,adControlsRef:i}}),[o,a,i]);return r().createElement(io.Provider,{value:l},n)};function uo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function so(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uo(e,t,r[t])}))}return e}function po(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}co.propTypes={children:i().node,initialValue:i().any};var fo=(0,e.createContext)({sendAnalyticsEvent:function(){},avAdMeta:null,setAvAdMeta:function(){},adAttribute:null,setAdAttribute:function(){},firstVideoLoaded:!1}),go=function(){return(0,e.useContext)(fo)},bo=function(t){var n=t.children,o=t.config,a=void 0===o?{}:o,i=lo().adWrapperRef,l=h().autoplayState,c=a.debug,u=a.abVariant,s=a.isPreroll,d=void 0!==s&&s,p=(0,e.useCallback)((function(e,t){var r;!function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.performance.mark){var o=null===(t=window.performance)||void 0===t?void 0:t.mark(e,{detail:n});r&&console.log(o)}}(e,c,po(so({},t,u&&{abVariant:u}),{isPreroll:d.toString(),isAutoplay:l.isAutoplay.toString(),nodeId:null===(r=i.current)||void 0===r?void 0:r.id}))}),[c,i,u,d,l.isAutoplay]),f=(0,e.useCallback)((function(e,t,r){var n;!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var o=window.performance.measure("time-to-".concat(e),{start:t,end:e,detail:ao({},n)});return r&&console.log(o),Math.round(o.duration)}catch(e){return null}}(e,t,c,po(so({},r,u&&{abVariant:u}),{isPreroll:d.toString(),isAutoplay:l.isAutoplay.toString(),nodeId:null===(n=i.current)||void 0===n?void 0:n.id}))}),[c,i,u,l.isAutoplay,d]),g=(0,e.useMemo)((function(){return{sendPerformanceEvent:p,sendPerformanceMeasure:f}}),[p,f]);return r().createElement(fo.Provider,{value:g},n)};function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mo(e,t,r,n,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function yo(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){mo(a,n,o,i,l,"next",e)}function l(e){mo(a,n,o,i,l,"throw",e)}i(void 0)}))}}function ho(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}bo.propTypes={config:i().object,children:i().node};var wo=function(){var e=yo((function(e,t,r){var n,o;return ho(this,(function(a){switch(a.label){case 0:return n=Do(),[4,new Promise((function(e,t){var r,o,a,i;if(null===(r=window.zeus)||void 0===r?void 0:r.version)e();else{var l=function(e){return window.document.querySelector('script[src="'.concat(e,'"]'))}(n);l?(a=e,i=t,(o=l).addEventListener("load",a,{once:!0}),o.addEventListener("error",i,{once:!0})):wn(n,e,t)}}))];case 1:return a.sent(),window.iris=window.iris||{},window.iris.cmd=window.iris.cmd||[],t&&(window.iris.imaDebugMode=!0),o=new Promise((function(t){window.iris.cmd.push(function(){var r=yo((function(r){return ho(this,(function(n){switch(n.label){case 0:return[4,r.setupPlayer(e)];case 1:return n.sent(),t(),[2]}}))}));return function(e){return r.apply(this,arguments)}}())})),[4,Promise.race([o,new Promise((function(e,t){setTimeout((function(){var e=new Error("Iris setup timed out");t(e)}),r)}))])];case 2:return a.sent(),[2]}}))}));return function(t,r,n){return e.apply(this,arguments)}}(),So=e=>{if(typeof window>"u")return;let t=document.cookie.match(`(^|;) ?${e}=([^;]*)(;|$)`);return t?t[2]:null},Eo=(e="",t={})=>{let r=e;return Object.entries(t).forEach((([e,t])=>{t&&(r+=` ${e}`)})),r.trim()};var xo=function(e){if(!e)return!1;try{var t,r=function(e){var t,r=e.split(".")[1];try{return t=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return atob(t)}}(r),JSON.parse(t)}catch(e){throw new Error("Invalid token specified")}}(e),n=!1,o=r.fs;return"string"==typeof o&&"1"===(null===(t=o.split("|")[1])||void 0===t?void 0:t.charAt(0))&&(n=!0),n}catch(e){return!1}};function Oo(){var e=So("wapo_actmgmt"),t=So("wp_f_token");if(!(null==e?void 0:e.length)&&!(null==t?void 0:t.length))return!1;var r=xo(t),n=/(\b|.*\|)EU_NOADS:1([^;]*)/.test(e),o=/(\b|.*\|)NOADS:1([^;]*)/.test(e);return r||o||n}var Ao=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&"string"==typeof e.creativeId?no.includes(e.creativeId):null},Co=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return["length:".concat((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).duration),"skipAllow:".concat(e>0),"skipDelay:".concat(e)]},ko=function(e){var t;return null===(t=e.getCurrentAd())||void 0===t?void 0:t.data};function Po(e,t,r){if(Ne(t))return!0;var n=Ge()(e,"additional_properties.advertising.allowPrerollOnDomain");return r&&!n&&console.log("Ad not allowed on domain"),n}function jo(e,t){var r=t.hasAds,n=void 0!==r&&r,o=t.adOverrides,a=void 0===o?{}:o,i=a.forceAd,l=void 0!==i&&i,c=a.domain,u=a.skipAd,s=void 0!==u&&u,d=t.isCarousel,p=void 0!==d&&d,f=t.debug;if(l)return!0;var g=e.additional_properties,b=(void 0===g?{advertising:{}}:g).advertising,v=(void 0===b?{playVideoAds:!0}:b).playVideoAds;return n&&(void 0===v||v||p)&&Po(e,c,f)&&!s}function $o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!e.isAutoplay||!!e.isPreroll||!!e.isPlaythrough}function Io(e,t){var r=e.hasAds,n=void 0!==r&&r,o=e.adOverrides,a=(void 0===o?{}:o).forceAd,i=void 0!==a&&a,l=e.isSinglePrerollVideo;return!!i||(!l||!function(e){return!!gn("wp_no_preroll")&&"1"===JSON.parse(gn("wp_no_preroll"))[e]}(t))&&n&&!Ro()&&!Oo()}var Ro=function(){return"undefined"!=typeof window&&new URLSearchParams(window.location.search).has("no_ads")},To=function(){if("undefined"!=typeof window){var e=localStorage.getItem("userMutePreference");if("true"===e)return!0;if("false"===e)return!1}return!1},Do=function(){return"undefined"!=typeof window&&("staging"===new URLSearchParams(window.location.search).get("zeusEnv")?"https://www.washingtonpost.com/zeus-staging/main.js":"https://www.washingtonpost.com/zeus/main.js")};function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Lo(e,t,r[t])}))}return e}function Bo(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}function No(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mo(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.")}()}var zo=(0,e.createContext)({sendAnalyticsEvent:function(){},avAdMeta:null,setAvAdMeta:function(){},adAttribute:null,setAdAttribute:function(){},firstVideoLoaded:!1}),Vo=function(){return(0,e.useContext)(zo)},Fo=function(t){var n=t.children,o=t.config,a=function(t,r){var n=Vn(),o=c(),a=o.videoData,i=o.uniqueId,l=h().autoplayState,u=to().isInViewPort,s=t.isCarousel,d=t.debug,p=No((0,e.useState)([]),2),f=p[0],g=p[1],b=No((0,e.useState)("undefined"),2),v=b[0],m=b[1],y=No((0,e.useState)(!1),2),w=y[0],S=y[1],E=No((0,e.useState)(ot(t)),2),x=E[0],O=E[1],A=(0,e.useRef)(0),C=(0,e.useRef)(i);C.current=i;var k=n.current,P=(0,e.useRef)(u),j=(0,e.useRef)(r);(0,e.useEffect)((function(){P.current=u}),[u]),(0,e.useEffect)((function(){j.current=r}),[r]);var $=(0,e.useCallback)((function(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P.current&&Xn(Bo(_o({videoData:a,eventAction:e,config:t,videoElementRef:n,avAdMeta:f,adAttribute:v,autoplayState:l,playerType:x,carouselState:j.current},o),{videostart_id:null!==(r=o.videostart_id)&&void 0!==r?r:C.current}))}),[a,t,n,f,v,l,x]);(0,e.useEffect)((function(){!w&&a._id&&l.isInitialized&&(window.dataLayer=window.dataLayer||[],s||$("media-video-player-impression",{soundMuted:!!l.isAutoplay||void 0}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Ge()(e,"additional_properties.advertising.adSetUrls.apps",""),n=Ge()(e,"additional_properties.advertising.videoAdZone",""),o=!0===/wpni.video/.test(n),a=t.adOverrides,i=void 0===a?{}:a,l=t.debug,c=i.domain;return(!!i.adZoneOverride||!!r&&!!n)&&o&&Po(e,c,l)}(a,t)?Io(t,null==a?void 0:a._id)&&$o(l)||m(pe):m("adNotAllowed"),S(!0))}),[null==a?void 0:a._id,l,w,s,$]);var I=(0,e.useRef)(5),R=(0,e.useRef)(0),T=(0,e.useRef)(0),D=(0,e.useCallback)((function(){T.current>0&&($(rt,{videostart_id:C.current,engaged_time:T.current}),T.current=0)}),[$]),M=(0,e.useCallback)((function(e){var t,r=e.target.currentTime-R.current;R.current=e.target.currentTime,r>0&&r<1&&(T.current+=r),T.current>5&&($(rt,{videostart_id:C.current,engaged_time:5}),T.current=0),(null===(t=e.target)||void 0===t?void 0:t.currentTime)/e.target.duration*100>=I.current&&(I.current>=25&&A.current<25&&(A.current=25,$("video-25-complete")),I.current>=50&&A.current<50&&(A.current=50,$("video-50-complete")),I.current>=75&&A.current<75&&(A.current=75,$("video-75-complete")),I.current=I.current+5)}),[$,d]);return(0,e.useEffect)((function(){if(k&&(l.isInitialized||s))return window.dataLayer=window.dataLayer||[],k.addEventListener(z,M),k.addEventListener(Q,D),k.addEventListener(_,D),function(){k.removeEventListener(z,M),k.removeEventListener(Q,D),k.removeEventListener(_,D)}}),[k,s,l]),(0,e.useEffect)((function(){return function(){D()}}),[]),(0,e.useEffect)((function(){A.current=0,R.current=0,T.current=0,I.current=5}),[i]),{sendAnalyticsEvent:$,avAdMeta:f,setAvAdMeta:g,adAttribute:v,setAdAttribute:m,isAnalyticsInitialized:w,setPlayerType:O,sendVideoStartEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.isLivePreview)$(et);else if(e.isAutoplay){var r,n,o=(Lo(r={},ie,Ke),Lo(r,ae,et),r),a=(Lo(n={},se.AUTO,pe),Lo(n,se.LOOP,ve),Lo(n,se.LOOP_NO_CONTROLS,ve),n),i=o[Xe()]||Ke,l=t.adAttribute||a[e.type];m(l),$(i,Bo(_o({},t),{adAttribute:l}))}else $(Ke,_o({},t))}}}(void 0===o?{}:o,t.carouselState),i=a.sendAnalyticsEvent,l=a.avAdMeta,u=a.setAvAdMeta,s=a.adAttribute,d=a.setAdAttribute,p=a.isAnalyticsInitialized,f=a.setPlayerType,g=a.sendVideoStartEvent,b=(0,e.useMemo)((function(){return{sendAnalyticsEvent:i,avAdMeta:l,setAvAdMeta:u,adAttribute:s,setAdAttribute:d,isAnalyticsInitialized:p,setPlayerType:f,sendVideoStartEvent:g}}),[i,l,u,s,d,p,f,g]);return r().createElement(zo.Provider,{value:b},n)};function Wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Uo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ho(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Uo(e,t,r[t])}))}return e}Fo.propTypes={config:i().object,carouselState:i().object,children:i().node};var qo={isStarted:!1,isMuted:!1,isPlaying:!1,volume:1,showSubtitles:!1,isInitialized:!1};function Go(t){var r=Vn(),n=c().videoData,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wo(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.")}()}((0,e.useState)(qo),2),a=o[0],i=o[1],l=(0,e.useCallback)((function(e){i((function(t){return Ho({},t,e)}))}),[i]),u=(0,e.useCallback)((function(){a.isStarted||l({isStarted:!0})}),[a,l]);return(0,e.useEffect)((function(){var e=null==r?void 0:r.current;if(e)return e.addEventListener("playing",u),function(){e.removeEventListener("playing",u)}}),[r,u]),(0,e.useEffect)((function(){if("undefined"!=typeof window&&n&&Le(n)&&!a.isInitialized){var e=function(e,t){var r,n,o="true"===window.localStorage.getItem("userMutePreference"),a="true"===window.localStorage.getItem("userSubtitlesPreference"),i=(e.additional_properties||{}).forceClosedCaptionsOn,l=void 0!==i&&i;return{isMuted:null!==(r=t.isMutedOverride)&&void 0!==r?r:o,volume:o?0:1,showSubtitles:!!(null!==(n=t.showSubtitlesOverride)&&void 0!==n?n:l)||a}}(n,t);l(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(Ho({},e),{isInitialized:!0}))}}),[t,t.isMutedOverride,t.showSubtitlesOverride,a.isInitialized,l,n,n._id]),{playerState:a,updatePlayerState:l}}var Yo=function(e,t,r){if("undefined"==typeof window)return!0;if(t.isAutoplay&&!r&&!t.overrideAutoplayMuteBehavior)return!0;var n=e.isMutedOverride;return null!=n&&n},Zo=(0,e.createContext)({Hls:{},hls:{},removeHLS:function(){},setUpVideoSource:function(){}}),Xo=function(){return(0,e.useContext)(Zo)};function Ko(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jo,Qo="MOBILE",ea="TABLET",ta="DESKTOP",ra="LARGE_DESKTOP",na=Qo,oa=ea,aa=ta,ia=ra,la=(Ko(Jo={},"small",Qo),Ko(Jo,"medium",ea),Ko(Jo,"large",ta),Ko(Jo,"xlarge",ra),Ko(Jo,"xxlarge",ra),Ko(Jo,"unknown",ta),Jo);function ca(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ua(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ca(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ca(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.")}()}var sa=function(){return"undefined"==typeof window?"unknown":window.getComputedStyle(document.documentElement).getPropertyValue("--wpds--screenSize")},da=function(){return"undefined"==typeof window?"unknown":"undefined"!=typeof window&&window.innerWidth>=1440?ia:"undefined"!=typeof window&&window.innerWidth>=1023?aa:"undefined"!=typeof window&&window.innerWidth>=767&&window.innerWidth<1023?oa:na};const pa=function(){var t=ua((0,e.useState)(aa),2),r=t[0],n=t[1],o=function(){var t=ua((0,e.useState)(sa()||da()),2),r=t[0],n=t[1];return(0,e.useEffect)((function(){if("undefined"!=typeof window){var e=function(){n(sa()||da())};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}}),[]),r}();return(0,e.useEffect)((function(){n(la[o])}),[o]),r};var fa=function(e){var t;if(null==e||null===(t=e.textTracks)||void 0===t?void 0:t[0]){var r=!0,n=!1,o=void 0;try{for(var a,i=e.textTracks[Symbol.iterator]();!(r=(a=i.next()).done);r=!0)a.value.mode="hidden"}catch(e){n=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw o}}}},ga=function(e){var t=!1,r=!0,n=!1,o=void 0;try{for(var a,i=e.textTracks[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var l=a.value;"showing"===l.mode&&(t=!0),l.mode="hidden"}}catch(e){n=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw o}}return t},ba={canFullScreen:function(){return!1},goFullscreen:function(){},closeFullscreen:function(){},getFullScreen:function(){return!1}},va={requestFullscreen:{canFullScreen:function(e){return!!(null==e?void 0:e.requestFullscreen)},goFullscreen:function(e){return e.requestFullscreen()},closeFullscreen:function(){return document.exitFullscreen()},getFullScreen:function(){return!!document.fullscreenElement}},webkitEnterFullscreen:{canFullScreen:function(e){return!!(null==e?void 0:e.webkitEnterFullscreen)},goFullscreen:function(e){return e.webkitEnterFullscreen()},closeFullscreen:function(){return document.webkitExitFullscreen()},getFullScreen:function(e){return!!(null==e?void 0:e.webkitDisplayingFullscreen)}},webkitRequestFullscreen:{canFullScreen:function(e){return!!(null==e?void 0:e.webkitRequestFullscreen)},goFullscreen:function(e){return e.webkitRequestFullscreen()},closeFullscreen:function(){return document.webkitExitFullscreen()},getFullScreen:function(){return!!document.webkitFullscreenElement}},mozRequestFullScreen:{canFullScreen:function(e){return!!(null==e?void 0:e.mozRequestFullScreen)},goFullscreen:function(e){return e.mozRequestFullScreen()},closeFullscreen:function(){return document.mozCancelFullScreen()},getFullScreen:function(){return!!document.mozFullScreenElement}},msRequestFullscreen:{canFullScreen:function(e){return!!(null==e?void 0:e.msRequestFullscreen)},goFullscreen:function(e){return e.msRequestFullscreen()},closeFullscreen:function(){return document.msExitFullscreen()},getFullScreen:function(){return!!document.msFullscreenElement}}};function ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ya=function(t,r,n,o,a,i,l,u,s){var d=Vn(),p=c().videoId,f=In().isOpenSticky,g=(0,e.useMemo)((function(){return e=d.current,Object.values(va).find((function(t){return t.canFullScreen(e)}))||ba;var e}),[d.current]),b=g.goFullscreen,v=g.closeFullscreen,m=g.getFullScreen,y=g.canFullScreen,h=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ma(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ma(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.")}()}((0,e.useState)(!1),2),w=h[0],S=h[1],E=(0,e.createRef)(!0),x=(0,e.useCallback)((function(e){return!y(e)&&!n}),[y,n]),O=pa()===na,A=function(e){var t=e.forceShowFullScreenBtn;return"boolean"==typeof t?t:!e.isCarousel&&(!e.isVertical||e.isMobileSize||e.isOpenSticky)}({forceShowFullScreenBtn:s,isCarousel:n,isMobileSize:O,isVertical:o,isOpenSticky:f}),C=(0,e.useCallback)((function(e){var n=r.current;if(n)try{e?(x(n)?(b(d.current),function(e,t){fa(t),e&&(t.textTracks[0].mode="showing")}(i,d.current),S(!0),a(!0)):b(n).then((function(){S(!0)})),Te(L,!0,p,t)):(v(d.current),S(!1),Te(L,!1,p,t))}catch(e){S(m())}}),[r,x,p,t,b,d,i,a,v,m]);return(0,e.useEffect)((function(){var e=function(){S(m())},t=r.current;return r&&y(t)&&t.addEventListener("fullscreenchange",e),function(){null==t||t.removeEventListener("fullscreenchange",e)}}),[r,y,m]),(0,e.useEffect)((function(){var e=d.current;if(e){var t=function(t){if("picture-in-picture"===t.target.webkitPresentationMode)S(!1);else{var r=m(e);S(r),a(r);var n=ga(e);l(n)}},r=function(){u(!1);var t=ga(e);E.current=t},n=function(e){u(!0),"inline"===e.target.webkitPresentationMode&&l(E.current)};return e.addEventListener("webkitendfullscreen",t),e.addEventListener("enterpictureinpicture",r),e.addEventListener("leavepictureinpicture",n),function(){e.removeEventListener("webkitendfullscreen",t),e.removeEventListener("enterpictureinpicture",r),e.removeEventListener("leavepictureinpicture",n)}}}),[d,m]),{isFullscreen:w,setFullscreen:C,showFullscreenBtn:A,closeFullscreen:v}};function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ha(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 Sa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ea(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Sa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sa(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.")}()}var xa=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c().videoData,o=h(),a=o.updateAutoplayState,i=o.autoplayState,l=Dn(),u=l.promoState,s=l.setPromoState,d=Bn(),p=d.adState,f=d.setAdState,g=Xo().removeHLS,b=Vn(),v=In(),m=v.isOpenSticky,y=v.updateStickyContext,w=Vo().sendAnalyticsEvent,S=lo().adControlsRef,E=r.toggleSubsHandler,x=r.toggleMuteHandler,O=Ea((0,e.useState)(!1),2),A=O[0],C=O[1],k=Ea((0,e.useState)(!1),2),P=k[0],j=k[1],$=n.duration/1e3||0,I=(0,e.useRef)(null),T=(0,e.useRef)(null),D=(0,e.useRef)(),M=function(t){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xr(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.")}()}((0,e.useState)(),2),n=r[0],o=r[1];return(0,e.useEffect)((function(){var e=null==t?void 0:t.current;if(e){var r=function(){var t=e.offsetWidth;o(t<=300?Kr.MINI:t<=400?Kr.SMALL:t<=700?Kr.MEDIUM:Kr.LARGE)};r();var n=new ResizeObserver(r);return n.observe(e),function(){return n.disconnect()}}}),[t]),n}(I),L=function(t){var r=Vo().isAnalyticsInitialized,n=go(),o=n.sendPerformanceEvent,a=n.sendPerformanceMeasure,i=h(),l=i.updateAutoplayState,c=i.autoplayState,u=Bn(),s=u.isAdsInitialized,d=u.isIrisReady,p=u.shouldShowAds,f=Dn().setPromoState,g=In().setIsStickyEnabled,b=t.isCarousel,v=c.isInitialized&&r&&s,m=function(t){var r=t.setPromoState,n=t.updateAutoplayState,o=t.shouldShowAds,a=t.autoplayState,i=t.isOrcaInitialized,l=t.isCarousel,c=to().isInViewPort,u=In().isOpenSticky,s=wa((0,e.useState)(null),2),d=s[0],p=s[1],f=wa((0,e.useState)(null),2),g=f[0],b=f[1],v=(0,e.useCallback)((function(e,t){i?e?c||l||u?(n({status:R},t),a.isLivePreview||r(o?je:$e)):b({videoWillAutoplay:e,overrideReducedMotion:t}):r(Pe):p({videoWillAutoplay:e,overrideReducedMotion:t})}),[r,n,o,a.isLivePreview,i,c,l,u]);return(0,e.useEffect)((function(){d&&i&&(v(d.videoWillAutoplay,d.overrideReducedMotion),p(null))}),[i,v,d]),(0,e.useEffect)((function(){g&&c&&(v(g.videoWillAutoplay,g.overrideReducedMotion),b(null))}),[c,v,g]),v}({setPromoState:f,updateAutoplayState:l,shouldShowAds:p,autoplayState:c,isOrcaInitialized:v,isCarousel:b}),y=(0,e.useCallback)((function(){m(c.isAutoplay),g(function(e,t){var r=t.isSticky,n=void 0===r||r,o=t.isLead,a=void 0!==o&&o;return!(e.isLooping||e.type===se.AUTO&&!a)&&n}(c,t))}),[c,t,m,g]);return(0,e.useEffect)((function(){v&&(y(),o(te),a(te,ee,{irisLoaded:d.toString()}))}),[v]),{initializeNewVideo:m}}(t).initializeNewVideo,_=t.debug,B=t.forceShowFullScreenBtn,N=t.isCarousel,z=function(t){var r,n=t.config,o=t.isNativeIOSPlayer,a=t.adState,i=t.updateAutoplayState,l=t.toggleSubsHandler,u=void 0===l?function(){}:l,s=t.toggleMuteHandler,d=void 0===s?function(){}:s,p=Vn(),f=c(),g=f.videoId,b=f.uniqueId,v=h(),m=v.autoplayState,y=v.isMotionReduced,w=Vo().sendAnalyticsEvent,S=In(),E=S.isStickyEnabled,x=S.isOpenSticky,O=S.playingId,A=S.updateStickyContext,C=n.debug,k=void 0!==C&&C,P=Go(n),j=P.playerState,$=P.updatePlayerState,I=(0,e.useCallback)((function(e){Te("mute",e,g,k),p.current.muted=e,w(e?"video-mute":"video-unmute")}),[p,k,g,w]),R=(0,e.useCallback)((function(){var e;return null==p||null===(e=p.current)||void 0===e?void 0:e.muted}),[p]);(0,e.useEffect)((function(){p.current&&j.isMuted&&I(!0)}),[p.current]);var T=(0,e.useCallback)((function(){p.current.play()}),[p]),D=(0,e.useCallback)((function(){T(),$({isAutoplaying:!0})}),[T,$]),M=(0,e.useCallback)((function(){p.current.pause()}),[p]),L=(0,e.useCallback)((function(e){u(e),$({showSubtitles:e}),Te(e?"subsEnabled":"subsDisabled",e,g,k),"undefined"!=typeof window&&localStorage.setItem("userSubtitlesPreference",e)}),[$,g,k,u]),_=(0,e.useCallback)((function(){m.isLooping||(p.current.currentTime=0,$({isMuted:R(),isStarted:!1,isPlaying:!1}))}),[m.isLooping,p,R]);(0,e.useEffect)((function(){var e=p.current;return function(){e.pause(),e.src="",e.load()}}),[]);var B=(0,e.useCallback)((function(e){I(e),$({isMuted:e});var t=new Event(e?"mute":"unmute");p.current.dispatchEvent(t),d(e)}),[I,$,p,d]),N=(0,e.useCallback)((function(){B(!j.isMuted)}),[j.isMuted,B]);(0,e.useEffect)((function(){$({isMuted:R()})}),[null==p||null===(r=p.current)||void 0===r?void 0:r.muted]),(0,e.useEffect)((function(){var e;m.isLooping&&(null===(e=p.current)||void 0===e||e.setAttribute("loop",""))}),[m.isLooping]);var z=(0,e.useCallback)((function(){M(),N(),i({isLivePreview:!1,isAutoplay:!1}),L(!0)}),[M,L,N,i]);(0,e.useEffect)((function(){O&&O!==b&&j.isPlaying&&E&&M()}),[O,b,j.isPlaying,M,E]);var V=(0,e.useCallback)((function(e){var t=Yo(n,m,e);B(t)}),[m,n,B]),F=(0,e.useCallback)((function(e){e&&j.isAutoplaying?M():!e&&j.isAutoplaying&&D()}),[j.isAutoplaying,M,D]);return(0,e.useEffect)((function(){F(y)}),[y,F]),{playerState:j,onPlayButton:function(){j.isPlaying?M():T(),$({isAutoplaying:!1}),w(j.isPlaying?Je:Qe),j.isPlaying&&E&&!x&&O===b&&A({playingId:null})},play:T,pause:M,reset:function(){M(),p.current.currentTime=0,$({isStarted:!1,isPlaying:!1})},toggleMute:N,handleVolumeChange:function(e){p.current.volume=e,$({volume:e})},setShowSubtitles:L,handlePlayEvent:function(e){var t;a===de.REQUESTED&&p.current.pause(),$({isPlaying:e}),o&&0!=(null===(t=p.current)||void 0===t?void 0:t.currentTime)&&w(e?Qe:Je)},resetControlsState:_,handleLivePreview:z,setInitialMuteState:V,autoplay:D}}({config:t,isNativeIOSPlayer:P,adState:p,updateAutoplayState:a,toggleSubsHandler:E,toggleMuteHandler:x}),V=z.playerState,F=z.onPlayButton,W=z.play,U=z.pause,H=z.reset,q=z.toggleMute,G=z.handleVolumeChange,Y=z.setShowSubtitles,Z=z.handlePlayEvent,X=z.resetControlsState,K=z.handleLivePreview,J=z.setInitialMuteState,Q=z.autoplay,re=(0,e.useCallback)((function(){var e;w(tt,{label:"close-click"}),p===de.PLAYING?null===(e=S.current)||void 0===e||e.pauseAd():U(),y({playingId:null,openId:null})}),[p,U,w,y]),ne=_e(n),oe=ya(_,D,N,ne,j,V.showSubtitles,Y,C,B),ae=oe.isFullscreen,ie=oe.setFullscreen,le=oe.showFullscreenBtn,ce=oe.closeFullscreen;return{initDuration:$,initializeNewVideo:L,promoState:u,setPromoState:s,resetVideoState:Nn({autoplayState:i,resetControlsState:X,setAdState:f,updateAutoplayState:a,adState:p,removeHLS:g,videoElementRef:b,closeStickyPlayer:re,isOpenSticky:m,setIsFullscreen:ie,setRenderControls:C,setPromoState:s,isFullscreen:ae}),isFullscreen:ae,isNativeIOSPlayer:P,setIsFullscreen:ie,reset:H,playerState:V,playerSize:M,renderControls:A,setRenderControls:C,playerWrapperRef:I,promoElement:T,fullScreenWrapper:D,onPlayButton:F,play:W,pause:U,toggleMute:q,handleVolumeChange:G,setShowSubtitles:Y,handlePlayEvent:Z,resetControlsState:X,handleLivePreview:K,setInitialMuteState:J,autoplay:Q,showFullscreenBtn:le,closeFullscreen:ce,closeStickyPlayer:re}},Oa=(0,e.createContext)({initDuration:0,initializeNewVideo:function(){}}),Aa=function(){return(0,e.useContext)(Oa)},Ca=function(t){var n=t.children,o=t.config,a=void 0===o?{}:o,i=t.optionalHandlers,l=xa(a,void 0===i?{}:i),c=l.initDuration,u=l.initializeNewVideo,s=l.promoState,d=l.setPromoState,p=l.resetVideoState,f=l.isFullscreen,g=l.isNativeIOSPlayer,b=l.setIsFullscreen,v=l.reset,m=l.playerState,y=l.playerSize,h=l.renderControls,w=l.setRenderControls,S=l.playerWrapperRef,E=l.promoElement,x=l.fullScreenWrapper,O=l.onPlayButton,A=l.play,C=l.pause,k=l.toggleMute,P=l.handleVolumeChange,j=l.setShowSubtitles,$=l.handlePlayEvent,I=l.resetControlsState,R=l.handleLivePreview,T=l.setInitialMuteState,D=l.autoplay,M=l.showFullscreenBtn,L=l.closeFullscreen,_=l.closeStickyPlayer,B=(0,e.useMemo)((function(){return{initDuration:c,initializeNewVideo:u,promoState:s,setPromoState:d,resetVideoState:p,isFullscreen:f,isNativeIOSPlayer:g,setIsFullscreen:b,reset:v,playerState:m,playerSize:y,renderControls:h,setRenderControls:w,playerWrapperRef:S,promoElement:E,fullScreenWrapper:x,onPlayButton:O,play:A,pause:C,toggleMute:k,handleVolumeChange:P,setShowSubtitles:j,handlePlayEvent:$,resetControlsState:I,handleLivePreview:R,setInitialMuteState:T,autoplay:D,showFullscreenBtn:M,closeFullscreen:L,closeStickyPlayer:_}}),[c,u,s,d,p,f,g,b,v,m,y,h,w,S,E,x,O,A,C,k,P,j,$,I,R,T,D,M,L,_]);return r().createElement(Oa.Provider,{value:B},n)};function ka(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ka(e,t,r[t])}))}return e}Ca.propTypes={config:i().object,children:i().node,optionalHandlers:i().object};var ja=Nr("div",{}),$a=function(e){var t=e.controlWrapperClassName,n=e.liveEventEnded,o=e.aspectRatio,a=e.children,i=e.stickyStyles,l=In().isOpenSticky,c=Aa(),u=c.fullScreenWrapper,s=function(e){var t=e.isFullscreen,r=e.liveEventEnded,n=e.isOpenSticky,o=e.aspectRatio,a=e.stickyPropStyles,i={display:r?"none":"flex",alignItems:"center"},l=o>1,c=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(Pa({width:"450px",position:"fixed",inset:"auto 20px 20px auto",top:"auto",right:20,bottom:20,left:"auto",zIndex:"100",aspectRatio:o,transition:"width 0.5s ease, height 0.5s ease",height:"".concat(l?1/o*450:450*o,"px"),backgroundColor:"$gray0-static"},a),{"@md":Pa({width:"300px",height:"".concat(l?1/o*300:300*o,"px")},null==a?void 0:a["@md"]),"@sm":Pa({width:"250px",bottom:150,height:"".concat(l?1/o*250:250*o,"px")},null==a?void 0:a["@sm"])});return Pa({},t&&i,r&&{display:"none"},n&&c)}({isFullscreen:c.isFullscreen,liveEventEnded:n,isOpenSticky:l,aspectRatio:o,stickyPropStyles:i});return r().createElement(ja,{"data-testid":"full-screen-wrapper",ref:u,className:t,css:s},a)};function Ia(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ra(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ia(e,t,r[t])}))}return e}function Ta(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}$a.propTypes={fullScreenWrapper:i().object,controlWrapperClassName:i().string,isFullscreen:i().bool,liveEventEnded:i().bool,isOpenSticky:i().bool,aspectRatio:i().number,children:i().node.isRequired,stickyStyles:i().object};var Da=o(4326),Ma=Da.useEffect,La=Da.useCallback,_a=["paywall","regwall","iab_banner"],Ba=["audio","video"];function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Na(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.")}()}var Va=function(){var t=Vn(),r=c().videoData,n=Aa().isNativeIOSPlayer,o=r.subtitles,a=r.additional_properties,i=(void 0===a?{}:a).doNotShowTranscripts,l=void 0!==i&&i,u=Xo().waitForCaptionsToLoad;!function(t,r){var n,o,a=null===(o=t.current)||void 0===o||null===(n=o.textTracks[0])||void 0===n?void 0:n.mode;(0,e.useEffect)((function(){var e,n,o;!r&&(null===(o=t.current)||void 0===o||null===(n=o.textTracks)||void 0===n||null===(e=n[0])||void 0===e?void 0:e.mode)&&(t.current.textTracks[0].mode="hidden")}),[a,t,r])}(t,n);var s=za((0,e.useState)(""),2),d=s[0],p=s[1],f=za((0,e.useState)(!1),2),g=f[0],b=f[1],v=(0,e.useCallback)((function(){p(Ua(t.current))}),[t]),m=(0,e.useCallback)((function(){p(""),b(!l),t.current.textTracks[0].mode="hidden"}),[l,t]),y=(0,e.useCallback)((function(){Wa(t.current,v,m)}),[t,v,m]),h=(0,e.useCallback)((function(){Fa(t.current,o,y,u)}),[y,o,t]);return{hasSubtitles:g,updateCues:v,currentCue:d,setupSubtitlesListener:h,resetSubtitleState:m}},Fa=function(e,t,r,n){if(fa(e),t&&!S()(t,{})){var o,a=function(e){var t=e||{},r=t.url,n=t.src,o=t.label,a=t.srclang,i=t.kind,l=document.createElement("track");return Object.assign(l,{src:r||n||"",label:o||"English",srclang:a||"en",kind:i||"captions",mode:"hidden"}),l}(null===(o=t.urls)||void 0===o?void 0:o.find((function(e){return"WEB_VTT"===e.format})));n?e.addEventListener(V,(function(){return e.appendChild(a)})):e.appendChild(a)}e.textTracks.addEventListener("addtrack",r)},Wa=function(e,t,r){var n=e.textTracks.length;if(n>0){r(),e.textTracks[0].cueChange=t;for(var o=1;o<n;o++)e.textTracks[o].mode="disabled"}},Ua=function(e){var t,r,n;return(null===(n=e.textTracks[0])||void 0===n||null===(r=n.activeCues)||void 0===r||null===(t=r[0])||void 0===t?void 0:t.text)||""};function Ha(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qa=function(t){var r=t.setRenderControls,n=t.isCarousel,o=t.autoplay,a=t.play,i=t.playCallback,l=void 0===i?function(){}:i,u=h().autoplayState,s=Dn().setPromoState,d=Vo(),p=d.sendAnalyticsEvent,f=d.sendVideoStartEvent,g=Xo().isSupported,b=Vn(),v=c().uniqueId,m=(0,e.useCallback)((function(){var e=b.current,t=function(){e.removeEventListener("loadstart",t),a()};e.addEventListener("loadstart",t),e.load()}),[b,a]),y=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.analyticsData,i=e.isAutoplay;u.isLivePreview||s($e),r(!(u.type===se.LOOP_NO_CONTROLS||u.isLivePreview)),n||f(u,t?function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ha(e,t,r[t])}))}return e}({},t),{videostart_id:v}):{videostart_id:v}),g?i?o():a():m(),l()}),[u.isLivePreview,u.type,l,p,n]);return y},Ga=function(t,r,n){var o,a=Vn(),i=Vo().sendAnalyticsEvent,l=Bn(),u=l.shouldShowAds,s=l.transitionToAd,d=Dn().setPromoState,p=Aa(),f=p.setRenderControls,g=p.setInitialMuteState,b=h().autoplayState,v=c(),m=v.videoData,y=v.uniqueId,w=v.videoId,S=Xo().setUpVideoSource,E=In(),x=E.isStickyEnabled,O=E.updateStickyContext,A=E.setOverrideStickyContext,C=r.isSinglePrerollVideo,k=void 0!==C&&C,P=(0,e.useCallback)((function(e){var n,o=e.hasAds,l=e.isAutoplay,c=e.forcePlayAd;l&&!c&&(a.current.autoplay=!0),o&&!(null==r||null===(n=r.adOverrides)||void 0===n?void 0:n.skipAd)?s((function(){i(Ke,{videostart_id:y}),t({isAutoplay:l})})):(t({isAutoplay:l}),c&&(d($e),f(b.type!==se.LOOP_NO_CONTROLS)))}),[a,s,i,t,d,f,b.type,y,null==r||null===(o=r.adOverrides)||void 0===o?void 0:o.skipAd]);return(0,e.useCallback)((function(e){var t=b.isAutoplay,o=u&&jo(m,r)&&($o(b)||e);S(),g(e),x&&(O({playingId:y}),A(!1)),k&&function(e){if("undefined"!=typeof document){var t=gn("wp_no_preroll"),r=t?JSON.parse(t):{};r[e]="1",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,n=new Date;n.setTime(n.getTime()+864e5*r),document.cookie="".concat(e,"=").concat(t,";path=/;expires=").concat(n.toGMTString())}("wp_no_preroll",JSON.stringify(r),1)}}(w),n(),P({hasAds:o,isAutoplay:t,forcePlayAd:e})}),[u,m,r,b,S,P,O,x,y,A,k,w,n,g])};function Ya(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t=e,!(null!=(r=HTMLElement)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r))return null;var a=e.getBoundingClientRect();return a.top+e.offsetHeight*n>=0&&a.bottom-e.offsetHeight*n<=(window.innerHeight||document.documentElement.clientHeight)&&(!o||a.left>=0)&&(!o||a.right<=(window.innerWidth||document.documentElement.clientWidth))}function Za(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Za(e,t,r[t])}))}return e}var Ka=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(null==e?void 0:e.current){var a=o.debug,i=void 0!==a&&a,l=function(e,t){return{eventType:e,userAgent:window.navigator.userAgent,browserType:Sn(),deviceType:En(),href:window.location.href,hostname:window.location.host,pageType:Xe(),playerType:ot(t),player:"orca"}}(t,o),c=Xa(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(Xa({},l),{isElementInViewport:Ya(e.current),videoId:e.current.id}),n);Ue.send(r,c),i&&console.log("".concat(""," Splunk event sent: ").concat(r,". Video: ").concat(e.current.id),c)}};function Ja(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qa="timeout",ei="error",ti="fullscreen",ri="ads",ni=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ja(e,t,r[t])}))}return e}({},{OK:"video-ok",TIMED_OUT:"video-timed-out",WAITING:"video-waiting"},{ERROR:"video-errored-out",API_ERROR:"video-api-request-failed"},{ON_FULLSCREEN:"video-fullscreen-opened",ON_UNFULLSCREEN:"video-fullscreen-closed"},{AD_COMPLETE:"video-ad-completed",AD_ERROR:"video-ad-error",AD_STARTED:"video-ad-started",AD_BYPASSED:"video-ad-bypassed"},{RENDER:"video-rendered"},{REMOTE_ORCA_LOAD_ERROR:"remote-orca-load-error",REMOTE_ORCA_LOAD_SUCCESS:"remote-orca-load-success"});function oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ai(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ai(e,t,r[t])}))}return e}function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oi(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 ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ui(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function si(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ui(e,t,r[t])}))}return e}var di=function(t,r){(function(t,r){var n=Vn(),o=li((0,e.useState)(!1),2),a=o[0],i=o[1],l=li((0,e.useState)(!1),2),c=l[0],u=l[1],s=(0,e.useRef)(),d=(0,e.useRef)(),p=0,f=function(e){m(e)},g=function(e){c||(clearInterval(s.current),function(e){clearInterval(d.current),d.current=setInterval((function(){var t;(null===(t=n.current)||void 0===t?void 0:t.currentTime)>0&&m(e)}),1e3)}(e),s.current=setInterval((function(){p+=1,Ka(n,Qa,ni.WAITING,ii({startReason:Ge()(e.detail,"startReason",""),startEvent:Ge()(e,"type","")},t),r),p>=4&&y(e)}),5e3))},b=function(){clearInterval(s.current),clearInterval(d.current),p=0},v=function(){b()},m=function(e){c||(Ka(n,Qa,ni.OK,ii({startReason:Ge()(e.detail,"startReason",""),startEvent:Ge()(e,"type","")},t),r),u(!0),b())},y=function(e){a||(Ka(n,Qa,ni.TIMED_OUT,ii({startReason:Ge()(e.detail,"startReason",""),startEvent:Ge()(e,"type","")},t),r),i(!0),b())};(0,e.useEffect)((function(){var e=null==n?void 0:n.current;if(e)return Un(e,U,g),Un(e,K,v),Un(e,G,f),Un(e,_,v),function(){Hn(e,U,g),Hn(e,K,v),Hn(e,G,f),Hn(e,_,v)}}),[n])})(t,r),function(t,r){var n=Vn(),o=function(e){var o=e.target.error.message,a=e.target.error.code;Ka(n,ei,ni.ERROR,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ci(e,t,r[t])}))}return e}({errorText:o,errorCode:a},t),r)};(0,e.useEffect)((function(){var e=null==n?void 0:n.current;if(e)return Un(e,B,o),function(){Hn(e,B,o)}}),[n])}(t,r),function(t,r){var n=Vn(),o=function(){Ka(n,ti,ni.ON_FULLSCREEN,t,r)},a=function(){Ka(n,ti,ni.ON_UNFULLSCREEN,t,r)};(0,e.useEffect)((function(){var e=null==n?void 0:n.current;if(e)return Un(e,F,o),Un(e,W,a),function(){Hn(e,F,o),Hn(e,W,a)}}),[n])}(t,r),function(t,r){var n=Vn(),o=lo().adWrapperRef,a=function(e){var a,i,l=null===(a=o.current)||void 0===a?void 0:a.irisPlayer,c=ko(l);Ao(c)||Ka(n,ri,ni.AD_COMPLETE,si({adData:e.detail,adTitle:null===(i=e.detail)||void 0===i?void 0:i.title},t),r)},i=function(e){var o;Ka(n,ri,ni.AD_ERROR,si({adData:e.detail,adTitle:null===(o=e.detail)||void 0===o?void 0:o.title},t),r)},l=function(e){var a,i,l=null===(a=o.current)||void 0===a?void 0:a.irisPlayer,c=ko(l);Ao(c)||Ka(n,ri,ni.AD_STARTED,si({adData:e.detail,adTitle:null===(i=e.detail)||void 0===i?void 0:i.title},t),r)},c=function(){Ka(n,ri,ni.AD_BYPASSED,si({},t),r)};(0,e.useEffect)((function(){var e=null==n?void 0:n.current;if(e)return Un(e,q,a),Un(e,Y,i),Un(e,G,l),Un(e,Z,c),function(){Hn(e,q,a),Hn(e,Y,i),Hn(e,G,l),Hn(e,Z,c)}}),[n])}(t,r)};function pi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fi=Nr("div",{display:"flex",justifyContent:"center",width:"100%",opacity:1,zIndex:2,position:"absolute",pointerEvents:"none",userSelect:"none",transition:"all 0.2s ease-out",lineHeight:"normal"}),gi=Nr("div",{background:"rgb(0,0,0,0.5)",color:"rgb(240,248,255)",fontFamily:"sans-serif",textShadow:"none",borderRadius:"3px",padding:"3px",margin:"5px",textAlign:"center",fontSize:"$100",variants:{variant:{fullscreen:{fontSize:"$150","@minMd":{fontSize:"$200"},"@minLg":{fontSize:"$250"}}}}}),bi=function(e){var t=e.currentCue,n=Aa(),o=n.playerState,a=n.isFullscreen;return r().createElement(fi,{css:{bottom:a?"100px":"$125"}},o.showSubtitles&&r().createElement(gi,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pi(e,t,r[t])}))}return e}({"aria-hidden":"true",id:"video-subtitles"},a&&{variant:"fullscreen"}),t))};bi.propTypes={currentCue:i().string.isRequired};var vi=Nr("video",{position:"absolute",width:"100%",height:"100%",top:0,left:0,objectFit:"contain"}),mi=function(e){var t=e.updateCues,n=e.handleVideoEnd,o=e.isStickyEnabled,a=e.updateStickyContext,i=e.updateDisplay,l=e.debug,u=c(),s=u.videoId,d=u.uniqueId,p=Vn(),f=Aa().handlePlayEvent;return r().createElement(vi,{id:"orca-video-".concat(s),"data-testid":"orca-video",className:"orca-video","aria-hidden":"true",crossOrigin:"anonymous",ref:p,onTimeUpdate:t,onEnded:n,onPlay:function(){Te("play",!0,s,l),f(!0),o&&(a({playingId:d}),i({state:"media-start"}))},onPause:function(){Te("pause",!0,s,l),f(!1)},onVolumeChange:function(){Te("volumeChange",p.current.volume,s,l)},preload:"metadata",controlsList:"nodownload",playsInline:!0})};mi.propTypes={updateCues:i().func.isRequired,handleVideoEnd:i().func.isRequired,isStickyEnabled:i().bool,updateStickyContext:i().func,updateDisplay:i().func,debug:i().bool};var yi=(0,e.forwardRef)((function(t,n){var o=t.onVideoRendered,a=void 0===o?function(){}:o,i=t.config,l=void 0===i?{}:i,u=t.promoEnabled,s=void 0===u||u,d=t.handleVideoEnd,p=void 0===d?function(){}:d,f=t.isLive,g=void 0!==f&&f,v=t.children,m=void 0===v?null:v,y=t.handleStart,w=void 0===y?function(){}:y,S=t.transitionToVideo,E=void 0===S?function(){}:S,x=t.updateCues,O=void 0===x?function(){}:x,A=t.hasSubtitles,C=void 0!==A&&A,k=t.currentCue,P=void 0===k?null:k,j=t.updateDisplay,$=void 0===j?function(){}:j,I=t.carouselState,T=void 0===I?null:I,D=t.Controls,M=t.handleClosePlayer,L=void 0===M?function(){}:M,_=l.isCarousel,B=void 0!==_&&_,N=l.debug,z=l.hideControls,V=void 0!==z&&z,F=c(),W=F.videoData,U=F.videoId,q=h(),G=q.autoplayState,Y=q.updateAutoplayState,Z=In(),X=Z.isStickyEnabled,K=Z.updateStickyContext,Q=Xo(),te=Q.setUpVideoSource,re=Q.hls,ne=Aa(),oe=ne.initializeNewVideo,ie=ne.renderControls,le=ne.setRenderControls,ce=_e(W);return function(t,r){var n=Vn();(0,e.useEffect)((function(){var e,o=new CustomEvent(H,{detail:t});null===(e=n.current)||void 0===e||e.dispatchEvent(o),"undefined"!=typeof window&&t&&(window.orcaPlayers=window.orcaPlayers||{},window.orcaPlayers[r]=window.orcaPlayers[r]||{data:t,events:[]},window.orcaPlayers[r].data=t)}),[null==t?void 0:t._id])}(W,U),function(){var t,r=c(),n=r.originalVideo,o=r.videoData,a=Aa().playerState,i=null==n?void 0:n._id,l=null==o||null===(t=o.additional_properties)||void 0===t?void 0:t.publicationEndDate;(0,e.useEffect)((function(){if(Xe()===ae&&i){return window.TWP=window.TWP||{},window.TWP.hpRefreshTests=window.TWP.hpRefreshTests||{},window.TWP.hpRefreshTests["orca_".concat(i)]=function(){return!a.isPlaying||a.isMuted||b(l)},function(){var e,t,r;null===(r=window)||void 0===r||null===(t=r.TWP)||void 0===t||null===(e=t.hpRefreshTests)||void 0===e||delete e["orca_".concat(i)]}}}),[i,a.isMuted,a.isPlaying,l])}(),di({isLive:g},l),function(t,r,n,o,a,i,l){var u=c(),s=u.videoId,d=u.uniqueId,p=u.resetUniqueId,f=void 0===p?function(){}:p,g=u.setVideoStartId,b=void 0===g?function(){}:g,v=lo().adControlsRef,m=Vn(),y=h().setOverrideReducedMotion,w=Bn().adState,S=Aa(),E=S.promoElement,x=S.playerState,O=S.resetVideoState,A=S.setShowSubtitles,C=S.toggleMute,k=S.reset,P=S.pause,j=S.play;(0,e.useImperativeHandle)(t,(function(){return{resetVideo:function(){k(),Te("resetCarouselVideo",!0,s)},start:function(){i(),l()},startVideoLoad:function(){i()},stopVideoLoad:function(){null==r||r.stopLoad()},showControls:function(){n(!0)},playVideoPreview:function(){o&&E.current.playVideo(),j()},play:function(){j()},pause:function(){P()},toggleMute:function(){w===de.PLAYING?v.current.toggleAdMute():C()},setTime:function(e){w!==de.PLAYING&&"number"==typeof e&&(m.current.currentTime=e)},restart:function(){w!==de.PLAYING&&(m.current.currentTime=0)},initializeNewVideo:function(e,t){a(e,t)},resetVideoState:function(e){O(e)},getDomNode:function(){return m.current},toggleSubtitles:function(){A(!x.showSubtitles)},setReducedMotion:function(e){y(e)},getUniqueId:function(){return d},setVideoStartId:function(e){b(e)},on:function(e,t){m.current.addEventListener(e,t)},off:function(e,t){m.current.removeEventListener(e,t)},resetUniqueId:function(){f()},videoPlayerState:x}}),[x,k,s,i,l,a,r,n,o,E,j,P,w,v,C,m,O,A,y,d,f,b])}(n,re,le,s,oe,te,E),(0,e.useEffect)((function(){G.status===R&&(w(),Y({status:"READY"}))}),[G.status]),function(t,r,n,o){var a=c().videoId,i=Vn(),l=Vo().sendPerformanceEvent,u=void 0===l?function(){}:l,s=r.debug,d=void 0!==s&&s;(0,e.useEffect)((function(){window.dispatchEvent(new CustomEvent(J,{detail:{videoId:a,videoElementRef:i,orcaRef:t}})),Te(J,!0,a,d),Ka(i,"render",ni.RENDER,{isLive:n},r),o({id:a,node:i.current,orcaPlayer:t}),u(ee)}),[])}(n,l,g,a),r().createElement(r().Fragment,null,r().createElement(mi,{updateCues:O,handleVideoEnd:p,isStickyEnabled:X,updateStickyContext:K,updateDisplay:$,debug:N}),m,ie&&!V&&r().createElement(r().Fragment,null,C&&P&&r().createElement(bi,{currentCue:P}),r().createElement(D,{config:l,hasSubtitles:C,isCarousel:B,carouselEnd:null==T?void 0:T.isEnd,closeCarousel:L,isLive:g,debug:N,isVertical:ce})))}));yi.displayName="OrcaCommonUI",yi.propTypes={onVideoRendered:i().func,config:i().object,promoEnabled:i().bool,liveEventEnded:i().bool,handleVideoEnd:i().func,isLive:i().bool,children:i().node,handleStart:i().func,transitionToVideo:i().func,updateCues:i().func,hasSubtitles:i().bool,currentCue:i().object,updateDisplay:i().func,Controls:i().elementType,carouselState:i().object,handleClosePlayer:i().func};var hi=Nr("span",{position:"absolute",border:0,padding:0,whiteSpace:"nowrap",wordWrap:"normal",width:1,height:1,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",color:"currentColor","&:active":{clip:"auto",height:"auto",width:"auto",margin:0,overflow:"visible",position:"static"},"&:focus":{clip:"auto",height:"auto",width:"auto",margin:0,overflow:"visible",position:"static"}}),wi=Object.defineProperty,Si=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable,Oi=(e,t,r)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ai=e.forwardRef(((t,r)=>{var n=t,{children:o,size:a="100",fill:i="currentColor",label:l,className:c="",css:u}=n,s=((e,t)=>{var r={};for(var n in e)Ei.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Si)for(var n of Si(e))t.indexOf(n)<0&&xi.call(e,n)&&(r[n]=e[n]);return r})(n,["children","size","fill","label","className","css"]);let d=e.Children.only(o),p=zr({size:Ur.sizes[a]||a,fill:i});return e.createElement(e.Fragment,null,e.cloneElement(d,((e,t)=>{for(var r in t||(t={}))Ei.call(t,r)&&Oi(e,r,t[r]);if(Si)for(var r of Si(t))xi.call(t,r)&&Oi(e,r,t[r]);return e})({"aria-hidden":!0,focusable:!1,role:"img",ref:r,fill:i,className:`${p({css:u,color:i})} ${c}`},s)),l?e.createElement(hi,null,l):null)}));Ai.displayName="Icon";var Ci=Nr("button",{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"fit-content",borderRadius:"$round",cursor:"pointer",border:"none",appearance:"none",px:"$100",fontFamily:"$meta",fontWeight:"$bold",fontSize:"$100",lineHeight:"$100",gap:"$050",transition:`background ${Ur.transitions.fast} ${Ur.transitions.inOut}`,"@reducedMotion":{transition:"none"},"&:disabled":{color:"$onDisabled",backgroundColor:"$colors$disabled",borderColor:"$colors$onDisabled","@hover":{"&:hover":{backgroundColor:"$colors$disabled"}}},variants:{variant:{primary:{background:Ur.colors.primary,color:Ur.colors.onPrimary,"@hover":{"&:hover":{background:Ur.colors.gray60}}},secondary:{background:Ur.colors.secondary,color:Ur.colors.onSecondary,border:"1px solid $subtle","@hover":{"&:hover":{background:Ur.colors.gray400}}},cta:{background:Ur.colors.cta,color:Ur.colors.onCta,"@hover":{"&:hover":{background:Ur.colors.blue80}}}},density:{compact:{py:"$050"},default:{py:"$075"}},isOutline:{true:{background:"none",border:"1px solid"},false:{}},icon:{center:{py:"$050",px:"$050",fontSize:"0",lineHeight:"0",gap:"0",maxWidth:"fit-content"},left:{flexDirection:"row"},right:{flexDirection:"row-reverse"},none:{}}},defaultVariants:{variant:"secondary",density:"default",isOutline:!1,icon:"left"},compoundVariants:[{icon:"center",density:"default",css:{padding:"$075",fontSize:"0",lineHeight:"0"}},{isOutline:!0,variant:"primary",css:{background:"none",color:Ur.colors.primary,"@hover":{"&:hover":{background:Ur.colors.alpha25}}}},{isOutline:!0,variant:"secondary",css:{background:"none",color:Ur.colors.secondary,"@hover":{"&:hover":{background:Ur.colors.alpha25}}}},{isOutline:!0,variant:"cta",css:{background:"none",color:Ur.colors.cta,"@hover":{"&:hover":{background:Ur.colors.alpha25}}}}]}),ki=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M6 2v12H4V2zm6 0v12h-2V2z"})))),Pi=(0,e.memo)(ki),ji=function(e){var t=e.className,n=e.onClick;return r().createElement("svg",{className:t,onPointerDown:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 104 104",fill:"#fff"},r().createElement("polygon",{points:"23 13 89.183 50.82 23 91"}))};ji.propTypes={className:i().string,onClick:i().func};const $i=ji;var Ii=o(2275),Ri=o.n(Ii),Ti=o(6328),Di=o.n(Ti),Mi=o(8468),Li=o.n(Mi),_i=o(8035),Bi=o.n(_i),Ni=o(9255),zi=o.n(Ni),Vi=o(5380),Fi=o.n(Vi),Wi=o(3287),Ui={};function Hi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Hi(e,t,r[t])}))}return e}function Gi(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}Ui.styleTagTransform=Fi(),Ui.setAttributes=Bi(),Ui.insert=Li().bind(null,"head"),Ui.domAPI=Di(),Ui.insertStyleElement=zi(),Ri()(Wi.A,Ui),Wi.A&&Wi.A.locals&&Wi.A.locals;var Yi=function(e){var t=e.isPlaying,n=void 0===t?null:t,o=e.toggleAdPlay,a=e.isMiniPlayer,i=void 0!==a&&a,l=e.buttonStyles;return r().createElement(Ci,qi({"aria-label":n?"Pause video":"Play video",className:"focus-visible-highlight","data-testid":"orca-play-button",variant:"primary",css:Gi(qi({border:"none",background:"none",padding:"0px",justifySelf:"center"},l&&qi({},l)),{"&:hover":{background:"none"}})},o&&{onClick:function(e){e.stopPropagation(),o()}}),r().createElement(Ai,{fill:"white",size:i?"100":"150",label:"play"},n?r().createElement(Pi,null):r().createElement($i,null)))};Yi.displayName="PlayPauseButton";var Zi={isPlaying:i().bool,toggleAdPlay:i().func,isMiniPlayer:i().bool};Yi.propTypes=qi({},Zi);var Xi=Nr("div",{position:"absolute",bottom:0,fontSize:"$075",fontWeight:"$bold",width:"100%",marginBottom:"$050","@media (min-width: 480px)":{display:"none"}}),Ki=function(){return r().createElement(Xi,null,r().createElement("p",{style:{margin:0}},"Swipe up for next video"))},Ji=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{fill:"currentColor",d:"m14.5 8-10 5.56V2.44z"})))),Qi=(0,e.memo)(Ji),el=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M15 8A7 7 0 0 1 1 8h1.08A5.92 5.92 0 1 0 8 2.08V1a7 7 0 0 1 7 7"})))),tl=(0,e.memo)(el),rl=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M14.3 5a6 6 0 0 0-.71-1.16A7 7 0 1 0 8 15a7 7 0 0 0 5-2l-.71-.71A5.94 5.94 0 0 1 8 14a6 6 0 1 1 4.79-9.6 4 4 0 0 1 .38.56c.11.18-.26-.16-.17 0h1.27l.1.1Z"}),e.createElement("path",{d:"M14.5 1.5h-1v3h-3v1h4v-4"})))),nl=(0,e.memo)(rl),ol=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.label=r,this.icon=n},al={READY:new ol("READY","Listen",Qi),LOADING:new ol("LOADING","Listen",tl),LOADED:new ol("LOADED","Listen",tl),BUFFER:new ol("BUFFER","Listen",tl),PLAYING:new ol("PLAYING","Pause",Pi),PAUSED:new ol("PAUSED","Play",Qi),ERROR:new ol("ERROR",void 0,nl)},il=o(5598),ll={};ll.styleTagTransform=Fi(),ll.setAttributes=Bi(),ll.insert=Li().bind(null,"head"),ll.domAPI=Di(),ll.insertStyleElement=zi(),Ri()(il.A,ll),il.A&&il.A.locals&&il.A.locals;var cl=Nr("button",{backgroundColor:"transparent",border:"none",width:"100%",paddingTop:"8px",paddingBottom:"4px",cursor:"pointer",touchAction:"none"}),ul=Nr("div",{background:"$gray20",display:"flex",alignItems:"center",position:"absolute",height:"100%",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,cursor:"pointer"}),sl=Nr("div",{position:"relative",borderRadius:"3px"}),dl=Nr("div",{});function pl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pl(e,t,r[t])}))}return e}var gl="mousemove",bl="mouseup",vl="mouseleave",ml="touchmove",yl="touchend",hl="touchcancel",wl=(0,e.forwardRef)((function(t,n){var o=t.theme,a=t.changeToState,i=t.duration,l=t.setCurrentTime,c=void 0===l?function(){}:l,u=t.progress,s=t.setProgress,d=(0,e.useRef)(),p=function(){var e,t,r;n.current.duration&&s((null===(e=n.current)||void 0===e?void 0:e.currentTime)/(null===(t=n.current)||void 0===t?void 0:t.duration)*(null===(r=d.current)||void 0===r?void 0:r.offsetWidth))};(0,e.useEffect)((function(){var e=new ResizeObserver((function(){return p}));return e.observe(d.current),function(){return e&&e.disconnect()}}),[]);var f=function(e){var t;c(null===(t=e.target)||void 0===t?void 0:t.currentTime),p()};(0,e.useEffect)((function(){var e=n.current;if(e)return e.addEventListener("timeupdate",f),function(){return e.removeEventListener("timeupdate",f)}}),[]);var g=function(e){var t,r,n=e-(null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect().left),o=null===(r=d.current)||void 0===r?void 0:r.offsetWidth;s(On(n/o*o||0,0,o)),c(On(n/o*i,0,i))},b=function(e){var t,r,o=(e-(null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect().left))/(null===(r=d.current)||void 0===r?void 0:r.offsetWidth)*i||0;return n.current.currentTime=On(o,0,i)};return r().createElement(cl,{tabIndex:-1,"aria-hidden":"true",ref:d,id:"media-components-scrubber","data-testid":"scrubber",onMouseDown:function(){var e,t,r=null===(e=n.current)||void 0===e?void 0:e.paused;r||null===(t=n.current)||void 0===t||t.pause();var o=function(e){return g(e.clientX)},l=function(e){var t;b(e.clientX)===i?a(al.READY):r||null===(t=n.current)||void 0===t||t.play(),Cn(document,[[gl,o],[bl,l],[vl,l]])};An(document,[[gl,o],[bl,l],[vl,l]])},onTouchStart:function(e){var t,r;e.preventDefault();var o=null===(t=n.current)||void 0===t?void 0:t.paused;o||null===(r=n.current)||void 0===r||r.pause();var l=function(e){e.preventDefault(),g(e.changedTouches[0].clientX)},c=function(e){e.preventDefault(),b(e.changedTouches[0].clientX)===i?a(al.READY):o||n.current.play(),Cn(document,[[ml,l],[yl,c],[hl,c]])};An(document,[[ml,l],[yl,c],[hl,c]])},onClick:function(e){return e.stopPropagation()}},r().createElement(sl,{id:"media-components-scrubber-bar",css:fl({},("light"===o||o===un||!o)&&{backgroundColor:"var(--wpds-colors-gray400)"},o===cn&&{backgroundColor:"var(--wpds-colors-gray60)"})},r().createElement(ul,{css:{width:u,background:o===un?"linear-gradient(180deg, #166DFC, 25.52%, #03AFCA 100%)":o===cn?"white":"$gray20"}},r().createElement(dl,{id:"media-components-scrubber-dot",css:{left:u,backgroundColor:o===un&&"#166DFC"}}))))}));wl.displayName="Scrubber",wl.propTypes={theme:i().string.isRequired,changeToState:i().func.isRequired,duration:i().number.isRequired,setCurrentTime:i().func,progress:i().number.isRequired,setProgress:i().func.isRequired};var Sl=Nr("div"),El=Nr(Sl,{display:"flex",variants:{direction:{row:{flexDirection:"row"},column:{flexDirection:"column"}},align:{center:{alignItems:"center"},start:{alignItems:"flex-start"},end:{alignItems:"flex-end"}},width:{full:{width:"100%"}},justify:{center:{justifyContent:"center"},start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"}}}}),xl=Nr(Sl,{fontFamily:"$meta",variants:{size:{md:{fontSize:"$087"}},align:{right:{textAlign:"right"}},color:{secondary:{color:"$secondary"}}}});function Ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Al(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Al(e,t,r[t])}))}return e}function kl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ol(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ol(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.")}()}var Pl=Nr(El,{gap:"$050"}),jl=Nr(xl,{color:"$gray700-static"}),$l=function(e){var t,n,o,a,i=e.currState,l=e.setSelected,c=e.changeToState,u=e.duration,s=e.progress,d=e.setProgress,p=Vn();return r().createElement(Pl,{direction:"column",align:"end",justify:"start",onMouseDown:function(){return l(!0)},onMouseUp:function(){return l(!1)}},r().createElement(wl,{ref:p,theme:"dark",currState:i,changeToState:c,duration:u,progress:s,setProgress:d}),r().createElement(jl,{size:"md",align:"right"},(n=u,o=rn(null===(t=p.current)||void 0===t?void 0:t.currentTime),(a=rn(n)).hours?"".concat(on(o)," / ").concat(on(a)):"".concat(an(o)," / ").concat(an(a)))))},Il=function(t){var n=t.initDuration,o=t.setSelected,a=t.persistentProgress,i=t.setPersistentProgress,l=Vn(),c=kl((0,e.useState)(a),2),u=c[0],s=c[1],d=kl((0,e.useState)(al.READY),2),p=d[0],f=d[1],g=kl((0,e.useState)(n||NaN),2),b=g[0],v=g[1],m=kl((0,e.useState)(!1),2),y=m[0],h=m[1],w=(0,e.useRef)(a);return function(t,r,n){(0,e.useEffect)((function(){t!==r&&n(r)}),[t,r,n])}(b,n,v),function(t,r){(0,e.useEffect)((function(){r.current=t}),[t,r])}(u,w),function(t,r){(0,e.useEffect)((function(){r(t.current)}),[t,r])}(w,i),r().createElement($l,{currState:p,setSelected:o,changeToState:function(e,t){e===al.LOADED?function(e,t,r,n,o){r(e.current.duration),t!==al.PAUSED&&e.current.play(),n||o(!0)}(l,p,v,y,h):e===al.READY?function(e){e(0)}(s):e===al.ERROR&&function(e){Ue.send("video-scrubber-error",{player:"Orca",errorMessage:e.message}),console.error(e)}(t),f(e)},duration:b,progress:u,setProgress:s})},Rl={setSelected:i().func.isRequired};$l.propTypes=Cl({currState:i().object.isRequired,changeToState:i().func.isRequired,duration:i().number.isRequired,progress:i().number.isRequired,setProgress:i().func.isRequired},Rl),Il.propTypes=Cl({initDuration:i().number.isRequired,persistentProgress:i().number.isRequired,setPersistentProgress:i().func.isRequired},Rl);var Tl=o(9734),Dl={};function Ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Dl.styleTagTransform=Fi(),Dl.setAttributes=Bi(),Dl.insert=Li().bind(null,"head"),Dl.domAPI=Di(),Dl.insertStyleElement=zi(),Ri()(Tl.A,Dl),Tl.A&&Tl.A.locals&&Tl.A.locals;var Ll=function(t){var n,o=t.playerState,a=t.handleVolumeChange,i=t.toggleMute,l=Vn(),c=o.volume,u=o.isMuted,s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ml(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ml(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.")}()}((0,e.useState)(isNaN(null==l||null===(n=l.current)||void 0===n?void 0:n.volume)?1:l.current.volume),2),d=s[0],p=s[1],f=u?0:d,g=(0,e.useRef)();return r().createElement("input",{tabIndex:-1,"aria-hidden":"true",type:"range",min:0,max:1,step:.02,value:f,"data-testid":"volume-slider",ref:g,className:"audio-scrubber",onChange:function(e){!function(e){e.target.valueAsNumber!==c&&u&&i(),p(e.target.valueAsNumber),a(e.target.valueAsNumber),function(e){var t=e.target,r=t.min,n=t.max,o=t.value-r,a=n-r;e.target.style.background="linear-gradient(to right, #fff 0%, #fff ".concat(o/a*100,"%, #595959 ").concat(o/a*100,"%, #595959 100%)")}(e)}(e)},style:{background:"linear-gradient(to right, #fff 0%, #fff ".concat(100*f,"%, #595959 ").concat(100*f,"%, #595959 100%)")}})};Ll.propTypes={playerState:i().object.isRequired,handleVolumeChange:i().func.isRequired,toggleMute:i().func.isRequired};const _l=Ll;var Bl=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M11.94 8a4 4 0 0 0-2.11-3.53l-.48.88a3 3 0 0 1 0 5.3l.48.88A4 4 0 0 0 11.94 8","data-name":"Path 22"}),e.createElement("path",{d:"M3.47 5H.94v6h2.53l2.84 2.28 1.63 1.31V1.41L6.31 2.72Zm3.47 7.5L3.83 10H1.94V6h1.89l3.11-2.5Z","data-name":"Path 23"}),e.createElement("path",{d:"m11.06 1.76-.42.91a5.87 5.87 0 0 1 0 10.68l.41.91a6.88 6.88 0 0 0 0-12.5Z","data-name":"Path 24"})))),Nl=(0,e.memo)(Bl),zl=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M3.85 5H1.32v6h2.53l2.84 2.28 1.63 1.31V1.41L6.69 2.72Zm3.47 7.5L4.21 10H2.32V6h1.89l3.11-2.5Z","data-name":"Path 32"}),e.createElement("path",{d:"m14.68 6.35-.7-.7-1.66 1.64-1.64-1.64-.7.7L11.61 8 10 9.65l.7.7 1.65-1.64L14 10.35l.7-.7L13 8Z","data-name":"Path 33"})))),Vl=(0,e.memo)(zl);function Fl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Fl(e,t,r[t])}))}return e}function Ul(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var Hl=function(e){var t=e.isMuted,n=e.isMiniPlayer;return r().createElement(Ai,{fill:"white",size:n?"100":"150",label:"mute"},t?r().createElement(Vl,null):r().createElement(Nl,null))};Hl.propTypes={isMuted:i().bool,isMiniPlayer:i().bool};var ql=function(e){var t=e.isMuted,n=void 0!==t&&t,o=e.toggleMute,a=e.isMiniPlayer,i=void 0!==a&&a,l=e.buttonStyles;return r().createElement(Ci,{"aria-label":n?"Unmute audio":"Mute audio",className:"focus-visible-highlight","data-testid":"sound-button",variant:"primary",css:Ul(Wl({border:"none",background:"none",padding:"0px",cursor:"pointer",justifySelf:"end"},l&&Wl({},l)),{"&:hover":{background:"none",right:"0px"}}),onClick:function(e){e.stopPropagation(),o()}},r().createElement(Hl,{isMuted:n,isMiniPlayer:i}))};ql.displayName="SoundButton";var Gl={toggleMute:i().func,isMiniPlayer:i().bool};function Yl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}ql.propTypes=Wl({},Gl);var Zl=function(e){var t=e.setShowVolumeSlider,n=e.isVertical,o=e.isMiniPlayer,a=e.showVolumeSlider,i=e.playerState,l=e.handleVolumeChange,c=e.toggleMute,u=e.buttonStyles,s=i.isMuted;return r().createElement(Sl,{onMouseOver:function(){return t(!0)},onMouseLeave:function(){return t(!1)},onClick:function(e){e.stopPropagation()}},r().createElement(Sl,{css:{position:"relative",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"5px"}},!n&&!o&&r().createElement(Sl,{css:{display:"flex",alignItems:"center",overflow:"hidden",width:a?"105px":"0px",transition:"width 0.5s ease-in-out","@sm":{display:"none"}}},r().createElement(_l,{playerState:i,handleVolumeChange:l,toggleMute:c})),r().createElement(ql,{isMuted:s,toggleMute:c,isMiniPlayer:o,buttonStyles:u})))};Zl.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Yl(e,t,r[t])}))}return e}({setShowVolumeSlider:i().func,isVertical:i().bool,showVolumeSlider:i().bool,playerState:i().shape({isMuted:i().bool}),handleVolumeChange:i().func,buttonStyles:i().object},Gl);const Xl=Zl;var Kl=function(e){var t=e.headline,n=Nr("div",{position:"absolute",bottom:"100px",display:"flex",textAlign:"left",opacity:1}),o=Nr("p",{color:"$gray700",fontFamily:"$headline",fontSize:"$125"});return r().createElement(n,null,r().createElement(o,null,t))};Kl.propTypes={headline:i().string.isRequired},Kl.displayName="Headline";const Jl=(0,e.memo)(Kl);function Ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ec=Nr("div",{position:"absolute",inset:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}),tc=Nr(Ai,{boxSizing:"content-box","@sm":{padding:"20px 8px 20px 8px",margin:"-20px -8px -20px -8px"}}),rc=Fr({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),nc=function(){var t=Vn(),n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ql(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ql(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.")}()}((0,e.useState)(!1),2),o=n[0],a=n[1],i=(0,e.useRef)(null),l=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e=t.current;if(e){var r=function(){clearTimeout(i.current),i.current=setTimeout((function(){a(!0)}),200)},n=function(){clearTimeout(i.current),clearTimeout(l.current),l.current=setTimeout((function(){a(!1)}),50)},o=function(){clearTimeout(i.current),clearTimeout(l.current),l.current=setTimeout((function(){a(!1)}),50)};return e.addEventListener("waiting",r),e.addEventListener("play",n),e.addEventListener("playing",n),e.addEventListener("pause",o),function(){clearTimeout(i.current),clearTimeout(l.current),e.removeEventListener("waiting",r),e.removeEventListener("play",n),e.removeEventListener("playing",n),e.removeEventListener("pause",o)}}}),[t]),o?r().createElement(ec,null,r().createElement(Ci,{variant:"primary",isOutline:"false",icon:"center",css:{border:"none",background:"$alpha50","&:hover":{background:"$alpha50"}}},r().createElement(tc,{label:"loading",fill:"white",css:{width:"25px",height:"25px",animation:"".concat(rc," 2s linear infinite"),"@reducedMotion":{animation:"none"}}},r().createElement(tl,null)))):null};nc.displayName="LoadingState";const oc=nc;var ac=Nr("div",{width:"100%",height:"100%",background:hn({topPercent:15,bottomPercent:25}),variants:{isVisible:{true:{opacity:1},false:{opacity:0}}}}),ic=Nr("div",{boxSizing:"border-box",position:"absolute",top:"0",width:"100%",paddingTop:"$075",paddingLeft:"$150",paddingRight:"$150",variants:{isMiniPlayer:{true:{paddingTop:"$050"}}}}),lc=Nr("div",{justifyContent:"space-between",flexDirection:"row",width:"100%",display:"flex","@sm":{alignItems:"center"}}),cc=Nr("div",{boxSizing:"border-box",position:"absolute",bottom:"0%",width:"100%",paddingBottom:"$075",paddingLeft:"$150",paddingRight:"$150",variants:{isMiniPlayer:{true:{paddingBottom:"$050"}},isCarousel:{true:{"@sm":{marginBottom:"$150"}},false:{"@sm":{marginBottom:"0"}}}}}),uc=Nr("div",{display:"grid",width:"100%",alignItems:"center",justifyContent:"space-between",variants:{isLooping:{true:{gridTemplateColumns:"repeat(2, 1fr)"},false:{gridTemplateColumns:"repeat(3, 1fr)"}}}}),sc=Nr("div",{display:"flex"}),dc=Nr("div",{alignItems:"center",display:"flex",gap:"$025",paddingRight:"$100"}),pc=Nr("div",{color:"$secondary",fontWeight:"$bold"}),fc=Nr("span",{height:"$050",width:"$050",backgroundColor:"$red100",borderRadius:"50%",display:"inline-block",animation:"sc-status-light-blink-animation 4s ease-in-out infinite alternate"}),gc=Nr(Sl,{variants:{isLooping:{true:{justifySelf:"left"},false:{justifySelf:"center"}}}}),bc=function(e,t,r){return e===Kr.MINI&&!t&&!r},vc=function(e,t,r){return e?{background:hn({topPercent:0,bottomPercent:25})}:t||r?{background:hn({topPercent:35,bottomPercent:35})}:{background:hn({topPercent:15,bottomPercent:25})}},mc=function(t){var n=t.children,o=t.togglePlay,a=t.controlsContainerHeight,i=t.setIsVisible,l=t.selected,u=t.debug,s=c().videoData,d=(0,e.useRef)(null);(0,e.useEffect)((function(){return d.current=setTimeout((function(){i(!1)}),3e3),function(){clearTimeout(d.current)}}),[i]);var p=(0,e.useCallback)((function(){d.current&&clearTimeout(d.current),i(!0)}),[d,i]),f=(0,e.useCallback)((function(){l||i(!1)}),[l,i]),g=(0,e.useCallback)((function(){d.current&&clearTimeout(d.current),i(!0),Te(D,!0,s._id,u)}),[u,s._id,i]),b=(0,e.useCallback)((function(){d.current=setTimeout((function(){i(!1),Te(D,!1,s._id,u)}),3e3)}),[u,s._id,i]);return r().createElement(yc,{"data-testid":"orca-controls",tabIndex:0,"aria-label":"Video controls",onClick:o,onMouseOver:p,onMouseLeave:f,onFocus:function(){i(!0)},onTouchStart:g,onTouchEnd:b,style:{"@sm":{maxHeight:a}}},n)};mc.propTypes={children:i().node,togglePlay:i().func,controlsContainerHeight:i().string,setIsVisible:i().func,selected:i().bool,debug:i().bool};var yc=Nr("div",{top:"0",left:"0",position:"absolute",height:"100%",width:"100%",display:"flex",zIndex:"2",opacity:1,"& .fade-out":{opacity:0}});function hc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wc(e,t,r[t])}))}return e}function Ec(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hc(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.")}()}var xc=function(t){var n=t.config,o=t.isVertical,a=t.carouselEnd,i=t.TopControls,l=void 0===i?function(){}:i,u=t.LeftButtons,s=void 0===u?function(){}:u,d=t.closeCarousel,p=t.hasSubtitles,f=t.isLive,g=c().videoData,b=h().autoplayState,v=In().isOpenSticky,m=Bn().adState,y=Aa(),w=y.initDuration,S=y.playerSize,E=y.playerState,x=y.isFullscreen,O=y.handleVolumeChange,A=y.toggleMute,C=y.onPlayButton,k=n.isCarousel,P=n.debug,j=Ec((0,e.useState)(!0),2),$=j[0],I=j[1],R=Ec((0,e.useState)(!1),2),T=R[0],D=R[1],M=Ec((0,e.useState)(!1),2),L=M[0],_=M[1],B=Ec((0,e.useState)(0),2),N=B[0],z=B[1],V=bc(S,x,o),F=window.innerHeight?"".concat(window.innerHeight,"px"):"100%",W=!V&&!f&&!b.isLooping,U=De(g),H=k&&!U,q=(null==g?void 0:g.headlines.basic)||"";return r().createElement(mc,{"data-testid":"orca-controls",tabIndex:0,"aria-label":"Video controls",togglePlay:function(){m!==de.PLAYING&&C()},controlsContainerHeight:F,setIsVisible:I,selected:L,debug:P},r().createElement(oc,null),r().createElement(ac,{isVisible:$,css:Sc({},vc(b.isLooping,v,V))},r().createElement(l,{config:n,isVertical:o,closeCarousel:d,setSelected:_}),r().createElement(cc,{isMiniPlayer:V,isCarousel:k},r().createElement(uc,{isLooping:b.isLooping},H&&r().createElement(Jl,{headline:q}),r().createElement(s,{isVertical:o,hasSubtitles:p,isLive:f}),r().createElement(gc,{isLooping:b.isLooping},r().createElement(Yi,{isPlaying:E.isPlaying,isMiniPlayer:V,buttonStyles:{margin:"-12px -12px 0 -12px",padding:"$075"}})),r().createElement(Xl,{setShowVolumeSlider:D,isVertical:o,isMiniPlayer:V,showVolumeSlider:T,playerState:E,handleVolumeChange:O,toggleMute:A,buttonStyles:{margin:"-12px -12px 0 -12px",padding:"$075"}})),W&&r().createElement(Il,{setSelected:_,initDuration:w,persistentProgress:N,setPersistentProgress:z})),k&&!a&&r().createElement(Ki,null)))};xc.propTypes={config:i().object,isVertical:i().bool,carouselEnd:i().bool,TopControls:i().elementType,LeftButtons:i().elementType,isLive:i().bool,closeCarousel:i().func,hasSubtitles:i().bool};var Oc=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M14 3H1v10h14V3Zm0 9H2V4h12Z","data-name":"Path 25"}),e.createElement("path",{d:"M6 10.33a1.77 1.77 0 0 0 1.83-1.57l-1-.17c-.09.6-.32.9-.79.9S5.2 9 5.2 8s.29-1.48.8-1.48.65.33.73.9l1.06-.17A1.69 1.69 0 0 0 6 5.67c-1.21 0-2 .87-2 2.41a2 2 0 0 0 1.73 2.23 1.2 1.2 0 0 0 .27.02","data-name":"Path 26"}),e.createElement("path",{d:"M10.13 10.33A1.77 1.77 0 0 0 12 8.76l-1-.17c-.08.6-.31.9-.79.9S9.37 9 9.37 8s.29-1.51.79-1.51.65.33.73.9L12 7.25a1.69 1.69 0 0 0-1.79-1.58c-1.21 0-2 .87-2 2.41a2 2 0 0 0 1.73 2.24Z","data-name":"Path 27"})))),Ac=(0,e.memo)(Oc),Cc=function(e){var t=e.className;return r().createElement("svg",{className:t,width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r().createElement("path",{d:"M2 19.6431V4.64307H23V19.6431H2Z",fill:"white"}),r().createElement("path",{d:"M11.3349 15C10.8257 15.4369 10.1699 15.6648 9.49941 15.6378C9.36372 15.6428 9.22789 15.6327 9.09441 15.6078C8.30744 15.5067 7.59257 15.098 7.10623 14.4711C6.61989 13.8442 6.4017 13.0502 6.49941 12.2628C6.49941 9.95282 7.68441 8.64782 9.49941 8.64782C10.1696 8.60675 10.8287 8.83322 11.332 9.27754C11.8354 9.72186 12.142 10.3477 12.1844 11.0178L10.5944 11.2728C10.4744 10.4178 10.2644 9.92282 9.49941 9.92282C8.73441 9.92282 8.29941 10.6428 8.29941 12.1428C8.29941 13.6428 8.85441 14.3778 9.55941 14.3778C10.2644 14.3778 10.6094 13.9278 10.7444 13.0278L12.2444 13.2828C12.1691 13.9496 11.8442 14.5631 11.3349 15Z",fill:"#111111"}),r().createElement("path",{d:"M17.5693 15.0214C17.0471 15.4598 16.3762 15.6806 15.6957 15.6378L15.4107 15.6228C15.0196 15.5728 14.6422 15.4462 14.3 15.2503C13.9579 15.0543 13.6577 14.7928 13.4167 14.4808C13.1757 14.1687 12.9986 13.8122 12.8954 13.4316C12.7923 13.051 12.7652 12.6539 12.8157 12.2628C12.8157 9.95282 14.0007 8.64782 15.8157 8.64782C16.4859 8.60675 17.145 8.83322 17.6484 9.27754C18.1517 9.72186 18.4583 10.3477 18.5007 11.0178L16.8357 11.2278C16.7157 10.3728 16.4907 9.87782 15.7407 9.87782C14.9907 9.87782 14.5557 10.6428 14.5557 12.1428C14.5557 13.6428 15.0957 14.3778 15.8157 14.3778C16.5357 14.3778 16.8807 13.9278 17.0007 13.0278L18.5007 13.2828C18.425 13.9605 18.0915 14.583 17.5693 15.0214Z",fill:"#111111"}))};Cc.propTypes={className:i().string};const kc=Cc;var Pc=Nr("div",{width:"40px",height:"40px"}),jc=function(e){var t=e.setShowSubtitles,n=e.playerState,o=e.hasSubtitles,a=Vn();return o?r().createElement(Ci,{"aria-label":n.showSubtitles?"Hide subtitles":"Show subtitles","data-testid":"subtitles-button",icon:"center",className:"focus-visible-highlight",variant:"primary",css:{border:"none",paddingLeft:0,background:"none","&:hover":{background:"none"},margin:"-12px -12px 0 -12px",padding:"$075"},onClick:function(e){e.stopPropagation();var r=new Event("captions");a.current.dispatchEvent(r),t(!n.showSubtitles)}},n.showSubtitles?r().createElement(kc,null):r().createElement(Ai,{fill:"white",size:"150",label:"subtitles"},r().createElement(Ac,null))):r().createElement(Pc,null)};function $c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}jc.displayName="SubtitlesButton",jc.propTypes={setShowSubtitles:i().func,playerState:i().object,hasSubtitles:i().bool};var Ic=Nr("div",{color:"$secondary",fontSize:"$087",userSelect:"none"});function Rc(t){var n,o,a=t.initDuration,i=Vn(),l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$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.")}()}((0,e.useState)((null===(n=i.current)||void 0===n?void 0:n.currentTime)||0),2),c=l[0],u=l[1];return(0,e.useEffect)((function(){var e=i.current;if(e){var t=function(e){var t;u(null===(t=e.target)||void 0===t?void 0:t.currentTime)};return null==e||e.addEventListener("timeupdate",t),function(){null==e||e.removeEventListener("timeupdate",t)}}}),[i]),r().createElement(Ic,null,(o=rn(a-c)).hours?on(o):an(o))}Rc.propTypes={initDuration:i().number.isRequired};var Tc=function(e){var t,n,o,a=e.isVertical,i=e.hasSubtitles,l=e.isLive,u=Aa(),s=u.initDuration,d=u.playerSize,p=u.playerState,f=u.isFullscreen,g=u.setShowSubtitles,b=c().videoData,v=bc(d,f,a),m=!(v||(t=b,o=null==t||null===(n=t.taxonomy)||void 0===n?void 0:n.tags,(null==o?void 0:o.filter((function(e){return e.text===ue.BURNED_CAPTIONS})).length)>0));return r().createElement(sc,null,l?r().createElement(Dc,{isMiniPlayer:v}):v&&r().createElement(Rc,{initDuration:s}),m&&r().createElement(jc,{setShowSubtitles:g,playerState:p,hasSubtitles:i}))};Tc.propTypes={isVertical:i().bool,hasSubtitles:i().bool,isLive:i().bool};var Dc=function(e){var t=e.isMiniPlayer;return r().createElement(dc,null,r().createElement(fc,null),r().createElement(pc,{css:{fontSize:t?"$087":"$100"}},"LIVE"))};Dc.propTypes={isMiniPlayer:i().bool};var Mc=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M5.5 3V2H2v3.5h1v-2l2.62 2.64.71-.71L3.89 3Z","data-name":"Path 28"}),e.createElement("path",{d:"M10.5 2v1h1.79L9.77 5.53l.7.7L13 3.71V5.5h1V2Z","data-name":"Path 29"}),e.createElement("path",{d:"m13 12.11-2.44-2.44-.7.71L12.48 13h-2v1H14v-3.5h-1Z","data-name":"Path 30"}),e.createElement("path",{d:"M5.53 9.77 3 12.29V10.5H2V14h3.5v-1H3.71l2.52-2.53Z","data-name":"Path 31"})))),Lc=(0,e.memo)(Mc),_c=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M2.83 5.14v1h3.5v-3.5h-1v2L2.71 2 2 2.71l2.44 2.43Z","data-name":"Path 28"}),e.createElement("path",{d:"M13.27 6.23v-1h-1.79L14 2.7l-.7-.7-2.53 2.52V2.73h-1v3.5Z","data-name":"Path 29"}),e.createElement("path",{d:"M10.86 11.56 13.3 14l.7-.71-2.62-2.62h2v-1H9.86v3.5h1Z","data-name":"Path 30"}),e.createElement("path",{d:"m2.7 14 2.53-2.52v1.79h1v-3.5h-3.5v1h1.79L2 13.3Z","data-name":"Path 31"})))),Bc=(0,e.memo)(_c),Nc=function(e){var t=e.isFullscreen,n=e.setIsFullscreen,o=e.isMiniPlayer,a=Vn();return r().createElement(Ci,{"aria-label":"Expand video to full screen","data-testid":"fullscreen-button",icon:"center",className:"focus-visible-highlight",variant:"primary",css:{border:"none",background:"none","&:hover":{background:"none"},margin:"-$075",padding:"$075"},onClick:function(e){e.stopPropagation();var r=new Event(t?W:F);a.current.dispatchEvent(r),n(!t)}},r().createElement(Ai,{fill:"white",size:o?"100":"150",label:"full-screen"},t?r().createElement(Bc,null):r().createElement(Lc,null)))};Nc.displayName="FullScreenButton";const zc=Nc;Nc.propTypes={isFullscreen:i().bool.isRequired,setIsFullscreen:i().func.isRequired,isMiniPlayer:i().bool.isRequired};var Vc=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M14 14H2V7h1v6h10V7h1Zm-5.5-2h-1V3h1Z"}),e.createElement("path",{d:"M10.29 5.71 11 5 8 2l-.71.71L5 5l.71.71L8 3.42z"})))),Fc=(0,e.memo)(Vc);function Wc(e,t,r,n,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}var Uc=function(){var e,t=(e=function(e,t){var r,n;return function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,navigator.clipboard.writeText(e)];case 1:return o.sent(),[3,3];case 2:return r=o.sent(),console.error("Try to copy by execCommand due to failed on Clipboard API writeText: ",r),(n=document.createElement("textarea")).value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),[3,3];case 3:return t(),[2]}}))},function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){Wc(a,n,o,i,l,"next",e)}function l(e){Wc(a,n,o,i,l,"throw",e)}i(void 0)}))});return function(e,r){return t.apply(this,arguments)}}(),Hc=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M8 1a7 7 0 1 0 5 2.05A7 7 0 0 0 8 1m0 13a6 6 0 1 1 4.24-1.76A6 6 0 0 1 8 14","data-name":"Path 19"}),e.createElement("path",{d:"M7 10.77 5.25 9.11l.56-.55 1.13 1.07 3.48-4.09.61.51Z","data-name":"Path 20"})))),qc=(0,e.memo)(Hc),Gc=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{fill:"currentColor",d:"M9.444 6.557q.197.199.35.42l-.726.726a1.97 1.97 0 0 0-3.009-.539l-.108.1L3.777 9.44a1.97 1.97 0 0 0 2.678 2.886l.107-.1 1.173-1.173.707.707-1.172 1.173a2.97 2.97 0 1 1-4.2-4.2l2.174-2.175a2.97 2.97 0 0 1 4.2 0M13 3.002a2.97 2.97 0 0 1 0 4.2l-2.174 2.175a2.97 2.97 0 0 1-4.495-.343l.72-.72q.118.191.282.355a1.97 1.97 0 0 0 2.678.1l.107-.1 2.175-2.174a1.97 1.97 0 0 0-2.678-2.886l-.108.1L8.325 4.89l-.707-.707 1.181-1.18a2.97 2.97 0 0 1 4.2 0"})))),Yc=(0,e.memo)(Gc);function Zc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Xc(e,t,r[t])}))}return e}var Jc=Nr("div",{position:"relative",display:"inline-flex",flexShrink:0}),Qc=Nr("span",{position:"absolute",left:"100%",top:"50%",marginLeft:"2px",transform:"translateY(-50%)",fontSize:"$075",padding:"4px 6px",color:"white",borderRadius:"5px",whiteSpace:"nowrap",opacity:0,transition:"opacity 0.3s ease-in-out",pointerEvents:"none",backgroundColor:"rgba(42, 42, 42, .8)",zIndex:1}),eu=function(t){var n=t.content,o=t.onBlur,a=void 0===o?function(){}:o,i=t.isMiniPlayer,l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zc(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.")}()}((0,e.useState)(!1),2),c=l[0],u=l[1];(0,e.useEffect)((function(){if(!1!==c){var e=setTimeout((function(){return u(!1)}),2e3);return function(){clearTimeout(e)}}}),[c]);var s=(0,e.useCallback)((function(e){e.stopPropagation(),Uc(n,(function(){return u(!0)}))}),[n]);return r().createElement(Jc,null,r().createElement(Ci,{"aria-label":c?"Link copied":"Copy link",icon:"center",className:"focus-visible-highlight",variant:"primary",css:{border:"none",background:"none","&:hover":{background:"none"},margin:"-$075",padding:"$075"},onClick:s,onBlur:a},r().createElement(Ai,{fill:"white",color:"white",size:i?"100":"150"},c?r().createElement(qc,null):r().createElement(Yc,null))),r().createElement(Qc,{role:"status","aria-live":"polite","aria-hidden":!c,css:Kc({},c&&{opacity:1})},"Link copied"))};function tu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}eu.displayName="CopyButton",eu.propTypes={content:i().string.isRequired,onBlur:i().func,isMiniPlayer:i().bool.isRequired};var ru=function(t){var n,o,a=t.headline,i=t.canonicalUrl,l=t.setSelected,c=t.isMiniPlayer,u=pa()===na,s=(n={title:a,url:i},"object"==("undefined"==typeof navigator?"undefined":(o=navigator)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"==typeof navigator.canShare&&"function"==typeof navigator.share&&navigator.canShare(n)&&u),d=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tu(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.")}()}((0,e.useState)(!1),2),p=d[0],f=d[1],g=(0,e.useCallback)((function(){var e;p||(f(!0),(e={title:a,url:i},navigator.share(e)).then((function(){f(!1)})).catch((function(){f(!1)})))}),[a,i,p]);return r().createElement(r().Fragment,null,s?r().createElement(Ci,{icon:"center",variant:"primary",css:{border:"none",background:"none","&:hover":{background:"none"},margin:"-$075",padding:"$075"},"data-testid":"share-button",onFocus:function(){l(!0)},onClick:function(e){e.stopPropagation(),s&&g()}},r().createElement(Ai,{fill:"white",size:"150",label:"share"},r().createElement(Fc,null))):r().createElement(eu,{isMiniPlayer:c,content:i}))};ru.displayName="ShareButton",ru.propTypes={headline:i().string.isRequired,canonicalUrl:i().string.isRequired,setSelected:i().func,isMiniPlayer:i().bool.isRequired};var nu=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M5.11 4.44 2 8l3.11 3.56.63-.72L3.25 8l2.49-2.84Zm5.78 0-.63.72L12.75 8l-2.49 2.84.63.72L14 8Zm-4.56 8.28.88.28 2.5-9.72L8.82 3Z"})))),ou=(0,e.memo)(nu),au=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M13 3.65 12.35 3 8 7.34 3.65 3 3 3.65 7.34 8 3 12.35l.65.65L8 8.66 12.35 13l.65-.65L8.66 8Z"})))),iu=(0,e.memo)(au),lu=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{fillRule:"evenodd",d:"M13 5H6v9h7zM5 4v11h9V4z",clipRule:"evenodd"}),e.createElement("path",{d:"M11.5 1v2h-1V2H3v10h1v1H2V1z"})))),cu=(0,e.memo)(lu);function uu(){return uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uu.apply(this,arguments)}function su(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function du(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function pu(...t){return(0,e.useCallback)(du(...t),t)}function fu(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return(0,e.useMemo)((()=>({[`__scope${r.scopeName}`]:o})),[o])}};return n.scopeName=r.scopeName,n}const gu=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},bu=t["useId".toString()]||(()=>{});let vu=0;function mu(t){const[r,n]=e.useState(bu());return gu((()=>{t||n((e=>null!=e?e:String(vu++)))}),[t]),t||(r?`radix-${r}`:"")}function yu(t){const r=(0,e.useRef)(t);return(0,e.useEffect)((()=>{r.current=t})),(0,e.useMemo)((()=>(...e)=>{var t;return null===(t=r.current)||void 0===t?void 0:t.call(r,...e)}),[])}function hu({prop:t,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:t,onChange:r}){const n=(0,e.useState)(t),[o]=n,a=(0,e.useRef)(o),i=yu(r);return(0,e.useEffect)((()=>{a.current!==o&&(i(o),a.current=o)}),[o,a,i]),n}({defaultProp:r,onChange:n}),i=void 0!==t,l=i?t:o,c=yu(n);return[l,(0,e.useCallback)((e=>{if(i){const r="function"==typeof e?e(t):e;r!==t&&c(r)}else a(e)}),[i,t,a,c])]}const wu=require("react-dom");var Su=o.n(wu);const Eu=(0,e.forwardRef)(((t,r)=>{const{children:n,...o}=t,a=e.Children.toArray(n),i=a.find(Au);if(i){const t=i.props.children,n=a.map((r=>r===i?e.Children.count(t)>1?e.Children.only(null):(0,e.isValidElement)(t)?t.props.children:null:r));return(0,e.createElement)(xu,uu({},o,{ref:r}),(0,e.isValidElement)(t)?(0,e.cloneElement)(t,void 0,n):null)}return(0,e.createElement)(xu,uu({},o,{ref:r}),n)}));Eu.displayName="Slot";const xu=(0,e.forwardRef)(((t,r)=>{const{children:n,...o}=t;return(0,e.isValidElement)(n)?(0,e.cloneElement)(n,{...Cu(o,n.props),ref:r?du(r,n.ref):n.ref}):e.Children.count(n)>1?e.Children.only(null):null}));xu.displayName="SlotClone";const Ou=({children:t})=>(0,e.createElement)(e.Fragment,null,t);function Au(t){return(0,e.isValidElement)(t)&&t.type===Ou}function Cu(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{a(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const ku=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=(0,e.forwardRef)(((t,n)=>{const{asChild:o,...a}=t,i=o?Eu:r;return(0,e.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,e.createElement)(i,uu({},a,{ref:n}))}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),Pu="dismissableLayer.update";let ju;const $u=(0,e.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Iu=(0,e.forwardRef)(((t,r)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:c,onDismiss:u,...s}=t,d=(0,e.useContext)($u),[p,f]=(0,e.useState)(null),g=null!==(n=null==p?void 0:p.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=(0,e.useState)({}),v=pu(r,(e=>f(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),h=m.indexOf(y),w=p?m.indexOf(p):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=h,x=function(t,r=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=yu(t),o=(0,e.useRef)(!1),a=(0,e.useRef)((()=>{}));return(0,e.useEffect)((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function i(){Tu("dismissableLayer.pointerDownOutside",n,t,{discrete:!0})}"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=i,r.addEventListener("click",a.current,{once:!0})):i()}else r.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}}),[r,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));E&&!r&&(null==i||i(e),null==c||c(e),e.defaultPrevented||null==u||u())}),g),O=function(t,r=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=yu(t),o=(0,e.useRef)(!1);return(0,e.useEffect)((()=>{const e=e=>{e.target&&!o.current&&Tu("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==c||c(e),e.defaultPrevented||null==u||u())}),g);return function(t,r=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=yu(t);(0,e.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e),()=>r.removeEventListener("keydown",e)}),[n,r])}((e=>{w===d.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),g),(0,e.useEffect)((()=>{if(p)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(ju=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Ru(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=ju)}}),[p,g,o,d]),(0,e.useEffect)((()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Ru())}),[p,d]),(0,e.useEffect)((()=>{const e=()=>b({});return document.addEventListener(Pu,e),()=>document.removeEventListener(Pu,e)}),[]),(0,e.createElement)(ku.div,uu({},s,{ref:v,style:{pointerEvents:S?E?"auto":"none":void 0,...t.style},onFocusCapture:su(t.onFocusCapture,O.onFocusCapture),onBlurCapture:su(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:su(t.onPointerDownCapture,x.onPointerDownCapture)}))}));function Ru(){const e=new CustomEvent(Pu);document.dispatchEvent(e)}function Tu(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&(0,wu.flushSync)((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}const Du="focusScope.autoFocusOnMount",Mu="focusScope.autoFocusOnUnmount",Lu={bubbles:!1,cancelable:!0},_u=(0,e.forwardRef)(((t,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...l}=t,[c,u]=(0,e.useState)(null),s=yu(a),d=yu(i),p=(0,e.useRef)(null),f=pu(r,(e=>u(e))),g=(0,e.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,e.useEffect)((()=>{if(o){function e(e){if(g.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:Vu(p.current,{select:!0})}function t(e){if(g.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Vu(p.current,{select:!0}))}function r(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Vu(c)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[o,c,g.paused]),(0,e.useEffect)((()=>{if(c){Fu.add(g);const e=document.activeElement;if(!c.contains(e)){const t=new CustomEvent(Du,Lu);c.addEventListener(Du,s),c.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Vu(n,{select:t}),document.activeElement!==r)return}(Bu(c).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&Vu(c))}return()=>{c.removeEventListener(Du,s),setTimeout((()=>{const t=new CustomEvent(Mu,Lu);c.addEventListener(Mu,d),c.dispatchEvent(t),t.defaultPrevented||Vu(null!=e?e:document.body,{select:!0}),c.removeEventListener(Mu,d),Fu.remove(g)}),0)}}}),[c,s,d,g]);const b=(0,e.useCallback)((e=>{if(!n&&!o)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,a]=function(e){const t=Bu(e);return[Nu(t,e),Nu(t.reverse(),e)]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&Vu(a,{select:!0})):(e.preventDefault(),n&&Vu(o,{select:!0})):r===t&&e.preventDefault()}}),[n,o,g.paused]);return(0,e.createElement)(ku.div,uu({tabIndex:-1},l,{ref:f,onKeyDown:b}))}));function Bu(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Nu(e,t){for(const r of e)if(!zu(r,{upTo:t}))return r}function zu(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Vu(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Fu=function(){let e=[];return{add(t){const r=e[0];t!==r&&(null==r||r.pause()),e=Wu(e,t),e.unshift(t)},remove(t){var r;e=Wu(e,t),null===(r=e[0])||void 0===r||r.resume()}}}();function Wu(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}const Uu=(0,e.forwardRef)(((t,r)=>{var n;const{container:o=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...a}=t;return o?wu.createPortal((0,e.createElement)(ku.div,uu({},a,{ref:r})),o):null})),Hu=t=>{const{present:r,children:n}=t,o=function(t){const[r,n]=(0,e.useState)(),o=(0,e.useRef)({}),a=(0,e.useRef)(t),i=(0,e.useRef)("none"),l=t?"mounted":"unmounted",[c,u]=function(t,r){return(0,e.useReducer)(((e,t)=>{const n=r[e][t];return null!=n?n:e}),t)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,e.useEffect)((()=>{const e=qu(o.current);i.current="mounted"===c?e:"none"}),[c]),gu((()=>{const e=o.current,r=a.current;if(r!==t){const n=i.current,o=qu(e);t?u("MOUNT"):"none"===o||"none"===(null==e?void 0:e.display)?u("UNMOUNT"):u(r&&n!==o?"ANIMATION_OUT":"UNMOUNT"),a.current=t}}),[t,u]),gu((()=>{if(r){const e=e=>{const t=qu(o.current).includes(e.animationName);e.target===r&&t&&(0,wu.flushSync)((()=>u("ANIMATION_END")))},t=e=>{e.target===r&&(i.current=qu(o.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[r,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:(0,e.useCallback)((e=>{e&&(o.current=getComputedStyle(e)),n(e)}),[])}}(r),a="function"==typeof n?n({present:o.isPresent}):e.Children.only(n),i=pu(o.ref,a.ref);return"function"==typeof n||o.isPresent?(0,e.cloneElement)(a,{ref:i}):null};function qu(e){return(null==e?void 0:e.animationName)||"none"}Hu.displayName="Presence";let Gu=0;function Yu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Zu=function(){return Zu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zu.apply(this,arguments)};function Xu(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create,Object.create;var Ku="right-scroll-bar-position",Ju="width-before-scroll-bar";function Qu(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var es="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ts=new WeakMap;function rs(e){return e}var ns=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=rs);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var a=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}};return o}(null);return t.options=Zu({async:!0,ssr:!1},e),t}(),os=function(){},as=e.forwardRef((function(t,r){var n=e.useRef(null),o=e.useState({onScrollCapture:os,onWheelCapture:os,onTouchMoveCapture:os}),a=o[0],i=o[1],l=t.forwardProps,c=t.children,u=t.className,s=t.removeScrollBar,d=t.enabled,p=t.shards,f=t.sideCar,g=t.noIsolation,b=t.inert,v=t.allowPinchZoom,m=t.as,y=void 0===m?"div":m,h=Xu(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,S=function(t,r){var n,o,a,i=(n=r||null,o=function(e){return t.forEach((function(t){return Qu(t,e)}))},(a=(0,e.useState)((function(){return{value:n,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=o,a.facade);return es((function(){var e=ts.get(i);if(e){var r=new Set(e),n=new Set(t),o=i.current;r.forEach((function(e){n.has(e)||Qu(e,null)})),n.forEach((function(e){r.has(e)||Qu(e,o)}))}ts.set(i,t)}),[t]),i}([n,r]),E=Zu(Zu({},h),a);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:ns,removeScrollBar:s,shards:p,noIsolation:g,inert:b,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),l?e.cloneElement(e.Children.only(c),Zu(Zu({},E),{ref:S})):e.createElement(y,Zu({},E,{className:u,ref:S}),c))}));as.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},as.classNames={fullWidth:Ju,zeroRight:Ku};var is=function(t){var r=t.sideCar,n=Xu(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,Zu({},n))};is.isSideCarExport=!0;var ls=function(){var e=0,t=null;return{add:function(r){var n,a;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o.nc;return t&&e.setAttribute("nonce",t),e}())&&(a=r,(n=t).styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cs=function(){var t,r=(t=ls(),function(r,n){e.useEffect((function(){return t.add(r),function(){t.remove()}}),[r&&n])});return function(e){var t=e.styles,n=e.dynamic;return r(t,n),null}},us={left:0,top:0,right:0,gap:0},ss=function(e){return parseInt(e||"",10)||0},ds=cs(),ps="data-scroll-locked",fs=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(l,"px ").concat(n,";\n  }\n  body[").concat(ps,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Ku," {\n    right: ").concat(l,"px ").concat(n,";\n  }\n  \n  .").concat(Ju," {\n    margin-right: ").concat(l,"px ").concat(n,";\n  }\n  \n  .").concat(Ku," .").concat(Ku," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(Ju," .").concat(Ju," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(ps,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},gs=function(){var e=parseInt(document.body.getAttribute(ps)||"0",10);return isFinite(e)?e:0},bs=function(t){var r=t.noRelative,n=t.noImportant,o=t.gapMode,a=void 0===o?"margin":o;e.useEffect((function(){return document.body.setAttribute(ps,(gs()+1).toString()),function(){var e=gs()-1;e<=0?document.body.removeAttribute(ps):document.body.setAttribute(ps,e.toString())}}),[]);var i=e.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return us;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ss(r),ss(n),ss(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}}(a)}),[a]);return e.createElement(ds,{styles:fs(i,!r,a,n?"":"!important")})},vs=!1;if("undefined"!=typeof window)try{var ms=Object.defineProperty({},"passive",{get:function(){return vs=!0,!0}});window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch(e){vs=!1}var ys=!!vs&&{passive:!1},hs=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},ws=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Ss(e,r)){var n=Es(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Ss=function(e,t){return"v"===e?function(e){return hs(e,"overflowY")}(t):function(e){return hs(e,"overflowX")}(t)},Es=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},xs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Os=function(e){return[e.deltaX,e.deltaY]},As=function(e){return e&&"current"in e?e.current:e},Cs=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ks=0,Ps=[];const js=($s=function(t){var r=e.useRef([]),n=e.useRef([0,0]),o=e.useRef(),a=e.useState(ks++)[0],i=e.useState((function(){return cs()}))[0],l=e.useRef(t);e.useEffect((function(){l.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(As),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var r,a=xs(e),i=n.current,c="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,d=Math.abs(c)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var p=ws(d,s);if(!p)return!0;if(p?r=d:(r="v"===d?"h":"v",p=ws(d,s)),!p)return!1;if(!o.current&&"changedTouches"in e&&(c||u)&&(o.current=r),!r)return!0;var f=o.current||r;return function(e,t,r,n){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*n,i=r.target,l=t.contains(i),c=!1,u=a>0,s=0,d=0;do{var p=Es(e,i),f=p[0],g=p[1]-p[2]-o*f;(f||g)&&Ss(e,i)&&(s+=g,d+=f),i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(u&&(0===s||!1)||!u&&(0===d||!1))&&(c=!0),c}(f,t,e,"h"===f?c:u)}),[]),u=e.useCallback((function(e){var t=e;if(Ps.length&&Ps[Ps.length-1]===i){var n="deltaY"in t?Os(t):xs(t),o=r.current.filter((function(e){return e.name===t.type&&e.target===t.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,n)}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var a=(l.current.shards||[]).map(As).filter(Boolean).filter((function(e){return e.contains(t.target)}));(a.length>0?c(t,a[0]):!l.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),s=e.useCallback((function(e,t,n,o){var a={name:e,delta:t,target:n,should:o};r.current.push(a),setTimeout((function(){r.current=r.current.filter((function(e){return e!==a}))}),1)}),[]),d=e.useCallback((function(e){n.current=xs(e),o.current=void 0}),[]),p=e.useCallback((function(e){s(e.type,Os(e),e.target,c(e,t.lockRef.current))}),[]),f=e.useCallback((function(e){s(e.type,xs(e),e.target,c(e,t.lockRef.current))}),[]);e.useEffect((function(){return Ps.push(i),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",u,ys),document.addEventListener("touchmove",u,ys),document.addEventListener("touchstart",d,ys),function(){Ps=Ps.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,ys),document.removeEventListener("touchmove",u,ys),document.removeEventListener("touchstart",d,ys)}}),[]);var g=t.removeScrollBar,b=t.inert;return e.createElement(e.Fragment,null,b?e.createElement(i,{styles:Cs(a)}):null,g?e.createElement(bs,{gapMode:"margin"}):null)},ns.useMedium($s),is);var $s,Is=e.forwardRef((function(t,r){return e.createElement(as,Zu({},t,{ref:r,sideCar:js}))}));Is.classNames=as.classNames;const Rs=Is;var Ts=new WeakMap,Ds=new WeakMap,Ms={},Ls=0,_s=function(e){return e&&(e.host||_s(e.parentNode))},Bs=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),function(e,t,r,n){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=_s(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Ms[r]||(Ms[r]=new WeakMap);var a=Ms[r],i=[],l=new Set,c=new Set(o),u=function(e){e&&!l.has(e)&&(l.add(e),u(e.parentNode))};o.forEach(u);var s=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))s(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,c=(Ts.get(e)||0)+1,u=(a.get(e)||0)+1;Ts.set(e,c),a.set(e,u),i.push(e),1===c&&o&&Ds.set(e,!0),1===u&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return s(t),l.clear(),Ls++,function(){i.forEach((function(e){var t=Ts.get(e)-1,o=a.get(e)-1;Ts.set(e,t),a.set(e,o),t||(Ds.has(e)||e.removeAttribute(n),Ds.delete(e)),o||e.removeAttribute(r)})),--Ls||(Ts=new WeakMap,Ts=new WeakMap,Ds=new WeakMap,Ms={})}}(n,o,r,"aria-hidden")):function(){return null}};const Ns="Dialog",[zs,Vs]=function(t,r=[]){let n=[];const o=()=>{const r=n.map((t=>(0,e.createContext)(t)));return function(n){const o=(null==n?void 0:n[t])||r;return(0,e.useMemo)((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return o.scopeName=t,[function(r,o){const a=(0,e.createContext)(o),i=n.length;function l(r){const{scope:n,children:o,...l}=r,c=(null==n?void 0:n[t][i])||a,u=(0,e.useMemo)((()=>l),Object.values(l));return(0,e.createElement)(c.Provider,{value:u},o)}return n=[...n,o],l.displayName=r+"Provider",[l,function(n,l){const c=(null==l?void 0:l[t][i])||a,u=(0,e.useContext)(c);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},fu(o,...r)]}(Ns),[Fs,Ws]=zs(Ns),Us="DialogPortal",[Hs,qs]=zs(Us,{forceMount:void 0}),Gs="DialogOverlay",Ys=(0,e.forwardRef)(((t,r)=>{const n=qs(Gs,t.__scopeDialog),{forceMount:o=n.forceMount,...a}=t,i=Ws(Gs,t.__scopeDialog);return i.modal?(0,e.createElement)(Hu,{present:o||i.open},(0,e.createElement)(Zs,uu({},a,{ref:r}))):null})),Zs=(0,e.forwardRef)(((t,r)=>{const{__scopeDialog:n,...o}=t,a=Ws(Gs,n);return(0,e.createElement)(Rs,{as:Eu,allowPinchZoom:!0,shards:[a.contentRef]},(0,e.createElement)(ku.div,uu({"data-state":od(a.open)},o,{ref:r,style:{pointerEvents:"auto",...o.style}})))})),Xs="DialogContent",Ks=(0,e.forwardRef)(((t,r)=>{const n=qs(Xs,t.__scopeDialog),{forceMount:o=n.forceMount,...a}=t,i=Ws(Xs,t.__scopeDialog);return(0,e.createElement)(Hu,{present:o||i.open},i.modal?(0,e.createElement)(Js,uu({},a,{ref:r})):(0,e.createElement)(Qs,uu({},a,{ref:r})))})),Js=(0,e.forwardRef)(((t,r)=>{const n=Ws(Xs,t.__scopeDialog),o=(0,e.useRef)(null),a=pu(r,n.contentRef,o);return(0,e.useEffect)((()=>{const e=o.current;if(e)return Bs(e)}),[]),(0,e.createElement)(ed,uu({},t,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:su(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:su(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()})),onFocusOutside:su(t.onFocusOutside,(e=>e.preventDefault()))}))})),Qs=(0,e.forwardRef)(((t,r)=>{const n=Ws(Xs,t.__scopeDialog),o=(0,e.useRef)(!1),a=(0,e.useRef)(!1);return(0,e.createElement)(ed,uu({},t,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var r,i;null===(r=t.onCloseAutoFocus)||void 0===r||r.call(t,e),e.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),e.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:e=>{var r,i;null===(r=t.onInteractOutside)||void 0===r||r.call(t,e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const l=e.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}}))})),ed=(0,e.forwardRef)(((t,r)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,...l}=t,c=Ws(Xs,n),u=pu(r,(0,e.useRef)(null));return(0,e.useEffect)((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:Yu()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:Yu()),Gu++,()=>{1===Gu&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Gu--}}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(_u,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i},(0,e.createElement)(Iu,uu({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":od(c.open)},l,{ref:u,onDismiss:()=>c.onOpenChange(!1)}))),!1)})),td="DialogTitle",rd=(0,e.forwardRef)(((t,r)=>{const{__scopeDialog:n,...o}=t,a=Ws(td,n);return(0,e.createElement)(ku.h2,uu({id:a.titleId},o,{ref:r}))})),nd=(0,e.forwardRef)(((t,r)=>{const{__scopeDialog:n,...o}=t,a=Ws("DialogClose",n);return(0,e.createElement)(ku.button,uu({type:"button"},o,{ref:r,onClick:su(t.onClick,(()=>a.onOpenChange(!1)))}))}));function od(e){return e?"open":"closed"}const[ad,id]=function(t,r){const n=(0,e.createContext)(r);function o(t){const{children:r,...o}=t,a=(0,e.useMemo)((()=>o),Object.values(o));return(0,e.createElement)(n.Provider,{value:a},r)}return o.displayName=t+"Provider",[o,function(o){const a=(0,e.useContext)(n);if(a)return a;if(void 0!==r)return r;throw new Error(`\`${o}\` must be used within \`${t}\``)}]}("DialogTitleWarning",{contentName:Xs,titleName:td,docsSlug:"dialog"}),ld=t=>{const{__scopeDialog:r,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=t,c=(0,e.useRef)(null),u=(0,e.useRef)(null),[s=!1,d]=hu({prop:o,defaultProp:a,onChange:i});return(0,e.createElement)(Fs,{scope:r,triggerRef:c,contentRef:u,contentId:mu(),titleId:mu(),descriptionId:mu(),open:s,onOpenChange:d,onOpenToggle:(0,e.useCallback)((()=>d((e=>!e))),[d]),modal:l},n)},cd=t=>{const{__scopeDialog:r,forceMount:n,children:o,container:a}=t,i=Ws(Us,r);return(0,e.createElement)(Hs,{scope:r,forceMount:n},e.Children.map(o,(t=>(0,e.createElement)(Hu,{present:n||i.open},(0,e.createElement)(Uu,{asChild:!0,container:a},t)))))},ud=Ys,sd=Ks,dd=rd,pd=nd;var fd=e.createContext({}),gd=({open:t,defaultOpen:r,onOpenChange:n,...o})=>{let[a,i]=hu({prop:t,defaultProp:r,onChange:n});return e.createElement(fd.Provider,{value:{open:a}},e.createElement(ld,{open:a,onOpenChange:e=>i(e),...o}))};gd.displayName="DialogRoot";var bd=({forceMount:t=!0,...r})=>e.createElement(cd,{forceMount:t,...r});bd.displayName="DialogPortal";var vd={alpha0:"rgba(0, 0, 0, .50)",alpha20:"rgba(0, 0, 0, .45)",alpha40:"rgba(0, 0, 0, .40)",alpha60:"rgba(0, 0, 0, .35)",alpha80:"rgba(0, 0, 0, .30)",alpha100:"rgba(0, 0, 0, .25)",alpha200:"rgba(0, 0, 0, .20)",alpha300:"rgba(0, 0, 0, .15)",alpha400:"rgba(0, 0, 0, .10)",alpha500:"rgba(0, 0, 0, .05)",alpha50:"rgba(0, 0, 0, .50)",alpha25:"rgba(0, 0, 0, .05)",red600:"rgba(253, 231, 231, 1)",red500:"rgba(249, 221, 219, 1)",red400:"rgba(242, 180, 171, 1)",red300:"rgba(229, 138, 124, 1)",red200:"rgba(211, 95, 79, 1)",red100:"rgba(234, 0, 23, 1)",red80:"rgba(190, 44, 37, 1)",red60:"rgba(142, 31, 27, 1)",red40:"rgba(99, 16, 14, 1)",spark600:"rgba(255, 246, 241, 1)",spark500:"rgba(255, 222, 204, 1)",spark400:"rgba(255, 191, 173, 1)",spark300:"rgba(254, 140, 108, 1)",spark200:"rgba(254, 114, 76, 1)",spark100:"rgba(254, 78, 29, 1)",spark80:"rgba(219, 48, 1, 1)",spark60:"rgba(179, 40, 1, 1)",spark40:"rgba(80, 18, 0, 1)",orange600:"rgba(255, 239, 224, 1)",orange500:"rgba(251, 225, 195, 1)",orange400:"rgba(249, 194, 150, 1)",orange300:"rgba(241, 162, 106, 1)",orange200:"rgba(230, 130, 61, 1)",orange100:"rgba(243, 117, 14, 1)",orange80:"rgba(216, 97, 0, 1)",orange60:"rgba(166, 74, 0, 1)",orange40:"rgba(118, 53, 2, 1)",mustard600:"rgba(251, 241, 221, 1)",mustard500:"rgba(254, 227, 156, 1)",mustard400:"rgba(247, 202, 111, 1)",mustard300:"rgba(235, 179, 71, 1)",mustard200:"rgba(217, 158, 32, 1)",mustard100:"rgba(226, 163, 31, 1)",mustard80:"rgba(193, 139, 0, 1)",mustard60:"rgba(145, 104, 2, 1)",mustard40:"rgba(100, 72, 1, 1)",gold600:"rgba(250, 240, 227, 1)",gold500:"rgba(243, 228, 205, 1)",gold400:"rgba(232, 203, 164, 1)",gold300:"rgba(222, 181, 126, 1)",gold200:"rgba(211, 158, 76, 1)",gold100:"rgba(229, 160, 56, 1)",gold80:"rgba(194, 136, 47, 1)",gold60:"rgba(158, 97, 5, 1)",gold40:"rgba(109, 69, 8, 1)",yellow600:"rgba(253, 250, 219, 1)",yellow100:"rgba(255, 236, 68, 1)",green600:"rgba(238, 249, 234, 1)",green500:"rgba(213, 237, 202, 1)",green400:"rgba(178, 214, 160, 1)",green300:"rgba(145, 192, 120, 1)",green200:"rgba(110, 169, 81, 1)",green100:"rgba(54, 167, 92, 1)",green80:"rgba(73, 147, 39, 1)",green60:"rgba(56, 113, 30, 1)",green40:"rgba(40, 81, 21, 1)",teal600:"rgba(234, 251, 254, 1)",teal500:"rgba(199, 234, 239, 1)",teal400:"rgba(159, 203, 211, 1)",teal300:"rgba(118, 172, 182, 1)",teal200:"rgba(74, 142, 155, 1)",teal100:"rgba(3, 175, 202, 1)",teal80:"rgba(15, 113, 128, 1)",teal60:"rgba(15, 84, 95, 1)",teal40:"rgba(11, 57, 64, 1)",blue600:"rgba(231, 240, 254, 1)",blue500:"rgba(211, 231, 250, 1)",blue400:"rgba(172, 197, 231, 1)",blue300:"rgba(132, 164, 214, 1)",blue200:"rgba(87, 132, 197, 1)",blue100:"rgba(22, 109, 252, 1)",blue80:"rgba(19, 102, 179, 1)",blue60:"rgba(15, 75, 132, 1)",blue40:"rgba(10, 50, 88, 1)",purple600:"rgba(250, 238, 249, 1)",purple500:"rgba(248, 221, 244, 1)",purple400:"rgba(234, 179, 223, 1)",purple300:"rgba(217, 137, 201, 1)",purple200:"rgba(201, 92, 182, 1)",purple100:"rgba(209, 56, 191, 1)",purple80:"rgba(182, 35, 161, 1)",purple60:"rgba(136, 27, 121, 1)",purple40:"rgba(93, 18, 84, 1)",pink600:"rgba(252, 233, 239, 1)",pink500:"rgba(249, 222, 231, 1)",pink400:"rgba(239, 180, 191, 1)",pink300:"rgba(228, 138, 155, 1)",pink200:"rgba(213, 94, 119, 1)",pink100:"rgba(255, 79, 131, 1)",pink80:"rgba(195, 39, 85, 1)",pink60:"rgba(149, 25, 64, 1)",pink40:"rgba(105, 11, 44, 1)",gray700:"rgba(255, 255, 255, 1)",gray600:"rgba(247, 247, 247, 1)",gray500:"rgba(240, 240, 240, 1)",gray400:"rgba(233, 233, 233, 1)",gray300:"rgba(212, 212, 212, 1)",gray200:"rgba(170, 170, 170, 1)",gray100:"rgba(115, 115, 115, 1)",gray80:"rgba(89, 89, 89, 1)",gray60:"rgba(73, 73, 73, 1)",gray40:"rgba(42, 42, 42, 1)",gray20:"rgba(17, 17, 17, 1)",gray0:"rgba(0, 0, 0, 1)"},md={"alpha0-static":"rgba(0, 0, 0, .65)","alpha20-static":"rgba(0, 0, 0, .45)","alpha40-static":"rgba(0, 0, 0, .40)","alpha60-static":"rgba(0, 0, 0, .35)","alpha80-static":"rgba(0, 0, 0, .30)","alpha100-static":"rgba(0, 0, 0, .25)","alpha200-static":"rgba(0, 0, 0, .20)","alpha300-static":"rgba(0, 0, 0, .15)","alpha400-static":"rgba(0, 0, 0, .10)","alpha500-static":"rgba(0, 0, 0, .05)","alpha50-static":"rgba(0, 0, 0, .50)","alpha25-static":"rgba(0, 0, 0, .05)","red600-static":"rgba(253, 231, 231, 1)","red500-static":"rgba(249, 221, 219, 1)","red400-static":"rgba(242, 180, 171, 1)","red300-static":"rgba(229, 138, 124, 1)","red200-static":"rgba(211, 95, 79, 1)","red100-static":"rgba(234, 0, 23, 1)","red80-static":"rgba(190, 44, 37, 1)","red60-static":"rgba(142, 31, 27, 1)","red40-static":"rgba(99, 16, 14, 1)","spark600-static":"rgba(255, 246, 241, 1)","spark500-static":"rgba(255, 222, 204, 1)","spark400-static":"rgba(255, 191, 173, 1)","spark300-static":"rgba(254, 140, 108, 1)","spark200-static":"rgba(254, 114, 76, 1)","spark100-static":"rgba(254, 78, 29, 1)","spark80-static":"rgba(219, 48, 1, 1)","spark60-static":"rgba(179, 40, 1, 1)","spark40-static":"rgba(80, 18, 0, 1)","orange600-static":"rgba(255, 239, 224, 1)","orange500-static":"rgba(251, 225, 195, 1)","orange400-static":"rgba(249, 194, 150, 1)","orange300-static":"rgba(241, 162, 106, 1)","orange200-static":"rgba(230, 130, 61, 1)","orange100-static":"rgba(243, 117, 14, 1)","orange80-static":"rgba(216, 97, 0, 1)","orange60-static":"rgba(166, 74, 0, 1)","orange40-static":"rgba(118, 53, 2, 1)","mustard600-static":"rgba(251, 241, 221, 1)","mustard500-static":"rgba(254, 227, 156, 1)","mustard400-static":"rgba(247, 202, 111, 1)","mustard300-static":"rgba(235, 179, 71, 1)","mustard200-static":"rgba(217, 158, 32, 1)","mustard100-static":"rgba(226, 163, 31, 1)","mustard80-static":"rgba(193, 139, 0, 1)","mustard60-static":"rgba(145, 104, 2, 1)","mustard40-static":"rgba(100, 72, 1, 1)","gold600-static":"rgba(250, 240, 227, 1)","gold500-static":"rgba(243, 228, 205, 1)","gold400-static":"rgba(232, 203, 164, 1)","gold300-static":"rgba(222, 181, 126, 1)","gold200-static":"rgba(211, 158, 76, 1)","gold100-static":"rgba(229, 160, 56, 1)","gold80-static":"rgba(194, 136, 47, 1)","gold60-static":"rgba(158, 97, 5, 1)","gold40-static":"rgba(109, 69, 8, 1)","yellow600-static":"rgba(253, 250, 219, 1)","yellow100-static":"rgba(255, 236, 68, 1)","green600-static":"rgba(238, 249, 234, 1)","green500-static":"rgba(213, 237, 202, 1)","green400-static":"rgba(178, 214, 160, 1)","green300-static":"rgba(145, 192, 120, 1)","green200-static":"rgba(110, 169, 81, 1)","green100-static":"rgba(54, 167, 92, 1)","green80-static":"rgba(73, 147, 39, 1)","green60-static":"rgba(56, 113, 30, 1)","green40-static":"rgba(40, 81, 21, 1)","teal600-static":"rgba(234, 251, 254, 1)","teal500-static":"rgba(199, 234, 239, 1)","teal400-static":"rgba(159, 203, 211, 1)","teal300-static":"rgba(118, 172, 182, 1)","teal200-static":"rgba(74, 142, 155, 1)","teal100-static":"rgba(3, 175, 202, 1)","teal80-static":"rgba(15, 113, 128, 1)","teal60-static":"rgba(15, 84, 95, 1)","teal40-static":"rgba(11, 57, 64, 1)","blue600-static":"rgba(231, 240, 254, 1)","blue500-static":"rgba(211, 231, 250, 1)","blue400-static":"rgba(172, 197, 231, 1)","blue300-static":"rgba(132, 164, 214, 1)","blue200-static":"rgba(87, 132, 197, 1)","blue100-static":"rgba(22, 109, 252, 1)","blue80-static":"rgba(19, 102, 179, 1)","blue60-static":"rgba(15, 75, 132, 1)","blue40-static":"rgba(10, 50, 88, 1)","purple600-static":"rgba(250, 238, 249, 1)","purple500-static":"rgba(248, 221, 244, 1)","purple400-static":"rgba(234, 179, 223, 1)","purple300-static":"rgba(217, 137, 201, 1)","purple200-static":"rgba(201, 92, 182, 1)","purple100-static":"rgba(209, 56, 191, 1)","purple80-static":"rgba(182, 35, 161, 1)","purple60-static":"rgba(136, 27, 121, 1)","purple40-static":"rgba(93, 18, 84, 1)","pink600-static":"rgba(252, 233, 239, 1)","pink500-static":"rgba(249, 222, 231, 1)","pink400-static":"rgba(239, 180, 191, 1)","pink300-static":"rgba(228, 138, 155, 1)","pink200-static":"rgba(213, 94, 119, 1)","pink100-static":"rgba(255, 79, 131, 1)","pink80-static":"rgba(195, 39, 85, 1)","pink60-static":"rgba(149, 25, 64, 1)","pink40-static":"rgba(105, 11, 44, 1)","gray700-static":"rgba(255, 255, 255, 1)","gray600-static":"rgba(247, 247, 247, 1)","gray500-static":"rgba(240, 240, 240, 1)","gray400-static":"rgba(233, 233, 233, 1)","gray300-static":"rgba(212, 212, 212, 1)","gray200-static":"rgba(170, 170, 170, 1)","gray100-static":"rgba(115, 115, 115, 1)","gray80-static":"rgba(89, 89, 89, 1)","gray60-static":"rgba(73, 73, 73, 1)","gray40-static":"rgba(42, 42, 42, 1)","gray20-static":"rgba(17, 17, 17, 1)","gray0-static":"rgba(0, 0, 0, 1)"},yd={errorContainer:"$red600",error:"$red200",warningContainer:"$orange600",warning:"$orange200",successContainer:"$green600",success:"$green80",signalContainer:"$blue600",signal:"$blue200","onMessage-subtle-hover":"$gray80","onMessage-subtle":"$gray60","onMessage-hover":"$gray80",onMessage:"$gray20",portal:"$gray700","onPortal-subtle-hover":"$gray100","onPortal-subtle":"$gray80","onPortal-hover":"$gray100",onPortal:"$gray20","onSurface-subtle-hover":"$gray100","onSurface-subtle":"$gray80","onSurface-hover":"$gray100",onSurface:"$gray20","surface-highest":"$gray700",surface:"$gray700","onBackground-subtle-hover":"$gray100","onBackground-subtle":"$gray80","onBackground-hover":"$gray100",onBackground:"$gray20","background-forSurfaces":"$gray600",background:"$gray700",accessible:"$gray80","outline-subtle":"$alpha500",outline:"$alpha400",subtle:"$gray300",faint:"$gray400",onDisabled:"$alpha80",disabled:"$alpha500","onCtaContainer-subtle-hover":"$gray80","onCtaContainer-subtle":"$gray60","onCtaContainer-hover":"$gray80",onCtaContainer:"$gray20",ctaContainer:"$blue600","onCta-hover":"$gray600-static",onCta:"$gray700-static","cta-hover":"$blue80",cta:"$blue100","onSecondary-subtle-hover":"$gray100","onSecondary-subtle":"$gray80","onSecondary-hover":"$gray100",onSecondary:"$gray20","secondary-hover":"$gray500",secondary:"$gray700","onPrimary-subtle-hover":"$gray200","onPrimary-subtle":"$gray300","onPrimary-hover":"$gray200",onPrimary:"$gray700","primary-hover":"$gray40",primary:"$gray20",opinions:"$spark100","opinions-hover":"$spark80",onOpinions:"$gray20-static","onOpinions-hover":"$alpha0-static",opinionsContainer:"$spark500",onOpinionsContainer:"$gray20","onOpinionsContainer-hover":"$alpha0"},hd="colors",wd="sizes",Sd="space",Ed={gap:Sd,gridGap:Sd,columnGap:Sd,gridColumnGap:Sd,rowGap:Sd,gridRowGap:Sd,inset:Sd,insetBlock:Sd,insetBlockEnd:Sd,insetBlockStart:Sd,insetInline:Sd,insetInlineEnd:Sd,insetInlineStart:Sd,margin:Sd,marginTop:Sd,marginRight:Sd,marginBottom:Sd,marginLeft:Sd,marginBlock:Sd,marginBlockEnd:Sd,marginBlockStart:Sd,marginInline:Sd,marginInlineEnd:Sd,marginInlineStart:Sd,padding:Sd,paddingTop:Sd,paddingRight:Sd,paddingBottom:Sd,paddingLeft:Sd,paddingBlock:Sd,paddingBlockEnd:Sd,paddingBlockStart:Sd,paddingInline:Sd,paddingInlineEnd:Sd,paddingInlineStart:Sd,top:Sd,right:Sd,bottom:Sd,left:Sd,scrollMargin:Sd,scrollMarginTop:Sd,scrollMarginRight:Sd,scrollMarginBottom:Sd,scrollMarginLeft:Sd,scrollMarginX:Sd,scrollMarginY:Sd,scrollMarginBlock:Sd,scrollMarginBlockEnd:Sd,scrollMarginBlockStart:Sd,scrollMarginInline:Sd,scrollMarginInlineEnd:Sd,scrollMarginInlineStart:Sd,scrollPadding:Sd,scrollPaddingTop:Sd,scrollPaddingRight:Sd,scrollPaddingBottom:Sd,scrollPaddingLeft:Sd,scrollPaddingX:Sd,scrollPaddingY:Sd,scrollPaddingBlock:Sd,scrollPaddingBlockEnd:Sd,scrollPaddingBlockStart:Sd,scrollPaddingInline:Sd,scrollPaddingInlineEnd:Sd,scrollPaddingInlineStart:Sd,fontSize:"fontSizes",background:hd,backgroundColor:hd,backgroundImage:hd,borderImage:hd,border:hd,borderBlock:hd,borderBlockEnd:hd,borderBlockStart:hd,borderBottom:hd,borderBottomColor:hd,borderColor:hd,borderInline:hd,borderInlineEnd:hd,borderInlineStart:hd,borderLeft:hd,borderLeftColor:hd,borderRight:hd,borderRightColor:hd,borderTop:hd,borderTopColor:hd,caretColor:hd,color:hd,columnRuleColor:hd,fill:hd,outline:hd,outlineColor:hd,stroke:hd,textDecorationColor:hd,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:wd,minBlockSize:wd,maxBlockSize:wd,inlineSize:wd,minInlineSize:wd,maxInlineSize:wd,width:wd,minWidth:wd,maxWidth:wd,height:wd,minHeight:wd,maxHeight:wd,flexBasis:wd,gridTemplateColumns:wd,gridTemplateRows:wd,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},xd=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,Od=()=>{const e=Object.create(null);return(t,r,...n)=>{const o=(e=>JSON.stringify(e,xd))(t);return o in e?e[o]:e[o]=r(t,...n)}},Ad=Symbol.for("sxs.internal"),Cd=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),kd=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Pd}=Object.prototype,jd=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),$d=/\s+(?![^()]*\))/,Id=e=>t=>e(..."string"==typeof t?String(t).split($d):[t]),Rd={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Id(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:Id(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:Id(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:Id(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:Id(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:Id(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},Td=/([\d.]+)([^]*)/,Dd=(e,t)=>e.length?e.reduce(((e,r)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e))),e)),[]):t,Md=(e,t)=>e in Ld&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,r,n,o)=>r+("stretch"===n?`-moz-available${o};${jd(e)}:${r}-webkit-fill-available`:`-moz-fit-content${o};${jd(e)}:${r}fit-content`)+o)):String(t),Ld={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},_d=e=>e?e+"-":"",Bd=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,n,o,a,i)=>"$"==a==!!o?e:(n||"--"==a?"calc(":"")+"var(--"+("$"===a?_d(t)+(i.includes("$")?"":_d(r))+i.replace(/\$/g,"-"):i)+")"+(n||"--"==a?"*"+(n||"")+(o||"1")+")":""))),Nd=/\s*,\s*(?![^()]*\))/,zd=Object.prototype.toString,Vd=(e,t,r,n,o)=>{let a,i,l;const c=(e,t,r)=>{let u,s;const d=e=>{for(u in e){const g=64===u.charCodeAt(0),b=g&&Array.isArray(e[u])?e[u]:[e[u]];for(s of b){const e=/[A-Z]/.test(f=u)?f:f.replace(/-[^]/g,(e=>e[1].toUpperCase())),b="object"==typeof s&&s&&s.toString===zd&&(!n.utils[e]||!t.length);if(e in n.utils&&!b){const t=n.utils[e];if(t!==i){i=t,d(t(s)),i=null;continue}}else if(e in Rd){const t=Rd[e];if(t!==l){l=t,d(t(s)),l=null;continue}}if(g&&(p=u.slice(1)in n.media?"@media "+n.media[u.slice(1)]:u,u=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,r,n,o,a)=>{const i=Td.test(t),l=.0625*(i?-1:1),[c,u]=i?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===i?"max-":"min-")+c+":"+("="!==r[0]&&1===r.length?u.replace(Td,((e,t,n)=>Number(t)+l*(">"===r?1:-1)+n)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+c+":"+(1===o.length?a.replace(Td,((e,t,r)=>Number(t)+l*(">"===o?-1:1)+r)):a):"")+")"}))),b){const e=g?r.concat(u):[...r],n=g?[...t]:Dd(t,u.split(Nd));void 0!==a&&o(Fd(...a)),a=void 0,c(s,n,e)}else void 0===a&&(a=[[],t,r]),u=g||36!==u.charCodeAt(0)?u:`--${_d(n.prefix)}${u.slice(1).replace(/\$/g,"-")}`,s=b?s:"number"==typeof s?s&&!(e in Wd)&&45!==u.charCodeAt(0)?String(s)+"px":String(s):Bd(Md(e,null==s?"":s),n.prefix,n.themeMap[e]),a[0].push(`${g?`${u} `:`${jd(u)}:`}${s}`)}}var p,f};d(e),void 0!==a&&o(Fd(...a)),a=void 0};c(e,t,r)},Fd=(e,t,r)=>`${r.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,Wd={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ud=e=>String.fromCharCode(e+(e>25?39:97)),Hd=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ud(t%52)+r;return Ud(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),qd=["themed","global","styled","onevar","resonevar","allvar","inline"],Gd=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},Yd=e=>{let t;const r=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((r,n)=>{const{cssText:o}=r;let a="";if(o.startsWith("--sxs"))return"";if(e[n-1]&&(a=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return r.cssRules.length?`${a}${o}`:""}return o})).join("")},n=()=>{if(t){const{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(const t in e)delete e[t]}const o=Object(e).styleSheets||[];for(const e of o)if(Gd(e)){for(let o=0,a=e.cssRules;a[o];++o){const i=Object(a[o]);if(1!==i.type)continue;const l=Object(a[o+1]);if(4!==l.type)continue;++o;const{cssText:c}=i;if(!c.startsWith("--sxs"))continue;const u=c.slice(14,-3).trim().split(/\s+/),s=qd[u[0]];s&&(t||(t={sheet:e,reset:n,rules:{},toString:r}),t.rules[s]={group:l,index:o,cache:new Set(u)})}if(t)break}if(!t){const o=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,o(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:(()=>{if(!e)return o("","text/css");const t=document.createElement("style"),r=void 0!==window.__webpack_nonce__?window.__webpack_nonce__:void 0!==window.nonce?window.nonce:null;return r&&t.setAttribute("nonce",r),(e.head||e).appendChild(t).sheet})(),rules:{},reset:n,toString:r}}const{sheet:a,rules:i}=t;for(let e=qd.length-1;e>=0;--e){const t=qd[e];if(!i[t]){const r=qd[e+1],n=i[r]?i[r].index:a.cssRules.length;a.insertRule("@media{}",n),a.insertRule(`--sxs{--sxs:${e}}`,n),i[t]={group:a.cssRules[n+1],index:n,cache:new Set([e])}}Zd(i[t])}};return n(),t},Zd=e=>{const t=e.group;let r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},Xd=Symbol(),Kd=Od(),Jd=(e,t)=>Kd(e,(()=>{const r=(r,n={})=>{let o={type:null,composers:new Set};for(const t of r)if(null!=t)if(t[Ad]){null==o.type&&(o.type=t[Ad].type);for(const e of t[Ad].composers)o.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==o.type&&(o.type=t):o.composers.add(Qd(t,e,n));return null==o.type&&(o.type="span"),o.composers.size||o.composers.add(["PJLV",{},[],[],{},[]]),ep(e,o,t,n)},n=(...e)=>r(e);return n.withConfig=e=>(...t)=>r(t,e),n})),Qd=({variants:e,compoundVariants:t,defaultVariants:r,...n},o,{componentId:a,displayName:i})=>{const l=a||Hd(n),c=i?"c-"+i:"c",u=`${_d(o.prefix)}${c}-${l}`,s=[],d=[],p=Object.create(null),f=[];for(const e in r)p[e]=String(r[e]);if("object"==typeof e&&e)for(const t in e){g=p,b=t,Pd.call(g,b)||(p[t]="undefined");const r=e[t];for(const e in r){const n={[t]:String(e)};"undefined"===String(e)&&f.push(t);const o=r[e],a=[n,o,!kd(o)];s.push(a)}}var g,b;if("object"==typeof t&&t)for(const e of t){let{css:t,...r}=e;t="object"==typeof t&&t||{};for(const e in r)r[e]=String(r[e]);const n=[r,t,!kd(t)];d.push(n)}return[u,n,s,d,p,f]},ep=(e,t,r,{shouldForwardStitchesProp:n})=>{const[o,a,i,l]=tp(t.composers),c="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;r<t[Xd].length;r++){const[n,o]=t[Xd][r];e.rules[n].apply(o)}return t[Xd]=[],null}return t[Xd]=[],t.rules={},qd.forEach((e=>t.rules[e]={apply:r=>t[Xd].push([e,r])})),t})(r):null,u=(c||r).rules,s=`.${o}${a.length>1?`:where(.${a.slice(1).join(".")})`:""}`,d=d=>{d="object"==typeof d&&d||np;const{...p}=d,f={};for(const e in i)if(e in d){n?.(e)||delete p[e];let t=d[e];"object"==typeof t&&t?f[e]={"@initial":i[e],...t}:(t=String(t),f[e]="undefined"!==t||l.has(e)?t:i[e])}else f[e]=i[e];const g=new Set([...a]);for(const[n,o,a,i]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),Vd(o,[`.${n}`],[],e,(e=>{u.styled.apply(e)})));const t=rp(a,f,e.media),l=rp(i,f,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,a,i]of o){const o=`${n}-${Hd(a)}-${t}`;g.add(o);const l=(i?r.rules.resonevar:r.rules.onevar).cache,c=i?u.resonevar:u.onevar;l.has(o)||(l.add(o),Vd(a,[`.${o}`],[],e,(e=>{c.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,a]of t){const t=`${n}-${Hd(a)}-${o}`;g.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),Vd(a,[`.${t}`],[],e,(e=>{u.allvar.apply(e)})))}}const b=p.css;if("object"==typeof b&&b){n?.("css")||delete p.css;const t=`${o}-i${Hd(b)}-css`;g.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),Vd(b,[`.${t}`],[],e,(e=>{u.inline.apply(e)})))}for(const e of String(d.className||"").trim().split(/\s+/))e&&g.add(e);const v=p.className=[...g].join(" ");return{type:t.type,className:v,selector:s,props:p,toString:()=>v,deferredInjector:c}};return Cd(d,{className:o,selector:s,[Ad]:t,toString:()=>(r.rules.styled.cache.has(o)||d(),o)})},tp=e=>{let t="";const r=[],n={},o=[];for(const[a,,,,i,l]of e){""===t&&(t=a),r.push(a),o.push(...l);for(const e in i){const t=i[e];(void 0===n[e]||"undefined"!==t||l.includes(t))&&(n[e]=t)}}return[t,r,n,new Set(o)]},rp=(e,t,r,n)=>{const o=[];e:for(let[a,i,l]of e){if(l)continue;let e,c=0,u=!1;for(e in a){const n=a[e];let o=t[e];if(o!==n){if("object"!=typeof o||!o)continue e;{let e,t,a=0;for(const i in o){if(n===String(o[i])){if("@initial"!==i){const e=i.slice(1);(t=t||[]).push(e in r?r[e]:i.replace(/^@media ?/,"")),u=!0}c+=a,e=!0}++a}if(t&&t.length&&(i={["@media "+t.join(", ")]:i}),!e)continue e}}}(o[c]=o[c]||[]).push([n?"cv":`${e}-${a[e]}`,i,u])}return o},np={},op=Od(),ap=(e,t)=>op(e,(()=>(...r)=>{const n=()=>{for(let n of r){n="object"==typeof n&&n||{};let r=Hd(n);if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}Vd(n,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return Cd(n,{toString:n})})),ip=Od(),lp=(e,t)=>ip(e,(()=>r=>{const n=`${_d(e.prefix)}k-${Hd(r)}`,o=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const o=[];Vd(r,[],[],e,(e=>o.push(e)));const a=`@keyframes ${n}{${o.join("")}}`;t.rules.global.apply(a)}return n};return Cd(o,{get name(){return o()},toString:o})})),cp=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+_d(this.prefix)+_d(this.scale)+this.token}toString(){return this.computedValue}},up=Od(),sp=(e,t)=>up(e,(()=>(r,n)=>{n="object"==typeof r&&r||Object(n);const o=`.${r=(r="string"==typeof r?r:"")||`${_d(e.prefix)}t-${Hd(n)}`}`,a={},i=[];for(const t in n){a[t]={};for(const r in n[t]){const o=`--${_d(e.prefix)}${t}-${r}`,l=Bd(String(n[t][r]),e.prefix,t);a[t][r]=new cp(r,l,t,e.prefix),i.push(`${o}:${l}`)}}const l=()=>{if(i.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const o=`${n===e.theme?":root,":""}.${r}{${i.join(";")}}`;t.rules.themed.apply(o)}return r};return{...a,get className(){return l()},selector:o,toString:l}})),dp=Od(),pp=Od(),fp="wpds",gp="767px",bp="900px",vp="1024px",mp="1280px",yp="1440px",hp=(t=>{const r=(e=>{let t=!1;const r=dp(e,(e=>{t=!0;const r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,a="object"==typeof e.theme&&e.theme||{},i={prefix:r,media:n,theme:a,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...Ed},utils:"object"==typeof e.utils&&e.utils||{}},l=Yd(o),c={css:Jd(i,l),globalCss:ap(i,l),keyframes:lp(i,l),createTheme:sp(i,l),reset(){l.reset(),c.theme.toString()},theme:{},sheet:l,config:i,prefix:r,getCssText:l.toString,toString:l.toString};return String(c.theme=c.createTheme(a)),c}));return t||r.reset(),r})(t);return r.styled=(({config:t,sheet:r})=>pp(t,(()=>{const n=Jd(t,r),o=(t,r=n,{displayName:o,shouldForwardStitchesProp:a}={})=>{const i=r(...t),l=i[Ad].type,c=a?.("as"),u=e.forwardRef(((t,r)=>{const n=t?.as&&!c?t?.as:l,{props:o,deferredInjector:a}=i(t);return c||delete o.as,o.ref=r,a?e.createElement(e.Fragment,null,e.createElement(n,o),e.createElement(a,null)):e.createElement(n,o)}));return u.className=i.className,u.displayName=o||`Styled.${l.displayName||l.name||l}`,u.selector=i.selector,u.toString=()=>i.selector,u[Ad]=i[Ad],u},a=(...e)=>o(e);return a.withConfig=e=>(...t)=>{const r=n.withConfig(e);return o(t,r,e)},a})))(r),r})({prefix:fp,theme:{colors:{...vd,...md,...yd},sizes:{100:"1rem",125:"1.25rem",150:"1.5rem",175:"1.75rem",200:"2rem",225:"2.25rem",250:"2.5rem",275:"2.75rem",300:"3rem",350:"3.5rem",400:"4rem",450:"4.5rem",500:"5rem","025":"0.25rem","050":"0.5rem","075":"0.75rem","087":"0.875rem"},space:{100:"1rem",125:"1.25rem",150:"1.5rem",175:"1.75rem",200:"2rem",225:"2.25rem",250:"2.5rem",275:"2.75rem",300:"3rem",350:"3.5rem",400:"4rem",450:"4.5rem",500:"5rem","025":"0.25rem","050":"0.5rem","075":"0.75rem"},radii:{100:"1rem",125:"1.25rem",150:"1.5rem","012":"0.125rem","025":"0.25rem","050":"0.5rem","075":"0.75rem",round:"9999px"},fonts:{headline:"Postoni, Postoni-fallback, serif",subhead:"Franklin, Franklin-fallback, sans-serif",body:"georgia, Times New Roman, serif",meta:"Franklin, Franklin-fallback, sans-serif",magazine:"PostoniDisplayMag, PostoniDisplayMag-fallback, serif"},fontSizes:{100:"1rem",112:"1.125rem",125:"1.25rem",150:"1.5rem",162:"1.625rem",175:"1.75rem",200:"2rem",225:"2.25rem",250:"2.5rem",275:"2.75rem",300:"3rem",350:"3.5rem",400:"4rem",450:"4.5rem",500:"5rem","075":"0.75rem","087":"0.875rem"},fontWeights:{light:300,regular:400,bold:700,ultra:800},shadows:{50:"0px 2px 0px 0px #D5D5D5",100:"0px 1px 2px 0px rgba(0, 0, 0, 0.15)",200:"0px 2px 4px 0px rgba(0, 0, 0, 0.15)",300:"0px 4px 8px 0px rgba(0, 0, 0, 0.15)",400:"0px 8px 16px 0px rgba(0, 0, 0, 0.15)",500:"0px 16px 32px 0px rgba(0, 0, 0, 0.15)"},zIndices:{offer:400,shell:300,ads:200,page:100},lineHeights:{100:1,110:1.1,125:1.25,150:1.5,160:1.6,175:1.75,200:2,240:2.4,headline:"$110",body:"$160",meta:"$125",subhead:"$meta"},transitions:{allFast:"all $fast $inOut",fast:"0.2s",normal:"0.3s",inOut:"cubic-bezier(.4, 0, .2, 1)"},borderStyles:{},borderWidths:{},letterSpacings:{}},media:{sm:`(max-width: ${gp})`,md:`(min-width: calc(${gp} + 1px)) and (max-width: ${bp})`,lg:`(min-width: calc(${bp} + 1px)) and (max-width: ${vp})`,xl:`(min-width: calc(${vp} + 1px)) and (max-width: ${mp})`,xxl:`(min-width: calc(${mp} + 1px)) and (max-width: ${yp})`,notSm:`(min-width: calc(${gp} + 1px))`,notMd:`(min-width: calc(${bp} + 1px))`,notLg:`(min-width: calc(${vp} + 1px))`,notXl:`(min-width: calc(${mp} + 1px))`,notXxl:`(min-width: calc(${yp} + 1px ))`,minSm:`(min-width: calc(${gp} + 1px))`,minMd:`(min-width: calc(${bp} + 1px))`,minLg:`(min-width: calc(${vp} + 1px))`,minXl:`(min-width: calc(${mp} + 1px))`,minXxl:`(min-width: calc(${yp} + 1px ))`,maxSm:`(max-width: ${gp})`,maxMd:`(max-width: ${bp})`,maxLg:`(max-width: ${vp})`,maxXl:`(max-width: ${mp})`,maxXxl:`(max-width: ${yp})`,reducedMotion:"(prefers-reduced-motion)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"},utils:{px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),my:e=>({marginTop:e,marginBottom:e}),mx:e=>({marginLeft:e,marginRight:e}),size:e=>({width:e,height:e})}}),{styled:wp,css:Sp,globalCss:Ep,keyframes:xp,getCssText:Op,theme:Ap,createTheme:Cp,config:kp,reset:Pp}=hp,jp=(kp.utils,Cp(`${fp}-dark.${fp}-dark`,{colors:{alpha0:"rgba(255, 255, 255, .50)",alpha20:"rgba(255, 255, 255, .45)",alpha40:"rgba(255, 255, 255, .40)",alpha60:"rgba(255, 255, 255, .35)",alpha80:"rgba(255, 255, 255, .30)",alpha100:"rgba(255, 255, 255, .25)",alpha200:"rgba(255, 255, 255, .20)",alpha300:"rgba(255, 255, 255, .15)",alpha400:"rgba(255, 255, 255, .10)",alpha500:"rgba(255, 255, 255, .05)",alpha50:"rgba(255, 255, 255, .20)",alpha25:"rgba(255, 255, 255, .05)",red600:"rgba(38, 31, 31, 1)",red500:"rgba(45, 39, 39, 1)",red400:"rgba(77, 58, 55, 1)",red300:"rgba(120, 72, 65, 1)",red200:"rgba(184, 83, 69, 1)",red100:"rgba(255, 54, 54, 1)",red80:"rgba(212, 114, 109, 1)",red60:"rgba(210, 165, 164, 1)",red40:"rgba(225, 208, 208, 1)",spark600:"rgba(43, 30, 26, 1)",spark500:"rgba(51, 39, 36, 1)",spark400:"rgba(77, 49, 42, 1)",spark300:"rgba(115, 68, 56, 1)",spark200:"rgba(153, 66, 41, 1)",spark100:"rgba(237, 74, 28, 1)",spark80:"rgba(178, 120, 104, 1)",spark60:"rgba(204, 175, 159, 1)",spark40:"rgba(229, 221, 217, 1)",orange600:"rgba(36, 31, 27, 1)",orange500:"rgba(43, 39, 34, 1)",orange400:"rgba(68, 53, 41, 1)",orange300:"rgba(97, 65, 43, 1)",orange200:"rgba(133, 75, 35, 1)",orange100:"rgba(150, 76, 15, 1)",orange80:"rgba(179, 81, 0, 1)",orange60:"rgba(192, 127, 74, 1)",orange40:"rgba(200, 174, 154, 1)",mustard600:"rgba(33, 32, 30, 1)",mustard500:"rgba(44, 39, 27, 1)",mustard400:"rgba(64, 52, 29, 1)",mustard300:"rgba(83, 64, 25, 1)",mustard200:"rgba(104, 75, 15, 1)",mustard100:"rgba(102, 76, 6, 1)",mustard80:"rgba(124, 90, 0, 1)",mustard60:"rgba(161, 125, 37, 1)",mustard40:"rgba(184, 171, 139, 1)",gold600:"rgba(31, 30, 28, 1)",gold500:"rgba(42, 39, 35, 1)",gold400:"rgba(60, 53, 43, 1)",gold300:"rgba(79, 65, 45, 1)",gold200:"rgba(102, 77, 37, 1)",gold100:"rgba(105, 70, 19, 1)",gold80:"rgba(128, 89, 31, 1)",gold60:"rgba(172, 121, 42, 1)",gold40:"rgba(187, 168, 140, 1)",yellow600:"rgba(27, 26, 23, 1)",yellow100:"rgba(40, 37, 11, 1)",green600:"rgba(30, 33, 30, 1)",green500:"rgba(36, 40, 34, 1)",green400:"rgba(49, 59, 44, 1)",green300:"rgba(59, 78, 48, 1)",green200:"rgba(65, 101, 48, 1)",green100:"rgba(34, 112, 60, 1)",green80:"rgba(62, 125, 33, 1)",green60:"rgba(113, 153, 94, 1)",green40:"rgba(168, 184, 160, 1)",teal600:"rgba(29, 33, 33, 1)",teal500:"rgba(36, 42, 43, 1)",teal400:"rgba(50, 64, 67, 1)",teal300:"rgba(61, 89, 94, 1)",teal200:"rgba(61, 118, 129, 1)",teal100:"rgba(2, 106, 122, 1)",teal80:"rgba(78, 150, 162, 1)",teal60:"rgba(148, 178, 183, 1)",teal40:"rgba(200, 210, 212, 1)",blue600:"rgba(31, 34, 38, 1)",blue500:"rgba(37, 41, 44, 1)",blue400:"rgba(55, 63, 73, 1)",blue300:"rgba(69, 86, 112, 1)",blue200:"rgba(74, 112, 168, 1)",blue100:"rgba(22, 109, 252, 1)",blue80:"rgba(88, 146, 201, 1)",blue60:"rgba(154, 179, 203, 1)",blue40:"rgba(205, 213, 221, 1)",purple600:"rgba(33, 29, 33, 1)",purple500:"rgba(43, 38, 42, 1)",purple400:"rgba(74, 56, 70, 1)",purple300:"rgba(112, 71, 103, 1)",purple200:"rgba(165, 75, 149, 1)",purple100:"rgba(198, 53, 181, 1)",purple80:"rgba(204, 100, 189, 1)",purple60:"rgba(204, 157, 198, 1)",purple40:"rgba(220, 204, 218, 1)",pink600:"rgba(36, 32, 33, 1)",pink500:"rgba(44, 39, 41, 1)",pink400:"rgba(76, 57, 61, 1)",pink300:"rgba(117, 71, 79, 1)",pink200:"rgba(175, 77, 98, 1)",pink100:"rgba(173, 54, 89, 1)",pink80:"rgba(213, 103, 136, 1)",pink60:"rgba(210, 157, 174, 1)",pink40:"rgba(223, 203, 210, 1)",gray700:"rgba(20, 20, 20, 1)",gray600:"rgba(26, 26, 26, 1)",gray500:"rgba(32, 32, 32, 1)",gray400:"rgba(37, 37, 37, 1)",gray300:"rgba(51, 51, 51, 1)",gray200:"rgba(79, 79, 79, 1)",gray100:"rgba(127, 127, 127, 1)",gray80:"rgba(161, 161, 161, 1)",gray60:"rgba(177, 177, 177, 1)",gray40:"rgba(222, 222, 222, 1)",gray20:"rgba(242, 242, 242, 1)",gray0:"rgba(255, 255, 255, 1)",...md,errorContainer:"$red600",error:"$red200",warningContainer:"$orange600",warning:"$orange200",successContainer:"$green600",success:"$green80",signalContainer:"$blue600",signal:"$blue200","onMessage-subtle-hover":"$gray80","onMessage-subtle":"$gray60","onMessage-hover":"$gray80",onMessage:"$gray20",portal:"$gray200","onPortal-subtle-hover":"$gray40","onPortal-subtle":"$gray20","onPortal-hover":"$gray40",onPortal:"$gray0","onSurface-subtle-hover":"$gray80","onSurface-subtle":"$gray60","onSurface-hover":"$gray80",onSurface:"$gray0","surface-highest":"$gray300",surface:"$gray500","onBackground-subtle-hover":"$gray100","onBackground-subtle":"$gray80","onBackground-hover":"$gray100",onBackground:"$gray0","background-forSurfaces":"$gray700",background:"$gray700",accessible:"$gray80","outline-subtle":"$alpha500",outline:"$alpha400",subtle:"$gray300",faint:"$gray400",onDisabled:"$alpha80",disabled:"$alpha500","onCtaContainer-subtle-hover":"$gray80","onCtaContainer-subtle":"$gray60","onCtaContainer-hover":"$gray80",onCtaContainer:"$gray0",ctaContainer:"$blue600","onCta-hover":"$gray600-static",onCta:"$gray700-static","cta-hover":"$blue300",cta:"$blue100","onSecondary-subtle-hover":"$gray100","onSecondary-subtle":"$gray80","onSecondary-hover":"$gray100",onSecondary:"$gray0","secondary-hover":"$gray500",secondary:"$gray700","onPrimary-subtle-hover":"$gray200","onPrimary-subtle":"$gray300","onPrimary-hover":"$gray200",onPrimary:"$gray700","primary-hover":"$gray40",primary:"$gray0",opinions:"$spark100","opinions-hover":"$spark80",onOpinions:"$gray20-static","onOpinions-hover":"$alpha0-static",opinionsContainer:"$spark500",onOpinionsContainer:"$gray20","onOpinionsContainer-hover":"$alpha0"}})),$p={get className(){return jp.className,`${fp}-dark`},selector:jp.selector,colors:jp.colors,toString:()=>(jp.toString(),`${fp}-dark`)};function Ip(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Rp(e,t){return Rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rp(e,t)}function Tp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rp(e,t)}function Dp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}Cp(`${fp}-light`,{colors:{...vd,...md,...yd}}),Ep({":root":{"--base":"16px",lineHeight:"$meta",$$screenSize:"unknown","@sm":{$$screenSize:"small"},"@md":{$$screenSize:"medium"},"@lg":{$$screenSize:"large"},"@xl":{$$screenSize:"xlarge"},"@xxl":{$$screenSize:"xxlarge"},"@minXxl":{$$screenSize:"infinity"}},"*":{boxSizing:"border-box","&:focus-visible":{outline:"1px auto Highlight","@media screen and (-webkit-min-device-pixel-ratio: 0)":{outline:"1px auto -webkit-focus-ring-color"}}},html:{"-webkit-font-smoothing":"antialiased",textRendering:"optimizeLegibility",textSizeAdjust:"100%"},body:{margin:0,fontFamily:"$meta",overflowX:"hidden"},"@font-face":[{fontFamily:"Postoni",fontWeight:700,fontDisplay:"swap",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniWide-Bold.woff2)"},{fontFamily:"Postoni",fontWeight:300,fontDisplay:"swap",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniWide-Regular.woff2)"},{fontFamily:"Franklin-fallback",fontWeight:300,src:"local('Arial')",sizeAdjust:"94.00%",ascentOverride:"102.13%",descentOverride:"25.53%",lineGapOverride:"21.28%"},{fontFamily:"Franklin-fallback",fontWeight:700,src:"local('Arial Bold')",sizeAdjust:"96.04%",ascentOverride:"99.96%",descentOverride:"24.99%",lineGapOverride:"20.82%"},{fontFamily:"Postoni-fallback",fontWeight:300,src:"local(garamond)",sizeAdjust:"100%",ascentOverride:"normal",descentOverride:"normal",lineGapOverride:"normal"},{fontFamily:"Postoni-fallback",src:"local(garamond)",sizeAdjust:"100%",ascentOverride:"normal",descentOverride:"normal",lineGapOverride:"normal"},{fontFamily:"PostoniDisplayMag-fallback",src:"local(garamond)",sizeAdjust:"200%",ascentOverride:"99.96%",descentOverride:"24.99%",lineGapOverride:"20.82%"},{fontFamily:"Franklin",fontWeight:700,fontDisplay:"swap",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/ITC_Franklin-Bold.woff2)"},{fontFamily:"Franklin",fontWeight:300,fontDisplay:"swap",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/ITC_Franklin-Light.woff2)"},{fontFamily:"PostoniDisplayMag",fontWeight:800,fontDisplay:"swap",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniDisplayMag-Ultra.woff2)"},{fontFamily:"PostoniDisplayMag",fontWeight:800,fontDisplay:"swap",fontStyle:"italic",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniDisplayMag-Ultra_Italic.woff2)"}]}),Ep({"@dark":{...Object.keys($p.colors).reduce(((e,t)=>{let r=$p.colors[t],n="$"===r.value.substring(0,1)?`$colors${r.value}`:r.value;return{[r.variable]:n,...e}}),{})}});const Mp=r().createContext(null);var Lp=function(e){return e.scrollTop},_p="unmounted",Bp="exited",Np="entering",zp="entered",Vp="exiting",Fp=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=Bp,n.appearStatus=Np):o=zp:o=t.unmountOnExit||t.mountOnEnter?_p:Bp,n.state={status:o},n.nextCallback=null,n}Tp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===_p?{status:Bp}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Np&&r!==zp&&(t=Np):r!==Np&&r!==zp||(t=Vp)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Np){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Su().findDOMNode(this);r&&Lp(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bp&&this.setState({status:_p})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Su().findDOMNode(this),n],a=o[0],i=o[1],l=this.getTimeouts(),c=n?l.appear:l.enter;e||r?(this.props.onEnter(a,i),this.safeSetState({status:Np},(function(){t.props.onEntering(a,i),t.onTransitionEnd(c,(function(){t.safeSetState({status:zp},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:zp},(function(){t.props.onEntered(a)}))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Su().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:Vp},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Bp},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Bp},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Su().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===_p)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Ip(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r().createElement(Mp.Provider,{value:null},"function"==typeof n?n(e,o):r().cloneElement(r().Children.only(n),o))},t}(r().Component);function Wp(){}Fp.contextType=Mp,Fp.propTypes={},Fp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wp,onEntering:Wp,onEntered:Wp,onExit:Wp,onExiting:Wp,onExited:Wp},Fp.UNMOUNTED=_p,Fp.EXITED=Bp,Fp.ENTERING=Np,Fp.ENTERED=zp,Fp.EXITING=Vp;const Up=Fp;var Hp=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=Dp(r.className,n):r.setAttribute("class",Dp(r.className&&r.className.baseVal||"",n)));var r,n}))},qp=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],a=n[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],a=n[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],a=n[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}Tp(t,e);var n=t.prototype;return n.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&Lp(e),n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n}))}(e,n))},n.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,a=r.done;this.appliedClasses[t]={},n&&Hp(e,n),o&&Hp(e,o),a&&Hp(e,a)},n.render=function(){var e=this.props,t=(e.classNames,Ip(e,["classNames"]));return r().createElement(Up,uu({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(r().Component);qp.defaultProps={classNames:""},qp.propTypes={};const Gp=qp;var Yp=`opacity ${Ap.transitions.normal} ${Ap.transitions.inOut}`,Zp=wp(ud,{backgroundColor:Ap.colors.alpha50,inset:"0",position:"fixed","&.wpds-dialog-overlay-enter, &.wpds-dialog-overlay-appear":{opacity:0},"&.wpds-dialog-overlay-enter-active, &.wpds-dialog-overlay-appear-active":{opacity:1,transition:Yp,"@reducedMotion":{transition:"none"}},"&.wpds-dialog-overlay-exit":{opacity:1},"&.wpds-dialog-overlay-exit-active":{opacity:0,transition:Yp,"@reducedMotion":{transition:"none"}}}),Xp=e.forwardRef((({backgroundColor:t=Ap.colors.alpha50,children:r,css:n,zIndex:o=Ap.zIndices.offer,forceMount:a=!0,...i},l)=>{let{open:c}=e.useContext(fd),u=e.useRef(null);return e.useEffect((()=>{l&&("function"==typeof l?l(u.current):l.current=u.current)}),[l,u]),e.createElement(Gp,{mountOnEnter:!0,unmountOnExit:!0,appear:!0,nodeRef:u,in:c,timeout:{enter:300,exit:300},classNames:"wpds-dialog-overlay"},e.createElement(Zp,{css:{backgroundColor:t,zIndex:o,...n},forceMount:a,...i,ref:u},r))}));Xp.displayName="DialogOverlay";var Kp=wp(sd,{borderRadius:Ap.radii["025"],boxShadow:Ap.shadows[300],color:Ap.colors.primary,containerType:"inline-size",display:"grid",gridTemplateAreas:"'header' 'body' 'footer'",gridTemplateRows:"auto 1fr auto",padding:Ap.space[150],position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)","&.wpds-dialog-content-enter, &.wpds-dialog-content-appear":{transform:"translate(-50%, -47%)",opacity:0},"&.wpds-dialog-content-enter-active, &.wpds-dialog-content-appear-active":{transform:"translate(-50%, -50%)",opacity:1,transition:`\n      transform ${Ap.transitions.normal} ${Ap.transitions.inOut}, \n      opacity ${Ap.transitions.normal} ${Ap.transitions.inOut}\n     `,"@reducedMotion":{transition:"none"}},"&.wpds-dialog-content-exit":{transform:"translate(-50%, -50%)",opacity:1},"&.wpds-dialog-content-exit-active":{transform:"translate(-50%, -50%) scale(0.97)",opacity:0,transition:`\n      transform ${Ap.transitions.fast} ${Ap.transitions.inOut}, \n      opacity ${Ap.transitions.fast} ${Ap.transitions.inOut}\n    `,"@reducedMotion":{transition:"none"}}}),Jp=e.forwardRef((({backgroundColor:t=Ap.colors.secondary,children:r,css:n,forceMount:o=!0,width:a="500px",height:i="300px",zIndex:l=Ap.zIndices.offer,...c},u)=>{let{open:s}=e.useContext(fd),d=e.useRef(null);return e.useEffect((()=>{u&&("function"==typeof u?u(d.current):u.current=d.current)}),[u,d]),e.createElement(Gp,{mountOnEnter:!0,unmountOnExit:!0,appear:!0,nodeRef:d,in:s,timeout:{enter:300,exit:200},classNames:"wpds-dialog-content"},e.createElement(Kp,{css:{backgroundColor:t,width:a,height:i,zIndex:l,...n},forceMount:o,...c,ref:d},r))}));Jp.displayName="DialogContent";var Qp=wp("header",{gridArea:"header"}),ef=e.forwardRef((({children:t,...r},n)=>e.createElement(Qp,{...r,ref:n},t)));ef.displayName="DialogHeader";var tf=wp(dd,{color:Ap.colors.primary,fontFamily:Ap.fonts.meta,fontSize:Ap.fontSizes[125],fontWeight:Ap.fontWeights.bold,marginBlockStart:0,marginBlockEnd:Ap.space[150]}),rf=e.forwardRef((({children:t,...r},n)=>e.createElement(tf,{...r,ref:n},t)));rf.displayName="DialogTitle";var nf=wp("button",{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"fit-content",borderRadius:"$round",cursor:"pointer",border:"none",appearance:"none",px:"$100",fontFamily:"$meta",fontWeight:"$bold",fontSize:"$100",lineHeight:"$100",gap:"$050",transition:`background ${Ap.transitions.fast} ${Ap.transitions.inOut}`,"@reducedMotion":{transition:"none"},"&:disabled":{color:"$onDisabled",backgroundColor:"$colors$disabled",borderColor:"$colors$onDisabled","@hover":{"&:hover":{backgroundColor:"$colors$disabled"}}},variants:{variant:{primary:{background:Ap.colors.primary,color:Ap.colors.onPrimary,"@hover":{"&:hover":{background:Ap.colors.gray60}}},secondary:{background:Ap.colors.secondary,color:Ap.colors.onSecondary,border:"1px solid $outline","@hover":{"&:hover":{background:Ap.colors.gray400}}},cta:{background:Ap.colors.cta,color:Ap.colors.onCta,"@hover":{"&:hover":{background:Ap.colors.blue80}}}},density:{compact:{py:"$050"},default:{py:"$075"}},isOutline:{true:{background:"none",border:"1px solid"},false:{}},icon:{center:{py:"$050",px:"$050",fontSize:"0",lineHeight:"0",gap:"0",maxWidth:"fit-content"},left:{flexDirection:"row"},right:{flexDirection:"row-reverse"},none:{}}},defaultVariants:{variant:"secondary",density:"default",isOutline:!1,icon:"left"},compoundVariants:[{icon:"center",density:"default",css:{padding:"$075",fontSize:"0",lineHeight:"0"}},{isOutline:!0,variant:"primary",css:{background:"none",color:Ap.colors.primary,"@hover":{"&:hover":{background:Ap.colors.alpha25}}}},{isOutline:!0,variant:"secondary",css:{background:"none",color:Ap.colors.secondary,"@hover":{"&:hover":{background:Ap.colors.alpha25}}}},{isOutline:!0,variant:"cta",css:{background:"none",color:Ap.colors.cta,"@hover":{"&:hover":{background:Ap.colors.alpha25}}}}]}),of=wp("span",{position:"absolute",border:0,padding:0,whiteSpace:"nowrap",wordWrap:"normal",width:1,height:1,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",color:"currentColor","&:active":{clip:"auto",height:"auto",width:"auto",margin:0,overflow:"visible",position:"static"},"&:focus":{clip:"auto",height:"auto",width:"auto",margin:0,overflow:"visible",position:"static"}}),af=(0,e.forwardRef)((({children:t,size:n="100",fill:o="currentColor",label:a,className:i="",css:l,...c},u)=>{let s=e.Children.only(t),d=Sp({size:Ap.sizes[n]||n,fill:o});return r().createElement(r().Fragment,null,(0,e.cloneElement)(s,{"aria-hidden":!0,focusable:!1,role:"img",ref:u,fill:o,className:`${d({css:l,color:o})} ${i}`,...c}),a?r().createElement(of,null,a):null)}));af.displayName="Icon";var lf=wp(pd,{variants:{main:{true:{position:"absolute",insetBlockStart:Ap.space[100],insetInlineEnd:Ap.space[100]}}}}),cf=e.forwardRef((({...t},r)=>t.asChild?e.createElement(lf,{...t,ref:r}):e.createElement(lf,{...t,ref:r,asChild:!0,main:!0},e.createElement(nf,{variant:"primary",isOutline:!0,density:"compact",icon:"center",css:{border:"none"}},e.createElement(af,{label:"Close"},e.createElement(iu,null))))));cf.displayName="DialogClose";var uf=wp("div",{color:Ap.colors.primary,fontFamily:Ap.fonts.meta,fontSize:Ap.fontSizes[100],fontWeight:Ap.fontWeights.light,lineHeight:Ap.lineHeights[125],gridArea:"body",maxHeight:"100%",overflowY:"auto",variants:{isOverflow:{true:{marginInlineEnd:`calc(-1 * ${Ap.space[150]})`,paddingInlineEnd:Ap.space[125]}}}}),sf=e.forwardRef((({children:t,...r},n)=>{let o=e.useRef(null);e.useEffect((()=>{n&&("function"==typeof n?n(o.current):n.current=o.current)}),[n,o]);let[a,i]=e.useState(!1);return e.useEffect((()=>{if(!o.current)return;let e=o.current;i(e.scrollHeight>e.clientHeight)}),[t,i]),e.createElement(uf,{...r,ref:o,isOverflow:a},t)}));sf.displayName="DialogBody";var df=wp("footer",{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:Ap.space["050"],"@container (max-width: 350px)":{flexDirection:"column-reverse",alignItems:"stretch"},gridArea:"footer",marginBlockStart:Ap.space[150]}),pf=e.forwardRef((({children:t,...r},n)=>e.createElement(df,{...r,ref:n},t)));function ff(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ff(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ff(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.")}()}pf.displayName="DialogFooter";var vf="100%",mf="352px",yf="100%",hf=[{id:"compact",label:"Compact",width:"100%",height:"152px"},{id:"normal",label:"Normal",width:"100%",height:"352px"},{id:"large",label:"Large",width:"100%",height:"552px"}],wf=function(e){var t=String(null!=e?e:"").trim();if(!t)return yf;var r=t.match(/^(-?\d+(?:\.\d+)?)\s*%$/i);if(r){var n=Number(r[1]);return n<0?yf:"".concat(n,"%")}var o=t.match(/^(-?\d+(?:\.\d+)?)\s*px$/i);if(o){var a=Number(o[1]);return a<0?yf:"".concat(a,"px")}var i=t.match(/^(-?\d+(?:\.\d+)?)$/);if(i){var l=Number(i[1]);return l<0?yf:"".concat(l,"px")}return yf};function Sf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ef="@media (max-width: 480px)",xf=wp("pre",Sf({margin:"0 0 20px",padding:"14px 16px",borderRadius:"8px",border:"1px solid $subtle",backgroundColor:"$background-forSurfaces",color:"$onBackground-subtle",fontFamily:"$meta",fontSize:"$075",lineHeight:"$160",whiteSpace:"pre-wrap",wordBreak:"break-all",cursor:"pointer",userSelect:"text",maxHeight:"min(380px, 50vh)",overflow:"auto",transition:"color 0.15s","&:hover":{color:"$onBackground"}},Ef,{marginBottom:"16px",padding:"12px",maxHeight:"min(240px, 40vh)"})),Of=wp("div",{fontSize:"$075",fontWeight:"$bold",lineHeight:"$125",color:"$onBackground-subtle",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:"14px"}),Af=wp("div",Sf({backgroundColor:"$surface",border:"1px solid $subtle",borderRadius:"8px",overflow:"hidden",marginBottom:"20px"},Ef,{marginBottom:"16px"})),Cf=wp("div",Sf({display:"flex",alignItems:"center",padding:"12px 14px",gap:"12px",borderTop:"1px solid $subtle","&:first-child":{borderTop:"none"}},Ef,{flexWrap:"wrap",padding:"12px",gap:"10px"})),kf=wp("input",{appearance:"none",WebkitAppearance:"none",width:"17px",height:"17px",border:"2px solid $outline",borderRadius:"3px",cursor:"pointer",flexShrink:0,margin:0,transition:"border-color 0.15s, background 0.15s",backgroundColor:"transparent",position:"relative","&:checked":{backgroundColor:"$cta",borderColor:"$cta"},"&:checked::after":{content:"''",position:"absolute",left:"3px",top:"1px",width:"6px",height:"9px",border:"2px solid $onCta",borderTop:"none",borderLeft:"none",transform:"rotate(45deg)",boxSizing:"border-box"},"&:focus-visible":{outline:"2px solid $cta",outlineOffset:"2px"}}),Pf=wp("label",{fontSize:"$087",lineHeight:"$meta",color:"$onBackground",cursor:"pointer",userSelect:"none",flexShrink:0}),jf=wp("input",{width:"68px",boxSizing:"border-box",backgroundColor:"$background-forSurfaces",border:"1px solid $outline-subtle",borderRadius:"5px",color:"$onBackground",fontSize:"$087",padding:"5px 10px",textAlign:"center",outline:"none",transition:"border-color 0.15s, opacity 0.15s","&:focus":{borderColor:"$cta"},variants:{inactive:{true:{opacity:.38},false:{opacity:1}}},defaultVariants:{inactive:!1}}),$f=wp("div",Sf({display:"flex",alignItems:"center",gap:"8px",padding:"10px 14px",borderTop:"1px solid $subtle"},Ef,{flexDirection:"column",alignItems:"stretch",gap:"6px",padding:"10px 12px"})),If=wp("div",Sf({display:"flex",alignItems:"center",gap:"8px",flex:1,minWidth:0},Ef,{width:"100%"})),Rf=wp("span",Sf({fontSize:"$075",lineHeight:"$125",color:"$onBackground-subtle",fontWeight:500,flexShrink:0,marginRight:"2px"},Ef,{marginRight:0})),Tf=wp("button",Sf({all:"unset",boxSizing:"border-box",fontSize:"$075",lineHeight:"$125",color:"$onBackground-subtle",backgroundColor:"$background-forSurfaces",border:"1px solid $outline-subtle",borderRadius:"4px",padding:"4px 10px",cursor:"pointer",transition:"background 0.12s, border-color 0.12s, color 0.12s",userSelect:"none",whiteSpace:"nowrap",flex:1,textAlign:"center","&:hover":{backgroundColor:"$surface-highest",borderColor:"$outline",color:"$onBackground"},"&:focus-visible":{outline:"2px solid $cta",outlineOffset:"2px"},variants:{active:{true:{backgroundColor:"$ctaContainer",borderColor:"$cta",color:"$cta"},false:{}}},defaultVariants:{active:!1}},Ef,{padding:"4px 6px"})),Df=wp("div",Sf({display:"flex",alignItems:"center",gap:0,padding:"10px 14px",borderTop:"1px solid $subtle"},Ef,{flexDirection:"column",alignItems:"stretch",gap:"8px",padding:"10px 12px"})),Mf=wp("div",{display:"flex",alignItems:"center",backgroundColor:"$background-forSurfaces",border:"1px solid $outline-subtle",borderRadius:"5px",overflow:"hidden",flex:1,minWidth:0,transition:"border-color 0.15s","&:focus-within":{borderColor:"$cta"}}),Lf=wp("span",{fontSize:"$075",fontWeight:"$bold",lineHeight:"$125",color:"$onBackground-subtle",letterSpacing:"0.05em",padding:"0 8px",height:"34px",display:"flex",alignItems:"center",backgroundColor:"$surface",borderRight:"1px solid $outline-subtle",userSelect:"none",flexShrink:0}),_f=wp("input",{flex:1,minWidth:0,height:"34px",border:"none",backgroundColor:"transparent",color:"$onBackground",fontSize:"$087",padding:"0 8px",textAlign:"center",outline:"none",boxSizing:"border-box"}),Bf=wp("span",Sf({fontSize:"$112",lineHeight:"$125",color:"$onBackground-subtle",padding:"0 10px",flexShrink:0,userSelect:"none"},Ef,{display:"none"})),Nf=wp("div",Sf({height:"1px",backgroundColor:"$subtle",margin:"0 0 20px"},Ef,{marginBottom:"16px"})),zf=wp("button",{all:"unset",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",width:"100%",backgroundColor:"$cta",color:"$onCta",borderRadius:"20px",padding:"10px 22px",fontSize:"$087",fontWeight:"$bold",lineHeight:"$125",cursor:"pointer",letterSpacing:"0.01em",transition:"background 0.15s, transform 0.1s","& svg":{width:"16px",height:"16px",flexShrink:0},"&:hover":{color:"$onCta-hover"},"&:active":{transform:"scale(0.98)"},variants:{copied:{true:{backgroundColor:"$success"}}},defaultVariants:{copied:!1},"&:focus-visible":{outline:"2px solid $cta",outlineOffset:"2px"}}),Vf=wp("button",{all:"unset",boxSizing:"border-box",width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"$onBackground-subtle",transition:"background 0.15s, color 0.15s","&:hover":{backgroundColor:"$subtle",color:"$onBackground"},"& svg":{width:"18px",height:"18px"},"&:focus-visible":{outline:"2px solid $cta",outlineOffset:"2px"}}),Ff=wp("div",Sf({display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"20px"},Ef,{marginBottom:"16px"}));function Wf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Uf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wf(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.")}()}var Hf=function(e){e.ctrlKey||e.metaKey||["Backspace","Delete","Tab","ArrowLeft","ArrowRight","Home","End"].includes(e.key)||(":"!==e.key?/^\d$/.test(e.key)||e.preventDefault():(e.target.value.match(/:/g)||[]).length>=2&&e.preventDefault())},qf=function(t){var n=t.isOpen,o=t.onOpenChange,a=t.videoId,i=t.headline,l=t.embedConfig,c=t.initialStartSeconds,u=void 0===c?0:c,s=(0,e.useMemo)((function(){return function(){var e,t,r,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{domain:null!==(e=o.domain)&&void 0!==e?e:$,defaultWidth:wf(null!==(t=o.defaultWidth)&&void 0!==t?t:vf),defaultHeight:wf(null!==(r=o.defaultHeight)&&void 0!==r?r:mf),queryParams:null!==(n=o.queryParams)&&void 0!==n?n:{},getEmbedUrlOverride:o.getEmbedUrlOverride}}(l)}),[l]),d=Uf((0,e.useState)(s.defaultWidth),2),p=d[0],f=d[1],g=Uf((0,e.useState)(s.defaultHeight),2),b=g[0],v=g[1],m=Uf((0,e.useState)(!1),2),y=m[0],h=m[1],w=Uf((0,e.useState)("0:00"),2),S=w[0],E=w[1],x=Uf((0,e.useState)(!1),2),O=x[0],A=x[1],C=(0,e.useRef)(null);(0,e.useEffect)((function(){n&&(f(s.defaultWidth),v(s.defaultHeight),h(!1),E(function(e){var t=Math.floor(Number(e)||0),r=Math.floor(t/3600),n=Math.floor(t%3600/60),o=t%60;return r>0?"".concat(r,":").concat(String(n).padStart(2,"0"),":").concat(String(o).padStart(2,"0")):"".concat(n,":").concat(String(o).padStart(2,"0"))}(u)),A(!1))}),[n,u,s.defaultHeight,s.defaultWidth]),(0,e.useEffect)((function(){if(O){var e=setTimeout((function(){return A(!1)}),2500);return function(){return clearTimeout(e)}}}),[O]);var k,P,j,I=(0,e.useMemo)((function(){var e,t=(e=String(S||"").trim().split(":").map(Number)).some((function(e){return Number.isNaN(e)}))?0:3===e.length?3600*e[0]+60*e[1]+e[2]:2===e.length?60*e[0]+e[1]:e[0]||0;return function(e,t,r){var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){gf(e,t,r[t])}))}return e}({},e);return t&&r>0?n.t=String(Math.floor(r)):delete n.t,n}(s.queryParams,y,t)}),[s.queryParams,y,S]),R=(0,e.useMemo)((function(){return function(e){var t=e.width,r=e.height,n=e.title,o=e.getEmbedUrlOverride,a={videoId:e.videoId,domain:e.domain,queryParams:e.queryParams},i="function"==typeof o?o(a):function(e){var t=e.videoId,r=e.domain,n=e.queryParams;if(!t)return"";var o=null!=r?r:$,a=function(e){var t=Object.entries(e||{}).filter((function(e){var t=bf(e,2)[1];return null!=t&&""!==t}));if(!t.length)return"";var r=new URLSearchParams;return t.forEach((function(e){var t=bf(e,2),n=t[0],o=t[1];return r.append(n,String(o))})),"?".concat(r.toString())}(n);return"".concat(o).concat("/video/c/embed","/").concat(t).concat(a)}(a);if(!i)return"";var l=null!=t?t:vf,c=null!=r?r:mf,u=String(null!=n?n:"").trim()||"Washington Post video";return'<iframe src="'.concat(i,'" width="').concat(l,'" height="').concat(c,'" style="border: none;" allow="fullscreen; clipboard-write; clipboard-read" title="').concat(u,'"></iframe>')}({videoId:a,width:wf(p),height:wf(b),domain:s.domain,queryParams:I,title:i,getEmbedUrlOverride:s.getEmbedUrlOverride})}),[I,b,s.domain,s.getEmbedUrlOverride,a,i,p]),T=(0,e.useMemo)((function(){return hf.findIndex((function(e){return function(e,t,r){return wf(e)===r.width&&wf(t)===r.height}(p,b,e)}))}),[b,p]),D=(0,e.useCallback)((function(e){e.stopPropagation(),Uc(R,(function(){return A(!0)}))}),[R]),M=(0,e.useCallback)((function(e){e.stopPropagation()}),[]),L=(0,e.useCallback)((function(e){M(e),o(!1)}),[M,o]),_=(0,e.useCallback)((function(){!function(e){if(e){var t=document.createRange();t.selectNodeContents(e);var r=window.getSelection();r.removeAllRanges(),r.addRange(t)}}(C.current)}),[]),B=(0,e.useCallback)((function(e){h(e.target.checked)}),[]),N=(0,e.useCallback)((function(e){E(e.target.value),h(!0)}),[]),z=(0,e.useCallback)((function(e,t){f(e),v(t)}),[]),V=(0,e.useCallback)((function(){f(wf(p))}),[p]),F=(0,e.useCallback)((function(){v(wf(b))}),[b]);return r().createElement(gd,{open:n,onOpenChange:o},r().createElement(bd,null,r().createElement(Xp,{onClick:L,onPointerDown:L}),r().createElement(Jp,{onClick:M,onPointerDown:M,backgroundColor:"$background",height:"auto",css:(k={width:"min(640px, calc(100vw - 32px))",maxWidth:"min(640px, calc(100vw - 32px))",maxHeight:"calc(100vh - 48px)",overflowY:"auto",padding:"24px",boxShadow:"$500",borderRadius:"12px",color:"$onBackground",fontSize:"$087",lineHeight:"$meta"},P=Ef,j={width:"calc(100vw - 16px)",maxWidth:"calc(100vw - 16px)",maxHeight:"calc(100vh - 16px)",padding:"16px",borderRadius:"10px"},P in k?Object.defineProperty(k,P,{value:j,enumerable:!0,configurable:!0,writable:!0}):k[P]=j,k)},r().createElement(ef,{css:{padding:0,margin:0,border:"none",background:"transparent"}},r().createElement(Ff,null,r().createElement(rf,{css:{margin:0,fontSize:"$100",fontWeight:"$bold",lineHeight:"$125",color:"$onBackground"}},"Embed Video"),r().createElement(cf,{asChild:!0},r().createElement(Vf,{type:"button","aria-label":"Close embed dialog",onClick:M},r().createElement(Ai,{label:"Close"},r().createElement(iu,null)))))),r().createElement(sf,{css:{padding:0,margin:0,background:"transparent",border:"none",maxHeight:"none",overflowY:"visible"}},r().createElement(xf,{ref:C,"aria-label":"Embed code",onClick:_},R),r().createElement(Of,null,"Embed Options"),r().createElement(Af,null,r().createElement(Cf,null,r().createElement(kf,{id:"embed-start-at",type:"checkbox",checked:y,onChange:B,onClick:M}),r().createElement(Pf,{htmlFor:"embed-start-at"},"Start at"),r().createElement(jf,{id:"embed-start-time",type:"text",name:"embed-dialog-start-time",autoComplete:"off","aria-label":"Start time",spellCheck:!1,inactive:!y,value:S,onChange:N,onKeyDown:Hf,onClick:M})),r().createElement($f,null,r().createElement(Rf,null,"Preset"),r().createElement(If,null,hf.map((function(e,t){return r().createElement(Tf,{key:e.id,type:"button",active:T===t,onClick:function(t){t.stopPropagation(),z(e.width,e.height)}},e.label)})))),r().createElement(Df,null,r().createElement(Mf,null,r().createElement(Lf,null,"W"),r().createElement(_f,{id:"embed-width",type:"text",name:"embed-dialog-width",autoComplete:"off",spellCheck:!1,value:p,onChange:function(e){return f(e.target.value)},onBlur:V,onClick:M,"aria-label":"Width"})),r().createElement(Bf,{"aria-hidden":!0},"×"),r().createElement(Mf,null,r().createElement(Lf,null,"H"),r().createElement(_f,{id:"embed-height",type:"text",name:"embed-dialog-height",autoComplete:"off",spellCheck:!1,value:b,onChange:function(e){return v(e.target.value)},onBlur:F,onClick:M,"aria-label":"Height"})))),r().createElement(Nf,null)),r().createElement(pf,{css:{padding:0,margin:0,border:"none",background:"transparent"}},r().createElement(zf,{type:"button",copied:O,onClick:D,"aria-label":O?"Copied":"Copy embed code"},O?r().createElement(r().Fragment,null,r().createElement(Ai,{label:"Copied"},r().createElement(qc,null)),"Copied!"):r().createElement(r().Fragment,null,r().createElement(Ai,{label:"Copy"},r().createElement(cu,null)),"Copy"))))))};function Gf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gf(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.")}()}qf.displayName="EmbedDialog",qf.propTypes={isOpen:i().bool.isRequired,onOpenChange:i().func.isRequired,videoId:i().string,headline:i().string,initialStartSeconds:i().number,embedConfig:i().shape({domain:i().string,defaultWidth:i().oneOfType([i().string,i().number]),defaultHeight:i().oneOfType([i().string,i().number]),queryParams:i().object,getEmbedUrlOverride:i().func})};var Zf=function(t){var n=t.videoId,o=t.headline,a=t.embedConfig,i=t.setSelected,l=void 0===i?function(){}:i,c=t.isMiniPlayer,u=t.showEmbedButton,s=void 0===u||u,d=Yf((0,e.useState)(!1),2),p=d[0],f=d[1],g=Yf((0,e.useState)(0),2),b=g[0],v=g[1],m=Vn(),y=(0,e.useCallback)((function(e){var t;e.stopPropagation(),l(!0);var r=null==m||null===(t=m.current)||void 0===t?void 0:t.currentTime,n=Number.isFinite(r)?Math.floor(r):0;v(n),f(!0)}),[l,m]),h=(0,e.useCallback)((function(e){f(e),e||l(!1)}),[l]);return n?r().createElement(r().Fragment,null,s&&r().createElement(Ci,{"aria-label":"Embed video",icon:"center",className:"focus-visible-highlight",variant:"primary",css:{border:"none",background:"none","&:hover":{background:"none"},margin:"-$075",padding:"$075"},onClick:y},r().createElement(Ai,{fill:"white",color:"white",size:c?"100":"150"},r().createElement(ou,null))),r().createElement(qf,{isOpen:p,onOpenChange:h,videoId:n,headline:o,embedConfig:a,initialStartSeconds:b})):null};Zf.displayName="EmbedButton",Zf.propTypes={videoId:i().string,headline:i().string,embedConfig:i().shape({domain:i().string,defaultWidth:i().number,defaultHeight:i().number,queryParams:i().object,getEmbedUrlOverride:i().func}),setSelected:i().func,isMiniPlayer:i().bool.isRequired,showEmbedButton:i().bool};var Xf=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"m10 3.38.71.71L6.75 8l3.92 3.91-.71.71L5.33 8Z"})))),Kf=(0,e.memo)(Xf),Jf=Nr("div",{width:"100%",justifyContent:"center",flexDirection:"column",alignItems:"flex-start"}),Qf=Nr("span",{display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:999,color:"#FFF",cursor:"pointer",top:"$150",left:"15px",fontWeight:"$regular"}),eg=function(t){var n=t.isCarousel,o=t.closeCarousel,a=t.closeFullscreen,i=Vn(),l=(0,e.useCallback)((function(e){if(e.stopPropagation(),n)o();else{a();var t=new Event(W);i.current.dispatchEvent(t)}}),[n,o,a,i]);return r().createElement(Jf,{css:{display:"none","@sm":{display:"flex"}}},r().createElement(Qf,{onClick:l,"data-testid":"go-back-button"},r().createElement(Ai,{size:"100"},r().createElement(Kf,null))," ",r().createElement("small",{style:{fontWeight:"$regular"}},r().createElement("b",null,"Go back"))))};function tg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tg(e,t,r[t])}))}return e}eg.propTypes={isCarousel:i().bool,closeCarousel:i().func,closeFullscreen:i().func};var ng=function(e){var t=e.closeStickyPlayer,n=e.buttonStyles;return r().createElement(Ci,{"data-testid":"close-sticky-button",icon:"center",css:rg({border:"none",background:"none",padding:"0px","&:hover":{background:"none"}},n&&rg({},n)),onClick:function(e){e.stopPropagation(),t()}},r().createElement(Ai,{fill:"white",size:"150",label:"close-player"},r().createElement(iu,null)))};ng.displayName="CloseStickyPlayerButton",ng.propTypes={closeStickyPlayer:i().func,buttonStyles:i().object};var og=Nr("div",{display:"flex",justifyContent:"center",alignItems:"center",gap:"16px"}),ag=function(e){var t=e.children;return r().createElement(og,null,t)};ag.propTypes={children:i().node.isRequired};var ig=function(e){var t,n=e.config,o=e.isVertical,a=e.closeCarousel,i=e.setSelected,l=c(),u=l.videoData,s=l.videoId,d=In().isOpenSticky,p=Aa(),f=p.playerSize,g=p.setIsFullscreen,b=p.isFullscreen,v=p.closeFullscreen,m=p.showFullscreenBtn,y=p.closeStickyPlayer,h=n.isCarousel,w=n.allowShare,S=void 0===w||w,E=n.allowEmbed,x=void 0!==E&&E,O=n.embed,A=(null==(t=u)?void 0:t.canonical_url)?t.canonical_url.includes($)?t.canonical_url:"".concat($).concat(t.canonical_url):null,C=bc(f,b,o),k=b&&o||h,P=d&&!b,j=function(e){var t,r=null==e||null===(t=e.taxonomy)||void 0===t?void 0:t.tags;return null==r?void 0:r.some((function(e){return"excludevideoelement"===e.text}))}(u),I=!C&&A&&!j,R=I&&S,T=I&&x,D=(null==u?void 0:u._id)||s,M=(null==u?void 0:u.headlines.meta_title)||"",L=(null==u?void 0:u.headlines.basic)||"",_=M||L;return r().createElement(ic,{isMiniPlayer:C},r().createElement(lc,null,k&&r().createElement(eg,{isCarousel:h,closeFullscreen:v,closeCarousel:a}),r().createElement(lg,{showCloseStickyButton:P,closeStickyPlayer:y,showShareButton:R,showEmbedButton:T,canonicalUrl:A,headline:_,setSelected:i,isMiniPlayer:C,videoId:D,embedConfig:O}),r().createElement(cg,{isFullscreen:b,setIsFullscreen:g,isMiniPlayer:C,showFullscreenBtn:m})))};ig.propTypes={isVertical:i().bool,config:i().object,closeCarousel:i().func,setSelected:i().func};var lg=function(e){var t=e.showCloseStickyButton,n=e.closeStickyPlayer,o=e.showShareButton,a=e.showEmbedButton,i=e.canonicalUrl,l=e.headline,c=e.setSelected,u=e.isMiniPlayer,s=e.videoId,d=e.embedConfig;return r().createElement(ag,null,t?r().createElement(ng,{closeStickyPlayer:n}):r().createElement(r().Fragment,null,o&&r().createElement(ru,{headline:l,canonicalUrl:i,setSelected:c,isMiniPlayer:u}),r().createElement(Zf,{videoId:s,headline:l,embedConfig:d,setSelected:c,isMiniPlayer:u,showEmbedButton:a})))};lg.propTypes={showCloseStickyButton:i().bool,closeStickyPlayer:i().func,showShareButton:i().bool,showEmbedButton:i().bool,canonicalUrl:i().string,headline:i().string,setSelected:i().func,isMiniPlayer:i().bool,videoId:i().string,embedConfig:i().object};var cg=function(e){var t=e.isFullscreen,n=e.setIsFullscreen,o=e.isMiniPlayer,a=e.showFullscreenBtn;return r().createElement(ag,null,a&&r().createElement(zc,{isFullscreen:t,setIsFullscreen:n,isMiniPlayer:o}))};cg.propTypes={isFullscreen:i().bool,setIsFullscreen:i().func,isMiniPlayer:i().bool,showFullscreenBtn:i().bool};var ug=function(e){var t=e.config,n=e.isVertical,o=e.carouselEnd,a=e.isLive,i=e.closeCarousel,l=e.hasSubtitles;return r().createElement(xc,{config:t,isVertical:n,carouselEnd:o,TopControls:ig,LeftButtons:Tc,closeCarousel:i,hasSubtitles:l,isLive:a})};function sg(){return"undefined"!=typeof document&&(gn("wp_geo")||"").toUpperCase().endsWith("|EEA")}ug.propTypes={config:i().object,isVertical:i().bool,carouselEnd:i().bool,isLive:i().bool,closeCarousel:i().func,hasSubtitles:i().bool};function dg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fg(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var gg=function(){function e(t){var r,n,o,a,i,l,c,u,s=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pg(this,"handlePlay",(function(){var e=Date.now();s.startTime||(s.startTime=e),s.lastPlayTime=e,s.videoEnded=!1,s.contentType="ct"})),pg(this,"handleEnd",(function(){s.videoEnded=!0})),pg(this,"handleNewVideoData",(function(e){s.currentVideoData=e.detail})),pg(this,"handleAdStart",(function(){s.sawPreroll=!0,s.contentType="ad"})),this.player=t,this.startTime=null,this.lastPlayTime=null,this.videoEnded=!1,this.currentVideoData=t.videoData,this.firstVideoData=t.videoData,null===(n=t.videoElementRef)||void 0===n||null===(r=n.current)||void 0===r||r.addEventListener(N,this.handlePlay,{signal:this.player.signal}),null===(a=t.videoElementRef)||void 0===a||null===(o=a.current)||void 0===o||o.addEventListener(_,this.handleEnd,{signal:this.player.signal}),null===(l=t.videoElementRef)||void 0===l||null===(i=l.current)||void 0===i||i.addEventListener(H,this.handleNewVideoData,{signal:this.player.signal}),null===(u=t.videoElementRef)||void 0===u||null===(c=u.current)||void 0===c||c.addEventListener(G,this.handleAdStart,{signal:this.player.signal})}var t,r;return t=e,(r=[{key:"isReady",value:function(){var e;return!!(null===(e=this.player.videoElementRef)||void 0===e?void 0:e.current)&&!!this.currentVideoData}},{key:"getTitle",value:function(){var e,t;return(null===(t=this.currentVideoData)||void 0===t||null===(e=t.headlines)||void 0===e?void 0:e.basic)||""}},{key:"getVideoPath",value:function(){var e;return(null===(e=this.currentVideoData)||void 0===e?void 0:e._id)||""}},{key:"getContentType",value:function(){return this.contentType||"ct"}},{key:"getAdPosition",value:function(){return"a1"}},{key:"getTotalDuration",value:function(){var e;return(null===(e=this.currentVideoData)||void 0===e?void 0:e.duration)||0}},{key:"getState",value:function(){var e,t,r,n;return(null===(t=this.player.videoElementRef)||void 0===t||null===(e=t.current)||void 0===e?void 0:e.paused)?this.videoEnded?"s4":(null===(n=this.player.videoElementRef)||void 0===n||null===(r=n.current)||void 0===r?void 0:r.currentTime)?"s3":"s1":"s2"}},{key:"getCurrentPlayTime",value:function(){var e,t;return 1e3*(null===(t=this.player.videoElementRef)||void 0===t||null===(e=t.current)||void 0===e?void 0:e.currentTime)||0}},{key:"getBitrate",value:function(){}},{key:"getThumbnailPath",value:function(){var e,t;return(null===(t=this.currentVideoData)||void 0===t||null===(e=t.promo_image)||void 0===e?void 0:e.url)||""}},{key:"getPlayerType",value:function(){var e;return null===(e=this.currentVideoData)||void 0===e?void 0:e.type}},{key:"getViewStartTime",value:function(){return this.startTime?Date.now()-this.startTime:0}},{key:"getViewPlayTime",value:function(){var e,t;return!(null===(t=this.player.videoElementRef)||void 0===t||null===(e=t.current)||void 0===e?void 0:e.paused)&&this.lastPlayTime?Date.now()-this.player.lastPlayTime:0}},{key:"getViewAdPlayTime",value:function(){return this.sawPreroll&&this.lastPlayTime?Date.now()-this.startTime:0}},{key:"getStrategyName",value:function(){return"WPO"}},{key:"getAutoplayType",value:function(){return this.currentVideoData._id!==this.firstVideoData._id?"cont":this.player.autoplayType===se.AUTO?"auto":"man"}},{key:"getSections",value:function(){var e,t,r;return(null===(r=this.currentVideoData)||void 0===r||null===(t=r.taxonomy)||void 0===t||null===(e=t.sections)||void 0===e?void 0:e.map((function(e){return e.name})))||[]}}])&&dg(t.prototype,r),e}();function bg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}gg.verify=function(e){return"object"===(void 0===e?"undefined":fg(e))&&"object"===fg(null==e?void 0:e.videoData)&&"object"===fg(null==e?void 0:e.videoElementRef)},gg.propTypes={player:i().shape({videoData:i().object,videoElementRef:i().object,autoplayType:i().string})};var vg=function(){var t=Vn(),r=c().videoData,n=h().autoplayState,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bg(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.")}()}((0,e.useState)(!1),2),a=o[0],i=o[1],l=(0,e.useRef)(null),u=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e=new AbortController,t=e.signal;l.current=t;var r=document.createElement("script");return r.src="https://static.chartbeat.com/js/chartbeat_video.js",r.async=!0,r.id="chartbeat_video",u.current=r,function(){!function(e,t){var r=document.getElementById("chartbeat_video");r&&document.body.contains(r)&&document.body.removeChild(r),null==t||t.abort()}(0,e)}}),[]),(0,e.useEffect)((function(){sg();var e,o,c,s=function(e,t,r,n){return!e&&Le(t)&&!!r&&!!n&&!!window._sf_async_config&&!sg()}(a,r,l.current,u.current);s&&(e={videoData:r,videoElementRef:t,autoplayType:n.type,signal:l.current},o=gg,c=u.current,window._cbv_strategies=window._cbv_strategies||[],window._cbv_strategies.includes(o)||window._cbv_strategies.push(o),window._cbv=window._cbv||[],window._sf_async_config.autoDetect=!1,window._cbv.push(e),document.getElementById("chartbeat_video")||document.body.appendChild(c),i(!0))}),[null==r?void 0:r._id,l.current,u.current,n]),{isPlayerPushed:a}},mg=function(t){var n=t.config,o=t.style,a=void 0===o?{}:o,i=t.children,l=c().videoId,u=Bn().adSettings.current,s=u.videoAdZone,d=void 0===s?"wpni.video":s,p=u.preloadAd,f='{"prefetchAd":'.concat(p,"}"),g=lo().adWrapperRef,b=(0,e.useMemo)((function(){return Io(n,l)}),[]);return r().createElement(r().Fragment,null,b?r().createElement("wp-ad",{ref:g,id:"ad-wrapper-".concat(l),"data-adunitpath":"/701/".concat(d),"data-media-type":"video","data-media-player":"imaPlayer","data-testid":"ad-wrapper","data-org":"wapo","data-json":f,style:a,class:"orca-new"},i):r().createElement("div",{ref:g},i))};mg.propTypes={children:i().node,adSettings:i().object,style:i().shape({width:i().string,height:i().string,position:i().string}),config:i().object};const yg=mg;function hg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wg(e,t,r[t])}))}return e}function Eg(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var xg="reset",Og="mute",Ag="unmute",Cg="play",kg="pause",Pg="handleTimeChange",jg="skipReady",$g="setShowControls",Ig="setShowCountdown",Rg=function(e,t){var r=t.skipData;return Eg(Sg({},e),{remainingTime:Math.floor(r.remainingTime),skipCountdown:Math.floor(r.skipCountDown)+1,skipReady:r.skipReady})},Tg=function(e,t){var r=t.showControls;return Eg(Sg({},e),{showControls:r})},Dg=function(e,t){var r=t.showCountdown;return Eg(Sg({},e),{showCountdown:r})},Mg=function(e){return Eg(Sg({},e),{skipReady:!1,showCountdown:null})},Lg=function(e,t){var r,n=(wg(r={},xg,(function(e){return Eg(Sg({},e),{playing:!1,showControls:!1})})),wg(r,Og,(function(e){return Eg(Sg({},e),{adMuted:!0})})),wg(r,Ag,(function(e){return Eg(Sg({},e),{adMuted:!1})})),wg(r,Cg,(function(e){return Eg(Sg({},e),{playing:!0})})),wg(r,kg,(function(e){return Eg(Sg({},e),{playing:!1})})),wg(r,Pg,Rg),wg(r,jg,(function(e){return Eg(Sg({},e),{skipReady:!0})})),wg(r,$g,Tg),wg(r,Ig,Dg),wg(r,"afterSkip",Mg),r);if(n[t.type])return n[t.type](e,t);throw new Error("Unhandled action type: ".concat(t.type))},_g=(0,e.createContext)({adMuted:!1,playing:!1,remainingTime:0,showControls:!1,showCountdown:!1,skipCountdown:null,skipReady:!1,dispatchAdAction:function(){},mute:function(){},pause:function(){},play:function(){},unmute:function(){},visitAdvertiser:function(){}}),Bg=function(){return(0,e.useContext)(_g)},Ng=function(t){var n=t.isPreroll,o=t.transitionToVideo,a=void 0===o?function(){}:o,i=t.children,l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hg(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.")}()}((0,e.useReducer)(Lg,function(e){return{adMuted:!!e,playing:!1,remainingTime:0,showControls:!1,showCountdown:!1,skipCountdown:null,skipReady:!1}}(n)),2),u=l[0],s=l[1],d=c().uniqueId,p=Vo().sendAnalyticsEvent,f=In(),g=f.updateStickyContext,b=f.playingId,v=f.isStickyEnabled,m=f.isOpenSticky,y=lo().adWrapperRef,h=Aa().toggleMute,w=Bn(),S=w.adState,E=w.setAdState,x=Vn(),O=(0,e.useCallback)((function(){var e,t;null===(t=y.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.play(),p("video-ad-unpause"),v&&g({playingId:d}),s({type:Cg})}),[y,v,p,g,d]),A=(0,e.useCallback)((function(){var e,t;null===(t=y.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.pause(),p("video-ad-pause"),v&&!m&&b===d&&g({playingId:null}),s({type:kg})}),[y,m,v,b,p,g,d]),C=(0,e.useCallback)((function(){var e,t;null===(t=y.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.mute(),s({type:Og})}),[y]),k=(0,e.useCallback)((function(){var e,t;null===(t=y.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.unmute(),s({type:Ag})}),[y]),P=(0,e.useCallback)((function(){var e,t;null===(t=y.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.openClickThroughUrl()}),[y]),j=(0,e.useCallback)((function(){u.playing?A():O()}),[u.playing,A,O]),$=(0,e.useCallback)((function(){u.adMuted?k():C(),h()}),[u.adMuted,k,C,h]),I=(0,e.useCallback)((function(){var e=y.current,t=(void 0===e?{}:e).irisPlayer;return{irisPlayer:t,adData:ko(t)}}),[y]),R=(0,e.useCallback)((function(){s({type:xg})}),[s]),T=(0,e.useCallback)((function(){E(de.COMPLETE),R(),a()}),[R,E,a]),D=(0,e.useCallback)((function(){var e=I(),t=e.irisPlayer,r=e.adData;t.stop(),p("video-ad-skip",{avAdMeta:Co(r)}),T(),qn(x.current,"AD_SKIP")}),[I,p,T]);(0,e.useEffect)((function(){var e=y.current,t=(void 0===e?{}:e).irisPlayer;S===de.INIT&&(null==t?void 0:t.getCurrentAd())&&(t.reset(),E(de.COMPLETE),R())}),[S,y,R,E]),(0,e.useEffect)((function(){b&&b!==d&&u.playing&&A()}),[A,u.playing,b,d]);var M=(0,e.useMemo)((function(){return Eg(Sg({},u),{dispatchAdAction:s,mute:C,pause:A,play:O,unmute:k,visitAdvertiser:P,togglePlay:j,toggleAdMute:$,skip:D,getIrisPlayerData:I,reset:R})}),[u,C,A,O,k,P,j,$,D,I,R]);return r().createElement(_g.Provider,{value:M},i)};Ng.propTypes={adWrapperRef:i().object,isPreroll:i().bool,children:i().node,toggleMute:i().func,setAdState:i().func,transitionToVideo:i().func,adState:i().string};var zg=Nr(Sl,{width:"100%"}),Vg=Nr(zg,{height:"100%",position:"absolute",variants:{position:{outerWrapper:{top:0},innerWrapper:{zIndex:1,cursor:"pointer",background:hn({topPercent:15,bottomPercent:25})}}}}),Fg=Nr(zg,{display:"flex",alignItems:"center",justifyContent:"flex-start"}),Wg=Nr(zg,{display:"flex",alignItems:"center",justifyContent:"flex-end"}),Ug=Nr(zg,{left:"0",position:"absolute",variants:{position:{topControls:{alignItems:"center",display:"flex",justifyContent:"space-between",top:"0"},bottomControls:{bottom:"0",alignItems:"flex-end",display:"flex",justifyContent:"space-between"}}}}),Hg=Nr(Sl,{color:"$gray700-static",fontSize:"$100",variants:{text:{visitAdvertiser:{cursor:"pointer",width:"100%",textAlign:"end",padding:"12px"},duration:{fontWeight:"$light",justifySelf:"start"}}}}),qg=Nr("div",{backgroundColor:"$alpha50",border:"1px solid $secondary",borderRadius:"$round",display:"flex",width:"100px",justifyContent:"center","&:hover, &:disabled, &:disabled:hover":{backgroundColor:"$alpha50",border:"1px solid $secondary"}});function Gg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Gg(e,t,r[t])}))}return e}Nr("div",{padding:"12px"});var Zg=function(e){var t=e.advertiserUrl,n=e.children,o=e.togglePlay,a=c().videoId,i=Bg(),l=i.showControls,u=i.visitAdvertiser,s=In().isOpenSticky,d=lo().adContainerRef;return r().createElement(Vg,{position:"outerWrapper",id:"ad-container-".concat(a),"data-testid":"ad-container",ref:d,css:{overflow:"hidden"}},l&&r().createElement(Vg,{position:"innerWrapper",onClick:function(){t?u():o()},"data-testid":"ad-container-inner",css:Yg({overflow:"hidden"},s&&{justifyContent:"space-between",background:hn({topPercent:35,bottomPercent:35})})},n))};function Xg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Xg(e,t,r[t])}))}return e}Zg.propTypes={children:i().node,togglePlay:i().func,advertiserUrl:i().string},Zg.displayName="AdContainerOuterWrapper";var Jg=function(e){var t,n=e.advertiserUrl,o=e.closeStickyPlayer,a=e.isFullscreen,i=Bg().remainingTime,l=In().isOpenSticky;return r().createElement(Ug,{position:"topControls"},r().createElement(Fg,null,l&&!a&&r().createElement(ng,{buttonStyles:{padding:"12px"},closeStickyPlayer:o}),r().createElement(Hg,{text:"duration",css:Kg({whiteSpace:"nowrap",padding:"12px"},l&&!a&&{paddingLeft:0})},"Ad (",(t=rn(i),"".concat(an(t))),")")),n&&r().createElement(Hg,{text:"visitAdvertiser"},"Visit advertiser"))},Qg={closeStickyPlayer:i().func,isFullscreen:i().bool};Jg.propTypes=Kg({advertiserUrl:i().string},Qg);var eb=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"m6 12.62-.71-.71L9.25 8 5.33 4.09 6 3.38 10.67 8Z"})))),tb=(0,e.memo)(eb);function rb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nb=function(e){var t=e.skip,n=Bg(),o=n.showCountdown,a=n.skipCountdown,i=n.skipReady;return r().createElement(Ci,{component:"skip","data-testid":"skip-button",disabled:!i,onClick:function(e){e.stopPropagation(),t()},css:{border:"none",background:"unset",padding:"12px",borderRadius:0,"&:hover, &:disabled, &:disabled:hover":{background:"unset"}}},r().createElement(qg,{css:{padding:i?"7px 13px 7px 19px":"7px 16px"}},i?r().createElement(ab,null):o?r().createElement(ib,{skipCountdown:a}):null))},ob={skip:i().func};function ab(){return r().createElement(r().Fragment,null,r().createElement(Hg,{text:"duration"},"Skip"),r().createElement(Ai,{fill:"white",label:"skip",size:"100"},r().createElement(tb,null)))}function ib(e){var t=e.skipCountdown;return r().createElement(Hg,{text:"duration"},"Skip in ",t)}function lb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}nb.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rb(e,t,r[t])}))}return e}({},ob),ib.propTypes={skipCountdown:i().number};var cb=function(e){var t=e.skip,n=e.toggleAdPlay,o=e.toggleMute,a=Bg(),i=a.showCountdown,l=a.skipReady,c=a.adMuted,u=a.playing;return r().createElement(Ug,{position:"bottomControls",css:{padding:0}},r().createElement(Fg,null,r().createElement(Yi,{isPlaying:u,buttonStyles:{padding:"12px 20px 20px 20px",margin:"0 -8px -8px -8px"},toggleAdPlay:n}),r().createElement(ql,{isMuted:c,buttonStyles:{padding:"12px 12px 20px 12px",paddingLeft:c?"12px":"12.5px",margin:"0 0px -8px 0"},toggleMute:o})),r().createElement(Wg,null,(l||i)&&r().createElement(nb,{skip:t})))};cb.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){lb(e,t,r[t])}))}return e}({},ob,Zi,Gl);const ub=cb;const sb=function(t){var r=t.adSettings,n=t.debug,o=t.transitionToVideo,a=t.adState,i=t.setAdState,l=t.setPromoState,u=t.setRenderControls,s=t.playerState,d=t.updateDisplay,p=t.isAdsInitialized,f=t.pauseVideo,g=void 0===f?function(){}:f,b=Vn(),v=c(),m=v.videoData,y=v.videoId,h=v.uniqueId,w=Bg(),S=w.dispatchAdAction,E=w.mute,x=w.skip,O=w.getIrisPlayerData,A=w.reset,C=Vo(),k=C.sendAnalyticsEvent,P=C.setAvAdMeta,j=C.setAdAttribute,$=In(),I=$.updateStickyContext,R=$.isStickyEnabled,T=go(),D=T.sendPerformanceEvent,M=T.sendPerformanceMeasure,L=lo().adWrapperRef,_=r.current,B=void 0===_?{}:_,N=B.debugZeus,z=B.isPreroll,V=B.videoConfig,F=(void 0===V?{}:V).skipmin,W=s.isMuted,U=(0,e.useCallback)((function(){Te(me,!0,y,n);var e=new Event("AD_REQUESTED");b.current.dispatchEvent(e)}),[y,n,b]),H=(0,e.useCallback)((function(){i(de.LOADED),Te("adLoaded",!0,y,n)}),[n,i,y]),K=(0,e.useCallback)((function(){var e,t=O().adData,r=t.duration;N&&console.log("Iris Event",he),l($e),R&&I({playingId:h}),S({type:Cg}),u(!1),i(de.PLAYING),(W||z)&&E(),g(),S({type:Ig,showCountdown:F?r>=F:r>=30}),qn(b.current,G,t),d({state:"media-start"});var o=null===(e=L.current.irisPlayer)||void 0===e?void 0:e.getSkipTime(),a=function(e){return Ao(e)?be:"adStarted"}(t),c=Co(t,o);P(c),j(a),r>1&&(k("video-ad-start",{avAdMeta:c,adAttribute:a}),D(ne),M(ne,oe),Te(he,!0,y,n),S({type:$g,showControls:!0}))}),[O,N,l,R,S,u,i,W,b,d,I,y,E,n,L,P,k,g,h,D,M,j,z]),J=(0,e.useCallback)((function(){Te(Se,!0,y,n),S({type:Cg})}),[n,S,y]),Q=(0,e.useCallback)((function(){Te(Ee,!0,y,n),S({type:kg})}),[n,S,y]),ee=(0,e.useCallback)((function(e){var t=L.current.irisPlayer.getSkipTime(),r=function(e,t,r){return{skipReady:r>0&&t>r,skipCountDown:r-t,remainingTime:e}}(e.remainingTime,e.currentTime,t);S({type:Pg,skipData:r})}),[S,L]),te=(0,e.useCallback)((function(){S({type:jg}),Te(xe,!0,y,n)}),[S,n,y]),re=(0,e.useCallback)((function(e){var t=O().adData;Te(Ae,e,y,n),i(de.ERROR),A(),j(fe),o({analyticsData:{adAttribute:fe}}),qn(b.current,Y,t)}),[O,y,n,i,A,j,o,b]),ae=(0,e.useCallback)((function(){var e=O().adData,t=e.duration;Te(ge,!0,y,n),i(de.COMPLETE),A();var r=function(e){return Ao(e)?be:ge}(e);j(r),qn(b.current,q,e),t>1&&k("video-ad-complete",{avAdMeta:Co(e),adAttribute:r}),o({analyticsData:{adAttribute:r}})}),[n,O,A,k,j,i,o,b,y]),ie=(0,e.useCallback)((function(e){Te(Ce,e,y,n),i(de.BYPASSED),A(),j(pe),o({analyticsData:{adAttribute:pe}}),qn(b.current,Z)}),[y,n,i,A,j,o,b]),le=function(t){var r=t.debug,n=t.adWrapperRef,o=t.transitionToVideo,a=t.setAdState,i=(0,e.useRef)(null),l=Vn(),u=Bg().reset,s=Vo().setAdAttribute,d=c().videoId,p=(0,e.useCallback)((function(){Te(X,{message:"Ad Play Timeout"},d,r),a(de.TIMEOUT);try{var e,t;null===(t=n.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.stop()}catch(e){r&&console.log("failed to stop the video",e)}u(),s(pe),o({analyticsData:{adAttribute:pe}}),qn(l.current,X)}),[r,d,a,n,u,s,o,l]),f=(0,e.useCallback)((function(){null===i.current&&(i.current=setTimeout((function(){p(),i.current=null}),6e3))}),[p]),g=(0,e.useCallback)((function(){null!==i.current&&(clearTimeout(i.current),i.current=null)}),[i]);return{adTimer:i,startTimer:f,stopTimer:g}}({debug:n,adWrapperRef:L,transitionToVideo:o,setAdState:i}),ce=le.startTimer,ue=le.stopTimer;return(0,e.useEffect)((function(){a===de.REQUESTED?ce():[de.PLAYING,de.COMPLETE,de.ERROR,de.BYPASSED,de.TIMEOUT].includes(a)&&ue()}),[a,ce,ue]),(0,e.useEffect)((function(){if(p){var e=(L.current||{}).irisPlayer;if(e)return e.on(me,U),e.on(ye,H),e.on(he,K),e.on(Se,J),e.on(Ee,Q),e.on(Oe,ee),e.on(xe,te),e.on(Ae,re),e.on(we,ae),e.on(Ce,ie),function(){e.off(me,U),e.off(ye,H),e.off(he,K),e.off(Se,J),e.off(Ee,Q),e.off(Oe,ee),e.off(xe,te),e.off(Ae,re),e.off(we,ae),e.off(Ce,ie)}}}),[L,H,U,K,m,J,ee,te,re,ae,p,Q,ie]),x};function db(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pb=(0,e.forwardRef)((function(t,n){var o,a,i,l,c=t.setPromoState,u=t.transitionToVideo,s=t.debug,d=t.setRenderControls,p=t.updateDisplay,f=void 0===p?function(){}:p,g=t.isAdsInitialized,b=Bg(),v=b.pause,m=b.togglePlay,y=b.toggleAdMute,h=b.skip,w=b.dispatchAdAction,S=Vo(),E=S.setAvAdMeta,x=S.setAdAttribute,O=lo().adWrapperRef,A=Aa(),C=A.playerState,k=A.isFullscreen,P=A.closeStickyPlayer,j=A.pause,$=Bn(),I=$.adState,R=$.setAdState,T=$.adSettings;(0,e.useImperativeHandle)(n,(function(){return{pauseAd:function(){v()},displayControls:function(){w({type:$g,showControls:!0})},toggleAdMute:function(){y()}}}));var D=null===(l=O.current)||void 0===l||null===(i=l.irisPlayer)||void 0===i||null===(a=i.getCurrentAd())||void 0===a||null===(o=a.data)||void 0===o?void 0:o.clickThroughUrl;return sb({adSettings:T,adState:I,debug:s,transitionToVideo:u,setAdAttribute:x,setAdState:R,setAvAdMeta:E,setPromoState:c,setRenderControls:d,playerState:C,updateDisplay:f,isAdsInitialized:g,pauseVideo:j}),r().createElement(Zg,{advertiserUrl:D,togglePlay:m},r().createElement(Jg,{advertiserUrl:D,closeStickyPlayer:P,isFullscreen:k}),r().createElement(ub,{skip:h,toggleAdPlay:m,toggleMute:y}))}));pb.displayName="AdContainer";const fb=pb;pb.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){db(e,t,r[t])}))}return e}({toggleMute:i().func,playerState:i().object,setPromoState:i().func,adSettings:i().object,transitionToVideo:i().func,setAdState:i().func,debug:i().bool,setRenderControls:i().func,adState:i().string,updateDisplay:i().func},Qg);var gb=o(4168),bb={};bb.styleTagTransform=Fi(),bb.setAttributes=Bi(),bb.insert=Li().bind(null,"head"),bb.domAPI=Di(),bb.insertStyleElement=zi(),Ri()(gb.A,bb),gb.A&&gb.A.locals&&gb.A.locals;var vb=o(8986),mb={};function yb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}mb.styleTagTransform=Fi(),mb.setAttributes=Bi(),mb.insert=Li().bind(null,"head"),mb.domAPI=Di(),mb.insertStyleElement=zi(),Ri()(vb.A,mb),vb.A&&vb.A.locals&&vb.A.locals;var hb=function(e){var t;return!("undefined"!=typeof window&&(!0===window.matchMedia("(prefers-reduced-motion: reduce)")||!0===window.matchMedia("(prefers-reduced-motion: reduce)").matches))&&(null==e||null===(t=e.additional_properties)||void 0===t?void 0:t.gifAsThumbnail)},wb=function(e,t,r){return"Play ".concat(e?"Live ":"","video: ").concat(t,", ").concat(r.srOnly)},Sb=function(e,t){return"Upcoming ".concat(e?"Live ":"","video: ").concat(t)};function Eb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xb,Ob=Fr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(359deg)"}}),Ab=Nr(Ci,{boxSizing:"border-box","&[data-state='loading']":(xb={},Eb(xb,"& ".concat(Ai),{animation:"".concat(Ob," 2s linear infinite"),"@reducedMotion":{animation:"none"}}),Eb(xb,"&:focus",{outline:"1px auto -webkit-focus-ring-color"}),xb),"&[data-state='buffer']":Eb({borderWidth:"1px !important"},"& ".concat(Ai),{color:"white",transition:"none",animation:"".concat(Ob," 2s linear infinite"),"@reducedMotion":{animation:"none"}}),"&[data-state-live='true']":Eb({borderColor:"red !important"},"& ".concat(Ai),{color:"white"}),"&[data-state-live-preview='true']":Eb({},"& ".concat(Ai),{color:"#111 !important"})}),Cb=Nr("div",{overflow:"hidden",zIndex:1,width:"100%",height:"100%",position:"absolute",top:0,left:0,textAlign:"left",variants:{hidden:{true:{display:"none"},false:{display:"block"}}}}),kb=Nr("video",{width:"100%",height:"100%"}),Pb=Nr("div",{display:"flex",alignItems:"center",position:"absolute",bottom:"0",left:"0",padding:"16px",paddingTop:"48px",boxSizing:"border-box",width:"100%",cursor:"pointer",background:"linear-gradient(\n    to top,\n    rgba(0, 0, 0, 0.5) 0,\n    rgba(0, 0, 0, 0) 100%\n  )"}),jb=Nr("div",{minWidth:0,display:"flex",flexDirection:"column",width:"100%",variants:{small:{true:{marginLeft:"8px"},false:{marginLeft:"16px"}}}}),$b=Nr("div",{color:Ur.colors["gray700-static"],fontFamily:"$meta",fontWeight:700,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}),Ib=Nr("div",{fontFamily:"$meta",color:Ur.colors["gray700-static"],variants:{hidden:{true:{visibility:"hidden"}}}}),Rb=Nr("div",{height:"8px",width:"8px",marginRight:"4px",borderRadius:"50%",backgroundColor:"red",animation:"sc-status-light-blink-animation 2s ease-in-out infinite alternate"}),Tb=Nr("div",{display:"flex",alignItems:"center"}),Db=function(t){var n=t.playerSize,o=t.isEnded,a=t.isUpcoming,i=t.isVideoTypeLive,l=t.title,u=t.duration,s=t.config,d=s.showBtnText,p=void 0===d||d,f=s.customBtnText,g=s.showDurationOrLive,b=void 0===g||g,v=s.isLivePreviewEnabled,m=c(),y=m.videoData,h=m.isForceLoadVideo,w=(0,e.useMemo)((function(){return function(e,t,r,n,o){return e?t:r||(n&&!o?"Tap to unmute":t)}(h,l,f,v,a)}),[f,h,v,a,l]),S=De(y),E=(0,e.useMemo)((function(){return function(e,t,r,n){return e&&!t&&(!r||!!n)}(p,o,S,f)}),[S,f,o,p]),x=i&&!o,O=i&&o;return r().createElement(jb,{small:n===Kr.SMALL},E&&r().createElement($b,{id:"orca-promo-title","aria-hidden":!a,"aria-label":Sb(i,l),"data-testid":"promo-title",role:"heading"},w),b&&r().createElement(Ib,{id:"orca-promo-duration","aria-hidden":"true",className:"overrideStyles","data-testid":"promo-duration",hidden:O},x?r().createElement(Tb,null,r().createElement(Rb,{id:"orca-promo-live-dot"}),"Live"):u.visible))};Db.propTypes={playerSize:i().string,isEnded:i().bool,isUpcoming:i().bool,isVideoTypeLive:i().bool,title:i().string,duration:i().object,config:i().object};var Mb=function(e){var t=e.promoState,n=e.isVideoTypeLive,o=e.isLivePreviewEnabled,a=e.title,i=e.duration,l=t!==Pe,c=o&&n;return r().createElement(Ab,{"aria-label":wb(n,a,i),id:"orca-promo-button","data-testid":"orca-promo-button",icon:"center","data-state":t.toLowerCase(),"data-state-live":n,"data-state-live-preview":o},r().createElement(Ai,{className:"wpds-icon"},l?r().createElement(tl,{"data-testid":"loading-icon"}):c?r().createElement(Vl,{"data-testid":"mute-icon"}):r().createElement(Qi,{"data-testid":"play-icon"})))};function Lb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_b(e,t,r[t])}))}return e}function Nb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lb(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.")}()}Mb.propTypes={promoState:i().string,isVideoTypeLive:i().bool,isLivePreviewEnabled:i().bool,title:i().string,duration:i().object},Ai.toString=function(){return".wpds-icon"};var zb=(0,e.forwardRef)((function(t,n){var o,a,i,l=t.onClick,d=t.promoState,f=t.setPromoState,b=t.config,v=t.promoEnabled,m=t.aspectRatio,y=t.aspectMatch,w=b.alternateArt,S=void 0===w?null:w,E=b.isLivePreviewEnabled,x=b.placeholder,O=b.hidePromoVideo,A=c(),C=A.videoData,k=A.videoApiDataFailed,P=h().autoplayState,$=Aa().playerSize,I=Bn().shouldShowAds,R=Nb((0,e.useState)(!1),2),D=R[0],M=R[1],L=(0,e.useRef)(),_=Nb((0,e.useTransition)(),2)[1],B=p(C),N=u(C),z=s(C),V=(0,e.useMemo)((function(){return function(e,t,r,n,o,a){if(!e.isInitialized)return!1;var i=!e.isAutoplay||e.status===T||e.isLivePreview,l=t&&$o(e)&&jo(r,n);return o&&!a&&(i||l||g(r))}(P,I,C,b,v,k)}),[P,b,v,k,I,C]),F=function(e){var t,r;return(null==e||null===(t=e.bandito)||void 0===t?void 0:t.title)||(null==e||null===(r=e.headlines)||void 0===r?void 0:r.basic)}(C),W=(0,e.useMemo)((function(){return function(e,t,r,n,o){var a,i=(null==e||null===(a=e.additional_properties)||void 0===a?void 0:a.vertical)?480:960;return r&&!n?kn(r,i,i*o):function(e,t){var r,n,o,a,i,l=hb(e)?((null==e?void 0:e.streams)||[]).filter((function(e){return"gif"===(null==e?void 0:e.stream_type)}))[0]:null,c=null==e||null===(r=e.additional_properties)||void 0===r?void 0:r.vertical;if((null==t?void 0:t.image)&&!((null==e||null===(n=e.bandito)||void 0===n?void 0:n.image)||(null==l?void 0:l.url)||(null==e||null===(o=e.promo_image)||void 0===o?void 0:o.url))){var u=t.resize;return void 0===u||u?kn(null==t?void 0:t.image,c?480:960):t.image}return kn((null==e||null===(a=e.bandito)||void 0===a?void 0:a.image)||(null==l?void 0:l.url)||(null==e||null===(i=e.promo_image)||void 0===i?void 0:i.url)||j,c?480:960)}(e,t)}(C,x,S,null==P?void 0:P.isPlaythrough,m)}),[S,m,null==P?void 0:P.isPlaythrough,x,C]),U=(i=hb(o=C)?((null==o?void 0:o.streams)||[]).filter((function(e){return"gif-mp4"===(null==e?void 0:e.stream_type)}))[0]:null,(null==o||null===(a=o.bandito)||void 0===a?void 0:a.video)||(null==i?void 0:i.url)),H=function(e){return function(e){if(!e)return{visible:"",srOnly:""};var t=Math.floor(e/1e3),r=Math.floor(t/60),n=Math.floor(r/60);return t%=60,r%=60,{visible:n?"".concat(n,":").concat(Pn(r),":").concat(Pn(t)):"".concat(r,":").concat(Pn(t)),srOnly:n?"".concat(n," hours, ").concat(Pn(r)," minutes and ").concat(Pn(t)," seconds"):"".concat(r," minutes and ").concat(Pn(t)," seconds")}}(null==e?void 0:e.duration)}(C),q=U&&!D,G=(null==P?void 0:P.isPlaythrough)||O,Y=!1===N&&!1===z,Z=!q&&!E,X=(0,e.useMemo)((function(){return function(e,t,r){var n;return yb(n={backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:e?"url(".concat(e,")"):"none",backgroundSize:t?"cover":"contain"},"--aspect-height",r),yb(n,"--aspect-width",1),n}(W,y,m)}),[y,m,W]);(0,e.useImperativeHandle)(n,(function(){return{playVideo:function(){f($e),l()}}}));var K=(0,e.useCallback)((function(e){d===Pe&&_((function(){e.preventDefault(),e.stopPropagation(),B&&N||l()}))}),[N,B,l,d]);return r().createElement(r().Fragment,null,V&&r().createElement(Cb,{ref:L,"data-testid":"orca-promo",css:Bb({},Z&&X),hidden:d===$e,onClick:K},q&&!G&&r().createElement(kb,{src:U,onError:function(){return M(!0)},onAbort:function(){return M(!0)},playsInline:!0,muted:!0,autoPlay:!0,loop:!0,crossOrigin:"anonymous",controlsList:"nodownload"}),$&&r().createElement(Pb,{className:Eo("",_b({},"".concat($),$))},Y&&r().createElement(Mb,{promoState:d,isVideoTypeLive:B,isLivePreviewEnabled:E,title:F,duration:H}),r().createElement(Db,{playerSize:$,isEnded:z,isUpcoming:N,isVideoTypeLive:B,title:F,duration:H,config:b}))))}));zb.propTypes={onClick:i().func,promoState:i().string,setPromoState:i().func,config:i().object,autoplayState:i().object,promoEnabled:i().bool,shouldShowAds:i().bool,aspectRatio:i().number,playerSize:i().oneOf(Object.values(Kr)),aspectMatch:i().bool},zb.displayName="Promo";var Vb=function(t){var n,o,a=t.promoEnabled,i=void 0===a||a,l=t.config,u=void 0===l?{}:l,s=t.onPromoClick,d=t.updateDisplay,p=void 0===d?function(){}:d,f=t.isCarousel,g=void 0!==f&&f,b=t.children,v=u.aspectRatio,m=u.aspectWidth,y=void 0===m?16:m,h=u.aspectHeight,w=void 0===h?9:h,S=u.playCallback,E=void 0===S?function(){}:S,x=u.debug,O=c().videoData,A=Vo().sendAnalyticsEvent,C=go().sendPerformanceEvent,k=lo().adControlsRef,P=Aa(),j=P.setRenderControls,$=P.promoElement,I=P.play,R=P.autoplay,T=Dn(),D=T.promoState,M=T.setPromoState,L=Bn().isAdsInitialized,_=v||w/y,B=qa({setRenderControls:j,isCarousel:g,autoplay:R,play:I,playCallback:E}),N=(0,e.useCallback)((function(){A("video-promo-click"),C(oe),s()}),[s,A,C]),z=_===(null==O||null===(n=O.streams)||void 0===n?void 0:n[0].height)/(null==O||null===(o=O.streams)||void 0===o?void 0:o[0].width),V=r().createElement(fb,{setPromoState:M,transitionToVideo:B,debug:x,setRenderControls:j,updateDisplay:p,isAdsInitialized:L,ref:k});return r().createElement(r().Fragment,null,r().createElement(zb,{promoState:D,setPromoState:M,config:u,promoEnabled:i,aspectRatio:_,aspectMatch:z,onClick:N,ref:$}),r().createElement(yg,{config:u},r().createElement(Ng,{isPreroll:!1,transitionToVideo:B},b(V))))};Vb.propTypes={config:i().object,children:i().func.isRequired,promoEnabled:i().bool,onPromoClick:i().func,updateDisplay:i().func,isCarousel:i().bool};var Fb=(0,e.forwardRef)((function(t,n){var o=t.onVideoRendered,a=void 0===o?function(){}:o,i=t.config,l=void 0===i?{}:i,c=t.promoEnabled,u=void 0===c||c,s=t.liveEventEnded,d=void 0!==s&&s,p=t.handleVideoEnd,f=void 0===p?function(){}:p,g=t.isLive,b=void 0!==g&&g,v=l.aspectRatio,m=l.aspectWidth,y=void 0===m?16:m,w=l.aspectHeight,S=void 0===w?9:w,E=l.controlWrapperClassName,x=l.playCallback,O=void 0===x?function(){}:x,A=l.isCarousel,C=void 0!==A&&A,k=l.stickyStyles,P=h().autoplayState,j=(lo().adControlsRef,Aa()),$=j.setRenderControls,I=j.play,R=j.handleLivePreview,T=j.autoplay,D=v||S/y,M=qa({setRenderControls:$,isCarousel:C,autoplay:T,play:I,playCallback:O}),L=Va(),_=L.hasSubtitles,B=L.updateCues,z=L.currentCue,V=L.setupSubtitlesListener,F=Ga(M,l,V),W=(0,e.useCallback)((function(){P.isLivePreview&&R(),F(P.isLivePreview)}),[F,P.isLivePreview,R]),U=function(){var t=Vn(),r=Aa(),n=function(t,r){var n=h().autoplayState,o=(0,e.useRef)(),a=lo().adControlsRef,i=Vn(),l=Bn().adState;return(0,e.useEffect)((function(){n.type!==se.LOOP_NO_CONTROLS&&(o.current=function(e){var n=function(){return Object.values(e).some((function(e){return!0===e}))};if(n())if(t.isPlaying)r();else if(l===de.PLAYING){var o;null===(o=a.current)||void 0===o||o.pauseAd()}else{var c=i.current,u=function(){Hn(c,N,u),n()&&setTimeout((function(){r()}),1e3)},s=function(){Hn(c,G,s),n()&&setTimeout((function(){var e,t;null===(e=a.current)||void 0===e||e.pauseAd(),null===(t=a.current)||void 0===t||t.displayControls()}),0)};Un(c,N,u),Un(c,G,s)}})}),[a,l,n.type,r,t.isPlaying,i]),(0,e.useCallback)((function(e){var t;null===(t=o.current)||void 0===t||t.call(o,e)}),[])}(r.playerState,r.pause),o=function(e){var t=e.ref,r=e.type,n=e.pauseSelf,o=e.handleWalls;return Ma((function(){var e,r;n&&(null===(e=(r=window).registerDisplay)||void 0===e||e.call(r,{participant:Ba,callback:function(e){var r=(null==e?void 0:e.info)||{},o=r.state,a=r.ref;"media-start"===o&&a!==t&&n()}}))}),[n]),Ma((function(){var e,t;if(o){var r={};null===(e=(t=window).registerDisplay)||void 0===e||e.call(t,{participant:_a,callback:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.readyDisplay;r[t]=n,Object.keys(r).length>=_a.length&&o(r)}})}}),[o]),La((function(e){var n,o;null===(n=(o=window).registerDisplay)||void 0===n||n.call(o,{participant:r,info:Ta(Ra({},e),{ref:t})})}),[])}({type:"video",ref:t,handleWalls:n});return o}();return vg(),r().createElement(r().Fragment,null,r().createElement($a,{controlWrapperClassName:E,liveEventEnded:d,aspectRatio:D,stickyStyles:k},r().createElement(Vb,{promoEnabled:u,config:l,onPromoClick:W,updateDisplay:U},(function(e){return r().createElement(yi,{onVideoRendered:a,config:l,promoEnabled:u,liveEventEnded:d,handleVideoEnd:f,isLive:b,handleStart:F,transitionToVideo:M,updateCues:B,hasSubtitles:_,currentCue:z,ref:n,Controls:ug},e)}))),r().createElement(jn,null))}));function Wb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Fb.displayName="OrcaFullUI",Fb.propTypes={onVideoRendered:i().func,config:i().object,promoEnabled:i().bool,liveEventEnded:i().bool,handleVideoEnd:i().func,isLive:i().bool};var Ub=function(t,r){var n=Vo().sendAnalyticsEvent,o=(0,e.useRef)(0),a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wb(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.")}()}((0,e.useState)(0),2),i=a[0],l=a[1],c=!(null==r?void 0:r.isMuted)&&(null==r?void 0:r.isPlaying);(0,e.useEffect)((function(){setInterval((function(){l((function(e){return e+1}))}),1e3)}),[]),(0,e.useEffect)((function(){if(t&&c){var e=o.current+1;o.current=e,e%300==0&&n("live-video-threshold",{avLiveProgress:"".concat(e/300*5)})}}),[i])},Hb=function(e){var t=e.isLive,n=e.playerState;return Ub(t,n),r().createElement(r().Fragment,null)};Hb.propTypes={isLive:i().bool.isRequired,playerState:i().object};var qb=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M8 1a7 7 0 1 0 5 2.05A7 7 0 0 0 8 1m0 13a6 6 0 1 1 4.24-1.76A6 6 0 0 1 8 14","data-name":"Path 14"}),e.createElement("path",{d:"M5 7.5v1h6v-1Z","data-name":"Path 15"})))),Gb=(0,e.memo)(qb),Yb=Nr("div",{width:"100%",height:"100%",position:"absolute",zIndex:"1",display:"flex",justifyContent:"center",alignItems:"center",padding:"$175",background:"$primary"}),Zb=Nr("div",{padding:"$125"}),Xb=Nr("div",{fontFamily:"$meta",color:"$secondary",fontSize:"$125",fontWeight:"$light",width:"40%","@sm":{fontSize:"$087"}}),Kb=function(){return r().createElement(Yb,null,r().createElement(Zb,null,r().createElement(Ai,{size:200,label:"error",fill:"white"},r().createElement(Gb,null))),r().createElement(Xb,null," An error occurred. Please try again later."))};function Jb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Jb(e,t,r[t])}))}return e}function ev(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var tv=function(t){var n=t.aspectRatio,o=t.aspectMatch,a=t.placeholder,i=t.className,l=t.caption,u=t.children,s=t.promoState,d=c(),p=d.originalVideo,f=d.videoData,g=d.videoApiDataFailed,b=In().isOpenSticky,v=Aa().playerState,m=a||{},y=m.image,h=m.resize,w=m.blur,S=m.color,E=function(t){var r,n=t.placeholderImage,o=t.resize,a=t.videoData,i=t.originalVideo,l=(0,e.useCallback)((function(){var e;return(null==a||null===(e=a.additional_properties)||void 0===e?void 0:e.vertical)?480:960}),[null==a||null===(r=a.additional_properties)||void 0===r?void 0:r.vertical]);return(0,e.useCallback)((function(){var e,t,r=l(a);if(n&&function(e,t){return!(null==t?void 0:t._id)||(null==e?void 0:e._id)===(null==t?void 0:t._id)}(a,i))return o?kn(n,r):n;var c=(null==a||null===(e=a.bandito)||void 0===e?void 0:e.image)||(null==a||null===(t=a.promo_image)||void 0===t?void 0:t.url);return c?kn(c,r):null}),[n,o,a,i,l])}({placeholderImage:y,resize:h,videoData:f,originalVideo:p})(),x=(0,e.useMemo)((function(){return E&&(s!==$e||!v.isStarted)}),[E,s,v]),O=function(t){var r=t.isOpenSticky,n=t.aspectRatio,o=t.aspectMatch,a=t.blur,i=t.color;return(0,e.useCallback)((function(){var e={width:"100%",position:"relative",backgroundPosition:"center",backgroundSize:o?"cover":"contain",paddingBottom:"calc(".concat(n,"*100%)")},t=ev(Qb({},e),{backgroundColor:"unset",backgroundImage:"none"}),l=Qb(ev(Qb({},e),{backgroundRepeat:"no-repeat",backgroundColor:i||"black"}),a?{filter:"blur(5px)",transition:"filter .1s"}:{});return r?t:l}),[r,n,o,a,i])}({isOpenSticky:b,aspectRatio:n,aspectMatch:o,blur:w,color:S,promoState:s,playerState:v});return r().createElement("figure",{className:i,style:{margin:0}},r().createElement("div",{"data-testid":"orca-wrapper",style:Qb({backgroundImage:x?"url(".concat(E,")"):"none"},O())},g&&r().createElement(Kb,null),f&&u),l&&r().createElement("figcaption",null,l))};tv.propTypes={aspectRatio:i().number,aspectMatch:i().bool,placeholder:i().object,className:i().string,caption:i().node,children:i().node,videoApiDataFailed:i().bool,videoID:i().string,isStickyEnabled:i().bool,isOpenSticky:i().bool,promoState:i().string,playerState:i().object};var rv=function(e){var t,n,o=e.children,a=e.config,i=c().videoData,l=Aa().playerWrapperRef,u=Dn().promoState,s=a.caption,d=a.className,p=a.placeholder,f=a.aspectRatio,g=a.aspectWidth,b=void 0===g?16:g,v=a.aspectHeight,m=f||(void 0===v?9:v)/b,y=m===(null==i||null===(t=i.streams)||void 0===t?void 0:t[0].height)/(null==i||null===(n=i.streams)||void 0===n?void 0:n[0].width);return r().createElement("div",{ref:l},r().createElement(tv,{aspectRatio:m,aspectMatch:y,placeholder:p,className:d,caption:s,promoState:u},o))};rv.propTypes={children:i().node.isRequired,config:i().object};var nv=function(t){var n=t.config,o=t.orcaRef,a=t.promoEnabled,i=c().videoData,l=Aa(),u=l.reset,s=l.playerState,d=l.playerSize;!function(t,r){var n=c(),o=n.videoId,a=n.videoData,i=n.videoApiUrl,l=n.domain,u=n.fetchedByUUID,s=n.dispatchVideoApiEvent,d=h().updateAutoplayState,f=t.liveConfigEnv,g=void 0===f?St:f,b=t.forceLiveConfig,v=t.liveConfigInterval,m=void 0===v?6e4:v,y=t.isLivePreviewEnabled,w=(0,e.useMemo)((function(){return Me(g)}),[g]),S=(0,e.useRef)(),E=(0,e.useCallback)(function(){var e=yt((function(e,t,n){var o;return wt(this,(function(c){switch(c.label){case 0:return o=Ot(t,e,n),x()((function(e,t){Pt(e,t,S,s,r,d,y)}))(a,o),[4,Ct(o,s,i,l,r)];case 1:return c.sent(),[2]}}))}));return function(t,r,n){return e.apply(this,arguments)}}(),[s,l,i,a,r,d,y]),O=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(p(a)){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ht(e,t,r[t])}))}return e}({},a),n=t.playerTypeOverride;Et({videoApiUrl:i,domain:l},o,"live-bar"===n||!e).then((function(e){xt(w).then((function(t){E(e,t,r)}))}))}},A=function(){document.hidden?clearInterval(S.current):(clearInterval(S.current),S.current=setInterval((function(){O()}),m))};(0,e.useEffect)((function(){return O(!u),(p(a)||b)&&(S.current=setInterval((function(){O(),document.addEventListener("visibilitychange",A)}),m)),function(){clearInterval(S.current),document.removeEventListener("visibilitychange",A)}}),[a])}(n,o);var g=(0,e.useMemo)((function(){return f(i)}),[i]);return(0,e.useEffect)((function(){g&&u()}),[g,s.isPlaying]),r().createElement(rv,{config:n},g&&r().createElement(tn,{playerSize:d}),r().createElement(Fb,{config:n,promoEnabled:a,isLive:!0,liveEventEnded:g,ref:o}),r().createElement(Hb,{playerState:s,isLive:!0}))};nv.propTypes={config:i().object.isRequired,orcaRef:i().object,promoEnabled:i().bool};var ov=(0,e.forwardRef)((function(e,t){var n=e.onVideoRendered,o=void 0===n?function(){}:n,a=e.config,i=void 0===a?{}:a,l=e.handleVideoEnd,c=void 0===l?function(){}:l,u=i.playCallback,s=void 0===u?function(){}:u,d=i.isCarousel,p=void 0!==d&&d,f=Aa(),g=f.setRenderControls,b=f.play,v=f.autoplay,m=qa({setRenderControls:g,isCarousel:p,autoplay:v,play:b,playCallback:s}),y=Va(),h=y.hasSubtitles,w=y.updateCues,S=y.currentCue,E=y.setupSubtitlesListener,x=Ga(m,i,E);return r().createElement(r().Fragment,null,r().createElement(yi,{onVideoRendered:o,config:i,promoEnabled:!1,liveEventEnded:!1,handleVideoEnd:c,isLive:!1,handleStart:x,transitionToVideo:m,updateCues:w,hasSubtitles:h,currentCue:S,ref:t,Controls:xc}),r().createElement(jn,null))}));ov.displayName="OrcaLoopingUI",ov.propTypes={onVideoRendered:i().func,config:i().object,handleVideoEnd:i().func};var av=function(e){var t=e.config,n=e.onVideoRendered,o=e.orcaRef;return r().createElement(rv,{config:t},r().createElement(ov,{onVideoRendered:n,config:t,handleVideoEnd:function(){},ref:o}))};function iv(e,t,r,n,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}av.propTypes={config:i().object.isRequired,isSandbox:i().bool,onVideoEnded:i().func,promoEnabled:i().bool,onVideoRendered:i().func,orcaRef:i().object};var lv=function(){var e,t=(e=function(e,t){var r,n,o,a;return function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(i){switch(i.label){case 0:r=cv(e),i.label=1;case 1:return i.trys.push([1,4,,5]),n=new URL(function(e){return"".concat(e?I.SANDBOX:I.PROD,"/video-center-find-by-uuid")}(t)),n.searchParams.set("query",JSON.stringify({uuid:null==e?void 0:e._id,recommendedPlaylist:1,playlistCount:1,unpublished:!1,includePubEnded:!1})),[4,fetch(n)];case 2:return[4,i.sent().json()];case 3:return o=i.sent(),Array.isArray(o)?[2,o.filter((function(e){return uv(e,r)&&sv(e)})).slice(1)]:(console.error("Video API request for recommended playlist for UUID = ".concat(null==e?void 0:e._id," returned an error:"),o),[2,[]]);case 4:return a=i.sent(),console.error("Video API request for recommended playlist for UUID = ".concat(null==e?void 0:e._id," failed: ").concat(a)),[2,[]];case 5:return[2]}}))},function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){iv(a,n,o,i,l,"next",e)}function l(e){iv(a,n,o,i,l,"throw",e)}i(void 0)}))});return function(e,r){return t.apply(this,arguments)}}(),cv=function(e){var t=e.additional_properties,r=t.vertical,n=void 0!==r&&r,o=t.videoCategory;return n||"vertical"===(void 0===o?"":o)},uv=function(e,t){return cv(e)===t},sv=function(e){return!Ie(e)};function dv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dv(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.")}()}var fv=function(t){var n=t.config,o=t.isSandbox,a=t.onVideoEnded,i=t.promoEnabled,l=t.onVideoRendered,u=t.orcaRef,s=h(),d=s.autoplayState,p=s.isMotionReduced,f=Aa(),g=f.initDuration,b=f.initializeNewVideo,v=f.resetVideoState,m=f.isFullscreen,y=f.isNativeIOSPlayer,w=f.setIsFullscreen,S=Vo().sendAnalyticsEvent,E=function(t,r,n,o,a,i){var l=c(),u=l.videoData,s=l.dispatchVideoApiEvent,d=l.originalVideo,p=h().autoplayState,f=Vn(),g=In(),b=g.isOpenSticky,v=g.setOverrideStickyContext,m=t.allowPlaythrough,y=void 0===m||m,w=pv((0,e.useState)([]),2),S=w[0],E=w[1],x=S.length>0,O=pv((0,e.useState)(!1),2),A=O[0],C=O[1],k=(0,e.useMemo)((function(){var e;return(null==u||null===(e=u.additional_properties)||void 0===e?void 0:e.embedContinuousPlay)&&y&&!a&&!(null==p?void 0:p.isLooping)&&!0}),[u,y,a,null==p?void 0:p.isLooping,n]),P=(0,e.useCallback)((function(){var e=x?S[0]:d;s({type:pt,videoData:e}),x&&E(S.slice(1)),b&&v(!0),i(x)}),[s,b,v,x,i,d,S]);return(0,e.useEffect)((function(){if(k){var e=null==f?void 0:f.current;if(e){var t=function(){var e;A||(null==f||null===(e=f.current)||void 0===e?void 0:e.currentTime)>80*o/100&&(C(!0),lv(d,r).then((function(e){E(e)})))};return e.addEventListener(z,t),function(){e.removeEventListener(z,t)}}}}),[f,k,r,d,S,A,o]),{switchToNextVideo:P,willPlaythrough:k,hasNextRecVideo:x}}(n,o,!1,g,p,b),x=E.switchToNextVideo,O=function(t){var r=t.autoplayState,n=t.sendAnalyticsEvent,o=t.resetVideoState,a=t.willPlaythrough,i=t.switchToNextVideo,l=t.onVideoEnded,u=t.hasNextRecVideo,s=t.isFullscreen,d=t.isNativeIOSPlayer,p=t.setIsFullscreen,f=Bn().shouldShowAds,g=c().resetUniqueId;return(0,e.useCallback)((function(){r.isLooping||n("video-complete"),o(a&&u),a?(d&&s&&f&&p(!1),i()):g(),l()}),[r.isLooping,n,o,a,i,l,u,s,d,p,f,g])}({autoplayState:d,sendAnalyticsEvent:S,resetVideoState:v,willPlaythrough:E.willPlaythrough,switchToNextVideo:x,onVideoEnded:a,hasNextRecVideo:E.hasNextRecVideo,isFullscreen:m,isNativeIOSPlayer:y,setIsFullscreen:w});return r().createElement(rv,{config:n},r().createElement(Fb,{onVideoRendered:l,config:n,promoEnabled:i,handleVideoEnd:O,ref:u}))};fv.propTypes={config:i().object.isRequired,isSandbox:i().bool,onVideoEnded:i().func,promoEnabled:i().bool,onVideoRendered:i().func,orcaRef:i().object};var gv=Nr("div",{position:"relative",paddingTop:"56.25%","& iframe":{position:"absolute",width:"100%",height:"100%",top:"0",left:"0"}}),bv=function(){var t,n=c(),o=n.videoData,a=n.uniqueId,i="".concat(a,"-yt"),l=null===(t=o.additional_properties)||void 0===t?void 0:t.youtubeVideoId,u=function(e){var t;return null===(t=e.taxonomy)||void 0===t?void 0:t.tags.map((function(e){return e.text})).includes("youtube-allow-autoplay")}(o);return(0,e.useEffect)((function(){new Promise((function(e){window.YT?window.YT.ready(e):new Promise((function(e){wn("https://www.youtube.com/iframe_api",e)})).then((function(){window.YT.ready(e)}))})).then((function(){new window.YT.Player(i,{videoId:l,playerVars:{autoplay:u?1:0,iv_load_policy:3,mute:u?1:0,rel:0,playsinline:1},events:{onReady:function(){Xn({videoData:o,eventAction:"force-youtube-render",action:"force-youtube-render",label:nt,config:{playerType:nt}})}}})}))}),[]),r().createElement(gv,null,r().createElement("div",{id:i}))};function vv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mv=function(e){var t,n=e.forwardedRef,o=e.Player,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["forwardedRef","Player"]),i=c().videoData,l=null===(t=i.additional_properties)||void 0===t?void 0:t.youtubeVideoId;return He(i)&&l?r().createElement(bv,null):r().createElement(o,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){vv(e,t,r[t])}))}return e}({orcaRef:n},a))};function yv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}mv.propTypes={forwardedRef:i().oneOfType([i().func,i().object]),Player:i().elementType.isRequired};var hv=function(t){var n=t.forwardedRef,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["forwardedRef"]),a=c().videoData,i=h().autoplayState,l=o.config,u=void 0===l?{}:l,s=p(a),d=i.isLooping,f=(0,e.useMemo)((function(){return s?nv:d?av:fv}),[s,d]);return r().createElement(mv,function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){yv(e,t,r[t])}))}return e}({forwardedRef:n,Player:f},o),{config:u}))};hv.propTypes={forwardedRef:i().oneOfType([i().func,i().object])};var wv={uuid:i().string,videoStartId:i().string,video:i().object,onVideoEnded:i().func,onVideoRendered:i().func,config:i().shape({aspectRatio:i().number,aspectWidth:i().number,aspectHeight:i().number,placeholder:i().object,className:i().string,caption:i().node,testGroup:i().string,abTest:i().object,loadFirstFragmentOnly:i().bool,debug:i().bool,alternateArt:i().string,allowPlaythrough:i().bool,isSticky:i().bool,hasAds:i().bool,debugZeus:i().bool,debugHLS:i().bool,shouldSendAnalyticsEvent:i().func,getStartReasonOverride:i().func,adOverrides:i().shape({forceAd:i().bool,adZoneOverride:i().string,adTimeoutOverride:i().number,skip:i().number,skipmin:i().number,skipafter:i().number,preloadAd:i().bool,domain:i().string}),embed:i().shape({domain:i().string,defaultWidth:i().oneOfType([i().string,i().number]),defaultHeight:i().oneOfType([i().string,i().number]),queryParams:i().object,getEmbedUrlOverride:i().func})}),promoEnabled:i().bool,isSandbox:i().bool,allowShare:i().bool,allowEmbed:i().bool,isAutoplayOverride:i().bool,isMutedOverride:i().bool,showSubtitlesOverride:i().bool,playerTypeOverride:i().string,stickyPlayerContext:i().object,orcaDeps:i().object},Sv=function(e){var t=e.DataProviderComponent,n=e.uuid,o=e.video,a=e.videoStartId,i=e.isSandbox,l=e.config,c=e.orcaRef,u=e.children;return r().createElement(Fn,null,r().createElement(t,{uuid:n,video:o,videoStartId:a,isSandbox:i,config:l,orcaRef:c},u))};Sv.propTypes={children:i().node.isRequired,config:i().object,DataProviderComponent:i().elementType.isRequired,uuid:i().string.isRequired,video:i().object,videoStartId:i().string,isSandbox:i().bool,orcaRef:i().object};var Ev=function(e){var t=e.DataProviderComponent,n=e.OptionalFeatureStack,o=e.uuid,a=e.video,i=e.videoStartId,l=e.isSandbox,c=e.config,u=e.orcaRef,s=e.children,d=e.stickyPlayerContext,p=void 0===d?{}:d,f=e.orcaDeps,g=e.carouselState,b=e.optionalHandlers;return r().createElement(Sv,{DataProviderComponent:t,uuid:o,video:a,videoStartId:i,isSandbox:l,config:c,orcaRef:u,orcaDeps:f},r().createElement(n,{stickyPlayerContext:p,config:c,orcaDeps:f,carouselState:g},r().createElement(Ca,{config:c,optionalHandlers:b},s)))};function xv(e,t,r,n,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}Ev.propTypes={DataProviderComponent:i().elementType.isRequired,OptionalFeatureStack:i().elementType.isRequired,uuid:i().string.isRequired,video:i().object,videoStartId:i().string,isSandbox:i().bool,config:i().object,orcaRef:i().object,children:i().node.isRequired,stickyPlayerContext:i().object,orcaDeps:i().object,carouselState:i().object,optionalHandlers:i().shape({toggleSubsHandler:i().func,toggleMuteHandler:i().func})};var Ov=function(){var e,t=(e=function(e,t){var r,n,o;return function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(a){switch(a.label){case 0:r=e.videoApiUrl,n=e.domain,a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(r+"?uuid=".concat(t,"&domain=").concat(n))];case 2:return[4,a.sent().json()];case 3:return[2,a.sent()];case 4:return o=a.sent(),console.error("Error retrieving video data",o),[2,null];case 5:return[2]}}))},function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){xv(a,n,o,i,l,"next",e)}function l(e){xv(a,n,o,i,l,"throw",e)}i(void 0)}))});return function(e,r){return t.apply(this,arguments)}}(),Av=o(8948),Cv=o.n(Av);const kv={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Pv;const jv=new Uint8Array(16);function $v(){if(!Pv&&(Pv="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Pv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pv(jv)}const Iv=[];for(let e=0;e<256;++e)Iv.push((e+256).toString(16).slice(1));const Rv=function(e,t,r){if(kv.randomUUID&&!t&&!e)return kv.randomUUID();const n=(e=e||{}).random||(e.rng||$v)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return Iv[e[t+0]]+Iv[e[t+1]]+Iv[e[t+2]]+Iv[e[t+3]]+"-"+Iv[e[t+4]]+Iv[e[t+5]]+"-"+Iv[e[t+6]]+Iv[e[t+7]]+"-"+Iv[e[t+8]]+Iv[e[t+9]]+"-"+Iv[e[t+10]]+Iv[e[t+11]]+Iv[e[t+12]]+Iv[e[t+13]]+Iv[e[t+14]]+Iv[e[t+15]]}(n)};var Tv=function(){var e;return"object"!=((e=o.g.crypto)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)&&(o.g.crypto=Cv()),"function"!=typeof o.g.crypto.getRandomValues&&(o.g.crypto.getRandomValues=Dv),Rv()};function Dv(e){return Cv().webcrypto.getRandomValues(e)}function Mv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _v=function(t){var n=t.uuid,o=t.video,a=t.videoStartId,i=t.isSandbox,c=t.config,u=void 0===c?{}:c,s=t.orcaRef,d=t.children,p=t.useVideoApiOptions,f=void 0===p?{}:p,g=u.adOverrides,b=(void 0===g?{}:g).domain,v=(0,e.useMemo)((function(){return o||{}}),[o]),m=(0,e.useMemo)((function(){return function(e,t){var r=function(e){return e?"https://d2r02me222rgby.cloudfront.net/api/v1/ansvideos/findByUuid":"https://video-api.washingtonpost.com/api/v1/ansvideos/findByUuid"}(t),n=function(e){var t,r;return e||("undefined"!=typeof window&&(null===(r=window)||void 0===r||null===(t=r.location)||void 0===t?void 0:t.hostname)?window.location.hostname:"washingtonpost.com")}(e);return{videoApiUrl:r,domain:n}}(b,i)}),[b,i]),y=m.videoApiUrl,h=m.domain,w=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lv(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.")}()}((0,e.useReducer)(vt,function(e){return{videoData:e,videoApiDataFailed:!1,originalVideo:null,fetchedByUUID:!1,isForceLoadVideo:!1}}(v)),2),S=w[0],E=w[1],x=S.originalVideo,O=S.videoApiDataFailed,A=S.videoData,C=S.fetchedByUUID,k=S.isForceLoadVideo;!function(t,r){var n=t.dispatchVideoApiEvent,o=t.domain,a=t.originalVideoData,i=t.uuid,l=t.videoApiUrl,c=t.currentVideoData,u=t.propVideoData,s=t.config,d=t.orcaRef,p=r.onSetOriginalVideo,f=void 0===p?function(e){var t=e.type,r=e.videoData;n({type:t,videoData:r})}:p,g=Vn(),b=u._id,v=(a||{})._id,m=(c||{})._id,y=s.debug,h=s.hasNextVideo,w=s.overrideReducedMotion,S=function(e){return e&&Le(e)},E=function(){d.current.resetVideoState(h),d.current.initializeNewVideo(h,w)},x=function(e){var t=e.message;Te("videoApiError",t,i,y),n({type:gt}),Ka(g,ei,ni.API_ERROR,{errorMessage:t,uuid:i},s)},O=function(e){if(!e)throw Error("Video data from API returned empty.");Te(M,"API Success",i,y),v?(n({type:ft,videoData:e[0]}),E()):f({type:dt,videoData:e[0],dispatchVideoApiEvent:n,videoApiUrl:l,domain:o,orcaRef:d})};(0,e.useEffect)((function(){b&&!v&&f({type:st,videoData:u,dispatchVideoApiEvent:n,videoApiUrl:l,domain:o,orcaRef:d}),i&&!S(u)&&i!==m?Ov({videoApiUrl:l,domain:o},i).then(O).catch(x):b&&m&&b!==m?(n({type:pt,videoData:u}),E()):i||S(u)||(n({type:gt}),Ka(g,ei,ni.API_ERROR,{errorMessage:"Video missing UUID and video data is empty."},s))}),[i,b,h])}({dispatchVideoApiEvent:E,domain:h,originalVideoData:x,uuid:n,videoApiUrl:y,currentVideoData:A,propVideoData:v,config:u,orcaRef:s},f);var P=(0,e.useMemo)((function(){return(null==A?void 0:A._id)?A._id:n}),[null==A?void 0:A._id,n]),j=function(t){var r=t.videoStartId,n=t.videoId,o=null!=r?r:null,a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mv(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.")}()}((0,e.useState)((function(){return null!=o?o:Tv()})),2),i=a[0],l=a[1];return(0,e.useEffect)((function(){var e=o||Tv();l(e)}),[n,o]),{uniqueId:i,setVideoStartId:(0,e.useCallback)((function(e){l(e||Tv())}),[]),resetUniqueId:(0,e.useCallback)((function(){l(Tv())}),[])}}({videoStartId:null!=a?a:null,videoId:P}),$=j.uniqueId,I=j.setVideoStartId,R=j.resetUniqueId,T=(0,e.useMemo)((function(){return{originalVideo:x,videoApiDataFailed:O,videoData:A,videoId:P,dispatchVideoApiEvent:E,videoApiUrl:y,domain:h,fetchedByUUID:C,uniqueId:$,isForceLoadVideo:k,resetUniqueId:R,setVideoStartId:I}}),[h,x,O,y,A,P,C,$,k,R,I]);return r().createElement(l.Provider,{value:T},d)};function Bv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}_v.propTypes={video:i().object,domainOverride:i().string,isSandbox:i().bool,debug:i().bool,uuid:i().string,videoStartId:i().string,useVideoApiOptions:i().object,children:i().node};var Nv=function(e){var t=e.config,n=e.orcaRef,o={onSetOriginalVideo:function(e){var r=e.type,o=e.videoData,a=e.dispatchVideoApiEvent,i=e.videoApiUrl,l=e.domain,c=t.liveConfigEnv;!function(e){var t=e.type,r=e.videoData,n=e.liveConfigUrl,o=e.dispatchVideoApiEvent,a=e.videoApiUrl,i=e.domain,l=e.orcaRef,c=function(){o({type:t,videoData:r})};p(r)?function(e,t,r,n,o,a,i){xt(e).then((function(e){if(function(e){var t,r;return!!(null==e||null===(t=e.forceAdditionalProperties)||void 0===t?void 0:t.forceLoadVideo)||!!(null==e||null===(r=e.forceAdditionalProperties)||void 0===r?void 0:r.youtubeVideoId)}(e[t._id]||{})){var l=Ot(e,{},t);return Ct(l,r,n,o,a)}i()}))}(n,r,o,a,i,l,c):c()}({type:r,videoData:o,liveConfigUrl:Me(void 0===c?St:c),orcaRef:n,dispatchVideoApiEvent:a,videoApiUrl:i,domain:l})}};return r().createElement(_v,function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Bv(e,t,r[t])}))}return e}({},e),{useVideoApiOptions:o}))};function zv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Vv(e,t,r[t])}))}return e}function Wv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Uv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wv(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.")}()}Nv.propTypes={config:i().object,orcaRef:i().string,children:i().node.isRequired};var Hv=function(t){var n=t.children,o=t.config,a=void 0===o?{}:o,i=a.isLead,l=a.isLivePreviewEnabled,u=void 0!==l&&l,s=a.isAutoplayOverride,d=a.autoplayLive,b=void 0!==d&&d,v=a.forceNoLoop,h=a.isSubscriber,w=void 0!==h&&h,S=function(t){var r=Uv((0,e.useState)(),2),n=r[0],o=r[1],a=Uv((0,e.useState)(t),2),i=a[0],l=a[1];return(0,e.useEffect)((function(){var e=window.matchMedia("(prefers-reduced-motion: no-preference)");o(!window.matchMedia("(prefers-reduced-motion: no-preference)").matches);var t=function(e){o(!e.matches)};return e.addEventListener("change",t),function(){e.removeEventListener("change",t)}}),[]),{isMotionReduced:null!=i?i:n,setOverrideReducedMotion:l}}(a.reduceMotion),E=S.isMotionReduced,x=S.setOverrideReducedMotion,O=function(t){var r=t.isLead,n=t.isMotionReduced,o=t.isLivePreviewEnabled,a=t.isAutoplayOverride,i=t.autoplayLive,l=t.forceNoLoop,u=t.isSubscriber,s=c().videoData,d=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zv(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.")}()}((0,e.useState)(m),2),b=d[0],v=d[1],y=(0,e.useCallback)((function(e){n&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||v((function(t){return Fv({},t,e)}))}),[n]);return(0,e.useEffect)((function(){if(s&&Le(s)&&void 0!==n)if(n||g(s)||!Ne())v(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(Fv({},m),{isInitialized:!0}));else{var e=Ie(s,l),t=[se.LOOP,se.LOOP_NO_CONTROLS].includes(e),c=!1;!t&&function(e,t){return!(!e||t)}(r,u)&&(c=!0,e=se.AUTO);var d=!1;o&&!f(s)&&!g(s)&&p(s)&&(d=!0,e=se.AUTO);var b=!1;p(s)&&i&&(e=se.AUTO,b=!0),a&&!t&&(e=se.AUTO);var h=a||p(s)&&i||!!e;!h||t||u||d||(c=!0),y({type:e,isLooping:t,isAutoplay:h,isPreroll:c,isLivePreview:d,overrideAutoplayMuteBehavior:b,isInitialized:!0})}}),[n,s,r,o,y,a,l,i,u]),{autoplayState:b,updateAutoplayState:y}}({isLead:i,isMotionReduced:E,isLivePreviewEnabled:u,isAutoplayOverride:s,autoplayLive:b,forceNoLoop:v,isSubscriber:w}),A=O.autoplayState,C=O.updateAutoplayState,k=(0,e.useMemo)((function(){return{autoplayState:A,updateAutoplayState:C,isMotionReduced:E,setOverrideReducedMotion:x}}),[A,C,E,x]);return r().createElement(y.Provider,{value:k},n)};Hv.propTypes={config:i().object,children:i().node};var qv=(0,e.createContext)({init:!1,openId:null,isLoaded:!1,playingId:null,isExpandable:!0,isExpanded:!1,handleClick:function(){},updateContext:function(){}});function Gv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gv(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.")}()}i().node;var Zv=function(t){var n=t.children,o=t.config,a=function(t,r){var n=c().uniqueId,o=Vo(),a=o.sendAnalyticsEvent,i=o.setPlayerType,l=to().isInViewPort,u=(0,e.useContext)(qv),s=(0,e.useMemo)((function(){return function(e,t){var r=t.playingId,n=t.openId,o=t.updateContext,a=e||{};return{playingId:a.playingId||r,openId:a.openId||n,updateStickyContext:a.updateContext||o}}(r,u)}),[r,u]),d=s.playingId,p=s.openId,f=s.updateStickyContext,g=Yv((0,e.useState)(!1),2),b=g[0],v=g[1],m=Yv((0,e.useState)(!1),2),y=m[0],h=m[1],w=Yv((0,e.useState)(!1),2),S=w[0],E=w[1];(0,e.useEffect)((function(){var e=function(e,t,r,n,o){return e||t&&function(e,t,r){return e===r&&t===r}(r,n,o)}(S,b,p,d,n);(function(e,t,r,n,o){return e&&!t&&function(e,t,r){return e!==t&&null!==e||e!==t&&null!==r}(r,n,o)})(y,S,d,n,p)&&a(tt,{label:"close-other-media"}),h(e)}),[p,d,n,b,S,y,a]),(0,e.useEffect)((function(){i(y?"orca-embed-sticky":ot(t))}),[y,t,i]);var x=(0,e.useCallback)((function(){y||a("sticky-player-open",{label:"open-scroll"}),f({openId:n})}),[y,a,f,n]),O=(0,e.useCallback)((function(){f({openId:null}),a(tt,{label:"close-scroll"})}),[a,f]);return(0,e.useEffect)((function(){!function(e,t,r){return!e&&t===r}(l,d,n)?function(e,t,r,n){return e&&t===n&&r===n}(l,d,p,n)&&O():x()}),[l,d,n,p,O,x]),{isStickyEnabled:b,isOpenSticky:y,playingId:d,openId:p,updateStickyContext:f,setOverrideStickyContext:E,setIsStickyEnabled:v,overrideStickyContext:S}}(void 0===o?{}:o,t.stickyPlayerContext),i=a.isStickyEnabled,l=a.isOpenSticky,u=a.playingId,s=a.openId,d=a.updateStickyContext,p=a.setOverrideStickyContext,f=a.setIsStickyEnabled,g=(0,e.useMemo)((function(){return{isStickyEnabled:i,isOpenSticky:l,playingId:u,openId:s,updateStickyContext:d,setOverrideStickyContext:p,setIsStickyEnabled:f}}),[i,l,u,d,p,s,f]);return r().createElement($n.Provider,{value:g},n)};Zv.propTypes={config:i().object,children:i().node,stickyPlayerContext:i().object};var Xv={contentApi:{paths:["taxonomy.primary_section._id","taxonomy.primary_site._id"]},siteService:{paths:["_id"]}};function Kv(e,t){if("string"==typeof e)return e;var r=Xv[t];if(r&&r.paths){var n=function(e,t){var r=!1,n=!0,o=!1,a=void 0;try{for(var i,l=t[Symbol.iterator]();!(n=(i=l.next()).done);n=!0){var c=i.value.split("."),u=e,s=!0,d=!0,p=!1,f=void 0;try{for(var g,b=c[Symbol.iterator]();!(d=(g=b.next()).done);d=!0){var v=g.value;if(!u||!(v in u)){s=!1,u=void 0;break}u=u[v]}}catch(e){p=!0,f=e}finally{try{d||null==b.return||b.return()}finally{if(p)throw f}}if(s&&(r=!0),null!=u)return u}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r?null:void 0}(e,r.paths);return n}console.error("Invalid model: ".concat(t))}function Jv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Jv(e,t,r[t])}))}return e}var em=function(e,t,r,n,o,a,i,l){var c,u,s=(t||{}).additional_properties,d=(void 0===s?{advertising:{}}:s).advertising,p=(void 0===d?{playAds:!0,playVideoAds:!0,videoAdZone:""}:d).videoAdZone,f=e.adOverrides,g=void 0===f?{}:f,b=g.forceAd,v=void 0!==b&&b,m=g.adZoneOverride,y=void 0===m?null:m,h=g.customParamsOverride,w=void 0===h?[]:h,S=g.adTagOverride,E=g.adTimeoutOverride,x=g.preloadAd,O=void 0!==x&&x,A=g.skip,C=g.skipmin,k=g.skipafter,P=e.debugZeus,j=nm(p,v,y),$=tm(t,e);return{adTimeout:E||3,videoAdZone:j,forceAd:v,customParamsOverride:w,adTagOverride:S,preloadAd:O,uuid:t._id,debugZeus:P,isVertical:n,isMuted:!!i||o,playerWidth:om(r),playerHeight:am(r),sections:(null===(c=t.taxonomy)||void 0===c?void 0:c.sections)||[],playerType:rm(t),isLive:a,isPreroll:i,isPlaythrough:l,pageType:Xe(),orcaType:$,videoConfig:Qv({},A&&{skip:A},C&&{skipmin:C},k&&{skipafter:k}),primarySectionId:Kv(t,"contentApi"),avTags:yn(null===(u=t.taxonomy)||void 0===u?void 0:u.tags,";","","text")}},tm=function(e,t){var r=!!(null==t?void 0:t.isCarousel),n=p(e),o=Re(e);return r?"carousel":n?"live":o?"looping":"vod"},rm=function(e){if("undefined"!=typeof window){var t="posttv-embed";return Re(e)?t="posttv-embed-LoopingVideo":!0===Ge()(window,"wp_meta_data.isHomepage")||"homepage"===Ge()(window,"Fusion.metas.contentType.value")?t="posttv-embed-hp":window.self!==window.top?t="posttv-embed-iframe":window.wp_pb&&/video-leaf-page/.test(window.wp_pb.pageName)&&(t="posttv-leaf"),t}},nm=function(e,t,r){return r||(t?"wpni.video.test/appsalwayson":im(e))},om=function(e){var t;return null==e||null===(t=e.current)||void 0===t?void 0:t.clientWidth},am=function(e){var t;return null==e||null===(t=e.current)||void 0===t?void 0:t.clientHeight},im=function(e){return(null==e?void 0:e.includes("_"))||(null==e?void 0:e.includes("/"))?e:e+lm()},lm=function(){var e=gn("wp_devicetype");if(e)return"2"===e?"_tablet":"1"===e?"_mweb":"";var t=xn(),r=/ipod|iphone|ipad/i.test(t),n=/tablet|ipad/i.test(t),o=!n&&(r||/[^-]mobi/i.test(t));return n?"_tablet":o?"_mweb":""};function cm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function um(e,t,r,n,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function sm(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){um(a,n,o,i,l,"next",e)}function l(e){um(a,n,o,i,l,"throw",e)}i(void 0)}))}}function dm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cm(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 pm(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var fm=function(t){var r=Vn(),n=c().videoData,o=void 0===n?{}:n,a=h().autoplayState,i=t.config,l=void 0===i?{}:i,u=t.setPromoState,s=void 0===u?function(){}:u,d=t.spectrumCallback,p=void 0===d?function(){}:d,f=t.promoState,g=void 0===f?"":f,b=t.isVertical,v=void 0!==b&&b,m=t.isLive,y=void 0!==m&&m,w=t.isPreroll,S=void 0!==w&&w,E=dm((0,e.useState)(de.INIT),2),x=E[0],O=E[1],A=dm((0,e.useState)(!1),2),C=A[0],k=A[1],P=dm((0,e.useState)(!1),2),j=P[0],$=P[1],I=dm((0,e.useState)(!1),2),R=I[0],T=I[1],D=dm((0,e.useState)(!1),2),M=D[0],L=D[1],_=dm((0,e.useState)(!1),2),B=_[0],N=_[1],z=lo().adWrapperRef,V=(0,e.useRef)(em(l,o,r,v,To(),y,S,a.isPlaythrough));(0,e.useEffect)((function(){if(V.current=em(l,o,r,v,To(),y,S,a.isPlaythrough),S)return k(!0),void q();if(a.isInitialized){if(!j||B){if(function(e){var t;return null==e||null===(t=e.adOverrides)||void 0===t?void 0:t.skipAd}(l))return L(!0),void T(!0);if(M)return;!Io(l,null==o?void 0:o._id)||Ro()||Oo()?T(!0):(k(!0),q()),$o(a)||T(!0),N(!1)}!j&&o&&Le(o)&&$(!0)}}),[null==o?void 0:o._id,a,B]),(0,e.useEffect)((function(){M&&function(e){var t,r;return!(null==e||null===(t=e.adOverrides)||void 0===t?void 0:t.skipAd)&&((null==e||null===(r=e.adOverrides)||void 0===r?void 0:r.preloadAd)||!e.prefetchCarouselAds)}(l)&&(N(!0),L(!1))}),[M,l]);var F=function(){var e,t=null==z||null===(e=z.current)||void 0===e?void 0:e.irisPlayer;(t||r.current)&&(null==t||t.resize(r.current.clientWidth,r.current.clientHeight))};(0,e.useEffect)((function(){if(null==r?void 0:r.current){var e=new ResizeObserver(F);return e.observe(null==r?void 0:r.current),function(){return null==e?void 0:e.disconnect()}}}),[null==r?void 0:r.current]);var W=(0,e.useCallback)(function(){var e=sm((function(e){var t,r;return pm(this,(function(n){switch(n.label){case 0:return(r=null===(t=z.current)||void 0===t?void 0:t.irisPlayer)?(O(de.LOADING),[4,r.play()]):(O(de.ERROR),e(),[2]);case 1:return n.sent(),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),[z]),U=function(t,r,n,o,a,i){var l=t.current,c=l.debugZeus,u=l.preloadAd,s=l.isPreroll,d=l.adTagOverride,p=l.adTimeout,f=go(),g=f.sendPerformanceEvent,b=f.sendPerformanceMeasure,v=lo(),m=v.adWrapperRef,y=v.adContainerRef,h=Vn(),w=(0,e.useCallback)((function(){return function(e){var t=e.adWrapper,r=e.videoElement,n=e.adContainer,o=e.adTagOverride,a=e.adTimeout,i=e.adSettingsRef;return{videoContainer:t,videoElement:r,adContainer:n,getAdTagUrl:yo((function(){return ho(this,(function(e){switch(e.label){case 0:return o?[2,o]:[4,window.iris.buildUrl(t,{adSettings:i.current,videoElement:r})];case 1:return[2,e.sent()]}}))})),adSettings:{disableCustomPlaybackForIOS10Plus:!0,adsRenderingSettings:{disableUi:!0,useVideoAdUi:!1,uiElements:[]},vastLoadTimeout:1e3*a}}}({adWrapper:m.current,videoElement:h.current,adContainer:y.current,adTagOverride:d,adTimeout:p,adSettingsRef:t})}),[y,m,t,d,p,h]),S=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vo(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.")}()}((0,e.useState)(!1),2),E=S[0],x=S[1],O=(0,e.useCallback)(yo((function(){var e,t,l;return ho(this,(function(d){switch(d.label){case 0:return d.trys.push([0,4,,5]),e=w(),[4,wo(e,c,6e3)];case 1:return d.sent(),function(e,t,r){e(re),t(re,ee),r&&(e(te),t(te,ee,{irisLoaded:"true"}))}(g,b,s),t=new Promise((function(e){var t;null===(t=m.current)||void 0===t||t.irisPlayer.on(me,e)})),u?[4,t]:[3,3];case 2:d.sent(),d.label=3;case 3:return x(!0),n(!0),[3,5];case 4:return l=d.sent(),o(Pe),r(!1),n(!0),null==i||i(l),a&&console.error(l),[3,5];case 5:return[2]}}))})),[m,r,n,a,i,w,s,u,g,b,o,c]);return{isIrisReady:E,initializeAds:O}}(V,k,T,s,l.debug,p),H=U.isIrisReady,q=U.initializeAds;(0,e.useEffect)((function(){function e(){return(e=sm((function(){var e;return pm(this,(function(t){switch(t.label){case 0:return H&&S?(O(de.REQUESTED),[4,null===(e=z.current)||void 0===e?void 0:e.irisPlayer.autoPlay()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[z,H,S,r]),(0,e.useEffect)((function(){C&&(H||g!==Pe||s(ke),H&&g===ke&&(!a.isInitialized||a.isAutoplay&&!a.isLivePreview||s(Pe)))}),[H,C,g,a,s]);var G=(0,e.useCallback)((function(e){var t,r;x!==de.ERROR&&O(de.REQUESTED),s(je),null===(r=z.current)||void 0===r||null===(t=r.irisPlayer)||void 0===t||t.initializeAdDisplayContainer(),setTimeout((function(){W(e)}),[10])}),[x,z,W,s]);return{adState:x,setAdState:O,adSettings:V,shouldShowAds:C,transitionToAd:G,isAdsInitialized:R,isIrisReady:H,setReinitializeAds:N}};fm.propTypes={video:i().object,config:i().object,setPromoState:i().func,transitionToVideo:i().func,autoplayState:i().object,videoID:i().string,isPreroll:i().bool};var gm=function(t){var n=t.children,o=t.config,a=void 0===o?{}:o,i=Dn(),l=i.promoState,u=i.setPromoState,s=c().videoData,d=_e(s),f=p(s),g=fm({config:a,setPromoState:u,promoState:l,isVertical:d,isLive:f}),b=g.adState,v=g.setAdState,m=g.adSettings,y=g.shouldShowAds,h=g.transitionToAd,w=g.isAdsInitialized,S=g.isIrisReady,E=(0,e.useMemo)((function(){return{adState:b,setAdState:v,adSettings:m,shouldShowAds:y,transitionToAd:h,isAdsInitialized:w,isIrisReady:S}}),[b,v,m,y,h,w,S]);return r().createElement(_n.Provider,{value:E},n)};function bm(e){var t,r;return(null==e||null===(r=e.taxonomy)||void 0===r||null===(t=r.tags)||void 0===t?void 0:t.some((function(e){return"force-hd"===e.text})))||Re(e)}function vm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ym(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vm(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.")}()}gm.propTypes={config:i().object,children:i().node};var hm={liveDurationInfinity:!0,capLevelToPlayerSize:!0,maxBufferLength:10,autoStartLoad:!1,startLevel:-1},wm=function(t,r){var n=Vn(),o=c(),a=o.videoId,i=o.videoData,l=o.dispatchVideoApiEvent,u=r.debug,s=r.debugHLS,d=r.hlsConfig,p=void 0===d?hm:d,f=ym((0,e.useState)(null),2),g=f[0],b=f[1],v=ym((0,e.useState)(!1),2),m=v[0],y=v[1];s&&console.log(p);var h=function(e){var r=new t(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mm(e,t,r[t])}))}return e}({},p),{debug:s}));r.on(t.Events.MEDIA_ATTACHED,(function(){Te("hlsAttached",e,a,u)})),r.on(t.Events.MANIFEST_PARSED,(function(e,t){Te("hlsManifestParsed",t,a,u)})),r.on(t.Events.SUBTITLE_TRACK_LOADED,(function(){qn(n.current,V)})),r.loadSource(e),r.attachMedia(n.current),r.startLoad(),b(r)};return(0,e.useEffect)((function(){var e=bm(i);g&&e&&g.on(t.Events.MANIFEST_LOADED,(function(){g.startLevel=g.levels.length-1}))}),[g]),{hls:g,removeHLS:function(){g&&(g.off(t.Events.MEDIA_ATTACHED),g.off(t.Events.MANIFEST_PARSED),g.detachMedia(),g.destroy(),b(null),qn(n.current,K))},setUpVideoSource:function(){var e=bm(i),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.filter((function(e){var t;return"ts"===e.stream_type&!(null===(t=e.url)||void 0===t?void 0:t.endsWith("hlsv4_master.m3u8"))})).reduce((function(e,t){return(null==e?void 0:e.bitrate)>(null==t?void 0:t.bitrate)?e:t}),void 0)||function(e,t){return function(e,t,r){return e.filter((function(e){return e.bitrate<=r&&e.stream_type===t})).reduce((function(e,t){return(null==e?void 0:e.bitrate)>(null==t?void 0:t.bitrate)?e:t}),void 0)}(e,"mp4",arguments.length>2&&void 0!==arguments[2]&&arguments[2]?5400:"ios"===t||"android"===t?600:2e3)}(e,En(),t)}(i.streams,e);r?Sm(r,t,n.current)?(h(r.url),y(!0)):n.current.src=r.url:l({type:gt})},waitForCaptionsToLoad:m}};wm.propTypes={isCarousel:i().bool,config:i().shape({debug:i().bool,debugHLS:i().bool,hlsConfig:i().object})};var Sm=function(e,t,r){return t.isSupported()&&"mp4"!==e.stream_type&&e.url!==(null==r?void 0:r.url)},Em=function(t){var n=t.children,o=t.Hls,a=void 0===o?{}:o,i=t.config,l=wm(a,void 0===i?{}:i),c=l.hls,u=l.removeHLS,s=l.setUpVideoSource,d=l.waitForCaptionsToLoad,p=(0,e.useMemo)((function(){return{isSupported:"function"==typeof(null==a?void 0:a.isSupported)&&a.isSupported(),hls:c,removeHLS:u,setUpVideoSource:s,waitForCaptionsToLoad:d}}),[a,c,u,s,d]);return r().createElement(Zo.Provider,{value:p},n)};Em.propTypes={Hls:i().func,children:i().node,config:i().shape({hlsConfig:i().object,debug:i().bool,debugHLS:i().bool})};var xm=(0,e.createContext)({Popover:null}),Om=function(t){var n=t.children,o=t.Popover,a=void 0===o?null:o,i=(0,e.useMemo)((function(){return{Popover:a}}),[a]);return r().createElement(xm.Provider,{value:i},n)};Om.propTypes={Popover:i().object,children:i().node,styled:i().func};var Am=function(e){var t=e.children,n=e.config,o=e.stickyPlayerContext,a=e.orcaDeps,i=void 0===a?{}:a,l=i.Hls,c=i.Popover;return r().createElement(Em,{Hls:l,config:n},r().createElement(Om,{Popover:c},r().createElement(Hv,{config:n},r().createElement(ro,null,r().createElement(Fo,{config:n},r().createElement(Zv,{config:n,stickyPlayerContext:o},r().createElement(co,null,r().createElement(bo,{config:n},r().createElement(Mn,null,r().createElement(gm,{config:n},t))))))))))};function Cm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Am.propTypes={children:i().node.isRequired,config:i().object,stickyPlayerContext:i().object,orcaDeps:i().shape({Hls:i().object,Popover:i().object})};var km=(0,e.forwardRef)((function(t,n){var o=t.uuid,a=t.video,i=t.videoStartId,l=t.onVideoEnded,c=void 0===l?function(){}:l,u=t.onVideoRendered,s=void 0===u?function(){}:u,d=t.config,p=void 0===d?{}:d,f=t.promoEnabled,g=void 0===f||f,b=t.isSandbox,v=void 0!==b&&b,m=t.stickyPlayerContext,y=void 0===m?{}:m,h=t.orcaDeps,w={onVideoEnded:c,onVideoRendered:s,config:p,promoEnabled:g,isSandbox:v},S=(0,e.useRef)(),E=null!=n?n:S;return r().createElement(Ev,{DataProviderComponent:Nv,OptionalFeatureStack:Am,uuid:o,video:a,videoStartId:i,isSandbox:v,config:p,orcaRef:E,stickyPlayerContext:y,orcaDeps:h},r().createElement(hv,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Cm(e,t,r[t])}))}return e}({forwardedRef:E},w)))}));km.displayName="Orca",km.propTypes=wv;var Pm=(0,e.memo)(km);window.orca=window.orca||{},window.orca.version=window.orca.version||{},window.orca.version["orca-ui"]="0.5.11";const jm=Pm})(),module.exports=a})();
//# sourceMappingURL=main.js.map