(()=>{var e,t,n={35:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},141:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},152:(e,t,n)=>{e.exports=n(218)()},168:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(141),o=n.n(r),i=n(387),a=n.n(i)()(o());a.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=a},218:(e,t,n)=>{"use strict";var r=n(905);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){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 n={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:i,resetWarningCache:o};return n.PropTypes=n,n}},255:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},275:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],l=0;l<e.length;l++){var c=e[l],u=r.base?c[0]+r.base:c[0],s=i[u]||0,d="".concat(u," ").concat(s);i[u]=s+1;var p=n(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,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:g,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.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;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=n(i[a]);t[l].references--}for(var c=r(e,o),u=0;u<i.length;u++){var s=n(i[u]);0===t[s].references&&(t[s].updater(),t.splice(s,1))}i=c}}},287:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(141),o=n.n(r),i=n(387),a=n.n(i)()(o());a.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=a},326:e=>{"use strict";e.exports=require("react")},328:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},380: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))}}},387:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var s=[].concat(e[u]);r&&a[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),n&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=n):s[2]=n),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),t.push(s))}},t}},468:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},598:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(141),o=n.n(r),i=n(387),a=n.n(i)()(o());a.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=a},734:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(141),o=n.n(r),i=n(387),a=n.n(i)()(o());a.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=a},905:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},948:()=>{},986:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(141),o=n.n(r),i=n(387),a=n.n(i)()(o());a.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=a}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e](i,i.exports,o),i.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(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},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.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{default:()=>Fm});var e=o(326),t=o.t(e,2),n=o.n(e),r=o(152),a=o.n(r),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,n=new Date(e);if(n.setHours(n.getHours()+1),t>n)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,n=new Date(e);return n.setMinutes(n.getMinutes()),t>n}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)};function w(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function S(e,t){if(e===t)return!0;if(e&&t&&"object"===(void 0===e?"undefined":w(e))&&"object"===(void 0===t?"undefined":w(t))){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(!S(e[r],t[r]))return!1;return!0}if(e.valueOf!==Object.prototype.valueOf)return function(e,t){return e===t||e!=e&&t!=t}(e.valueOf(),t.valueOf());if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var o=Object.keys(e);if(o.length!==Object.keys(t).length)return!1;for(var i=0;i<o.length;i++)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(var a=0;a<o.length;a++){var l=o[a];if(!S(e[l],t[l]))return!1}return!0}return e!=e&&t!=t}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){A(e,t,n[t])}))}return e}function x(e){return null!==e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t);var t}function C(e){if(!x(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function k(e){if(!x(e))return!1;if(Array.isArray(e))return!1;var t=Object.getPrototypeOf(e);return t!==Object.prototype&&null!==t}function P(e,t,n){for(var r=t.length,o=0;o<r;o++){var i=t[o];if(x(i)){if(C(i)){if(n.has(i))continue;n.set(i,!0)}for(var a=Object.keys(i),l=a.length,c=0;c<l;c++){var u=a[c],s=i[u],d=e[u];if(void 0!==s)if(k(s))e[u]=s;else if(Array.isArray(s)){var p=Array.isArray(d)?function(e){if(Array.isArray(e))return E(e)}(g=d)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(g)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(g)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():[];e[u]=p,P(p,[s],n)}else if(C(s)){var f=C(d)?O({},d):{};e[u]=f,P(f,[s],n)}else e[u]=s}}}var g;return e}function j(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=new WeakMap;return P(C(e)?O({},e):{},n,o)}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I,R,T="https://www.washingtonpost.com/player/prod/img/video-thumbnail-bg.png",D="https://www.washingtonpost.com",M={PROD:"".concat(D,"/prism/api"),SANDBOX:"".concat(D,"/prism/api")},L="INIT",B="COMPLETE",N="controlsTouch",_="videoApiData",z="fullscreenChange",V="ended",F="error",W="play",U="timeupdate",H="captionsloaded",q="fullscreen",G="unfullscreen",Y="start",Z="NEW_VIDEO_DATA",X="AD_COMPLETE",K="AD_START",J="AD_ERROR",Q="AD_BYPASSED",ee="AD_TIMEOUT",te="destroyed",ne="orcaRender",re="earlyExit",oe="orca-render",ie="orca-ready",ae="orca-iris-ready",le="orca-ad-start",ce="orca-promo-click",ue="homepage",se="article page",de={AUTOPLAY:"autoplay",LOOPING_PROMO:"looping-promo",LOOPING_VIDEO:"looping-video",LOOPING_NO_CONTROLS:"looping-no-controls"},pe={HD:"force-hd",YOUTUBE:"force-youtube"},fe=(I=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}({},pe),R=null!=(R={BURNED_HEADLINE:"headline-burned",BURNED_CAPTIONS:"captions-burned"})?R:{},Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(R)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(R)).forEach((function(e){Object.defineProperty(I,e,Object.getOwnPropertyDescriptor(R,e))})),I),ge={AUTO:"autoplay",LOOP:"loop",LOOP_NO_CONTROLS:"loop-no-controls"},be={INIT:"INIT",REQUESTED:"REQUESTED",LOADING:"LOADING",LOADED:"LOADED",PLAYING:"PLAYING",COMPLETE:"COMPLETE",ERROR:"ERROR",BYPASSED:"BYPASSED",TIMEOUT:"TIMEOUT"},ve="adDisabled",me="adError",ye="adCompleted",he="adBlank",we="adNotSupported",Se="adRequest",Ee="adLoad",Ae="adStart",Oe="complete",xe="adPlay",Ce="adPause",ke="skipReady",Pe="adTimeChange",je="adError",$e="adBypassed",Ie="LOADING",Re="READY",Te="BUFFER",De="HIDDEN";function Me(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Be(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=null==e||null===(n=e.taxonomy)||void 0===n||null===(t=n.tags)||void 0===t?void 0:t.map((function(e){return e.text})),i=!r&&[de.LOOPING_PROMO,de.LOOPING_NO_CONTROLS].some((function(e){return null==o?void 0:o.includes(e)}));return i?ge.LOOP_NO_CONTROLS:!r&&(null==o?void 0:o.includes(de.LOOPING_VIDEO))?ge.LOOP:(null==o?void 0:o.includes(de.AUTOPLAY))?ge.AUTO:null}function Ne(e){var t=Be(e);return t===ge.LOOP||t===ge.LOOP_NO_CONTROLS}function _e(e,t,n){var r;if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]&&console.log(e,t),null===(r=window)||void 0===r?void 0:r.orcaPlayers){var o=window.orcaPlayers[n];o&&o.events.push(Le({},e,t))}}var ze=function(e){var t,n=null==e||null===(t=e.taxonomy)||void 0===t?void 0:t.tags;return(null==n?void 0:n.filter((function(e){return e.text===fe.BURNED_HEADLINE})).length)>0},Ve=function(e){return e=e.replace(/[^a-z0-9\s-]/gi,""),"https://d2p9l91d5g68ru.cloudfront.net/LiveConfig/".concat(e,".json")};function Fe(e){var t;return!!(e&&e.streams&&(null===(t=e.streams[0])||void 0===t?void 0:t.url))}function We(e){return"".concat(e?M.SANDBOX:M.PROD,"/video-center-find-by-uuid")}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.uuid,r=t.domain,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["uuid","domain"]);try{var i=new URL(e),a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Le(e,t,n[t])}))}return e}({uuid:n,unpublished:!1,includePubEnded:!1},o);return r&&(a.domain=r),i.searchParams.set("query",JSON.stringify(a)),i}catch(t){return console.error("Error building PCS find-by-uuid URL for ".concat(e),t),null}}function He(e,t){return qe.apply(this,arguments)}function qe(){var e;return e=function(e,t){var n,r,o,i=arguments;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(a){switch(a.label){case 0:n=i.length>2&&void 0!==i[2]?i[2]:{},r=Ue(e,t),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(r,n)];case 2:return[4,a.sent().json()];case 3:return o=a.sent(),Array.isArray(o)?[2,o]:[2,null];case 4:return a.sent(),[2,null];case 5:return[2]}}))},qe=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Me(i,r,o,a,l,"next",e)}function l(e){Me(i,r,o,a,l,"throw",e)}a(void 0)}))},qe.apply(this,arguments)}var Ge=function(e){var t,n;return e&&((null===(t=e.additional_properties)||void 0===t?void 0:t.vertical)||"vertical"===(null===(n=e.additional_properties)||void 0===n?void 0:n.videoCategory)||!1)};function Ye(){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 Ze(){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)},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.self!==window.top?document.referrer:window.location.href;try{if(e=Ye(e)){var t=e.split("."),n=t.length,r="co"===t[n-2]?3:2;if(n>=r){for(var o=[];r;)o.push(t[n-r]),r--;e=o.join(".")}}}catch(e){console.log(e)}return e}(e);if(t(n)||t(e))return!0;var r=Ye(e);return!!/www-washingtonpost-com\.cdn\.ampproject\.org|wpit\.nile\.works|washpost\.arcpublishing\.com/.test(r)}function Xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ke=[],Je=function(e,t){var n,r,o,i,a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).maxWait,l=0;function c(){return l=Date.now(),clearTimeout(r),r=void 0,e.apply(i,o)}function u(){for(var e=arguments.length,u=new Array(e),s=0;s<e;s++)u[s]=arguments[s];var d=Date.now();if(null!=a&&void 0===n&&void 0===r&&(l=d),o=u,i=this,clearTimeout(n),n=setTimeout((function(){n=void 0,c()}),t),null!=a){var p=d-l;if(p>=a)return clearTimeout(n),n=void 0,clearTimeout(r),r=void 0,c();void 0===r&&(r=setTimeout((function(){clearTimeout(n),n=void 0,r=void 0,c()}),a-p))}}return u.cancel=function(){clearTimeout(n),clearTimeout(r),n=void 0,r=void 0,l=0,o=i=void 0},u}((function(){for(var e=[],t=0;Ke.length>0&&t<10;t++){var n=Ke.pop(),r=n.name,o=n.data;e.push({name:r,data:o})}var i;i={postBody:function(){var e="";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var n=t.name,r=t.data,o={sourcetype:"httpevent",event:{name:n,data:r}};r.evtTime&&(o.time=Math.floor(r.evtTime/1e3)),e+=JSON.stringify(o)})),e}(e)},fetch("https://d1get58iwmjrxx.cloudfront.net/collector",{method:"POST",body:i.postBody}).then((function(e){})).catch((function(e){console.error(e)})),Ke.length&&Je()}),1e4,{maxWait:1e4}),Qe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"send",value:function(e,t){var n;n={name:e,data:Object.assign({evtName:e,evtTime:Date.now()},t)},Ke.push(n),Je()}}],null&&Xe(t.prototype,null),n&&Xe(t,n),e}(),et=function(e){var t,n;return null===(n=e.taxonomy)||void 0===n||null===(t=n.tags)||void 0===t?void 0:t.map((function(e){return e.text})).includes(pe.YOUTUBE)},tt={homepage:"homepage",leaf:"leaf","article page":"embed","interactive graphics":"graphics",iframe:"iframe",other:"embed"},nt={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"},rt=function(){if("undefined"!=typeof window){if("homepage"===(null!==(o=null===(r=window)||void 0===r||null===(n=r.Fusion)||void 0===n||null===(t=n.metas)||void 0===t||null===(e=t.contentType)||void 0===e?void 0:e.value)&&void 0!==o?o:""))return ue;if(function(){var e,t;if((null!==(t=null===(e=window)||void 0===e?void 0:e.pageName)&&void 0!==t?t:"").startsWith("video-leaf-page"))return!0}())return"leaf";if(function(){var e,t,n,r=null!==(n=null===(t=window)||void 0===t||null===(e=t.Fusion)||void 0===e?void 0:e.template)&&void 0!==n?n:"";return r.startsWith("article")||r.startsWith("template/article")||function(){var e,t,n,r,o;if("LUF"===window.pageType)return!0;var i=null===(o=window)||void 0===o||null===(r=o.__NEXT_DATA__)||void 0===r||null===(n=r.props)||void 0===n||null===(t=n.pageProps)||void 0===t||null===(e=t.globalContent)||void 0===e?void 0:e.subtype;return"highlights"===i||"live-all"===i}()}())return se;if(function(){var e,t;return"interactive graphics"===(null!==(t=null===(e=window)||void 0===e?void 0:e.wp_content_type)&&void 0!==t?t:"")}())return"interactive graphics";if("wpvIframe"===window.pageType||/washingtonpost\.com\/(video|posttv)\/c\/embed/.test(window.location.href))return"iframe"}var e,t,n,r,o;return"other"},ot="video-start",it="video-pause",at="video-unpause",lt="video-autoplay",ct="sticky-player-close",ut="video_progress",st="youtube-embed",dt=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},pt=function(e){var t=rt();return t&&e?"".concat(e,"-").concat(tt[t]):tt[t]},ft=function(e,t){return t.type===ge.LOOP_NO_CONTROLS?"looping-no-controls":e};function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gt(e,t,n[t])}))}return e}function vt(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var mt="SET_ORIGINAL",yt="SET_ORIGINAL_FROM_API",ht="SET_NEXT",wt="SET_NEXT_FROM_API",St="SET_API_FAILED",Et="SET_NEXT_FROM_FORCE_LOAD",At=function(e,t){switch(t.type){case yt:return{videoData:t.videoData,videoApiDataFailed:!1,originalVideo:t.videoData,fetchedByUUID:!0};case St:return vt(bt({},e),{videoApiDataFailed:!0});case ht:return vt(bt({},e),{videoData:t.videoData});case wt:return vt(bt({},e),{videoData:t.videoData,videoApiDataFailed:!1});case mt:return vt(bt({},e),{videoData:t.videoData,originalVideo:t.videoData});case Et:return vt(bt({},e),{videoData:t.videoData,originalVideo:t.videoData,isForceLoadVideo:!0});default:return e}};function Ot(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function xt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ot(i,r,o,a,l,"next",e)}function l(e){Ot(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kt(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var Pt="prod",jt=function(){var e=xt((function(e,t,n){var r,o;return kt(this,(function(i){return n?[2,null]:(r=e.videoApiUrl,o=e.domain,[2,He(r,{uuid:t,domain:o},{cache:"no-cache"})])}))}));return function(t,n,r){return e.apply(this,arguments)}}(),$t=function(){var e=xt((function(e){var t;return kt(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,fetch(e,{cache:"no-cache"})];case 1:return[4,n.sent().json()];case 2:return[2,n.sent()];case 3:return t=n.sent(),console.error("Error retrieving live config",t),[2,null];case 4:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),It=function(e,t,n){var r=j({},n,(null==t?void 0:t[0])||{});return Rt(e,r)},Rt=function(e,t){var n=(null==e?void 0:e[t._id])||{};if(Object.keys(n).length>0){if(n.forceStatus&&(t.status=n.forceStatus,d(t)&&delete t.additional_properties.publicationEndDate),n.forceTags){var r;t.taxonomy=t.taxonomy||{};var o=(null===(r=t.taxonomy)||void 0===r?void 0:r.tags.map((function(e){return e.text})))||[];n.forceTags.forEach((function(e){o.includes(e)||t.taxonomy.tags.push({text:e})}))}return n.forceAdditionalProperties&&(t.additional_properties=t.additional_properties||{},Object.assign(t.additional_properties,n.forceAdditionalProperties)),t}return t},Tt=function(){var e=xt((function(e,t,n,r,o){var i,a,l,c;return kt(this,(function(u){switch(u.label){case 0:return l=null===(i=e.additional_properties)||void 0===i?void 0:i.youtubeVideoId,et(e)&&l?[2,t({type:ht,videoData:e})]:(c=null==e||null===(a=e.additional_properties)||void 0===a?void 0:a.forceLoadVideo)?[4,Dt(c,n,r,o,t)]:[3,2];case 1:return[2,u.sent()];case 2:return[2]}}))}));return function(t,n,r,o,i){return e.apply(this,arguments)}}(),Dt=function(){var e=xt((function(e,t,n,r,o){var i;return kt(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,He(t,{uuid:e,domain:n},{cache:"no-cache"})];case 1:return(i=a.sent())?(_e(_,!0,e),r.current.resetVideoState(!1),o({type:Et,videoData:i[0]}),r.current.initializeNewVideo(!1),[3,3]):[2];case 2:return a.sent(),console.error("Cannot fetch video data for video ID: "+e),Qe.send("errorGettingVideoData",{userAgent:window.navigator.userAgent,href:window.location.href,errorMessage:"Video data not found for video ID: "+e}),[3,3];case 3:return[2]}}))}));return function(t,n,r,o,i){return e.apply(this,arguments)}}(),Mt=function(e,t,n,r,o,i,a){S(e,t)||(clearInterval(n.current),r({type:ht,videoData:t}),s(t)?o.current.resetVideoState(!1):d(t)&&a&&i({status:L}))},Lt="colors",Bt="sizes",Nt="space",_t={gap:Nt,gridGap:Nt,columnGap:Nt,gridColumnGap:Nt,rowGap:Nt,gridRowGap:Nt,inset:Nt,insetBlock:Nt,insetBlockEnd:Nt,insetBlockStart:Nt,insetInline:Nt,insetInlineEnd:Nt,insetInlineStart:Nt,margin:Nt,marginTop:Nt,marginRight:Nt,marginBottom:Nt,marginLeft:Nt,marginBlock:Nt,marginBlockEnd:Nt,marginBlockStart:Nt,marginInline:Nt,marginInlineEnd:Nt,marginInlineStart:Nt,padding:Nt,paddingTop:Nt,paddingRight:Nt,paddingBottom:Nt,paddingLeft:Nt,paddingBlock:Nt,paddingBlockEnd:Nt,paddingBlockStart:Nt,paddingInline:Nt,paddingInlineEnd:Nt,paddingInlineStart:Nt,top:Nt,right:Nt,bottom:Nt,left:Nt,scrollMargin:Nt,scrollMarginTop:Nt,scrollMarginRight:Nt,scrollMarginBottom:Nt,scrollMarginLeft:Nt,scrollMarginX:Nt,scrollMarginY:Nt,scrollMarginBlock:Nt,scrollMarginBlockEnd:Nt,scrollMarginBlockStart:Nt,scrollMarginInline:Nt,scrollMarginInlineEnd:Nt,scrollMarginInlineStart:Nt,scrollPadding:Nt,scrollPaddingTop:Nt,scrollPaddingRight:Nt,scrollPaddingBottom:Nt,scrollPaddingLeft:Nt,scrollPaddingX:Nt,scrollPaddingY:Nt,scrollPaddingBlock:Nt,scrollPaddingBlockEnd:Nt,scrollPaddingBlockStart:Nt,scrollPaddingInline:Nt,scrollPaddingInlineEnd:Nt,scrollPaddingInlineStart:Nt,fontSize:"fontSizes",background:Lt,backgroundColor:Lt,backgroundImage:Lt,borderImage:Lt,border:Lt,borderBlock:Lt,borderBlockEnd:Lt,borderBlockStart:Lt,borderBottom:Lt,borderBottomColor:Lt,borderColor:Lt,borderInline:Lt,borderInlineEnd:Lt,borderInlineStart:Lt,borderLeft:Lt,borderLeftColor:Lt,borderRight:Lt,borderRightColor:Lt,borderTop:Lt,borderTopColor:Lt,caretColor:Lt,color:Lt,columnRuleColor:Lt,fill:Lt,outline:Lt,outlineColor:Lt,stroke:Lt,textDecorationColor:Lt,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Bt,minBlockSize:Bt,maxBlockSize:Bt,inlineSize:Bt,minInlineSize:Bt,maxInlineSize:Bt,width:Bt,minWidth:Bt,maxWidth:Bt,height:Bt,minHeight:Bt,maxHeight:Bt,flexBasis:Bt,gridTemplateColumns:Bt,gridTemplateRows:Bt,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"},zt=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,Vt=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,zt))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ft=Symbol.for("sxs.internal"),Wt=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Ut=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ht}=Object.prototype,qt=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),Gt=/\s+(?![^()]*\))/,Yt=e=>t=>e(..."string"==typeof t?String(t).split(Gt):[t]),Zt={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:Yt(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:Yt(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:Yt(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:Yt(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:Yt(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:Yt(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},Xt=/([\d.]+)([^]*)/,Kt=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,Jt=(e,t)=>e in Qt&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${qt(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${qt(e)}:${n}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},en=e=>e?e+"-":"",tn=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,o,i,a)=>"$"==i==!!o?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?en(t)+(a.includes("$")?"":en(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),nn=/\s*,\s*(?![^()]*\))/,rn=Object.prototype.toString,on=(e,t,n,r,o)=>{let i,a,l;const c=(e,t,n)=>{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===rn&&(!r.utils[e]||!t.length);if(e in r.utils&&!b){const t=r.utils[e];if(t!==a){a=t,d(t(s)),a=null;continue}}else if(e in Zt){const t=Zt[e];if(t!==l){l=t,d(t(s)),l=null;continue}}if(g&&(p=u.slice(1)in r.media?"@media "+r.media[u.slice(1)]:u,u=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=Xt.test(t),l=.0625*(a?-1:1),[c,u]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+c+":"+("="!==n[0]&&1===n.length?u.replace(Xt,((e,t,r)=>Number(t)+l*(">"===n?1:-1)+r)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+c+":"+(1===o.length?i.replace(Xt,((e,t,n)=>Number(t)+l*(">"===o?-1:1)+n)):i):"")+")"}))),b){const e=g?n.concat(u):[...n],r=g?[...t]:Kt(t,u.split(nn));void 0!==i&&o(an(...i)),i=void 0,c(s,r,e)}else void 0===i&&(i=[[],t,n]),u=g||36!==u.charCodeAt(0)?u:`--${en(r.prefix)}${u.slice(1).replace(/\$/g,"-")}`,s=b?s:"number"==typeof s?s&&e in ln?String(s)+"px":String(s):tn(Jt(e,null==s?"":s),r.prefix,r.themeMap[e]),i[0].push(`${g?`${u} `:`${qt(u)}:`}${s}`)}}var p,f};d(e),void 0!==i&&o(an(...i)),i=void 0};c(e,t,n)},an=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,ln={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},cn=e=>String.fromCharCode(e+(e>25?39:97)),un=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=cn(t%52)+n;return cn(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),sn=["themed","global","styled","onevar","resonevar","allvar","inline"],dn=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},pn=e=>{let t;const n=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((n,r)=>{const{cssText:o}=n;let i="";if(o.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return n.cssRules.length?`${i}${o}`:""}return o})).join("")},r=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t]}const o=Object(e).styleSheets||[];for(const e of o)if(dn(e)){for(let o=0,i=e.cssRules;i[o];++o){const a=Object(i[o]);if(1!==a.type)continue;const l=Object(i[o+1]);if(4!==l.type)continue;++o;const{cssText:c}=a;if(!c.startsWith("--sxs"))continue;const u=c.slice(14,-3).trim().split(/\s+/),s=sn[u[0]];s&&(t||(t={sheet:e,reset:r,rules:{},toString:n}),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:r,toString:n}}const{sheet:i,rules:a}=t;for(let e=sn.length-1;e>=0;--e){const t=sn[e];if(!a[t]){const n=sn[e+1],r=a[n]?a[n].index:i.cssRules.length;i.insertRule("@media{}",r),i.insertRule(`--sxs{--sxs:${e}}`,r),a[t]={group:i.cssRules[r+1],index:r,cache:new Set([e])}}fn(a[t])}};return r(),t},fn=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},gn=Symbol(),bn=Vt(),vn=(e,t)=>bn(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[Ft]){null==r.type&&(r.type=t[Ft].type);for(const e of t[Ft].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(mn(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),yn(e,r,t)})),mn=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${en(o.prefix)}c-${un(r)}`,a=[],l=[],c=Object.create(null),u=[];for(const e in n)c[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){s=c,d=t,Ht.call(s,d)||(c[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&u.push(t);const o=n[e],i=[r,o,!Ut(o)];a.push(i)}}var s,d;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const r=[n,t,!Ut(t)];l.push(r)}return[i,r,a,l,c,u]},yn=(e,t,n)=>{const[r,o,i,a]=hn(t.composers),l="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;n<t[gn].length;n++){const[r,o]=t[gn][n];e.rules[r].apply(o)}return t[gn]=[],null}return t[gn]=[],t.rules={},sn.forEach((e=>t.rules[e]={apply:n=>t[gn].push([e,n])})),t})(n):null,c=(l||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,s=s=>{s="object"==typeof s&&s||Sn;const{css:d,...p}=s,f={};for(const e in i)if(delete p[e],e in s){let t=s[e];"object"==typeof t&&t?f[e]={"@initial":i[e],...t}:(t=String(t),f[e]="undefined"!==t||a.has(e)?t:i[e])}else f[e]=i[e];const g=new Set([...o]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),on(o,[`.${r}`],[],e,(e=>{c.styled.apply(e)})));const t=wn(i,f,e.media),l=wn(a,f,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${r}-${un(i)}-${t}`;g.add(o);const l=(a?n.rules.resonevar:n.rules.onevar).cache,u=a?c.resonevar:c.onevar;l.has(o)||(l.add(o),on(i,[`.${o}`],[],e,(e=>{u.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${un(i)}-${o}`;g.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),on(i,[`.${t}`],[],e,(e=>{c.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${r}-i${un(d)}-css`;g.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),on(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 Wt(s,{className:r,selector:u,[Ft]:t,toString:()=>(n.rules.styled.cache.has(r)||s(),r)})},hn=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,a,l]of e){""===t&&(t=i),n.push(i),o.push(...l);for(const e in a){const t=a[e];(void 0===r[e]||"undefined"!==t||l.includes(t))&&(r[e]=t)}}return[t,n,r,new Set(o)]},wn=(e,t,n,r)=>{const o=[];e:for(let[i,a,l]of e){if(l)continue;let e,c=0,u=!1;for(e in i){const r=i[e];let o=t[e];if(o!==r){if("object"!=typeof o||!o)continue e;{let e,t,i=0;for(const a in o){if(r===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),u=!0}c+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[c]=o[c]||[]).push([r?"cv":`${e}-${i[e]}`,a,u])}return o},Sn={},En=Vt(),An=(e,t)=>En(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=un(r);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}on(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return Wt(r,{toString:r})})),On=Vt(),xn=(e,t)=>On(e,(()=>n=>{const r=`${en(e.prefix)}k-${un(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];on(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return Wt(o,{get name(){return o()},toString:o})})),Cn=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+en(this.prefix)+en(this.scale)+this.token}toString(){return this.computedValue}},kn=Vt(),Pn=(e,t)=>kn(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${en(e.prefix)}t-${un(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${en(e.prefix)}${t}-${n}`,l=tn(String(r[t][n]),e.prefix,t);i[t][n]=new Cn(n,l,t,e.prefix),a.push(`${o}:${l}`)}}const l=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const o=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(o)}return n};return{...i,get className(){return l()},selector:o,toString:l}})),jn=Vt(),$n=Vt(),In=Object.defineProperty,Rn=Object.defineProperties,Tn=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,Bn=(e,t,n)=>t in e?In(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nn=(e,t)=>{for(var n in t||(t={}))Mn.call(t,n)&&Bn(e,n,t[n]);if(Dn)for(var n of Dn(t))Ln.call(t,n)&&Bn(e,n,t[n]);return e},_n={"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)"},zn="wpds",Vn="767px",Fn="900px",Wn="1024px",Un="1280px",Hn="1440px",qn=(t=>{const n=(e=>{let t=!1;const n=jn(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{..._t},utils:"object"==typeof e.utils&&e.utils||{}},l=pn(o),c={css:vn(a,l),globalCss:An(a,l),keyframes:xn(a,l),createTheme:Pn(a,l),reset(){l.reset(),c.theme.toString()},theme:{},sheet:l,config:a,prefix:n,getCssText:l.toString,toString:l.toString};return String(c.theme=c.createTheme(i)),c}));return t||n.reset(),n})(t);return n.styled=(({config:t,sheet:n})=>$n(t,(()=>{const r=vn(t,n);return(...t)=>{const n=r(...t),o=n[Ft].type,i=e.forwardRef(((t,r)=>{const i=t&&t.as||o,{props:a,deferredInjector:l}=n(t);return delete a.as,a.ref=r,l?e.createElement(e.Fragment,null,e.createElement(i,a),e.createElement(l,null)):e.createElement(i,a)}));return i.className=n.className,i.displayName=`Styled.${o.displayName||o.name||o}`,i.selector=n.selector,i.toString=()=>n.selector,i[Ft]=n[Ft],i}})))(n),n})({prefix:zn,theme:{colors:Nn(Nn(Nn({},{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)"}),_n),{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=>Rn(e,Tn({headline:"$110",body:"$160",meta:"$125",subhead:"$meta"})))(Nn({},{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: ${Vn})`,md:`(min-width: calc(${Vn} + 1px)) and (max-width: ${Fn})`,lg:`(min-width: calc(${Fn} + 1px)) and (max-width: ${Wn})`,xl:`(min-width: calc(${Wn} + 1px)) and (max-width: ${Un})`,xxl:`(min-width: calc(${Un} + 1px)) and (max-width: ${Hn})`,notSm:`(min-width: calc(${Vn} + 1px))`,notMd:`(min-width: calc(${Fn} + 1px))`,notLg:`(min-width: calc(${Wn} + 1px))`,notXl:`(min-width: calc(${Un} + 1px))`,notXxl:`(min-width: calc(${Hn} + 1px ))`,minSm:`(min-width: calc(${Vn} + 1px))`,minMd:`(min-width: calc(${Fn} + 1px))`,minLg:`(min-width: calc(${Wn} + 1px))`,minXl:`(min-width: calc(${Un} + 1px))`,minXxl:`(min-width: calc(${Hn} + 1px ))`,maxSm:`(max-width: ${Vn})`,maxMd:`(max-width: ${Fn})`,maxLg:`(max-width: ${Wn})`,maxXl:`(max-width: ${Un})`,maxXxl:`(max-width: ${Hn})`,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:Gn,css:Yn,globalCss:Zn,keyframes:Xn,getCssText:Kn,theme:Jn,createTheme:Qn,config:er,reset:tr}=qn,nr=(er.utils,Qn(`${zn}-dark.${zn}-dark`,{colors:Nn(Nn(Nn({},{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)"}),_n),{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"})})),rr={get className(){return nr.className,`${zn}-dark`},selector:nr.selector,colors:nr.colors,toString:()=>(nr.toString(),`${zn}-dark`)};function or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Zn({":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)"}]}),Zn({"@dark":Nn({},Object.keys(rr.colors).reduce(((e,t)=>{let n=rr.colors[t],r="$"===n.value.substring(0,1)?`$colors${n.value}`:n.value;return Nn({[n.variable]:r},e)}),{}))});var ir={MINI:"mini",SMALL:"small",MEDIUM:"medium",LARGE:"large"};function ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ar(e,t,n[t])}))}return e}var cr=Gn("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"}),ur=function(e){var t=e.playerSize,r=t===ir.SMALL||t===ir.MINI;return n().createElement(cr,{css:lr({},r&&{height:"unset"})},"This live event has ended.")};function sr(e){return{hours:Math.floor(e/3600),minutes:Math.floor(e%3600/60),seconds:Math.floor(e%60)}}ur.propTypes={playerSize:a().string};var dr=function(e){return e<10?"0".concat(e):"".concat(e)},pr=function(e){var t=e.hours,n=e.minutes,r=e.seconds;return"".concat(t,":").concat(function(e){return e<10?"0".concat(e):"".concat(e)}(n),":").concat(dr(r))},fr=function(e){var t=e.hours,n=void 0===t?0:t,r=e.minutes,o=e.seconds;return"".concat(r+=60*n,":").concat(dr(o))},gr="(not set)",br="dark",vr="human_read",mr="Opera",yr="Chrome",hr="Safari",wr="Firefox",Sr=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 Er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Er(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Er(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 xr=function(e,t,n,r){if(!e||0===e.length)return n;var o=r?e.map((function(e){return e[r]})):e;return o.join(t)},Cr=function(e){var t=e.topPercent,n=e.bottomPercent;return[t?"linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 3%, rgba(0, 0, 0, 0) ".concat(t,"%)"):null,n?"linear-gradient(to top, rgba(0, 0, 0, 0.75) 3%, rgba(0, 0, 0, 0) ".concat(n,"%)"):null].filter(Boolean).join()};function kr(e,t,n){if("undefined"!=typeof document){var r=document.createElement("script");r.src=e,r.async=!0,r.onload=function(){return null==t?void 0:t()},r.onerror=function(){return null==n?void 0:n("Failed to load script: ".concat(e))},document.body.appendChild(r)}}var Pr=function(){var e,t,n,r=(null===(t=window)||void 0===t||null===(e=t.navigator)||void 0===e?void 0:e.userAgent)||"",o=(Ar(n={},mr,r.includes(mr)||r.includes("OPR")),Ar(n,"Edge",r.includes("Edg")),Ar(n,yr,r.includes(yr)),Ar(n,hr,r.includes(hr)),Ar(n,wr,r.includes(wr)),n);return Object.keys(o).find((function(e){return o[e]}))||""},jr=function(){var e=Sr("wp_devicetype");if(e)return"2"===e?"tablet":"1"===e?"mobile":"desktop";var t=$r(),n=/ipod|iphone|ipad/i.test(t),r=/tablet|ipad/i.test(t),o=!r&&(n||/[^-]mobi/i.test(t));return r?"tablet":o?"mobile":"desktop"},$r=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 Ir(e,t,n){return Math.max(t,Math.min(n,e))}function Rr(e,t){t.forEach((function(t){var n=Or(t,2),r=n[0],o=n[1];e.addEventListener(r,o)}))}function Tr(e,t){t.forEach((function(t){var n=Or(t,2),r=n[0],o=n[1];e.removeEventListener(r,o)}))}var Dr={vertical:[240,320,400,480],horizontal:[320,480,640,960]};function Mr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:960,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="".concat("https://www.washingtonpost.com/wp-apps/imrs.php","?src=").concat(encodeURIComponent(e),"&w=").concat(t);return n&&(r+="&h=".concat(n)),r}function Lr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.map((function(t){return"".concat(Mr(e,t,n)," ").concat(t,"w")})).join(", ")}function Br(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t?Dr.vertical:Dr.horizontal,o=t?"(max-width: 360px) 100vw, 360px":"(max-width: 800px) 100vw, 800px",i=r[r.length-1];return{src:n?Mr(e,i,n):Mr(e,i),srcSet:Lr(e,r,n),sizes:o}}function Nr(e){return e.toString().padStart(2,"0")}var _r=function(){var e,t,r,o=c().videoData;if(!o||!o._id||Ne(o)||"ended"===(null==o?void 0:o.status))return null;var i,a,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===(r=o.promo_image)||void 0===r?void 0:r.url)?Mr(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=(a=(i=sr(o.duration/1e3)).hours,l=i.minutes,u=i.seconds,s=a?"".concat(a,"H"):"",d="".concat(l,"M"),p="".concat(u,"S"),"PT".concat(s).concat(d).concat(p))}return n().createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(f)}})};_r.propTypes={video:a().object};var zr=(0,e.createContext)({isStickyEnabled:!1,setIsStickyEnabled:function(){},isOpenSticky:!1,playingId:null,updateStickyContext:function(){},setOverrideStickyContext:function(){}}),Vr=function(){return(0,e.useContext)(zr)};function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wr=(0,e.createContext)({promoState:Ie,setPromoState:function(){}}),Ur=function(){return(0,e.useContext)(Wr)},Hr=function(t){var r=t.children,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fr(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)(Ie),2),i=o[0],a=o[1],l=(0,e.useMemo)((function(){return{promoState:i,setPromoState:a}}),[i,a]);return n().createElement(Wr.Provider,{value:l},r)};Hr.propTypes={children:a().node};var qr={adState:null,setAdState:function(){},adSettings:null,shouldShowAds:!1,transitionToAd:function(){},isAdsInitialized:!0,isIrisReady:!1},Gr=(0,e.createContext)(qr),Yr=function(){return(0,e.useContext)(Gr)},Zr=function(t){var n=t.autoplayState,r=t.resetControlsState,o=t.setAdState,i=t.updateAutoplayState,a=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;a!==be.ERROR&&o(be.INIT),p(!1),f(Re),r(),i({isPlaythrough:e,status:(null==n?void 0:n.status)?B:null}),l(),t=c.current.getElementsByTagName("track"),Array.from(t).forEach((function(e){e.remove()})),!e&&s&&u(),g&&d(!1)}),[null==n?void 0:n.status,a,o,p,f,r,i,l,c,s,u,d,g])},Xr=(0,e.createContext)({current:null}),Kr=function(){return(0,e.useContext)(Xr)},Jr=function(t){var r=t.children,o=t.initialValue,i=void 0===o?null:o,a=(0,e.useRef)(i);return n().createElement(Xr.Provider,{value:a},r)};function Qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Jr.propTypes={children:a().node,initialValue:a().any};var eo=function(e,t,n){e&&e.addEventListener(t,n)},to=function(e,t,n){e&&e.removeEventListener(t,n)},no=function(e,t,n){if(e){var r=new CustomEvent(t,{detail:n});e.dispatchEvent(r)}};function ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ro(e,t,n[t])}))}return e}function io(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}const ao=function(e){var t,n,r,o,i,a,l,c,u,s,d,p,f,g,b,v,m,y,h,w=e.videoData,S=e.eventAction,E=e.label,A=e.config,O=void 0===A?{}:A,x=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 n,r=null===(n=t.config)||void 0===n?void 0:n.shouldSendAnalyticsEvent;return"function"!=typeof r||!1!==r(e,t)}(S,{eventAction:S,videoData:w,config:O,autoplayState:$,playerType:I,carouselState:M,soundMuted:x,avAdMeta:k,adAttribute:P,avLiveProgress:R,videostart_id:T,engaged_time:L,label:E})){var B=w.canonical_url||(null===(t=w.additional_properties)||void 0===t?void 0:t.permalinkUrl),N=null===(n=w.additional_properties)||void 0===n?void 0:n.gifAsThumbnail,_=null===(r=w.streams)||void 0===r?void 0:r.reduce((function(e,t){return"gif"===t.stream_type?io(oo({},e),{gifPromo:!0}):"gif-mp4"===t.stream_type?io(oo({},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,n){var r=function(e){return e.isPlaythrough?"continuous":e.isLooping?"looping":e.isAutoplay?"autoplay":null}(e)||t||function(e){return e&&e.analyticsLabel?e.analyticsLabel:null}(n)||"manual";return nt[r]}($,E,M),F=(null==w?void 0:w.duration)/1e3;"video-start"===S&&(null==C?void 0:C.current)&&no(C.current,Y,{startReason:ft(V,$)}),function(e,t,n){var r=e.label,o=e.event,i=e.avName,a=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,A=e.avPromoType,O=e.avTestGroup,x=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,B=e.soundStatus,N=e.videostart_id,_=e.engaged_time;window.dataLayer.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Qr(e,t,n[t])}))}return e}({label:r,event:o,action:o,category:a,progressThreshold:l||gr,avCMS:c||gr,avSystem:P||gr,avName:i||gr,avLength:u||gr,avArcID:s||gr,avSection:d||gr,avSource:p||gr,avType:f||gr,avTags:g,avKeywords:M||xr(D,";",gr),avHost:m||xr($,";",gr,"name"),avProducer:b||xr(R,";",gr,"name"),avContributors:h||xr(I,";",gr,"name"),avPromoType:A||gr,avPublishDate:E||(T?new Date(T).toISOString().substring(0,10):gr),avTestGroup:O||gr,avPlayerType:x||j,avPlayer:x||j,adAttribute:C||"undefined",avAdMeta:k||gr,avLiveProgress:S||gr},L&&{pageName:L},"audio"===n&&{avProducerID:v||xr(R,";",gr,"id"),avContributorID:w||xr(I,";",gr,"id"),avHostID:y||xr($,";",gr,"id")},B&&{soundStatus:B},N&&{videostart_id:N},_&&{engaged_time:_})),t&&console.log(window.dataLayer)}(oo(io(oo(io(oo({label:pt(V),event:S,action:S,category:"video",avCMS:null===(o=w.source)||void 0===o?void 0:o.system,avName:null===(i=w.headlines)||void 0===i?void 0:i.basic,avLength:F,avArcID:w._id,avSection:null===(l=w.taxonomy)||void 0===l||null===(a=l.primary_site)||void 0===a?void 0:a.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:xr(null===(s=w.taxonomy)||void 0===s?void 0:s.tags,";",gr,"text"),keywords:null===(d=w.taxonomy)||void 0===d?void 0:d.seo_keywords,avPromoType:function(){if(N){if(_.mp4Promo)return"mp4";if(_.gifPromo)return"gif"}return"image"}(),publishDate:w.display_date,avTestGroup:null==O?void 0:O.testGroup,avPlayerType:I},B&&{pageName:B}),{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!==x&&{soundStatus:x?"sound-off":"sound-on"}),{adAttribute:P,avAdMeta:xr(k,";",gr),avLiveProgress:R||gr}),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)||gr}),O.debug,"video")}};function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var co=function(t){var r=t.setIsInViewPort,o=t.children,i=(0,e.useRef)(null),a=(0,e.useCallback)((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lo(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];r(t.isIntersecting)}),[r]);return(0,e.useEffect)((function(){var e=null==i?void 0:i.current;if(e){var t=new IntersectionObserver(a,{});return t.observe(e),function(){t.unobserve(e)}}}),[i,a]),n().createElement("div",{ref:i},o)};function uo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}co.propTypes={setIsInViewPort:a().func,children:a().node};var so=(0,e.createContext)({isInViewPort:!1,setIsInViewPort:function(){}}),po=function(){return(0,e.useContext)(so)},fo=function(t){var r=t.children,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uo(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),i=o[0],a=o[1],l=(0,e.useMemo)((function(){return{isInViewPort:i,setIsInViewPort:a}}),[i]);return n().createElement(so.Provider,{value:l},n().createElement(co,{setIsInViewPort:a},r))};fo.propTypes={config:a().object,children:a().node,stickyPlayerContext:a().object};var go=["715998959","138210079292","716945960","138228291976"];function bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){bo(e,t,n[t])}))}return e}var mo=(0,e.createContext)({adWrapperRef:{current:null},adContainerRef:{current:null},adControlsRef:{current:null}}),yo=function(){return(0,e.useContext)(mo)},ho=function(t){var r=t.children,o=(0,e.useRef)(),i=(0,e.useRef)(),a=(0,e.useRef)(),l=(0,e.useMemo)((function(){return{adWrapperRef:o,adContainerRef:i,adControlsRef:a}}),[o,i,a]);return n().createElement(mo.Provider,{value:l},r)};function wo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wo(e,t,n[t])}))}return e}function Eo(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}ho.propTypes={children:a().node,initialValue:a().any};var Ao=(0,e.createContext)({sendAnalyticsEvent:function(){},avAdMeta:null,setAvAdMeta:function(){},adAttribute:null,setAdAttribute:function(){},firstVideoLoaded:!1}),Oo=function(){return(0,e.useContext)(Ao)},xo=function(t){var r=t.children,o=t.config,i=void 0===o?{}:o,a=yo().adWrapperRef,l=h().autoplayState,c=i.debug,u=i.abVariant,s=i.isPreroll,d=void 0!==s&&s,p=(0,e.useCallback)((function(e,t){var n;!function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=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:r});n&&console.log(o)}}(e,c,Eo(So({},t,u&&{abVariant:u}),{isPreroll:d.toString(),isAutoplay:l.isAutoplay.toString(),nodeId:null===(n=a.current)||void 0===n?void 0:n.id}))}),[c,a,u,d,l.isAutoplay]),f=(0,e.useCallback)((function(e,t,n){var r;!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var o=window.performance.measure("time-to-".concat(e),{start:t,end:e,detail:vo({},r)});return n&&console.log(o),Math.round(o.duration)}catch(e){return null}}(e,t,c,Eo(So({},n,u&&{abVariant:u}),{isPreroll:d.toString(),isAutoplay:l.isAutoplay.toString(),nodeId:null===(r=a.current)||void 0===r?void 0:r.id}))}),[c,a,u,l.isAutoplay,d]),g=(0,e.useMemo)((function(){return{sendPerformanceEvent:p,sendPerformanceMeasure:f}}),[p,f]);return n().createElement(Ao.Provider,{value:g},r)};function Co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ko(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Po(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ko(i,r,o,a,l,"next",e)}function l(e){ko(i,r,o,a,l,"throw",e)}a(void 0)}))}}function jo(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}xo.propTypes={config:a().object,children:a().node};var $o=function(){var e=Po((function(e,t,n){var r,o;return jo(this,(function(i){switch(i.label){case 0:return r=Uo(),[4,new Promise((function(e,t){var n,o,i,a;if(null===(n=window.zeus)||void 0===n?void 0:n.version)e();else{var l=function(e){return window.document.querySelector('script[src="'.concat(e,'"]'))}(r);l?(i=e,a=t,(o=l).addEventListener("load",i,{once:!0}),o.addEventListener("error",a,{once:!0})):kr(r,e,t)}}))];case 1:return i.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 n=Po((function(n){return jo(this,(function(r){switch(r.label){case 0:return[4,n.setupPlayer(e)];case 1:return r.sent(),t(),[2]}}))}));return function(e){return n.apply(this,arguments)}}())})),[4,Promise.race([o,new Promise((function(e,t){setTimeout((function(){var e=new Error("Iris setup timed out");t(e)}),n)}))])];case 2:return i.sent(),[2]}}))}));return function(t,n,r){return e.apply(this,arguments)}}(),Io=e=>{if(typeof window>"u")return;let t=document.cookie.match(`(^|;) ?${e}=([^;]*)(;|$)`);return t?t[2]:null},Ro=(e="",t={})=>{let n=e;return Object.entries(t).forEach((([e,t])=>{t&&(n+=` ${e}`)})),n.trim()};var To=function(e){if(!e)return!1;try{var t,n=function(e){var t,n=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 n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return atob(t)}}(n),JSON.parse(t)}catch(e){throw new Error("Invalid token specified")}}(e),r=!1,o=n.fs;return"string"==typeof o&&"1"===(null===(t=o.split("|")[1])||void 0===t?void 0:t.charAt(0))&&(r=!0),r}catch(e){return!1}};function Do(){var e=Io("wapo_actmgmt"),t=Io("wp_f_token");if(!(null==e?void 0:e.length)&&!(null==t?void 0:t.length))return!1;var n=To(t),r=/(\b|.*\|)EU_NOADS:1([^;]*)/.test(e),o=/(\b|.*\|)NOADS:1([^;]*)/.test(e);return n||o||r}var Mo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&"string"==typeof e.creativeId?go.includes(e.creativeId):null},Lo=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)]},Bo=function(e){var t;return null===(t=e.getCurrentAd())||void 0===t?void 0:t.data};function No(e,t,n){var r,o;if(Ze(t))return!0;var i=null==e||null===(o=e.additional_properties)||void 0===o||null===(r=o.advertising)||void 0===r?void 0:r.allowPrerollOnDomain;return n&&!i&&console.log("Ad not allowed on domain"),i}function _o(e,t){var n=t.hasAds,r=void 0!==n&&n,o=t.adOverrides,i=void 0===o?{}:o,a=i.forceAd,l=void 0!==a&&a,c=i.domain,u=i.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 r&&(void 0===v||v||p)&&No(e,c,f)&&!s}function zo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!e.isAutoplay||!!e.isPreroll||!!e.isPlaythrough}function Vo(e,t){var n=e.hasAds,r=void 0!==n&&n,o=e.adOverrides,i=(void 0===o?{}:o).forceAd,a=void 0!==i&&i,l=e.isSinglePrerollVideo;return!!a||(!l||!function(e){return!!Sr("wp_no_preroll")&&"1"===JSON.parse(Sr("wp_no_preroll"))[e]}(t))&&r&&!Fo()&&!Do()}var Fo=function(){return"undefined"!=typeof window&&new URLSearchParams(window.location.search).has("no_ads")},Wo=function(){if("undefined"!=typeof window){var e=localStorage.getItem("userMutePreference");if("true"===e)return!0;if("false"===e)return!1}return!1},Uo=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 Ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qo(e,t,n[t])}))}return e}function Yo(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ho(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ho(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 Xo=[ct];var Ko=(0,e.createContext)({sendAnalyticsEvent:function(){},avAdMeta:null,setAvAdMeta:function(){},adAttribute:null,setAdAttribute:function(){},firstVideoLoaded:!1}),Jo=function(){return(0,e.useContext)(Ko)},Qo=function(t){var r=t.children,o=t.config,i=function(t,n){var r=Kr(),o=c(),i=o.videoData,a=o.uniqueId,l=h().autoplayState,u=po().isInViewPort,s=t.isCarousel,d=t.debug,p=Zo((0,e.useState)([]),2),f=p[0],g=p[1],b=Zo((0,e.useState)("undefined"),2),v=b[0],m=b[1],y=Zo((0,e.useState)(!1),2),w=y[0],S=y[1],E=Zo((0,e.useState)(dt(t)),2),A=E[0],O=E[1],x=(0,e.useRef)(0),C=(0,e.useRef)(a);C.current=a;var k=r.current,P=(0,e.useRef)(u),j=(0,e.useRef)(n);(0,e.useEffect)((function(){P.current=u}),[u]),(0,e.useEffect)((function(){j.current=n}),[n]);var $=(0,e.useCallback)((function(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(P.current||Xo.includes(e))&&ao(Yo(Go({videoData:i,eventAction:e,config:t,videoElementRef:r,avAdMeta:f,adAttribute:v,autoplayState:l,playerType:A,carouselState:j.current},o),{videostart_id:null!==(n=o.videostart_id)&&void 0!==n?n:C.current}))}),[i,t,r,f,v,l,A]);(0,e.useEffect)((function(){!w&&i._id&&l.isInitialized&&(window.dataLayer=window.dataLayer||[],s||$("media-video-player-impression",{soundMuted:!!l.isAutoplay||void 0}),function(e){var t,n,r,o,i,a,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=null!==(a=null==e||null===(r=e.additional_properties)||void 0===r||null===(n=r.advertising)||void 0===n||null===(t=n.adSetUrls)||void 0===t?void 0:t.apps)&&void 0!==a?a:"",s=null!==(l=null==e||null===(i=e.additional_properties)||void 0===i||null===(o=i.advertising)||void 0===o?void 0:o.videoAdZone)&&void 0!==l?l:"",d=!0===/wpni.video/.test(s),p=c.adOverrides,f=void 0===p?{}:p,g=c.debug,b=f.domain;return(!!f.adZoneOverride||!!u&&!!s)&&d&&No(e,b,g)}(i,t)?Vo(t,null==i?void 0:i._id)&&zo(l)||m(ve):m("adNotAllowed"),S(!0))}),[null==i?void 0:i._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&&($(ut,{videostart_id:C.current,engaged_time:T.current}),T.current=0)}),[$]),M=(0,e.useCallback)((function(e){var t,n=e.target.currentTime-R.current;R.current=e.target.currentTime,n>0&&n<1&&(T.current+=n),T.current>5&&($(ut,{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&&x.current<25&&(x.current=25,$("video-25-complete")),I.current>=50&&x.current<50&&(x.current=50,$("video-50-complete")),I.current>=75&&x.current<75&&(x.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(U,M),k.addEventListener(re,D),k.addEventListener(V,D),function(){k.removeEventListener(U,M),k.removeEventListener(re,D),k.removeEventListener(V,D)}}),[k,s,l]),(0,e.useEffect)((function(){return function(){D()}}),[]),(0,e.useEffect)((function(){x.current=0,R.current=0,T.current=0,I.current=5}),[a]),{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)$(lt);else if(e.isAutoplay){var n,r,o=(qo(n={},se,ot),qo(n,ue,lt),n),i=(qo(r={},ge.AUTO,ve),qo(r,ge.LOOP,we),qo(r,ge.LOOP_NO_CONTROLS,we),r),a=o[rt()]||ot,l=t.adAttribute||i[e.type];m(l),$(a,Yo(Go({},t),{adAttribute:l}))}else $(ot,Go({},t))}}}(void 0===o?{}:o,t.carouselState),a=i.sendAnalyticsEvent,l=i.avAdMeta,u=i.setAvAdMeta,s=i.adAttribute,d=i.setAdAttribute,p=i.isAnalyticsInitialized,f=i.setPlayerType,g=i.sendVideoStartEvent,b=(0,e.useMemo)((function(){return{sendAnalyticsEvent:a,avAdMeta:l,setAvAdMeta:u,adAttribute:s,setAdAttribute:d,isAnalyticsInitialized:p,setPlayerType:f,sendVideoStartEvent:g}}),[a,l,u,s,d,p,f,g]);return n().createElement(Ko.Provider,{value:b},r)};function ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ti(e,t,n[t])}))}return e}Qo.propTypes={config:a().object,carouselState:a().object,children:a().node};var ri={isStarted:!1,isMuted:!1,isPlaying:!1,volume:1,showSubtitles:!1,isInitialized:!1};function oi(t){var n=Kr(),r=c().videoData,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ei(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)(ri),2),i=o[0],a=o[1],l=(0,e.useCallback)((function(e){a((function(t){return ni({},t,e)}))}),[a]),u=(0,e.useCallback)((function(){i.isStarted||l({isStarted:!0})}),[i,l]);return(0,e.useEffect)((function(){var e=null==n?void 0:n.current;if(e)return e.addEventListener("playing",u),function(){e.removeEventListener("playing",u)}}),[n,u]),(0,e.useEffect)((function(){if("undefined"!=typeof window&&r&&Fe(r)&&!i.isInitialized){var e=function(e,t){var n,r,o="true"===window.localStorage.getItem("userMutePreference"),i="true"===window.localStorage.getItem("userSubtitlesPreference"),a=(e.additional_properties||{}).forceClosedCaptionsOn,l=void 0!==a&&a;return{isMuted:null!==(n=t.isMutedOverride)&&void 0!==n?n:o,volume:o?0:1,showSubtitles:!!(null!==(r=t.showSubtitlesOverride)&&void 0!==r?r:l)||i}}(r,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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}(ni({},e),{isInitialized:!0}))}}),[t,t.isMutedOverride,t.showSubtitlesOverride,i.isInitialized,l,r,r._id]),{playerState:i,updatePlayerState:l}}var ii=function(e,t,n){if("undefined"==typeof window)return!0;if(t.isAutoplay&&!n&&!t.overrideAutoplayMuteBehavior)return!0;var r=e.isMutedOverride;return null!=r&&r},ai=(0,e.createContext)({Hls:{},hls:{},removeHLS:function(){},setUpVideoSource:function(){}}),li=function(){return(0,e.useContext)(ai)};function ci(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ui,si="MOBILE",di="TABLET",pi="DESKTOP",fi="LARGE_DESKTOP",gi=si,bi=di,vi=pi,mi=fi,yi=(ci(ui={},"small",si),ci(ui,"medium",di),ci(ui,"large",pi),ci(ui,"xlarge",fi),ci(ui,"xxlarge",fi),ci(ui,"unknown",pi),ui);function hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hi(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 Si=function(){return"undefined"==typeof window?"unknown":window.getComputedStyle(document.documentElement).getPropertyValue("--wpds--screenSize")},Ei=function(){return"undefined"==typeof window?"unknown":"undefined"!=typeof window&&window.innerWidth>=1440?mi:"undefined"!=typeof window&&window.innerWidth>=1023?vi:"undefined"!=typeof window&&window.innerWidth>=767&&window.innerWidth<1023?bi:gi};const Ai=function(){var t=wi((0,e.useState)(vi),2),n=t[0],r=t[1],o=function(){var t=wi((0,e.useState)(Si()||Ei()),2),n=t[0],r=t[1];return(0,e.useEffect)((function(){if("undefined"!=typeof window){var e=function(){r(Si()||Ei())};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}}),[]),n}();return(0,e.useEffect)((function(){r(yi[o])}),[o]),n};var Oi=function(e){var t;if(null==e||null===(t=e.textTracks)||void 0===t?void 0:t[0]){var n=!0,r=!1,o=void 0;try{for(var i,a=e.textTracks[Symbol.iterator]();!(n=(i=a.next()).done);n=!0)i.value.mode="hidden"}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}}},xi=function(e){var t=!1,n=!0,r=!1,o=void 0;try{for(var i,a=e.textTracks[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var l=i.value;"showing"===l.mode&&(t=!0),l.mode="hidden"}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t},Ci={canFullScreen:function(){return!1},goFullscreen:function(){},closeFullscreen:function(){},getFullScreen:function(){return!1}},ki={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 Pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const ji=function(t,n,r,o,i,a,l,u,s){var d=Kr(),p=c().videoId,f=Vr().isOpenSticky,g=(0,e.useMemo)((function(){return e=d.current,Object.values(ki).find((function(t){return t.canFullScreen(e)}))||Ci;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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pi(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),A=(0,e.useCallback)((function(e){return!y(e)&&!r}),[y,r]),O=Ai()===gi,x=function(e){var t=e.forceShowFullScreenBtn;return"boolean"==typeof t?t:!e.isCarousel&&(!e.isVertical||e.isMobileSize||e.isOpenSticky)}({forceShowFullScreenBtn:s,isCarousel:r,isMobileSize:O,isVertical:o,isOpenSticky:f}),C=(0,e.useCallback)((function(e){var r=n.current;if(r)try{e?(A(r)?(b(d.current),function(e,t){Oi(t),e&&(t.textTracks[0].mode="showing")}(a,d.current),S(!0),i(!0)):b(r).then((function(){S(!0)})),_e(z,!0,p,t)):(v(d.current),S(!1),_e(z,!1,p,t))}catch(e){S(m())}}),[n,A,p,t,b,d,a,i,v,m]);return(0,e.useEffect)((function(){var e=function(){S(m())},t=n.current;return n&&y(t)&&t.addEventListener("fullscreenchange",e),function(){null==t||t.removeEventListener("fullscreenchange",e)}}),[n,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 n=m(e);S(n),i(n);var r=xi(e);l(r)}},n=function(){u(!1);var t=xi(e);E.current=t},r=function(e){u(!0),"inline"===e.target.webkitPresentationMode&&l(E.current)};return e.addEventListener("webkitendfullscreen",t),e.addEventListener("enterpictureinpicture",n),e.addEventListener("leavepictureinpicture",r),function(){e.removeEventListener("webkitendfullscreen",t),e.removeEventListener("enterpictureinpicture",n),e.removeEventListener("leavepictureinpicture",r)}}}),[d,m]),{isFullscreen:w,setFullscreen:C,showFullscreenBtn:x,closeFullscreen:v}};function $i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ii(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$i(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 Ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ti(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ri(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ri(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 Di=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=c().videoData,o=h(),i=o.updateAutoplayState,a=o.autoplayState,l=Ur(),u=l.promoState,s=l.setPromoState,d=Yr(),p=d.adState,f=d.setAdState,g=li().removeHLS,b=Kr(),v=Vr(),m=v.isOpenSticky,y=v.updateStickyContext,w=Jo().sendAnalyticsEvent,S=yo().adControlsRef,E=n.toggleSubsHandler,A=n.toggleMuteHandler,O=Ti((0,e.useState)(!1),2),x=O[0],C=O[1],k=Ti((0,e.useState)(!1),2),P=k[0],j=k[1],$=r.duration/1e3||0,I=(0,e.useRef)(null),R=(0,e.useRef)(null),T=(0,e.useRef)(),D=function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?or(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),r=n[0],o=n[1];return(0,e.useEffect)((function(){var e=null==t?void 0:t.current;if(e){var n=function(){var t=e.offsetWidth;o(t<=300?ir.MINI:t<=400?ir.SMALL:t<=700?ir.MEDIUM:ir.LARGE)};n();var r=new ResizeObserver(n);return r.observe(e),function(){return r.disconnect()}}}),[t]),r}(I),M=function(t){var n=Jo().isAnalyticsInitialized,r=Oo(),o=r.sendPerformanceEvent,i=r.sendPerformanceMeasure,a=h(),l=a.updateAutoplayState,c=a.autoplayState,u=Yr(),s=u.isAdsInitialized,d=u.isIrisReady,p=u.shouldShowAds,f=Ur().setPromoState,g=Vr().setIsStickyEnabled,b=t.isCarousel,v=c.isInitialized&&n&&s,m=function(t){var n=t.setPromoState,r=t.updateAutoplayState,o=t.shouldShowAds,i=t.autoplayState,a=t.isOrcaInitialized,l=t.isCarousel,c=po().isInViewPort,u=Vr().isOpenSticky,s=Ii((0,e.useState)(null),2),d=s[0],p=s[1],f=Ii((0,e.useState)(null),2),g=f[0],b=f[1],v=(0,e.useCallback)((function(e,t){a?e?c||l||u?(r({status:L},t),i.isLivePreview||n(o?Te:De)):b({videoWillAutoplay:e,overrideReducedMotion:t}):n(Re):p({videoWillAutoplay:e,overrideReducedMotion:t})}),[n,r,o,i.isLivePreview,a,c,l,u]);return(0,e.useEffect)((function(){d&&a&&(v(d.videoWillAutoplay,d.overrideReducedMotion),p(null))}),[a,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 n=t.isSticky,r=void 0===n||n,o=t.isLead,i=void 0!==o&&o;return!(e.isLooping||e.type===ge.AUTO&&!i)&&r}(c,t))}),[c,t,m,g]);return(0,e.useEffect)((function(){v&&(y(),o(ie),i(ie,oe,{irisLoaded:d.toString()}))}),[v]),{initializeNewVideo:m}}(t).initializeNewVideo,B=t.debug,N=t.forceShowFullScreenBtn,_=t.isCarousel,z=function(t){var n,r=t.config,o=t.isNativeIOSPlayer,i=t.adState,a=t.updateAutoplayState,l=t.toggleSubsHandler,u=void 0===l?function(){}:l,s=t.toggleMuteHandler,d=void 0===s?function(){}:s,p=Kr(),f=c(),g=f.videoId,b=f.uniqueId,v=h(),m=v.autoplayState,y=v.isMotionReduced,w=Jo().sendAnalyticsEvent,S=Vr(),E=S.isStickyEnabled,A=S.isOpenSticky,O=S.playingId,x=S.updateStickyContext,C=r.debug,k=void 0!==C&&C,P=oi(r),j=P.playerState,$=P.updatePlayerState,I=(0,e.useCallback)((function(e){_e("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}),_e(e?"subsEnabled":"subsDisabled",e,g,k),"undefined"!=typeof window&&localStorage.setItem("userSubtitlesPreference",e)}),[$,g,k,u]),B=(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 N=(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]),_=(0,e.useCallback)((function(){N(!j.isMuted)}),[j.isMuted,N]);(0,e.useEffect)((function(){$({isMuted:R()})}),[null==p||null===(n=p.current)||void 0===n?void 0:n.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(),_(),a({isLivePreview:!1,isAutoplay:!1}),L(!0)}),[M,L,_,a]);(0,e.useEffect)((function(){O&&O!==b&&j.isPlaying&&E&&M()}),[O,b,j.isPlaying,M,E]),(0,e.useEffect)((function(){E&&O===b&&"undefined"!=typeof window&&(window.zeus=window.zeus||{cmd:[]},window.zeus.cmd.push((function(e){e.emit("PRIMIS_DEACTIVATE")})))}),[E,O,b]);var V=(0,e.useCallback)((function(e){var t=ii(r,m,e);N(t)}),[m,r,N]),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?it:at),j.isPlaying&&E&&!A&&O===b&&x({playingId:null})},play:T,pause:M,reset:function(){M(),p.current.currentTime=0,$({isStarted:!1,isPlaying:!1})},toggleMute:_,handleVolumeChange:function(e){p.current.volume=e,$({volume:e})},setShowSubtitles:L,handlePlayEvent:function(e){var t;i===be.REQUESTED&&p.current.pause(),$({isPlaying:e}),o&&0!=(null===(t=p.current)||void 0===t?void 0:t.currentTime)&&w(e?at:it)},resetControlsState:B,handleLivePreview:z,setInitialMuteState:V,autoplay:D}}({config:t,isNativeIOSPlayer:P,adState:p,updateAutoplayState:i,toggleSubsHandler:E,toggleMuteHandler:A}),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,ee=(0,e.useCallback)((function(){var e;w(ct,{label:"close-click"}),p===be.PLAYING?null===(e=S.current)||void 0===e||e.pauseAd():U(),y({playingId:null,openId:null})}),[p,U,w,y]),te=Ge(r),ne=ji(B,T,_,te,j,V.showSubtitles,Y,C,N),re=ne.isFullscreen,ae=ne.setFullscreen,le=ne.showFullscreenBtn,ce=ne.closeFullscreen;return{initDuration:$,initializeNewVideo:M,promoState:u,setPromoState:s,resetVideoState:Zr({autoplayState:a,resetControlsState:X,setAdState:f,updateAutoplayState:i,adState:p,removeHLS:g,videoElementRef:b,closeStickyPlayer:ee,isOpenSticky:m,setIsFullscreen:ae,setRenderControls:C,setPromoState:s,isFullscreen:re}),isFullscreen:re,isNativeIOSPlayer:P,setIsFullscreen:ae,reset:H,playerState:V,playerSize:D,renderControls:x,setRenderControls:C,playerWrapperRef:I,promoElement:R,fullScreenWrapper:T,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:ee}},Mi=(0,e.createContext)({initDuration:0,initializeNewVideo:function(){}}),Li=function(){return(0,e.useContext)(Mi)},Bi=function(t){var r=t.children,o=t.config,i=void 0===o?{}:o,a=t.optionalHandlers,l=Di(i,void 0===a?{}:a),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,A=l.fullScreenWrapper,O=l.onPlayButton,x=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,B=l.closeStickyPlayer,N=(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:A,onPlayButton:O,play:x,pause:C,toggleMute:k,handleVolumeChange:P,setShowSubtitles:j,handlePlayEvent:$,resetControlsState:I,handleLivePreview:R,setInitialMuteState:T,autoplay:D,showFullscreenBtn:M,closeFullscreen:L,closeStickyPlayer:B}}),[c,u,s,d,p,f,g,b,v,m,y,h,w,S,E,A,O,x,C,k,P,j,$,I,R,T,D,M,L,B]);return n().createElement(Mi.Provider,{value:N},r)};function Ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ni(e,t,n[t])}))}return e}Bi.propTypes={config:a().object,children:a().node,optionalHandlers:a().object};var zi=Gn("div",{}),Vi=function(e){var t=e.controlWrapperClassName,r=e.liveEventEnded,o=e.aspectRatio,i=e.children,a=e.stickyStyles,l=Vr().isOpenSticky,c=Li(),u=c.fullScreenWrapper,s=function(e){var t=e.isFullscreen,n=e.liveEventEnded,r=e.isOpenSticky,o=e.aspectRatio,i=e.stickyPropStyles,a={display:n?"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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}(_i({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"},i),{"@md":_i({width:"300px",height:"".concat(l?1/o*300:300*o,"px")},null==i?void 0:i["@md"]),"@sm":_i({width:"250px",bottom:150,height:"".concat(l?1/o*250:250*o,"px")},null==i?void 0:i["@sm"])});return _i({},t&&a,n&&{display:"none"},r&&c)}({isFullscreen:c.isFullscreen,liveEventEnded:r,isOpenSticky:l,aspectRatio:o,stickyPropStyles:a});return n().createElement(zi,{"data-testid":"full-screen-wrapper",ref:u,className:t,css:s},i)};function Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Fi(e,t,n[t])}))}return e}function Ui(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}Vi.propTypes={fullScreenWrapper:a().object,controlWrapperClassName:a().string,isFullscreen:a().bool,liveEventEnded:a().bool,isOpenSticky:a().bool,aspectRatio:a().number,children:a().node.isRequired,stickyStyles:a().object};var Hi=o(326),qi=Hi.useEffect,Gi=Hi.useCallback,Yi=["paywall","regwall","iab_banner"],Zi=["audio","video"];function Xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ki(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xi(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 Ji=function(){var t=Kr(),n=c().videoData,r=Li().isNativeIOSPlayer,o=n.subtitles,i=n.additional_properties,a=(void 0===i?{}:i).doNotShowTranscripts,l=void 0!==a&&a,u=li().waitForCaptionsToLoad;!function(t,n){var r,o,i=null===(o=t.current)||void 0===o||null===(r=o.textTracks[0])||void 0===r?void 0:r.mode;(0,e.useEffect)((function(){var e,r,o;!n&&(null===(o=t.current)||void 0===o||null===(r=o.textTracks)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.mode)&&(t.current.textTracks[0].mode="hidden")}),[i,t,n])}(t,r);var s=Ki((0,e.useState)(""),2),d=s[0],p=s[1],f=Ki((0,e.useState)(!1),2),g=f[0],b=f[1],v=(0,e.useCallback)((function(){p(ta(t.current))}),[t]),m=(0,e.useCallback)((function(){p(""),b(!l),t.current.textTracks[0].mode="hidden"}),[l,t]),y=(0,e.useCallback)((function(){ea(t.current,v,m)}),[t,v,m]),h=(0,e.useCallback)((function(){Qi(t.current,o,y,u)}),[y,o,t]);return{hasSubtitles:g,updateCues:v,currentCue:d,setupSubtitlesListener:h,resetSubtitleState:m}},Qi=function(e,t,n,r){if(Oi(e),t&&!S(t,{})){var o,i=function(e){var t=e||{},n=t.url,r=t.src,o=t.label,i=t.srclang,a=t.kind,l=document.createElement("track");return Object.assign(l,{src:n||r||"",label:o||"English",srclang:i||"en",kind:a||"captions",mode:"hidden"}),l}(null===(o=t.urls)||void 0===o?void 0:o.find((function(e){return"WEB_VTT"===e.format})));r?e.addEventListener(H,(function(){return e.appendChild(i)})):e.appendChild(i)}e.textTracks.addEventListener("addtrack",n)},ea=function(e,t,n){var r=e.textTracks.length;if(r>0){n(),e.textTracks[0].cueChange=t;for(var o=1;o<r;o++)e.textTracks[o].mode="disabled"}},ta=function(e){var t,n,r;return(null===(r=e.textTracks[0])||void 0===r||null===(n=r.activeCues)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.text)||""};function na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ra=function(t){var n=t.setRenderControls,r=t.isCarousel,o=t.autoplay,i=t.play,a=t.playCallback,l=void 0===a?function(){}:a,u=h().autoplayState,s=Ur().setPromoState,d=Jo(),p=d.sendAnalyticsEvent,f=d.sendVideoStartEvent,g=li().isSupported,b=Kr(),v=c().uniqueId,m=(0,e.useCallback)((function(){var e=b.current,t=function(){e.removeEventListener("loadstart",t),i()};e.addEventListener("loadstart",t),e.load()}),[b,i]),y=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.analyticsData,a=e.isAutoplay;u.isLivePreview||s(De),n(!(u.type===ge.LOOP_NO_CONTROLS||u.isLivePreview)),r||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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){na(e,t,n[t])}))}return e}({},t),{videostart_id:v}):{videostart_id:v}),g?a?o():i():m(),l()}),[u.isLivePreview,u.type,l,p,r]);return y},oa=function(t,n,r){var o,i=Kr(),a=Jo().sendAnalyticsEvent,l=Yr(),u=l.shouldShowAds,s=l.transitionToAd,d=Ur().setPromoState,p=Li(),f=p.setRenderControls,g=p.setInitialMuteState,b=h().autoplayState,v=c(),m=v.videoData,y=v.uniqueId,w=v.videoId,S=li().setUpVideoSource,E=Vr(),A=E.isStickyEnabled,O=E.updateStickyContext,x=E.setOverrideStickyContext,C=n.isSinglePrerollVideo,k=void 0!==C&&C,P=(0,e.useCallback)((function(e){var r,o=e.hasAds,l=e.isAutoplay,c=e.forcePlayAd;l&&!c&&(i.current.autoplay=!0),o&&!(null==n||null===(r=n.adOverrides)||void 0===r?void 0:r.skipAd)?s((function(){a(ot,{videostart_id:y}),t({isAutoplay:l})})):(t({isAutoplay:l}),c&&(d(De),f(b.type!==ge.LOOP_NO_CONTROLS)))}),[i,s,a,t,d,f,b.type,y,null==n||null===(o=n.adOverrides)||void 0===o?void 0:o.skipAd]);return(0,e.useCallback)((function(e){var t=b.isAutoplay,o=u&&_o(m,n)&&(zo(b)||e);S(),g(e),A&&(O({playingId:y}),x(!1)),k&&function(e){if("undefined"!=typeof document){var t=Sr("wp_no_preroll"),n=t?JSON.parse(t):{};n[e]="1",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,r=new Date;r.setTime(r.getTime()+864e5*n),document.cookie="".concat(e,"=").concat(t,";path=/;expires=").concat(r.toGMTString())}("wp_no_preroll",JSON.stringify(n),1)}}(w),r(),P({hasAds:o,isAutoplay:t,forcePlayAd:e})}),[u,m,n,b,S,P,O,A,y,x,k,w,r,g])};function ia(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t=e,!(null!=(n=HTMLElement)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](t):t instanceof n))return null;var i=e.getBoundingClientRect();return i.top+e.offsetHeight*r>=0&&i.bottom-e.offsetHeight*r<=(window.innerHeight||document.documentElement.clientHeight)&&(!o||i.left>=0)&&(!o||i.right<=(window.innerWidth||document.documentElement.clientWidth))}function aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aa(e,t,n[t])}))}return e}var ca=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(null==e?void 0:e.current){var i=o.debug,a=void 0!==i&&i,l=function(e,t){return{eventType:e,userAgent:window.navigator.userAgent,browserType:Pr(),deviceType:jr(),href:window.location.href,hostname:window.location.host,pageType:rt(),playerType:dt(t),player:"orca"}}(t,o),c=la(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}(la({},l),{isElementInViewport:ia(e.current),videoId:e.current.id}),r);Qe.send(n,c),a&&console.log("".concat(""," Splunk event sent: ").concat(n,". Video: ").concat(e.current.id),c)}};function ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sa="timeout",da="error",pa="fullscreen",fa="ads",ga=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ua(e,t,n[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 ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function va(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){va(e,t,n[t])}))}return e}function ya(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ba(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ba(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 ha(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wa(e,t,n[t])}))}return e}var Ea=function(t,n){(function(t,n){var r=Kr(),o=ya((0,e.useState)(!1),2),i=o[0],a=o[1],l=ya((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=r.current)||void 0===t?void 0:t.currentTime)>0&&m(e)}),1e3)}(e),s.current=setInterval((function(){var o,i,a;p+=1,ca(r,sa,ga.WAITING,ma({startReason:null!==(i=null==e||null===(o=e.detail)||void 0===o?void 0:o.startReason)&&void 0!==i?i:"",startEvent:null!==(a=null==e?void 0:e.type)&&void 0!==a?a:""},t),n),p>=4&&y(e)}),5e3))},b=function(){clearInterval(s.current),clearInterval(d.current),p=0},v=function(){b()},m=function(e){var o,i,a;c||(ca(r,sa,ga.OK,ma({startReason:null!==(i=null==e||null===(o=e.detail)||void 0===o?void 0:o.startReason)&&void 0!==i?i:"",startEvent:null!==(a=null==e?void 0:e.type)&&void 0!==a?a:""},t),n),u(!0),b())},y=function(e){var o,l,c;i||(ca(r,sa,ga.TIMED_OUT,ma({startReason:null!==(l=null==e||null===(o=e.detail)||void 0===o?void 0:o.startReason)&&void 0!==l?l:"",startEvent:null!==(c=null==e?void 0:e.type)&&void 0!==c?c:""},t),n),a(!0),b())};(0,e.useEffect)((function(){var e=null==r?void 0:r.current;if(e)return eo(e,Y,g),eo(e,te,v),eo(e,K,f),eo(e,V,v),function(){to(e,Y,g),to(e,te,v),to(e,K,f),to(e,V,v)}}),[r])})(t,n),function(t,n){var r=Kr(),o=function(e){var o=e.target.error.message,i=e.target.error.code;ca(r,da,ga.ERROR,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ha(e,t,n[t])}))}return e}({errorText:o,errorCode:i},t),n)};(0,e.useEffect)((function(){var e=null==r?void 0:r.current;if(e)return eo(e,F,o),function(){to(e,F,o)}}),[r])}(t,n),function(t,n){var r=Kr(),o=function(){ca(r,pa,ga.ON_FULLSCREEN,t,n)},i=function(){ca(r,pa,ga.ON_UNFULLSCREEN,t,n)};(0,e.useEffect)((function(){var e=null==r?void 0:r.current;if(e)return eo(e,q,o),eo(e,G,i),function(){to(e,q,o),to(e,G,i)}}),[r])}(t,n),function(t,n){var r=Kr(),o=yo().adWrapperRef,i=function(e){var i,a,l=null===(i=o.current)||void 0===i?void 0:i.irisPlayer,c=Bo(l);Mo(c)||ca(r,fa,ga.AD_COMPLETE,Sa({adData:e.detail,adTitle:null===(a=e.detail)||void 0===a?void 0:a.title},t),n)},a=function(e){var o;ca(r,fa,ga.AD_ERROR,Sa({adData:e.detail,adTitle:null===(o=e.detail)||void 0===o?void 0:o.title},t),n)},l=function(e){var i,a,l=null===(i=o.current)||void 0===i?void 0:i.irisPlayer,c=Bo(l);Mo(c)||ca(r,fa,ga.AD_STARTED,Sa({adData:e.detail,adTitle:null===(a=e.detail)||void 0===a?void 0:a.title},t),n)},c=function(){ca(r,fa,ga.AD_BYPASSED,Sa({},t),n)};(0,e.useEffect)((function(){var e=null==r?void 0:r.current;if(e)return eo(e,X,i),eo(e,J,a),eo(e,K,l),eo(e,Q,c),function(){to(e,X,i),to(e,J,a),to(e,K,l),to(e,Q,c)}}),[r])}(t,n)};function Aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oa=Gn("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"}),xa=Gn("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"}}}}}),Ca=function(e){var t=e.currentCue,r=Li(),o=r.playerState,i=r.isFullscreen;return n().createElement(Oa,{css:{bottom:i?"100px":"$125"}},o.showSubtitles&&n().createElement(xa,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Aa(e,t,n[t])}))}return e}({"aria-hidden":"true",id:"video-subtitles"},i&&{variant:"fullscreen"}),t))};Ca.propTypes={currentCue:a().string.isRequired};var ka=Gn("video",{position:"absolute",width:"100%",height:"100%",top:0,left:0,objectFit:"contain"}),Pa=function(e){var t=e.updateCues,r=e.handleVideoEnd,o=e.isStickyEnabled,i=e.updateStickyContext,a=e.updateDisplay,l=e.debug,u=e.preload,s=void 0===u?"metadata":u,d=c(),p=d.videoId,f=d.uniqueId,g=Kr(),b=Li().handlePlayEvent;return n().createElement(ka,{id:"orca-video-".concat(p),"data-testid":"orca-video",className:"orca-video","aria-hidden":"true",crossOrigin:"anonymous",ref:g,onTimeUpdate:t,onEnded:r,onPlay:function(){_e("play",!0,p,l),b(!0),o&&(i({playingId:f}),a({state:"media-start"}))},onPause:function(){_e("pause",!0,p,l),b(!1)},onVolumeChange:function(){_e("volumeChange",g.current.volume,p,l)},preload:s,controlsList:"nodownload",playsInline:!0})};Pa.propTypes={updateCues:a().func.isRequired,handleVideoEnd:a().func.isRequired,isStickyEnabled:a().bool,updateStickyContext:a().func,updateDisplay:a().func,debug:a().bool,preload:a().oneOf(["none","metadata","auto"])};var ja=(0,e.forwardRef)((function(t,r){var o=t.onVideoRendered,i=void 0===o?function(){}:o,a=t.config,l=void 0===a?{}:a,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,A=t.updateCues,O=void 0===A?function(){}:A,x=t.hasSubtitles,C=void 0!==x&&x,k=t.currentCue,P=void 0===k?null:k,j=t.updateDisplay,$=void 0===j?function(){}:j,I=t.carouselState,R=void 0===I?null:I,T=t.Controls,D=t.handleClosePlayer,M=void 0===D?function(){}:D,B=l.isCarousel,N=void 0!==B&&B,_=l.debug,z=l.hideControls,V=void 0!==z&&z,F=c(),W=F.videoData,U=F.videoId,H=h(),q=H.autoplayState,G=H.updateAutoplayState,Y=Vr(),X=Y.isStickyEnabled,K=Y.updateStickyContext,J=li(),Q=J.setUpVideoSource,ee=J.hls,te=Li(),re=te.initializeNewVideo,ie=te.renderControls,ae=te.setRenderControls,le=Ge(W);return function(t,n){var r=Kr();(0,e.useEffect)((function(){var e,o=new CustomEvent(Z,{detail:t});null===(e=r.current)||void 0===e||e.dispatchEvent(o),"undefined"!=typeof window&&t&&(window.orcaPlayers=window.orcaPlayers||{},window.orcaPlayers[n]=window.orcaPlayers[n]||{data:t,events:[]},window.orcaPlayers[n].data=t)}),[null==t?void 0:t._id])}(W,U),function(){var t,n=c(),r=n.originalVideo,o=n.videoData,i=Li().playerState,a=null==r?void 0:r._id,l=null==o||null===(t=o.additional_properties)||void 0===t?void 0:t.publicationEndDate;(0,e.useEffect)((function(){if(rt()===ue&&a){return window.TWP=window.TWP||{},window.TWP.hpRefreshTests=window.TWP.hpRefreshTests||{},window.TWP.hpRefreshTests["orca_".concat(a)]=function(){return!i.isPlaying||i.isMuted||b(l)},function(){var e,t,n;null===(n=window)||void 0===n||null===(t=n.TWP)||void 0===t||null===(e=t.hpRefreshTests)||void 0===e||delete e["orca_".concat(a)]}}}),[a,i.isMuted,i.isPlaying,l])}(),Ea({isLive:g},l),function(t,n,r,o,i,a,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=yo().adControlsRef,m=Kr(),y=h().setOverrideReducedMotion,w=Yr().adState,S=Li(),E=S.promoElement,A=S.playerState,O=S.resetVideoState,x=S.setShowSubtitles,C=S.toggleMute,k=S.reset,P=S.pause,j=S.play;(0,e.useImperativeHandle)(t,(function(){return{resetVideo:function(){k(),_e("resetCarouselVideo",!0,s)},start:function(){a(),l()},startVideoLoad:function(){a()},stopVideoLoad:function(){null==n||n.stopLoad()},showControls:function(){r(!0)},playVideoPreview:function(){o&&E.current.playVideo(),j()},play:function(){j()},pause:function(){P(),this.pauseAd()},isAdPlaying:function(){return w===be.PLAYING},pauseAd:function(){var e;w===be.PLAYING&&(null===(e=v.current)||void 0===e||e.pauseAd())},playAd:function(){var e;w===be.PLAYING&&(null===(e=v.current)||void 0===e||e.playAd())},skipAd:function(){var e;w===be.PLAYING&&(null===(e=v.current)||void 0===e||e.skipAd())},toggleMute:function(){w===be.PLAYING?v.current.toggleAdMute():C()},setTime:function(e){w!==be.PLAYING&&"number"==typeof e&&(m.current.currentTime=e)},restart:function(){w!==be.PLAYING&&(m.current.currentTime=0)},initializeNewVideo:function(e,t){i(e,t)},resetVideoState:function(e){O(e)},getDomNode:function(){return m.current},toggleSubtitles:function(){x(!A.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:A}}),[A,k,s,a,l,i,n,r,o,E,j,P,w,v,C,m,O,x,y,d,f,b])}(r,ee,ae,s,re,Q,E),(0,e.useEffect)((function(){q.status===L&&(w(),G({status:"READY"}))}),[q.status]),function(t,n,r,o){var i=c().videoId,a=Kr(),l=Jo().sendPerformanceEvent,u=void 0===l?function(){}:l,s=n.debug,d=void 0!==s&&s;(0,e.useEffect)((function(){window.dispatchEvent(new CustomEvent(ne,{detail:{videoId:i,videoElementRef:a,orcaRef:t}})),_e(ne,!0,i,d),ca(a,"render",ga.RENDER,{isLive:r},n),o({id:i,node:a.current,orcaPlayer:t}),u(oe)}),[])}(r,l,g,i),n().createElement(n().Fragment,null,n().createElement(Pa,{updateCues:O,handleVideoEnd:p,isStickyEnabled:X,updateStickyContext:K,updateDisplay:$,debug:_,preload:l.preload}),m,ie&&!V&&n().createElement(n().Fragment,null,C&&P&&n().createElement(Ca,{currentCue:P}),n().createElement(T,{config:l,hasSubtitles:C,isCarousel:N,carouselEnd:null==R?void 0:R.isEnd,closeCarousel:M,isLive:g,debug:_,isVertical:le})))}));ja.displayName="OrcaCommonUI",ja.propTypes={onVideoRendered:a().func,config:a().object,promoEnabled:a().bool,liveEventEnded:a().bool,handleVideoEnd:a().func,isLive:a().bool,children:a().node,handleStart:a().func,transitionToVideo:a().func,updateCues:a().func,hasSubtitles:a().bool,currentCue:a().object,updateDisplay:a().func,Controls:a().elementType,carouselState:a().object,handleClosePlayer:a().func};var $a=Gn("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"}}),Ia=Object.defineProperty,Ra=Object.getOwnPropertySymbols,Ta=Object.prototype.hasOwnProperty,Da=Object.prototype.propertyIsEnumerable,Ma=(e,t,n)=>t in e?Ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,La=e.forwardRef(((t,n)=>{var r=t,{children:o,size:i="100",fill:a="currentColor",label:l,className:c="",css:u}=r,s=((e,t)=>{var n={};for(var r in e)Ta.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ra)for(var r of Ra(e))t.indexOf(r)<0&&Da.call(e,r)&&(n[r]=e[r]);return n})(r,["children","size","fill","label","className","css"]);let d=e.Children.only(o),p=Yn({size:Jn.sizes[i]||i,fill:a});return e.createElement(e.Fragment,null,e.cloneElement(d,((e,t)=>{for(var n in t||(t={}))Ta.call(t,n)&&Ma(e,n,t[n]);if(Ra)for(var n of Ra(t))Da.call(t,n)&&Ma(e,n,t[n]);return e})({"aria-hidden":!0,focusable:!1,role:"img",ref:n,fill:a,className:`${p({css:u,color:a})} ${c}`},s)),l?e.createElement($a,null,l):null)}));La.displayName="Icon";var Ba=Gn("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 ${Jn.transitions.fast} ${Jn.transitions.inOut}`,"@reducedMotion":{transition:"none"},"&:disabled":{color:"$onDisabled",backgroundColor:"$colors$disabled",borderColor:"$colors$onDisabled","@hover":{"&:hover":{backgroundColor:"$colors$disabled"}}},variants:{variant:{primary:{background:Jn.colors.primary,color:Jn.colors.onPrimary,"@hover":{"&:hover":{background:Jn.colors.gray60}}},secondary:{background:Jn.colors.secondary,color:Jn.colors.onSecondary,border:"1px solid $subtle","@hover":{"&:hover":{background:Jn.colors.gray400}}},cta:{background:Jn.colors.cta,color:Jn.colors.onCta,"@hover":{"&:hover":{background:Jn.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:Jn.colors.primary,"@hover":{"&:hover":{background:Jn.colors.alpha25}}}},{isOutline:!0,variant:"secondary",css:{background:"none",color:Jn.colors.secondary,"@hover":{"&:hover":{background:Jn.colors.alpha25}}}},{isOutline:!0,variant:"cta",css:{background:"none",color:Jn.colors.cta,"@hover":{"&:hover":{background:Jn.colors.alpha25}}}}]}),Na=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},t):null,e.createElement("path",{d:"M6 2v12H4V2zm6 0v12h-2V2z"})))),_a=(0,e.memo)(Na),za=function(e){var t=e.className,r=e.onClick;return n().createElement("svg",{className:t,onPointerDown:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 104 104",fill:"#fff"},n().createElement("polygon",{points:"23 13 89.183 50.82 23 91"}))};za.propTypes={className:a().string,onClick:a().func};const Va=za;var Fa=o(275),Wa=o.n(Fa),Ua=o(328),Ha=o.n(Ua),qa=o(468),Ga=o.n(qa),Ya=o(35),Za=o.n(Ya),Xa=o(255),Ka=o.n(Xa),Ja=o(380),Qa=o.n(Ja),el=o(287),tl={};function nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nl(e,t,n[t])}))}return e}function ol(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}tl.styleTagTransform=Qa(),tl.setAttributes=Za(),tl.insert=Ga().bind(null,"head"),tl.domAPI=Ha(),tl.insertStyleElement=Ka(),Wa()(el.A,tl),el.A&&el.A.locals&&el.A.locals;var il=function(e){var t=e.isPlaying,r=void 0===t?null:t,o=e.toggleAdPlay,i=e.isMiniPlayer,a=void 0!==i&&i,l=e.buttonStyles;return n().createElement(Ba,rl({"aria-label":r?"Pause video":"Play video",className:"focus-visible-highlight","data-testid":"orca-play-button",variant:"primary",css:ol(rl({border:"none",background:"none",padding:"0px",justifySelf:"center"},l&&rl({},l)),{"&:hover":{background:"none"}})},o&&{onClick:function(e){e.stopPropagation(),o()}}),n().createElement(La,{fill:"white",size:a?"100":"150",label:"play"},r?n().createElement(_a,null):n().createElement(Va,null)))};il.displayName="PlayPauseButton";var al={isPlaying:a().bool,toggleAdPlay:a().func,isMiniPlayer:a().bool};il.propTypes=rl({},al);var ll=Gn("div",{position:"absolute",bottom:0,fontSize:"$075",fontWeight:"$bold",width:"100%",marginBottom:"$050","@media (min-width: 480px)":{display:"none"}}),cl=function(){return n().createElement(ll,null,n().createElement("p",{style:{margin:0}},"Swipe up for next video"))},ul=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},t):null,e.createElement("path",{fill:"currentColor",d:"m14.5 8-10 5.56V2.44z"})))),sl=(0,e.memo)(ul),dl=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),pl=(0,e.memo)(dl),fl=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),gl=(0,e.memo)(fl),bl=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.label=n,this.icon=r},vl={READY:new bl("READY","Listen",sl),LOADING:new bl("LOADING","Listen",pl),LOADED:new bl("LOADED","Listen",pl),BUFFER:new bl("BUFFER","Listen",pl),PLAYING:new bl("PLAYING","Pause",_a),PAUSED:new bl("PAUSED","Play",sl),ERROR:new bl("ERROR",void 0,gl)},ml=o(598),yl={};yl.styleTagTransform=Qa(),yl.setAttributes=Za(),yl.insert=Ga().bind(null,"head"),yl.domAPI=Ha(),yl.insertStyleElement=Ka(),Wa()(ml.A,yl),ml.A&&ml.A.locals&&ml.A.locals;var hl=Gn("button",{backgroundColor:"transparent",border:"none",width:"100%",paddingTop:"8px",paddingBottom:"4px",cursor:"pointer",touchAction:"none"}),wl=Gn("div",{background:"$gray20",display:"flex",alignItems:"center",position:"absolute",height:"100%",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,cursor:"pointer"}),Sl=Gn("div",{position:"relative",borderRadius:"3px"}),El=Gn("div",{});function Al(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Al(e,t,n[t])}))}return e}var xl="mousemove",Cl="mouseup",kl="mouseleave",Pl="touchmove",jl="touchend",$l="touchcancel",Il=(0,e.forwardRef)((function(t,r){var o=t.theme,i=t.changeToState,a=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,n;r.current.duration&&s((null===(e=r.current)||void 0===e?void 0:e.currentTime)/(null===(t=r.current)||void 0===t?void 0:t.duration)*(null===(n=d.current)||void 0===n?void 0:n.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=r.current;if(e)return e.addEventListener("timeupdate",f),function(){return e.removeEventListener("timeupdate",f)}}),[]);var g=function(e){var t,n,r=e-(null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect().left),o=null===(n=d.current)||void 0===n?void 0:n.offsetWidth;s(Ir(r/o*o||0,0,o)),c(Ir(r/o*a,0,a))},b=function(e){var t,n,o=(e-(null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect().left))/(null===(n=d.current)||void 0===n?void 0:n.offsetWidth)*a||0;return r.current.currentTime=Ir(o,0,a)};return n().createElement(hl,{tabIndex:-1,"aria-hidden":"true",ref:d,id:"media-components-scrubber","data-testid":"scrubber",onMouseDown:function(){var e,t,n=null===(e=r.current)||void 0===e?void 0:e.paused;n||null===(t=r.current)||void 0===t||t.pause();var o=function(e){return g(e.clientX)},l=function(e){var t;b(e.clientX)===a?i(vl.READY):n||null===(t=r.current)||void 0===t||t.play(),Tr(document,[[xl,o],[Cl,l],[kl,l]])};Rr(document,[[xl,o],[Cl,l],[kl,l]])},onTouchStart:function(e){var t,n;e.preventDefault();var o=null===(t=r.current)||void 0===t?void 0:t.paused;o||null===(n=r.current)||void 0===n||n.pause();var l=function(e){e.preventDefault(),g(e.changedTouches[0].clientX)},c=function(e){e.preventDefault(),b(e.changedTouches[0].clientX)===a?i(vl.READY):o||r.current.play(),Tr(document,[[Pl,l],[jl,c],[$l,c]])};Rr(document,[[Pl,l],[jl,c],[$l,c]])},onClick:function(e){return e.stopPropagation()}},n().createElement(Sl,{id:"media-components-scrubber-bar",css:Ol({},("light"===o||o===vr||!o)&&{backgroundColor:"var(--wpds-colors-gray400)"},o===br&&{backgroundColor:"var(--wpds-colors-gray60)"})},n().createElement(wl,{css:{width:u,background:o===vr?"linear-gradient(180deg, #166DFC, 25.52%, #03AFCA 100%)":o===br?"white":"$gray20"}},n().createElement(El,{id:"media-components-scrubber-dot",css:{left:u,backgroundColor:o===vr&&"#166DFC"}}))))}));Il.displayName="Scrubber",Il.propTypes={theme:a().string.isRequired,changeToState:a().func.isRequired,duration:a().number.isRequired,setCurrentTime:a().func,progress:a().number.isRequired,setProgress:a().func.isRequired};var Rl=Gn("div"),Tl=Gn(Rl,{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"}}}}),Dl=Gn(Rl,{fontFamily:"$meta",variants:{size:{md:{fontSize:"$087"}},align:{right:{textAlign:"right"}},color:{secondary:{color:"$secondary"}}}});function Ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ll(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ll(e,t,n[t])}))}return e}function Nl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ml(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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.")}()}var _l=Gn(Tl,{gap:"$050"}),zl=Gn(Dl,{color:"$gray700-static"}),Vl=function(e){var t,r,o,i,a=e.currState,l=e.setSelected,c=e.changeToState,u=e.duration,s=e.progress,d=e.setProgress,p=Kr();return n().createElement(_l,{direction:"column",align:"end",justify:"start",onMouseDown:function(){return l(!0)},onMouseUp:function(){return l(!1)}},n().createElement(Il,{ref:p,theme:"dark",currState:a,changeToState:c,duration:u,progress:s,setProgress:d}),n().createElement(zl,{size:"md",align:"right"},(r=u,o=sr(null===(t=p.current)||void 0===t?void 0:t.currentTime),(i=sr(r)).hours?"".concat(pr(o)," / ").concat(pr(i)):"".concat(fr(o)," / ").concat(fr(i)))))},Fl=function(t){var r=t.initDuration,o=t.setSelected,i=t.persistentProgress,a=t.setPersistentProgress,l=Kr(),c=Nl((0,e.useState)(i),2),u=c[0],s=c[1],d=Nl((0,e.useState)(vl.READY),2),p=d[0],f=d[1],g=Nl((0,e.useState)(r||NaN),2),b=g[0],v=g[1],m=Nl((0,e.useState)(!1),2),y=m[0],h=m[1],w=(0,e.useRef)(i);return function(t,n,r){(0,e.useEffect)((function(){t!==n&&r(n)}),[t,n,r])}(b,r,v),function(t,n){(0,e.useEffect)((function(){n.current=t}),[t,n])}(u,w),function(t,n){(0,e.useEffect)((function(){n(t.current)}),[t,n])}(w,a),n().createElement(Vl,{currState:p,setSelected:o,changeToState:function(e,t){e===vl.LOADED?function(e,t,n,r,o){n(e.current.duration),t!==vl.PAUSED&&e.current.play(),r||o(!0)}(l,p,v,y,h):e===vl.READY?function(e){e(0)}(s):e===vl.ERROR&&function(e){Qe.send("video-scrubber-error",{player:"Orca",errorMessage:e.message}),console.error(e)}(t),f(e)},duration:b,progress:u,setProgress:s})},Wl={setSelected:a().func.isRequired};Vl.propTypes=Bl({currState:a().object.isRequired,changeToState:a().func.isRequired,duration:a().number.isRequired,progress:a().number.isRequired,setProgress:a().func.isRequired},Wl),Fl.propTypes=Bl({initDuration:a().number.isRequired,persistentProgress:a().number.isRequired,setPersistentProgress:a().func.isRequired},Wl);var Ul=o(734),Hl={};function ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Hl.styleTagTransform=Qa(),Hl.setAttributes=Za(),Hl.insert=Ga().bind(null,"head"),Hl.domAPI=Ha(),Hl.insertStyleElement=Ka(),Wa()(Ul.A,Hl),Ul.A&&Ul.A.locals&&Ul.A.locals;var Gl=function(t){var r,o=t.playerState,i=t.handleVolumeChange,a=t.toggleMute,l=Kr(),c=o.volume,u=o.isMuted,s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ql(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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)(isNaN(null==l||null===(r=l.current)||void 0===r?void 0:r.volume)?1:l.current.volume),2),d=s[0],p=s[1],f=u?0:d,g=(0,e.useRef)();return n().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&&a(),p(e.target.valueAsNumber),i(e.target.valueAsNumber),function(e){var t=e.target,n=t.min,r=t.max,o=t.value-n,i=r-n;e.target.style.background="linear-gradient(to right, #fff 0%, #fff ".concat(o/i*100,"%, #595959 ").concat(o/i*100,"%, #595959 100%)")}(e)}(e)},style:{background:"linear-gradient(to right, #fff 0%, #fff ".concat(100*f,"%, #595959 ").concat(100*f,"%, #595959 100%)")}})};Gl.propTypes={playerState:a().object.isRequired,handleVolumeChange:a().func.isRequired,toggleMute:a().func.isRequired};const Yl=Gl;var Zl=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),Xl=(0,e.memo)(Zl),Kl=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),Jl=(0,e.memo)(Kl);function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ql(e,t,n[t])}))}return e}function tc(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var nc=function(e){var t=e.isMuted,r=e.isMiniPlayer;return n().createElement(La,{fill:"white",size:r?"100":"150",label:"mute"},t?n().createElement(Jl,null):n().createElement(Xl,null))};nc.propTypes={isMuted:a().bool,isMiniPlayer:a().bool};var rc=function(e){var t=e.isMuted,r=void 0!==t&&t,o=e.toggleMute,i=e.isMiniPlayer,a=void 0!==i&&i,l=e.buttonStyles;return n().createElement(Ba,{"aria-label":r?"Unmute audio":"Mute audio",className:"focus-visible-highlight","data-testid":"sound-button",variant:"primary",css:tc(ec({border:"none",background:"none",padding:"0px",cursor:"pointer",justifySelf:"end"},l&&ec({},l)),{"&:hover":{background:"none",right:"0px"}}),onClick:function(e){e.stopPropagation(),o()}},n().createElement(nc,{isMuted:r,isMiniPlayer:a}))};rc.displayName="SoundButton";var oc={toggleMute:a().func,isMiniPlayer:a().bool};function ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rc.propTypes=ec({},oc);var ac=function(e){var t=e.setShowVolumeSlider,r=e.isVertical,o=e.isMiniPlayer,i=e.showVolumeSlider,a=e.playerState,l=e.handleVolumeChange,c=e.toggleMute,u=e.buttonStyles,s=a.isMuted;return n().createElement(Rl,{onMouseOver:function(){return t(!0)},onMouseLeave:function(){return t(!1)},onClick:function(e){e.stopPropagation()}},n().createElement(Rl,{css:{position:"relative",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"5px"}},!r&&!o&&n().createElement(Rl,{css:{display:"flex",alignItems:"center",overflow:"hidden",width:i?"105px":"0px",transition:"width 0.5s ease-in-out","@sm":{display:"none"}}},n().createElement(Yl,{playerState:a,handleVolumeChange:l,toggleMute:c})),n().createElement(rc,{isMuted:s,toggleMute:c,isMiniPlayer:o,buttonStyles:u})))};ac.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ic(e,t,n[t])}))}return e}({setShowVolumeSlider:a().func,isVertical:a().bool,showVolumeSlider:a().bool,playerState:a().shape({isMuted:a().bool}),handleVolumeChange:a().func,buttonStyles:a().object},oc);const lc=ac;var cc=function(e){var t=e.headline,r=Gn("div",{position:"absolute",bottom:"100px",display:"flex",textAlign:"left",opacity:1}),o=Gn("p",{color:"$gray700",fontFamily:"$headline",fontSize:"$125"});return n().createElement(r,null,n().createElement(o,null,t))};cc.propTypes={headline:a().string.isRequired},cc.displayName="Headline";const uc=(0,e.memo)(cc);function sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var dc=Gn("div",{position:"absolute",inset:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}),pc=Gn(La,{boxSizing:"content-box","@sm":{padding:"20px 8px 20px 8px",margin:"-20px -8px -20px -8px"}}),fc=Xn({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),gc=function(){var t=Kr(),r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sc(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=r[0],i=r[1],a=(0,e.useRef)(null),l=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e=t.current;if(e){var n=function(){clearTimeout(a.current),a.current=setTimeout((function(){i(!0)}),200)},r=function(){clearTimeout(a.current),clearTimeout(l.current),l.current=setTimeout((function(){i(!1)}),50)},o=function(){clearTimeout(a.current),clearTimeout(l.current),l.current=setTimeout((function(){i(!1)}),50)};return e.addEventListener("waiting",n),e.addEventListener("play",r),e.addEventListener("playing",r),e.addEventListener("pause",o),function(){clearTimeout(a.current),clearTimeout(l.current),e.removeEventListener("waiting",n),e.removeEventListener("play",r),e.removeEventListener("playing",r),e.removeEventListener("pause",o)}}}),[t]),o?n().createElement(dc,null,n().createElement(Ba,{variant:"primary",isOutline:"false",icon:"center",css:{border:"none",background:"$alpha50","&:hover":{background:"$alpha50"}}},n().createElement(pc,{label:"loading",fill:"white",css:{width:"25px",height:"25px",animation:"".concat(fc," 2s linear infinite"),"@reducedMotion":{animation:"none"}}},n().createElement(pl,null)))):null};gc.displayName="LoadingState";const bc=gc;var vc=Gn("div",{width:"100%",height:"100%",background:Cr({topPercent:15,bottomPercent:25}),variants:{isVisible:{true:{opacity:1},false:{opacity:0}}}}),mc=Gn("div",{boxSizing:"border-box",position:"absolute",top:"0",width:"100%",paddingTop:"$075",paddingLeft:"$150",paddingRight:"$150",variants:{isMiniPlayer:{true:{paddingTop:"$050"}}}}),yc=Gn("div",{justifyContent:"space-between",flexDirection:"row",width:"100%",display:"flex","@sm":{alignItems:"center"}}),hc=Gn("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"}}}}}),wc=Gn("div",{display:"grid",width:"100%",alignItems:"center",justifyContent:"space-between",variants:{isLooping:{true:{gridTemplateColumns:"repeat(2, 1fr)"},false:{gridTemplateColumns:"repeat(3, 1fr)"}}}}),Sc=Gn("div",{display:"flex"}),Ec=Gn("div",{alignItems:"center",display:"flex",gap:"$025",paddingRight:"$100"}),Ac=Gn("div",{color:"$secondary",fontWeight:"$bold"}),Oc=Gn("span",{height:"$050",width:"$050",backgroundColor:"$red100",borderRadius:"50%",display:"inline-block",animation:"sc-status-light-blink-animation 4s ease-in-out infinite alternate"}),xc=Gn(Rl,{variants:{isLooping:{true:{justifySelf:"left"},false:{justifySelf:"center"}}}}),Cc=function(e,t,n){return e===ir.MINI&&!t&&!n},kc=function(e,t,n){return e?{background:Cr({topPercent:0,bottomPercent:25})}:t||n?{background:Cr({topPercent:35,bottomPercent:35})}:{background:Cr({topPercent:15,bottomPercent:25})}},Pc=function(t){var r=t.children,o=t.togglePlay,i=t.controlsContainerHeight,a=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(){a(!1)}),3e3),function(){clearTimeout(d.current)}}),[a]);var p=(0,e.useCallback)((function(){d.current&&clearTimeout(d.current),a(!0)}),[d,a]),f=(0,e.useCallback)((function(){l||a(!1)}),[l,a]),g=(0,e.useCallback)((function(){d.current&&clearTimeout(d.current),a(!0),_e(N,!0,s._id,u)}),[u,s._id,a]),b=(0,e.useCallback)((function(){d.current=setTimeout((function(){a(!1),_e(N,!1,s._id,u)}),3e3)}),[u,s._id,a]);return n().createElement(jc,{"data-testid":"orca-controls",tabIndex:0,"aria-label":"Video controls",onClick:o,onMouseOver:p,onMouseLeave:f,onFocus:function(){a(!0)},onTouchStart:g,onTouchEnd:b,style:{"@sm":{maxHeight:i}}},r)};Pc.propTypes={children:a().node,togglePlay:a().func,controlsContainerHeight:a().string,setIsVisible:a().func,selected:a().bool,debug:a().bool};var jc=Gn("div",{top:"0",left:"0",position:"absolute",height:"100%",width:"100%",display:"flex",zIndex:"2",opacity:1,"& .fade-out":{opacity:0}});function $c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ic(e,t,n[t])}))}return e}function Tc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Dc=function(t){var r=t.config,o=t.isVertical,i=t.carouselEnd,a=t.TopControls,l=void 0===a?function(){}:a,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=Vr().isOpenSticky,m=Yr().adState,y=Li(),w=y.initDuration,S=y.playerSize,E=y.playerState,A=y.isFullscreen,O=y.handleVolumeChange,x=y.toggleMute,C=y.onPlayButton,k=r.isCarousel,P=r.debug,j=Tc((0,e.useState)(!0),2),$=j[0],I=j[1],R=Tc((0,e.useState)(!1),2),T=R[0],D=R[1],M=Tc((0,e.useState)(!1),2),L=M[0],B=M[1],N=Tc((0,e.useState)(0),2),_=N[0],z=N[1],V=Cc(S,A,o),F=window.innerHeight?"".concat(window.innerHeight,"px"):"100%",W=!V&&!f&&!b.isLooping,U=ze(g),H=k&&!U,q=(null==g?void 0:g.headlines.basic)||"";return n().createElement(Pc,{"data-testid":"orca-controls",tabIndex:0,"aria-label":"Video controls",togglePlay:function(){m!==be.PLAYING&&C()},controlsContainerHeight:F,setIsVisible:I,selected:L,debug:P},n().createElement(bc,null),n().createElement(vc,{isVisible:$,css:Rc({},kc(b.isLooping,v,V))},n().createElement(l,{config:r,isVertical:o,closeCarousel:d,setSelected:B}),n().createElement(hc,{isMiniPlayer:V,isCarousel:k},n().createElement(wc,{isLooping:b.isLooping},H&&n().createElement(uc,{headline:q}),n().createElement(s,{isVertical:o,hasSubtitles:p,isLive:f}),n().createElement(xc,{isLooping:b.isLooping},n().createElement(il,{isPlaying:E.isPlaying,isMiniPlayer:V,buttonStyles:{margin:"-12px -12px 0 -12px",padding:"$075"}})),n().createElement(lc,{setShowVolumeSlider:D,isVertical:o,isMiniPlayer:V,showVolumeSlider:T,playerState:E,handleVolumeChange:O,toggleMute:x,buttonStyles:{margin:"-12px -12px 0 -12px",padding:"$075"}})),W&&n().createElement(Fl,{setSelected:B,initDuration:w,persistentProgress:_,setPersistentProgress:z})),k&&!i&&n().createElement(cl,null)))};Dc.propTypes={config:a().object,isVertical:a().bool,carouselEnd:a().bool,TopControls:a().elementType,LeftButtons:a().elementType,isLive:a().bool,closeCarousel:a().func,hasSubtitles:a().bool};var Mc=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),Lc=(0,e.memo)(Mc),Bc=function(e){var t=e.className;return n().createElement("svg",{className:t,width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n().createElement("path",{d:"M2 19.6431V4.64307H23V19.6431H2Z",fill:"white"}),n().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"}),n().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"}))};Bc.propTypes={className:a().string};const Nc=Bc;var _c=Gn("div",{width:"40px",height:"40px"}),zc=function(e){var t=e.setShowSubtitles,r=e.playerState,o=e.hasSubtitles,i=Kr();return o?n().createElement(Ba,{"aria-label":r.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 n=new Event("captions");i.current.dispatchEvent(n),t(!r.showSubtitles)}},r.showSubtitles?n().createElement(Nc,null):n().createElement(La,{fill:"white",size:"150",label:"subtitles"},n().createElement(Lc,null))):n().createElement(_c,null)};function Vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}zc.displayName="SubtitlesButton",zc.propTypes={setShowSubtitles:a().func,playerState:a().object,hasSubtitles:a().bool};var Fc=Gn("div",{color:"$secondary",fontSize:"$087",userSelect:"none"});function Wc(t){var r,o,i=t.initDuration,a=Kr(),l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vc(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===(r=a.current)||void 0===r?void 0:r.currentTime)||0),2),c=l[0],u=l[1];return(0,e.useEffect)((function(){var e=a.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)}}}),[a]),n().createElement(Fc,null,(o=sr(i-c)).hours?pr(o):fr(o))}Wc.propTypes={initDuration:a().number.isRequired};var Uc=function(e){var t,r,o,i=e.isVertical,a=e.hasSubtitles,l=e.isLive,u=Li(),s=u.initDuration,d=u.playerSize,p=u.playerState,f=u.isFullscreen,g=u.setShowSubtitles,b=c().videoData,v=Cc(d,f,i),m=!(v||(t=b,o=null==t||null===(r=t.taxonomy)||void 0===r?void 0:r.tags,(null==o?void 0:o.filter((function(e){return e.text===fe.BURNED_CAPTIONS})).length)>0));return n().createElement(Sc,null,l?n().createElement(Hc,{isMiniPlayer:v}):v&&n().createElement(Wc,{initDuration:s}),m&&n().createElement(zc,{setShowSubtitles:g,playerState:p,hasSubtitles:a}))};Uc.propTypes={isVertical:a().bool,hasSubtitles:a().bool,isLive:a().bool};var Hc=function(e){var t=e.isMiniPlayer;return n().createElement(Ec,null,n().createElement(Oc,null),n().createElement(Ac,{css:{fontSize:t?"$087":"$100"}},"LIVE"))};Hc.propTypes={isMiniPlayer:a().bool};var qc=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),Gc=(0,e.memo)(qc),Yc=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),Zc=(0,e.memo)(Yc),Xc=function(e){var t=e.isFullscreen,r=e.setIsFullscreen,o=e.isMiniPlayer,i=Kr();return n().createElement(Ba,{"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 n=new Event(t?G:q);i.current.dispatchEvent(n),r(!t)}},n().createElement(La,{fill:"white",size:o?"100":"150",label:"full-screen"},t?n().createElement(Zc,null):n().createElement(Gc,null)))};Xc.displayName="FullScreenButton";const Kc=Xc;Xc.propTypes={isFullscreen:a().bool.isRequired,setIsFullscreen:a().func.isRequired,isMiniPlayer:a().bool.isRequired};var Jc=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),Qc=(0,e.memo)(Jc);function eu(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}var tu=function(){var e,t=(e=function(e,t){var n,r;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,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 n=o.sent(),console.error("Try to copy by execCommand due to failed on Clipboard API writeText: ",n),(r=document.createElement("textarea")).value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),[3,3];case 3:return t(),[2]}}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){eu(i,r,o,a,l,"next",e)}function l(e){eu(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}(),nu=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),ru=(0,e.memo)(nu),ou=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),iu=(0,e.memo)(ou);function au(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lu(e,t,n[t])}))}return e}var uu=Gn("div",{position:"relative",display:"inline-flex",flexShrink:0}),su=Gn("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}),du=function(t){var r=t.content,o=t.onBlur,i=void 0===o?function(){}:o,a=t.isMiniPlayer,l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return au(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?au(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(),tu(r,(function(){return u(!0)}))}),[r]);return n().createElement(uu,null,n().createElement(Ba,{"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:i},n().createElement(La,{fill:"white",color:"white",size:a?"100":"150"},c?n().createElement(ru,null):n().createElement(iu,null))),n().createElement(su,{role:"status","aria-live":"polite","aria-hidden":!c,css:cu({},c&&{opacity:1})},"Link copied"))};function pu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}du.displayName="CopyButton",du.propTypes={content:a().string.isRequired,onBlur:a().func,isMiniPlayer:a().bool.isRequired};var fu=function(t){var r,o,i=t.headline,a=t.canonicalUrl,l=t.setSelected,c=t.isMiniPlayer,u=Ai()===gi,s=(r={title:i,url:a},"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(r)&&u),d=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pu(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:i,url:a},navigator.share(e)).then((function(){f(!1)})).catch((function(){f(!1)})))}),[i,a,p]);return n().createElement(n().Fragment,null,s?n().createElement(Ba,{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()}},n().createElement(La,{fill:"white",size:"150",label:"share"},n().createElement(Qc,null))):n().createElement(du,{isMiniPlayer:c,content:a}))};fu.displayName="ShareButton",fu.propTypes={headline:a().string.isRequired,canonicalUrl:a().string.isRequired,setSelected:a().func,isMiniPlayer:a().bool.isRequired};var gu=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),bu=(0,e.memo)(gu),vu=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),mu=(0,e.memo)(vu),yu=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},t):null,e.createElement("path",{fillRule:"evenodd",d:"M13 5H6v9h7zM5 4v11h9V4z",clipRule:"evenodd"}),e.createElement("path",{d:"M11.5 1v2h-1V2H3v10h1v1H2V1z"})))),hu=(0,e.memo)(yu);function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wu.apply(this,arguments)}function Su(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Eu(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Au(...t){return(0,e.useCallback)(Eu(...t),t)}function Ou(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return(0,e.useMemo)((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const xu=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},Cu=t["useId".toString()]||(()=>{});let ku=0;function Pu(t){const[n,r]=e.useState(Cu());return xu((()=>{t||r((e=>null!=e?e:String(ku++)))}),[t]),t||(n?`radix-${n}`:"")}function ju(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t})),(0,e.useMemo)((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function $u({prop:t,defaultProp:n,onChange:r=()=>{}}){const[o,i]=function({defaultProp:t,onChange:n}){const r=(0,e.useState)(t),[o]=r,i=(0,e.useRef)(o),a=ju(n);return(0,e.useEffect)((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==t,l=a?t:o,c=ju(r);return[l,(0,e.useCallback)((e=>{if(a){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else i(e)}),[a,t,i,c])]}const Iu=require("react-dom");var Ru=o.n(Iu);const Tu=(0,e.forwardRef)(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),a=i.find(Lu);if(a){const t=a.props.children,r=i.map((n=>n===a?e.Children.count(t)>1?e.Children.only(null):(0,e.isValidElement)(t)?t.props.children:null:n));return(0,e.createElement)(Du,wu({},o,{ref:n}),(0,e.isValidElement)(t)?(0,e.cloneElement)(t,void 0,r):null)}return(0,e.createElement)(Du,wu({},o,{ref:n}),r)}));Tu.displayName="Slot";const Du=(0,e.forwardRef)(((t,n)=>{const{children:r,...o}=t;return(0,e.isValidElement)(r)?(0,e.cloneElement)(r,{...Bu(o,r.props),ref:n?Eu(n,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null}));Du.displayName="SlotClone";const Mu=({children:t})=>(0,e.createElement)(e.Fragment,null,t);function Lu(t){return(0,e.isValidElement)(t)&&t.type===Mu}function Bu(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Nu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=(0,e.forwardRef)(((t,r)=>{const{asChild:o,...i}=t,a=o?Tu:n;return(0,e.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,e.createElement)(a,wu({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{}),_u="dismissableLayer.update";let zu;const Vu=(0,e.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fu=(0,e.forwardRef)(((t,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:u,...s}=t,d=(0,e.useContext)(Vu),[p,f]=(0,e.useState)(null),g=null!==(r=null==p?void 0:p.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=(0,e.useState)({}),v=Au(n,(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,A=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=ju(t),o=(0,e.useRef)(!1),i=(0,e.useRef)((()=>{}));return(0,e.useEffect)((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){Uu("dismissableLayer.pointerDownOutside",r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));E&&!n&&(null==a||a(e),null==c||c(e),e.defaultPrevented||null==u||u())}),g),O=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=ju(t),o=(0,e.useRef)(!1);return(0,e.useEffect)((()=>{const e=e=>{e.target&&!o.current&&Uu("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{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,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=ju(t);(0,e.useEffect)((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{w===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),g),(0,e.useEffect)((()=>{if(p)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(zu=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Wu(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=zu)}}),[p,g,o,d]),(0,e.useEffect)((()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Wu())}),[p,d]),(0,e.useEffect)((()=>{const e=()=>b({});return document.addEventListener(_u,e),()=>document.removeEventListener(_u,e)}),[]),(0,e.createElement)(Nu.div,wu({},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,A.onPointerDownCapture)}))}));function Wu(){const e=new CustomEvent(_u);document.dispatchEvent(e)}function Uu(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&(0,Iu.flushSync)((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}const Hu="focusScope.autoFocusOnMount",qu="focusScope.autoFocusOnUnmount",Gu={bubbles:!1,cancelable:!0},Yu=(0,e.forwardRef)(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=t,[c,u]=(0,e.useState)(null),s=ju(i),d=ju(a),p=(0,e.useRef)(null),f=Au(n,(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:Ju(p.current,{select:!0})}function t(e){if(g.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Ju(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Ju(c)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,c,g.paused]),(0,e.useEffect)((()=>{if(c){Qu.add(g);const e=document.activeElement;if(!c.contains(e)){const t=new CustomEvent(Hu,Gu);c.addEventListener(Hu,s),c.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ju(r,{select:t}),document.activeElement!==n)return}(Zu(c).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&Ju(c))}return()=>{c.removeEventListener(Hu,s),setTimeout((()=>{const t=new CustomEvent(qu,Gu);c.addEventListener(qu,d),c.dispatchEvent(t),t.defaultPrevented||Ju(null!=e?e:document.body,{select:!0}),c.removeEventListener(qu,d),Qu.remove(g)}),0)}}}),[c,s,d,g]);const b=(0,e.useCallback)((e=>{if(!r&&!o)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=Zu(e);return[Xu(t,e),Xu(t.reverse(),e)]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Ju(i,{select:!0})):(e.preventDefault(),r&&Ju(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,g.paused]);return(0,e.createElement)(Nu.div,wu({tabIndex:-1},l,{ref:f,onKeyDown:b}))}));function Zu(e){const t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}function Xu(e,t){for(const n of e)if(!Ku(n,{upTo:t}))return n}function Ku(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 Ju(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Qu=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=es(e,t),e.unshift(t)},remove(t){var n;e=es(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function es(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const ts=(0,e.forwardRef)(((t,n)=>{var r;const{container:o=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...i}=t;return o?Iu.createPortal((0,e.createElement)(Nu.div,wu({},i,{ref:n})),o):null})),ns=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=(0,e.useState)(),o=(0,e.useRef)({}),i=(0,e.useRef)(t),a=(0,e.useRef)("none"),l=t?"mounted":"unmounted",[c,u]=function(t,n){return(0,e.useReducer)(((e,t)=>{const r=n[e][t];return null!=r?r:e}),t)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,e.useEffect)((()=>{const e=rs(o.current);a.current="mounted"===c?e:"none"}),[c]),xu((()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=rs(e);t?u("MOUNT"):"none"===o||"none"===(null==e?void 0:e.display)?u("UNMOUNT"):u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT"),i.current=t}}),[t,u]),xu((()=>{if(n){const e=e=>{const t=rs(o.current).includes(e.animationName);e.target===n&&t&&(0,Iu.flushSync)((()=>u("ANIMATION_END")))},t=e=>{e.target===n&&(a.current=rs(o.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:(0,e.useCallback)((e=>{e&&(o.current=getComputedStyle(e)),r(e)}),[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=Au(o.ref,i.ref);return"function"==typeof r||o.isPresent?(0,e.cloneElement)(i,{ref:a}):null};function rs(e){return(null==e?void 0:e.animationName)||"none"}ns.displayName="Presence";let os=0;function is(){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 as=function(){return as=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},as.apply(this,arguments)};function ls(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create,Object.create;var cs="right-scroll-bar-position",us="width-before-scroll-bar";function ss(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ds="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ps=new WeakMap;function fs(e){return e}var gs=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=fs);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=as({async:!0,ssr:!1},e),t}(),bs=function(){},vs=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:bs,onWheelCapture:bs,onTouchMoveCapture:bs}),i=o[0],a=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=ls(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,S=function(t,n){var r,o,i,a=(r=n||null,o=function(e){return t.forEach((function(t){return ss(t,e)}))},(i=(0,e.useState)((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade);return ds((function(){var e=ps.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach((function(e){r.has(e)||ss(e,null)})),r.forEach((function(e){n.has(e)||ss(e,o)}))}ps.set(a,t)}),[t]),a}([r,n]),E=as(as({},h),i);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:gs,removeScrollBar:s,shards:p,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!v,lockRef:r}),l?e.cloneElement(e.Children.only(c),as(as({},E),{ref:S})):e.createElement(y,as({},E,{className:u,ref:S}),c))}));vs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},vs.classNames={fullWidth:us,zeroRight:cs};var ms=function(t){var n=t.sideCar,r=ls(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,as({},r))};ms.isSideCarExport=!0;var ys=function(){var e=0,t=null;return{add:function(n){var r,i;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}())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hs=function(){var t,n=(t=ys(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},ws={left:0,top:0,right:0,gap:0},Ss=function(e){return parseInt(e||"",10)||0},Es=hs(),As="data-scroll-locked",Os=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(As,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(cs," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(us," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(cs," .").concat(cs," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(us," .").concat(us," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(As,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},xs=function(){var e=parseInt(document.body.getAttribute(As)||"0",10);return isFinite(e)?e:0},Cs=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect((function(){return document.body.setAttribute(As,(xs()+1).toString()),function(){var e=xs()-1;e<=0?document.body.removeAttribute(As):document.body.setAttribute(As,e.toString())}}),[]);var a=e.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ws;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Ss(n),Ss(r),Ss(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(i)}),[i]);return e.createElement(Es,{styles:Os(a,!n,i,r?"":"!important")})},ks=!1;if("undefined"!=typeof window)try{var Ps=Object.defineProperty({},"passive",{get:function(){return ks=!0,!0}});window.addEventListener("test",Ps,Ps),window.removeEventListener("test",Ps,Ps)}catch(e){ks=!1}var js=!!ks&&{passive:!1},$s=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Is=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Rs(e,n)){var r=Ts(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Rs=function(e,t){return"v"===e?function(e){return $s(e,"overflowY")}(t):function(e){return $s(e,"overflowX")}(t)},Ts=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Ds=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ms=function(e){return[e.deltaX,e.deltaY]},Ls=function(e){return e&&"current"in e?e.current:e},Bs=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ns=0,_s=[];const zs=(Vs=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Ns++)[0],a=e.useState((function(){return hs()}))[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(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(Ls),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[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 n,i=Ds(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[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=Is(d,s);if(!p)return!0;if(p?n=d:(n="v"===d?"h":"v",p=Is(d,s)),!p)return!1;if(!o.current&&"changedTouches"in e&&(c||u)&&(o.current=n),!n)return!0;var f=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,l=t.contains(a),c=!1,u=i>0,s=0,d=0;do{var p=Ts(e,a),f=p[0],g=p[1]-p[2]-o*f;(f||g)&&Rs(e,a)&&(s+=g,d+=f),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));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(_s.length&&_s[_s.length-1]===a){var r="deltaY"in t?Ms(t):Ds(t),o=n.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,r)}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(l.current.shards||[]).map(Ls).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?c(t,i[0]):!l.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),s=e.useCallback((function(e,t,r,o){var i={name:e,delta:t,target:r,should:o};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),d=e.useCallback((function(e){r.current=Ds(e),o.current=void 0}),[]),p=e.useCallback((function(e){s(e.type,Ms(e),e.target,c(e,t.lockRef.current))}),[]),f=e.useCallback((function(e){s(e.type,Ds(e),e.target,c(e,t.lockRef.current))}),[]);e.useEffect((function(){return _s.push(a),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",u,js),document.addEventListener("touchmove",u,js),document.addEventListener("touchstart",d,js),function(){_s=_s.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,js),document.removeEventListener("touchmove",u,js),document.removeEventListener("touchstart",d,js)}}),[]);var g=t.removeScrollBar,b=t.inert;return e.createElement(e.Fragment,null,b?e.createElement(a,{styles:Bs(i)}):null,g?e.createElement(Cs,{gapMode:"margin"}):null)},gs.useMedium(Vs),ms);var Vs,Fs=e.forwardRef((function(t,n){return e.createElement(vs,as({},t,{ref:n,sideCar:zs}))}));Fs.classNames=vs.classNames;const Ws=Fs;var Us=new WeakMap,Hs=new WeakMap,qs={},Gs=0,Ys=function(e){return e&&(e.host||Ys(e.parentNode))},Zs=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=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?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Ys(t);return n&&e.contains(n)?n:(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]);qs[n]||(qs[n]=new WeakMap);var i=qs[n],a=[],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(r),o=null!==t&&"false"!==t,c=(Us.get(e)||0)+1,u=(i.get(e)||0)+1;Us.set(e,c),i.set(e,u),a.push(e),1===c&&o&&Hs.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return s(t),l.clear(),Gs++,function(){a.forEach((function(e){var t=Us.get(e)-1,o=i.get(e)-1;Us.set(e,t),i.set(e,o),t||(Hs.has(e)||e.removeAttribute(r),Hs.delete(e)),o||e.removeAttribute(n)})),--Gs||(Us=new WeakMap,Us=new WeakMap,Hs=new WeakMap,qs={})}}(r,o,n,"aria-hidden")):function(){return null}};const Xs="Dialog",[Ks,Js]=function(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>(0,e.createContext)(t)));return function(r){const o=(null==r?void 0:r[t])||n;return(0,e.useMemo)((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=(0,e.createContext)(o),a=r.length;function l(n){const{scope:r,children:o,...l}=n,c=(null==r?void 0:r[t][a])||i,u=(0,e.useMemo)((()=>l),Object.values(l));return(0,e.createElement)(c.Provider,{value:u},o)}return r=[...r,o],l.displayName=n+"Provider",[l,function(r,l){const c=(null==l?void 0:l[t][a])||i,u=(0,e.useContext)(c);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},Ou(o,...n)]}(Xs),[Qs,ed]=Ks(Xs),td="DialogPortal",[nd,rd]=Ks(td,{forceMount:void 0}),od="DialogOverlay",id=(0,e.forwardRef)(((t,n)=>{const r=rd(od,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,a=ed(od,t.__scopeDialog);return a.modal?(0,e.createElement)(ns,{present:o||a.open},(0,e.createElement)(ad,wu({},i,{ref:n}))):null})),ad=(0,e.forwardRef)(((t,n)=>{const{__scopeDialog:r,...o}=t,i=ed(od,r);return(0,e.createElement)(Ws,{as:Tu,allowPinchZoom:!0,shards:[i.contentRef]},(0,e.createElement)(Nu.div,wu({"data-state":bd(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),ld="DialogContent",cd=(0,e.forwardRef)(((t,n)=>{const r=rd(ld,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,a=ed(ld,t.__scopeDialog);return(0,e.createElement)(ns,{present:o||a.open},a.modal?(0,e.createElement)(ud,wu({},i,{ref:n})):(0,e.createElement)(sd,wu({},i,{ref:n})))})),ud=(0,e.forwardRef)(((t,n)=>{const r=ed(ld,t.__scopeDialog),o=(0,e.useRef)(null),i=Au(n,r.contentRef,o);return(0,e.useEffect)((()=>{const e=o.current;if(e)return Zs(e)}),[]),(0,e.createElement)(dd,wu({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Su(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Su(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Su(t.onFocusOutside,(e=>e.preventDefault()))}))})),sd=(0,e.forwardRef)(((t,n)=>{const r=ed(ld,t.__scopeDialog),o=(0,e.useRef)(!1),i=(0,e.useRef)(!1);return(0,e.createElement)(dd,wu({},t,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,a;null===(n=t.onCloseAutoFocus)||void 0===n||n.call(t,e),e.defaultPrevented||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{var n,a;null===(n=t.onInteractOutside)||void 0===n||n.call(t,e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const l=e.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(l))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}}))})),dd=(0,e.forwardRef)(((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...l}=t,c=ed(ld,r),u=Au(n,(0,e.useRef)(null));return(0,e.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:is()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:is()),os++,()=>{1===os&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),os--}}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Yu,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},(0,e.createElement)(Fu,wu({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":bd(c.open)},l,{ref:u,onDismiss:()=>c.onOpenChange(!1)}))),!1)})),pd="DialogTitle",fd=(0,e.forwardRef)(((t,n)=>{const{__scopeDialog:r,...o}=t,i=ed(pd,r);return(0,e.createElement)(Nu.h2,wu({id:i.titleId},o,{ref:n}))})),gd=(0,e.forwardRef)(((t,n)=>{const{__scopeDialog:r,...o}=t,i=ed("DialogClose",r);return(0,e.createElement)(Nu.button,wu({type:"button"},o,{ref:n,onClick:Su(t.onClick,(()=>i.onOpenChange(!1)))}))}));function bd(e){return e?"open":"closed"}const[vd,md]=function(t,n){const r=(0,e.createContext)(n);function o(t){const{children:n,...o}=t,i=(0,e.useMemo)((()=>o),Object.values(o));return(0,e.createElement)(r.Provider,{value:i},n)}return o.displayName=t+"Provider",[o,function(o){const i=(0,e.useContext)(r);if(i)return i;if(void 0!==n)return n;throw new Error(`\`${o}\` must be used within \`${t}\``)}]}("DialogTitleWarning",{contentName:ld,titleName:pd,docsSlug:"dialog"}),yd=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=t,c=(0,e.useRef)(null),u=(0,e.useRef)(null),[s=!1,d]=$u({prop:o,defaultProp:i,onChange:a});return(0,e.createElement)(Qs,{scope:n,triggerRef:c,contentRef:u,contentId:Pu(),titleId:Pu(),descriptionId:Pu(),open:s,onOpenChange:d,onOpenToggle:(0,e.useCallback)((()=>d((e=>!e))),[d]),modal:l},r)},hd=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=t,a=ed(td,n);return(0,e.createElement)(nd,{scope:n,forceMount:r},e.Children.map(o,(t=>(0,e.createElement)(ns,{present:r||a.open},(0,e.createElement)(ts,{asChild:!0,container:i},t)))))},wd=id,Sd=cd,Ed=fd,Ad=gd;var Od=e.createContext({}),xd=({open:t,defaultOpen:n,onOpenChange:r,...o})=>{let[i,a]=$u({prop:t,defaultProp:n,onChange:r});return e.createElement(Od.Provider,{value:{open:i}},e.createElement(yd,{open:i,onOpenChange:e=>a(e),...o}))};xd.displayName="DialogRoot";var Cd=({forceMount:t=!0,...n})=>e.createElement(hd,{forceMount:t,...n});Cd.displayName="DialogPortal";var kd={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)"},Pd={"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)"},jd={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"},$d="colors",Id="sizes",Rd="space",Td={gap:Rd,gridGap:Rd,columnGap:Rd,gridColumnGap:Rd,rowGap:Rd,gridRowGap:Rd,inset:Rd,insetBlock:Rd,insetBlockEnd:Rd,insetBlockStart:Rd,insetInline:Rd,insetInlineEnd:Rd,insetInlineStart:Rd,margin:Rd,marginTop:Rd,marginRight:Rd,marginBottom:Rd,marginLeft:Rd,marginBlock:Rd,marginBlockEnd:Rd,marginBlockStart:Rd,marginInline:Rd,marginInlineEnd:Rd,marginInlineStart:Rd,padding:Rd,paddingTop:Rd,paddingRight:Rd,paddingBottom:Rd,paddingLeft:Rd,paddingBlock:Rd,paddingBlockEnd:Rd,paddingBlockStart:Rd,paddingInline:Rd,paddingInlineEnd:Rd,paddingInlineStart:Rd,top:Rd,right:Rd,bottom:Rd,left:Rd,scrollMargin:Rd,scrollMarginTop:Rd,scrollMarginRight:Rd,scrollMarginBottom:Rd,scrollMarginLeft:Rd,scrollMarginX:Rd,scrollMarginY:Rd,scrollMarginBlock:Rd,scrollMarginBlockEnd:Rd,scrollMarginBlockStart:Rd,scrollMarginInline:Rd,scrollMarginInlineEnd:Rd,scrollMarginInlineStart:Rd,scrollPadding:Rd,scrollPaddingTop:Rd,scrollPaddingRight:Rd,scrollPaddingBottom:Rd,scrollPaddingLeft:Rd,scrollPaddingX:Rd,scrollPaddingY:Rd,scrollPaddingBlock:Rd,scrollPaddingBlockEnd:Rd,scrollPaddingBlockStart:Rd,scrollPaddingInline:Rd,scrollPaddingInlineEnd:Rd,scrollPaddingInlineStart:Rd,fontSize:"fontSizes",background:$d,backgroundColor:$d,backgroundImage:$d,borderImage:$d,border:$d,borderBlock:$d,borderBlockEnd:$d,borderBlockStart:$d,borderBottom:$d,borderBottomColor:$d,borderColor:$d,borderInline:$d,borderInlineEnd:$d,borderInlineStart:$d,borderLeft:$d,borderLeftColor:$d,borderRight:$d,borderRightColor:$d,borderTop:$d,borderTopColor:$d,caretColor:$d,color:$d,columnRuleColor:$d,fill:$d,outline:$d,outlineColor:$d,stroke:$d,textDecorationColor:$d,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Id,minBlockSize:Id,maxBlockSize:Id,inlineSize:Id,minInlineSize:Id,maxInlineSize:Id,width:Id,minWidth:Id,maxWidth:Id,height:Id,minHeight:Id,maxHeight:Id,flexBasis:Id,gridTemplateColumns:Id,gridTemplateRows:Id,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"},Dd=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,Md=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,Dd))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ld=Symbol.for("sxs.internal"),Bd=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Nd=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:_d}=Object.prototype,zd=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),Vd=/\s+(?![^()]*\))/,Fd=e=>t=>e(..."string"==typeof t?String(t).split(Vd):[t]),Wd={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:Fd(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:Fd(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:Fd(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:Fd(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:Fd(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:Fd(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},Ud=/([\d.]+)([^]*)/,Hd=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,qd=(e,t)=>e in Gd&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${zd(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${zd(e)}:${n}fit-content`)+o)):String(t),Gd={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Yd=e=>e?e+"-":"",Zd=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,o,i,a)=>"$"==i==!!o?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?Yd(t)+(a.includes("$")?"":Yd(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),Xd=/\s*,\s*(?![^()]*\))/,Kd=Object.prototype.toString,Jd=(e,t,n,r,o)=>{let i,a,l;const c=(e,t,n)=>{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===Kd&&(!r.utils[e]||!t.length);if(e in r.utils&&!b){const t=r.utils[e];if(t!==a){a=t,d(t(s)),a=null;continue}}else if(e in Wd){const t=Wd[e];if(t!==l){l=t,d(t(s)),l=null;continue}}if(g&&(p=u.slice(1)in r.media?"@media "+r.media[u.slice(1)]:u,u=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=Ud.test(t),l=.0625*(a?-1:1),[c,u]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+c+":"+("="!==n[0]&&1===n.length?u.replace(Ud,((e,t,r)=>Number(t)+l*(">"===n?1:-1)+r)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+c+":"+(1===o.length?i.replace(Ud,((e,t,n)=>Number(t)+l*(">"===o?-1:1)+n)):i):"")+")"}))),b){const e=g?n.concat(u):[...n],r=g?[...t]:Hd(t,u.split(Xd));void 0!==i&&o(Qd(...i)),i=void 0,c(s,r,e)}else void 0===i&&(i=[[],t,n]),u=g||36!==u.charCodeAt(0)?u:`--${Yd(r.prefix)}${u.slice(1).replace(/\$/g,"-")}`,s=b?s:"number"==typeof s?s&&!(e in ep)&&45!==u.charCodeAt(0)?String(s)+"px":String(s):Zd(qd(e,null==s?"":s),r.prefix,r.themeMap[e]),i[0].push(`${g?`${u} `:`${zd(u)}:`}${s}`)}}var p,f};d(e),void 0!==i&&o(Qd(...i)),i=void 0};c(e,t,n)},Qd=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,ep={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},tp=e=>String.fromCharCode(e+(e>25?39:97)),np=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tp(t%52)+n;return tp(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),rp=["themed","global","styled","onevar","resonevar","allvar","inline"],op=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},ip=e=>{let t;const n=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((n,r)=>{const{cssText:o}=n;let i="";if(o.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return n.cssRules.length?`${i}${o}`:""}return o})).join("")},r=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t]}const o=Object(e).styleSheets||[];for(const e of o)if(op(e)){for(let o=0,i=e.cssRules;i[o];++o){const a=Object(i[o]);if(1!==a.type)continue;const l=Object(i[o+1]);if(4!==l.type)continue;++o;const{cssText:c}=a;if(!c.startsWith("--sxs"))continue;const u=c.slice(14,-3).trim().split(/\s+/),s=rp[u[0]];s&&(t||(t={sheet:e,reset:r,rules:{},toString:n}),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"),n=void 0!==window.__webpack_nonce__?window.__webpack_nonce__:void 0!==window.nonce?window.nonce:null;return n&&t.setAttribute("nonce",n),(e.head||e).appendChild(t).sheet})(),rules:{},reset:r,toString:n}}const{sheet:i,rules:a}=t;for(let e=rp.length-1;e>=0;--e){const t=rp[e];if(!a[t]){const n=rp[e+1],r=a[n]?a[n].index:i.cssRules.length;i.insertRule("@media{}",r),i.insertRule(`--sxs{--sxs:${e}}`,r),a[t]={group:i.cssRules[r+1],index:r,cache:new Set([e])}}ap(a[t])}};return r(),t},ap=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},lp=Symbol(),cp=Md(),up=(e,t)=>cp(e,(()=>{const n=(n,r={})=>{let o={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[Ld]){null==o.type&&(o.type=t[Ld].type);for(const e of t[Ld].composers)o.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==o.type&&(o.type=t):o.composers.add(sp(t,e,r));return null==o.type&&(o.type="span"),o.composers.size||o.composers.add(["PJLV",{},[],[],{},[]]),dp(e,o,t,r)},r=(...e)=>n(e);return r.withConfig=e=>(...t)=>n(t,e),r})),sp=({variants:e,compoundVariants:t,defaultVariants:n,...r},o,{componentId:i,displayName:a})=>{const l=i||np(r),c=a?"c-"+a:"c",u=`${Yd(o.prefix)}${c}-${l}`,s=[],d=[],p=Object.create(null),f=[];for(const e in n)p[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){g=p,b=t,_d.call(g,b)||(p[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&f.push(t);const o=n[e],i=[r,o,!Nd(o)];s.push(i)}}var g,b;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const r=[n,t,!Nd(t)];d.push(r)}return[u,r,s,d,p,f]},dp=(e,t,n,{shouldForwardStitchesProp:r})=>{const[o,i,a,l]=pp(t.composers),c="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;n<t[lp].length;n++){const[r,o]=t[lp][n];e.rules[r].apply(o)}return t[lp]=[],null}return t[lp]=[],t.rules={},rp.forEach((e=>t.rules[e]={apply:n=>t[lp].push([e,n])})),t})(n):null,u=(c||n).rules,s=`.${o}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,d=d=>{d="object"==typeof d&&d||gp;const{...p}=d,f={};for(const e in a)if(e in d){r?.(e)||delete p[e];let t=d[e];"object"==typeof t&&t?f[e]={"@initial":a[e],...t}:(t=String(t),f[e]="undefined"!==t||l.has(e)?t:a[e])}else f[e]=a[e];const g=new Set([...i]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),Jd(o,[`.${r}`],[],e,(e=>{u.styled.apply(e)})));const t=fp(i,f,e.media),l=fp(a,f,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${r}-${np(i)}-${t}`;g.add(o);const l=(a?n.rules.resonevar:n.rules.onevar).cache,c=a?u.resonevar:u.onevar;l.has(o)||(l.add(o),Jd(i,[`.${o}`],[],e,(e=>{c.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${np(i)}-${o}`;g.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),Jd(i,[`.${t}`],[],e,(e=>{u.allvar.apply(e)})))}}const b=p.css;if("object"==typeof b&&b){r?.("css")||delete p.css;const t=`${o}-i${np(b)}-css`;g.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),Jd(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 Bd(d,{className:o,selector:s,[Ld]:t,toString:()=>(n.rules.styled.cache.has(o)||d(),o)})},pp=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,a,l]of e){""===t&&(t=i),n.push(i),o.push(...l);for(const e in a){const t=a[e];(void 0===r[e]||"undefined"!==t||l.includes(t))&&(r[e]=t)}}return[t,n,r,new Set(o)]},fp=(e,t,n,r)=>{const o=[];e:for(let[i,a,l]of e){if(l)continue;let e,c=0,u=!1;for(e in i){const r=i[e];let o=t[e];if(o!==r){if("object"!=typeof o||!o)continue e;{let e,t,i=0;for(const a in o){if(r===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),u=!0}c+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[c]=o[c]||[]).push([r?"cv":`${e}-${i[e]}`,a,u])}return o},gp={},bp=Md(),vp=(e,t)=>bp(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=np(r);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}Jd(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return Bd(r,{toString:r})})),mp=Md(),yp=(e,t)=>mp(e,(()=>n=>{const r=`${Yd(e.prefix)}k-${np(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];Jd(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return Bd(o,{get name(){return o()},toString:o})})),hp=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Yd(this.prefix)+Yd(this.scale)+this.token}toString(){return this.computedValue}},wp=Md(),Sp=(e,t)=>wp(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${Yd(e.prefix)}t-${np(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${Yd(e.prefix)}${t}-${n}`,l=Zd(String(r[t][n]),e.prefix,t);i[t][n]=new hp(n,l,t,e.prefix),a.push(`${o}:${l}`)}}const l=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const o=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(o)}return n};return{...i,get className(){return l()},selector:o,toString:l}})),Ep=Md(),Ap=Md(),Op="wpds",xp="767px",Cp="900px",kp="1024px",Pp="1280px",jp="1440px",$p=(t=>{const n=(e=>{let t=!1;const n=Ep(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...Td},utils:"object"==typeof e.utils&&e.utils||{}},l=ip(o),c={css:up(a,l),globalCss:vp(a,l),keyframes:yp(a,l),createTheme:Sp(a,l),reset(){l.reset(),c.theme.toString()},theme:{},sheet:l,config:a,prefix:n,getCssText:l.toString,toString:l.toString};return String(c.theme=c.createTheme(i)),c}));return t||n.reset(),n})(t);return n.styled=(({config:t,sheet:n})=>Ap(t,(()=>{const r=up(t,n),o=(t,n=r,{displayName:o,shouldForwardStitchesProp:i}={})=>{const a=n(...t),l=a[Ld].type,c=i?.("as"),u=e.forwardRef(((t,n)=>{const r=t?.as&&!c?t?.as:l,{props:o,deferredInjector:i}=a(t);return c||delete o.as,o.ref=n,i?e.createElement(e.Fragment,null,e.createElement(r,o),e.createElement(i,null)):e.createElement(r,o)}));return u.className=a.className,u.displayName=o||`Styled.${l.displayName||l.name||l}`,u.selector=a.selector,u.toString=()=>a.selector,u[Ld]=a[Ld],u},i=(...e)=>o(e);return i.withConfig=e=>(...t)=>{const n=r.withConfig(e);return o(t,n,e)},i})))(n),n})({prefix:Op,theme:{colors:{...kd,...Pd,...jd},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: ${xp})`,md:`(min-width: calc(${xp} + 1px)) and (max-width: ${Cp})`,lg:`(min-width: calc(${Cp} + 1px)) and (max-width: ${kp})`,xl:`(min-width: calc(${kp} + 1px)) and (max-width: ${Pp})`,xxl:`(min-width: calc(${Pp} + 1px)) and (max-width: ${jp})`,notSm:`(min-width: calc(${xp} + 1px))`,notMd:`(min-width: calc(${Cp} + 1px))`,notLg:`(min-width: calc(${kp} + 1px))`,notXl:`(min-width: calc(${Pp} + 1px))`,notXxl:`(min-width: calc(${jp} + 1px ))`,minSm:`(min-width: calc(${xp} + 1px))`,minMd:`(min-width: calc(${Cp} + 1px))`,minLg:`(min-width: calc(${kp} + 1px))`,minXl:`(min-width: calc(${Pp} + 1px))`,minXxl:`(min-width: calc(${jp} + 1px ))`,maxSm:`(max-width: ${xp})`,maxMd:`(max-width: ${Cp})`,maxLg:`(max-width: ${kp})`,maxXl:`(max-width: ${Pp})`,maxXxl:`(max-width: ${jp})`,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:Ip,css:Rp,globalCss:Tp,keyframes:Dp,getCssText:Mp,theme:Lp,createTheme:Bp,config:Np,reset:_p}=$p,zp=(Np.utils,Bp(`${Op}-dark.${Op}-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)",...Pd,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"}})),Vp={get className(){return zp.className,`${Op}-dark`},selector:zp.selector,colors:zp.colors,toString:()=>(zp.toString(),`${Op}-dark`)};function Fp(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Wp(e,t){return Wp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wp(e,t)}function Up(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wp(e,t)}function Hp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}Bp(`${Op}-light`,{colors:{...kd,...Pd,...jd}}),Tp({":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)"}]}),Tp({"@dark":{...Object.keys(Vp.colors).reduce(((e,t)=>{let n=Vp.colors[t],r="$"===n.value.substring(0,1)?`$colors${n.value}`:n.value;return{[n.variable]:r,...e}}),{})}});const qp=n().createContext(null);var Gp=function(e){return e.scrollTop},Yp="unmounted",Zp="exited",Xp="entering",Kp="entered",Jp="exiting",Qp=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Zp,r.appearStatus=Xp):o=Kp:o=t.unmountOnExit||t.mountOnEnter?Yp:Zp,r.state={status:o},r.nextCallback=null,r}Up(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yp?{status:Zp}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Xp&&n!==Kp&&(t=Xp):n!==Xp&&n!==Kp||(t=Jp)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Xp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ru().findDOMNode(this);n&&Gp(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zp&&this.setState({status:Yp})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ru().findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:Xp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:Kp},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Kp},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ru().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Jp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Zp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Zp},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ru().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Yp)return null;var t=this.props,r=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,Fp(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return n().createElement(qp.Provider,{value:null},"function"==typeof r?r(e,o):n().cloneElement(n().Children.only(r),o))},t}(n().Component);function ef(){}Qp.contextType=qp,Qp.propTypes={},Qp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ef,onEntering:ef,onEntered:ef,onExit:ef,onExiting:ef,onExited:ef},Qp.UNMOUNTED=Yp,Qp.EXITED=Zp,Qp.ENTERING=Xp,Qp.ENTERED=Kp,Qp.EXITING=Jp;const tf=Qp;var nf=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Hp(n.className,r):n.setAttribute("class",Hp(n.className&&n.className.baseVal||"",r)));var n,r}))},rf=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Up(t,e);var r=t.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Gp(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&nf(e,r),o&&nf(e,o),i&&nf(e,i)},r.render=function(){var e=this.props,t=(e.classNames,Fp(e,["classNames"]));return n().createElement(tf,wu({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(n().Component);rf.defaultProps={classNames:""},rf.propTypes={};const of=rf;var af=`opacity ${Lp.transitions.normal} ${Lp.transitions.inOut}`,lf=Ip(wd,{backgroundColor:Lp.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:af,"@reducedMotion":{transition:"none"}},"&.wpds-dialog-overlay-exit":{opacity:1},"&.wpds-dialog-overlay-exit-active":{opacity:0,transition:af,"@reducedMotion":{transition:"none"}}}),cf=e.forwardRef((({backgroundColor:t=Lp.colors.alpha50,children:n,css:r,zIndex:o=Lp.zIndices.offer,forceMount:i=!0,...a},l)=>{let{open:c}=e.useContext(Od),u=e.useRef(null);return e.useEffect((()=>{l&&("function"==typeof l?l(u.current):l.current=u.current)}),[l,u]),e.createElement(of,{mountOnEnter:!0,unmountOnExit:!0,appear:!0,nodeRef:u,in:c,timeout:{enter:300,exit:300},classNames:"wpds-dialog-overlay"},e.createElement(lf,{css:{backgroundColor:t,zIndex:o,...r},forceMount:i,...a,ref:u},n))}));cf.displayName="DialogOverlay";var uf=Ip(Sd,{borderRadius:Lp.radii["025"],boxShadow:Lp.shadows[300],color:Lp.colors.primary,containerType:"inline-size",display:"grid",gridTemplateAreas:"'header' 'body' 'footer'",gridTemplateRows:"auto 1fr auto",padding:Lp.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 ${Lp.transitions.normal} ${Lp.transitions.inOut}, \n      opacity ${Lp.transitions.normal} ${Lp.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 ${Lp.transitions.fast} ${Lp.transitions.inOut}, \n      opacity ${Lp.transitions.fast} ${Lp.transitions.inOut}\n    `,"@reducedMotion":{transition:"none"}}}),sf=e.forwardRef((({backgroundColor:t=Lp.colors.secondary,children:n,css:r,forceMount:o=!0,width:i="500px",height:a="300px",zIndex:l=Lp.zIndices.offer,...c},u)=>{let{open:s}=e.useContext(Od),d=e.useRef(null);return e.useEffect((()=>{u&&("function"==typeof u?u(d.current):u.current=d.current)}),[u,d]),e.createElement(of,{mountOnEnter:!0,unmountOnExit:!0,appear:!0,nodeRef:d,in:s,timeout:{enter:300,exit:200},classNames:"wpds-dialog-content"},e.createElement(uf,{css:{backgroundColor:t,width:i,height:a,zIndex:l,...r},forceMount:o,...c,ref:d},n))}));sf.displayName="DialogContent";var df=Ip("header",{gridArea:"header"}),pf=e.forwardRef((({children:t,...n},r)=>e.createElement(df,{...n,ref:r},t)));pf.displayName="DialogHeader";var ff=Ip(Ed,{color:Lp.colors.primary,fontFamily:Lp.fonts.meta,fontSize:Lp.fontSizes[125],fontWeight:Lp.fontWeights.bold,marginBlockStart:0,marginBlockEnd:Lp.space[150]}),gf=e.forwardRef((({children:t,...n},r)=>e.createElement(ff,{...n,ref:r},t)));gf.displayName="DialogTitle";var bf=Ip("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 ${Lp.transitions.fast} ${Lp.transitions.inOut}`,"@reducedMotion":{transition:"none"},"&:disabled":{color:"$onDisabled",backgroundColor:"$colors$disabled",borderColor:"$colors$onDisabled","@hover":{"&:hover":{backgroundColor:"$colors$disabled"}}},variants:{variant:{primary:{background:Lp.colors.primary,color:Lp.colors.onPrimary,"@hover":{"&:hover":{background:Lp.colors.gray60}}},secondary:{background:Lp.colors.secondary,color:Lp.colors.onSecondary,border:"1px solid $outline","@hover":{"&:hover":{background:Lp.colors.gray400}}},cta:{background:Lp.colors.cta,color:Lp.colors.onCta,"@hover":{"&:hover":{background:Lp.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:Lp.colors.primary,"@hover":{"&:hover":{background:Lp.colors.alpha25}}}},{isOutline:!0,variant:"secondary",css:{background:"none",color:Lp.colors.secondary,"@hover":{"&:hover":{background:Lp.colors.alpha25}}}},{isOutline:!0,variant:"cta",css:{background:"none",color:Lp.colors.cta,"@hover":{"&:hover":{background:Lp.colors.alpha25}}}}]}),vf=Ip("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"}}),mf=(0,e.forwardRef)((({children:t,size:r="100",fill:o="currentColor",label:i,className:a="",css:l,...c},u)=>{let s=e.Children.only(t),d=Rp({size:Lp.sizes[r]||r,fill:o});return n().createElement(n().Fragment,null,(0,e.cloneElement)(s,{"aria-hidden":!0,focusable:!1,role:"img",ref:u,fill:o,className:`${d({css:l,color:o})} ${a}`,...c}),i?n().createElement(vf,null,i):null)}));mf.displayName="Icon";var yf=Ip(Ad,{variants:{main:{true:{position:"absolute",insetBlockStart:Lp.space[100],insetInlineEnd:Lp.space[100]}}}}),hf=e.forwardRef((({...t},n)=>t.asChild?e.createElement(yf,{...t,ref:n}):e.createElement(yf,{...t,ref:n,asChild:!0,main:!0},e.createElement(bf,{variant:"primary",isOutline:!0,density:"compact",icon:"center",css:{border:"none"}},e.createElement(mf,{label:"Close"},e.createElement(mu,null))))));hf.displayName="DialogClose";var wf=Ip("div",{color:Lp.colors.primary,fontFamily:Lp.fonts.meta,fontSize:Lp.fontSizes[100],fontWeight:Lp.fontWeights.light,lineHeight:Lp.lineHeights[125],gridArea:"body",maxHeight:"100%",overflowY:"auto",variants:{isOverflow:{true:{marginInlineEnd:`calc(-1 * ${Lp.space[150]})`,paddingInlineEnd:Lp.space[125]}}}}),Sf=e.forwardRef((({children:t,...n},r)=>{let o=e.useRef(null);e.useEffect((()=>{r&&("function"==typeof r?r(o.current):r.current=o.current)}),[r,o]);let[i,a]=e.useState(!1);return e.useEffect((()=>{if(!o.current)return;let e=o.current;a(e.scrollHeight>e.clientHeight)}),[t,a]),e.createElement(wf,{...n,ref:o,isOverflow:i},t)}));Sf.displayName="DialogBody";var Ef=Ip("footer",{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:Lp.space["050"],"@container (max-width: 350px)":{flexDirection:"column-reverse",alignItems:"stretch"},gridArea:"footer",marginBlockStart:Lp.space[150]}),Af=e.forwardRef((({children:t,...n},r)=>e.createElement(Ef,{...n,ref:r},t)));function Of(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Of(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Of(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.")}()}Af.displayName="DialogFooter";var kf="100%",Pf="352px",jf="100%",$f=[{id:"compact",label:"Compact",width:"100%",height:"152px"},{id:"normal",label:"Normal",width:"100%",height:"352px"},{id:"large",label:"Large",width:"100%",height:"552px"}],If=function(e){var t=String(null!=e?e:"").trim();if(!t)return jf;var n=t.match(/^(-?\d+(?:\.\d+)?)\s*%$/i);if(n){var r=Number(n[1]);return r<0?jf:"".concat(r,"%")}var o=t.match(/^(-?\d+(?:\.\d+)?)\s*px$/i);if(o){var i=Number(o[1]);return i<0?jf:"".concat(i,"px")}var a=t.match(/^(-?\d+(?:\.\d+)?)$/);if(a){var l=Number(a[1]);return l<0?jf:"".concat(l,"px")}return jf};function Rf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tf="@media (max-width: 480px)",Df=Ip("pre",Rf({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"}},Tf,{marginBottom:"16px",padding:"12px",maxHeight:"min(240px, 40vh)"})),Mf=Ip("div",{fontSize:"$075",fontWeight:"$bold",lineHeight:"$125",color:"$onBackground-subtle",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:"14px"}),Lf=Ip("div",Rf({backgroundColor:"$surface",border:"1px solid $subtle",borderRadius:"8px",overflow:"hidden",marginBottom:"20px"},Tf,{marginBottom:"16px"})),Bf=Ip("div",Rf({display:"flex",alignItems:"center",padding:"12px 14px",gap:"12px",borderTop:"1px solid $subtle","&:first-child":{borderTop:"none"}},Tf,{flexWrap:"wrap",padding:"12px",gap:"10px"})),Nf=Ip("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"}}),_f=Ip("label",{fontSize:"$087",lineHeight:"$meta",color:"$onBackground",cursor:"pointer",userSelect:"none",flexShrink:0}),zf=Ip("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}}),Vf=Ip("div",Rf({display:"flex",alignItems:"center",gap:"8px",padding:"10px 14px",borderTop:"1px solid $subtle"},Tf,{flexDirection:"column",alignItems:"stretch",gap:"6px",padding:"10px 12px"})),Ff=Ip("div",Rf({display:"flex",alignItems:"center",gap:"8px",flex:1,minWidth:0},Tf,{width:"100%"})),Wf=Ip("span",Rf({fontSize:"$075",lineHeight:"$125",color:"$onBackground-subtle",fontWeight:500,flexShrink:0,marginRight:"2px"},Tf,{marginRight:0})),Uf=Ip("button",Rf({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}},Tf,{padding:"4px 6px"})),Hf=Ip("div",Rf({display:"flex",alignItems:"center",gap:0,padding:"10px 14px",borderTop:"1px solid $subtle"},Tf,{flexDirection:"column",alignItems:"stretch",gap:"8px",padding:"10px 12px"})),qf=Ip("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"}}),Gf=Ip("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}),Yf=Ip("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"}),Zf=Ip("span",Rf({fontSize:"$112",lineHeight:"$125",color:"$onBackground-subtle",padding:"0 10px",flexShrink:0,userSelect:"none"},Tf,{display:"none"})),Xf=Ip("div",Rf({height:"1px",backgroundColor:"$subtle",margin:"0 0 20px"},Tf,{marginBottom:"16px"})),Kf=Ip("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"}}),Jf=Ip("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"}}),Qf=Ip("div",Rf({display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"20px"},Tf,{marginBottom:"16px"}));function eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eg(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 ng=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())},rg=function(t){var r=t.isOpen,o=t.onOpenChange,i=t.videoId,a=t.headline,l=t.embedConfig,c=t.initialStartSeconds,u=void 0===c?0:c,s=(0,e.useMemo)((function(){return function(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{domain:null!==(e=o.domain)&&void 0!==e?e:D,defaultWidth:If(null!==(t=o.defaultWidth)&&void 0!==t?t:kf),defaultHeight:If(null!==(n=o.defaultHeight)&&void 0!==n?n:Pf),queryParams:null!==(r=o.queryParams)&&void 0!==r?r:{},getEmbedUrlOverride:o.getEmbedUrlOverride}}(l)}),[l]),d=tg((0,e.useState)(s.defaultWidth),2),p=d[0],f=d[1],g=tg((0,e.useState)(s.defaultHeight),2),b=g[0],v=g[1],m=tg((0,e.useState)(!1),2),y=m[0],h=m[1],w=tg((0,e.useState)("0:00"),2),S=w[0],E=w[1],A=tg((0,e.useState)(!1),2),O=A[0],x=A[1],C=(0,e.useRef)(null);(0,e.useEffect)((function(){r&&(f(s.defaultWidth),v(s.defaultHeight),h(!1),E(function(e){var t=Math.floor(Number(e)||0),n=Math.floor(t/3600),r=Math.floor(t%3600/60),o=t%60;return n>0?"".concat(n,":").concat(String(r).padStart(2,"0"),":").concat(String(o).padStart(2,"0")):"".concat(r,":").concat(String(o).padStart(2,"0"))}(u)),x(!1))}),[r,u,s.defaultHeight,s.defaultWidth]),(0,e.useEffect)((function(){if(O){var e=setTimeout((function(){return x(!1)}),2500);return function(){return clearTimeout(e)}}}),[O]);var k,P,j,$=(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,n){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xf(e,t,n[t])}))}return e}({},e);return t&&n>0?r.t=String(Math.floor(n)):delete r.t,r}(s.queryParams,y,t)}),[s.queryParams,y,S]),I=(0,e.useMemo)((function(){return function(e){var t=e.width,n=e.height,r=e.title,o=e.getEmbedUrlOverride,i={videoId:e.videoId,domain:e.domain,queryParams:e.queryParams},a="function"==typeof o?o(i):function(e){var t=e.videoId,n=e.domain,r=e.queryParams;if(!t)return"";var o=null!=n?n:D,i=function(e){var t=Object.entries(e||{}).filter((function(e){var t=Cf(e,2)[1];return null!=t&&""!==t}));if(!t.length)return"";var n=new URLSearchParams;return t.forEach((function(e){var t=Cf(e,2),r=t[0],o=t[1];return n.append(r,String(o))})),"?".concat(n.toString())}(r);return"".concat(o).concat("/video/c/embed","/").concat(t).concat(i)}(i);if(!a)return"";var l=null!=t?t:kf,c=null!=n?n:Pf,u=String(null!=r?r:"").trim()||"Washington Post video";return'<iframe src="'.concat(a,'" width="').concat(l,'" height="').concat(c,'" style="border: none;" allow="fullscreen; clipboard-write; clipboard-read" title="').concat(u,'"></iframe>')}({videoId:i,width:If(p),height:If(b),domain:s.domain,queryParams:$,title:a,getEmbedUrlOverride:s.getEmbedUrlOverride})}),[$,b,s.domain,s.getEmbedUrlOverride,i,a,p]),R=(0,e.useMemo)((function(){return $f.findIndex((function(e){return function(e,t,n){return If(e)===n.width&&If(t)===n.height}(p,b,e)}))}),[b,p]),T=(0,e.useCallback)((function(e){e.stopPropagation(),tu(I,(function(){return x(!0)}))}),[I]),M=(0,e.useCallback)((function(e){e.stopPropagation()}),[]),L=(0,e.useCallback)((function(e){M(e),o(!1)}),[M,o]),B=(0,e.useCallback)((function(){!function(e){if(e){var t=document.createRange();t.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(t)}}(C.current)}),[]),N=(0,e.useCallback)((function(e){h(e.target.checked)}),[]),_=(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(If(p))}),[p]),F=(0,e.useCallback)((function(){v(If(b))}),[b]);return n().createElement(xd,{open:r,onOpenChange:o},n().createElement(Cd,null,n().createElement(cf,{onClick:L,onPointerDown:L}),n().createElement(sf,{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=Tf,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)},n().createElement(pf,{css:{padding:0,margin:0,border:"none",background:"transparent"}},n().createElement(Qf,null,n().createElement(gf,{css:{margin:0,fontSize:"$100",fontWeight:"$bold",lineHeight:"$125",color:"$onBackground"}},"Embed Video"),n().createElement(hf,{asChild:!0},n().createElement(Jf,{type:"button","aria-label":"Close embed dialog",onClick:M},n().createElement(La,{label:"Close"},n().createElement(mu,null)))))),n().createElement(Sf,{css:{padding:0,margin:0,background:"transparent",border:"none",maxHeight:"none",overflowY:"visible"}},n().createElement(Df,{ref:C,"aria-label":"Embed code",onClick:B},I),n().createElement(Mf,null,"Embed Options"),n().createElement(Lf,null,n().createElement(Bf,null,n().createElement(Nf,{id:"embed-start-at",type:"checkbox",checked:y,onChange:N,onClick:M}),n().createElement(_f,{htmlFor:"embed-start-at"},"Start at"),n().createElement(zf,{id:"embed-start-time",type:"text",name:"embed-dialog-start-time",autoComplete:"off","aria-label":"Start time",spellCheck:!1,inactive:!y,value:S,onChange:_,onKeyDown:ng,onClick:M})),n().createElement(Vf,null,n().createElement(Wf,null,"Preset"),n().createElement(Ff,null,$f.map((function(e,t){return n().createElement(Uf,{key:e.id,type:"button",active:R===t,onClick:function(t){t.stopPropagation(),z(e.width,e.height)}},e.label)})))),n().createElement(Hf,null,n().createElement(qf,null,n().createElement(Gf,null,"W"),n().createElement(Yf,{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"})),n().createElement(Zf,{"aria-hidden":!0},"×"),n().createElement(qf,null,n().createElement(Gf,null,"H"),n().createElement(Yf,{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"})))),n().createElement(Xf,null)),n().createElement(Af,{css:{padding:0,margin:0,border:"none",background:"transparent"}},n().createElement(Kf,{type:"button",copied:O,onClick:T,"aria-label":O?"Copied":"Copy embed code"},O?n().createElement(n().Fragment,null,n().createElement(La,{label:"Copied"},n().createElement(ru,null)),"Copied!"):n().createElement(n().Fragment,null,n().createElement(La,{label:"Copy"},n().createElement(hu,null)),"Copy"))))))};function og(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ig(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return og(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?og(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.")}()}rg.displayName="EmbedDialog",rg.propTypes={isOpen:a().bool.isRequired,onOpenChange:a().func.isRequired,videoId:a().string,headline:a().string,initialStartSeconds:a().number,embedConfig:a().shape({domain:a().string,defaultWidth:a().oneOfType([a().string,a().number]),defaultHeight:a().oneOfType([a().string,a().number]),queryParams:a().object,getEmbedUrlOverride:a().func})};var ag=function(t){var r=t.videoId,o=t.headline,i=t.embedConfig,a=t.setSelected,l=void 0===a?function(){}:a,c=t.isMiniPlayer,u=t.showEmbedButton,s=void 0===u||u,d=ig((0,e.useState)(!1),2),p=d[0],f=d[1],g=ig((0,e.useState)(0),2),b=g[0],v=g[1],m=Kr(),y=(0,e.useCallback)((function(e){var t;e.stopPropagation(),l(!0);var n=null==m||null===(t=m.current)||void 0===t?void 0:t.currentTime,r=Number.isFinite(n)?Math.floor(n):0;v(r),f(!0)}),[l,m]),h=(0,e.useCallback)((function(e){f(e),e||l(!1)}),[l]);return r?n().createElement(n().Fragment,null,s&&n().createElement(Ba,{"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},n().createElement(La,{fill:"white",color:"white",size:c?"100":"150"},n().createElement(bu,null))),n().createElement(rg,{isOpen:p,onOpenChange:h,videoId:r,headline:o,embedConfig:i,initialStartSeconds:b})):null};ag.displayName="EmbedButton",ag.propTypes={videoId:a().string,headline:a().string,embedConfig:a().shape({domain:a().string,defaultWidth:a().number,defaultHeight:a().number,queryParams:a().object,getEmbedUrlOverride:a().func}),setSelected:a().func,isMiniPlayer:a().bool.isRequired,showEmbedButton:a().bool};var lg=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},t):null,e.createElement("path",{d:"m10 3.38.71.71L6.75 8l3.92 3.91-.71.71L5.33 8Z"})))),cg=(0,e.memo)(lg),ug=Gn("div",{width:"100%",justifyContent:"center",flexDirection:"column",alignItems:"flex-start"}),sg=Gn("span",{display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:999,color:"#FFF",cursor:"pointer",top:"$150",left:"15px",fontWeight:"$regular"}),dg=function(t){var r=t.isCarousel,o=t.closeCarousel,i=t.closeFullscreen,a=Kr(),l=(0,e.useCallback)((function(e){if(e.stopPropagation(),r)o();else{i();var t=new Event(G);a.current.dispatchEvent(t)}}),[r,o,i,a]);return n().createElement(ug,{css:{display:"none","@sm":{display:"flex"}}},n().createElement(sg,{onClick:l,"data-testid":"go-back-button"},n().createElement(La,{size:"100"},n().createElement(cg,null))," ",n().createElement("small",{style:{fontWeight:"$regular"}},n().createElement("b",null,"Go back"))))};function pg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pg(e,t,n[t])}))}return e}dg.propTypes={isCarousel:a().bool,closeCarousel:a().func,closeFullscreen:a().func};var gg=function(e){var t=e.closeStickyPlayer,r=e.buttonStyles;return n().createElement(Ba,{"data-testid":"close-sticky-button",icon:"center",css:fg({border:"none",background:"none",padding:"0px","&:hover":{background:"none"}},r&&fg({},r)),onClick:function(e){e.stopPropagation(),t(),"undefined"!=typeof window&&(window.zeus=window.zeus||{cmd:[]},window.zeus.cmd.push((function(e){e.emit("PRIMIS_ACTIVATE")})))}},n().createElement(La,{fill:"white",size:"150",label:"close-player"},n().createElement(mu,null)))};gg.displayName="CloseStickyPlayerButton",gg.propTypes={closeStickyPlayer:a().func,buttonStyles:a().object};var bg=Gn("div",{display:"flex",justifyContent:"center",alignItems:"center",gap:"16px"}),vg=function(e){var t=e.children;return n().createElement(bg,null,t)};vg.propTypes={children:a().node.isRequired};var mg=function(e){var t,r=e.config,o=e.isVertical,i=e.closeCarousel,a=e.setSelected,l=c(),u=l.videoData,s=l.videoId,d=Vr().isOpenSticky,p=Li(),f=p.playerSize,g=p.setIsFullscreen,b=p.isFullscreen,v=p.closeFullscreen,m=p.showFullscreenBtn,y=p.closeStickyPlayer,h=r.isCarousel,w=r.allowShare,S=void 0===w||w,E=r.allowEmbed,A=void 0!==E&&E,O=r.embed,x=(null==(t=u)?void 0:t.canonical_url)?t.canonical_url.includes(D)?t.canonical_url:"".concat(D).concat(t.canonical_url):null,C=Cc(f,b,o),k=b&&o||h,P=d&&!b,j=function(e){var t,n=null==e||null===(t=e.taxonomy)||void 0===t?void 0:t.tags;return null==n?void 0:n.some((function(e){return"excludevideoelement"===e.text}))}(u),$=!C&&x&&!j,I=$&&S,R=$&&A,T=(null==u?void 0:u._id)||s,M=(null==u?void 0:u.headlines.meta_title)||"",L=(null==u?void 0:u.headlines.basic)||"",B=M||L;return n().createElement(mc,{isMiniPlayer:C},n().createElement(yc,null,k&&n().createElement(dg,{isCarousel:h,closeFullscreen:v,closeCarousel:i}),n().createElement(yg,{showCloseStickyButton:P,closeStickyPlayer:y,showShareButton:I,showEmbedButton:R,canonicalUrl:x,headline:B,setSelected:a,isMiniPlayer:C,videoId:T,embedConfig:O}),n().createElement(hg,{isFullscreen:b,setIsFullscreen:g,isMiniPlayer:C,showFullscreenBtn:m})))};mg.propTypes={isVertical:a().bool,config:a().object,closeCarousel:a().func,setSelected:a().func};var yg=function(e){var t=e.showCloseStickyButton,r=e.closeStickyPlayer,o=e.showShareButton,i=e.showEmbedButton,a=e.canonicalUrl,l=e.headline,c=e.setSelected,u=e.isMiniPlayer,s=e.videoId,d=e.embedConfig;return n().createElement(vg,null,t?n().createElement(gg,{closeStickyPlayer:r}):n().createElement(n().Fragment,null,o&&n().createElement(fu,{headline:l,canonicalUrl:a,setSelected:c,isMiniPlayer:u}),n().createElement(ag,{videoId:s,headline:l,embedConfig:d,setSelected:c,isMiniPlayer:u,showEmbedButton:i})))};yg.propTypes={showCloseStickyButton:a().bool,closeStickyPlayer:a().func,showShareButton:a().bool,showEmbedButton:a().bool,canonicalUrl:a().string,headline:a().string,setSelected:a().func,isMiniPlayer:a().bool,videoId:a().string,embedConfig:a().object};var hg=function(e){var t=e.isFullscreen,r=e.setIsFullscreen,o=e.isMiniPlayer,i=e.showFullscreenBtn;return n().createElement(vg,null,i&&n().createElement(Kc,{isFullscreen:t,setIsFullscreen:r,isMiniPlayer:o}))};hg.propTypes={isFullscreen:a().bool,setIsFullscreen:a().func,isMiniPlayer:a().bool,showFullscreenBtn:a().bool};var wg=function(e){var t=e.config,r=e.isVertical,o=e.carouselEnd,i=e.isLive,a=e.closeCarousel,l=e.hasSubtitles;return n().createElement(Dc,{config:t,isVertical:r,carouselEnd:o,TopControls:mg,LeftButtons:Uc,closeCarousel:a,hasSubtitles:l,isLive:i})};function Sg(){return"undefined"!=typeof document&&(Sr("wp_geo")||"").toUpperCase().endsWith("|EEA")}wg.propTypes={config:a().object,isVertical:a().bool,carouselEnd:a().bool,isLive:a().bool,closeCarousel:a().func,hasSubtitles:a().bool};function Eg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ag(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Og(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var xg=function(){function e(t){var n,r,o,i,a,l,c,u,s=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ag(this,"handlePlay",(function(){var e=Date.now();s.startTime||(s.startTime=e),s.lastPlayTime=e,s.videoEnded=!1,s.contentType="ct"})),Ag(this,"handleEnd",(function(){s.videoEnded=!0})),Ag(this,"handleNewVideoData",(function(e){s.currentVideoData=e.detail})),Ag(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===(r=t.videoElementRef)||void 0===r||null===(n=r.current)||void 0===n||n.addEventListener(W,this.handlePlay,{signal:this.player.signal}),null===(i=t.videoElementRef)||void 0===i||null===(o=i.current)||void 0===o||o.addEventListener(V,this.handleEnd,{signal:this.player.signal}),null===(l=t.videoElementRef)||void 0===l||null===(a=l.current)||void 0===a||a.addEventListener(Z,this.handleNewVideoData,{signal:this.player.signal}),null===(u=t.videoElementRef)||void 0===u||null===(c=u.current)||void 0===c||c.addEventListener(K,this.handleAdStart,{signal:this.player.signal})}var t,n;return t=e,(n=[{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,n,r;return(null===(t=this.player.videoElementRef)||void 0===t||null===(e=t.current)||void 0===e?void 0:e.paused)?this.videoEnded?"s4":(null===(r=this.player.videoElementRef)||void 0===r||null===(n=r.current)||void 0===n?void 0:n.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===ge.AUTO?"auto":"man"}},{key:"getSections",value:function(){var e,t,n;return(null===(n=this.currentVideoData)||void 0===n||null===(t=n.taxonomy)||void 0===t||null===(e=t.sections)||void 0===e?void 0:e.map((function(e){return e.name})))||[]}}])&&Eg(t.prototype,n),e}();function Cg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}xg.verify=function(e){return"object"===(void 0===e?"undefined":Og(e))&&"object"===Og(null==e?void 0:e.videoData)&&"object"===Og(null==e?void 0:e.videoElementRef)},xg.propTypes={player:a().shape({videoData:a().object,videoElementRef:a().object,autoplayType:a().string})};var kg=function(){var t=Kr(),n=c().videoData,r=h().autoplayState,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cg(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),i=o[0],a=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 n=document.createElement("script");return n.src="https://static.chartbeat.com/js/chartbeat_video.js",n.async=!0,n.id="chartbeat_video",u.current=n,function(){!function(e,t){var n=document.getElementById("chartbeat_video");n&&document.body.contains(n)&&document.body.removeChild(n),null==t||t.abort()}(0,e)}}),[]),(0,e.useEffect)((function(){Sg();var e,o,c,s=function(e,t,n,r){return!e&&Fe(t)&&!!n&&!!r&&!!window._sf_async_config&&!Sg()}(i,n,l.current,u.current);s&&(e={videoData:n,videoElementRef:t,autoplayType:r.type,signal:l.current},o=xg,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),a(!0))}),[null==n?void 0:n._id,l.current,u.current,r]),{isPlayerPushed:i}},Pg=function(t){var r=t.config,o=t.style,i=void 0===o?{}:o,a=t.children,l=c().videoId,u=Yr().adSettings.current,s=u.videoAdZone,d=void 0===s?"wpni.video":s,p=u.preloadAd,f='{"prefetchAd":'.concat(p,"}"),g=yo().adWrapperRef,b=(0,e.useMemo)((function(){return Vo(r,l)}),[]);return n().createElement(n().Fragment,null,b?n().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:i,class:"orca-new"},a):n().createElement("div",{ref:g},a))};Pg.propTypes={children:a().node,adSettings:a().object,style:a().shape({width:a().string,height:a().string,position:a().string}),config:a().object};const jg=Pg;function $g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ig(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ig(e,t,n[t])}))}return e}function Tg(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var Dg="reset",Mg="mute",Lg="unmute",Bg="play",Ng="pause",_g="handleTimeChange",zg="skipReady",Vg="setShowControls",Fg="setShowCountdown",Wg=function(e,t){var n=t.skipData;return Tg(Rg({},e),{remainingTime:Math.floor(n.remainingTime),skipCountdown:Math.floor(n.skipCountDown)+1,skipReady:n.skipReady})},Ug=function(e,t){var n=t.showControls;return Tg(Rg({},e),{showControls:n})},Hg=function(e,t){var n=t.showCountdown;return Tg(Rg({},e),{showCountdown:n})},qg=function(e){return Tg(Rg({},e),{skipReady:!1,showCountdown:null})},Gg=function(e,t){var n,r=(Ig(n={},Dg,(function(e){return Tg(Rg({},e),{playing:!1,showControls:!1})})),Ig(n,Mg,(function(e){return Tg(Rg({},e),{adMuted:!0})})),Ig(n,Lg,(function(e){return Tg(Rg({},e),{adMuted:!1})})),Ig(n,Bg,(function(e){return Tg(Rg({},e),{playing:!0})})),Ig(n,Ng,(function(e){return Tg(Rg({},e),{playing:!1})})),Ig(n,_g,Wg),Ig(n,zg,(function(e){return Tg(Rg({},e),{skipReady:!0})})),Ig(n,Vg,Ug),Ig(n,Fg,Hg),Ig(n,"afterSkip",qg),n);if(r[t.type])return r[t.type](e,t);throw new Error("Unhandled action type: ".concat(t.type))},Yg=(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(){}}),Zg=function(){return(0,e.useContext)(Yg)},Xg=function(t){var r=t.isPreroll,o=t.transitionToVideo,i=void 0===o?function(){}:o,a=t.children,l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$g(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)(Gg,function(e){return{adMuted:!!e,playing:!1,remainingTime:0,showControls:!1,showCountdown:!1,skipCountdown:null,skipReady:!1}}(r)),2),u=l[0],s=l[1],d=c().uniqueId,p=Jo().sendAnalyticsEvent,f=Vr(),g=f.updateStickyContext,b=f.playingId,v=f.isStickyEnabled,m=f.isOpenSticky,y=yo().adWrapperRef,h=Li().toggleMute,w=Yr(),S=w.adState,E=w.setAdState,A=Kr(),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:Bg})}),[y,v,p,g,d]),x=(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:Ng})}),[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:Mg})}),[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:Lg})}),[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?x():O()}),[u.playing,x,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:Bo(t)}}),[y]),R=(0,e.useCallback)((function(){s({type:Dg})}),[s]),T=(0,e.useCallback)((function(){E(be.COMPLETE),R(),i()}),[R,E,i]),D=(0,e.useCallback)((function(){var e=I(),t=e.irisPlayer,n=e.adData;t.stop(),p("video-ad-skip",{avAdMeta:Lo(n)}),T(),no(A.current,"AD_SKIP")}),[I,p,T]);(0,e.useEffect)((function(){var e=y.current,t=(void 0===e?{}:e).irisPlayer;S===be.INIT&&(null==t?void 0:t.getCurrentAd())&&(t.reset(),E(be.COMPLETE),R())}),[S,y,R,E]),(0,e.useEffect)((function(){b&&b!==d&&u.playing&&x()}),[x,u.playing,b,d]);var M=(0,e.useMemo)((function(){return Tg(Rg({},u),{dispatchAdAction:s,mute:C,pause:x,play:O,unmute:k,visitAdvertiser:P,togglePlay:j,toggleAdMute:$,skip:D,getIrisPlayerData:I,reset:R})}),[u,C,x,O,k,P,j,$,D,I,R]);return n().createElement(Yg.Provider,{value:M},a)};Xg.propTypes={adWrapperRef:a().object,isPreroll:a().bool,children:a().node,toggleMute:a().func,setAdState:a().func,transitionToVideo:a().func,adState:a().string};var Kg=Gn(Rl,{width:"100%"}),Jg=Gn(Kg,{height:"100%",position:"absolute",variants:{position:{outerWrapper:{top:0},innerWrapper:{zIndex:1,cursor:"pointer",background:Cr({topPercent:15,bottomPercent:25})}}}}),Qg=Gn(Kg,{display:"flex",alignItems:"center",justifyContent:"flex-start"}),eb=Gn(Kg,{display:"flex",alignItems:"center",justifyContent:"flex-end"}),tb=Gn(Kg,{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"}}}}),nb=Gn(Rl,{color:"$gray700-static",fontSize:"$100",variants:{text:{visitAdvertiser:{cursor:"pointer",width:"100%",textAlign:"end",padding:"12px"},duration:{fontWeight:"$light",justifySelf:"start"}}}}),rb=Gn("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 ob(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ib(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ob(e,t,n[t])}))}return e}Gn("div",{padding:"12px"});var ab=function(e){var t=e.advertiserUrl,r=e.children,o=e.togglePlay,i=c().videoId,a=Zg(),l=a.showControls,u=a.visitAdvertiser,s=Vr().isOpenSticky,d=yo().adContainerRef;return n().createElement(Jg,{position:"outerWrapper",id:"ad-container-".concat(i),"data-testid":"ad-container",ref:d,css:{overflow:"hidden"}},l&&n().createElement(Jg,{position:"innerWrapper",onClick:function(){t?u():o()},"data-testid":"ad-container-inner",css:ib({overflow:"hidden"},s&&{justifyContent:"space-between",background:Cr({topPercent:35,bottomPercent:35})})},r))};function lb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lb(e,t,n[t])}))}return e}ab.propTypes={children:a().node,togglePlay:a().func,advertiserUrl:a().string},ab.displayName="AdContainerOuterWrapper";var ub=function(e){var t,r=e.advertiserUrl,o=e.closeStickyPlayer,i=e.isFullscreen,a=Zg().remainingTime,l=Vr().isOpenSticky;return n().createElement(tb,{position:"topControls"},n().createElement(Qg,null,l&&!i&&n().createElement(gg,{buttonStyles:{padding:"12px"},closeStickyPlayer:o}),n().createElement(nb,{text:"duration",css:cb({whiteSpace:"nowrap",padding:"12px"},l&&!i&&{paddingLeft:0})},"Ad (",(t=sr(a),"".concat(fr(t))),")")),r&&n().createElement(nb,{text:"visitAdvertiser"},"Visit advertiser"))},sb={closeStickyPlayer:a().func,isFullscreen:a().bool};ub.propTypes=cb({advertiserUrl:a().string},sb);var db=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},t):null,e.createElement("path",{d:"m6 12.62-.71-.71L9.25 8 5.33 4.09 6 3.38 10.67 8Z"})))),pb=(0,e.memo)(db);function fb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gb=function(e){var t=e.skip,r=Zg(),o=r.showCountdown,i=r.skipCountdown,a=r.skipReady;return n().createElement(Ba,{component:"skip","data-testid":"skip-button",disabled:!a,onClick:function(e){e.stopPropagation(),t()},css:{border:"none",background:"unset",padding:"12px",borderRadius:0,"&:hover, &:disabled, &:disabled:hover":{background:"unset"}}},n().createElement(rb,{css:{padding:a?"7px 13px 7px 19px":"7px 16px"}},a?n().createElement(vb,null):o?n().createElement(mb,{skipCountdown:i}):null))},bb={skip:a().func};function vb(){return n().createElement(n().Fragment,null,n().createElement(nb,{text:"duration"},"Skip"),n().createElement(La,{fill:"white",label:"skip",size:"100"},n().createElement(pb,null)))}function mb(e){var t=e.skipCountdown;return n().createElement(nb,{text:"duration"},"Skip in ",t)}function yb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}gb.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fb(e,t,n[t])}))}return e}({},bb),mb.propTypes={skipCountdown:a().number};var hb=function(e){var t=e.skip,r=e.toggleAdPlay,o=e.toggleMute,i=Zg(),a=i.showCountdown,l=i.skipReady,c=i.adMuted,u=i.playing;return n().createElement(tb,{position:"bottomControls",css:{padding:0}},n().createElement(Qg,null,n().createElement(il,{isPlaying:u,buttonStyles:{padding:"12px 20px 20px 20px",margin:"0 -8px -8px -8px"},toggleAdPlay:r}),n().createElement(rc,{isMuted:c,buttonStyles:{padding:"12px 12px 20px 12px",paddingLeft:c?"12px":"12.5px",margin:"0 0px -8px 0"},toggleMute:o})),n().createElement(eb,null,(l||a)&&n().createElement(gb,{skip:t})))};hb.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){yb(e,t,n[t])}))}return e}({},bb,al,oc);const wb=hb;const Sb=function(t){var n=t.adSettings,r=t.debug,o=t.transitionToVideo,i=t.adState,a=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=Kr(),v=c(),m=v.videoData,y=v.videoId,h=v.uniqueId,w=Zg(),S=w.dispatchAdAction,E=w.mute,A=w.skip,O=w.getIrisPlayerData,x=w.reset,C=Jo(),k=C.sendAnalyticsEvent,P=C.setAvAdMeta,j=C.setAdAttribute,$=Vr(),I=$.updateStickyContext,R=$.isStickyEnabled,T=Oo(),D=T.sendPerformanceEvent,M=T.sendPerformanceMeasure,L=yo().adWrapperRef,B=n.current,N=void 0===B?{}:B,_=N.debugZeus,z=N.isPreroll,V=N.videoConfig,F=(void 0===V?{}:V).skipmin,W=s.isMuted,U=(0,e.useCallback)((function(){_e(Se,!0,y,r);var e=new Event("AD_REQUESTED");b.current.dispatchEvent(e)}),[y,r,b]),H=(0,e.useCallback)((function(){a(be.LOADED),_e("adLoaded",!0,y,r)}),[r,a,y]),q=(0,e.useCallback)((function(){var e,t=O().adData,n=t.duration;_&&console.log("Iris Event",Ae),l(De),R&&I({playingId:h}),S({type:Bg}),u(!1),a(be.PLAYING),(W||z)&&E(),g(),S({type:Fg,showCountdown:F?n>=F:n>=30}),no(b.current,K,t),d({state:"media-start"});var o=null===(e=L.current.irisPlayer)||void 0===e?void 0:e.getSkipTime(),i=function(e){return Mo(e)?he:"adStarted"}(t),c=Lo(t,o);P(c),j(i),n>1&&(k("video-ad-start",{avAdMeta:c,adAttribute:i}),D(le),M(le,ce),_e(Ae,!0,y,r),S({type:Vg,showControls:!0}))}),[O,_,l,R,S,u,a,W,b,d,I,y,E,r,L,P,k,g,h,D,M,j,z]),G=(0,e.useCallback)((function(){_e(xe,!0,y,r),S({type:Bg})}),[r,S,y]),Y=(0,e.useCallback)((function(){_e(Ce,!0,y,r),S({type:Ng})}),[r,S,y]),Z=(0,e.useCallback)((function(e){var t=L.current.irisPlayer.getSkipTime(),n=function(e,t,n){return{skipReady:n>0&&t>n,skipCountDown:n-t,remainingTime:e}}(e.remainingTime,e.currentTime,t);S({type:_g,skipData:n})}),[S,L]),te=(0,e.useCallback)((function(){S({type:zg}),_e(ke,!0,y,r)}),[S,r,y]),ne=(0,e.useCallback)((function(e){var t=O().adData;_e(je,e,y,r),a(be.ERROR),x(),j(me),o({analyticsData:{adAttribute:me}}),no(b.current,J,t)}),[O,y,r,a,x,j,o,b]),re=(0,e.useCallback)((function(){var e=O().adData,t=e.duration;_e(ye,!0,y,r),a(be.COMPLETE),x();var n=function(e){return Mo(e)?he:ye}(e);j(n),no(b.current,X,e),t>1&&k("video-ad-complete",{avAdMeta:Lo(e),adAttribute:n}),o({analyticsData:{adAttribute:n}})}),[r,O,x,k,j,a,o,b,y]),oe=(0,e.useCallback)((function(e){_e($e,e,y,r),a(be.BYPASSED),x(),j(ve),o({analyticsData:{adAttribute:ve}}),no(b.current,Q)}),[y,r,a,x,j,o,b]),ie=function(t){var n=t.debug,r=t.adWrapperRef,o=t.transitionToVideo,i=t.setAdState,a=(0,e.useRef)(null),l=Kr(),u=Zg().reset,s=Jo().setAdAttribute,d=c().videoId,p=(0,e.useCallback)((function(){_e(ee,{message:"Ad Play Timeout"},d,n),i(be.TIMEOUT);try{var e,t;null===(t=r.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.stop()}catch(e){n&&console.log("failed to stop the video",e)}u(),s(ve),o({analyticsData:{adAttribute:ve}}),no(l.current,ee)}),[n,d,i,r,u,s,o,l]),f=(0,e.useCallback)((function(){null===a.current&&(a.current=setTimeout((function(){p(),a.current=null}),6e3))}),[p]),g=(0,e.useCallback)((function(){null!==a.current&&(clearTimeout(a.current),a.current=null)}),[a]);return{adTimer:a,startTimer:f,stopTimer:g}}({debug:r,adWrapperRef:L,transitionToVideo:o,setAdState:a}),ae=ie.startTimer,ue=ie.stopTimer;return(0,e.useEffect)((function(){i===be.REQUESTED?ae():[be.PLAYING,be.COMPLETE,be.ERROR,be.BYPASSED,be.TIMEOUT].includes(i)&&ue()}),[i,ae,ue]),(0,e.useEffect)((function(){if(p){var e=(L.current||{}).irisPlayer;if(e)return e.on(Se,U),e.on(Ee,H),e.on(Ae,q),e.on(xe,G),e.on(Ce,Y),e.on(Pe,Z),e.on(ke,te),e.on(je,ne),e.on(Oe,re),e.on($e,oe),function(){e.off(Se,U),e.off(Ee,H),e.off(Ae,q),e.off(xe,G),e.off(Ce,Y),e.off(Pe,Z),e.off(ke,te),e.off(je,ne),e.off(Oe,re),e.off($e,oe)}}}),[L,H,U,q,m,G,Z,te,ne,re,p,Y,oe]),A};function Eb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ab=(0,e.forwardRef)((function(t,r){var o,i,a,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=Zg(),v=b.play,m=b.pause,y=b.togglePlay,h=b.toggleAdMute,w=b.skip,S=b.dispatchAdAction,E=Jo(),A=E.setAvAdMeta,O=E.setAdAttribute,x=yo().adWrapperRef,C=Li(),k=C.playerState,P=C.isFullscreen,j=C.closeStickyPlayer,$=C.pause,I=Yr(),R=I.adState,T=I.setAdState,D=I.adSettings;(0,e.useImperativeHandle)(r,(function(){return{playAd:function(){v()},pauseAd:function(){m()},displayControls:function(){S({type:Vg,showControls:!0})},toggleAdMute:function(){h()},skipAd:function(){w()}}}));var M=null===(l=x.current)||void 0===l||null===(a=l.irisPlayer)||void 0===a||null===(i=a.getCurrentAd())||void 0===i||null===(o=i.data)||void 0===o?void 0:o.clickThroughUrl;return Sb({adSettings:D,adState:R,debug:s,transitionToVideo:u,setAdAttribute:O,setAdState:T,setAvAdMeta:A,setPromoState:c,setRenderControls:d,playerState:k,updateDisplay:f,isAdsInitialized:g,pauseVideo:$}),n().createElement(ab,{advertiserUrl:M,togglePlay:y},n().createElement(ub,{advertiserUrl:M,closeStickyPlayer:j,isFullscreen:P}),n().createElement(wb,{skip:w,toggleAdPlay:y,toggleMute:h}))}));Ab.displayName="AdContainer";const Ob=Ab;Ab.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Eb(e,t,n[t])}))}return e}({toggleMute:a().func,playerState:a().object,setPromoState:a().func,adSettings:a().object,transitionToVideo:a().func,setAdState:a().func,debug:a().bool,setRenderControls:a().func,adState:a().string,updateDisplay:a().func},sb);var xb=o(168),Cb={};Cb.styleTagTransform=Qa(),Cb.setAttributes=Za(),Cb.insert=Ga().bind(null,"head"),Cb.domAPI=Ha(),Cb.insertStyleElement=Ka(),Wa()(xb.A,Cb),xb.A&&xb.A.locals&&xb.A.locals;var kb=o(986),Pb={};function jb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Pb.styleTagTransform=Qa(),Pb.setAttributes=Za(),Pb.insert=Ga().bind(null,"head"),Pb.domAPI=Ha(),Pb.insertStyleElement=Ka(),Wa()(kb.A,Pb),kb.A&&kb.A.locals&&kb.A.locals;var $b=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)},Ib=function(e,t){var n,r,o,i,a=$b(e)?((null==e?void 0:e.streams)||[]).filter((function(e){return"gif"===(null==e?void 0:e.stream_type)}))[0]:null;return(null==t?void 0:t.image)&&!((null==e||null===(n=e.bandito)||void 0===n?void 0:n.image)||(null==a?void 0:a.url)||(null==e||null===(r=e.promo_image)||void 0===r?void 0:r.url))?t.image:(null==e||null===(o=e.bandito)||void 0===o?void 0:o.image)||(null==a?void 0:a.url)||(null==e||null===(i=e.promo_image)||void 0===i?void 0:i.url)||T},Rb=function(e,t,n){return"Play ".concat(e?"Live ":"","video: ").concat(t,", ").concat(n.srOnly)},Tb=function(e,t){return"Upcoming ".concat(e?"Live ":"","video: ").concat(t)};function Db(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mb,Lb=Xn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(359deg)"}}),Bb=Gn(Ba,{boxSizing:"border-box","&[data-state='loading']":(Mb={},Db(Mb,"& ".concat(La),{animation:"".concat(Lb," 2s linear infinite"),"@reducedMotion":{animation:"none"}}),Db(Mb,"&:focus",{outline:"1px auto -webkit-focus-ring-color"}),Mb),"&[data-state='buffer']":Db({borderWidth:"1px !important"},"& ".concat(La),{color:"white",transition:"none",animation:"".concat(Lb," 2s linear infinite"),"@reducedMotion":{animation:"none"}}),"&[data-state-live='true']":Db({borderColor:"red !important"},"& ".concat(La),{color:"white"}),"&[data-state-live-preview='true']":Db({},"& ".concat(La),{color:"#111 !important"})}),Nb=Gn("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"}}}}),_b=Gn("video",{width:"100%",height:"100%"}),zb=Gn("img",{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectPosition:"center",pointerEvents:"none",variants:{aspectMatch:{true:{objectFit:"cover"},false:{objectFit:"contain"}}},defaultVariants:{aspectMatch:!0}}),Vb=Gn("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  )"}),Fb=Gn("div",{minWidth:0,display:"flex",flexDirection:"column",width:"100%",variants:{small:{true:{marginLeft:"8px"},false:{marginLeft:"16px"}}}}),Wb=Gn("div",{color:Jn.colors["gray700-static"],fontFamily:"$meta",fontWeight:700,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}),Ub=Gn("div",{fontFamily:"$meta",color:Jn.colors["gray700-static"],variants:{hidden:{true:{visibility:"hidden"}}}}),Hb=Gn("div",{height:"8px",width:"8px",marginRight:"4px",borderRadius:"50%",backgroundColor:"red",animation:"sc-status-light-blink-animation 2s ease-in-out infinite alternate"}),qb=Gn("div",{display:"flex",alignItems:"center"}),Gb=function(t){var r=t.playerSize,o=t.isEnded,i=t.isUpcoming,a=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,n,r,o){return e?t:n||(r&&!o?"Tap to unmute":t)}(h,l,f,v,i)}),[f,h,v,i,l]),S=ze(y),E=(0,e.useMemo)((function(){return function(e,t,n,r){return e&&!t&&(!n||!!r)}(p,o,S,f)}),[S,f,o,p]),A=a&&!o,O=a&&o;return n().createElement(Fb,{small:r===ir.SMALL},E&&n().createElement(Wb,{id:"orca-promo-title","aria-hidden":!i,"aria-label":Tb(a,l),"data-testid":"promo-title",role:"heading"},w),b&&n().createElement(Ub,{id:"orca-promo-duration","aria-hidden":"true",className:"overrideStyles","data-testid":"promo-duration",hidden:O},A?n().createElement(qb,null,n().createElement(Hb,{id:"orca-promo-live-dot"}),"Live"):u.visible))};Gb.propTypes={playerSize:a().string,isEnded:a().bool,isUpcoming:a().bool,isVideoTypeLive:a().bool,title:a().string,duration:a().object,config:a().object};var Yb=function(e){var t=e.promoState,r=e.isVideoTypeLive,o=e.isLivePreviewEnabled,i=e.title,a=e.duration,l=t!==Re,c=o&&r;return n().createElement(Bb,{"aria-label":Rb(r,i,a),id:"orca-promo-button","data-testid":"orca-promo-button",icon:"center","data-state":t.toLowerCase(),"data-state-live":r,"data-state-live-preview":o},n().createElement(La,{className:"wpds-icon"},l?n().createElement(pl,{"data-testid":"loading-icon"}):c?n().createElement(Jl,{"data-testid":"mute-icon"}):n().createElement(sl,{"data-testid":"play-icon"})))};function Zb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xb(e,t,n[t])}))}return e}function Jb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zb(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.")}()}Yb.propTypes={promoState:a().string,isVideoTypeLive:a().bool,isLivePreviewEnabled:a().bool,title:a().string,duration:a().object},La.toString=function(){return".wpds-icon"};var Qb=(0,e.forwardRef)((function(t,r){var o,i,a,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,A=b.placeholder,O=b.hidePromoVideo,x=b.buildPromoImagePropsOverride,C=c(),k=C.videoData,P=C.videoApiDataFailed,j=h().autoplayState,$=Li().playerSize,I=Yr().shouldShowAds,R=Jb((0,e.useState)(!1),2),T=R[0],D=R[1],M=(0,e.useRef)(),L=Jb((0,e.useTransition)(),2)[1],N=p(k),_=u(k),z=s(k),V=(0,e.useMemo)((function(){return function(e,t,n,r,o,i){if(!e.isInitialized)return!1;var a=!e.isAutoplay||e.status===B||e.isLivePreview,l=t&&zo(e)&&_o(n,r);return o&&!i&&(a||l||g(n))}(j,I,k,b,v,P)}),[j,b,v,P,I,k]),F=function(e){var t,n;return(null==e||null===(t=e.bandito)||void 0===t?void 0:t.title)||(null==e||null===(n=e.headlines)||void 0===n?void 0:n.basic)}(k),W=(0,e.useMemo)((function(){return!0===(null==A?void 0:A.responsive)}),[A]),U=(0,e.useMemo)((function(){return W?function(e,t,n,r,o,i){if(!0!==(null==t?void 0:t.responsive))return null;var a,l=Ge(e),c=null;return n&&!r?(a=n,c=(l?480:960)*o):a=Ib(e,t),a?"function"==typeof i?i(a,l,c):Br(a,l,c):null}(k,A,S,null==j?void 0:j.isPlaythrough,m,x):null}),[W,k,A,S,null==j?void 0:j.isPlaythrough,m,x]),H=(0,e.useMemo)((function(){return W?null:function(e,t,n,r,o){var i,a=(null==e||null===(i=e.additional_properties)||void 0===i?void 0:i.vertical)?480:960;return n&&!r?Mr(n,a,a*o):function(e,t){var n,r,o,i=(null==e||null===(n=e.additional_properties)||void 0===n?void 0:n.vertical)?480:960,a=$b(e)?((null==e?void 0:e.streams)||[]).filter((function(e){return"gif"===(null==e?void 0:e.stream_type)}))[0]:null;return(null==t?void 0:t.image)&&!((null==e||null===(r=e.bandito)||void 0===r?void 0:r.image)||(null==a?void 0:a.url)||(null==e||null===(o=e.promo_image)||void 0===o?void 0:o.url))&&!1===(null==t?void 0:t.resize)?t.image:Mr(Ib(e,t),i)}(e,t)}(k,A,S,null==j?void 0:j.isPlaythrough,m)}),[W,k,A,S,null==j?void 0:j.isPlaythrough,m]),q=(a=$b(o=k)?((null==o?void 0:o.streams)||[]).filter((function(e){return"gif-mp4"===(null==e?void 0:e.stream_type)}))[0]:null,(null==o||null===(i=o.bandito)||void 0===i?void 0:i.video)||(null==a?void 0:a.url)),G=function(e){return function(e){if(!e)return{visible:"",srOnly:""};var t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60);return t%=60,n%=60,{visible:r?"".concat(r,":").concat(Nr(n),":").concat(Nr(t)):"".concat(n,":").concat(Nr(t)),srOnly:r?"".concat(r," hours, ").concat(Nr(n)," minutes and ").concat(Nr(t)," seconds"):"".concat(n," minutes and ").concat(Nr(t)," seconds")}}(null==e?void 0:e.duration)}(k),Y=q&&!T,Z=(null==j?void 0:j.isPlaythrough)||O,X=!1===_&&!1===z,K=!Y&&!E,J=(0,e.useMemo)((function(){return W?null:function(e,t,n){var r;return jb(r={backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:e?"url(".concat(e,")"):"none",backgroundSize:t?"cover":"contain"},"--aspect-height",n),jb(r,"--aspect-width",1),r}(H,y,m)}),[W,y,m,H]);(0,e.useImperativeHandle)(r,(function(){return{playVideo:function(){f(De),l()}}}));var Q=(0,e.useCallback)((function(e){d===Re&&L((function(){e.preventDefault(),e.stopPropagation(),N&&_||l()}))}),[_,N,l,d]);return n().createElement(n().Fragment,null,V&&n().createElement(Nb,{ref:M,"data-testid":"orca-promo",css:Kb({},K&&J),hidden:d===De,onClick:Q},K&&U&&n().createElement(zb,{src:U.src,srcSet:U.srcSet,sizes:U.sizes,aspectMatch:y,alt:"","aria-hidden":!0,decoding:"async","data-testid":"orca-promo-background-image"}),Y&&!Z&&n().createElement(_b,{src:q,onError:function(){return D(!0)},onAbort:function(){return D(!0)},playsInline:!0,muted:!0,autoPlay:!0,loop:!0,crossOrigin:"anonymous",controlsList:"nodownload"}),$&&n().createElement(Vb,{className:Ro("",Xb({},"".concat($),$))},X&&n().createElement(Yb,{promoState:d,isVideoTypeLive:N,isLivePreviewEnabled:E,title:F,duration:G}),n().createElement(Gb,{playerSize:$,isEnded:z,isUpcoming:_,isVideoTypeLive:N,title:F,duration:G,config:b}))))}));Qb.propTypes={onClick:a().func,promoState:a().string,setPromoState:a().func,config:a().object,autoplayState:a().object,promoEnabled:a().bool,shouldShowAds:a().bool,aspectRatio:a().number,playerSize:a().oneOf(Object.values(ir)),aspectMatch:a().bool},Qb.displayName="Promo";var ev=function(t){var r,o,i=t.promoEnabled,a=void 0===i||i,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,A=u.debug,O=c().videoData,x=Jo().sendAnalyticsEvent,C=Oo().sendPerformanceEvent,k=yo().adControlsRef,P=Li(),j=P.setRenderControls,$=P.promoElement,I=P.play,R=P.autoplay,T=Ur(),D=T.promoState,M=T.setPromoState,L=Yr().isAdsInitialized,B=v||w/y,N=ra({setRenderControls:j,isCarousel:g,autoplay:R,play:I,playCallback:E}),_=(0,e.useCallback)((function(){x("video-promo-click"),C(ce),s()}),[s,x,C]),z=B===(null==O||null===(r=O.streams)||void 0===r?void 0:r[0].height)/(null==O||null===(o=O.streams)||void 0===o?void 0:o[0].width),V=n().createElement(Ob,{setPromoState:M,transitionToVideo:N,debug:A,setRenderControls:j,updateDisplay:p,isAdsInitialized:L,ref:k});return n().createElement(n().Fragment,null,n().createElement(Qb,{promoState:D,setPromoState:M,config:u,promoEnabled:a,aspectRatio:B,aspectMatch:z,onClick:_,ref:$}),n().createElement(jg,{config:u},n().createElement(Xg,{isPreroll:!1,transitionToVideo:N},b(V))))};ev.propTypes={config:a().object,children:a().func.isRequired,promoEnabled:a().bool,onPromoClick:a().func,updateDisplay:a().func,isCarousel:a().bool};var tv=(0,e.forwardRef)((function(t,r){var o=t.onVideoRendered,i=void 0===o?function(){}:o,a=t.config,l=void 0===a?{}:a,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,A=l.playCallback,O=void 0===A?function(){}:A,x=l.isCarousel,C=void 0!==x&&x,k=l.stickyStyles,P=h().autoplayState,j=(yo().adControlsRef,Li()),$=j.setRenderControls,I=j.play,R=j.handleLivePreview,T=j.autoplay,D=v||S/y,M=ra({setRenderControls:$,isCarousel:C,autoplay:T,play:I,playCallback:O}),L=Ji(),B=L.hasSubtitles,N=L.updateCues,_=L.currentCue,z=L.setupSubtitlesListener,V=oa(M,l,z),F=(0,e.useCallback)((function(){P.isLivePreview&&R(),V(P.isLivePreview)}),[V,P.isLivePreview,R]),U=function(){var t=Kr(),n=Li(),r=function(t,n){var r=h().autoplayState,o=(0,e.useRef)(),i=yo().adControlsRef,a=Kr(),l=Yr().adState;return(0,e.useEffect)((function(){r.type!==ge.LOOP_NO_CONTROLS&&(o.current=function(e){var r=function(){return Object.values(e).some((function(e){return!0===e}))};if(r())if(t.isPlaying)n();else if(l===be.PLAYING){var o;null===(o=i.current)||void 0===o||o.pauseAd()}else{var c=a.current,u=function(){to(c,W,u),r()&&setTimeout((function(){n()}),1e3)},s=function(){to(c,K,s),r()&&setTimeout((function(){var e,t;null===(e=i.current)||void 0===e||e.pauseAd(),null===(t=i.current)||void 0===t||t.displayControls()}),0)};eo(c,W,u),eo(c,K,s)}})}),[i,l,r.type,n,t.isPlaying,a]),(0,e.useCallback)((function(e){var t;null===(t=o.current)||void 0===t||t.call(o,e)}),[])}(n.playerState,n.pause),o=function(e){var t=e.ref,n=e.type,r=e.pauseSelf,o=e.handleWalls;return qi((function(){var e,n;r&&(null===(e=(n=window).registerDisplay)||void 0===e||e.call(n,{participant:Zi,callback:function(e){var n=(null==e?void 0:e.info)||{},o=n.state,i=n.ref;"media-start"===o&&i!==t&&r()}}))}),[r]),qi((function(){var e,t;if(o){var n={};null===(e=(t=window).registerDisplay)||void 0===e||e.call(t,{participant:Yi,callback:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.readyDisplay;n[t]=r,Object.keys(n).length>=Yi.length&&o(n)}})}}),[o]),Gi((function(e){var r,o;null===(r=(o=window).registerDisplay)||void 0===r||r.call(o,{participant:n,info:Ui(Wi({},e),{ref:t})})}),[])}({type:"video",ref:t,handleWalls:r});return o}();return kg(),n().createElement(n().Fragment,null,n().createElement(Vi,{controlWrapperClassName:E,liveEventEnded:d,aspectRatio:D,stickyStyles:k},n().createElement(ev,{promoEnabled:u,config:l,onPromoClick:F,updateDisplay:U},(function(e){return n().createElement(ja,{onVideoRendered:i,config:l,promoEnabled:u,liveEventEnded:d,handleVideoEnd:f,isLive:b,handleStart:V,transitionToVideo:M,updateCues:N,hasSubtitles:B,currentCue:_,ref:r,Controls:wg},e)}))),n().createElement(_r,null))}));function nv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}tv.displayName="OrcaFullUI",tv.propTypes={onVideoRendered:a().func,config:a().object,promoEnabled:a().bool,liveEventEnded:a().bool,handleVideoEnd:a().func,isLive:a().bool};var rv=function(t,n){var r=Jo().sendAnalyticsEvent,o=(0,e.useRef)(0),i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nv(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),a=i[0],l=i[1],c=!(null==n?void 0:n.isMuted)&&(null==n?void 0:n.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&&r("live-video-threshold",{avLiveProgress:"".concat(e/300*5)})}}),[a])},ov=function(e){var t=e.isLive,r=e.playerState;return rv(t,r),n().createElement(n().Fragment,null)};ov.propTypes={isLive:a().bool.isRequired,playerState:a().object};var iv=(0,e.forwardRef)((({title:t,titleId:n,...r},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":n,...r},t?e.createElement("title",{id:n},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"})))),av=(0,e.memo)(iv),lv=Gn("div",{width:"100%",height:"100%",position:"absolute",zIndex:"1",display:"flex",justifyContent:"center",alignItems:"center",padding:"$175",background:"$primary"}),cv=Gn("div",{padding:"$125"}),uv=Gn("div",{fontFamily:"$meta",color:"$secondary",fontSize:"$125",fontWeight:"$light",width:"40%","@sm":{fontSize:"$087"}}),sv=function(){return n().createElement(lv,null,n().createElement(cv,null,n().createElement(La,{size:200,label:"error",fill:"white"},n().createElement(av,null))),n().createElement(uv,null," An error occurred. Please try again later."))};function dv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dv(e,t,n[t])}))}return e}function fv(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var gv=function(t){var r=t.aspectRatio,o=t.aspectMatch,i=t.placeholder,a=t.className,l=t.caption,u=t.children,s=t.promoState,d=t.video,p=t.imageFetchPriority,f=t.imageLoading,g=t.buildPromoImagePropsOverride,b=c(),v=b.originalVideo,m=b.videoData,y=b.videoApiDataFailed,h=m||d,w=Vr().isOpenSticky,S=Li().playerState,E=i||{},A=E.image,O=E.resize,x=E.blur,C=E.color,k=(0,e.useMemo)((function(){return!0===(null==i?void 0:i.responsive)}),[i]),P=function(t){var n,r=t.placeholderImage,o=t.resize,i=t.videoData,a=t.originalVideo,l=(0,e.useCallback)((function(){var e;return(null==i||null===(e=i.additional_properties)||void 0===e?void 0:e.vertical)?480:960}),[null==i||null===(n=i.additional_properties)||void 0===n?void 0:n.vertical]);return(0,e.useCallback)((function(){var e,t,n=l(i);if(r&&function(e,t){return!(null==t?void 0:t._id)||(null==e?void 0:e._id)===(null==t?void 0:t._id)}(i,a))return o?Mr(r,n):r;var c=(null==i||null===(e=i.bandito)||void 0===e?void 0:e.image)||(null==i||null===(t=i.promo_image)||void 0===t?void 0:t.url);return c?Mr(c,n):null}),[r,o,i,a,l])}({placeholderImage:A,resize:O,videoData:h,originalVideo:v}),j=(0,e.useMemo)((function(){return k?null:P()}),[k,P]),$=(0,e.useMemo)((function(){return k?function(e,t,n,r){if(!0!==(null==e?void 0:e.responsive))return null;var o=function(e,t,n){var r,o;return e&&function(e,t){return!(null==t?void 0:t._id)||(null==e?void 0:e._id)===(null==t?void 0:t._id)}(t,n)?e:(null==t||null===(r=t.bandito)||void 0===r?void 0:r.image)||(null==t||null===(o=t.promo_image)||void 0===o?void 0:o.url)||null}(null==e?void 0:e.image,t,n);if(!o)return null;var i=Ge(t);return"function"==typeof r?r(o,i):Br(o,i)}(i,h,v,g):null}),[k,i,h,v,g]),I=(0,e.useMemo)((function(){return k?$:j}),[k,$,j]),R=(0,e.useMemo)((function(){return I&&(s!==De||!S.isStarted)}),[I,s,S]),T=function(t){var n=t.isOpenSticky,r=t.aspectRatio,o=t.aspectMatch,i=t.blur,a=t.color;return(0,e.useCallback)((function(){var e={width:"100%",position:"relative",backgroundPosition:"center",backgroundSize:o?"cover":"contain",paddingBottom:"calc(".concat(r,"*100%)")},t=fv(pv({},e),{backgroundColor:"unset",backgroundImage:"none"}),l=pv(fv(pv({},e),{backgroundRepeat:"no-repeat",backgroundColor:a||"black"}),i?{filter:"blur(5px)",transition:"filter .1s"}:{});return n?t:l}),[n,r,o,i,a])}({isOpenSticky:w,aspectRatio:r,aspectMatch:o,blur:x,color:C,promoState:s,playerState:S});return n().createElement("figure",{className:a,style:{margin:0}},n().createElement("div",{"data-testid":"orca-wrapper",style:pv({backgroundImage:!k&&R?"url(".concat(j,")"):"none"},T())},k&&R&&!w&&n().createElement("img",{src:$.src,srcSet:$.srcSet,sizes:$.sizes,alt:"","aria-hidden":!0,decoding:"async","data-testid":"orca-wrapper-background-image",fetchPriority:p,loading:f,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectPosition:"center",objectFit:o?"cover":"contain",pointerEvents:"none"}}),y&&n().createElement(sv,null),h&&u),l&&n().createElement("figcaption",null,l))};gv.propTypes={aspectRatio:a().number,aspectMatch:a().bool,placeholder:a().object,className:a().string,caption:a().node,children:a().node,video:a().object,imageFetchPriority:a().string,imageLoading:a().string,buildPromoImagePropsOverride:a().func,videoApiDataFailed:a().bool,videoID:a().string,isStickyEnabled:a().bool,isOpenSticky:a().bool,promoState:a().string,playerState:a().object};var bv=function(e){var t,r,o=e.children,i=e.config,a=c().videoData,l=Li().playerWrapperRef,u=Ur().promoState,s=i.caption,d=i.className,p=i.placeholder,f=i.aspectRatio,g=i.aspectWidth,b=void 0===g?16:g,v=i.aspectHeight,m=void 0===v?9:v,y=i.buildPromoImagePropsOverride,h=f||m/b,w=h===(null==a||null===(t=a.streams)||void 0===t?void 0:t[0].height)/(null==a||null===(r=a.streams)||void 0===r?void 0:r[0].width);return n().createElement("div",{ref:l},n().createElement(gv,{aspectRatio:h,aspectMatch:w,placeholder:p,className:d,caption:s,promoState:u,buildPromoImagePropsOverride:y},o))};bv.propTypes={children:a().node.isRequired,config:a().object};var vv=function(t){var r=t.config,o=t.orcaRef,i=t.promoEnabled,a=c().videoData,l=Li(),u=l.reset,s=l.playerState,d=l.playerSize;!function(t,n){var r=c(),o=r.videoId,i=r.videoData,a=r.videoApiUrl,l=r.domain,u=r.fetchedByUUID,s=r.dispatchVideoApiEvent,d=h().updateAutoplayState,f=t.liveConfigEnv,g=void 0===f?Pt:f,b=t.forceLiveConfig,v=t.liveConfigInterval,m=void 0===v?6e4:v,y=t.isLivePreviewEnabled,w=(0,e.useMemo)((function(){return Ve(g)}),[g]),S=(0,e.useRef)(),E=(0,e.useCallback)(function(){var e=xt((function(e,t,r){var o;return kt(this,(function(c){switch(c.label){case 0:return o=It(t,e,r),Mt(i,o,S,s,n,d,y),[4,Tt(o,s,a,l,n)];case 1:return c.sent(),[2]}}))}));return function(t,n,r){return e.apply(this,arguments)}}(),[s,l,a,i,n,d,y]),A=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(p(i)){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ct(e,t,n[t])}))}return e}({},i),r=t.playerTypeOverride;jt({videoApiUrl:a,domain:l},o,"live-bar"===r||!e).then((function(e){$t(w).then((function(t){E(e,t,n)}))}))}},O=function(){document.hidden?clearInterval(S.current):(clearInterval(S.current),S.current=setInterval((function(){A()}),m))};(0,e.useEffect)((function(){return A(!u),(p(i)||b)&&(S.current=setInterval((function(){A(),document.addEventListener("visibilitychange",O)}),m)),function(){clearInterval(S.current),document.removeEventListener("visibilitychange",O)}}),[i])}(r,o);var g=(0,e.useMemo)((function(){return f(a)}),[a]);return(0,e.useEffect)((function(){g&&u()}),[g,s.isPlaying]),n().createElement(bv,{config:r},g&&n().createElement(ur,{playerSize:d}),n().createElement(tv,{config:r,promoEnabled:i,isLive:!0,liveEventEnded:g,ref:o}),n().createElement(ov,{playerState:s,isLive:!0}))};vv.propTypes={config:a().object.isRequired,orcaRef:a().object,promoEnabled:a().bool};var mv=(0,e.forwardRef)((function(e,t){var r=e.onVideoRendered,o=void 0===r?function(){}:r,i=e.config,a=void 0===i?{}:i,l=e.handleVideoEnd,c=void 0===l?function(){}:l,u=a.playCallback,s=void 0===u?function(){}:u,d=a.isCarousel,p=void 0!==d&&d,f=Li(),g=f.setRenderControls,b=f.play,v=f.autoplay,m=ra({setRenderControls:g,isCarousel:p,autoplay:v,play:b,playCallback:s}),y=Ji(),h=y.hasSubtitles,w=y.updateCues,S=y.currentCue,E=y.setupSubtitlesListener,A=oa(m,a,E);return n().createElement(n().Fragment,null,n().createElement(ja,{onVideoRendered:o,config:a,promoEnabled:!1,liveEventEnded:!1,handleVideoEnd:c,isLive:!1,handleStart:A,transitionToVideo:m,updateCues:w,hasSubtitles:h,currentCue:S,ref:t,Controls:Dc}),n().createElement(_r,null))}));mv.displayName="OrcaLoopingUI",mv.propTypes={onVideoRendered:a().func,config:a().object,handleVideoEnd:a().func};var yv=function(e){var t=e.config,r=e.onVideoRendered,o=e.orcaRef;return n().createElement(bv,{config:t},n().createElement(mv,{onVideoRendered:r,config:t,handleVideoEnd:function(){},ref:o}))};function hv(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}yv.propTypes={config:a().object.isRequired,isSandbox:a().bool,onVideoEnded:a().func,promoEnabled:a().bool,onVideoRendered:a().func,orcaRef:a().object};var wv=function(){var e,t=(e=function(e,t){var n,r,o,i;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(a){switch(a.label){case 0:n=Sv(e),a.label=1;case 1:return a.trys.push([1,4,,5]),r=Ue(We(t),{uuid:null==e?void 0:e._id,recommendedPlaylist:1,playlistCount:1}),[4,fetch(r)];case 2:return[4,a.sent().json()];case 3:return o=a.sent(),Array.isArray(o)?[2,o.filter((function(e){return Ev(e,n)&&Av(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 i=a.sent(),console.error("Video API request for recommended playlist for UUID = ".concat(null==e?void 0:e._id," failed: ").concat(i)),[2,[]];case 5:return[2]}}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){hv(i,r,o,a,l,"next",e)}function l(e){hv(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}(),Sv=function(e){var t=e.additional_properties,n=t.vertical,r=void 0!==n&&n,o=t.videoCategory;return r||"vertical"===(void 0===o?"":o)},Ev=function(e,t){return Sv(e)===t},Av=function(e){return!Be(e)};function Ov(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ov(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ov(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 Cv=function(t){var r=t.config,o=t.isSandbox,i=t.onVideoEnded,a=t.promoEnabled,l=t.onVideoRendered,u=t.orcaRef,s=h(),d=s.autoplayState,p=s.isMotionReduced,f=Li(),g=f.initDuration,b=f.initializeNewVideo,v=f.resetVideoState,m=f.isFullscreen,y=f.isNativeIOSPlayer,w=f.setIsFullscreen,S=Jo().sendAnalyticsEvent,E=function(t,n,r,o,i,a){var l=c(),u=l.videoData,s=l.dispatchVideoApiEvent,d=l.originalVideo,p=h().autoplayState,f=Kr(),g=Vr(),b=g.isOpenSticky,v=g.setOverrideStickyContext,m=t.allowPlaythrough,y=void 0===m||m,w=xv((0,e.useState)([]),2),S=w[0],E=w[1],A=S.length>0,O=xv((0,e.useState)(!1),2),x=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&&!i&&!(null==p?void 0:p.isLooping)&&!0}),[u,y,i,null==p?void 0:p.isLooping,r]),P=(0,e.useCallback)((function(){var e=A?S[0]:d;s({type:ht,videoData:e}),A&&E(S.slice(1)),b&&v(!0),a(A)}),[s,b,v,A,a,d,S]);return(0,e.useEffect)((function(){if(k){var e=null==f?void 0:f.current;if(e){var t=function(){var e;x||(null==f||null===(e=f.current)||void 0===e?void 0:e.currentTime)>80*o/100&&(C(!0),wv(d,n).then((function(e){E(e)})))};return e.addEventListener(U,t),function(){e.removeEventListener(U,t)}}}}),[f,k,n,d,S,x,o]),{switchToNextVideo:P,willPlaythrough:k,hasNextRecVideo:A}}(r,o,!1,g,p,b),A=E.switchToNextVideo,O=function(t){var n=t.autoplayState,r=t.sendAnalyticsEvent,o=t.resetVideoState,i=t.willPlaythrough,a=t.switchToNextVideo,l=t.onVideoEnded,u=t.hasNextRecVideo,s=t.isFullscreen,d=t.isNativeIOSPlayer,p=t.setIsFullscreen,f=Yr().shouldShowAds,g=c().resetUniqueId;return(0,e.useCallback)((function(){n.isLooping||r("video-complete"),o(i&&u),i?(d&&s&&f&&p(!1),a()):g(),l()}),[n.isLooping,r,o,i,a,l,u,s,d,p,f,g])}({autoplayState:d,sendAnalyticsEvent:S,resetVideoState:v,willPlaythrough:E.willPlaythrough,switchToNextVideo:A,onVideoEnded:i,hasNextRecVideo:E.hasNextRecVideo,isFullscreen:m,isNativeIOSPlayer:y,setIsFullscreen:w});return n().createElement(bv,{config:r},n().createElement(tv,{onVideoRendered:l,config:r,promoEnabled:a,handleVideoEnd:O,ref:u}))};Cv.propTypes={config:a().object.isRequired,isSandbox:a().bool,onVideoEnded:a().func,promoEnabled:a().bool,onVideoRendered:a().func,orcaRef:a().object};var kv=Gn("div",{position:"relative",paddingTop:"56.25%","& iframe":{position:"absolute",width:"100%",height:"100%",top:"0",left:"0"}}),Pv=function(){var t,r=c(),o=r.videoData,i=r.uniqueId,a="".concat(i,"-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){kr("https://www.youtube.com/iframe_api",e)})).then((function(){window.YT.ready(e)}))})).then((function(){new window.YT.Player(a,{videoId:l,playerVars:{autoplay:u?1:0,iv_load_policy:3,mute:u?1:0,rel:0,playsinline:1},events:{onReady:function(){ao({videoData:o,eventAction:"force-youtube-render",action:"force-youtube-render",label:st,config:{playerType:st}})}}})}))}),[]),n().createElement(kv,null,n().createElement("div",{id:a}))};function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $v=function(e){var t,r=e.forwardedRef,o=e.Player,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["forwardedRef","Player"]),a=c().videoData,l=null===(t=a.additional_properties)||void 0===t?void 0:t.youtubeVideoId;return et(a)&&l?n().createElement(Pv,null):n().createElement(o,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jv(e,t,n[t])}))}return e}({orcaRef:r},i))};function Iv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}$v.propTypes={forwardedRef:a().oneOfType([a().func,a().object]),Player:a().elementType.isRequired};var Rv=function(t){var r=t.forwardedRef,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["forwardedRef"]),i=c().videoData,a=h().autoplayState,l=o.config,u=void 0===l?{}:l,s=p(i),d=a.isLooping,f=(0,e.useMemo)((function(){return s?vv:d?yv:Cv}),[s,d]);return n().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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Iv(e,t,n[t])}))}return e}({forwardedRef:r,Player:f},o),{config:u}))};Rv.propTypes={forwardedRef:a().oneOfType([a().func,a().object])};var Tv={uuid:a().string,videoStartId:a().string,video:a().object,onVideoEnded:a().func,onVideoRendered:a().func,config:a().shape({aspectRatio:a().number,aspectWidth:a().number,aspectHeight:a().number,placeholder:a().object,className:a().string,caption:a().node,testGroup:a().string,abTest:a().object,loadFirstFragmentOnly:a().bool,preload:a().oneOf(["none","metadata","auto"]),debug:a().bool,alternateArt:a().string,allowPlaythrough:a().bool,isSticky:a().bool,hasAds:a().bool,debugZeus:a().bool,debugHLS:a().bool,shouldSendAnalyticsEvent:a().func,getStartReasonOverride:a().func,buildPromoImagePropsOverride:a().func,adOverrides:a().shape({forceAd:a().bool,adZoneOverride:a().string,adTimeoutOverride:a().number,skip:a().number,skipmin:a().number,skipafter:a().number,preloadAd:a().bool,domain:a().string}),embed:a().shape({domain:a().string,defaultWidth:a().oneOfType([a().string,a().number]),defaultHeight:a().oneOfType([a().string,a().number]),queryParams:a().object,getEmbedUrlOverride:a().func})}),promoEnabled:a().bool,isSandbox:a().bool,allowShare:a().bool,allowEmbed:a().bool,isAutoplayOverride:a().bool,isMutedOverride:a().bool,showSubtitlesOverride:a().bool,playerTypeOverride:a().string,stickyPlayerContext:a().object,orcaDeps:a().object},Dv=function(e){var t=e.DataProviderComponent,r=e.uuid,o=e.video,i=e.videoStartId,a=e.isSandbox,l=e.config,c=e.orcaRef,u=e.children;return n().createElement(Jr,null,n().createElement(t,{uuid:r,video:o,videoStartId:i,isSandbox:a,config:l,orcaRef:c},u))};Dv.propTypes={children:a().node.isRequired,config:a().object,DataProviderComponent:a().elementType.isRequired,uuid:a().string.isRequired,video:a().object,videoStartId:a().string,isSandbox:a().bool,orcaRef:a().object};var Mv=function(e){var t=e.DataProviderComponent,r=e.OptionalFeatureStack,o=e.uuid,i=e.video,a=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 n().createElement(Dv,{DataProviderComponent:t,uuid:o,video:i,videoStartId:a,isSandbox:l,config:c,orcaRef:u,orcaDeps:f},n().createElement(r,{stickyPlayerContext:p,config:c,orcaDeps:f,carouselState:g},n().createElement(Bi,{config:c,optionalHandlers:b},s)))};function Lv(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}Mv.propTypes={DataProviderComponent:a().elementType.isRequired,OptionalFeatureStack:a().elementType.isRequired,uuid:a().string.isRequired,video:a().object,videoStartId:a().string,isSandbox:a().bool,config:a().object,orcaRef:a().object,children:a().node.isRequired,stickyPlayerContext:a().object,orcaDeps:a().object,carouselState:a().object,optionalHandlers:a().shape({toggleSubsHandler:a().func,toggleMuteHandler:a().func})};var Bv=function(){var e,t=(e=function(e,t){var n,r;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(o){return n=e.videoApiUrl,r=e.domain,[2,He(n,{uuid:t,domain:r})]}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Lv(i,r,o,a,l,"next",e)}function l(e){Lv(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}(),Nv=o(948),_v=o.n(Nv);const zv={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Vv;const Fv=new Uint8Array(16);function Wv(){if(!Vv&&(Vv="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Vv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Vv(Fv)}const Uv=[];for(let e=0;e<256;++e)Uv.push((e+256).toString(16).slice(1));const Hv=function(e,t,n){if(zv.randomUUID&&!t&&!e)return zv.randomUUID();const r=(e=e||{}).random||(e.rng||Wv)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Uv[e[t+0]]+Uv[e[t+1]]+Uv[e[t+2]]+Uv[e[t+3]]+"-"+Uv[e[t+4]]+Uv[e[t+5]]+"-"+Uv[e[t+6]]+Uv[e[t+7]]+"-"+Uv[e[t+8]]+Uv[e[t+9]]+"-"+Uv[e[t+10]]+Uv[e[t+11]]+Uv[e[t+12]]+Uv[e[t+13]]+Uv[e[t+14]]+Uv[e[t+15]]}(r)};var qv=function(){var e;return"object"!=((e=o.g.crypto)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)&&(o.g.crypto=_v()),"function"!=typeof o.g.crypto.getRandomValues&&(o.g.crypto.getRandomValues=Gv),Hv()};function Gv(e){return _v().webcrypto.getRandomValues(e)}function Yv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xv=function(t){var r=t.uuid,o=t.video,i=t.videoStartId,a=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 n=We(t),r=function(e){var t,n;return e||("undefined"!=typeof window&&(null===(n=window)||void 0===n||null===(t=n.location)||void 0===t?void 0:t.hostname)?window.location.hostname:"washingtonpost.com")}(e);return{videoApiUrl:n,domain:r}}(b,a)}),[b,a]),y=m.videoApiUrl,h=m.domain,w=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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.useReducer)(At,function(e){return{videoData:e,videoApiDataFailed:!1,originalVideo:null,fetchedByUUID:!1,isForceLoadVideo:!1}}(v)),2),S=w[0],E=w[1],A=S.originalVideo,O=S.videoApiDataFailed,x=S.videoData,C=S.fetchedByUUID,k=S.isForceLoadVideo;!function(t,n){var r=t.dispatchVideoApiEvent,o=t.domain,i=t.originalVideoData,a=t.uuid,l=t.videoApiUrl,c=t.currentVideoData,u=t.propVideoData,s=t.config,d=t.orcaRef,p=n.onSetOriginalVideo,f=void 0===p?function(e){var t=e.type,n=e.videoData;r({type:t,videoData:n})}:p,g=Kr(),b=u._id,v=(i||{})._id,m=(c||{})._id,y=s.debug,h=s.hasNextVideo,w=s.overrideReducedMotion,S=function(e){return e&&Fe(e)},E=function(){d.current.resetVideoState(h),d.current.initializeNewVideo(h,w)},A=function(e){var t=e.message;_e("videoApiError",t,a,y),r({type:St}),ca(g,da,ga.API_ERROR,{errorMessage:t,uuid:a},s)},O=function(e){if(!e)throw Error("Video data from API returned empty.");_e(_,"API Success",a,y),v?(r({type:wt,videoData:e[0]}),E()):f({type:yt,videoData:e[0],dispatchVideoApiEvent:r,videoApiUrl:l,domain:o,orcaRef:d})};(0,e.useEffect)((function(){b&&!v&&f({type:mt,videoData:u,dispatchVideoApiEvent:r,videoApiUrl:l,domain:o,orcaRef:d}),a&&!S(u)&&a!==m?Bv({videoApiUrl:l,domain:o},a).then(O).catch(A):b&&m&&b!==m?(r({type:ht,videoData:u}),E()):a||S(u)||(r({type:St}),ca(g,da,ga.API_ERROR,{errorMessage:"Video missing UUID and video data is empty."},s))}),[a,b,h])}({dispatchVideoApiEvent:E,domain:h,originalVideoData:A,uuid:r,videoApiUrl:y,currentVideoData:x,propVideoData:v,config:u,orcaRef:s},f);var P=(0,e.useMemo)((function(){return(null==x?void 0:x._id)?x._id:r}),[null==x?void 0:x._id,r]),j=function(t){var n=t.videoStartId,r=t.videoId,o=null!=n?n:null,i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Yv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yv(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:qv()})),2),a=i[0],l=i[1];return(0,e.useEffect)((function(){var e=o||qv();l(e)}),[r,o]),{uniqueId:a,setVideoStartId:(0,e.useCallback)((function(e){l(e||qv())}),[]),resetUniqueId:(0,e.useCallback)((function(){l(qv())}),[])}}({videoStartId:null!=i?i:null,videoId:P}),$=j.uniqueId,I=j.setVideoStartId,R=j.resetUniqueId,T=(0,e.useMemo)((function(){return{originalVideo:A,videoApiDataFailed:O,videoData:x,videoId:P,dispatchVideoApiEvent:E,videoApiUrl:y,domain:h,fetchedByUUID:C,uniqueId:$,isForceLoadVideo:k,resetUniqueId:R,setVideoStartId:I}}),[h,A,O,y,x,P,C,$,k,R,I]);return n().createElement(l.Provider,{value:T},d)};function Kv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xv.propTypes={video:a().object,domainOverride:a().string,isSandbox:a().bool,debug:a().bool,uuid:a().string,videoStartId:a().string,useVideoApiOptions:a().object,children:a().node};var Jv=function(e){var t=e.config,r=e.orcaRef,o={onSetOriginalVideo:function(e){var n=e.type,o=e.videoData,i=e.dispatchVideoApiEvent,a=e.videoApiUrl,l=e.domain,c=t.liveConfigEnv;!function(e){var t=e.type,n=e.videoData,r=e.liveConfigUrl,o=e.dispatchVideoApiEvent,i=e.videoApiUrl,a=e.domain,l=e.orcaRef,c=function(){o({type:t,videoData:n})};p(n)?function(e,t,n,r,o,i,a){$t(e).then((function(e){if(function(e){var t,n;return!!(null==e||null===(t=e.forceAdditionalProperties)||void 0===t?void 0:t.forceLoadVideo)||!!(null==e||null===(n=e.forceAdditionalProperties)||void 0===n?void 0:n.youtubeVideoId)}(e[t._id]||{})){var l=It(e,{},t);return Tt(l,n,r,o,i)}a()}))}(r,n,o,i,a,l,c):c()}({type:n,videoData:o,liveConfigUrl:Ve(void 0===c?Pt:c),orcaRef:r,dispatchVideoApiEvent:i,videoApiUrl:a,domain:l})}};return n().createElement(Xv,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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Kv(e,t,n[t])}))}return e}({},e),{useVideoApiOptions:o}))};function Qv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function em(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){em(e,t,n[t])}))}return e}function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nm(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.")}()}Jv.propTypes={config:a().object,orcaRef:a().string,children:a().node.isRequired};var om=function(t){var r=t.children,o=t.config,i=void 0===o?{}:o,a=i.isLead,l=i.isLivePreviewEnabled,u=void 0!==l&&l,s=i.isAutoplayOverride,d=i.autoplayLive,b=void 0!==d&&d,v=i.forceNoLoop,h=i.isSubscriber,w=void 0!==h&&h,S=function(t){var n=rm((0,e.useState)(),2),r=n[0],o=n[1],i=rm((0,e.useState)(t),2),a=i[0],l=i[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!=a?a:r,setOverrideReducedMotion:l}}(i.reduceMotion),E=S.isMotionReduced,A=S.setOverrideReducedMotion,O=function(t){var n=t.isLead,r=t.isMotionReduced,o=t.isLivePreviewEnabled,i=t.isAutoplayOverride,a=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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qv(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){r&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||v((function(t){return tm({},t,e)}))}),[r]);return(0,e.useEffect)((function(){if(s&&Fe(s)&&void 0!==r)if(r||g(s)||!Ze())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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}(tm({},m),{isInitialized:!0}));else{var e=Be(s,l),t=[ge.LOOP,ge.LOOP_NO_CONTROLS].includes(e),c=!1;!t&&function(e,t){return!(!e||t)}(n,u)&&(c=!0,e=ge.AUTO);var d=!1;o&&!f(s)&&!g(s)&&p(s)&&(d=!0,e=ge.AUTO);var b=!1;p(s)&&a&&(e=ge.AUTO,b=!0),i&&!t&&(e=ge.AUTO);var h=i||p(s)&&a||!!e;!h||t||u||d||(c=!0),y({type:e,isLooping:t,isAutoplay:h,isPreroll:c,isLivePreview:d,overrideAutoplayMuteBehavior:b,isInitialized:!0})}}),[r,s,n,o,y,i,l,a,u]),{autoplayState:b,updateAutoplayState:y}}({isLead:a,isMotionReduced:E,isLivePreviewEnabled:u,isAutoplayOverride:s,autoplayLive:b,forceNoLoop:v,isSubscriber:w}),x=O.autoplayState,C=O.updateAutoplayState,k=(0,e.useMemo)((function(){return{autoplayState:x,updateAutoplayState:C,isMotionReduced:E,setOverrideReducedMotion:A}}),[x,C,E,A]);return n().createElement(y.Provider,{value:k},r)};om.propTypes={config:a().object,children:a().node};var im=(0,e.createContext)({init:!1,openId:null,isLoaded:!1,playingId:null,isExpandable:!0,isExpanded:!1,handleClick:function(){},updateContext:function(){}});function am(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return am(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?am(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.")}()}a().node;var cm=function(t){var r=t.children,o=t.config,i=function(t,n){var r=c().uniqueId,o=Jo(),i=o.sendAnalyticsEvent,a=o.setPlayerType,l=po().isInViewPort,u=(0,e.useContext)(im),s=(0,e.useMemo)((function(){return function(e,t){var n=t.playingId,r=t.openId,o=t.updateContext,i=e||{};return{playingId:i.playingId||n,openId:i.openId||r,updateStickyContext:i.updateContext||o}}(n,u)}),[n,u]),d=s.playingId,p=s.openId,f=s.updateStickyContext,g=lm((0,e.useState)(!1),2),b=g[0],v=g[1],m=lm((0,e.useState)(!1),2),y=m[0],h=m[1],w=lm((0,e.useState)(!1),2),S=w[0],E=w[1];(0,e.useEffect)((function(){var e=function(e,t,n,r,o){return e||t&&function(e,t,n){return e===n&&t===n}(n,r,o)}(S,b,p,d,r);(function(e,t,n,r,o){return e&&!t&&function(e,t,n){return e!==t&&null!==e||e!==t&&null!==n}(n,r,o)})(y,S,d,r,p)&&i(ct,{label:"close-other-media"}),h(e)}),[p,d,r,b,S,y,i]),(0,e.useEffect)((function(){a(y?"orca-embed-sticky":dt(t))}),[y,t,a]);var A=(0,e.useCallback)((function(){y||i("sticky-player-open",{label:"open-scroll"}),f({openId:r})}),[y,i,f,r]),O=(0,e.useCallback)((function(){f({openId:null}),i(ct,{label:"close-scroll"})}),[i,f]);return(0,e.useEffect)((function(){!function(e,t,n){return!e&&t===n}(l,d,r)?function(e,t,n,r){return e&&t===r&&n===r}(l,d,p,r)&&O():A()}),[l,d,r,p,O,A]),{isStickyEnabled:b,isOpenSticky:y,playingId:d,openId:p,updateStickyContext:f,setOverrideStickyContext:E,setIsStickyEnabled:v,overrideStickyContext:S}}(void 0===o?{}:o,t.stickyPlayerContext),a=i.isStickyEnabled,l=i.isOpenSticky,u=i.playingId,s=i.openId,d=i.updateStickyContext,p=i.setOverrideStickyContext,f=i.setIsStickyEnabled,g=(0,e.useMemo)((function(){return{isStickyEnabled:a,isOpenSticky:l,playingId:u,openId:s,updateStickyContext:d,setOverrideStickyContext:p,setIsStickyEnabled:f}}),[a,l,u,d,p,s,f]);return n().createElement(zr.Provider,{value:g},r)};cm.propTypes={config:a().object,children:a().node,stickyPlayerContext:a().object};var um={contentApi:{paths:["taxonomy.primary_section._id","taxonomy.primary_site._id"]},siteService:{paths:["_id"]}};function sm(e,t){if("string"==typeof e)return e;var n=um[t];if(n&&n.paths){var r=function(e,t){var n=!1,r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var c=a.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&&(n=!0),null!=u)return u}}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n?null:void 0}(e,n.paths);return r}console.error("Invalid model: ".concat(t))}function dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dm(e,t,n[t])}))}return e}var fm=function(e,t,n,r,o,i,a,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,A=g.preloadAd,O=void 0!==A&&A,x=g.skip,C=g.skipmin,k=g.skipafter,P=e.debugZeus,j=vm(p,v,y),$=gm(t,e);return{adTimeout:E||3,videoAdZone:j,forceAd:v,customParamsOverride:w,adTagOverride:S,preloadAd:O,uuid:t._id,debugZeus:P,isVertical:r,isMuted:!!a||o,playerWidth:mm(n),playerHeight:ym(n),sections:(null===(c=t.taxonomy)||void 0===c?void 0:c.sections)||[],playerType:bm(t),isLive:i,isPreroll:a,isPlaythrough:l,pageType:rt(),orcaType:$,videoConfig:pm({},x&&{skip:x},C&&{skipmin:C},k&&{skipafter:k}),primarySectionId:sm(t,"contentApi"),avTags:xr(null===(u=t.taxonomy)||void 0===u?void 0:u.tags,";","","text")}},gm=function(e,t){var n=!!(null==t?void 0:t.isCarousel),r=p(e),o=Ne(e);return n?"carousel":r?"live":o?"looping":"vod"},bm=function(e){var t,n,r,o,i,a;if("undefined"!=typeof window){var l="posttv-embed";return Ne(e)?l="posttv-embed-LoopingVideo":!0===(null===(n=window)||void 0===n||null===(t=n.wp_meta_data)||void 0===t?void 0:t.isHomepage)||"homepage"===(null===(a=window)||void 0===a||null===(i=a.Fusion)||void 0===i||null===(o=i.metas)||void 0===o||null===(r=o.contentType)||void 0===r?void 0:r.value)?l="posttv-embed-hp":window.self!==window.top?l="posttv-embed-iframe":window.wp_pb&&/video-leaf-page/.test(window.wp_pb.pageName)&&(l="posttv-leaf"),l}},vm=function(e,t,n){return n||(t?"wpni.video.test/appsalwayson":hm(e))},mm=function(e){var t;return null==e||null===(t=e.current)||void 0===t?void 0:t.clientWidth},ym=function(e){var t;return null==e||null===(t=e.current)||void 0===t?void 0:t.clientHeight},hm=function(e){return(null==e?void 0:e.includes("_"))||(null==e?void 0:e.includes("/"))?e:e+wm()},wm=function(){var e=Sr("wp_devicetype");if(e)return"2"===e?"_tablet":"1"===e?"_mweb":"";var t=$r(),n=/ipod|iphone|ipad/i.test(t),r=/tablet|ipad/i.test(t),o=!r&&(n||/[^-]mobi/i.test(t));return r?"_tablet":o?"_mweb":""};function Sm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Em(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Am(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Em(i,r,o,a,l,"next",e)}function l(e){Em(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Om(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Sm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sm(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 xm(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var Cm=function(t){var n=Kr(),r=c().videoData,o=void 0===r?{}:r,i=h().autoplayState,a=t.config,l=void 0===a?{}:a,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=Om((0,e.useState)(be.INIT),2),A=E[0],O=E[1],x=Om((0,e.useState)(!1),2),C=x[0],k=x[1],P=Om((0,e.useState)(!1),2),j=P[0],$=P[1],I=Om((0,e.useState)(!1),2),R=I[0],T=I[1],D=Om((0,e.useState)(!1),2),M=D[0],L=D[1],B=Om((0,e.useState)(!1),2),N=B[0],_=B[1],z=yo().adWrapperRef,V=(0,e.useRef)(fm(l,o,n,v,Wo(),y,S,i.isPlaythrough));(0,e.useEffect)((function(){if(V.current=fm(l,o,n,v,Wo(),y,S,i.isPlaythrough),S)return k(!0),void q();if(i.isInitialized){if(!j||N){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;!Vo(l,null==o?void 0:o._id)||Fo()||Do()?T(!0):(k(!0),q()),zo(i)||T(!0),_(!1)}!j&&o&&Fe(o)&&$(!0)}}),[null==o?void 0:o._id,i,N]),(0,e.useEffect)((function(){M&&function(e){var t,n;return!(null==e||null===(t=e.adOverrides)||void 0===t?void 0:t.skipAd)&&((null==e||null===(n=e.adOverrides)||void 0===n?void 0:n.preloadAd)||!e.prefetchCarouselAds)}(l)&&(_(!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||n.current)&&(null==t||t.resize(n.current.clientWidth,n.current.clientHeight))};(0,e.useEffect)((function(){if(null==n?void 0:n.current){var e=new ResizeObserver(F);return e.observe(null==n?void 0:n.current),function(){return null==e?void 0:e.disconnect()}}}),[null==n?void 0:n.current]);var W=(0,e.useCallback)(function(){var e=Am((function(e){var t,n;return xm(this,(function(r){switch(r.label){case 0:return(n=null===(t=z.current)||void 0===t?void 0:t.irisPlayer)?(O(be.LOADING),[4,n.play()]):(O(be.ERROR),e(),[2]);case 1:return r.sent(),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),[z]),U=function(t,n,r,o,i,a){var l=t.current,c=l.debugZeus,u=l.preloadAd,s=l.isPreroll,d=l.adTagOverride,p=l.adTimeout,f=Oo(),g=f.sendPerformanceEvent,b=f.sendPerformanceMeasure,v=yo(),m=v.adWrapperRef,y=v.adContainerRef,h=Kr(),w=(0,e.useCallback)((function(){return function(e){var t=e.adWrapper,n=e.videoElement,r=e.adContainer,o=e.adTagOverride,i=e.adTimeout,a=e.adSettingsRef;return{videoContainer:t,videoElement:n,adContainer:r,getAdTagUrl:Po((function(){return jo(this,(function(e){switch(e.label){case 0:return o?[2,o]:[4,window.iris.buildUrl(t,{adSettings:a.current,videoElement:n})];case 1:return[2,e.sent()]}}))})),adSettings:{disableCustomPlaybackForIOS10Plus:!0,adsRenderingSettings:{disableUi:!0,useVideoAdUi:!1,uiElements:[]},vastLoadTimeout:1e3*i}}}({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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Co(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],A=S[1],O=(0,e.useCallback)(Po((function(){var e,t,l;return jo(this,(function(d){switch(d.label){case 0:return d.trys.push([0,4,,5]),e=w(),[4,$o(e,c,6e3)];case 1:return d.sent(),function(e,t,n){e(ae),t(ae,oe),n&&(e(ie),t(ie,oe,{irisLoaded:"true"}))}(g,b,s),t=new Promise((function(e){var t;null===(t=m.current)||void 0===t||t.irisPlayer.on(Se,e)})),u?[4,t]:[3,3];case 2:d.sent(),d.label=3;case 3:return A(!0),r(!0),[3,5];case 4:return l=d.sent(),o(Re),n(!1),r(!0),null==a||a(l),i&&console.error(l),[3,5];case 5:return[2]}}))})),[m,n,r,i,a,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=Am((function(){var e;return xm(this,(function(t){switch(t.label){case 0:return H&&S?(O(be.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,n]),(0,e.useEffect)((function(){C&&(H||g!==Re||s(Ie),H&&g===Ie&&(!i.isInitialized||i.isAutoplay&&!i.isLivePreview||s(Re)))}),[H,C,g,i,s]);var G=(0,e.useCallback)((function(e){var t,n;A!==be.ERROR&&O(be.REQUESTED),s(Te),null===(n=z.current)||void 0===n||null===(t=n.irisPlayer)||void 0===t||t.initializeAdDisplayContainer(),setTimeout((function(){W(e)}),[10])}),[A,z,W,s]);return{adState:A,setAdState:O,adSettings:V,shouldShowAds:C,transitionToAd:G,isAdsInitialized:R,isIrisReady:H,setReinitializeAds:_}};Cm.propTypes={video:a().object,config:a().object,setPromoState:a().func,transitionToVideo:a().func,autoplayState:a().object,videoID:a().string,isPreroll:a().bool};var km=function(t){var r=t.children,o=t.config,i=void 0===o?{}:o,a=Ur(),l=a.promoState,u=a.setPromoState,s=c().videoData,d=Ge(s),f=p(s),g=Cm({config:i,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 n().createElement(Gr.Provider,{value:E},r)};function Pm(e){var t,n;return(null==e||null===(n=e.taxonomy)||void 0===n||null===(t=n.tags)||void 0===t?void 0:t.some((function(e){return"force-hd"===e.text})))||Ne(e)}function jm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Im(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jm(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.")}()}km.propTypes={config:a().object,children:a().node};var Rm={liveDurationInfinity:!0,capLevelToPlayerSize:!0,maxBufferLength:10,autoStartLoad:!1,startLevel:-1},Tm=function(t,n){var r=Kr(),o=c(),i=o.videoId,a=o.videoData,l=o.dispatchVideoApiEvent,u=n.debug,s=n.debugHLS,d=n.hlsConfig,p=void 0===d?Rm:d,f=Im((0,e.useState)(null),2),g=f[0],b=f[1],v=Im((0,e.useState)(!1),2),m=v[0],y=v[1];s&&console.log(p);var h=function(e){var n=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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$m(e,t,n[t])}))}return e}({},p),{debug:s}));n.on(t.Events.MEDIA_ATTACHED,(function(){_e("hlsAttached",e,i,u)})),n.on(t.Events.MANIFEST_PARSED,(function(e,t){_e("hlsManifestParsed",t,i,u)})),n.on(t.Events.SUBTITLE_TRACK_LOADED,(function(){no(r.current,H)})),n.loadSource(e),n.attachMedia(r.current),n.startLoad(),b(n)};return(0,e.useEffect)((function(){var e=Pm(a);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),no(r.current,te))},setUpVideoSource:function(){var e=Pm(a),n=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,n){return e.filter((function(e){return e.bitrate<=n&&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,jr(),t)}(a.streams,e);n?Dm(n,t,r.current)?(h(n.url),y(!0)):r.current.src=n.url:l({type:St})},waitForCaptionsToLoad:m}};Tm.propTypes={isCarousel:a().bool,config:a().shape({debug:a().bool,debugHLS:a().bool,hlsConfig:a().object})};var Dm=function(e,t,n){return t.isSupported()&&"mp4"!==e.stream_type&&e.url!==(null==n?void 0:n.url)},Mm=function(t){var r=t.children,o=t.Hls,i=void 0===o?{}:o,a=t.config,l=Tm(i,void 0===a?{}:a),c=l.hls,u=l.removeHLS,s=l.setUpVideoSource,d=l.waitForCaptionsToLoad,p=(0,e.useMemo)((function(){return{isSupported:"function"==typeof(null==i?void 0:i.isSupported)&&i.isSupported(),hls:c,removeHLS:u,setUpVideoSource:s,waitForCaptionsToLoad:d}}),[i,c,u,s,d]);return n().createElement(ai.Provider,{value:p},r)};Mm.propTypes={Hls:a().func,children:a().node,config:a().shape({hlsConfig:a().object,debug:a().bool,debugHLS:a().bool})};var Lm=(0,e.createContext)({Popover:null}),Bm=function(t){var r=t.children,o=t.Popover,i=void 0===o?null:o,a=(0,e.useMemo)((function(){return{Popover:i}}),[i]);return n().createElement(Lm.Provider,{value:a},r)};Bm.propTypes={Popover:a().object,children:a().node,styled:a().func};var Nm=function(e){var t=e.children,r=e.config,o=e.stickyPlayerContext,i=e.orcaDeps,a=void 0===i?{}:i,l=a.Hls,c=a.Popover;return n().createElement(Mm,{Hls:l,config:r},n().createElement(Bm,{Popover:c},n().createElement(om,{config:r},n().createElement(fo,null,n().createElement(Qo,{config:r},n().createElement(cm,{config:r,stickyPlayerContext:o},n().createElement(ho,null,n().createElement(xo,{config:r},n().createElement(Hr,null,n().createElement(km,{config:r},t))))))))))};function _m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Nm.propTypes={children:a().node.isRequired,config:a().object,stickyPlayerContext:a().object,orcaDeps:a().shape({Hls:a().object,Popover:a().object})};var zm=(0,e.forwardRef)((function(t,r){var o=t.uuid,i=t.video,a=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!=r?r:S;return n().createElement(Mv,{DataProviderComponent:Jv,OptionalFeatureStack:Nm,uuid:o,video:i,videoStartId:a,isSandbox:v,config:p,orcaRef:E,stickyPlayerContext:y,orcaDeps:h},n().createElement(Rv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_m(e,t,n[t])}))}return e}({forwardedRef:E},w)))}));zm.displayName="Orca",zm.propTypes=Tv;var Vm=(0,e.memo)(zm);window.orca=window.orca||{},window.orca.version=window.orca.version||{},window.orca.version["orca-ui"]="0.5.15";const Fm=Vm})(),module.exports=i})();
//# sourceMappingURL=main.js.map