!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("lodash")):"function"==typeof define&&define.amd?define(["react","reactDOM","lodash"],t):"object"==typeof exports?exports.WixVideoViewerWidgetNoCss=t(require("react"),require("react-dom"),require("lodash")):e.WixVideoViewerWidgetNoCss=t(e.React,e.ReactDOM,e._)}("undefined"!=typeof self?self:this,((e,t,n)=>(()=>{var r,o,i={18672:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(27762),o=(s(r),s(n(13980))),i=s(n(8051));s(n(45982));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=1073741823;t.default=function(e,t){var n,s,d="__create-react-context-"+(0,i.default)()+"__",p=function(e){function n(){var t,r,o,i;a(this,n);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return t=r=l(this,e.call.apply(e,[this].concat(c))),r.emitter=(o=r.props.value,i=[],{on:function(e){i.push(e)},off:function(e){i=i.filter((function(t){return t!==e}))},get:function(){return o},set:function(e,t){o=e,i.forEach((function(e){return e(o,t)}))}}),l(r,t)}return c(n,e),n.prototype.getChildContext=function(){var e;return(e={})[d]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((i=n)===(s=r)?0!==i||1/i==1/s:i!=i&&s!=s)?o=0:(o="function"==typeof t?t(n,r):u,0!==(o|=0)&&this.emitter.set(e.value,o))}var i,s},n.prototype.render=function(){return this.props.children},n}(r.Component);p.childContextTypes=((n={})[d]=o.default.object.isRequired,n);var h=function(t){function n(){var e,r;a(this,n);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return e=r=l(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},l(r,e)}return c(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?u:t},n.prototype.componentDidMount=function(){this.context[d]&&this.context[d].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?u:e},n.prototype.componentWillUnmount=function(){this.context[d]&&this.context[d].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[d]?this.context[d].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return h.contextTypes=((s={})[d]=o.default.object,s),{Provider:p,Consumer:h}},e.exports=t.default},22241:(e,t,n)=>{"use strict";t.__esModule=!0;var r=i(n(27762)),o=i(n(18672));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},35921:(e,t,n)=>{"use strict";n.r(t),n.d(t,{classes:()=>o,cssStates:()=>c,keyframes:()=>i,layers:()=>s,namespace:()=>r,st:()=>d,stVars:()=>a,style:()=>u,vars:()=>l});var r="oghCTB2",o={root:"s__88_bjS"},i={},s={},a={},l={},c=n.stc.bind(null,r),u=n.sts.bind(null,r),d=u},32984:(e,t,n)=>{"use strict";n.r(t),n.d(t,{classes:()=>o,cssStates:()=>c,keyframes:()=>i,layers:()=>s,namespace:()=>r,st:()=>d,stVars:()=>a,style:()=>u,vars:()=>l});var r="oM1zPWE",o={root:"s__0ywgqC"},i={},s={},a={},l={},c=n.stc.bind(null,r),u=n.sts.bind(null,r),d=u},76673:(e,t,n)=>{"use strict";n.r(t),n.d(t,{classes:()=>o,cssStates:()=>c,keyframes:()=>i,layers:()=>s,namespace:()=>r,st:()=>d,stVars:()=>a,style:()=>u,vars:()=>l});var r="oSOs_eW",o={root:"sgnV60Y"},i={},s={},a={},l={},c=n.stc.bind(null,r),u=n.sts.bind(null,r),d=u},41929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{classes:()=>o,cssStates:()=>c,keyframes:()=>i,layers:()=>s,namespace:()=>r,st:()=>d,stVars:()=>a,style:()=>u,vars:()=>l});var r="ohx9Ehd",o={root:"sffda6W",popoverAnimation:"sjomMD3","popoverAnimation-enter":"sJwVhdh","popoverAnimation-enter-active":"sxZW_YW","popoverAnimation-exit":"s__2MpSC_","popoverAnimation-exit-active":"sfnytSK",popoverContent:"s_tPRzd",arrow:"s__19YyDJ",popover:"s__2RNcyq",withArrow:"s_Y_Tlb",popoverElement:"ssoKBTq"},i={},s={},a={contentBackgroundColor:"white",contentBorderWidth:"1px",contentBorderStyle:"solid",contentBorderColor:"black",contentBorderRadius:"initial",contentPadding:"initial",contentArrowSize:"5px"},l={},c=n.stc.bind(null,r),u=n.sts.bind(null,r),d=u},5297:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r,o=n(27762);function i(){return i=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},i.apply(this,arguments)}const s=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:12,height:14,viewBox:"0 0 12 14"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M4.125 6.216a1.98 1.98 0 0 1 .077 1.355l4.495 2.64a2.2 2.2 0 0 1 1.16-.329c1.183 0 2.143.922 2.143 2.06C12 13.077 11.04 14 9.856 14c-1.183 0-2.143-.922-2.143-2.059 0-.42.132-.81.356-1.135L3.803 8.3a2.17 2.17 0 0 1-1.661.759C.959 9.059 0 8.137 0 7s.96-2.059 2.142-2.059c.586 0 1.117.227 1.504.592l4.271-2.596a1.983 1.983 0 0 1-.204-.878C7.713.922 8.673 0 9.856 0 11.04 0 12 .922 12 2.059s-.96 2.059-2.144 2.059a2.19 2.19 0 0 1-1.424-.52L4.125 6.215z"})))}},24791:(e,t,n)=>{"use strict";function r(e){return{evid:825,src:71,endpoint:"video",params:e}}function o(e){return{evid:826,src:71,endpoint:"video",params:e}}function i(e){return{evid:827,src:71,endpoint:"video",params:e}}function s(e){return{evid:830,src:71,endpoint:"video",params:e}}n.d(t,{dbA:()=>r,ggS:()=>s,oUE:()=>i,op5:()=>o})},50605:(e,t)=>{"use strict";t.hot=void 0;t.hot=function(e,t){return t}},29600:(e,t,n)=>{e.exports=n(50605)},971:(e,t,n)=>{"use strict";n.d(t,{QC:()=>i,YQ:()=>s});var r=n(27762),o=n.n(r);const i=(0,r.createContext)(null),s=(i.Consumer,({errorMonitor:e,children:t})=>{const n=(0,r.useMemo)((()=>({errorMonitor:e})),[e]);return o().createElement(i.Provider,{value:n.errorMonitor,children:t})})},19093:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(27762),o=n(971);const i=()=>{const e=(0,r.useContext)(o.QC);if(!e)throw new Error("useErrorMonitor() cannot be used without an <ErrorMonitorProvider>");return e}},18753:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(27762),o=n.n(r),i=n(73463),s=n.n(i);var a=n(19093);const l=e=>{const t=e.displayName||e.name||"unknown",n=t=>{const n=(0,a.L)();return o().createElement(e,{...{...t,errorMonitor:n}})};return n.displayName=`withErrorMonitor(${t})`,s()(n,e),n}},13036:(e,t,n)=>{"use strict";n.d(t,{OO:()=>d,zv:()=>h,JP:()=>p,nI:()=>m});var r=n(9249),o=n(87371),i=(n(56666),n(27762)),s=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,a={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},l=function(e){return a[e]};var c,u={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(s,l)}},d=(0,i.createContext)();function p(){return u}var h=function(){function e(){(0,r.Z)(this,e),this.usedNamespaces={}}return(0,o.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function m(){return c}},74995:(e,t,n)=>{"use strict";n.d(t,{$:()=>d});var r=n(89790),o=n(56666),i=n(27762),s=n(13036),a=n(5403);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(e,t){var n=(0,i.useRef)();return(0,i.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,o=(0,i.useContext)(s.OO)||{},l=o.i18n,d=o.defaultNS,p=n||l||(0,s.nI)();if(p&&!p.reportNamespaces&&(p.reportNamespaces=new s.zv),!p){(0,a.O4)("You will need to pass in an i18next instance by using initReactI18next");var h=function(e){return Array.isArray(e)?e[e.length-1]:e},m=[h,{},!1];return m.t=h,m.i18n={},m.ready=!1,m}p.options.react&&void 0!==p.options.react.wait&&(0,a.O4)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var f=c(c(c({},(0,s.JP)()),p.options.react),t),g=f.useSuspense,v=f.keyPrefix,y=e||d||p.options&&p.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],p.reportNamespaces.addUsedNamespaces&&p.reportNamespaces.addUsedNamespaces(y);var b=(p.isInitialized||p.initializedStoreOnce)&&y.every((function(e){return(0,a.F0)(e,p,f)}));function E(){return p.getFixedT(null,"fallback"===f.nsMode?y:y[0],v)}var S=(0,i.useState)(E),C=(0,r.Z)(S,2),w=C[0],P=C[1],I=y.join(),O=u(I),T=(0,i.useRef)(!0);(0,i.useEffect)((function(){var e=f.bindI18n,t=f.bindI18nStore;function n(){T.current&&P(E)}return T.current=!0,b||g||(0,a.DC)(p,y,(function(){T.current&&P(E)})),b&&O&&O!==I&&T.current&&P(E),e&&p&&p.on(e,n),t&&p&&p.store.on(t,n),function(){T.current=!1,e&&p&&e.split(" ").forEach((function(e){return p.off(e,n)})),t&&p&&t.split(" ").forEach((function(e){return p.store.off(e,n)}))}}),[p,I]);var N=(0,i.useRef)(!0);(0,i.useEffect)((function(){T.current&&!N.current&&P(E),N.current=!1}),[p,v]);var A=[w,p,b];if(A.t=w,A.i18n=p,A.ready=b,b)return A;if(!b&&!g)return A;throw new Promise((function(e){(0,a.DC)(p,y,(function(){e()}))}))}},5403:(e,t,n)=>{"use strict";function r(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}n.d(t,{DC:()=>s,F0:()=>a,Gf:()=>l,O4:()=>i});var o={};function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&o[t[0]]||("string"==typeof t[0]&&(o[t[0]]=new Date),r.apply(void 0,t))}function s(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(r,e)||o&&!s(i,e)))}(e,t,n):(i("i18n.languages were undefined or empty",t.languages),!0)}function l(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},90159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(56666),o=n(89790),i=n(31461);var s=n(27762),a=n(74995),l=n(5403),c=["forwardedRef"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var l=r.forwardedRef,u=function(e,t){if(null==e)return{};var n,r,o=(0,i.Z)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r,c),p=(0,a.$)(e,d(d({},u),{},{keyPrefix:t.keyPrefix})),h=(0,o.Z)(p,3),m=h[0],f=h[1],g=h[2],v=d(d({},u),{},{t:m,i18n:f,tReady:g});return t.withRef&&l?v.ref=l:!t.withRef&&l&&(v.forwardedRef=l),(0,s.createElement)(n,v)}r.displayName="withI18nextTranslation(".concat((0,l.Gf)(n),")"),r.WrappedComponent=n;return t.withRef?(0,s.forwardRef)((function(e,t){return(0,s.createElement)(r,Object.assign({},e,{forwardedRef:t}))})):r}}},6856:(e,t,n)=>{"use strict";function r(){return"object"==typeof self?self:n.g}function o(e){const t=function(e){return function(){const e=function(){if("object"==typeof document)return document}();if(e&&e.cookie)return decodeURIComponent(e.cookie).split(";");return[]}().filter((t=>e===t.split("=")[0].trim()))[0]}(e);return t?t.split("=")[1]:""}n.d(t,{I:()=>E});const i="XSRF-TOKEN",s="x-xsrf-token";const a="x-wix-brand";function l(){const e=function(){const e=r();if(e&&e.commonConfig&&"string"==typeof e.commonConfig.brand)return e.commonConfig.brand;return""}();return{[a]:e}}function c(){return function(){const e=r();if(e&&e.consentPolicyManager&&"function"==typeof e.consentPolicyManager._getConsentPolicyHeader)return e.consentPolicyManager._getConsentPolicyHeader();return}()||function(){const e=r();if(e&&e.Wix&&e.Wix.Utils&&"function"==typeof e.Wix.Utils._getConsentPolicyHeader)return e.Wix.Utils._getConsentPolicyHeader();return}()||{}}var u=n(34406);function d(){return void 0!==u&&null!=u.versions?.node&&(!!u.env.TEAMCITY_VERSION||!!u.env.BUILDKITE)}const p=["consentPolicy","consentPolicyHeader"],h={bsi:"BSI"};const m=()=>{const e=function(){const e=r(),t=e?.commonConfig;if(!t)return null;const n={};let o=!1;return Object.keys(t).forEach((e=>{const r=h[e];r?(n[r]=t[e],o=!0):p.indexOf(e)<0&&"function"!=typeof t[e]&&(n[e]=t[e],o=!0)})),o?n:null}(),t=e?JSON.stringify(e):"";return{commonConfig:encodeURIComponent(t)}};var f=n(21166),g=n.n(f);const v="x-wix-linguist";function y({lang:e,locale:t,isPrimaryLanguage:n,signedInstance:r}){if(function({lang:e,locale:t,isPrimaryLanguage:n}){return e&&t&&/^(true|false)$/.test(n?.toString()||"")}({lang:e,locale:t,isPrimaryLanguage:n})){const o=function(e){try{const t=e?.startsWith("wixcode")?e?.split(".")[2]:e?.split(".")[1];if(t)return JSON.parse(g().decode(t)).instanceId}catch(e){}}(r);if(void 0!==o)return{[v]:[e,t,n?.toString(),o].join("|")}}return{}}class b extends Error{constructor(e,t,n){super(`WixHeadersValidationError: expected ${t} to be ${e} but got ${JSON.stringify(n)}`)}}function E(e={}){!function(e){(function(e,t){if("boolean"!=typeof t)throw new b("boolean",e,t)})("opts.csrf",e.csrf),function(e,t){if("string"!=typeof t)throw new b("string",e,t)}("opts.signedInstance",e.signedInstance)}(e={csrf:!0,signedInstance:"",...e});const t=[l(),c(),(r=e.signedInstance,{authorization:r}),(n=e.artifactId,{"X-Wix-Client-Artifact-Id":n??(d()?"":"wix-vod-widget")}),m(),y({signedInstance:e.signedInstance,...e.multilingualOptions})];var n,r;return e.csrf&&t.push(function(){const e=o(i);return{[s]:e}}()),t.filter((e=>Object.values(e).every((e=>e)))).reduce(((e,t)=>({...e,...t})),{})}},78979:function(e){var t;"undefined"!=typeof self&&self,t=()=>(()=>{"use strict";var e={"../editor-platform-sdk-types/dist/esm/common.js":
/*!*******************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/common.js ***!
  \*******************************************************/(e,t,n)=>{var r,o,i,s;n.r(t),n.d(t,{DeviceType:()=>o,LinkTypes:()=>r,TPAComponentType:()=>i,WidgetInstallationType:()=>s}),function(e){e.NoLink="NoLink",e.PageLink="PageLink",e.AnchorLink="AnchorLink",e.ExternalLink="ExternalLink",e.DocumentLink="DocumentLink",e.PhoneLink="PhoneLink",e.EmailLink="EmailLink",e.LoginToWixLink="LoginToWixLink",e.DynamicPageLink="DynamicPageLink",e.EdgeAnchorLink="EdgeAnchorLinks",e.PopupLink="PopupLink",e.FormSubmitButtonLink="FormSubmitButtonLink"}(r||(r={})),function(e){e.Desktop="desktop",e.Mobile="mobile"}(o||(o={})),function(e){e.Page="PAGE",e.Widget="WIDGET"}(i||(i={})),function(e){e.Open="open",e.Closed="closed"}(s||(s={}))},"../editor-platform-sdk-types/dist/esm/definitions/appEditorApi.js":
/*!*************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/appEditorApi.js ***!
  \*************************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/appReflow.js":
/*!**********************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/appReflow.js ***!
  \**********************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/consentPolicy.js":
/*!**************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/consentPolicy.js ***!
  \**************************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/index.js":
/*!******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/index.js ***!
  \******************************************************************/(e,t,n)=>{n.r(t),n.d(t,{EditorSubType:()=>i.EditorSubType,EditorType:()=>i.EditorType,InstallInitiator:()=>i.InstallInitiator,InstallationOriginType:()=>i.InstallationOriginType,MediaType:()=>r.MediaType,NotificationPresetTypes:()=>o.NotificationPresetTypes,NotificationType:()=>o.NotificationType,PagesPanelTabType:()=>s.PagesPanelTabType,PanelResolveType:()=>s.PanelResolveType,PanelType:()=>s.PanelType,PremiumIntent:()=>a.PremiumIntent,customizeActions:()=>s.customizeActions}),n(/*! ./appEditorApi */"../editor-platform-sdk-types/dist/esm/definitions/appEditorApi.js"),n(/*! ./consentPolicy */"../editor-platform-sdk-types/dist/esm/definitions/consentPolicy.js");var r=n(/*! ./media */"../editor-platform-sdk-types/dist/esm/definitions/media.js"),o=(n(/*! ./monitoring */"../editor-platform-sdk-types/dist/esm/definitions/monitoring.js"),n(/*! ./notifications */"../editor-platform-sdk-types/dist/esm/definitions/notifications.js")),i=n(/*! ./origin */"../editor-platform-sdk-types/dist/esm/definitions/origin.js"),s=(n(/*! ./pageDefinition */"../editor-platform-sdk-types/dist/esm/definitions/pageDefinition.js"),n(/*! ./panels */"../editor-platform-sdk-types/dist/esm/definitions/panels.js")),a=n(/*! ./premiumIntent */"../editor-platform-sdk-types/dist/esm/definitions/premiumIntent.js");n(/*! ./responsiveLayout */"../editor-platform-sdk-types/dist/esm/definitions/responsiveLayout.js"),n(/*! ./info */"../editor-platform-sdk-types/dist/esm/definitions/info.js"),n(/*! ./appReflow */"../editor-platform-sdk-types/dist/esm/definitions/appReflow.js")},"../editor-platform-sdk-types/dist/esm/definitions/info.js":
/*!*****************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/info.js ***!
  \*****************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/media.js":
/*!******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/media.js ***!
  \******************************************************************/(e,t,n)=>{var r;n.r(t),n.d(t,{MediaType:()=>r}),function(e){e.Image="IMAGE",e.Video="VIDEO",e.Document="DOCUMENT"}(r||(r={}))},"../editor-platform-sdk-types/dist/esm/definitions/monitoring.js":
/*!***********************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/monitoring.js ***!
  \***********************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/notifications.js":
/*!**************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/notifications.js ***!
  \**************************************************************************/(e,t,n)=>{var r,o;n.r(t),n.d(t,{NotificationPresetTypes:()=>o,NotificationType:()=>r}),function(e){e.Success="success",e.Error="error",e.Warning="warning",e.Info="info"}(r||(r={})),function(e){e.REPEATER_EDITOR_MAX_ITEMS="repeaterMaxItemsEditorLimitation"}(o||(o={}))},"../editor-platform-sdk-types/dist/esm/definitions/origin.js":
/*!*******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/origin.js ***!
  \*******************************************************************/(e,t,n)=>{var r,o,i,s;n.r(t),n.d(t,{EditorSubType:()=>o,EditorType:()=>r,InstallInitiator:()=>i,InstallationOriginType:()=>s}),function(e){e.Classic="CLASSIC",e.Responsive="RESPONSIVE",e.ADI="ADI",e.ADI_MA="ADI_MA",e.ADI_TEMPLATE="ADI_TEMPLATE",e.Blocks="blocks"}(r||(r={})),function(e){e.EditorX="EDITOR_X",e.Studio="STUDIO"}(o||(o={})),function(e){e.Editor="EDITOR",e.App="APP",e.Dependency_Service="Dependency_Service"}(i||(i={})),function(e){e.AppMarket="APP_MARKET",e.AddPanel="ADD_PANEL",e.AppPanel="APP_PANEL",e.PageSettingsPanel="PAGE_SETTINGS_PANEL",e.PresetService="PRESET_SERVICE",e.SITE_CREATION="SITE_CREATION",e.SITE_GENERATION="SITE_GENERATION",e.SILENT_INSTALL_SITE_CREATION="SILENT_INSTALL_SITE_CREATION",e.SILENT_INSTALL="SILENT_INSTALL",e.INTENT_INSTALL="INTENT_INSTALL",e.ADD_SECTION_PANEL="ADD_SECTION_PANEL",e.ADD_PAGE_PANEL="ADD_PAGE_PANEL",e.COPY_PASTE="COPY_PASTE",e.INTRO_FUNNEL="INTRO_FUNNEL",e.PAGES_PANEL="PAGES_PANEL",e.PAGE_SETTINGS_PANEL="PAGE_SETTINGS_PANEL",e.IMPORT_PANEL="IMPORT_PANEL",e.MY_BUSINESS="MY_BUSINESS",e.IFRAME_JS_SDK="IFRAME_JS_SDK",e.UPDATE_PANEL="UPDATE_PANEL"}(s||(s={}))},"../editor-platform-sdk-types/dist/esm/definitions/pageDefinition.js":
/*!***************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/pageDefinition.js ***!
  \***************************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/panels.js":
/*!*******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/panels.js ***!
  \*******************************************************************/(e,t,n)=>{var r,o,i,s;n.r(t),n.d(t,{PagesPanelTabType:()=>i,PanelResolveType:()=>o,PanelType:()=>r,customizeActions:()=>s}),function(e){e.Settings="settings",e.Layout="layout",e.Design="design",e.Upgrade="upgrade",e.Add="add"}(r||(r={})),function(e){e.MAIN_ACTION="mainActionClicked",e.SECONDARY_ACTION="secActionClicked",e.CLOSE_ACTION="closeActionClicked"}(o||(o={})),function(e){e.PageInfo="page_info",e.Layout="layout",e.Permissions="permissions",e.SEO="seo"}(i||(i={})),function(e){e.Custom="Custom"}(s||(s={}))},"../editor-platform-sdk-types/dist/esm/definitions/premiumIntent.js":
/*!**************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/premiumIntent.js ***!
  \**************************************************************************/(e,t,n)=>{var r;n.r(t),n.d(t,{PremiumIntent:()=>r}),function(e){e.Neutral="NEUTRAL",e.Free="FREE",e.Paid="PAID"}(r||(r={}))},"../editor-platform-sdk-types/dist/esm/definitions/responsiveLayout.js":
/*!*****************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/responsiveLayout.js ***!
  \*****************************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/editor-app.js":
/*!***********************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/editor-app.js ***!
  \***********************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/events/EventType.js":
/*!*****************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/events/EventType.js ***!
  \*****************************************************************/(e,t,n)=>{var r;n.r(t),n.d(t,{EventType:()=>r,customEventTypes:()=>o,generalEventTypes:()=>i}),function(e){e.appMenuReorder="appMenuReorder",e.componentDeleted="componentDeleted",e.componentGfppClicked="componentGfppClicked",e.appActionClicked="appActionClicked",e.connectedComponentPasted="connectedComponentPasted",e.connectedComponentDuplicated="connectedComponentDuplicated",e.concurrentPanelEdit="concurrentPanelEdit",e.widgetPasted="widgetPasted",e.widgetDuplicated="widgetDuplicated",e.widgetAdded="widgetAdded",e.controllerAdded="controllerAdded",e.controllerSettingsButtonClicked="controllerSettingsButtonClicked",e.controllerGfppClicked="controllerGfppClicked",e.stateChanged="stateChanged",e.stateAdded="stateAdded",e.stateDuplicated="stateDuplicated",e.pageDeleted="pageDeleted",e.siteWasPublished="siteWasPublished",e.siteWasFirstSaved="siteWasFirstSaved",e.siteWasSaved="siteWasSaved",e.startConfiguration="startConfiguration",e.welcomeSectionMainActionClicked="welcomeSectionMainActionClicked",e.widgetGfppClicked="widgetGfppClicked",e.appUpgradeCompleted="appUpgradeCompleted",e.instanceChanged="instanceChanged",e.componentSelectionChanged="componentSelectionChanged",e.globalDesignPresetChanged="globalDesignPresetChanged",e.developerModeChanged="developerModeChanged",e.developerModeStatusChanged="developerModeStatusChanged",e.focusedPageChanged="focusedPageChanged",e.componentAddedToStage="componentAddedToStage",e.connectedComponentAddedToStage="connectedComponentAddedToStage",e.presetChanged="presetChanged",e.anyComponentAddedToStage="anyComponentAddedToStage",e.appUpdateCompleted="appUpdateCompleted",e.appRefreshCompleted="appRefreshCompleted",e.componentAnimationChanged="componentAnimationChanged",e.componentDataChanged="componentDataChanged",e.componentDesignChanged="componentDesignChanged",e.componentStyleChanged="componentStyleChanged",e.switchedFromPreview="switchedFromPreview",e.componentArrangementChanged="componentArrangementChanged",e.componentDragEnded="componentDragEnded",e.componentResizeStarted="componentResizeStarted",e.componentRotateEnded="componentRotateEnded",e.sitePublishedDialogClosed="sitePublishedDialogClosed",e.pageBackgroundChanged="pageBackgroundChanged",e.mobileTextScaleChanged="mobileTextScaleChanged",e.componentCropSaved="componentCropSaved",e.toggleBackToTopButtonOn="toggleBackToTopButtonOn",e.componentBehaviorChanged="componentBehaviorChanged",e.componentPropsChanged="componentPropsChanged",e.switchedToMobileView="switchedToMobileView",e.switchedToDesktopView="switchedToDesktopView",e.textEditBoxClosed="textEditBoxClosed",e.hideMobileElement="hideMobileElement",e.showMobileElement="showMobileElement",e.pageRenamed="pageRenamed",e.addDynamicPageClicked="addDynamicPageClicked",e.consentPolicyChanged="consentPolicyChanged",e.pageDuplicated="pageDuplicated",e.pageAdded="pageAdded",e.undo="undo",e.redo="redo",e.addElementsCompClicked="addElementsCompClicked",e.addElementsAllCompsClicked="addElementsAllCompsClicked",e.addElementsResetClicked="addElementsResetClicked",e.appVisitedInDashboard="appVisitedInDashboard",e.componentAddedToApp="componentAddedToApp",e.documentOperationError="documentOperationError",e.solveAddWidgetLimitation="solveAddWidgetLimitation",e.componentConnected="componentConnected",e.componentDisconnected="componentDisconnected",e.panelHeaderButtonClicked="panelHeaderButtonClicked",e.themeChanged="themeChanged",e.viewStateChanged="viewStateChanged",e.revokeApp="revokeApp",e.grantApp="grantApp",e.pageVariantSelected="pageVariantSelected",e.resetWidgetOverrides="resetWidgetOverrides",e.widgetPluginAdded="widgetPluginAdded",e.widgetPluginRemoved="widgetPluginRemoved",e.appInstalled="appInstalled",e.removeAppCompleted="removeAppCompleted",e.siteLanguageChanged="siteLanguageChanged"}(r||(r={}));const o=[r.componentSelectionChanged,r.focusedPageChanged,r.anyComponentAddedToStage,r.appUpdateCompleted,r.componentAnimationChanged,r.componentDataChanged,r.componentDesignChanged,r.componentStyleChanged,r.switchedFromPreview,r.componentArrangementChanged,r.componentDragEnded,r.componentResizeStarted,r.componentRotateEnded,r.sitePublishedDialogClosed,r.pageBackgroundChanged,r.mobileTextScaleChanged,r.componentCropSaved,r.toggleBackToTopButtonOn,r.componentBehaviorChanged,r.appRefreshCompleted,r.componentPropsChanged,r.switchedToMobileView,r.switchedToDesktopView,r.textEditBoxClosed,r.hideMobileElement,r.showMobileElement,r.undo,r.redo,r.appVisitedInDashboard,r.developerModeStatusChanged,r.componentConnected,r.componentDisconnected,r.solveAddWidgetLimitation,r.pageDuplicated,r.pageAdded,r.themeChanged,r.viewStateChanged,r.pageVariantSelected,r.siteLanguageChanged],i=[r.appMenuReorder,r.componentDeleted,r.componentGfppClicked,r.appActionClicked,r.connectedComponentPasted,r.connectedComponentDuplicated,r.concurrentPanelEdit,r.widgetPasted,r.widgetDuplicated,r.widgetAdded,r.resetWidgetOverrides,r.widgetPluginAdded,r.widgetPluginRemoved,r.controllerAdded,r.controllerSettingsButtonClicked,r.controllerGfppClicked,r.presetChanged,r.stateChanged,r.stateAdded,r.stateDuplicated,r.pageDeleted,r.siteWasPublished,r.siteWasFirstSaved,r.siteWasSaved,r.startConfiguration,r.welcomeSectionMainActionClicked,r.widgetGfppClicked,r.appUpgradeCompleted,r.instanceChanged,r.globalDesignPresetChanged,r.developerModeChanged,r.connectedComponentAddedToStage,r.pageRenamed,r.addDynamicPageClicked,r.consentPolicyChanged,r.addElementsCompClicked,r.addElementsAllCompsClicked,r.addElementsResetClicked,r.componentAddedToApp,r.documentOperationError,r.panelHeaderButtonClicked,r.grantApp,r.revokeApp,r.appInstalled,r.removeAppCompleted]},"../editor-platform-sdk-types/dist/esm/events/EventsInterfaceMap.js":
/*!**************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/events/EventsInterfaceMap.js ***!
  \**************************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/events/eventInterfaces.js":
/*!***********************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/events/eventInterfaces.js ***!
  \***********************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/events/index.js":
/*!*************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/events/index.js ***!
  \*************************************************************/(e,t,n)=>{n.r(t),n.d(t,{EventType:()=>r.EventType,customEventTypes:()=>r.customEventTypes,generalEventTypes:()=>r.generalEventTypes}),n(/*! ./eventInterfaces */"../editor-platform-sdk-types/dist/esm/events/eventInterfaces.js");var r=n(/*! ./EventType */"../editor-platform-sdk-types/dist/esm/events/EventType.js");n(/*! ./EventsInterfaceMap */"../editor-platform-sdk-types/dist/esm/events/EventsInterfaceMap.js")},"../editor-platform-sdk-types/dist/esm/index.js":
/*!******************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/index.js ***!
  \******************************************************/(e,t,n)=>{n.r(t),n.d(t,{DeviceType:()=>o.DeviceType,EditorSubType:()=>i.EditorSubType,EditorType:()=>i.EditorType,EventType:()=>s.EventType,InstallInitiator:()=>i.InstallInitiator,InstallationOriginType:()=>i.InstallationOriginType,LinkTypes:()=>o.LinkTypes,MediaType:()=>i.MediaType,MemberKind:()=>r.MemberKind,NotificationPresetTypes:()=>i.NotificationPresetTypes,NotificationType:()=>i.NotificationType,PagesPanelTabType:()=>i.PagesPanelTabType,PanelResolveType:()=>i.PanelResolveType,PanelType:()=>i.PanelType,PremiumIntent:()=>i.PremiumIntent,TPAComponentType:()=>o.TPAComponentType,WidgetInstallationType:()=>o.WidgetInstallationType,customEventTypes:()=>s.customEventTypes,customizeActions:()=>i.customizeActions,generalEventTypes:()=>s.generalEventTypes}),n(/*! ./editor-app */"../editor-platform-sdk-types/dist/esm/editor-app.js");var r=n(/*! ./manifest */"../editor-platform-sdk-types/dist/esm/manifest.js"),o=n(/*! ./common */"../editor-platform-sdk-types/dist/esm/common.js"),i=n(/*! ./definitions */"../editor-platform-sdk-types/dist/esm/definitions/index.js"),s=n(/*! ./events */"../editor-platform-sdk-types/dist/esm/events/index.js");n(/*! ./tpaStyleParams */"../editor-platform-sdk-types/dist/esm/tpaStyleParams.js"),n(/*! ./sdk */"../editor-platform-sdk-types/dist/esm/sdk/index.js")},"../editor-platform-sdk-types/dist/esm/manifest.js":
/*!*********************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/manifest.js ***!
  \*********************************************************/(e,t,n)=>{var r;n.r(t),n.d(t,{MemberKind:()=>r}),function(e){e.MEMBER="member",e.FUNCTION="function"}(r||(r={}))},"../editor-platform-sdk-types/dist/esm/sdk/app-settings.js":
/*!*****************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/app-settings.js ***!
  \*****************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/document/application.js":
/*!*************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/document/application.js ***!
  \*************************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/document/index.js":
/*!*******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/document/index.js ***!
  \*******************************************************************/(e,t,n)=>{n.r(t),n(/*! ./application */"../editor-platform-sdk-types/dist/esm/sdk/document/application.js")},"../editor-platform-sdk-types/dist/esm/sdk/editor/index.js":
/*!*****************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/editor/index.js ***!
  \*****************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/editorSDK.js":
/*!**************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/editorSDK.js ***!
  \**************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/event-listeners.js":
/*!********************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/event-listeners.js ***!
  \********************************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/extra.js":
/*!**********************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/extra.js ***!
  \**********************************************************/(e,t,n)=>{n.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/index.js":
/*!**********************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/index.js ***!
  \**********************************************************/(e,t,n)=>{n.r(t),n(/*! ./editorSDK */"../editor-platform-sdk-types/dist/esm/sdk/editorSDK.js"),n(/*! ./extra */"../editor-platform-sdk-types/dist/esm/sdk/extra.js"),n(/*! ./event-listeners */"../editor-platform-sdk-types/dist/esm/sdk/event-listeners.js"),n(/*! ./editor */"../editor-platform-sdk-types/dist/esm/sdk/editor/index.js"),n(/*! ./app-settings */"../editor-platform-sdk-types/dist/esm/sdk/app-settings.js"),n(/*! ./document */"../editor-platform-sdk-types/dist/esm/sdk/document/index.js")},"../editor-platform-sdk-types/dist/esm/tpaStyleParams.js":
/*!***************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/tpaStyleParams.js ***!
  \***************************************************************/(e,t,n)=>{n.r(t)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};
/*!******************!*\
  !*** ./index.ts ***!
  \******************/n.r(r),n.d(r,{DeviceType:()=>o.DeviceType,EditorSubType:()=>o.EditorSubType,EditorType:()=>o.EditorType,EventType:()=>o.EventType,InstallInitiator:()=>o.InstallInitiator,InstallationOriginType:()=>o.InstallationOriginType,LinkTypes:()=>o.LinkTypes,MediaType:()=>o.MediaType,MemberKind:()=>o.MemberKind,NotificationPresetTypes:()=>o.NotificationPresetTypes,NotificationType:()=>o.NotificationType,PagesPanelTabType:()=>o.PagesPanelTabType,PanelResolveType:()=>o.PanelResolveType,PanelType:()=>o.PanelType,PremiumIntent:()=>o.PremiumIntent,TPAComponentType:()=>o.TPAComponentType,WidgetInstallationType:()=>o.WidgetInstallationType,customEventTypes:()=>o.customEventTypes,customizeActions:()=>o.customizeActions,generalEventTypes:()=>o.generalEventTypes});var o=n(/*! @wix/editor-platform-sdk-types */"../editor-platform-sdk-types/dist/esm/index.js");return r})(),e.exports=t()},77388:(e,t,n)=>{"use strict";n.d(t,{$:()=>i,N:()=>o});var r=n(27762),o=n.n(r)().createContext({ready:!1,set:null,get:null,getDefaultValue:null,reset:null,resetAll:null,changeSiteColors:null,getStylesForAllBreakpoints:null}),i=o.Consumer},52834:(e,t,n)=>{"use strict";var r;n.d(t,{g:()=>r}),function(e){e.Number="Number",e.Boolean="Boolean",e.Font="Font",e.Color="Color"}(r||(r={}))},27255:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(22970);function o(e){return Object.keys(e).reduce((function(t,n){return t[n]=(0,r.__assign)((0,r.__assign)({},e[n]),{key:e[n].key||n}),t}),{})}},44910:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(27762),o=n.n(r),i=n(77388),s=function(){return o().useContext(i.N)}},17583:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(59880);var o=function(e,t){return function(n){var o=n.colors;return function(e){var t=e.colors,n=e.reference,o=e.opacity,i=void 0===o?1:o,s=t.find((function(e){return e.reference===n}))||null;return{opacity:i,value:(0,r.Z)(null==s?void 0:s.value,i).rgb(),name:null==s?void 0:s.name}}({reference:e,opacity:t,colors:o})}}},5570:(e,t,n)=>{"use strict";n.d(t,{jN:()=>i,s9:()=>o});var r=n(22970);function o(e,t){if(void 0===t&&(t={}),!t[e])return null;var n=t[e];return{size:parseInt(n.size,10),family:n.fontFamily,preset:e,style:{bold:"bold"===n.weight,italic:"italic"===n.style,underline:!1},fontStyleParam:!1}}var i=function(e,t){return void 0===t&&(t={}),function(n){var i=n.textPresets;return(0,r.__assign)((0,r.__assign)({},function(e){return o(e.name,e.textPresets)}({name:e,textPresets:i})),t)}}},59880:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(22970),o=n(67804),i=n.n(o);const s=function(e,t){var n,o,s;if(e){var a=i().get(e);if(null===a)throw new Error("Unable to parse color from string: "+e);o=a.value.slice(0,3),s=null!==(n=a.value[3])&&void 0!==n?n:1}else o=[0,0,0],s=1;return{rgb:function(){var e;return(e=i().to).rgb.apply(e,(0,r.__spreadArray)((0,r.__spreadArray)([],o,!1),[null!=t?t:s],!1))},hex:function(){return e=o,t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase(),"000000".substring(t.length)+t;var e,t},opacity:function(){return null!=t?t:s}}}},90819:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(27762),o=n.n(r)().createContext(null)},15440:(e,t,n)=>{"use strict";n.d(t,{X:()=>c});var r=n(22970),o=n(27762),i=n.n(o),s=n(41891),a=n(90819),l=function(e){return e.displayName||e.name||e.constructor&&e.constructor.name||"Anonymous"};function c(e,t){var n;void 0===t&&(t={});var c="withExperiments(".concat(l(e),")"),u=t.petri_ovr;if(t.readOnly){var d=function(t){var n=(0,o.useContext)(a.k),l=n.experimentsInstance,c=n.ready,d=(0,o.useMemo)((function(){if(u&&c){var e=l.all();return u.split(";").forEach((function(t){var n=t.split(":"),r=n[0],o=n[1];r&&o&&(e[r]=o)})),new s.Q({experiments:e})}return l}),[l,c]);if(!c)return null;var p=(0,r.__assign)((0,r.__assign)({},t),{experiments:d});return i().createElement(e,(0,r.__assign)({},p))};return d.displayName=c,d}return n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(n,t),n.prototype.render=function(){var t=this.context,n=t.experimentsInstance,o=t.ready;if(u&&u.split(";").forEach((function(e){var t,r=e.split(":"),o=r[0],i=r[1];o&&i&&n.add(((t={})[o]=i,t))})),o){var s={experiments:n},a=(0,r.__assign)((0,r.__assign)({},this.props),s);return i().createElement(e,(0,r.__assign)({},a))}return null},n}(i().Component),n.displayName=c,n.contextType=a.k,n}},41891:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var r=function(){function e(e){var t;this.experiments=null!==(t=e.experiments)&&void 0!==t?t:{}}return e.prototype.get=function(e){return this.experiments[e]},e.prototype.enabled=function(e){return"true"===this.get(e)},e.prototype.pending=function(){return!1},e.prototype.ready=function(){return Promise.resolve()},e.prototype.all=function(){return this.experiments},e}()},77549:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(27762),o=(0,r.createContext)({})},17887:(e,t,n)=>{"use strict";n.d(t,{YA:()=>i});var r=n(27762),o=n(77549),i=function(){return(0,r.useContext)(o.h)}},64421:(e,t,n)=>{"use strict";n.d(t,{_N:()=>i,fl:()=>s,vX:()=>o});var r=n(27762),o=(0,r.createContext)(null),i=o.Provider,s=o.Consumer},26957:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var r=n(27762),o=n(64421),i=function(){var e=(0,r.useContext)(o.vX);if(!e)throw new Error("`useEnvironment()` can't be used within a `Settings` component. Please use `useSettingsEnvironment()`");return e}},81718:(e,t,n)=>{"use strict";n.d(t,{me:()=>i,sn:()=>o});var r=n(27762),o=(0,r.createContext)(null),i=(o.Consumer,o.Provider)},27113:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(27762),o=n.n(r),i=n(81718),s=function(){return s=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},s.apply(this,arguments)},a=function(e){return function(t){var n=(0,r.useContext)(i.sn);return o().createElement(e,s({},s(s({},t),{fedops:n})))}}},25977:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(27762),o=(0,r.createContext)({Wix:null});(0,r.createContext)({editorSDK:null,editorSDKConfig:null});function i(){return(0,r.useContext)(o)}},33636:(e,t,n)=>{e.exports=n(82327)},53634:(e,t,n)=>{e.exports=n(17607).isEqualWith},93809:(e,t,n)=>{e.exports=n(17607).cloneDeep},98121:(e,t,n)=>{e.exports=n(17607).isElement},94001:(e,t,n)=>{e.exports=n(17607).memoize},34067:(e,t,n)=>{e.exports=n(17607).uniqueId},59672:(e,t,n)=>{"use strict";var r=l(n(92175)),o=l(n(47694)),i=l(n(5360)),s=l(n(81093)),a=l(n(73825));function l(e){return e&&e.__esModule?e:{default:e}}t.Z=function(e,t){if(!e||"[object Object]"!==e.toString())return t;if(!t)return{};var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&function(){var r=e[l],c=/specs\.abTranslate\.(.*?)\.(.*)$/.exec(l);if(c){var u=c[2].split("abSpec-"),d=(0,a.default)(u,2),p=d[0],h=d[1];(h?[].concat((0,s.default)(new i.default((0,o.default)(t).filter((function(e){return e.includes(h)})).map((function(e){return e.split("|abTranslate")[0]}))))):[p]).forEach((function(e){if(n[e]=e,"0"!==r){var t=h?"|"+h:"";n[e]=e+"|abTranslate_"+r+t}}))}}();var c=(0,r.default)({},t);for(var u in n){var d=Object.prototype.hasOwnProperty.call(n,u),p=t[n[u]];d&&p&&(c[u]=t[n[u]])}return c}},8518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(98044)),o=i(n(32891));function i(e){return e&&e.__esModule?e:{default:e}}var s,a,l,c,u,d,p=void 0,h=void 0;"undefined"!=typeof document&&document.documentElement.createShadowRoot?(s=void 0,a=void 0,l=function(){c(),(window.clearImmediate||window.clearTimeout)(s),s=(window.setImmediate||window.setTimeout)((function(){u()}))},c=function(){a&&a.removeEventListener("blur",l,!0),a=null},u=function(){var e=(0,r.default)();if(1!==e.length){var t;(t=e[0]).addEventListener("blur",l,!0),a=t;var n=new CustomEvent("shadow-focus",{bubbles:!1,cancelable:!1,detail:{elements:e,active:e[0],hosts:e.slice(1)}});document.dispatchEvent(n)}else c()},d=function(){(window.clearImmediate||window.clearTimeout)(s),u()},p=function(){document.addEventListener("focus",d,!0)},h=function(){(window.clearImmediate||window.clearTimeout)(s),a&&a.removeEventListener("blur",l,!0),document.removeEventListener("focus",d,!0)}):p=h=function(){},t.default=(0,o.default)({engage:p,disengage:h}),e.exports=t.default},98044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return null===document.activeElement&&document.body.focus(),(0,r.default)(document.activeElement)?(e=(0,o.default)({context:document.activeElement}),[document.activeElement].concat(e)):function(){var e=[document.activeElement];for(;e[0]&&e[0].shadowRoot;)e.unshift(e[0].shadowRoot.activeElement);return e}();var e};var r=i(n(56771)),o=i(n(6499));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).context,t=[],n=(0,o.default)({label:"get/shadow-host-parents",context:e});n&&(n=(0,r.default)({context:n}));)t.push(n);return t};var r=i(n(88565)),o=i(n(42502));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},88565:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).context,t=(0,i.default)({label:"get/shadow-host",context:e}),n=null;t;)n=t,t=t.parentNode;return n.nodeType===n.DOCUMENT_FRAGMENT_NODE&&n.host?n.host:null};var r,o=n(42502),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},56771:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,r.default)({label:"is/shadowed",resolveDocument:!0,context:e});return Boolean((0,o.default)({context:t}))};var r=i(n(42502)),o=i(n(88565));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},63525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(32891),i=(r=o)&&r.__esModule?r:{default:r};var s=0,a=0,l=["touchstart","pointerdown","MSPointerDown","mousedown"],c=["touchend","touchcancel","pointerup","MSPointerUp","pointercancel","MSPointerCancel","mouseup"];function u(){s=0,a=0}function d(e){!1!==e.isPrimary&&s++}function p(e){!1!==e.isPrimary&&(e.touches?s=e.touches.length:(window.setImmediate||window.setTimeout)((function(){s=Math.max(s-1,0)})))}function h(e){switch(e.keyCode||e.which){case 16:case 17:case 18:case 91:case 93:return}a++}function m(e){switch(e.keyCode||e.which){case 16:case 17:case 18:case 91:case 93:return}(window.setImmediate||window.setTimeout)((function(){a=Math.max(a-1,0)}))}function f(){return{pointer:Boolean(s),key:Boolean(a)}}t.default=(0,i.default)({engage:function(){return window.addEventListener("blur",u,!1),document.documentElement.addEventListener("keydown",h,!0),document.documentElement.addEventListener("keyup",m,!0),l.forEach((function(e){document.documentElement.addEventListener(e,d,!0)})),c.forEach((function(e){document.documentElement.addEventListener(e,p,!0)})),{get:f}},disengage:function(){s=a=0,window.removeEventListener("blur",u,!1),document.documentElement.removeEventListener("keydown",h,!0),document.documentElement.removeEventListener("keyup",m,!0),l.forEach((function(e){document.documentElement.removeEventListener(e,d,!0)})),c.forEach((function(e){document.documentElement.removeEventListener(e,p,!0)}))}}),e.exports=t.default},42502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.context,n=e.label,r=void 0===n?"context-to-element":n,o=e.resolveDocument,s=e.defaultToDocument,a=(0,i.default)(t)[0];if(o&&a&&a.nodeType===Node.DOCUMENT_NODE&&(a=a.documentElement),!a&&s)return document.documentElement;if(!a)throw new TypeError(r+" requires valid options.context");if(a.nodeType!==Node.ELEMENT_NODE&&a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)throw new TypeError(r+" requires options.context to be an Element");return a};var r,o=n(56621),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},32891:(e,t)=>{"use strict";function n(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).force?this.instances=0:this.instances--,this.instances||(this.disengage(),this._result=null)}function r(){return this.instances?(this.instances++,this._result):(this.instances++,this._result=this.engage()||{},this._result.disengage=n.bind(this),this._result)}function o(){}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={engage:e.engage||o,disengage:e.disengage||o,instances:0,_result:null};return r.bind(t)},e.exports=t.default},56621:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)return[];if(Array.isArray(e))return e;if(void 0!==e.nodeType)return[e];if("string"==typeof e&&(e=document.querySelectorAll(e)),void 0!==e.length)return[].slice.call(e,0);throw new TypeError("unexpected input "+String(e))},e.exports=t.default},69914:(e,t)=>{"use strict";function n(e,t,n){var r=function(e){var t=e.getAttribute&&e.getAttribute("class")||"";return""===t?[]:t.split(" ")}(e),o=r.indexOf(t),i=-1!==o,s=void 0!==n?n:!i;s!==i&&(s||r.splice(o,1),s&&r.push(t),e.setAttribute("class",r.join(" ")))}t.IV=function(e,t){return n(e,t,!1)},t.cn=function(e,t){return n(e,t,!0)}},89644:(e,t,n)=>{e.exports=n(25644)},70353:(e,t,n)=>{"use strict";var r=n(93044),o=n(86955),i=n(92233),s=n(68030),a=n(97948),l=n(51875),c=n(60842),u=n(98560),d=n(21218),p=n(68047),h=n(10738);e.exports=function(e){return new Promise((function(t,n){var m,f=e.data,g=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}r.isFormData(f)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var E=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(E+":"+S)}var C=a(e.baseURL,e.url);function w(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),b=null}}if(b.open(e.method.toUpperCase(),s(C,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(w)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var P=(e.withCredentials||c(C))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;P&&(g[e.xsrfHeaderName]=P)}"setRequestHeader"in b&&r.forEach(g,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(m=function(e){b&&(n(!e||e&&e.type?new p:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m))),f||(f=null);var I=h(C);I&&-1===["http","https","file"].indexOf(I)?n(new d("Unsupported protocol "+I+":",d.ERR_BAD_REQUEST,e)):b.send(f)}))}},25644:(e,t,n)=>{"use strict";var r=n(93044),o=n(73644),i=n(62215),s=n(92937);var a=function e(t){var n=new i(t),a=o(i.prototype.request,n);return r.extend(a,i.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(10663));a.Axios=i,a.CanceledError=n(68047),a.CancelToken=n(34089),a.isCancel=n(98041),a.VERSION=n(29241).version,a.toFormData=n(49027),a.AxiosError=n(21218),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(70783),a.isAxiosError=n(65587),e.exports=a,e.exports.default=a},34089:(e,t,n)=>{"use strict";var r=n(68047);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},68047:(e,t,n)=>{"use strict";var r=n(21218);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(93044).inherits(o,r,{__CANCEL__:!0}),e.exports=o},98041:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},62215:(e,t,n)=>{"use strict";var r=n(93044),o=n(68030),i=n(49225),s=n(6895),a=n(92937),l=n(97948),c=n(17525),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new i,response:new i}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var d=[s,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(l),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var p=t;r.length;){var h=r.shift(),m=r.shift();try{p=h(p)}catch(e){m(e);break}}try{i=s(p)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},d.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(a(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},21218:(e,t,n)=>{"use strict";var r=n(93044);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(o,s),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,s,a,l){var c=Object.create(i);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,n,s,a),c.name=e.name,l&&Object.assign(c,l),c},e.exports=o},49225:(e,t,n)=>{"use strict";var r=n(93044);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97948:(e,t,n)=>{"use strict";var r=n(99192),o=n(48762);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},6895:(e,t,n)=>{"use strict";var r=n(93044),o=n(38556),i=n(98041),s=n(10663),a=n(68047);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},92937:(e,t,n)=>{"use strict";var r=n(93044);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function s(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},86955:(e,t,n)=>{"use strict";var r=n(21218);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},38556:(e,t,n)=>{"use strict";var r=n(93044),o=n(10663);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},10663:(e,t,n)=>{"use strict";var r=n(34406),o=n(93044),i=n(98868),s=n(21218),a=n(98560),l=n(49027),c={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d,p={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(d=n(70353)),d),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=o.isObject(e),s=t&&t["Content-Type"];if((n=o.isFileList(e))||r&&"multipart/form-data"===s){var a=this.env&&this.env.FormData;return l(n?{"files[]":e}:e,a&&new a)}return r||"application/json"===s?(u(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||p.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw s.from(e,s.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(84684)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){p.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){p.headers[e]=o.merge(c)})),e.exports=p},98560:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:e=>{e.exports={version:"0.27.2"}},73644:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},68030:(e,t,n)=>{"use strict";var r=n(93044);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},48762:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},92233:(e,t,n)=>{"use strict";var r=n(93044);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},99192:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},65587:(e,t,n)=>{"use strict";var r=n(93044);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},60842:(e,t,n)=>{"use strict";var r=n(93044);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},98868:(e,t,n)=>{"use strict";var r=n(93044);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},84684:e=>{e.exports=null},51875:(e,t,n)=>{"use strict";var r=n(93044),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},10738:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:(e,t,n)=>{"use strict";var r=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,s){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+s);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var a,l=s?s+"."+i:i;if(n&&!s&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(a=r.toArray(n)))return void a.forEach((function(e){!r.isUndefined(e)&&t.append(l,o(e))}));e(n,l)}})),n.pop()}else t.append(s,o(i))}(e),t}},17525:(e,t,n)=>{"use strict";var r=n(29241).version,o=n(21218),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!s[r]&&(s[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var s=r[i],a=t[s];if(a){var l=e[s],c=void 0===l||a(l,s,e);if(!0!==c)throw new o("option "+s+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:i}},93044:(e,t,n)=>{"use strict";var r,o=n(73644),i=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=a("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=a("Date"),m=a("File"),f=a("Blob"),g=a("FileList");function v(e){return"[object Function]"===i.call(e)}var y=a("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var E,S=(E="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return E&&e instanceof E});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:p,isUndefined:c,isDate:h,isFile:m,isBlob:f,isFunction:v,isStream:function(e){return d(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){p(t[r])&&p(n)?t[r]=e(t[r],n):p(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,s={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=r[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:S,isFileList:g}},85505:(e,t,n)=>{"use strict";n.d(t,{A:()=>f,m:()=>m});var r=n(55723),o=n(71061);class i extends o.E{create(e,t,n){return this.put(`/catalog/widgets/${e}`,t,{...n})}remove(e,t){return this.delete(`/catalog/widgets/${e}`,t)}updateSettings(e,t,n){return this.put(`/catalog/widgets/${e}/settings`,t,n)}}var s=n(11501);class a{constructor(e){this.httpClient=e,this.updateWidgetSettings=(e,t)=>this.privateWidgetsService.updateSettings(e,(0,r.KI)(t)).then((e=>(0,r.hg)(e.data))).catch(s.K),this.updateWidget=(e,t)=>this.privateWidgetsService.create(e,(0,r.KI)(t)).then((e=>(0,r.hg)(e.data))).catch(s.K),this.privateWidgetsService=new i(e)}}class l extends o.E{getSettings(e){return this.get("/catalog/settings",e)}update(e,t){return this.post("/catalog/settings",e,{...t})}reset(e){return this.delete("/catalog/settings",e)}}const c=({data:e})=>{const t=(0,r.hg)(e),{createdTs:n,updatedTs:o}=t,i=new Date(1e3*Number(n)),s=new Date(1e3*Number(o));return{...t,createdTs:i,updatedTs:s}};class u{}var d;!function(e){e.VIDEO_MAIN="main",e.VIDEO_COVER="cover",e.VIDEO_TRAILER="trailer",e.VIDEO_POSTER="poster",e.CHANNEL_COVER="channel-cover",e.EMBED_LOGO="embed-logo",e.EMBED_LOGO_1="EMBED_LOGO_1",e.EMBED_LOGO_2="EMBED_LOGO_2",e.EMBED_LOGO_3="EMBED_LOGO_3",e.EMBED_LOGO_NEW="EMBED_LOGO",e.VIDEO_CARD_IMAGE="video-card-image"}(d||(d={}));const p=e=>e?.valueOf();class h extends u{constructor(e,t){super(),this.httpClient=e,this.get=()=>this.privateSettingsService.getSettings().then(c).catch(s.K),this.update=e=>this.privateSettingsService.update((0,r.KI)({...e,createdTs:p(e.createdTs),updatedTs:p(e.updatedTs)})).then(c).catch(s.K),this.reset=()=>this.privateSettingsService.reset().then((e=>e.data)).catch(s.K),this.privateSettingsService=new l(e,t)}getEmbedLogoUploaderId(e){return e.id?`${d.EMBED_LOGO}${e.id}`:d.EMBED_LOGO}removeEmbedLogo(e,t){const n=!!e.embedDefaultLogoId&&`${d.EMBED_LOGO}${e.embedDefaultLogoId}`===t;return this.privateSettingsService.update((0,r.KI)({...e,createdTs:p(e.createdTs),updatedTs:p(e.updatedTs),embedLogos:e.embedLogos.filter((e=>`${d.EMBED_LOGO}${e.id}`!==t)),embedDefaultLogoId:n?null:e.embedDefaultLogoId})).then(c).catch(s.K)}updateLogosAfterUpload(e,t){const n=t.embedLogos,{fileUrl:r,uploaderId:o}=e,i=o===d.EMBED_LOGO?[...n,{id:Date.now().toString(),url:r}]:n.map((e=>`${d.EMBED_LOGO}${e.id}`===o?{...e,url:r}:e));return this.update({...t,embedLogos:i})}makeEmbedLogoDefault(e,t){const n=t.replace(d.EMBED_LOGO,"");return this.update({...e,embedDefaultLogoId:n})}removeEmbedLogoDefault(e,t){return this.update({...e,embedDefaultLogoId:null})}}let m;function f(e,t){m={widgets:new a(e),settings:new h(e,t)}}},3333:(e,t,n)=>{"use strict";n.d(t,{g:()=>xe,X:()=>Le});var r=n(11442);class o{}var i=n(30592),s=n(86344),a=n(27478),l=n(54550),c=n(72788);const u="/cashier/order",d=(e,t)=>`/cashier/order/${e}/transaction/${t}/status`,p=`${c.l.paypal}/vod`,h={SUCCESS:r.b.ACTIVE,APPROVED:r.b.ACTIVE,OK:r.b.ACTIVE,PENDING:r.b.PENDING,PENDING_MERCHANT:r.b.PENDING,CANCEL:r.b.CANCELED,CANCELED:r.b.CANCELED};class m extends o{constructor(e){super(),this.httpClient=e}async createOrder(e,t,n,r,o,a){const{data:l}=await this.httpClient.post(`${p}${u}`,{channelId:t,refItemId:e,type:n,ref:r,redirectParams:{returnUrl:r,[i.iN]:a,[i.r3]:e,[i.nE]:n,[i.EI]:i.n3}},{params:{instance:o,bsi:(0,s.Y)()},headers:{"Content-Type":"application/json"},withCredentials:!0,xsrfCookieName:null,xsrfHeaderName:null});return l.order.id}async getPaymentStatus(e,t,n,r,o,i){const{status:a}=await this.httpClient.get(`${p}${d(n,r)}`,{params:{instance:o,bsi:(0,s.Y)()},headers:{"Content-Type":"application/json"},withCredentials:!0,xsrfCookieName:null,xsrfHeaderName:null}).then((e=>({status:e.data.status})),(e=>({status:"ERROR",error:e})));return h[a]}async cancelOrder(e,t,n){(0,a._)((0,l.Q)(`${c.l.paypal}/vod/pp/subscribe/cancel_profile`,{type:"subscription",channelId:e,ref:t,instance:n}))}}function f(e){return new m(e)}var g=n(82402);class v extends g.Z{}class y extends v{getMemberInfo(e,t,n){return this.get(`/public/lists/${e}/member/info?instance=${t}`,n)}getVideoPreviewUrls(e,t,n){const r={instance:t};return this.get(`/public/lists/play/${e}`,{params:r,...n})}getInfo(e,t){return this.get(`/public/lists/${e}/info`,t)}}var b,E=n(11501),S=n(55723),C=n(5916);!function(e){e.VIDEO="video",e.CHANNEL="channel",e.USER_NAME="username",e.PLAYLIST="playlist"}(b||(b={}));var w=n(17607),P=n.n(w);const I=["high","medium","standard","default"];const O=function(e){if(!e)return;const t=P()(e).values().maxBy("width"),n=P()(I).takeWhile((t=>P().has(e,t))).head(),r=t||e[n];return r?.url};function T(e,t){const{id:n,snippet:r={},contentDetails:o={},statistics:i={},brandingSettings:s={},isExternalRemoved:a=!1}=t,{title:l,description:c,thumbnails:u,publishedAt:d}=r,{itemCount:p,relatedPlaylists:h={}}=o,m=Number(p||i.videoCount)||0,f=O(u)||null;let g=_.get(s,"image.bannerTvImageUrl")||f;return e===b.PLAYLIST&&0===m&&(g=null),(0,S.Nq)({externalId:n,uploadsPlaylistId:h.uploads,title:l,description:c,thumbnailUrl:f,coverUrl:g,videosCount:m,externalCreatedTs:new Date(d),channelType:C.X.YOUTUBE_FEED,urlType:e,isExternalRemoved:a})}var N=n(99968);const A=e=>e?e.substring(e.indexOf("-")+1):e;function x(e){return e<=9?`0${e}`:String(e)}function L(e){e=Math.floor(e??0);const t=[];do{t.unshift(x(e%60)),e=Math.floor(e/60)}while(e>0);return t.length<2&&t.unshift("00"),t.join(":")}function R(e){return e?(t=k(e))?t.split(":").reverse().reduce(((e,t,n)=>e+Number(t)*Math.pow(60,n)),0):0:0;var t}function k(e){if(!e)return"00:00";const[,...t]=e.match(/^P(?:(\d+)D)?T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?/)||[],n=t.map((e=>Number(e)||0)),[r,o,i,s]=n,[a,l,c]=[24*r+o,i,s].map(x);return"00"===a?`${l}:${c}`:`${a}:${l}:${c}`}var D=n(77944);const V=[{type:D.i.RENT,price:.01,enabled:!1,period:24},{type:D.i.SALE,price:.01,enabled:!1,period:0}];var M,B;!function(e){e.IN_QUEUE="IN-QUEUE",e.PENDING="PENDING",e.INPROGRESS="INPROGRESS",e.PREVIEW_READY="PREVIEW_READY",e.READY="READY",e.FAILED="FAILED",e.NONE="NONE"}(M||(M={})),function(e){e.COMPUTER="computer",e.DROPBOX="dropbox",e.GOOGLE_DRIVE="drive",e.YOUTUBE="youtube",e.VIMEO="vimeo",e.FACEBOOK="facebook",e.MIXED="mixed",e.LIVE="live"}(B||(B={}));B.YOUTUBE,B.VIMEO,B.FACEBOOK;var F;!function(e){e.InternalError="internal_error",e.ConnectivityIssue="connectivity_issue"}(F||(F={}));var U=n(4230),j=n(28848);const H=(e,t)=>{const n=e?.fileOutput?.video[0]?.status;return t===U.q.ItemLive?j.X[n]:void 0},Z={allowDownload:!1},W=(e=M.NONE)=>_.includes(M,e)?e:M.NONE,z=(e=[])=>e.map((e=>e.itemId)),q=e=>{const t=(0,S.hg)(e),{itemId:n,externalId:r,listId:o,mediaStatus:i,trailerStatus:s,mediaInfo:a,mediaExternUrl:l,downloadOptions:{allowDownload:c}=Z,videoSource:u=B.COMPUTER,itemType:d}=t,p=n&&A(n)||r,{customCoverUrl:h=null,createdTs:m,updatedTs:f,publishTs:g,usedInLists:v}=t;let{dealInfo:y,durationSec:b,durationStr:E,tags:C=[],categories:w=[]}=t;const P=new Date(1e3*m),I=new Date(1e3*f),O=g?new Date(1e3*g):null,T=_.get(a,"fileInput.duration",0);T&&(b=Math.floor(T/1e3),E=L(b)),E||(E=L(b));const N=W(l?M.READY:i),x=W(s);l&&(y=V),C=_.uniq(C),w=_.uniq(w);const R=A(o),k={..._.omit(t,["downloadOptions","mediaStatus","trailerStatus"]),id:p,listId:R,customCoverUrl:h,transcodingStatus:N,trailerTranscodingStatus:x,dealInfo:y,durationSec:b,durationStr:E,createdTs:P,updatedTs:I,publishTs:O,usedInLists:z(v),allowDownload:c,videoSource:u,tags:C,categories:w,liveVideoStatus:H(a,d),autogeneratedTrailer:a?.fileOutput?.trailer?.length?(e=>{const t=W(e[0].status);return t===M.FAILED?{status:t,errorType:F.InternalError}:{status:t}})(a?.fileOutput?.trailer):void 0};return(0,S.Nq)(k)},G=(e,t)=>{e[t]=new Date(1e3*e[t])},$=e=>(e=P().cloneDeep(e),e=(0,S.hg)(e),G(e,"createdTs"),G(e,"externalCreatedTs"),G(e,"updatedTs"),(e=>{e.statsInfo&&(e.statsInfo=P().mapValues(e.statsInfo,(e=>{const t=P().filter(e,(e=>Boolean(e.value)));return P().uniqBy(t,"value")})))})(e),e.id=A(e.itemId),e.customCoverUrl=e.customCoverUrl||null,e.videosCount=e.usedCount,e.urlType=e.urlType||"",e.channelType=e.channelType||C.X.CHANNEL,delete e.itemId,delete e.usedCount,delete e.publishChanges,(e=>{if(e.featuredItem)e.featuredItem.mediaStatus&&e.featuredItem.mediaStatus!==N.Y.NONE?e.featuredItem.itemId&&(e.featuredItem=q(e.featuredItem)):(delete e.featuredItem,e.videosCount&&(e.videosCount-=1))})(e),(e=>{e.channelType!==C.X.CHANNEL&&delete e.videosCount})(e),e),Y=e=>{const t=e.youtube_data,n=$(_.omit(e,"youtube_data"));if(t){return((e,t)=>({...e,..._.omit(t,"id","title","description")}))(n,T(n.urlType,t))}return n},K="([\\w\\-]+)",X={[b.PLAYLIST]:[new RegExp(`youtube\\.com\\/.*list=${K}`)],[b.CHANNEL]:[new RegExp("youtube\\.com\\/(channel|c|@)\\/?([\\w\\-%]+)")],[b.USER_NAME]:[new RegExp(`youtube\\.com\\/user\\/${K}`)]},Q={...X,[b.VIDEO]:[new RegExp(`youtu\\.be\\/${K}`),new RegExp(`youtube\\.com\\/watch\\?.*v=${K}`),new RegExp(`youtube\\.com\\/(?:v|embed)\\/${K}`)]},J=(e,t)=>{for(const n of e){const e=n.exec(t);if(e)return e[e.length-1]}return null},ee=(e,t)=>{let n;for(n in e){const r=e[n],o=r?J(r,t):null;if(o)return{id:o,type:n}}return null};function te(e,t){const n=ee(e,t);if(!n)throw new Error("Given url doesn't match any pattern");return n}class ne{constructor(e){this.httpClient=e,this.MAX_IDS_IN_REQUEST=50,this.channelIdToPlaylistIdMap=new Map}async get(e,t){const n="undefined"!=typeof window&&window.hasOwnProperty("BusinessManagerAPI")?{artifact:"wix-vod-library"}:void 0;return this.httpClient.get(c.l.pixWix+e,{params:{...n,...t?.params},...t})}fetchChannels(e,t){const n={pageToken:(e={order:"relevance",ids:[],maxResults:this.MAX_IDS_IN_REQUEST,shouldThrowWhenNoItems:!1,...e}).cursor,order:e.order,forUsername:e.userName,id:e.ids&&e.ids.length?e.ids.join(","):null,maxResults:e.maxResults,shouldThrowWhenNoItems:e.shouldThrowWhenNoItems};return this.get("/youtube/channels",{params:n,...t})}fetchPlayLists(e={},t){const n={shouldThrowWhenNoItems:e.shouldThrowWhenNoItems||!1,id:e.ids&&e.ids.length?e.ids.join(","):null};return this.get("/youtube/playlists",{params:n,...t})}makeChunks(e,t){return e.reduce(((e,n)=>{const r=e.length-1;return e[r].length===t?e.push([n]):e[r].push(n),e}),[[]])}batchFetch(e,t){const n=this.makeChunks(e,this.MAX_IDS_IN_REQUEST).map((e=>t(e)));return Promise.all(n)}parseChannelUrl(e){return function(e){return te(X,e)}(e)}parseVideoUrl(e){return function(e){return te(Q,e)}(e)}getChannelsByIds(e,t){return this.batchFetch(e,(e=>this.fetchChannels({ids:e},t))).then((e=>({...e[0],data:{items:e.reduce(((e,t)=>t.data&&t.data.items?e.concat(t.data.items):e),[])}})))}getChannelById(e,t){return this.getChannelsByIds([e],t).then((e=>({...e,data:e.data.items[0]})))}getChannelsByUsername(e,t){return this.fetchChannels({userName:e},t)}getPlayListsByIds(e,t){return this.batchFetch(e,(e=>this.fetchPlayLists({ids:e},t))).then((e=>({...e[0],data:{items:e.reduce(((e,t)=>t.data&&t.data.items?e.concat(t.data.items):e),[])}})))}getPlaylistById(e,t){return this.getPlayListsByIds([e],t).then((e=>({...e,data:e.data.items[0]})))}getPlaylistIdByChannelId(e,t){const n=this.channelIdToPlaylistIdMap.get(e);return n?Promise.resolve(n):this.getChannelById(e,t).then((({data:t})=>{const n=t.contentDetails.relatedPlaylists.uploads;return this.channelIdToPlaylistIdMap.set(e,n),n}))}fetchVideos(e,t){const n={params:{id:e.join(",")},...t};return this.get("/youtube/videos",n)}getVideosByIds(e,t){return this.batchFetch(e,(e=>this.fetchVideos(e,t))).then((e=>({...e[0],data:{items:e.reduce(((e,t)=>e.concat(t.data.items)),[])}})))}doFetchPlaylistItems(e,t,n,r){return this.get("/youtube/playlistitems",{params:{maxResults:t,pageToken:n,playlistId:e},...r})}async fetchChannelVideosByPlaylistId({playlistId:e,itemsCount:t,pageToken:n=""},r){let o,i=[],s=Math.min(t,this.MAX_IDS_IN_REQUEST);const a=e=>{i=i.concat(e.data.items),t=Math.max(t-e.data.items.length,0),n=e.data.nextPageToken,s=Math.min(t,this.MAX_IDS_IN_REQUEST)};for(o=await this.doFetchPlaylistItems(e,s,n,r),a(o);t&&n;)o=await this.doFetchPlaylistItems(e,s,n,r),a(o);return o.data.items=i,o}async getPlaylistItems({externalId:e,urlType:t,pageToken:n="",itemsCount:r},o){return t===b.CHANNEL&&(e=await this.getPlaylistIdByChannelId(e,o)),this.fetchChannelVideosByPlaylistId({playlistId:e,itemsCount:r,pageToken:n??void 0},o)}getCategoryList(e,t){const n=e.join(",");return this.get("/youtube/categories",{params:{ids:n},...t})}async getVideoById(e,t){const n=await this.fetchVideos([e],t);return{...n,data:{...n.data,categoryItems:await this.fetchCategoryItemsForVideos(n.data.items,t)}}}async fetchCategoryItemsForVideos(e,t){const n=e.map((e=>e.snippet.categoryId)),r=Array.from(new Set(n));try{const{data:e}=await this.getCategoryList(r,t);return e.items}catch(e){return[]}}async fetchChannelItemsForVideos(e,t){const n=e.map((e=>e.snippet.channelId));try{const{data:e}=await this.getChannelsByIds(n,t);return e.items}catch(e){return[]}}async getChannelVideos({externalId:e,urlType:t,pageToken:n="",itemsCount:r},o){const i=await this.getPlaylistItems({externalId:e,urlType:t,pageToken:n,itemsCount:r},o),s=i.data.items,a=s.map((e=>e.contentDetails.videoId)),l=(await this.getVideosByIds(a,o)).data.items,[c,u]=await Promise.all([this.fetchCategoryItemsForVideos(l,o),this.fetchChannelItemsForVideos(l,o)]);return{...i,data:{playlistItems:s,videoItems:l,channelItems:u,categoryItems:c,nextPageToken:i.data.nextPageToken,pageInfo:i.data.pageInfo}}}}class re{constructor(e,t){this.httpClient=e,this.baseUrl=t,this.getVideoPreviewUrls=async(e,t)=>{let n;try{n=await this.siteBasedPublicChannelService.getVideoPreviewUrls(e,t)}catch(e){return(0,E.K)(e)}return n.data},this.getMemberInfo=async(e,t)=>{let n;try{n=await this.siteBasedPublicChannelService.getMemberInfo(e,t)}catch(e){return(0,E.K)(e)}return(0,S.hg)(n)},this.getInfo=async(e,t)=>{try{const r=await this.siteBasedPublicChannelService.getInfo(e,{params:{metaSiteId:t}});try{const e=await this.getExternalChannelInfo(r.data);Object.assign(r.data,{youtube_data:e.data})}catch(e){}const o=(0,S.KI)(r.data);o.youtube_data&&(o.youtube_data=(0,S.hg)(o.youtube_data));const{custom_cover_url:i,cover_url:s,featured_item:a,channel_type:l}=o;return i||s||!a||l===C.X.YOUTUBE_FEED||(o.cover_url=(n=a).custom_cover_url||n.cover_url),Y(o)}catch(e){return(0,E.K)(e)}var n},this.siteBasedPublicChannelService=new y(e,t),this.youtubeService=new ne(e)}isYoutubeChannel(e){return e.channel_type===C.X.YOUTUBE_FEED&&e.url_type===b.CHANNEL}isYoutubePlaylist(e){return e.channel_type===C.X.YOUTUBE_FEED&&e.url_type===b.PLAYLIST}getExternalChannelInfo(e){if(e.external_id&&this.isYoutubeChannel(e))return this.youtubeService.getChannelById(e.external_id);if(e.external_id&&this.isYoutubePlaylist(e))return this.youtubeService.getPlaylistById(e.external_id);throw new Error("Method is not allowed")}}var oe,ie,se,ae,le=n(91056);!function(e){e.Pending="pending",e.InQueue="in-queue",e.InProgress="in-progress",e.PreviewReady="preview-ready",e.Ready="ready",e.Failed="failed"}(oe||(oe={})),function(e){e.ReverseCustom="-custom",e.ReverseRelevance="-relevance",e.ReverseDate="-date",e.ReverseName="-name"}(ie||(ie={})),function(e){e.Custom="custom",e.Relevance="relevance",e.Date="date",e.Name="name"}(se||(se={})),function(e){e.Ascending="asc",e.Descending="desc"}(ae||(ae={}));const ce={size:30,cursor:null},ue={order:se.Custom,direction:ae.Ascending},de=({query:e,tag:t,category:n,mediaType:r=le.w.SECURE_VIDEO,sort:o,paging:i,itemType:s,templateMetaSiteId:a,withPlayInfo:l})=>{const c={...ue,...o},u={...ce,...i},d={[se.Custom]:ie.ReverseCustom,[se.Name]:ie.ReverseName,[se.Relevance]:ie.ReverseRelevance,[se.Date]:ie.ReverseDate},p={metaSiteId:a,query:e,tag:t,category:n,media_type:r,page_size:u.size,item_type:s,cursor:u.cursor,order:c.direction===ae.Descending&&d[c.order]?d[c.order]:c.order};return l&&(p.with_play_info=!0),p};var pe=n(71061);class he extends pe.E{createVideos(e,t){return this.post("/catalog/items",{items:e},t)}getList({query:e,tag:t,category:n,mediaType:r,sort:o,paging:i,itemType:s},a){const l=de({query:e,tag:t,category:n,mediaType:r,sort:o,paging:i,itemType:s});return this.get("/catalog/items",{params:l,...a})}removeVideos(e,t){return this.delete("/catalog/items/delete",{...t,params:{items:e}})}getById(e,t){return this.get(`/catalog/items/${e}`,t)}updateById(e,t,n){return this.put(`/catalog/items/${e}`,t,{...n})}patchById(e,t,n){return this.patch(`/catalog/items/${e}`,t,{...n})}batchUpdateVideos(e,t,n){const r={...t,items:e};return this.put("/catalog/items",r,{...n})}getVideoUrlsByFileName(e,{clip:t,autogenerated:n}={},r){return this.get(`/catalog/videos/${e}/play`,{params:{clip:t,autogenerated:n},...r})}createSingleVideo(e,t){return this.post(`/publisher/items/${e}/create`,null,t)}generateVideoTrailer(e){return this.post(`/catalog/items/${e}/generate-trailer`)}}class me extends v{constructor(e,t){super(e,t),this.privateVideo=new he(e,t)}static getDownloadUrl(e,t,n,r){return`${e}/public/download/${t}/redirect?instance=${r}&channel_id=${n}`}getById(e,t){return this.privateVideo.getById(e,t)}getVideoUrls(e,t,n,r){return this.get(`/public/play/${e}`,{params:{instance:n,channel_id:t},...r})}}class fe extends v{getList(e,t,n){return this.get(`/public/lists/${e}/items/${t}/actions`,n)}}var ge=n(94188);const ve=e=>((e=(e=>(0,w.reduce)(e,((e,t,n)=>(0,w.isString)(t)?(e[n]=t.trim(),e):(e[n]=t,e)),{}))(e)).url&&(e.url=(e=>(0,w.startsWith)(e,"//")?`https:${e}`:(0,w.some)(["http://","https://"],(t=>(0,w.startsWith)(e,t)))?e:`https://${e}`)(e.url)),{...e,clientId:e.clientId||(0,ge.M8)(),updatedTimestamp:e.updatedTimestamp||Date.now()}),ye=e=>(0,w.omitBy)(e,w.isNull),be=e=>{const t=(0,S.hg)(e),{type:n,actionId:r,clientId:o,appearance:i,position:s,orientation:a,thumbnailUrl:l}=t,c=i?i.start+i.duration:void 0,u={actionId:r,clientId:o||(0,ge.M8)(),type:n,from:i?.start,to:c,position:s,orientation:a,...null===l?{}:{file:l,thumbnailUrl:l},...(0,w.omit)(t,["actionId","clientId","type","appearance","position","orientation","parentItemId","dateCreated","dateUpdated","thumbnailUrl"])};return(0,w.flow)(ye,ve)(u)};class Ee{constructor(e,t){this.httpClient=e,this.baseUrl=t,this.getVideoUrls=async(e,t,n)=>{let r;try{r=await this.siteBasedPublicVideoService.getVideoUrls(e,t,n)}catch(e){return(0,E.K)(e)}return r.data},this.getDownloadUrl=async(e,t,n)=>me.getDownloadUrl(this.baseUrl??c.l.catalog,e,t,n),this.getVideoCardsList=async(e,t)=>{let n;try{n=await this.siteBasedPublicVideoCardsService.getList(e,t)}catch(e){return(0,E.K)(e)}return(e=>{const t=(0,w.map)(e,be);return(0,w.orderBy)(t,["from","updatedTimestamp"],["asc","asc"])})(n.data)},this.siteBasedPublicVideoService=new me(e,t),this.siteBasedPublicVideoCardsService=new fe(e,t)}}class Se extends v{getList({channelId:e,query:t,tag:n,category:r,mediaType:o,sort:i,paging:s,itemType:a,templateMetaSiteId:l,withPlayInfo:c},u){const d=de({query:t,tag:n,category:r,mediaType:o,sort:i,paging:s,itemType:a,templateMetaSiteId:l,withPlayInfo:c});return this.get(`/public/lists/${e}`,{params:d,...u})}getChannelVideoById(e,t,n){return this.get(`/public/lists/${e}/items/${t}/info`,n)}}class Ce{constructor(e,t){this.publicChannelVideos=new Se(e,t)}parseListChannelResponse(e,t){return{...e,data:_.map(e.data.items,q),sort:t,paging:{size:e.data.items.length,cursor:e.data.cursor}}}parseChannelVideoResponse(e){return{...e,data:q(e.data)}}async listChannelVideos({channelId:e,query:t,tag:n,category:r,mediaType:o,sort:i,paging:s,templateMetaSiteId:a}){try{const l=await this.publicChannelVideos.getList({channelId:e,query:t,tag:n,category:r,mediaType:o,sort:i,paging:s,templateMetaSiteId:a});return this.parseListChannelResponse(l,i)}catch(e){return(0,E.K)(e)}}async getChannelVideoById(e,t,n){try{const r=await this.publicChannelVideos.getChannelVideoById(e,t,n);return this.parseChannelVideoResponse(r)}catch(e){return(0,E.K)(e)}}}class we extends Error{constructor(e,t,n){super(n),this.status=e,this.code=t,this.name=this.constructor.name,this.stack=(new Error).stack}}var Pe=n(77294);const Ie=e=>{const{player:t={},snippet:n={},contentDetails:r={}}=e,{id:o}=e,{embedHtml:i}=t,{channelId:s,title:a,description:l,thumbnails:c,tags:u,category:d,publishedAt:p}=n,{duration:h,videoId:m}=r,f=i?i.match(/width="(\d+)/):void 0,g=i?i.match(/height="(\d+)/):void 0,v=f?Number(f[1]):void 0,y=g?Number(g[1]):void 0,b=d?[d]:[];let E=o;if(_.isObject(o)){const{videoId:e}=o;E=e}E=E||m;const C=`//www.youtube.com/embed/${E}`,w=O(c);let P=0,I="00:00";h&&"P0D"!==h&&(P=R(h),I=k(h));return{...(0,S.Nq)({coverUrl:w,width:v,height:y,channelId:s,durationSec:P,durationStr:I}),externalId:E,description:l??"",title:a??"",tags:u||[],categories:b,mediaExternUrl:C,mediaStatus:N.Y.READY,dealInfo:V,videoSource:Pe.V.YOUTUBE,datePublish:p}};class Oe{constructor(e){this.httpClient=e,this.youtubeService=new ne(e)}async getChannelsByIds(e){return this.youtubeService.getChannelsByIds(e).then((e=>_.map(e.data.items,(e=>T(b.CHANNEL,e))))).then((e=>this.setMissingCovers(e))).then((t=>{const n=_.map(t,"externalId");return[...t,...this.extendWithRemovedItems(e,n,b.CHANNEL)]})).then((e=>({data:e}))).catch(E.K)}async getChannelsByUserName(e){return this.youtubeService.getChannelsByUsername(e).then((e=>_.map(e.data.items,(e=>T(b.CHANNEL,e))))).then((e=>this.setMissingCovers(e))).then((e=>({data:e}))).catch(E.K)}async getPlaylistsByIds(e){return this.youtubeService.getPlayListsByIds(e).then((e=>_.map(e.data.items,(e=>T(b.PLAYLIST,e))))).then((t=>{const n=t.map((e=>e.externalId));return[...t,...this.extendWithRemovedItems(e,n,b.PLAYLIST)]})).then((e=>({data:e}))).catch(E.K)}extendWithRemovedItems(e,t,n){const r=_.difference(e,t);return _.map(r,(e=>T(n,{id:e,isExternalRemoved:!0})))}async getChannelsByUrl(e){let t,n;try{const r=this.youtubeService.parseChannelUrl(e);t=r.type,n=r.id}catch(e){return Promise.reject(new we(0,"wpm_error.malformed_external_link"))}switch(t){case b.PLAYLIST:return this.getPlaylistsByIds([n]);case b.USER_NAME:return this.getChannelsByUserName(n);default:return this.getChannelsByIds([n])}}async setMissingCovers(e){const t=_.reject(e,"coverUrl");if(_.isEmpty(t))return e;const n=_.map(t,"uploadsPlaylistId"),r=await this.getFallbackCovers(n);return _.forEach(t,((e,t)=>{e.coverUrl=r[t]||null})),e}async getCoverFromPlaylistItem(e){return this.youtubeService.getPlaylistItems({urlType:b.PLAYLIST,externalId:e,itemsCount:1}).then((e=>e.data.items[0])).then((e=>e?O(e.snippet.thumbnails):void 0))}async getFallbackCovers(e){const t=_.map(e,(e=>this.getCoverFromPlaylistItem(e).catch((()=>{}))));return Promise.all(t)}}class Te{constructor(e){this.httpClient=e,this.youtubeService=new ne(e),this.youtubeChannelsService=new Oe(e)}mapParams(e,t){const{externalId:n,urlType:r}=e;return{externalId:n,urlType:r,pageToken:t.paging.cursor,itemsCount:t.paging.size??0}}getCategoryIdToTitleMapping(e=[]){return _.reduce(e,((e,t)=>({[t.id]:t.snippet.title})),{})}addCategory(e,t){const n=e[_.get(t,"snippet.categoryId")];return n&&_.set(t,"snippet.category",n),t}mapToVodPaginatedResponse(e,t){const{nextPageToken:n,playlistItems:r,videoItems:o,categoryItems:i,channelItems:s}=e.data,a=this.getCategoryIdToTitleMapping(i),l=_.keyBy(s,"id"),c=o.map(((e,t)=>_.merge(e,r[t])));return{status:e.status,sort:t.sort,paging:{...t.paging,cursor:n},data:_(c).map((e=>this.addCategory(a,e))).map((e=>({...Ie(e),publisher:l[e.snippet.channelId]?.snippet?.title}))).value()}}async listYoutubeChannelVideosInternal(e,t){const n=this.mapParams(e,t),r=await this.youtubeService.getChannelVideos(n);return this.mapToVodPaginatedResponse(r,t)}async getVideosByChannelId(e,t){return this.listYoutubeChannelVideosInternal({externalId:e,urlType:b.CHANNEL},t).catch(E.K)}async getVideosByPlaylistId(e,t){return this.listYoutubeChannelVideosInternal({externalId:e,urlType:b.PLAYLIST},t).catch(E.K)}async getVideosByUserName(e,t){return this.youtubeService.getChannelsByUsername(e).then((e=>e.data.items[0])).then((e=>e.id)).then((e=>this.getVideosByChannelId(e,t))).catch(E.K)}async getYoutubeVideoByIdWithChannelData(e){const t=await this.getYoutubeVideoById(e),n=await this.youtubeChannelsService.getChannelsByIds([t.data.channelId]).then((e=>e.data[0]));return{...t,data:{...t.data,publisher:n?n.title:null}}}async getVideosByUrl(e,t){let n,r;try{const o=t?this.youtubeService.parseChannelUrl(e):this.youtubeService.parseVideoUrl(e);n=o.type,r=o.id}catch(e){return Promise.reject(new we(0,"wpm_error.malformed_external_link"))}const o={paging:{cursor:null,size:50},sort:{order:se.Relevance}};switch(n){case b.CHANNEL:return this.getVideosByChannelId(r,o);case b.PLAYLIST:return this.getVideosByPlaylistId(r,o);case b.USER_NAME:return this.getVideosByUserName(r,o);default:try{const e=await this.getYoutubeVideoByIdWithChannelData(r);return{...e,data:[e.data]}}catch(e){return(0,E.K)(e)}}}async getYoutubeVideoById(e){const t=await this.youtubeService.getVideoById(e),{items:n,categoryItems:r}=t.data,o=this.getCategoryIdToTitleMapping(r),i=this.addCategory(o,n[0]),s=Ie(i);return{...t,data:{...s,id:s.externalId}}}async listYoutubeChannelVideos(e,t){const n=await this.listYoutubeChannelVideosInternal(e,t);return{...n,data:n.data.map(q)}}}class Ne{constructor(){this.buildVideoCardsDeeplinkUrl=({channelId:e,videoId:t,fallbackUrl:n,instance:r})=>this.buildDeeplinksUrl({host:c.l.catalog,channelId:e,videoId:t,fallbackUrl:n,instance:r}),this.buildChannelCardsDeeplinkUrl=({channelId:e,fallbackUrl:t,instance:n})=>this.buildDeeplinksUrl({host:c.l.catalog,channelId:e,fallbackUrl:t,instance:n})}buildQueryString(e){const t=[];for(const n in e)e[n]&&t.push(`${n}=${e[n]}`);return t.join("&")}buildDeeplinksUrl(e){const{host:t,channelId:n,videoId:r,instance:o,fallbackUrl:i}=e,s={fallback_url:i,list_id:n,item_id:r,instance:o};return`${t}/public/widgets/deeplinks/active/redirect?${this.buildQueryString(s)}`}}let Ae;function xe(){if(void 0===Ae)throw Error("public Api has not yet been initialized, call `initPublicServices` first");return Ae}const _e=(e,t,n)=>{Ae={purchase:f(e),channelService:new re(e,n),videoService:new Ee(e,n),channelVideos:new Ce(e,n),youtubeVideosService:new Te(e),publicWidgetsService:new Ne}};function Le(e,t,n){_e(e,t,n)}},22483:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(74995);const o=e=>{let{messageId:t,currency:n,price:o}=e;const{t:i,i18n:s}=(0,r.$)();return i(t,{price:new Intl.NumberFormat(s.language,{style:"currency",currency:n,minimumFractionDigits:o%1>0?2:0,minimumIntegerDigits:1}).format(o)})}},23685:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(26290),o=n.n(r),i=n(27762),s=n.n(i),a=n(17607),l=n.n(a),c=n(42493),u=n(16323),d=n(60042),p=n.n(d);const h="tWZsb1",m="QKYL9B",f="q9AqmI",g="hXmHoC";class v extends s().Component{getResizedImageUrl(e){var t;const{width:n,height:r,params:o,backgroundFit:i}=this.props,s=(0,c.Z)(e,{containerWidth:n,containerHeight:r}),a=i?u.E.fit:void 0,l=(null==(t=window)?void 0:t.devicePixelRatio)??1,d=Array.from(new Set([1,2,l])),p=Array.from(d.reduce(((t,n)=>t.set((0,u.N)({url:e,width:s[0]*n,height:s[1]*n,params:o,mode:a}),n)),new Map));return 1===p.length?`url(${p[0][0]})`:`-webkit-image-set(${p.map((e=>{let[t,n]=e;return`url(${t})  ${n}x`})).join(",")})`}render(){const{className:e,width:t,height:n,style:r,children:o,dataHook:i,withFallbackColor:a,backgroundFit:c,isMobile:u,src:d}=this.props,v={width:"number"==typeof t?t&&l().round(t):t,height:"number"==typeof n?n&&l().round(n):n,...r};d&&(v.backgroundImage=this.getResizedImageUrl(d));const y=p()(e,h,{[f]:a&&!d,[m]:c,[g]:u});return s().createElement("div",{className:y,style:v,"data-hook":i,role:"presentation"},o)}}o()(v,"defaultProps",{params:{},style:{}})},18030:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var r=n(27762),o=n.n(r),i=n(44910),s=n(34423),a=n(52834);const l=()=>{const e=(0,i.y)(),t=(0,r.useCallback)((()=>{if(e.ready){const t={};return Object.values(s.default).forEach((n=>{const r=n.key;if("channelId"!==r&&"videoId"!==r&&(n.type===a.g.Color||n.type===a.g.Font)){const r=e.get(n);var o;if(t[`--${n.key}`]=((e,t)=>{if(e===a.g.Font){var n,r;const e=t.value;if(e)return null==e?void 0:e.replace(/^font:/,"").replace(/;.*$/,"");const o=t,i=[];return i.push(null!=(n=o.style)&&n.bold?"bold":"normal"),i.push(null!=(r=o.style)&&r.italic?"italic":"normal"),i.push("number"==typeof o.size?`${o.size}px/${o.size}px`:"1em"),i.push(o.family),i.join(" ")}var o;return e===a.g.Color?null==(o=t.value)?void 0:o.replace(/rgba?\((.*)\)/,"$1"):t.value})(n.type,r),n.type===a.g.Font)t[`--${n.key}-decoration`]=null!=(o=r.style)&&o.underline?"underline":"unset"}})),t}}),[e]),[n,o]=(0,r.useState)(t()||{});return(0,r.useEffect)((()=>{const e=t();e&&o(e)}),[t]),n},c=e=>{let{children:t}=e;const n=l();return o().createElement("div",{style:n,"data-hook":"style-params-css-variables"},n?t:null)}},23654:(e,t,n)=>{"use strict";n.d(t,{Cq:()=>u,Zz:()=>c});var r=n(27762),o=n.n(r),i=n(88137),s=n(23685),a=n(62223);const l=e=>{const{thumbnailUrl:t,className:n,width:r,height:a,isResponsive:l}=e;return l?o().createElement(i.t,{src:t,withFallbackColor:!0,breakpoints:[{min:0,width:r,height:a}]}):o().createElement(s.Z,{src:t,className:n,withFallbackColor:!0,width:r,height:a})},c=e=>{const{video:{coverUrl:t,customCoverUrl:n},width:r=a.sS,height:i=a.zT,className:s}=e;return o().createElement(l,{thumbnailUrl:n||t,className:s,width:r,height:i})},u=e=>{const{video:{coverUrl:t,customCoverUrl:n},width:r,height:i,className:s}=e;return o().createElement(l,{thumbnailUrl:n||t,className:s,width:r,height:i,isResponsive:!0})}},90313:(e,t,n)=>{"use strict";n.d(t,{p:()=>x});var r=n(74081);function o(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var i=o();i.withExtraArgument=o;const s=i;var a=n(11512);function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const u=function(e){return function(t){return function(t){return function(n){if(n.type!==a.J6)return t(n);var r=n.payload,o=r.method,i=r.args;e[o].apply(e,l(i))}}}};var d=n(17607),p=n.n(d),h=n(43677),m=n(52907),f=n(28074),g=n(80840),v=n(81098),y=n(14348),b=n(3729),E=n(65435),S=n(36229),C=n(14190);const w=e=>{let{getState:t,dispatch:n}=e;return e=>r=>{const o=t(),i=e(r),s=t(),a=e=>{const t=p().indexOf((0,S.Di)(s),e),r=(0,S.Lp)(s),o=(0,b.zD)(s),i=(0,b.sn)(s),a=s.isLightbox;-1===t&&r&&(o||i||a)&&n((0,y.OF)()),n((0,y.O2)(t))};switch(r.type){case h.jp.UPDATE_SEARCH:case h.jp.RESET_SEARCH:p().isEqual(o.search,s.search)&&0!==p().size((0,S.Di)(s))||(n((0,y.yq)()),n(((e,t,n)=>{let{storage:r}=n;r.lastCursor=null,r.loadingPromise=null})),n((0,y.OF)(2)));break;case m.At.SET:case v.aL.REQUEST_PLAY:a(r.payload);break;case f.MF:(0,b.v3)(s)&&function(e){let{exact:t=!1}=void 0===e?{}:e;const r=(0,S.W$)(s)-(0,S.Di)(s).length+(t?0:1),o=(0,S.Lp)(s),i=(0,E.uP)(s),a=(0,E.tz)(s);r>0&&o&&n((0,y.nR)(r,{[a]:i}))}({exact:!0});break;case g.aL.SUCCESS:(0,b.zn)(s)&&!s.isLightbox||a((0,C.hg)(s))}return i}};var P=n(71217),I=n(87077),O=n(13060),T=n(19147);const N={...{[m.At.SET]:e=>{let{dispatch:t,state:n,action:r,previousState:o}=e;r.payload!==o.selectedVideoId&&t((0,P.k)("widget.VidSelected.displayed",(0,T.d0)({appSettings:(0,b.GR)(n),channelData:(0,I.js)(n),videoItem:(0,O.$u)(n)[(0,C.hg)(n)]})))}}};var A=n(70428);const x=e=>{let{createRootReducer:t,createRootReducerPath:n}=e;return e=>{let{initialState:n={},middlewares:o=[],history:i,handlers:a}=e;const l=[s.withExtraArgument({storage:{},handlers:a}),u(i),w,(c=N,e=>{let{getState:t,dispatch:n}=e;return e=>r=>{const o=t(),i=e(r),{type:s}=r,a=c[s];return a&&a({dispatch:n,state:t(),previousState:o,action:r}),i}})];var c;l.push(...o);const d="undefined"!=typeof window?window:void 0,p=(void 0!==d&&d.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?d.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:r.qC)((0,r.md)(...l)),{router:h,...m}=n,f=p(r.MT)(t({history:i}),m);return(0,A.y)(f),f}}},94115:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});let r=function(e){return e.CASHIER_MODAL_LOAD="CASHIER_MODAL_LOAD",e.CASHIER_PAYMENT_PAGE_LOAD="CASHIER_PAYMENT_PAGE_LOAD",e.CASHIER_PAYMENT_COMPLETE_PAGE_LOAD="CASHIER_PAYMENT_COMPLETE_PAGE_LOAD",e.GET_WIDGET_DATA="GET_WIDGET_DATA",e.GET_WIDGET_DATA_V2="GET_WIDGET_DATA_V2",e.GET_WIDGET_DATA_V3_MAPPING="GET_WIDGET_DATA_V3_MAPPING",e.MOBILE_OPEN_VIDEO_VIEW="MOBILE_OPEN_VIDEO_VIEW",e}({})},23144:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});let r=function(e){return e.QUERY="query",e.TAG="tag",e.CATEGORY="category",e}({})},62223:(e,t,n)=>{"use strict";n.d(t,{BX:()=>l,KG:()=>d,LJ:()=>a,T_:()=>p,pV:()=>u,sS:()=>i,tn:()=>c,xP:()=>o,yz:()=>r,zT:()=>s});const r=399,o=320,i=320,s=180,a=1280,l=720,c=40,u=220,d=2,p=66},21491:(e,t,n)=>{"use strict";n.d(t,{TX:()=>l,k4:()=>u,kF:()=>c});var r=n(77028),o=n.n(r),i=n(27762),s=n.n(i);const a=s().createContext(void 0),l=a.Provider;function c(e){return t=>n=>s().createElement(a.Consumer,null,(r=>r?s().createElement(t,o()({},n,e(r))):null))}const u=()=>{const e=(0,i.useContext)(a);if(!e)throw new Error("useWidgetProps must be used within WidgetPropsProvider");return e}},10801:(e,t,n)=>{"use strict";n.d(t,{GT:()=>p,yT:()=>h});var r=n(77028),o=n.n(r),i=n(27762),s=n.n(i),a=n(62515),l=n(26957);const c=(0,i.createContext)({width:0,height:0}),u=e=>{let{children:t}=e;const[n,r]=(0,i.useState)({width:window.innerWidth,height:window.innerHeight}),o=(0,i.useCallback)((()=>{r({width:window.innerWidth,height:window.innerHeight})}),[]);return(0,i.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)})),[o]),s().createElement(c.Provider,{value:n},t)},d=e=>{let{children:t}=e;const{dimensions:n,isSSR:r}=(0,l.O)(),o=(0,a.NB)({refreshMode:"debounce",refreshRate:300}),i=""===n.width,u=n.width||o.width||0,d=n.height||o.height||0;return s().createElement("div",{ref:o.ref,"data-hook":"window-size",style:{width:"100%"}},s().createElement(c.Provider,{value:{width:u,height:d}},r||u||i?t:null))},p=e=>{let{children:t,isIframe:n}=e;return n?s().createElement(u,null,t):s().createElement(d,null,t)};function h(e){return t=>{const n=(0,i.useContext)(c);return s().createElement(e,o()({},t,{windowSize:n}))}}},77580:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,N:()=>l});var r=n(77028),o=n.n(r),i=n(27762),s=n.n(i);const a=s().createContext({}),l=e=>t=>{const{controllerState:n,handlers:r}=(0,i.useContext)(a);return s().createElement(e,o()({},t,{controllerState:n,handlers:r}))}},65911:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,m:()=>r});const r=48,o=300},89161:(e,t,n)=>{"use strict";n.d(t,{K3:()=>u,fR:()=>c,tZ:()=>l});var r=n(77028),o=n.n(r),i=n(27762),s=n.n(i);const a=(0,i.createContext)(null),l=e=>{let{children:t}=e;const[n,r]=(0,i.useState)(!1),[o,l]=(0,i.useState)("/");return s().createElement(a.Provider,{value:{isMobileOverlayOpen:n,initialRoute:o,openMobileOverlay:function(e){void 0===e&&(e="/"),l(e),r(!0)},closeMobileOverlay:()=>{l("/"),r(!1)}}},t)},c=()=>{const e=(0,i.useContext)(a);if(!e)throw new Error("useMobileOverlay must be used within MobileOverlayProvider");return e},u=e=>t=>{const n=c();return s().createElement(e,o()({},t,n))}},68830:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(74081),o=n(23282),i=n(24220),s=n(29861);const a=(0,i.Z)({[s.aL.OPEN_SLIDE_MENU]:()=>!0,[s.aL.CLOSE_SLIDE_MENU]:()=>!1},!1);var l=n(8275);const c=(0,i.Z)({[l.a.PLAYBACK_MODULE_LOADED]:e=>({...e,playbackModuleLoaded:!0})},{playbackModuleLoaded:!1});var u=n(6703),d=n(89829),p=n(42066),h=n(12574),m=n(30184),f=n(95933),g=n(36894),v=n(9325),y=n(58619),b=n(95715),E=n(57026),S=n(95493),C=n(55e3),w=n(39709),P=n(20054),I=n(19891),O=n(45900),T=n(83691),N=n(42577),A=n(665),x=n(62768),_=n(18417),L=n(39396),R=n(25602);const k=e=>{let{history:t}=e;return(0,r.UY)({router:(0,o.iz)(t),slideMenuOpened:a,modules:c,search:v.Z,entities:(0,r.UY)({videos:u.Z,channels:d.Z}),channelVideos:p.Z,currentChannelId:f.Z,currentVideoId:g.Z,channelInfo:y.Z,firstChannelVideoId:b.Z,lazyChannelVideos:N.Z,isLightbox:A.Z,videoUrlsCache:S.Z,selectedVideoId:C.Z,player:w.Z,isVideosTouched:P.Z,payment:T.Z,configuration:h.Z,appSettings:m.Z,videoCards:O.Z,shareOverlay:E.Z,fullScreenModal:x.Z,comments:_.Z,hydratedData:L.I6,playback:I.ZP,controllerState:R.Z})}},26710:(e,t,n)=>{"use strict";n.d(t,{Y:()=>v,A:()=>m});var r=n(27762),o=n.n(r),i=n(60042),s=n.n(i);const a="I7i1mL",l="qWNuNp";var c=n(78951),u=n(19093),d=n(96498);const p=e=>{const t=document.createElement("link");t.rel="preconnect",t.href=e,document.head.appendChild(t)};let h=!1;const m=()=>{if(h)return;const e=["https://www.youtube-nocookie.com","https://www.google.com","https://googleads.g.doubleclick.net","https://static.doubleclick.net"];for(const t of e)p(t);h=!0};let f=null;const g=e=>{let{isVideoPlayRequested:t,src:n,onPlay:o,onPause:i,onEnd:s,onIframeRef:a,onPlayBlocked:l,onLoad:p,locale:h,mobileMode:m,showControls:g}=e;const v=(0,r.useRef)(!1),y=(0,r.useRef)(null),b=(0,r.useRef)(null),[E,S]=(0,r.useState)(!1),C=(0,r.useRef)(!1),w=(0,u.L)(),P=(0,r.useCallback)((()=>{if(C.current)return;const e=b.current;e&&(e.onload=async()=>{await(f||(f=Promise.race([new Promise((e=>{window.onYouTubeIframeAPIReady=e})),new Promise((e=>{window.YT&&window.YT.ready(e)}))]),(0,c.V)("https://www.youtube.com/iframe_api"),f)),((e,t)=>{new window.YT.Player(e,{events:t})})(e,{onReady:e=>{let{target:t}=e;y.current=t,t.getPlayerState()===YT.PlayerState.PLAYING&&o(),S(!0)},onAutoplayBlocked:()=>{w.captureMessage("autoplay blocked"),v.current||(l(),v.current=!0)},onStateChange:e=>{let{data:t}=e;switch(t){case YT.PlayerState.PLAYING:o();break;case YT.PlayerState.PAUSED:i();break;case YT.PlayerState.ENDED:s();break;case YT.PlayerState.UNSTARTED:p()}}})},e.setAttribute("src",(e=>{let{src:t,mobileMode:n,showControls:r,locale:o,shouldAutoplay:i}=e;const{origin:s}=window.location,a=new URL(t,window.location.href);return a.protocol="https",a.searchParams.set("enablejsapi","1"),a.searchParams.set("hl",o),a.searchParams.set("rel","0"),a.searchParams.set("origin",s),i&&a.searchParams.set("autoplay","1"),a.host="www.youtube-nocookie.com",n&&a.searchParams.set("playsinline","1"),r||a.searchParams.set("controls","0"),a.href})({src:n,mobileMode:m,showControls:g,locale:h,shouldAutoplay:t&&!(0,d.Z)()})),a(e),C.current=!0)}),[n,m,g,h,t,s,a,i,o,l,p,w]);return(0,r.useEffect)((()=>{!C.current&&(0,d.Z)()&&requestAnimationFrame(P)}),[P]),(0,r.useEffect)((()=>{if(!t)return;if(!C.current)return void P();const e=y.current;e&&E&&setTimeout((()=>e.playVideo()),0)}),[t,y,E,P]),{isReady:E,playerRef:y,iframeRef:b}},v=e=>{let{src:t,mobileMode:n=!1,showControls:i=!1,fillAllSpace:c=!1,width:u,height:d,isVideoPlayRequested:p=!1,isVideoPlaying:h=!1,isVideoPauseRequested:m=!1,isVideoPaused:f=!1,onPause:v,onPlay:y,onEnd:b,onIframeRef:E,onPlayBlocked:S,onLoad:C,locale:w="en",muted:P=!1,loop:I=!1}=e;const O=m||p||h||f?0:-1,{isReady:T,playerRef:N,iframeRef:A}=g({isVideoPlayRequested:p,src:t,mobileMode:n,showControls:i,locale:w,onEnd:b,onIframeRef:E,onPause:v,onPlay:y,onPlayBlocked:S,onLoad:C});return(e=>{let{playerRef:t,isVideoPauseRequested:n,isReady:o}=e;(0,r.useEffect)((()=>{const e=t.current;e&&o&&n&&e.pauseVideo()}),[n,t,o])})({playerRef:N,isVideoPauseRequested:m,isReady:T}),(e=>{let{playerRef:t,muted:n,isReady:o}=e;(0,r.useEffect)((()=>{const e=t.current;e&&o&&(n?e.mute():e.unMute())}),[n,t,o])})({playerRef:N,muted:P,isReady:T}),(e=>{let{playerRef:t,loop:n,isReady:o}=e;(0,r.useEffect)((()=>{const e=t.current;if(e&&o)if(n){const{video_id:t}=e.getVideoData();e.loadPlaylist(t),e.setLoop(!0)}else e.setLoop(!1)}),[n,t,o])})({playerRef:N,loop:I,isReady:T}),o().createElement("iframe",{className:s()(a,{[l]:c}),width:u,height:d,tabIndex:O,loading:"lazy",ref:A,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}},28074:(e,t,n)=>{"use strict";n.d(t,{MF:()=>p,bv:()=>f,IA:()=>m});var r=n(21627),o=n(39396),i=n(75126),s=n(52907),a=n(77763),l=(n(27291),n(16005),n(14348),n(13060)),c=n(42925);const u=()=>async(e,t)=>{const n=t(),r=(0,i.F)(n);if(!r)return;if(Boolean((0,l.mJ)(n,r)))return;const o=(0,c.gO)(n);await e((0,a.t)(o,r))},d=()=>(e,t)=>{const n=t();if((0,i.p)(n)){const t=(0,i.F)(n);e((0,s.Uw)(t))}},p="CLIENT.APP_SETTINGS.SET",h=(0,r.Z)(p),m=e=>async t=>{t(h(e)),await t((async e=>{await e(u()),e(d())}))},f=e=>(t,n)=>{const r=n(),{siteUrl:i,locale:s}=(0,o.ev)(r),a={...e,siteUrl:i,locale:s};t(h(a))}},27291:(e,t,n)=>{"use strict";n.d(t,{a:()=>l,f:()=>p});var r=n(60218),o=n(70321),i=n(39396),s=n(3333);const a=(0,r.f)("SERVER.CHANNEL.GET"),l=a.NAMES,{START:c,SUCCESS:u,FAIL:d}=a,p=e=>(t,n)=>{const r={id:e},a=n(),{channelService:l}=(0,s.g)(),{channel:p,templateMetaSiteId:h}=(0,i.ev)(a);t(c(r));return(p?Promise.resolve(p):l.getInfo(e,h)).then((function(e){const n={data:(0,o.Tr)(e)};return t(u(r,n)),n}),(function(e){t(d(r,e,{analytics:{type:"error",name:"shared.channel.video.get"}}))}))}},16005:(e,t,n)=>{"use strict";n.d(t,{q:()=>d,x:()=>u});var r=n(17607),o=n.n(r),i=n(60218),s=n(39396),a=n(946),l=n(5452),c=n(3333);const u=(0,i.f)("SERVER.CHANNEL.PAYMENT"),d=function(e){return async function(t,n,r){var i;let{handlers:d}=r;const p=n(),{channelService:h}=(0,c.g)(),m=(0,l.vm)({dealInfo:(null==(i=p.hydratedData.data)||null==(i=i.channel)?void 0:i.dealInfo)||p.channelInfo.info.dealInfo}),f=(0,a.C)(p),{instance:g}=(0,s.ev)(p);if(!f||!f.id)return Promise.resolve().then((()=>t(u.SUCCESS(void 0,void 0))));if(m){const e=p.currentChannelId.currentChannelId;d.requestPricingPlanPaymentInfo(e,f.id)}const{channelVideos:{ids:v}}=p,y={id:e,options:{instance:g,items:v}};return t(u.START(y)),h.getMemberInfo(e,g).then((function(e){const n=o().get(e,"data.items",[]);if(!n.length)return t(u.SUCCESS(void 0,void 0)),e;const[r,i]=o().partition(n,(e=>!e.itemId)),s=o().get(r,"[0]"),a={videos:i.map((e=>{let{dgsInfo:t,itemId:n,listId:r}=e;return{dgsInfo:t,itemId:n,listId:r}})),channel:o().pick(s,"dgsInfo","listId","memberId","itemId")};return t(u.SUCCESS(y,a)),a}),(function(e){const n={analytics:{type:"error",name:"shared.channel.payment.get"}};return o().isError(e)?t(u.FAIL(e,null,n)):t(u.FAIL(y,e,n)),Promise.reject(e)}))}}},77763:(e,t,n)=>{"use strict";n.d(t,{X:()=>c,t:()=>h});var r=n(75608),o=n(60218),i=n(39396),s=n(3333),a=n(42925);const l=(0,o.f)("SERVER.CHANNEL.VIDEO.GET"),c=l.NAMES,{START:u,SUCCESS:d,FAIL:p}=l,h=(e,t)=>async(n,o)=>{const l=o(),c={channelId:e,videoId:t},h=(0,a.gD)(l,e),{singleVideoId:m,singleVideo:f,templateMetaSiteId:g}=(0,i.ev)(l);let v;n(u(c));const y=(0,s.g)();try{if(m===t&&f)v=f;else if(h&&!(0,r.Px)(h))v=(await y.youtubeVideosService.getYoutubeVideoById(t)).data;else try{v=(await y.channelVideos.getChannelVideoById(e,t,{params:{metaSiteId:g}})).data}catch(e){404===e.status&&(v=(await y.youtubeVideosService.getYoutubeVideoById(t)).data)}return n(d(c,v)),v}catch(e){n(p(c,e,{analytics:{type:"error",name:"shared.channel.video.get"}}))}}},80840:(e,t,n)=>{"use strict";n.d(t,{aL:()=>h,qz:()=>y});var r=n(17607),o=n.n(r),i=n(60218),s=n(75608),a=n(70321),l=n(39396),c=n(3333),u=n(91056),d=n(42925);const p=(0,i.f)("SERVER.CHANNEL.VIDEOS.LIST"),h=p.NAMES,{START:m,SUCCESS:f,FAIL:g}=p,v={sort:{order:"custom",direction:"asc"},paging:{size:1e3}},y=(e,t)=>{const n=o().merge({},v,t);return async(t,r)=>{const o=r(),i={id:e,options:n},{channel:p,channelVideos:h,templateMetaSiteId:v}=(0,l.ev)(o);let y;t(m(i));const b=(0,c.g)(),E=p??(0,d.gD)(o,e);try{if(E&&h)y=h;else if(E&&!(0,s.Px)(E))y=await b.youtubeVideosService.listYoutubeChannelVideos(E,n);else if(y=await b.channelVideos.listChannelVideos({...n,channelId:e,templateMetaSiteId:v,mediaType:u.w.SECURE_VIDEO}),!y.data.length){const t=await b.channelService.getInfo(e);t.externalId&&(y=await b.youtubeVideosService.listYoutubeChannelVideos({externalId:t.externalId,urlType:t.urlType},n))}const r={paging:y.paging,sort:y.sort,data:(0,a.mK)(y.data)};return t(f(i,r)),r}catch(e){t(g(i,e,{analytics:{type:"error",name:"shared.channel.videos.list"}}))}}}},78325:(e,t,n)=>{"use strict";n.d(t,{B_:()=>l,RC:()=>o,bR:()=>i,bq:()=>c,fe:()=>s,kV:()=>a});var r=n(21627);const o="CLIENT.COMMENTS.SET_OPEN",i="CLIENT.COMMENTS.SET_HAS_NEW",s="CLIENT.COMMENTS.SET_OPEN_ON_LOAD",a=(0,r.Z)(o),l=(0,r.Z)(i),c=(0,r.Z)(s)},4306:(e,t,n)=>{"use strict";n.d(t,{g:()=>i,v:()=>o});var r=n(21627);const o="UPDATE_CONTROLLER_STATE",i=(0,r.Z)(o)},95969:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(21627);const o="SET_CURRENT_CHANNEL_ID";(0,r.Z)(o)},23970:(e,t,n)=>{"use strict";n.d(t,{Ep:()=>l,aL:()=>i,xZ:()=>a});var r=n(21627),o=n(43753);const i={OPEN_FULL_SCREEN_MODAL_VIDEO:"CLIENT.FULL_SCREEN_MODAL.VIDEO.OPEN",CLOSE_FULL_SCREEN_MODAL_VIDEO:"CLIENT.FULL_SCREEN_MODAL.VIDEO.CLOSE"},s=(0,r.Z)(i.OPEN_FULL_SCREEN_MODAL_VIDEO),a=(0,r.Z)(i.CLOSE_FULL_SCREEN_MODAL_VIDEO),l=function(e,t,n,r){return void 0===n&&(n=!1),i=>{const a=e?`#/channel/${e}/video/${t}?autoplay=${n}`:`#/video/${t}?autoplay=${n}`;i((0,o.X1)(a,r)),i(s())}}},81098:(e,t,n)=>{"use strict";n.d(t,{CQ:()=>l,Kz:()=>h,UX:()=>d,YU:()=>u,aL:()=>a,dt:()=>p,r:()=>m});var r=n(21627),o=n(66060),i=n(47944),s=n(14604);const a={PLAY:"CLIENT.VIDEO.PLAYBACK_STATUS.SET_PLAY",REQUEST_PLAY:"CLIENT.VIDEO.PLAYBACK_STATUS.REQUEST_PLAY",ABORT_PLAY:"CLIENT.VIDEO.PLAYBACK_STATUS.ABORT_PLAY",PAUSE:"CLIENT.VIDEO.PLAYBACK_STATUS.SET_PAUSE",REQUEST_PAUSE:"CLIENT.VIDEO.PLAYBACK_STATUS.REQUEST_PAUSE",RESET:"CLIENT.VIDEO.PLAYBACK_STATUS.RESET",END:"CLIENT.VIDEO.PLAYBACK_STATUS.SET_END",SET:"CLIENT.VIDEO.PLAYBACK_STATUS.SET"},l=(0,r.Z)(a.REQUEST_PLAY),c=(0,r.Z)(a.REQUEST_PAUSE),u=(0,r.Z)(a.ABORT_PLAY),d=(0,r.Z)(a.RESET),p=(0,r.Z)(a.SET),h=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),r=>{r((0,o.Zj)(t)),r(l(e)),r((0,i.b)(n))}},m=()=>(e,t)=>{const n=t();(0,s.BW)(n)&&e(c())}},43677:(e,t,n)=>{"use strict";n.d(t,{GP:()=>s,P_:()=>c,Pj:()=>u,cW:()=>l,jp:()=>i,v2:()=>a});var r=n(21627),o=n(23144);const i={UPDATE_SEARCH:"CLIENT.SEARCH.UPDATE_SEARCH",RESET_SEARCH:"CLIENT.SEARCH.RESET_SEARCH"},s=(0,r.Z)(i.UPDATE_SEARCH),a=(0,r.Z)(i.RESET_SEARCH),l=e=>s({searchQuery:e,searchQueryField:o.O.QUERY}),c=e=>s({searchQuery:e,searchQueryField:o.O.TAG}),u=e=>s({searchQuery:e,searchQueryField:o.O.CATEGORY})},52907:(e,t,n)=>{"use strict";n.d(t,{At:()=>o,Fn:()=>a,Uw:()=>s});var r=n(21627);const o={SET:"CLIENT.SELECTED_VIDEO.SET",RESET:"CLIENT.SELECTED_VIDEO.RESET"},i=(0,r.Z)(o.SET),s=e=>(t,n)=>{n().selectedVideoId!==e&&t(i(e))},a=(0,r.Z)(o.RESET)},31255:(e,t,n)=>{"use strict";n.d(t,{lu:()=>s,op:()=>i,r:()=>o,sx:()=>a});var r=n(21627);const o={TOGGLE_SHARE_CHANNEL:"CLIENT.SHARE_OVERLAY.TOGGLE_SHARE_CHANNEL",TOGGLE_SHARE_VIDEO:"CLIENT.SHARE_OVERLAY.TOGGLE_SHARE_VIDEO",CLOSE:"CLIENT.SHARE_OVERLAY.CLOSE"},i=(0,r.Z)(o.TOGGLE_SHARE_CHANNEL),s=(0,r.Z)(o.TOGGLE_SHARE_VIDEO),a=(0,r.Z)(o.CLOSE)},66258:(e,t,n)=>{"use strict";n.d(t,{p:()=>i,r:()=>o});var r=n(21627);const o="WIDGET.VIDEO_CARDS.CLEANUP",i=(0,r.Z)(o)},84363:(e,t,n)=>{"use strict";n.d(t,{T:()=>g,a:()=>f});var r=n(17607),o=n.n(r),i=n(60218),s=n(22060),a=n(39396),l=n(3333);const c=(0,i.f)("SERVER.VIDEO-CARDS.GET"),{START:u,SUCCESS:d,FAIL:p}=c,h=[s.VIDEO_CARD_TYPES.CHANNEL,s.VIDEO_CARD_TYPES.VIDEO,s.VIDEO_CARD_TYPES.RECENT_VIDEO],m=e=>{let{cardsData:t,fallbackUrl:n,instance:r}=e;const{publicWidgetsService:i}=(0,l.g)();return o().map(t,(e=>(e=>o().includes(h,e.type))(e)?{...e,url:e.actionItemId?i.buildVideoCardsDeeplinkUrl({channelId:e.actionListId||"",videoId:e.actionItemId,instance:r,fallbackUrl:n,host:""}):i.buildChannelCardsDeeplinkUrl({channelId:e.actionListId||"",instance:r,fallbackUrl:n,host:""})}:e))},f=c.NAMES,g=function(e,t){return function(n,r){const o={id:t},i=r(),s=(0,a.s8)(i),c=(0,a.tf)(i),{videoService:h}=(0,l.g)();return n(u(o)),n((()=>h.getVideoCardsList(e,t))).then((e=>m({cardsData:e,fallbackUrl:c,instance:s}))).then((e=>(n(d(o,e)),e))).catch((e=>{n(p(o,e,{analytics:{type:"error",name:"shared.video-cards.get"}}))}))}}},45375:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,a:()=>o});var r=n(21627);const o={UPDATE_VIDEO_LIVE_STATUS:"CLIENT.VIDEOS.UPDATE_LIVE_STATUS"},i=(0,r.Z)(o.UPDATE_VIDEO_LIVE_STATUS)},14078:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9018);const o=(0,n(90313).p)({createRootReducer:r.Z,createRootReducerPath:9018})},60218:(e,t,n)=>{"use strict";n.d(t,{f:()=>l});var r=n(17607),o=n.n(r),i=n(21627);function s(e,t){const n={params:e};return t&&(n.response=t),n}function a(e,t,n){if(void 0===n&&(n=null),n&&o().isArray(n.analytics))return n;if(n&&n.analytics&&!n.analytics.payload){const{type:e,...t}=n.analytics;n.analytics={type:e,payload:t}}return n}function l(e){const t=`${e}.START`,n=`${e}.SUCCESS`,r=`${e}.FAIL`;return{NAMES:{START:t,SUCCESS:n,FAIL:r},START:(0,i.Z)(t,s,a),SUCCESS:(0,i.Z)(n,s,a),FAIL:(0,i.Z)(r,s,a)}}},70321:(e,t,n)=>{"use strict";n.d(t,{Tr:()=>s,mK:()=>i});var r=n(6899),o=n(94804);function i(e){return(0,r.Fv)(e,o.rU)}function s(e){return(0,r.Fv)(e,o.CE)}},94804:(e,t,n)=>{"use strict";n.d(t,{CE:()=>o,Rk:()=>s,rU:()=>a});var r=n(6899);const o=new r.fK.Entity("channels"),i=(new r.fK.Entity("channels",{},{idAttribute:"listId"}),[o]),s=new r.fK.Entity("videos"),a=[s];o.define({featuredItem:s}),s.define({usedInLists:i})},39396:(e,t,n)=>{"use strict";n.d(t,{Pt:()=>p,LG:()=>E,Qp:()=>N,zj:()=>g,tf:()=>O,ev:()=>m,s8:()=>v,Sg:()=>P,Kd:()=>S,LC:()=>C,hx:()=>y,$2:()=>T,sq:()=>b,OP:()=>A,$M:()=>I,I6:()=>h,cX:()=>d});var r=n(17607),o=n.n(r),i=n(97698),s=n(21627),a=n(24220),l=n(34406);l.env.AVAILABLE_LOCALES;l.env.PUBLIC_PATH;const c="CLIENT.HYDRATED_DATA.SET",u="CLIENT.HYDRATED_DATA.CLEAR",d=(0,s.Z)(c),p=(0,s.Z)(u),h=(0,a.Z)({[c]:(e,t)=>{let{payload:n}=t;return{...e,data:o().merge({},e.data,n)}},[u]:e=>({...e,data:o().omit(e.data,["channelVideos","singleVideo","widgetData"])})},{isFetching:!1,data:{}}),m=e=>e.hydratedData.data,f=e=>t=>o().get(t.hydratedData.data,e),g=f("currentPageId"),v=f("instance"),y=f("siteOwnerId"),b=f("currentSiteUser.id"),E=f("biToken"),S=f("locale"),C=f("metaSiteId"),w=f("templateMetaSiteId"),P=f("instanceId"),I=(0,i.P1)(w,(e=>Boolean(e))),O=f("fullSiteUrl"),T=f("siteUrl"),N=f("compId"),A=f("visitorId")},58619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(74081),o=n(24220),i=n(16005),s=n(4306);const a=(0,o.Z)({[i.x.NAMES.SUCCESS]:(e,t)=>{var n;let{payload:r}=t;return{...e,...null==(n=r.response)?void 0:n.channel}},[s.v]:(e,t)=>{let{payload:n}=t;const{hasAccessToChannelByPricingPlan:r}=n;return{...e,hasAccessToChannelByPricingPlan:r}}},{hasAccessToChannelByPricingPlan:!1});var l=n(17607),c=n.n(l),u=n(27291);const d=(0,o.Z)({[u.a.SUCCESS]:(e,t)=>{var n;let{payload:r}=t;return c().values(null==(n=r.response)?void 0:n.data.entities.channels)[0]||e}},{}),p=(0,r.UY)({paymentInfo:a,info:d})},42066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(74081),o=n(24220),i=n(80840);const s=(0,o.Z)({[i.aL.START]:()=>[],[i.aL.SUCCESS]:(e,t)=>{var n;let{payload:r}=t;return(null==(n=r.response)?void 0:n.data.result)||[]}},[]),a=function(e){return void 0===e&&(e=0),e-1},l=(0,o.Z)({[i.aL.START]:function(e){return void 0===e&&(e=0),e+1},[i.aL.SUCCESS]:a,[i.aL.FAIL]:a},0),c=(0,r.UY)({ids:s,activeRequests:l})},89829:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(17607),o=n.n(r),i=n(24220),s=n(27291),a=n(16005);const l=(0,i.Z)({[s.a.SUCCESS]:(e,t)=>{var n;let{payload:r}=t;const i=null==(n=r.response)?void 0:n.data.entities.channels;return i?o().merge({},e,i):e},[a.x.NAMES.SUCCESS]:(e,t)=>{var n;let{payload:r}=t;const o=null==(n=r.response)?void 0:n.channel;if(o){const{dgsInfo:t}=o,n={...e},r=o.listId;return n[r]={...n[r],dgsInfo:t},n}return e}},{})},18417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(24220),o=n(78325);const i=(0,r.Z)({[o.RC]:(e,t)=>{let{payload:n}=t;return{...e,isOpen:n,openOnLoad:!n&&e.openOnLoad}},[o.bR]:(e,t)=>{let{payload:n}=t;return{...e,hasNewComments:n}},[o.fe]:(e,t)=>{let{payload:n}=t;return{...e,openOnLoad:n}}},{isOpen:!1,hasNewComments:!1,openOnLoad:!1})},25602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(24220),o=n(4306);const i=(0,r.Z)({[o.v]:(e,t)=>{let{payload:n}=t;return{...e,...n}}},{})},95933:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(17607),o=n.n(r),i=n(24220),s=n(8349),a=n(27291),l=n(95969);const c=(0,i.Z)({[l.x]:(e,t)=>{let{payload:n}=t;return{prevChannelIdFromSettings:e.currentChannelId,currentChannelId:n}},[a.a.FAIL]:(e,t)=>{let{payload:n}=t;return-7710===o().get(n,"response.error.code")?{...e,currentChannelId:s.Z.id}:e}},{currentChannelId:null,prevChannelIdFromSettings:void 0})},36894:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(24220);const o="SET_CURRENT_VIDEO_ID",i=((0,n(21627).Z)(o),(0,r.Z)({[o]:(e,t)=>{let{payload:n}=t;return n}},null))},95715:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(17607),o=n.n(r),i=n(24220),s=n(80840),a=n(95969);const l=(0,i.Z)({[s.aL.SUCCESS]:(e,t)=>{let{payload:n}=t;return e||o().get(n,"response.data.result[0]",null)},[a.x]:()=>null},null)},62768:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(24220),o=n(23970);const i=(0,r.Z)({[o.aL.OPEN_FULL_SCREEN_MODAL_VIDEO]:()=>({lightbox:!0}),[o.aL.CLOSE_FULL_SCREEN_MODAL_VIDEO]:()=>({lightbox:!1})},{lightbox:!1})},665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(24220).Z)({},!1)},20054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(24220),o=n(52907),i=n(81098);function s(){return!0}const a=(0,r.Z)({[o.At.SET]:s,[o.At.RESET]:function(){return!1},[i.aL.REQUEST_PLAY]:s},!1)},19891:(e,t,n)=>{"use strict";n.d(t,{D0:()=>x,ES:()=>C,I6:()=>T,Lc:()=>O,ZP:()=>L,Zj:()=>A,bl:()=>I,hz:()=>P,lZ:()=>N,yS:()=>w});var r=n(21627),o=n(24220),i=n(59332),s=n(52907);const a="CLIENT.PLAYBACK.ABORT_PLAY",l="CLIENT.PLAYBACK.REQUEST_PLAY",c="CLIENT.PLAYBACK.REQUEST_PAUSE",u="CLIENT.PLAYBACK.SET_PLAYING",d="CLIENT.PLAYBACK.SET_PAUSED",p="CLIENT.PLAYBACK.SET_ENDED",h="CLIENT.PLAYBACK.SET_MUTED",m="CLIENT.PLAYBACK.SET_INITIAL",{INITIAL:f,PLAY_ABORTED:g,PLAY_REQUESTED:v,PAUSE_REQUESTED:y,PLAYING:b,PAUSED:E,ENDED:S}=i.VIDEO_PLAYBACK_STATUSES,C=(0,r.Z)(l),w=(0,r.Z)(a),P=(0,r.Z)(c),I=(0,r.Z)(m),O=(0,r.Z)(u),T=(0,r.Z)(d),N=(0,r.Z)(p),A=(0,r.Z)(h),x=function(e,t){return void 0===t&&(t=!1),n=>{n((0,s.Uw)(e)),n(A(t)),n(C(e))}},_=e=>(t,n)=>{let{payload:r}=n;return{...t,videos:{...t.videos,[r]:e}}},L=(0,o.Z)({[a]:_(g),[l]:_(v),[c]:_(y),[m]:_(f),[u]:_(b),[d]:_(E),[p]:_(S),[h]:(e,t)=>{let{payload:n}=t;return{...e,muted:n}}},{muted:!1,videos:{}})},9325:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(24220),o=n(23144),i=n(80840),s=n(43677);const a={searchQuery:"",searchQueryField:o.O.QUERY,isSearching:!1},l=e=>({...e,isSearching:!1}),c=(0,r.Z)({[s.jp.UPDATE_SEARCH]:(e,t)=>{let{payload:n}=t;const{searchQuery:r,searchQueryField:o}=n;return{...e,searchQuery:r,searchQueryField:o,isSearching:r!==e.searchQuery||o!==e.searchQueryField}},[s.jp.RESET_SEARCH]:()=>a,[i.aL.SUCCESS]:l,[i.aL.FAIL]:l},a)},55e3:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(24220),o=n(52907),i=n(81098);const s=(0,r.Z)({[o.At.SET]:function(e,t){let{payload:n}=t;return n||null},[o.At.RESET]:function(){return null},[i.aL.REQUEST_PLAY]:function(e,t){let{payload:n}=t;return n||e}},null)},57026:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(24220),o=n(14111),i=n(31255);const s={isOpen:!1,shareMode:null},a=(0,r.Z)({[i.r.TOGGLE_SHARE_CHANNEL]:e=>({...e,isOpen:!e.isOpen,shareMode:o.L.CHANNEL}),[i.r.TOGGLE_SHARE_VIDEO]:e=>({...e,isOpen:!e.isOpen,shareMode:o.L.VIDEO}),[i.r.CLOSE]:()=>s},s)},45900:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(24220),o=n(84363),i=n(66258),s=n(16323),a=n(60901),l=n(53458);const c=[],u=(0,r.Z)({[o.a.SUCCESS]:(e,t)=>{let{payload:n}=t;return n.response.map((e=>{if(e.dateStartLive){const t=new Date(e.dateStartLive).toLocaleTimeString([],{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});e.liveLabel=`${(0,a.t)("widget.video-cards.live-label")}: ${t}`}return e.type!==l.Lx.Video&&e.type!==l.Lx.RecentVideo||(e.itemType===l.qG.ItemLive?e.buttonLabel=(0,a.t)("widget.video-cards.watch-live"):e.buttonLabel=(0,a.t)("widget.video-cards.watch-next")),e.type===l.Lx.Channel&&(e.buttonLabel=(0,a.t)("widget.video-cards.watch-more")),{...e,thumbnailUrl:(0,s.N)({url:e.thumbnailUrl,width:292,height:292,params:{lg:1}})}}))},[i.r]:()=>c},c)},6703:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(17607),o=n.n(r),i=n(24220),s=n(45375),a=n(27291),l=n(80840),c=n(16005),u=n(77763);const d=(0,i.Z)({[s.a.UPDATE_VIDEO_LIVE_STATUS]:(e,t)=>{let{payload:n}=t;return{...e,[n.id]:n}},[l.aL.SUCCESS]:(e,t)=>{var n;let{payload:r}=t;const o=null==(n=r.response)?void 0:n.data.entities.videos,i={...e};for(const[e,t]of Object.entries(o||{}))i[e]={...i[t.itemId],...t};return i},[a.a.SUCCESS]:(e,t)=>{var n;let{payload:r}=t;const i=null==(n=r.response)?void 0:n.data.entities.videos;return i?o().merge({},e,i):e},[c.x.NAMES.SUCCESS]:(e,t)=>{var n;let{payload:r}=t;const o=null==(n=r.response)?void 0:n.videos;if(o){const t={...e};for(const e of o)e.itemId&&(t[e.itemId]={...t[e.itemId],...e});return t}return e},[u.X.SUCCESS]:(e,t)=>{let{payload:n}=t;const r=n.response;return r?o().merge({},e,{[r.id]:r}):e}},{})},9018:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(74081),o=n(23282),i=n(6703),s=n(89829),a=n(42066),l=n(12574),c=n(30184),u=n(95933),d=n(36894),p=n(9325),h=n(58619),m=n(95715),f=n(57026),g=n(95493),v=n(55e3),y=n(39709),b=n(20054),E=n(45900),S=n(83691),C=n(42577),w=n(665),P=n(62768),I=n(18417),O=n(39396),T=n(19891),N=n(25602);const A=e=>{let{history:t}=e;return(0,r.UY)({router:(0,o.iz)(t),search:p.Z,entities:(0,r.UY)({videos:i.Z,channels:s.Z}),channelVideos:a.Z,currentChannelId:u.Z,currentVideoId:d.Z,channelInfo:h.Z,firstChannelVideoId:m.Z,lazyChannelVideos:C.Z,isLightbox:w.Z,videoUrlsCache:g.Z,selectedVideoId:v.Z,player:y.Z,isVideosTouched:b.Z,payment:S.Z,configuration:l.Z,appSettings:c.Z,videoCards:E.Z,shareOverlay:f.Z,fullScreenModal:P.Z,comments:I.Z,hydratedData:O.I6,playback:T.ZP,controllerState:N.Z})}},53458:(e,t,n)=>{"use strict";n.d(t,{xu:()=>r.X,DE:()=>a.i,qG:()=>i,sT:()=>s.i,Lx:()=>l,qk:()=>o.V});var r=n(5916),o=n(77294);let i=function(e){return e.Item="item",e.ItemScheduled="item-scheduled",e.ItemLive="item-live",e.ItemLiveFinalize="item-live-finalize",e}({});var s=n(27711),a=n(77944);let l=function(e){return e.Channel="channel",e.Video="video",e.RecentVideo="recent-video",e.Product="product",e.Social="social",e.Custom="custom",e}({})},42925:(e,t,n)=>{"use strict";n.d(t,{dT:()=>i,gD:()=>a,gO:()=>s});var r=n(17607),o=n.n(r);const i=e=>o().get(e,"channelInfo.info.id"),s=e=>e.currentChannelId.currentChannelId,a=(e,t)=>e.entities.channels[t]},946:(e,t,n)=>{"use strict";n.d(t,{C:()=>l,v:()=>c});var r=n(17607),o=n.n(r),i=n(97698),s=n(39396),a=n(65925);function l(e){const t=a.bK(e),{currentSiteUser:n}=(0,s.ev)(e);return t?n:null}const c=(0,i.P1)(l,(e=>o().get(e,"email","")))},38761:(e,t,n)=>{"use strict";n.d(t,{L_:()=>h,UT:()=>y,WQ:()=>p,Xm:()=>b,aC:()=>v,ou:()=>m,sx:()=>E,tG:()=>S,w:()=>g,yA:()=>f});var r=n(59332);const{INITIAL:o,PLAY_REQUESTED:i,PAUSE_REQUESTED:s,PLAYING:a,PAUSED:l,ENDED:c,PLAY_ABORTED:u}=r.VIDEO_PLAYBACK_STATUSES,d=e=>(t,n)=>{const r=t.playback.videos[n];return r?r===e:e===o},p=d(o),h=d(i),m=d(s),f=d(a),g=d(u),v=d(l),y=d(c),b=e=>e.playback.muted,E=(e,t)=>d(i)(e,t)||d(a)(e,t),S=(e,t)=>d(s)(e,t)||d(l)(e,t)},14254:(e,t,n)=>{"use strict";n.d(t,{GT:()=>d,W3:()=>a,Wg:()=>l,cy:()=>u,sE:()=>c});var r=n(97698),o=n(39396),i=n(91747),s=n(62051);const a=e=>e.shareOverlay.shareMode,l=e=>e.shareOverlay.isOpen,c=(0,r.P1)(o.Sg,o.Qp,o.zj,((e,t,n)=>({instanceId:e,componentId:t,sitePageId:n}))),u=(0,r.P1)(((e,t)=>t.videoItem),o.Qp,o.tf,((e,t,n)=>((e,t)=>e?(0,i.T)(e,t):null)(e,{compId:t,siteUrl:n}))),d=(0,r.P1)(o.Qp,o.tf,((e,t)=>(0,s.T)({siteUrl:t,compId:e})))},82053:(e,t,n)=>{"use strict";n.d(t,{bb:()=>d,qf:()=>p,w$:()=>m});var r=n(97698),o=n(56725),i=n(87077),s=n(27711),a=n(99968),l=n(96918),c=n(946),u=n(5476);const d=e=>e.currentVideoId,p=e=>!!e.currentVideoId,h=(0,r.P1)([e=>(0,o.qy)(e)&&(0,o.bv)(e)===s.i.TRAILER,e=>(0,o.bv)(e)===s.i.FIRST_20_SEC,e=>{var t;return(null==(t=e.autogeneratedTrailer)?void 0:t.status)===a.Y.READY&&(0,o.bv)(e)===s.i.AUTOGENERATED}],((e,t,n)=>e||t||n)),m=(0,r.P1)([u.g,i.js,c.C],((e,t,n)=>!(!e||!t)&&((0,l.n2)(t,e,n)||h(e))))},13060:(e,t,n)=>{"use strict";n.d(t,{$u:()=>g,IM:()=>m,JA:()=>v,Ll:()=>f,Qj:()=>y,mJ:()=>h});var r=n(17607),o=n.n(r),i=n(97698),s=n(6899),a=n(94804),l=n(97318),c=n(53458);function u(e,t){return t?(t.memberOnly=!!(0,l.Ns)(t)&&t.memberOnly,t.allowDownload=!(!(0,l.Ns)(t)&&!(0,l.qR)(t))&&t.allowDownload,o().isEmpty(t.previewType)&&(t.previewType=(0,l.Ns)(t)?c.sT.NONE:c.sT.FIRST_20_SEC),t):t}const d=(0,i.P1)((e=>e.entities),o().property("videos")),p=(0,i.P1)(d,o().size);function h(e,t){return null!==t?d(e)[t]:void 0}const m=(0,i.P1)(p,(e=>e>1)),f=(0,i.P1)([e=>e,h],((e,t)=>u(0,(0,s.cY)(t,e.entities,a.Rk)))),g=(0,i.P1)([e=>e,d],((e,t)=>o().mapValues(t,o().partial(u,e)))),v=(0,i.P1)([g,(e,t)=>t],o().pick),y=(0,i.P1)([v,(e,t,n)=>n],o().omit)},75608:(e,t,n)=>{"use strict";n.d(t,{$_:()=>l,Px:()=>a,cT:()=>c,jG:()=>d,z3:()=>u});var r=n(17607),o=n.n(r),i=n(53458),s=n(8349);function a(e){return e.channelType===i.xu.CHANNEL}function l(e){return e.channelType===i.xu.YOUTUBE_FEED}function c(e){const t=o().get(e,"statsInfo.tags");return!o().isEmpty(t)}function u(e){return e.videosCount>0}function d(e){return o().includes([s.Z.id,s.X.id],e)}},1831:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(27762),o=n.n(r),i=n(22483),s=n(53458),a=n(74995);const l=e=>{let{id:t}=e;const{t:n}=(0,a.$)();return o().createElement(o().Fragment,null,n(t))};function c(e,t){const{currency:n,price:r,type:a}=t;return a===s.DE.PLAN?o().createElement(l,{id:e}):o().createElement(i.k,{currency:n,price:r,messageId:e})}},96498:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=()=>/iPhone|iPad|iPod/i.test(navigator.userAgent)||["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},60901:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,t:()=>r});let r=e=>e;function o(e){r=e}},34423:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(53842).T4},28624:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});const r="BI_EVENT"},27179:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r=n(28624),o=n(39396),i=n(76465);const s=(0,n(46310).DM)("sendBiEvent",((e,t)=>(n,s)=>{n((0,i.M)(r.Q,{eventName:e,params:t,targetCompId:(0,o.Qp)(s())}))}))},98529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(77028),o=n.n(r),i=n(26290),s=n.n(i),a=n(27762),l=n.n(a),c=n(17607),u=n.n(c),d=n(60042),p=n.n(d),h=n(44714),m=n(3729),f=n(11752);const g="KVjiDK",v="bu0moo",y="cq6MeD";var b;const E=(0,h.$j)((e=>({isRounded:(0,m.as)(e)})))((b=class extends l().Component{render(){const{isRounded:e,disableRoundBorders:t,disableTheme:n,className:r}=this.props,i=u().omit(this.props,"isRounded","styles","dispatch","disableRoundBorders","disableTheme"),s=p()(r,g,{[v]:n,[y]:!t&&e});return l().createElement(f.Me,o()({},i,{className:s}))}},s()(b,"defaultProps",{disableRoundBorders:!1,disableTheme:!1}),b))},11752:(e,t,n)=>{"use strict";n.d(t,{Me:()=>m,Qj:()=>g,KM:()=>v,kq:()=>y});var r=n(77028),o=n.n(r),i=n(26290),s=n.n(i),a=n(27762),l=n.n(a),c=n(17607),u=n.n(c),d=n(60042),p=n.n(d);const h={button:"dPrw9E",disabled:"BE6GdQ","rounded-rect":"YEcAhS",roundedRect:"YEcAhS","link-button":"cOMxG1",linkButton:"cOMxG1","link-button-new":"AdBHus",linkButtonNew:"AdBHus",small:"TBDppJ","link-premium-button":"V_KIoe",linkPremiumButton:"V_KIoe","primary-button":"eNYUrI",primaryButton:"eNYUrI","secondary-button":"xAV0wH",secondaryButton:"xAV0wH","danger-primary-button":"DFXO5S",dangerPrimaryButton:"DFXO5S","danger-secondary-button":"lOcdao",dangerSecondaryButton:"lOcdao","premium-primary-button":"qDTQRc",premiumPrimaryButton:"qDTQRc","premium-secondary-button":"dkrp9V",premiumSecondaryButton:"dkrp9V","transparent-white-button":"fqNH5a",transparentWhiteButton:"fqNH5a"};class m extends l().Component{constructor(){super(...arguments),s()(this,"handleLinkClick",(e=>{e.preventDefault(),this.props.onClick(e)}))}render(){const{label:e,ariaLabel:t,children:n,roundedRect:r,getRef:i,renderAsLink:s,dataHook:a,isFocusable:c,className:d}=this.props,m=p()(d,h.button,{[h["rounded-rect"]]:r}),f=u()({}).assign(this.props).assign({children:e||n,className:m,ref:i,"aria-label":t,tabIndex:c?0:-1,"data-hook":a}).omit(["ariaLabel","styles","label","roundedRect","renderAsLink","getRef","intl","settings","biEvent","biError","dataHook","isFocusable"]).value();return s?l().createElement("a",o()({href:""},f,{onClick:this.handleLinkClick})):l().createElement("button",f)}}function f(e){const t=e.split(" ").map((e=>h[e]));class n extends l().PureComponent{render(){const e=u().omit(this.props,"styles");return l().createElement(m,o()({},e,{className:p()(e.className,t)}))}}return s()(n,"displayName",u().flow(u().camelCase,u().upperFirst)(e)),n}s()(m,"defaultProps",{isFocusable:!0,roundedRect:!1,renderAsLink:!1,onClick:u().noop,getRef:u().noop});const g=f("link-button"),v=f("primary-button"),y=f("secondary-button")},97906:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(77028),o=n.n(r),i=n(26290),s=n.n(i),a=n(27762),l=n.n(a),c=n(17607),u=n.n(c),d=n(60042),p=n.n(d),h=n(11752),m=n(16951);const f={generic:"XC3wym"};class g extends l().Component{get label(){const{label:e,children:t}=this.props,n=u().isUndefined(e)?t:e;return n?l().createElement("span",{className:f.text},n):null}render(){const{Button:e,name:t,size:n,iconClassName:r,className:i,dataHook:s,ariaLabel:a}=this.props,c=u().omit(this.props,"intl","styles","settings","Button","name","size","label","children","className","dataHook","iconClassName"),d=this.label,g=p()({[f.generic]:e===h.Me},i);return l().createElement(e,o()({},c,{ariaLabel:a,dataHook:s,className:g}),l().createElement(m.Z,{name:t,size:n,className:r}),d)}}s()(g,"defaultProps",{Button:h.Me})},16951:(e,t,n)=>{"use strict";n.d(t,{M:()=>g,Z:()=>f});var r=n(77028),o=n.n(r),i=n(26290),s=n.n(i),a=n(17607),l=n.n(a),c=n(60042),u=n.n(c),d=n(27762),p=n.n(d);const h={icon:"N8sBFS","rounded-icon":"LMWnWA",roundedIcon:"LMWnWA"},m={...h,"icon--feedback":"ioErGX",iconFeedback:"ioErGX","icon--help":"umDxd0",iconHelp:"umDxd0","icon--edit":"TxmD0Z",iconEdit:"TxmD0Z","icon--add":"Kk9rBn",iconAdd:"Kk9rBn","icon--toggle-on":"Sr3CGq",iconToggleOn:"Sr3CGq","icon--toggle-off":"GKBN46",iconToggleOff:"GKBN46","icon--close":"Bc80fF",iconClose:"Bc80fF","icon--eye":"Y6jY2P",iconEye:"Y6jY2P","icon--add-circle":"uYfOAU",iconAddCircle:"uYfOAU","icon--check":"s50AFv",iconCheck:"s50AFv","icon--arrow-upload":"CMaUJG",iconArrowUpload:"CMaUJG","icon--exclamation":"yWx2_e",iconExclamation:"yWx2_e","icon--triangle-right":"sp9lzM",iconTriangleRight:"sp9lzM","icon--triangle-down":"fymoL4",iconTriangleDown:"fymoL4","icon--remove":"EE8rcQ",iconRemove:"EE8rcQ","icon--remove-transparent":"lWkNRi",iconRemoveTransparent:"lWkNRi","icon--exit":"ig7GXj",iconExit:"ig7GXj","icon--video-small":"qP8orR",iconVideoSmall:"qP8orR","icon--videos-small":"TpC4l0",iconVideosSmall:"TpC4l0","icon--stats":"CV8cZw",iconStats:"CV8cZw","icon--search-long":"N_Ytl4",iconSearchLong:"N_Ytl4","icon--info":"VrE7NH",iconInfo:"VrE7NH","icon--arrow-left":"D60PSz",iconArrowLeft:"D60PSz","icon--search-clear":"mntGOs",iconSearchClear:"mntGOs","icon--search-arrow":"OXTHTX",iconSearchArrow:"OXTHTX","icon--price-tag":"xnHo3B",iconPriceTag:"xnHo3B","icon--paid":"v4ONdU",iconPaid:"v4ONdU","icon--calendar":"NhUSNE",iconCalendar:"NhUSNE","icon--star":"pJp1ZZ",iconStar:"pJp1ZZ","icon--share":"Wx5tSw",iconShare:"Wx5tSw","icon--info-1":"hPRd_2",iconInfo1:"hPRd_2","icon--search":"owu9a3",iconSearch:"owu9a3","icon--permit-search":"W8lWdD",iconPermitSearch:"W8lWdD","icon--search-bar":"shswWM",iconSearchBar:"shswWM","icon--checked":"hSjn6v",iconChecked:"hSjn6v","icon--arrow-right-filled":"qZ85M6",iconArrowRightFilled:"qZ85M6","icon--clear-search":"iMvvSC",iconClearSearch:"iMvvSC","icon--actionbuttoninfo":"qbTOEY",iconActionbuttoninfo:"qbTOEY","icon--facebook":"bib1yM",iconFacebook:"bib1yM","icon--pinterest":"O7XvUY",iconPinterest:"O7XvUY","icon--tumblr":"iy8Whc",iconTumblr:"iy8Whc","icon--twitter":"zXBZco",iconTwitter:"zXBZco","icon--coins":"KpyJ4D",iconCoins:"KpyJ4D","icon--more":"nPBSP8",iconMore:"nPBSP8","icon--sort-arrow":"FF2xJf",iconSortArrow:"FF2xJf","icon--video-facebook":"bB22Me",iconVideoFacebook:"bB22Me","icon--video-vimeo":"ZITXk_",iconVideoVimeo:"ZITXk_","icon--video-computer":"pFp5at",iconVideoComputer:"pFp5at","icon--video-youtube":"JKO58l",iconVideoYoutube:"JKO58l","icon--cancel-upload":"D6ltfE",iconCancelUpload:"D6ltfE","icon--crown":"DNNH4u",iconCrown:"DNNH4u","icon--plus":"UhDcyS",iconPlus:"UhDcyS","icon--replace":"oNBt1_",iconReplace:"oNBt1_","icon--avatar":"DahEml",iconAvatar:"DahEml","icon--view":"zg1Iea",iconView:"zg1Iea","icon--arrow-strip":"KyFnCO",iconArrowStrip:"KyFnCO","icon--thin-x":"f6GUgN",iconThinX:"f6GUgN"};class f extends p().PureComponent{get iconStyle(){const{size:e}=this.props;return e?{fontSize:e}:null}render(){const{name:e,getRef:t,dataHook:n,className:r,role:i}=this.props,s=l().omit(this.props,["styles","styleName","intl","settings","getRef","biEvent","biError","closePortal","children","dataHook"]);return p().createElement("span",o()({ref:t,"data-hook":n,"aria-hidden":"presentation"===i?"true":"false"},s,{className:u()(r,m.icon,m[`icon--${e}`])||null,style:this.iconStyle}))}}s()(f,"defaultProps",{getRef:l().noop,role:"presentation"});class g extends p().PureComponent{render(){const e=l().omit(this.props,"styles");return p().createElement(f,o()({},e,{className:u()(e.className,h["rounded-icon"])}))}}},59406:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r={PREVIEW_PROMPT:"PREVIEW_PROMPT"}},53203:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(79259);function o(e){let{channel:t={}}=e;return(0,r.jo)(t)||(0,r.ZD)(t)}},55818:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(5452),o=n(46735),i=n(1831),s=n(53203),a=n(60901);function l(e){if(!(0,s.g)(e))return null;return(0,r.vm)(e.channel)?(0,a.t)("widget.mobile.overlay-button.subscribe.short"):(0,i.Z)(e.translation||"widget.overlay-buttons.get-subscription",(0,o.il)(e.channel.dealInfo))}},62547:(e,t,n)=>{"use strict";n.d(t,{Gz:()=>i,ZP:()=>s});var r=n(60901),o=n(96918);const i={[o.ds.FULL]:"widget.overlay-buttons.play-video",[o.ds.TRAILER]:"widget.overlay-buttons.watch-trailer",[o.ds.FIRST_20_SEC]:"widget.overlay-buttons.watch-preview",[o.ds.LIVE_STREAMING]:"widget.overlay-buttons.watch-live"};function s(e){let{channel:t,video:n,currentSiteUser:s,translations:a=i}=e;const l=(0,o.TK)(t,n,s);return l?(0,r.t)(a[l]):null}},92298:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(17607),o=n.n(r),i=n(46735),s=n(1831),a=n(96918),l=n(10396),c=n(60901);o().keys(l.G);function u(e){let{channel:t,video:n,currentSiteUser:r,translations:o=l.G,isVerticalLayoutMobile:u}=e;switch((0,a.D$)(t,n,r)){case a.FE.BUY:return(0,s.Z)(o[a.FE.BUY],(0,i.Tv)(n.dealInfo));case a.FE.RENT:return(0,s.Z)(o[a.FE.RENT],(0,i.OQ)(n.dealInfo));case a.FE.BUY_OR_RENT:return(0,s.Z)(o[a.FE.BUY_OR_RENT],(0,i._E)(n.dealInfo));case a.FE.PRICING_PLAN:return(0,c.t)(o[a.FE.PRICING_PLAN]);case a.FE.SUBSCRIBE:return u?(0,c.t)(o[a.FE.SUBSCRIBE]):null;default:return null}}},14762:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,p:()=>l});var r=n(5452),o=n(46735),i=n(1831),s=n(96918),a=n(60901);function l(e){let{channel:t,video:n}=e;const r=(0,s.D$)(t,n);return r===s.FE.SUBSCRIBE||r===s.FE.PRICING_PLAN}function c(e){return l(e)?(0,r.vm)(e.channel)?(0,a.t)("widget.mobile.overlay-button.subscribe.short"):(0,i.Z)(e.translation||"widget.overlay-buttons.get-subscription",(0,o.il)(e.channel.dealInfo)):null}},79507:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r,o=n(26290),i=n.n(o),s=n(27762),a=n.n(s),l=n(17607),c=n.n(l),u=n(44714),d=n(93129),p=n(88692),h=n(39396),m=n(82682);const f=(0,u.$j)((e=>({compId:(0,h.Qp)(e)})))((0,m.X)((r=class extends a().Component{constructor(){super(...arguments),i()(this,"handlePaymentMessage",(e=>{let{data:t}=e;const n=c().get(t,"message.type")===d.Z.TYPES.SUBSCRIPTION_CANCEL;if(c().get(t,"compId")!==this.props.compId&&!n)return;const r=t.message,o={[d.Z.TYPES.SALE]:this.handleSale,[d.Z.TYPES.RENT]:this.handleRent,[d.Z.TYPES.SUBSCRIPTION]:this.handleSubscription,[d.Z.TYPES.SUBSCRIPTION_CANCEL]:this.handleSubscriptionCancel}[r.type];o&&o(r)})),i()(this,"handleSale",(e=>{const{onSale:t,onAnyEvent:n}=this.props;e.completed&&(n(e),t(e))})),i()(this,"handleRent",(e=>{const{onRent:t,onAnyEvent:n}=this.props;e.completed&&(n(e),t(e))})),i()(this,"handleSubscription",(e=>{const{onSubscription:t,onAnyEvent:n}=this.props;e.completed&&(n(e),t(e))})),i()(this,"handleSubscriptionCancel",(e=>{const{onSubscriptionCancel:t,onAnyEvent:n}=this.props;e.completed&&(n(e),t(e))})),i()(this,"handleUserLogin",(()=>{const{onAnyEvent:e,onLogin:t}=this.props;e(),t()}))}componentDidUpdate(e){(0,m.A)(p.Z.PAYMENT.PAYMENT_EVENT,this.handlePaymentMessage,{prevProps:e,nextProps:this.props}),(0,m.A)(p.Z.SESSION.LOGIN_USER,this.handleUserLogin,{prevProps:e,nextProps:this.props})}render(){return null}},i()(r,"defaultProps",{onSale:c().noop,onRent:c().noop,onSubscription:c().noop,onSubscriptionCancel:c().noop,onAnyEvent:c().noop,onLogin:c().noop}),r)))},37265:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(26290),o=n.n(r),i=n(27762),s=n.n(i),a=n(17607),l=n.n(a),c=n(44714),u=n(76465),d=n(88692);const p={pubSubPublish:u.M},h=(0,c.$j)(null,p)(class extends s().Component{constructor(){super(...arguments),o()(this,"proxyEvent",(e=>{l().get(e,"data.completed",!1)&&this.props.pubSubPublish(d.Z.PAYMENT.PAYMENT_EVENT,{message:e.data})}))}componentDidMount(){window.addEventListener("message",this.proxyEvent,!1)}componentWillUnmount(){window.removeEventListener("message",this.proxyEvent,!1)}render(){return null}})},63438:(e,t,n)=>{"use strict";n.d(t,{R:()=>g});var r,o=n(26290),i=n.n(o),s=n(27762),a=n.n(s),l=n(17607),c=n.n(l),u=n(94715),d=n(44714),p=n(39396),h=n(82682);const m="reloadStorageReady",f={storeForReload:u.Y},g=(0,h.X)((0,d.$j)((e=>({compId:(0,p.Qp)(e)})),f)((r=class extends a().Component{constructor(){super(...arguments),i()(this,"lastEventData",{}),i()(this,"lastHandledEventData",{}),i()(this,"saveEventData",(e=>{let{data:t}=e;t&&t.stored===m||(this.lastEventData=t||{}),this.retrieveDataAfterReload()})),i()(this,"retrieveDataAfterReload",c().debounce((()=>{const{stored:e,rootCompId:t}=this.lastEventData;t===this.props.compId&&e&&!c().isEqual(this.lastHandledEventData,this.lastEventData)&&(this.props.onEvent(e),this.lastHandledEventData=this.lastEventData),this.lastEventData={}}),300))}componentDidMount(){this.props.storeForReload(m)}componentDidUpdate(){this.props.pubSubEvents&&this.props.pubSubEvents[u._].forEach(this.saveEventData)}componentWillUnmount(){this.unsubscribe()}unsubscribe(){this.props.storeForReload(null)}render(){return null}},i()(r,"defaultProps",{onEvent:c().noop}),r)))},38387:(e,t,n)=>{"use strict";n.d(t,{CN:()=>m,Ki:()=>u,PR:()=>d,mi:()=>h});var r=n(5952),o=n(94120),i=n(96918),s=n(19147),a=n(40385),l=n(71217),c=n(46310);const u=e=>(0,l.k)("widget.chCover.btn.clicked",{button:e}),d=()=>(0,l.k)("widget.subscriptionPopUp.Completed",{result:"canceled",errorMsg:""}),p=(e,t)=>(0,l.k)("widget.VidSelected.btn.clicked",{button:t,buttonType:"main",videoID:e.id,overQuoted:(0,r.P)(e)}),h=(0,c.DM)("logPlayButtonClicked",(e=>{let{channelData:t,videoItem:n,currentSiteUser:r,isChannelCover:o}=e;return e=>{if(o){const o=(0,i.yi)(t,n,r)?"startWatching":"watchPreview";e(u(o))}else e(p(n,(0,s.Z2)(t,n,r)));e((0,a.s)({videoItem:n,channelData:t}))}})),m=e=>{let{appSettings:t,videoItem:n,channelData:r,isChannelCover:i}=e;return e=>{const s=(0,o.vu)({settings:t,videoItem:n,channelData:r,showChannelCover:i});e(p(n,s))}}},58660:(e,t,n)=>{"use strict";n.d(t,{kM:()=>w,uo:()=>N,lb:()=>A,s6:()=>R,y7:()=>T,m4:()=>x,MT:()=>O,hT:()=>P});var r=n(17607),o=n.n(r),i=n(97698),s=n(946),a=n(3729),l=n(87077),c=n(46735),u=n(2654),d=n(14456),p=n(62547),h=n(60901),m=n(96918);function f(e){if(!function(e){let{channel:t,video:n,currentSiteUser:r}=e;return(0,m.D$)(t,n,r)===m.FE.SIGN_IN}(e))return null;const t=e.translation||"widget.overlay-buttons.play-video";return(0,h.t)(t)}var g=n(14762);var v=n(55818),y=n(56725),b=n(86606);function E(e){if(!function(e){let{video:t}=e;return!(0,y.Fy)(t)&&!(0,b.$Z)(t)}(e))return null;const t=e.translation||"widget.overlay-buttons.start-watching";return(0,h.t)(t)}var S=n(92298);const C=(e,t)=>t.videoItem,w=(0,i.P1)((e=>!e.isVideosTouched),a.zn,((e,t)=>!!o().isUndefined(t.showChannelCover)||t.showChannelCover),((e,t,n)=>e&&t&&n)),P=(0,i.P1)(a.m8,w,l.js,C,((e,t,n,r)=>e?t?n.title:r.title:"")),I=(0,i.P1)(l.js,C,s.C,((e,t,n)=>({channel:e,video:t,currentSiteUser:n}))),O=(0,i.P1)(I,w,((e,t)=>(t?(0,v.Z)(e):(0,g.Z)(e))||"")),T=(0,i.P1)(a.K1,C,w,((e,t,n)=>e&&t.publisher?n?"":t.publisher:"")),N=(0,i.P1)(a.PR,(e=>({backgroundColor:`rgba(0,0,0,${o().round(e/100,2)})`}))),A=(0,i.P1)(I,w,((e,t)=>t?(0,p.ZP)(e)||function(e){return f({...e,translation:e.translation||"widget.overlay-buttons.start-watching"})}(e)||E(e):(0,p.ZP)(e)||f(e))),x=(0,i.P1)(I,w,((e,t)=>t?"":(0,S.Z)(e))),_=(0,i.P1)(C,(e=>e?(0,c._E)(e.dealInfo):null)),L=(0,i.P1)(((e,t)=>t.nextVideoId),(e=>Boolean(e))),R=(0,i.P1)(I,((e,t)=>t.ended),_,L,((e,t,n,r)=>t&&!n&&r?(0,h.t)("widget.overlay-buttons.next-video"):null));(0,i.P1)(w,l.js,C,((e,t,n)=>{const r=(0,u.k)(t),o=(0,d.d)(n);return e&&r||o}))},55061:(e,t,n)=>{"use strict";n.d(t,{Z:()=>So});var r=n(77028),o=n.n(r),i=n(26290),s=n.n(i),a=n(27762),l=n.n(a),c=n(17607),u=n.n(c),d=n(44714),p=n(27113),h=n(40385),m=n(60042),f=n.n(m),g=n(15440),v=n(6263),y=n(88137),b=n(13980),E=n.n(b),S=n(77294),C=n(12524),w=n.n(C),P=n(78951);const I=["protocol","hostname","port","pathname","search","hash"],O={"http:":"80","https:":"443","ftp:":"21","sftp:":"22"};const T="[URL] Could not parse url",N="[URL] Port should be a convertible to Number value",A="[URL] Invalid parameter name",x=(()=>{if(n.g.URL)return e=>u().pick(new n.g.URL(e,document.location),I);const e=document.createElement("a");return t=>(e.href=t,u().pick(e,I))})();class _{constructor(e,t={}){this._map={};const{skipValidation:n=!1}=t;if(!n&&!/^(((ftp|sftp|http|https):)?\/\/)?[a-z\u0430-\u044f0-9]+([-.]{1}[a-z\u0430-\u044f0-9]+)*\.[a-z\u0430-\u044f]{2,10}(:[0-9]{1,5})?(\/.*)?$/i.test(e))throw new Error(T);const r=x(e);u().forEach(r,((e,t)=>{this[t]=e}))}get protocol(){return this._map.protocol}set protocol(e){u().isNil(e)||""===e?this._map.protocol="":this._map.protocol=u().includes(e,":")?e:`${e}:`}get domain(){return this._map.hostname}set domain(e){u().isNil(e)||""===e?this._map.hostname="":u().isArray(e)?this._map.hostname=e.join("."):this._map.hostname=`${e}`}get hostname(){return this.domain}set hostname(e){this.domain=e}get port(){const{port:e}=this._map,t=this.protocol;return e===O[t]?"":e}set port(e){if(u().isNil(e)||""===e)this._map.port="";else{if(!/^\d+$/.test(e))throw new Error(N);this._map.port=String(e)}}get path(){return this._map.pathname}set path(e){u().isNil(e)||""===e?this._map.pathname="":u().isArray(e)?this._map.pathname=`/${e.join("/")}`:this._map.pathname=u().startsWith(e,"/")?String(e):`/${e}`}get pathname(){return this.path}set pathname(e){this.path=e}get search(){return this._map.search}set search(e){if(u().isNil(e)||""===e)this._map.search="";else if(u().isString(e)&&e.length)this._map.search=u().includes(e,"?")?e:`?${e}`;else if(u().isNumber(e))this._map.search=`?${e}`;else{const t=u().keys(e);t.length?this._map.search=`?${u().map(t,(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}`:this._map.search=""}}get hash(){return this._map.hash}set hash(e){u().isNil(e)||""===e?this._map.hash="":this._map.hash=u().includes(e,"#")?e:`#${e}`}get filename(){return this.path.split("/").pop()}set filename(e){const t=this.path.split("/").slice(1,-1);u().isNil(e)||""===e||t.push(e),this.path=t}addParam(e,t=""){if(!e)throw new Error(A);const n=this._parseSearch(this.search);n[e]=t,this.search=n}removeParam(e){if(!e)throw new Error(A);const t=this._parseSearch(this.search);delete t[e],this.search=t}hasParam(e){return!u().isNil(this.getParam(e))}getParam(e){return this._parseSearch(this.search)[e]}_parseSearch(e){const t={};if(!(e=e.replace("?","")).length)return t;const n=e.split("&");return u().forEach(n,(e=>{const[n,r=""]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(r)})),t}get href(){const e=this.port?`:${this.port}`:"";return`${this.protocol}//${this.domain}${e}${this.path}${this.search}${this.hash}`}toString(){return this.href}}const L="gvm5TL",R="d3CoQu",k="rAMlL0";let D=null;class V extends l().Component{constructor(e){super(e),this.onReady=(e=window.Vimeo.Player)=>{this.player=new e(this.iframeRef.current),this.attachEventsToPlayer(),this.setSettings(this.props)},this.player=null,this.iframeRef=l().createRef(),this.muted=e.muted,this.__volume=0}componentDidMount(){D=D||(0,P.V)("https://player.vimeo.com/api/player.js",!0);const e=this.iframeRef.current;e?(e.setAttribute("allow","autoplay"),e.setAttribute("src",this.getIframeSrcUrl()),this.props.onIframeRef(e),D.then(this.onReady)):this.player=null}UNSAFE_componentWillReceiveProps(e){e.src===this.props.src&&this.setSettings(e,this.props)}componentWillUnmount(){this.player&&this.detachEventsFromPlayer()}attachEventsToPlayer(){const{onPlay:e,onPause:t,onEnd:n,onVolumeChange:r}=this.props;this.player.on("play",e),this.player.on("pause",t),this.player.on("ended",n),this.player.on("volumechange",r)}detachEventsFromPlayer(){const{onPlay:e,onPause:t,onEnd:n,onVolumeChange:r}=this.props;this.player.off("play",e),this.player.off("pause",t),this.player.off("ended",n),this.player.on("volumechange",r)}setSettings({isVideoPlayRequested:e,isVideoPauseRequested:t,loop:n,muted:r},o={}){if(!this.player)return null;this.toggleMute(r).then((()=>{o.isVideoPlayRequested!==e&&e&&this.togglePaused(!1),o.isVideoPauseRequested!==t&&t&&this.togglePaused(!0)})),this.toggleLoop(n)}togglePaused(e){this.player.getPaused().then((t=>{e&&!t&&this.player.pause(),!e&&t&&this.player.play()}))}toggleLoop(e){e?this.player.setLoop(!0):this.player.setLoop(!1)}toggleMute(e){return this.player.getVolume().then((t=>e===this.muted?Promise.resolve():(this.muted=e,e?(this.__volume=t,this.player.setVolume(0)):this.player.setVolume(this.__volume||1))))}getIframeSrcUrl(){const{src:e,simple:t,mobileMode:n}=this.props,r={muted:this.muted?"1":"0"};(t||n)&&(r.badge="0",r.portrait="0",r.title="0");const o=new _(e);return o.protocol="https",o.search=r,o.toString()}render(){const{className:e,width:t,height:n,isVideoPauseRequested:r,isVideoPlayRequested:o,isVideoPlaying:i,isVideoPaused:s,fillAllSpace:a}=this.props,c=r||o||i||s?0:-1;return l().createElement("iframe",{title:"Vimeo",width:t,height:n,frameBorder:"0",allowFullScreen:!0,tabIndex:c,ref:this.iframeRef,className:w()(L,e,{[R]:a})})}}V.propTypes={src:E().string.isRequired,onPlay:E().func,onPause:E().func,onEnd:E().func,onVolumeChange:E().func,onIframeRef:E().func.isRequired,width:E().number,height:E().number,className:E().string,simple:E().bool,mobileMode:E().bool,isVideoPlayRequested:E().bool,isVideoPauseRequested:E().bool,isVideoPlaying:E().bool,isVideoPaused:E().bool,fillAllSpace:E().bool,loop:E().bool,muted:E().bool};let M=null;class B extends l().Component{constructor(e){super(e),this.handleIframeRef=e=>{e&&(this.iframeRef=e,e.setAttribute("allow","autoplay"),e.setAttribute("src",this.buildUrl(this.props)),this.props.onIframeRef(e))},this.onYouTubeIframeAPIReady=()=>{new window.YT.Player(this.iframeRef,{events:{onReady:this.onReady,onStateChange:this.onStateChange}})},this.onReady=({target:e})=>{this.player=e,this.setState({isReady:!0}),this.setSettings(this.props)},this.onStateChange=({data:e})=>{const{onPlay:t,onPause:n,onEnd:r}=this.props;switch(e){case window.YT.PlayerState.PLAYING:t();break;case window.YT.PlayerState.PAUSED:n();break;case window.YT.PlayerState.ENDED:r()}},this.onIframeLoaded=async()=>{M||(M=Promise.race([new Promise((e=>{window.onYouTubeIframeAPIReady=e})),new Promise((e=>{window.YT&&window.YT.ready(e)}))]),(0,P.V)("https://www.youtube.com/iframe_api")),await M,this.onYouTubeIframeAPIReady()},this.player=null,this.iframeRef=null,this.state={isReady:!1}}UNSAFE_componentWillReceiveProps(e){e.src===this.props.src?this.setSettings(e,this.props):this.setState({isReady:!1})}setSettings({isVideoPlayRequested:e,isVideoPauseRequested:t,loop:n,muted:r},o={}){if(!this.player||!this.state.isReady)return null;o.muted!==r&&this.toggleMute(r),o.isVideoPlayRequested!==e&&e&&this.togglePaused(!1),o.isVideoPauseRequested!==t&&t&&this.togglePaused(!0),this.toggleLoop(n)}togglePaused(e){e?this.player.pauseVideo():this.player.playVideo()}toggleLoop(e){if(e){const{video_id:e}=this.player.getVideoData();this.player.loadPlaylist(e),this.player.setLoop(!0)}else this.player.setLoop(!1)}toggleMute(e){e?this.player.mute():this.player.unMute()}buildUrl({src:e,mobileMode:t,showControls:n,locale:r}){const{protocol:o,hostname:i,port:s}=window.location,a={enablejsapi:"1",hl:r,rel:"0",origin:`${o}//${i}${s?":":""}${s}`};t&&(a.playsinline="1"),n||(a.controls="0");const l=new _(e);return l.protocol="https",l.search=a,l.toString()}render(){const{className:e,width:t,height:n,isVideoPauseRequested:r,isVideoPlayRequested:o,isVideoPlaying:i,isVideoPaused:s,fillAllSpace:a}=this.props,c=r||o||i||s?0:-1;return l().createElement("iframe",{title:"Youtube",width:t,height:n,frameBorder:"0",allowFullScreen:!0,tabIndex:c,onLoad:this.onIframeLoaded,ref:this.handleIframeRef,className:w()(L,e,{[R]:a})})}}B.propTypes={src:E().string.isRequired,locale:E().string,onPlay:E().func,onPause:E().func,onEnd:E().func,onIframeRef:E().func.isRequired,width:E().number,height:E().number,className:E().string,mobileMode:E().bool,isVideoPlayRequested:E().bool,isVideoPauseRequested:E().bool,isVideoPlaying:E().bool,isVideoPaused:E().bool,fillAllSpace:E().bool,loop:E().bool,muted:E().bool};var F=n(71911),U=n.n(F);const j="undefined"!=typeof window?window:void 0,H=new Promise((e=>{if(j&&!j.FB){const t=window.fbAsyncInit;window.fbAsyncInit=()=>{t&&t(),e()}}}));let Z=!1;class W extends l().Component{constructor(e){super(e),this.saveContainerRef=e=>this.containerRef=e,this.saveStretchedContainer=e=>this.stretchedContainerRef=e,this.init=()=>{window.FB.init({xfbml:!0,version:"v3.2"})},this.handleFacebookReady=e=>{"video"===e.type&&e.id===this.getPlayerId()&&this.onReady(e.instance)},this.setAllowAttribute=()=>{if(!this.containerRef)return;const e=this.containerRef.querySelector("iframe");e&&(e.allow.includes("autoplay")||(e.setAttribute("allow","autoplay"),e.setAttribute("src",e.src)))},this.onReady=e=>{const{mobileMode:t,fillAllSpace:n,onIframeRef:r}=this.props;this.player=e,this.iframeRef=this.containerRef.querySelector("iframe"),(t||n)&&this.fitPlayer(),t&&U().onChange(this.fitPlayer),r(this.iframeRef),this.attachEventsToPlayer(),this.setState({isReady:!0}),this.setSettings(this.props),this.updateFocusAbility()},this.fitPlayer=e=>{const t=this.iframeRef;if(t){const n=this.stretchedContainerRef.getBoundingClientRect(),r=this.iframeRef.getBoundingClientRect(),{fillAllSpace:o}=this.props,{height:i,width:s}=o?n:this.props;let a=1;if(r.height){if(this.videoSize||(this.videoSize={height:r.height,width:r.width}),e){const{left:t=0,right:n=0}=e;a=s/(this.videoSize.width-t-n)}a*=i/this.videoSize.height,t.style.transformOrigin="top center",t.style.transform=`scale(${a})`}}},this.player=null,this.containerRef=null,this.iframeRef=null,this.stretchedContainerRef=null,this.videoSize=null,this.state={isReady:!1}}async componentDidMount(){Z||((0,P.V)("https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2"),Z=!0),await H,this.containerRef&&(window.FB.Event.subscribe("xfbml.ready",this.handleFacebookReady),window.FB.Event.subscribe("iframeplugin:create",this.setAllowAttribute),this.init())}UNSAFE_componentWillReceiveProps(e){e.src===this.props.src?this.setSettings(e,this.props):this.setState({isReady:!1})}componentDidUpdate(e){this.isPropsChanged(e,["src","width","height"])&&this.init(),this.isPropsChanged(e,["isVideoPauseRequested","isVideoPlayRequested"])&&this.updateFocusAbility()}componentWillUnmount(){window.FB&&(window.FB.Event.unsubscribe("xfbml.ready",this.handleFacebookReady),window.FB.Event.unsubscribe("iframeplugin:create",this.setAllowAttribute)),this.player&&this.detachEventsFromPlayer()}isPropsChanged(e,t){const n=u().pick(e,t),r=u().pick(this.props,t);return!u().isEqual(n,r)}updateFocusAbility(){if(!this.iframeRef)return;const{isVideoPauseRequested:e,isVideoPlayRequested:t,isVideoPlaying:n,isVideoPaused:r}=this.props,o=e||t||n||r?0:-1;this.iframeRef.setAttribute("tabindex",o)}getPlayerId(){return`${this.props.src}-${this.props.compId}`}attachEventsToPlayer(){const{onPlay:e,onPause:t,onEnd:n}=this.props;this._eventHanlers={},this._eventHanlers.onPlay=this.player.subscribe("startedPlaying",(()=>e())),this._eventHanlers.onPause=this.player.subscribe("paused",(()=>t())),this._eventHanlers.onEnd=this.player.subscribe("finishedPlaying",(()=>n()))}detachEventsFromPlayer(){this._eventHanlers.onPlay.release(),this._eventHanlers.onPause.release(),this._eventHanlers.onEnd.release(),this._eventHanlers={}}setSettings({isVideoPlayRequested:e,isVideoPauseRequested:t,muted:n},r={}){if(!this.player||!this.state.isReady)return null;r.isVideoPlayRequested!==e&&e&&this.togglePaused(!1),r.isVideoPauseRequested!==t&&t&&this.togglePaused(!0),r.muted!==n&&this.toggleMute(n)}togglePaused(e){e?this.player.pause():this.player.play()}toggleMute(e){e?this.player.mute():this.player.unmute()}render(){const{src:e,className:t,fillAllSpace:n}=this.props,{width:r,height:o}=this.props,i={id:this.getPlayerId(),className:w()("fb-video",L,t),ref:this.saveContainerRef,"data-href":e,"data-allowfullscreen":"true"};return n||(i["data-width"]=Math.ceil(r),i["data-height"]=Math.ceil(o)),l().createElement("div",{ref:this.saveStretchedContainer,className:k},l().createElement("div",{...i}))}}W.propTypes={src:E().string.isRequired,onPlay:E().func,onPause:E().func,onEnd:E().func,onIframeRef:E().func.isRequired,width:E().number,height:E().number,className:E().string,compId:E().string,simple:E().bool,mobileMode:E().bool,isVideoPlayRequested:E().bool,isVideoPauseRequested:E().bool,isVideoPlaying:E().bool,isVideoPaused:E().bool,fillAllSpace:E().bool,loop:E().bool,muted:E().bool},W.defaultProps={compId:"comp"};const z=["fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange"];class q extends l().Component{constructor(){super(...arguments),this.handleFullscreenChange=()=>{this.props.onFullScreenChanged(this.isInFullScreen)}}UNSAFE_componentWillMount(){"undefined"!=typeof document&&this.addFullscreenEventHandler()}componentWillUnmount(){this.removeFullscreenEventHandler()}get isInFullScreen(){return Boolean(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)}addFullscreenEventHandler(){u().forEach(z,(e=>document.addEventListener(e,this.handleFullscreenChange)))}removeFullscreenEventHandler(){u().forEach(z,(e=>document.removeEventListener(e,this.handleFullscreenChange)))}render(){const{locale:e,videoItem:t,isVideoPlayRequested:n,isVideoPauseRequested:r,isVideoPlaying:o,isVideoPaused:i,onPlay:s,onPause:a,onEnded:c,onIframeRef:u,onVolumeChange:d,fillAllSpace:p,YoutubePlayer:h=B}=this.props;if(!t)return null;const{id:m,externalId:f,mediaExternUrl:g,videoSource:v}=t,y={[S.V.YOUTUBE]:h,[S.V.VIMEO]:V,[S.V.FACEBOOK]:W}[v];return y?l().createElement(y,{...this.props,fillAllSpace:p,locale:e,key:m||f,showControls:!0,isVideoPlayRequested:n,isVideoPauseRequested:r,isVideoPlaying:o,isVideoPaused:i,src:g,onPlay:s,onPause:a,onEnd:c,onVolumeChange:d,onIframeRef:u}):null}}q.propTypes={compId:E().string,isVideoPlayRequested:E().bool,isVideoPauseRequested:E().bool,isVideoPlaying:E().bool,isVideoPaused:E().bool,muted:E().bool,fillAllSpace:E().bool,onPlay:E().func,onPause:E().func,onEnded:E().func,onVolumeChange:E().func,onIframeRef:E().func,onFullScreenChanged:E().func,onLoad:E().func,onPlayBlocked:E().func,videoItem:E().object.isRequired,width:E().number,height:E().number,className:E().string,locale:E().string,YoutubePlayer:E().elementType},q.defaultProps={onPlay:u().noop,onPause:u().noop,onEnded:u().noop,onLoad:u().noop,onPlayBlocked:u().noop,onError:u().noop,onFullScreenChanged:u().noop,onIframeRef:u().noop,onVolumeChange:u().noop};var G=n(72632),$=n(74995);const Y="vrxbDK",K="IvIoaJ",X="Q2vwr0",Q=e=>{let{width:t,height:n}=e;const r={width:t,height:n},{t:o}=(0,$.$)();return l().createElement("div",{"data-hook":"video-not-avalilable-overlay",className:Y,style:r},l().createElement("div",{className:K},o("widget.video-is-not-available")),l().createElement("div",{className:X},o("widget.check-again-later")))};var J,ee=n(39140),te=n(85903),ne=n(66060),re=n(77625),oe=n(82629);!function(e){e.VIDEO="video",e.ALL_CARDS="all_cards"}(J||(J={}));var ie=n(90159),se=n(17887),ae=function(){return ae=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},ae.apply(this,arguments)},le=n(97318),ce=n(83452);const ue="R9Pbo4",de="RI8nPp";class pe extends l().Component{render(){const{rounded:e,children:t,className:n,onClick:r,isFocusable:o,ariaLabel:i,dataHook:s}=this.props,a=w()(n,ue,{[de]:e});return l().createElement("button",{className:a,onClick:r,tabIndex:r&&o?0:-1,"data-hook":s,"aria-label":i},t)}}pe.defaultProps={rounded:!1,isFocusable:!0};const he="dPkWvR",me=({className:e,label:t,shortLabel:n})=>l().createElement("span",{"data-hook":"action-button-label",className:w()(e,he),...(0,c.isString)(t)&&{"data-label":t},...n&&{"data-short-label":n}},l().isValidElement(t)&&t);var fe=n(84470);const ge=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 16 15",fill:"currentColor",width:e||"16",height:e||"15",...t},a.createElement("path",{fill:"currentColor",d:"M16 12v2.199a.7.7 0 0 1-1.244.44L12.619 12H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10zM4 4a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H4zm7 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-1z",fillRule:"evenodd"}));ge.displayName="ChatBigIcon";const ve=ge,ye=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 9 9",fill:"currentColor",width:e||"9",height:e||"9",...t},a.createElement("path",{fill:"currentColor",d:"M9 6v2.594a.3.3 0 0 1-.488.233L6.242 7H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v5z",fillRule:"evenodd"}));ye.displayName="ChatSmallIcon";const be=ye;var Ee=n(61863);const Se=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 1129 1024",fill:"currentColor",width:e||"1129",height:e||"1024",...t},a.createElement("path",{fill:"currentColor",d:"M1052.672 282.624h-117.76v-104.448h117.76v104.448zM1052.672 479.232h-117.76v-104.448h117.76v104.448zM1052.672 673.792h-117.76v-104.448h117.76v104.448zM1052.672 850.944h-117.76v-105.472h117.76v105.472zM295.936 282.624h564.224v462.848h-564.224v-462.848zM221.184 282.624h-117.76v-104.448h117.76v104.448zM221.184 479.232h-117.76v-104.448h117.76v104.448zM221.184 673.792h-117.76v-104.448h117.76v104.448zM221.184 850.944h-117.76v-105.472h117.76v105.472zM1052.672 8.192v104.448h-117.76v-104.448h-74.752v153.6h-564.224v-153.6h-74.752v104.448h-117.76v-104.448h-74.752v1005.568h74.752v-105.472h117.76v105.472h74.752v-152.576h564.224v152.576h74.752v-105.472h117.76v105.472h74.752v-1005.568h-74.752z",fillRule:"evenodd"}));Se.displayName="FilmIcon";const Ce=Se,we=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 8 18",fill:"currentColor",width:e||"8",height:e||"18",...t},a.createElement("path",{fill:"currentColor",d:"M3.5 0a2.501 2.501 0 0 1 0 5 2.5 2.5 0 0 1 0-5zm4.498 18H.276l.002-.557c.513-.093.877-.172 1.093-.24.216-.068.4-.164.552-.286.15-.12.27-.306.354-.557.084-.252.13-.643.13-1.175v-4.97c0-.487-.015-.878-.042-1.174-.026-.296-.117-.534-.275-.712-.159-.178-.4-.313-.721-.4A9.307 9.307 0 0 0 0 7.708v-.605L4.589 7H5.79v8.154c0 .654.052 1.107.156 1.362.105.254.305.447.602.581.294.133.778.249 1.447.348L8 18h-.002z",fillRule:"evenodd"}));we.displayName="InfoIcon";const Pe=we,Ie=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 15 18",fill:"currentColor",width:e||"15",height:e||"18",...t},a.createElement("path",{fill:"currentColor",transform:"translate(-433 -512)",id:"a",d:"M438.135 520.094a2.642 2.642 0 0 1-.042 1.92l5.396 3.299a2.647 2.647 0 1 1-.669.832l-5.32-3.254a2.647 2.647 0 1 1 .082-3.699l5.247-3.32a2.647 2.647 0 1 1 .673.826l-5.367 3.396z",fillRule:"evenodd"}));Ie.displayName="ShareIcon";const Oe=Ie,Te=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:e||"18",height:e||"18",...t},a.createElement("path",{fill:"currentColor",d:"M6.382 6.22L8.615.266a.411.411 0 0 1 .77 0l2.232 5.952a.277.277 0 0 0 .163.163l5.952 2.233a.411.411 0 0 1 0 .77l-5.952 2.232a.285.285 0 0 0-.163.163l-2.233 5.952a.41.41 0 0 1-.77 0L6.383 11.78a.289.289 0 0 0-.163-.163L.267 9.386a.412.412 0 0 1 0-.771l5.952-2.233a.281.281 0 0 0 .163-.163",fillRule:"evenodd"}));Te.displayName="SparkIcon";const Ne=Te,Ae=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 853 1024",fill:"currentColor",width:e||"853",height:e||"1024",...t},a.createElement("path",{fill:"currentColor",d:"M456.704 180.224c204.8 22.528 362.496 192.512 361.472 400.384 0 221.184-184.32 402.432-409.6 402.432-224.256 0-408.576-180.224-408.576-402.432 0-206.848 159.744-376.832 362.496-400.384 0 0 0 0 0 0s0-88.064 0-88.064c0 0-97.28 0-97.28 0s0-92.16 0-92.16c0 0 288.768 0 288.768 0s0 92.16 0 92.16c0 0-97.28 0-97.28 0s0 88.064 0 88.064c0 0 0 0 0 0zM96.256 580.608c0 169.984 140.288 309.248 314.368 309.248s314.368-139.264 314.368-309.248c0-169.984-140.288-310.272-314.368-310.272-173.056 0-314.368 138.24-314.368 310.272zM457.728 367.616c0 0 0 166.912 0 166.912s96.256 0 96.256 0c0 0 0 92.16 0 92.16s-189.44 0-189.44 0c0 0 0-92.16 0-92.16s0 0 0 0 0-166.912 0-166.912c0 0 93.184 0 93.184 0z",fillRule:"evenodd"}));Ae.displayName="TimerIcon";const xe=Ae,_e="eMrGv2",Le="nMx01h",Re={share:Oe,dollar:Ee.Z,film:Ce,info:Pe,spark:Ne,timer:xe,chatBig:ve,chatSmall:be},ke=({className:e,icon:t})=>{const n=Re[t];return l().createElement("div",{className:_e},l().createElement(fe.W,{icon:n&&l().createElement(n,null),className:w()(Le,e)}))};var De=n(96918);const Ve={"main-content-wrapper":"tZUVlr",mainContentWrapper:"tZUVlr","info-overlay":"KPQZRU",infoOverlay:"KPQZRU","main-content":"Fuh2CJ",mainContent:"Fuh2CJ",actions:"ngwwi0",ltr:"PKrSYt",rtl:"fEyH2R","chat-button":"qVD7EX",chatButton:"qVD7EX","chat-pimple":"fsvWuZ",chatPimple:"fsvWuZ","chat-small":"Ck9PgA",chatSmall:"Ck9PgA","chat-big":"t4_BEt",chatBig:"t4_BEt",actionButton:"tPccwx",animatedButton:"Wjr4Ka","button-label":"skqWYL",buttonLabel:"skqWYL","buy-rent-button":"sVk1j8",buyRentButton:"sVk1j8","with-label":"Z2JusO",withLabel:"Z2JusO","video-info-button":"FVHxBT",videoInfoButton:"FVHxBT","all-cards-button":"yBczdW",allCardsButton:"yBczdW","info-overlay-wrapper":"LBVusC",infoOverlayWrapper:"LBVusC",active:"OwkSXs","info-overlay-content":"cuT1RV",infoOverlayContent:"cuT1RV","all-cards-overlay-content":"C4TBSD",allCardsOverlayContent:"C4TBSD"};var Me=n(27010);const Be=({type:e="fade-in-out",when:t,children:n})=>l().createElement(Me.r,{type:e,className:Ve["info-overlay"],when:t},n),Fe=({isActive:e=!1,className:t,dir:n,children:r})=>l().createElement("div",{className:w()(Ve["info-overlay-wrapper"],{[Ve.active]:e},t),dir:n},r),Ue={onAllCardsButtonClick:c.noop,onBuyRentButtonClick:c.noop,onVideoInfoShow:c.noop,onShareVideoShow:c.noop,pauseVideo:c.noop,exitFullScreen:c.noop,isControlsShown:!0},je=e=>{const{pauseVideo:t,onAllCardsButtonClick:n,onCommentsButtonClick:r,onVideoInfoShow:o,onShareVideoShow:i,exitFullScreen:s,areElementsRounded:c,canShowBuyRentButton:u,canShareVideo:d,canShowFullInfo:p,canShowAllCardsButton:h,canShowCommentsButton:m,buyRentButtonText:f,videoInfoFullText:g,videoInfoShortText:v,shareVideoFullText:y,shareVideoShortText:b,showAllCardsFullText:E,commentsFullText:S,commentsShortText:C,showAllCardsShortText:P,infoButtonAriaLabel:I,shareButtonAriaLabel:O,allCardsButtonAriaLabel:T,commentsButtonAriaLabel:N,shouldShowCommentsPimple:A,videoOwnershipStatus:x,isRTL:_,isFocusable:L,isControlsShown:R}={...Ue,...e},[k,D]=(0,a.useState)(!R);(0,a.useEffect)((()=>{R?k&&D(!1):D(!0)}),[R,k]);const V={[Ve.rtl]:_,[Ve.ltr]:!_},M=w()(Ve.actionButton,V);return l().createElement("section",{className:Ve["main-content-wrapper"],"data-hook":"player-overlay-actions"},l().createElement(Be,{when:!k},l().createElement("div",{className:Ve["main-content-inner"]},l().createElement("div",{className:w()(Ve.actions,V)},u&&l().createElement(pe,{className:w()(M,Ve["buy-rent-button"],{[Ve["with-label"]]:f}),dataHook:"paid-access-button",isFocusable:L,onClick:n=>{e.onBuyRentButtonClick&&(t(),s(),e.onBuyRentButtonClick(n))},rounded:c},f&&l().createElement(me,{className:Ve["button-label"],label:f}),l().createElement(ke,{icon:(()=>{switch(x){case De.o8.YOU_BOUGHT_THIS:return"film";case De.o8.YOU_RENTED_THIS:return"timer";default:return"dollar"}})()})),p&&l().createElement(pe,{className:w()(M,Ve.animatedButton,Ve["video-info-button"]),dataHook:"video-info-button",isFocusable:L,onClick:o,ariaLabel:I,rounded:c},g&&l().createElement(me,{className:Ve["button-label"],label:g,shortLabel:v}),l().createElement(ke,{icon:"info"})),d&&l().createElement(pe,{className:w()(M,Ve.animatedButton,Ve["share-button"]),dataHook:"share-button",isFocusable:L,onClick:i,ariaLabel:O,rounded:c},y&&l().createElement(me,{className:Ve["button-label"],label:y,shortLabel:b}),l().createElement(ke,{icon:"share"})),h&&l().createElement(pe,{className:w()(M,Ve.animatedButton,Ve["all-cards-button"]),dataHook:"all-cards-button",isFocusable:L,onClick:e=>{t(),n(e)},ariaLabel:T,rounded:c},E&&l().createElement(me,{className:Ve["button-label"],label:E,shortLabel:P}),l().createElement(ke,{icon:"spark"})),m&&l().createElement(pe,{className:w()(M,Ve.animatedButton,Ve["chat-button"]),dataHook:"chat-button",isFocusable:L,onClick:()=>{r()},ariaLabel:N,rounded:c},S&&l().createElement(me,{className:Ve["button-label"],label:S,shortLabel:C}),l().createElement("div",{className:Ve["chat-big"]},l().createElement(ke,{icon:"chatBig"})),l().createElement("div",{className:Ve["chat-small"]},l().createElement(ke,{icon:"chatSmall"})),A&&l().createElement("div",{className:Ve["chat-pimple"]}))))))},He="XTAKaE",Ze="Q_ZZgM",We="MJBEsK";class ze extends l().Component{constructor(e){super(e),this.slideToPrev=()=>{this.slideInDirection(-1)},this.slideToNext=()=>{this.slideInDirection(1)},this._doSlide=(e,t,n)=>{const r=(o=this.accumulatedNextIndex,i=t,Math.abs(Math.abs(o)-Math.abs(i)));var o,i;this.setState({index:e,loopIndex:this.getLoopIndex(n>0?e:t)},(()=>{this.setTransition(1===r?"transform 0.65s ease-in-out":"transform 0.4s linear"),this.accumulatedNextIndex=0}))},this.doSlideThrottled=(0,c.throttle)(this._doSlide,400),this.normalizeIndexes=e=>{if(e.target!==this.contentRef)return;const{index:t,loopIndex:n}=this.state,r=this.getLoopIndex(0);this.setTransition("none"),this.setState({index:t-n+r,loopIndex:r},(()=>{(0,G.T)(this.containerRef)}))},this.containerRef=null,this.contentRef=null,this.accumulatedNextIndex=0,this.state={loopIndex:this.getLoopIndex(0),index:0}}UNSAFE_componentWillReceiveProps(e){const{index:t}=this.state;this.setState({loopIndex:this.getLoopIndex(t,e),index:t})}getItemsCount(e=this.props){return e.children.length}getItemsPerScreenCount(){const{width:e,itemWidth:t}=this.props;return Math.floor(e/t)}getClonesCount(e=this.props){const{width:t,itemWidth:n}=e,r=t/n;return r>1?r:2}_attachKeyToItem(e,t){return l().cloneElement(e,{key:`${t}-${e.key}`})}getItems(){const{children:e}=this.props,{index:t}=this.state,n=this.getClonesCount(),r=this.getItemsPerScreenCount(),o=e.slice(0,n),i=[...e.slice(-n).map((e=>this._attachKeyToItem(e,"last"))),...e,...o.map((e=>this._attachKeyToItem(e,"first")))],s=t+n,a=[s,s+r],c=e=>e>=a[0]&&e<a[1];return i.map(((e,t)=>l().cloneElement(e,{isAccessible:c(t)})))}slideInDirection(e){const{index:t}=this.state,n=t+e;this.accumulatedNextIndex+=n,this.doSlideThrottled(n,t,e)}getLoopIndex(e,t=this.props){const n=this.getItemsCount(t),r=this.getClonesCount(t);return Math.floor(e/n)*n-r}setTransition(e){this.contentRef&&(this.contentRef.style.transition=e)}getContentStyle(){const{itemWidth:e}=this.props,{index:t,loopIndex:n}=this.state;return{transform:`translate3d(${-t*e}px, 0, 0)`,left:n*e}}renderPrevButton(){return this.props.renderPrevButton({onClick:this.slideToPrev})}renderNextButton(){return this.props.renderNextButton({onClick:this.slideToNext})}getContainerAriaLabel(){return this.props.getSlideAriaLabel({itemsCount:this.getItemsPerScreenCount()})}render(){return l().createElement("div",{className:He},this.renderNextButton(),l().createElement("div",{className:Ze,ref:e=>this.containerRef=e,tabIndex:0,"aria-label":this.getContainerAriaLabel(),style:{width:this.props.width}},l().createElement("div",{className:We,ref:e=>this.contentRef=e,style:this.getContentStyle(),onTransitionEnd:this.normalizeIndexes},this.getItems())),this.renderPrevButton())}}ze.defaultProps={getSlideAriaLabel:c.noop,renderPrevButton:(0,c.constant)(null),renderNextButton:(0,c.constant)(null)};var qe=n(23040);const Ge=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 13 18",fill:"currentColor",width:e||"13",height:e||"18",...t},a.createElement("g",{id:"Actions_05",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},a.createElement("path",{transform:"rotate(-180 6.785 9.017)",d:"M2.56943454 -4.26325641e-14L1 1.59637082 9.90393128 9.01743437 1.16642458 16.5458666 2.56943454 18.0348687 12.5694345 8.9835939z",fill:"currentColor"})));Ge.displayName="ArrowLeftIcon";const $e=Ge,Ye="jLAtDz",Ke="mcfgRE",Xe="YTdfeQ",Qe="WY86pB",Je="A1PfYO",et="k50vR0",tt="Sbjf6P",nt="aNOmXR",rt="cgv_dL";var ot=n(4230),it=n(84582);const st="uubnyf",at="P1WINf",lt="Ra4BPx",ct="x9cJoh",ut="Gf4HjN",dt=({text:e,withSeparator:t,isShrinkable:n,liveLabel:r})=>l().createElement("div",{className:w()(st,{[ct]:t,[lt]:n,[ut]:Boolean(r)})},r&&l().createElement("span",{className:at},r),l().createElement(it.v,{text:e,dataHook:"action-card-title"}));dt.propTypes={text:E().string,withSeparator:E().bool,isShrinkable:E().bool,liveLabel:E().string};const pt="eUZJ6v",ht="cU05ut",mt="LTlMlo",ft="VQA_pJ",gt="r1jxir",vt="x8H4m3",yt="tYIyYn";var bt=n(86307),Et=n(38798),St=n(8384),Ct=n(27617),wt=n(84892),Pt=n(22060);class It extends l().Component{renderSocialButton(){const{cardData:e,labels:t,isAccessible:n}=this.props,{facebookButtonTitle:r,youtubeButtonTitle:o,twitterButtonTitle:i}=t;switch(e.network){case"twitter":return l().createElement(St.f,{isAccessible:n,twitterButtonTitle:i,cardData:e});case"youtube":return l().createElement(Ct.j,{isAccessible:n,youtubeButtonTitle:o,cardData:e});case"facebook":return l().createElement(wt.E,{isAccessible:n,facebookButtonTitle:r,cardData:e});default:return null}}isLiveVideo(){const{itemType:e}=this.props.cardData;return e===ot.q.ItemLive}renderDefaultCTA(){const{type:e,buttonLabel:t}=this.props.cardData,n=(0,c.includes)([Pt.VIDEO_CARD_TYPES.CUSTOM,Pt.VIDEO_CARD_TYPES.PRODUCT],e);return l().createElement("div",{className:pt},l().createElement("div",{className:vt,"data-hook":"action-card-action-text"},this.isLiveVideo()&&l().createElement("div",{className:yt}),t),l().createElement("div",{className:mt},n?l().createElement(fe.W,{icon:l().createElement(bt.Z,null),className:gt}):l().createElement(fe.W,{icon:l().createElement(Et.Z,null),className:ft})))}render(){return this.props.cardData.type===Pt.VIDEO_CARD_TYPES.SOCIAL?l().createElement("div",{className:w()(pt,ht),"data-hook":"action-card-action-text"},this.renderSocialButton()):this.renderDefaultCTA()}}It.propTypes={cardData:E().object,isAccessible:E().bool,labels:E().object},It.defaultProps={labels:{}};var Ot=n(13154);const Tt=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 28 29",fill:"currentColor",width:e||"28",height:e||"29",...t},a.createElement("path",{fill:"currentColor",d:"M12.29 28.077a3.405 3.405 0 0 1-2.416-1.002l-8.876-8.9a3.438 3.438 0 0 1 0-4.844L13.293 1.003A3.391 3.391 0 0 1 15.708 0h8.876A3.424 3.424 0 0 1 28 3.425v8.902c0 .913-.355 1.774-1 2.42L14.707 27.075a3.406 3.406 0 0 1-2.417 1.002zm7.704-21.325c.34 0 .659.132.9.373a1.28 1.28 0 0 1 0 1.804c-.482.481-1.32.481-1.8 0a1.28 1.28 0 0 1 0-1.804c.241-.24.56-.373.9-.373zm0 4.702c.91 0 1.769-.357 2.415-1.003a3.438 3.438 0 0 0 0-4.844c-1.294-1.295-3.543-1.293-4.83 0a3.438 3.438 0 0 0 0 4.844 3.39 3.39 0 0 0 2.415 1.003z",fillRule:"evenodd"}));Tt.displayName="TagIcon";const Nt=Tt,At="RiS4JE",xt="VkcyvG",_t="lSa0cq",Lt="DfW9b1",Rt=[Pt.VIDEO_CARD_TYPES.VIDEO,Pt.VIDEO_CARD_TYPES.RECENT_VIDEO,Pt.VIDEO_CARD_TYPES.CHANNEL],kt=({type:e,thumbnailUrl:t,itemType:n})=>{if(n===ot.q.ItemScheduled)return t?null:l().createElement(fe.W,{className:Lt,icon:l().createElement(Ot.Z,null)});if((0,c.includes)(Rt,e))return l().createElement(fe.W,{className:w()(At,{[xt]:t}),icon:l().createElement(Et.Z,null)});if(t)return null;switch(e){case Pt.VIDEO_CARD_TYPES.PRODUCT:return l().createElement(fe.W,{className:_t,icon:l().createElement(Nt,null)});case Pt.VIDEO_CARD_TYPES.CUSTOM:return l().createElement(fe.W,{className:_t,icon:l().createElement(Ne,null)});default:return null}};kt.propTypes={type:E().string,thumbnailUrl:E().string,itemType:E().string};class Dt extends l().Component{constructor(){super(...arguments),this.handleCardClick=()=>{const{cardData:e,onCardClick:t}=this.props;t(e)}}isScheduledVideo(){const{itemType:e}=this.props.cardData;return e===ot.q.ItemScheduled}hasCTA(){const{cardData:{buttonLabel:e,network:t}}=this.props;return Boolean(e||t)&&!this.isScheduledVideo()}renderThumbnail(){const{cardData:{thumbnailUrl:e,type:t,itemType:n}}=this.props,r=(0,c.includes)(Rt,t),o=e?{backgroundImage:`url(${e})`}:null,i=w()(Ke,{[rt]:r&&e});return l().createElement("div",{className:i,style:o},l().createElement("div",{className:nt},l().createElement(kt,{type:t,itemType:n,thumbnailUrl:e})))}render(){const{cardData:e,className:t,isAccessible:n,labels:r}=this.props,{text:o,url:i,type:s,liveLabel:a}=e,c=this.hasCTA(),u=s===Pt.VIDEO_CARD_TYPES.SOCIAL,d=w()(Ye,{[Xe]:u});return l().createElement("div",{className:t,tabIndex:"-1","data-hook":"action-card"},l().createElement("a",{className:d,onClick:this.handleCardClick,href:i,"aria-hidden":!n,tabIndex:n?0:-1,rel:"noopener noreferrer",target:"_blank"},l().createElement("div",{className:et},this.renderThumbnail(),l().createElement("div",{className:tt},l().createElement("div",{className:Qe},l().createElement("div",{className:Je},o&&l().createElement(dt,{text:o,liveLabel:a,isShrinkable:u,withSeparator:!u&&c})),c&&l().createElement(It,{labels:r,isAccessible:n,cardData:e}))))))}}Dt.propTypes={className:E().string,isAccessible:E().bool,cardData:E().object,onCardClick:E().func,labels:E().object},Dt.defaultProps={onCardClick:c.noop};const Vt="HaXnOY",Mt="jo7Fg7",Bt="OFNa_D",Ft="PKbcus",Ut="C9kzB8",jt="mGvMO8",Ht="W_lwxx";class Zt extends l().Component{constructor(e){super(e),this.recalculateWidthAndSize=()=>{const{cardsData:e}=this.props,t=this.contentRef.clientWidth,n=(0,c.clamp)(Math.min(Math.floor(t/226),6),0,e.length);this.setState({cardsPerSlideCount:n,isNavVisible:n!==e.length})},this.renderItem=e=>{const{onCardClick:t,labels:n}=this.props;return l().createElement(Dt,{key:e.clientId,labels:n,cardData:e,className:Ut,onCardClick:t})},this.saveContentRef=e=>{this.contentRef=e},this.renderPrevButton=({onClick:e})=>this.state.isNavVisible&&l().createElement(qe.f,{className:jt,ariaLabel:this.props.prevButtonAriaLabel,arrowIcon:l().createElement(fe.W,{icon:l().createElement($e,{size:null})}),tabIndex:0,dataHook:"prev-button",onClick:e}),this.renderNextButton=({onClick:e})=>this.state.isNavVisible&&l().createElement(qe.f,{className:Ht,ariaLabel:this.props.nextButtonAriaLabel,tabIndex:0,arrowIcon:l().createElement(fe.W,{icon:l().createElement($e,{size:null})}),dataHook:"next-button",onClick:e}),this.stopPropagation=e=>{e.stopPropagation()},this.contentRef=null,this.state={cardsPerSlideCount:null,isNavVisible:!1}}componentDidMount(){this.recalculateWidthAndSize(),this.recalculateWidthAndSize=(0,c.debounce)(this.recalculateWidthAndSize),window.addEventListener("resize",this.recalculateWidthAndSize)}componentDidUpdate({cardsData:e}){e.length!==this.props.cardsData.length&&this.contentRef&&this.recalculateWidthAndSize()}componentWillUnmount(){window.removeEventListener("resize",this.recalculateWidthAndSize)}render(){const{cardsData:e,getSlideAriaLabel:t}=this.props,{cardsPerSlideCount:n}=this.state;return l().createElement("div",{className:Vt,"data-hook":"all-cards"},l().createElement("div",{className:Mt,ref:this.saveContentRef},l().createElement(Me.r,{className:Bt,when:n>0},n&&l().createElement("div",{className:Ft,onClick:this.stopPropagation},l().createElement(ze,{width:226*n,renderNextButton:this.renderNextButton,renderPrevButton:this.renderPrevButton,getSlideAriaLabel:t,itemWidth:226},(0,c.map)(e,this.renderItem))))))}}Zt.propTypes={cardsData:E().array,onCardClick:E().func,getSlideAriaLabel:E().func,prevButtonAriaLabel:E().string,nextButtonAriaLabel:E().string,labels:E().object},Zt.defaultProps={getSlideAriaLabel:(0,c.constant)("")};var Wt,zt=n(88677),qt=n.n(zt),Gt=n(62328);!function(e){e[e.BOTTOM_LEFT=1]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT"}(Wt||(Wt={}));var $t=n(72915);const Yt={[Wt.BOTTOM_LEFT]:$t.h.BOTTOM_LEFT,[Wt.BOTTOM_RIGHT]:$t.h.BOTTOM_RIGHT};class Kt extends l().Component{constructor(e){super(e),this.contentNode=document.createElement("div"),this.setCardAccessible=e=>{this.setState({isAccessible:e})};const{player:t}=this.props;this.state={isAccessible:!1},t.onCardHidden((()=>this.setCardAccessible(!1))),t.onCardShown((()=>this.setCardAccessible(!0)))}getPlayerCardData(e){const{cardData:t,index:n}=e,{contentNode:r}=this;return(({cardData:e,index:t,contentNode:n})=>{const{clientId:r,from:o,to:i}=e;return{id:r,from:o,to:i,order:t,contentNode:n,hasDynamicContent:e.type===Pt.VIDEO_CARD_TYPES.SOCIAL}})({contentNode:r,cardData:t,index:n})}componentDidMount(){const{player:e}=this.props;e.addCard(this.getPlayerCardData(this.props)).then((()=>this.updateActiveCard()))}componentDidUpdate(e){const t=this.getPlayerCardData(this.props),n=this.getPlayerCardData(e);if(!(0,c.isEqual)(n,t)){const{player:e}=this.props;e.updateCards([t]).then((()=>this.updateActiveCard()))}}updateActiveCard(){const{player:e,isActive:t,cardData:n}=this.props;t&&e.setActiveCard(n.clientId)}componentWillUnmount(){const{player:e,cardData:t}=this.props;e&&e.removeCard&&e.removeCard(t.clientId)}render(){const{onCardClick:e,labels:t,cardData:n}=this.props,{isAccessible:r}=this.state;return qt().createPortal(l().createElement(Gt.c,{labels:t,isAccessible:r,cardData:n,onCardClick:e}),this.contentNode)}}class Xt extends l().PureComponent{constructor(){super(...arguments),this.cardsConfig={anchorPoint:$t.h.BOTTOM_LEFT}}componentDidUpdate(){this.updateCardsConfig()}updateCardsConfig(){const{player:e,cardsData:t}=this.props;if(!e||(0,c.isEmpty)(e)||(0,c.isEmpty)(t))return;const n=(e=>{const[t]=e;return Yt[t.position]})(t);n!==this.cardsConfig.anchorPoint&&(e.setAnchorPoint(n),this.cardsConfig.anchorPoint=n)}render(){const{player:e,cardsData:t,onCardClick:n,labels:r,activeVideoCard:o}=this.props;return!e||(0,c.isEmpty)(e)?null:l().createElement(l().Fragment,null,t.map(((t,i)=>l().createElement(Kt,{key:t.clientId,player:e,labels:r,onCardClick:n,cardData:t,index:i,isActive:!!o&&t.clientId===o.clientId}))))}}Xt.propTypes={player:E().object,cardsData:E().array,onCardClick:E().func,activeVideoCard:E().object,labels:E().object},Xt.defaultProps={onCardClick:c.noop};class Qt extends l().Component{UNSAFE_componentWillReceiveProps({isPlayerUIVisible:e,showPlayerUI:t,hidePlayerUI:n}){e!==this.props.isPlayerUIVisible&&(e?t&&t():n&&n())}render(){return null}}var Jt=n(35163),en=n(3729),tn=n(82053),nn=n(38239),rn=n(71217),on=n(39396),sn=n(27069),an=n(10396),ln=n(32313),cn=n(60901);var un=n(49288),dn=n(70428),pn=n(43399),hn=n(14013),mn=n(81098),fn=n(63212),gn=n(79812),vn=n(35664),yn=n(31255),bn=n(75608),En=n(86606);const Sn=(e,t,n,r)=>(!(0,En.n_)(t)&&(0,en.QK)(e)||(0,En.n_)(t)&&(0,en.lM)(e))&&!(0,bn.jG)(n.id)&&!(0,v.SH)(t)&&!(0,En.$Z)(t)&&(0,De.yi)(n,t,r),Cn=e=>e.comments.isOpen,wn=e=>e.comments.openOnLoad,Pn=e=>e.comments.hasNewComments;var In=n(946),On=n(14254),Tn=n(72096),Nn=n(78325),An=n(18753),xn=n(93060),_n=n(52907),Ln=n(87077),Rn=n(13060),kn=n(95701);const Dn={selectVideo:_n.Uw,playVideo:mn.Kz,pauseVideo:mn.r,ensureVideoLoaded:xn.d};class Vn extends l().Component{constructor(){super(...arguments),s()(this,"handlePlayRequest",(e=>{let{id:t}=e;const{channelData:n,currentSiteUser:r,selectVideo:o,playVideo:i,ensureVideoLoaded:s}=this.props;s(t).then((()=>{const e=this.props.videoByIds[t];if(e){if((0,De.$4)(n,e,r))return void i(e.id);o(e.id)}else this.props.errorMonitor.captureMessage(`Card video not found. videoId=${t}`)}))}))}render(){return l().createElement(kn.Z,o()({},this.props,{handlePlayRequest:this.handlePlayRequest}))}}const Mn=(0,d.$j)((e=>({cardsData:(0,Tn.sI)(e),currentSiteUser:(0,In.C)(e),videoByIds:(0,Rn.$u)(e),channelData:(0,Ln.js)(e)})),Dn)((0,An.A)(Vn));var Bn=n(63193),Fn=n(94715);var Un=n(77580);const jn={setCommentsOpen:Nn.kV,setHasNewComments:Nn.B_,playVideo:mn.Kz,pauseVideo:mn.r,setSavedTime:fn.Z,setOpenCommentsOnLoad:Nn.bq,logBi:rn.k,requestLogin:Bn.Pw,storeForReload:Fn.Y};class Hn extends l().Component{constructor(){super(...arguments),s()(this,"handleUxEvent",(e=>{let{name:t}=e;const{setCommentsOpen:n}=this.props;"widget:hide"===t&&(n(!1),this.logShownBi(!1)),"widget:show"===t&&(n(!0),this.logShownBi(!0))})),s()(this,"logShownBi",(e=>{const{isSingleVideo:t,videoItem:n,channelData:r}=this.props;this.props.logBi("widget.vid.showComment.shown",{isShown:e,isSingleVideo:t,channelID:r.id,videoID:n.id,source:n.videoSource})})),s()(this,"handleMetadataChange",(e=>{let{comments:t}=e;const{videoItem:n,channelData:r,isSingleVideo:o,shouldOpenCommentsOnLoad:i,setCommentsOpen:s,hasNewComments:a,setHasNewComments:l}=this.props,c=t.countDiff>0;c&&!a&&this.props.logBi("widget.vid.newComment.added",{isSingleVideo:o,channelID:r.id,videoID:n.id,source:n.videoSource}),l(c),i&&s(!0)})),s()(this,"getVideoId",(()=>this.props.videoItem.id)),s()(this,"getMediaDetails",(()=>{const{videoItem:e,channelData:t}=this.props;return{title:u().get(e,"title",""),description:u().get(e,"description",""),group:{id:t.id,title:u().get(t,"title",""),description:u().get(t,"description","")}}})),s()(this,"handleLoginRequest",(()=>(this.makeLoginRequest(),Promise.resolve()))),s()(this,"makeLoginRequest",(0,dn.Q)((()=>{const{player:e,currentSiteUser:t,isSingleVideo:n,videoItem:r,channelData:o,isInFullScreen:i,metaSiteId:s,handlers:a}=this.props;t?a.requestAnnotoToken(t.id,s):(this.savePlayerTime(),i&&e.exitFullScreen(),this.props.requestLogin()),this.props.logBi("widget.vid.commentsLogin.requested",{isSingleVideo:n,channelID:o.id,videoID:r.id,source:r.videoSource})})))}componentDidMount(){const{player:e,mobileMode:t,locale:n,siteUrl:r,currentSiteUser:o,isRTL:i,metaSiteId:s,handlers:a}=this.props;e.configureAnnoto({clientId:"eyJhbGciOiJIUzI1NiJ9.ZDEyMTdhOWEtN2QxMS00ZTBmLWIyNzctMGE4ZWUwN2M2NzQx.JWXkCOUIagc4dnrJL37lKXGqbCSBFtKdv-ktfcvCPs8",locale:n,ssoAuthRequestHandle:this.handleLoginRequest,mediaDetailsHandle:this.getMediaDetails,metadataChangeCallback:this.handleMetadataChange,uxEventCallback:this.handleUxEvent,mediaIdGetter:this.getVideoId,rtl:i,deviceDetector:{isSmallScreen:()=>t,isPhone:()=>t,isTablet:()=>t,isDesktop:()=>!t},originProvider:{getPageUrl:()=>r}}),o&&a.requestAnnotoToken(o.id,s),this.updatePlayerTime(),this.changeAnnotoState()}componentDidUpdate(e){var t;const{isCommentsOpen:n,player:r,canShowComments:o,savedTime:i,controllerState:s}=this.props,a=null==s?void 0:s.annotoToken;e.canShowComments!==o&&this.changeAnnotoState(),n&&!e.isCommentsOpen&&(r.showAnnoto(),this.logShownBi(!0)),e.savedTime!==i&&this.updatePlayerTime(),a&&a!==(null==(t=e.controllerState)?void 0:t.annotoToken)&&r.setAnnotoAuthToken(a)}changeAnnotoState(){const{player:e,canShowComments:t}=this.props;t?e.enableAnnoto():e.disableAnnoto()}savePlayerTime(){const{player:e,videoItem:t}=this.props;this.props.storeForReload({selectedVideoId:t.id,savedPlayerTime:e.getCurrentTime()})}updatePlayerTime(){const{player:e,pauseVideo:t,playVideo:n,savedTime:r,videoItem:o,setSavedTime:i,setOpenCommentsOnLoad:s}=this.props;e&&r&&(e.seekTo(r),s(!0),i(0),n(o.id),t(o.id))}render(){return null}}const Zn=(0,d.$j)(((e,t)=>{const n=u().get(t,"videoItem"),r=u().get(t,"channelData"),o=(0,In.C)(e),i=(0,on.LC)(e);return{isCommentsOpen:Cn(e),isSingleVideo:(0,tn.qf)(e),shouldOpenCommentsOnLoad:wn(e),hasNewComments:Pn(e),locale:(0,en.Kd)(e),siteUrl:(0,on.$2)(e),currentSiteUser:(0,In.C)(e),isInFullScreen:(0,oe.R8)(e),canShowComments:Sn(e,n,r,o),savedTime:e.player.savedTime,isRTL:(0,en.dZ)(e),metaSiteId:i}}),jn)((0,Un.N)(Hn));var Wn=n(3805);const zn=e=>{const t=w()(e.contentClassName,Ve["all-cards-overlay-content"]);return l().createElement(Wn.s,{...e,contentClassName:t})};var qn=n(81575),Gn=n.n(qn),$n=n(16323),Yn=n(94405);const Kn="m0baio",Xn="hw8H8f",Qn="rDz0mW",Jn="So_3pm",er="laV3i9",tr="iLwgzF",nr="qVQkbr",rr="xz7VbD",or="uq6PPJ",ir="YQM__i",sr="ffY7am",ar="niJTck",lr="ktIw_6",cr="snSvLF",ur="DPm1Pl",dr="_nT8_U",pr="SIAZfj",hr="oETVfO",mr={width:303,height:449},fr={width:450,height:667};class gr extends l().Component{constructor(){super(...arguments),this.title=null,this.info=null,this.posterEl=null,this.savePosterRef=e=>{this.posterEl=e},this.saveTitleRef=e=>{this.title=e},this.setPosterSize=()=>{const{isInFullScreen:e}=this.props;this.updatePosterStyle(e?fr:mr)}}componentDidMount(){this.clamp(),this.setPosterSize()}componentDidUpdate(e){e.title&&e.title!==this.props.title&&this.clamp(),e.isInFullScreen!==this.props.isInFullScreen&&this.setPosterSize()}clamp(){this.title&&Gn()(this.title,{lineClamp:3})}getRoles(e,t){const{[e]:n}=this.props;if(!n||!n.length)return null;const r=n.map((({role:t,name:n},r)=>t?l().createElement("div",{key:r,"data-hook":`overlay-info-${e}`,className:ur},l().createElement("div",{className:dr},t),l().createElement("div",{className:pr},n)):null));return l().createElement("div",{className:lr},l().createElement("div",{className:cr},t),r)}updatePosterStyle({width:e,height:t}){const n=this.posterEl;n&&(n.style.width=`${Math.floor(n.offsetHeight/t*e)}px`)}getPosterImage(e,t,n){const{posterUrl:r,isInFullScreen:o,imageHost:i}=this.props;if(!r)return null;const s=(0,$n.N)({url:r,width:2*e,height:2*t,imageHost:i}),a=w()(Jn,n,{[tr]:o});return l().createElement("div",{ref:this.savePosterRef,className:a,"data-hook":"overlay-info-poster",style:{backgroundImage:`url(${s})`}})}get compactPoster(){const{posterUrl:e,title:t,imageHost:n}=this.props;if(!e)return null;const r=(0,$n.N)({url:e,width:2*mr.width,height:2*mr.height,imageHost:n});return l().createElement("img",{className:`${Jn} ${er}`,"data-hook":"overlay-info-poster-compact",src:r,alt:t})}get poster(){const{isInFullScreen:e}=this.props;return e?null:this.getPosterImage(mr.width,mr.height)}get fullScreenPoster(){const{isInFullScreen:e}=this.props;return e?this.getPosterImage(fr.width,fr.height):null}get publisher(){const{publisher:e,isRTL:t}=this.props;if(!e)return null;const n=w()(or,{[sr]:t,[ir]:!t});return l().createElement("div",{className:n,"data-hook":"overlay-info-publisher"},e)}get genre(){const{genre:e,isRTL:t}=this.props;if(!e)return null;const n=w()(or,{[sr]:t,[ir]:!t});return l().createElement("div",{className:n,"data-hook":"overlay-info-genres"},e)}get videoType(){const{videoType:e,isRTL:t}=this.props;if(!e)return null;const n=w()(or,{[sr]:t,[ir]:!t});return l().createElement("div",{className:n,"data-hook":"overlay-info-video-type"},e)}get duration(){const{durationStr:e,durationAriaLabel:t,isRTL:n}=this.props;if(!e)return null;const r=w()(or,{[sr]:n,[ir]:!n});return l().createElement("div",{className:r,"data-hook":"overlay-info-duration","aria-label":t},` ${e}`)}get description(){const{description:e}=this.props;return e?l().createElement("div",{className:ar,"data-hook":"overlay-info-description"},e):null}render(){const{title:e,isInFullScreen:t,castTitle:n,crewTitle:r}=this.props,o=w()(Kn,{[hr]:t});return l().createElement("div",{className:o,"data-hook":"player-overlay-info"},this.poster,l().createElement(Yn.t,{className:Xn},l().createElement("div",{className:Qn},l().createElement("h3",{ref:this.saveTitleRef,className:nr,"data-hook":"overlay-info-title",title:e},e),l().createElement("div",{className:rr},this.publisher,this.genre,this.videoType,this.duration),this.description,this.fullScreenPoster,this.getRoles("cast",n),this.getRoles("crew",r),this.compactPoster)))}}var vr=n(72788);class yr extends l().Component{translateCrew(e){return u().map(e,(e=>{const{role:t}=e;return t?{...e,role:this.props.t(`shared.crew.${t}`)}:e}))}translateGenre(e){return e?this.props.t(`shared.genres.${e}`):null}translateVideoType(e){return e?this.props.t(`shared.video-types.${e}`):null}translatePublisher(e){return e?this.props.t("player.info-overlay.created-by",{author:e}):null}render(){const{posterUrl:e,title:t,description:n,publisher:r,durationStr:o,durationAriaLabel:i,genre:s,videoType:a,cast:c,crew:u,isPlayerInFullScreen:d,isRTL:p}=this.props;return l().createElement(gr,{title:t,description:n,posterUrl:e,durationStr:o,durationAriaLabel:i,publisher:this.translatePublisher(r),genre:this.translateGenre(s),videoType:this.translateVideoType(a),cast:c,crew:this.translateCrew(u),crewTitle:this.props.t("player.info-overlay.crew"),castTitle:this.props.t("player.info-overlay.cast"),isInFullScreen:d,imageHost:vr.l.image,isRTL:p})}}const br=(0,ie.Z)()(yr);var Er=n(62568);const Sr="PUVy2x";var Cr;const wr=(0,ie.Z)()((0,d.$j)(((e,t)=>({compId:(0,on.Qp)(e),isVideoInfoVisible:t.overlayContent===Er.Z.VIDEO_INFO,isAllCardsVisible:t.overlayContent===Er.Z.ALL_CARDS,areElementsRounded:(0,en.as)(e),isRTL:(0,en.dZ)(e)})))((Cr=class extends l().Component{constructor(){super(...arguments),s()(this,"videoInfoContainerRef",null),s()(this,"allCardsContainerRef",null),s()(this,"saveVideoInfoContainerRef",(e=>{this.videoInfoContainerRef=e})),s()(this,"saveAllCardsContainerRef",(e=>{this.allCardsContainerRef=e}))}componentDidUpdate(e){const{overlayContent:t}=this.props;if(!t&&e.overlayContent===t)return;const n=t=>this.props[t]&&!e[t];n("isVideoInfoVisible")&&(0,G.T)(this.videoInfoContainerRef),n("isAllCardsVisible")&&(0,G.T)(this.allCardsContainerRef)}render(){const{videoItem:{posterUrl:e,title:t,description:n,publisher:r,durationStr:o,genre:i,videoType:s,cast:a,crew:c},allCardsOverlayContent:u,overlayContent:d,isPlayerInFullScreen:p,isVideoInfoVisible:h,isAllCardsVisible:m,onClose:f,isRTL:g}=this.props;return l().createElement(Fe,{isActive:d},l().createElement("section",{className:Sr,"aria-hidden":!h,ref:this.saveVideoInfoContainerRef},l().createElement(Be,{when:h},l().createElement(Wn.s,{dataHook:"closable-overlay",onClose:f,isInFullScreen:p,posterUrl:e,isVisible:h,isRTL:g,ariaLabel:this.props.t("widget.accessibility.video-info"),closeButtonAriaLabel:this.props.t("widget.accessibility.close-video-info")},l().createElement(br,{title:t,description:n,posterUrl:e,publisher:r,genre:i,videoType:s,durationStr:o,durationAriaLabel:this.props.t("widget.accessibility.duration",{durationStr:o}),cast:a,crew:c,isPlayerInFullScreen:p,isRTL:g})))),l().createElement("section",{className:Sr,"aria-hidden":!m,ref:this.saveAllCardsContainerRef},l().createElement(Be,{when:m,type:"fade-in"},l().createElement(zn,{dataHook:"all-cards-overlay",onClose:f,isVisible:m,isFullWidth:!0,isFullWidthForced:!0,isInFullScreen:p,isRTL:g,closeOnBodyClick:!0,ariaLabel:this.props.t("widget.accessibility.all-cards"),closeButtonAriaLabel:this.props.t("widget.accessibility.close-all-cards")},m&&u))))}},s()(Cr,"defaultProps",{onClose:u().noop}),Cr)));class Pr extends l().Component{constructor(e){super(e),s()(this,"onStateChanged",(e=>{let{nextState:t,prevState:n}=e;t===ln.EngineState.PLAYING&&t!==n?this.startPollCounterService():t===ln.EngineState.PAUSED&&this.stopPollCounterService()})),s()(this,"startPollCounterService",(()=>{this.counterIntervalId||(this.counterIntervalId=setInterval(this.pingCounterService,5e3))})),s()(this,"stopPollCounterService",(()=>{clearInterval(this.counterIntervalId),this.counterIntervalId=null})),s()(this,"pingCounterService",(()=>{this.props.handlers.pingCounterService(this.streamPingUrl)})),this.streamPingUrl=(0,c.get)(e,"videoItem.streamPingUrl")}componentDidMount(){const{eventEmitter:e,canAccessFullVideo:t}=this.props;this.streamPingUrl&&t&&e.on(ln.VIDEO_EVENTS.STATE_CHANGED,this.onStateChanged)}componentWillUnmount(){const{eventEmitter:e}=this.props;this.stopPollCounterService(),e.off(ln.VIDEO_EVENTS.STATE_CHANGED,this.onStateChanged)}render(){return null}}const Ir=(0,Un.N)(Pr);var Or=n(45375),Tr=n(53458);const Nr={updateLiveStatus:Or.W,logBi:rn.k},Ar=(0,d.$j)(null,Nr)(class extends l().Component{constructor(){super(...arguments),s()(this,"onLiveStatusChanged",(e=>{let{nextState:t}=e;const{updateLiveStatus:n,videoItem:r,channelId:o}=this.props;t===ln.LiveState.ENDED&&(this.props.logBi("widget.live.video.ended",{channelID:o,videoID:r.id}),n({...r,itemType:Tr.qG.ItemLiveFinalize}))}))}componentDidMount(){const{eventEmitter:e}=this.props;e.on(ln.VIDEO_EVENTS.LIVE_STATE_CHANGED,this.onLiveStatusChanged)}componentWillUnmount(){const{eventEmitter:e}=this.props;e.off(ln.VIDEO_EVENTS.LIVE_STATE_CHANGED,this.onLiveStatusChanged)}render(){return null}}),xr=e=>{let{videoItem:t,eventEmitter:n,channelId:r,canAccessFullVideo:o,isSiteMode:i}=e;return(0,En.n_)(t)&&i?l().createElement("div",null,l().createElement(Ir,{eventEmitter:n,videoItem:t,canAccessFullVideo:o}),l().createElement(Ar,{eventEmitter:n,videoItem:t,channelId:r})):null};var _r=n(4600);const Lr={bitrate:0,width:0,height:0};class Rr extends l().Component{constructor(e){super(e),this.sendBI=()=>{const{videoID:e,engine:t,isEmbed:n,isLive:r,channelID:o,logFunction:i}=this.props,s=t.getDebugInfo(),{url:a,type:l,width:c,height:u,viewportWidth:d,viewportHeight:p,bitrate:h,deliveryPriority:m,currentTime:f,duration:g}=this.getDataForBI(s);i({videoID:e,channelID:o,isEmbed:n,isLive:r,videoUrl:a,videoType:l,deliveryType:ln.MediaStreamDeliveryPriority[m],bitrate:h,videoWidth:c,videoHeight:u,viewportWidth:d,viewportHeight:p,timeFrame:f,duration:(0,_r.Q)(g)})},e.videoID&&e.shouldSendBI&&this.startIntervalBILogging()}UNSAFE_componentWillReceiveProps(e){const{shouldSendBI:t,videoID:n}=e;t?n&&(n!==this.props.videoID?(this.stopIntervalBILogging(),this.startIntervalBILogging()):this.props.shouldSendBI!==t&&this.startIntervalBILogging()):this.props.shouldSendBI!==t&&this.stopIntervalBILogging()}componentWillUnmount(){this.stopIntervalBILogging()}startIntervalBILogging(){this._loggingInterval=setInterval(this.sendBI,5e3)}getDataForBI(e){const{url:t,currentTime:n,type:r,deliveryPriority:o,viewDimensions:{width:i,height:s},duration:a}=e,l={url:t,type:r,deliveryPriority:o,currentTime:n,viewportWidth:i,viewportHeight:s,duration:a};let c=null;switch(r){case ln.MediaStreamType.DASH:c={...l,...Lr,...this.getDashInfo(e)};break;case ln.MediaStreamType.HLS:c={...l,...Lr,...this.getHlsInfo(e)};break;default:c={...l,...Lr}}return c}getStreamInfo(e){return(0,c.pick)(e.currentBitrate,["width","height","bitrate"])}getDashInfo(e){return this.getStreamInfo(e)}getHlsInfo(e){const{currentBitrate:t}=e;return t?this.getStreamInfo(e):{...Lr}}stopIntervalBILogging(){clearInterval(this._loggingInterval)}render(){return null}}Rr.dependencies=["engine"],Rr.propTypes={engine:E().object,videoID:E().string.isRequired,channelID:E().string.isRequired,logFunction:E().func.isRequired,shouldSendBI:E().bool,isEmbed:E().bool,isLive:E().bool},Rr.defaultProps={isEmbed:!1,duration:null};class kr extends l().Component{constructor(e){super(e),this.onPlaybackStateChange=({nextState:e})=>{switch(e){case ln.EngineState.PLAY_REQUESTED:this._needToLogPlayDone=!0,this.logPlayRequest();break;case ln.EngineState.PLAYING:this._needToLogPlayDone&&(this.logPlayDone(),this._needToLogPlayDone=!1)}},this.subscribeToEvents()}componentWillUnmount(){this.unSubscribeFromEvents()}subscribeToEvents(){const{eventEmitter:e}=this.props;e.on(ln.VIDEO_EVENTS.STATE_CHANGED,this.onPlaybackStateChange)}unSubscribeFromEvents(){const{eventEmitter:e}=this.props;e.off(ln.VIDEO_EVENTS.STATE_CHANGED,this.onPlaybackStateChange)}logPlayRequest(){const{videoID:e,channelID:t,engine:n,logTryFunction:r}=this.props;r({videoID:e,channelID:t,videoUrl:(0,c.get)(n,"attachedAdapter.currentUrl",null)})}logPlayDone(){const{videoID:e,channelID:t,engine:n,logSuccessFunction:r}=this.props;r({videoID:e,channelID:t,videoUrl:(0,c.get)(n,"attachedAdapter.currentUrl",null)})}render(){return null}}kr.propTypes={videoID:E().string.isRequired,channelID:E().string.isRequired,logTryFunction:E().func.isRequired,logSuccessFunction:E().func.isRequired,eventEmitter:E().object,engine:E().object};class Dr extends l().Component{constructor(e){super(e),s()(this,"logError",(e=>{const{videoID:t,engine:n,logFunction:r,isLive:o}=this.props,i=(0,c.get)(n,"attachedAdapter.currentUrl",null),{errorType:s,streamProvider:a,streamType:l,errorInstance:u}=e;r({videoID:t,videoUrl:i,errorType:s,streamProvider:a,streamType:l,isLive:o},u)})),this.subscribeToEvents()}componentWillUnmount(){this.unSubscribeFromEvents()}subscribeToEvents(){const{eventEmitter:e}=this.props;e.on(ln.VIDEO_EVENTS.ERROR,this.logError)}unSubscribeFromEvents(){const{eventEmitter:e}=this.props;e.off(ln.VIDEO_EVENTS.ERROR,this.logError)}render(){return null}}var Vr=n(19093);const Mr=(0,d.$j)(null,{logBi:rn.k})((e=>{let{isAutoplayed:t,isEmbed:n=!1,isLive:r=!1,isVideoPlaying:o,engine:i,eventEmitter:s,channelData:a,videoItem:u,logBi:d}=e;const p=(0,Vr.L)();return l().createElement("section",null,l().createElement(Rr,{videoID:u.id,isEmbed:n,isLive:r,channelID:a.id,engine:i,logFunction:e=>{d("player.debug.info",{...e,isAutoplay:t})},shouldSendBI:o}),l().createElement(kr,{videoID:u.id,engine:i,eventEmitter:s,logTryFunction:e=>{d("player-play-requested",{...e,isAutoplay:t})},logSuccessFunction:e=>{d("player-play-done",{...e,isAutoplay:t})},channelID:a.id}),l().createElement(Dr,{engine:i,eventEmitter:s,logFunction:(e,t)=>{var n,r;t.fatal&&d("player-error",e),p.captureException(new Error(`Player error ${t.fatal?"fatal":""} ${e.errorType}; details ${t.details}; type ${t.type}; response ${null==(n=t.response)?void 0:n.code} ${null==(r=t.response)?void 0:r.text}`),{contexts:{"Player Error":(0,c.pick)(t,["url","type","details","fatal","response"]),"Event data":{...e}}})},videoID:u.id,isLive:r}))}));var Br=n(16022),Fr=n(65925),Ur=n(52829),jr=n(3333),Hr=n(24791);const{logAllCardsButtonClick:Zr,logAllCardsCloseButtonClick:Wr}=hn.default;class zr extends Br.default{constructor(){super(...arguments),s()(this,"enterFullScreen",(0,dn.Q)((()=>{super.enterFullScreen()})))}}const qr={toggleShareVideoOverlay:yn.lu,showPlayerUI:gn.$g,hidePlayerUI:gn.A9,playVideo:mn.Kz,pauseVideo:mn.r,resetPlaybackStatus:mn.UX,setSavedTime:fn.Z,setCommentsOpen:Nn.kV,setOverlayContent:vn.V,logBi:rn.k,logAllCardsButtonClick:Zr,logAllCardsCloseButtonClick:Wr};class Gr extends l().Component{constructor(){var e;super(...arguments),e=this,s()(this,"state",{VideoPlayerWrapper:null,VODplayer:null,vidiUrls:null}),s()(this,"loadPlayerPromise",void 0),s()(this,"isUnmounted",!1),s()(this,"isVideoElementValidated",!1),s()(this,"onEnded",(function(){e.closeOpenOverlays();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.props.onEnded(n)})),s()(this,"onPlayerInit",(e=>{this.isUnmounted||this.setState({player:e,eventEmitter:e._defaultModules.eventEmitter,engine:e._defaultModules.engine})})),s()(this,"reportAnomaly",(()=>{})),s()(this,"handleOverlayClose",(()=>{this.props.overlayContent===Er.Z.ALL_CARDS&&this.props.logAllCardsCloseButtonClick(),this.closeOpenOverlays()})),s()(this,"closeOpenOverlays",(()=>{this.props.showPlayerUI(),this.props.overlayContent&&this.props.setOverlayContent(null)})),s()(this,"openShareOverlay",(()=>{const{toggleShareVideoOverlay:e,hidePlayerUI:t}=this.props;t(),e()})),s()(this,"openVideoInfoOverlay",(()=>{this.props.hidePlayerUI(),this.props.setOverlayContent(Er.Z.VIDEO_INFO)})),s()(this,"handleAllCardsButtonClick",(()=>{this.props.hidePlayerUI(),this.props.setOverlayContent(Er.Z.ALL_CARDS),this.props.logAllCardsButtonClick()})),s()(this,"getBuyClickHandler",(()=>{const{videoItem:e,channelData:t}=this.props;switch((0,De.D$)(t,e)){case De.FE.PRICING_PLAN:case De.FE.SUBSCRIBE:return this.proxySubscribeRequest;case De.FE.RENT:return this.proxyRentRequest;default:return this.proxyPurchaseRequest}})),s()(this,"proxySubscribeRequest",(()=>{const{onSubscribeRequest:e}=this.props;e()})),s()(this,"proxyPurchaseRequest",(()=>{const{onPurchaseRequest:e}=this.props;e()})),s()(this,"proxyRentRequest",(()=>{const{onRentRequest:e}=this.props;e()})),s()(this,"onPlayAbort",(()=>{const{resetPlaybackStatus:e,abortPlayVideo:t,videoItem:n,isInLightbox:r,isLive:o}=this.props;r?e(n.id):o&&t(n.id)})),s()(this,"handleDownloadVideo",(()=>{const{isLive:e,instance:t,videoItem:n,channelData:r,baseUrl:o}=this.props;this.props.logBi("widget.download.video.clicked",{channelId:r.id,videoId:n.id,videoType:(0,le.Kn)(n)?"purchased":"free",isLive:e,duration:1e3*n.durationSec});const i=(0,jr.g)();Promise.all([this.props.downloadUrl,i.videoService.getDownloadUrl(n.itemId,r.id,t,o)]).then((e=>{const t=e[0]||e[1];window.open(t,"_blank")}))})),s()(this,"handleCommentsButtonClick",(()=>{this.state.player.showAnnoto()}))}componentDidMount(){this.loadPlayerPromise=(0,Jt.B)((0,nn.K)()),this.loadPlayerPromise.promise.then((e=>{this.setState({VODplayer:e})})).catch((e=>{if(!e.isCanceled)return Promise.reject(e)}))}UNSAFE_componentWillReceiveProps(e){this.state.vidiUrls&&u().isEqual(this.props.vidiUrls,e.vidiUrls)||this.setState({vidiUrls:e.vidiUrls}),this.shouldCloseOverlay(e)}componentWillUnmount(){this.loadPlayerPromise.cancel(),this.isUnmounted=!0}shouldCloseOverlay(e){const{videoItem:{id:t},isVideoPlaying:n,isShareOverlayOpen:r}=e,o=n&&!this.props.isVideoPlaying,i=this.props.videoItem.id!==t,s=!r&&this.props.isShareOverlayOpen;(o||i||s)&&this.closeOpenOverlays()}getBuyRentButtonText(){const{channelData:e,videoItem:t,t:n,i18n:{language:r}}=this.props;return(0,an.n)({channelData:e,videoItem:t},n,r)}getVideoOwnershipStatus(){const{videoItem:e}=this.props;return(0,De.g6)(e)}getFullScreenShareOverlay(){const{channelData:e,videoItem:t,mobileMode:n,isInFullScreen:r}=this.props;return n?null:r?l().createElement(pn.Z,{key:`share-${t.id}`,channelData:e,videoItem:t}):null}getActionButtonLabels(){return{videoInfoFullText:this.props.t("widget.action-button-labels.video-info-full"),videoInfoShortText:this.props.t("widget.action-button-labels.video-info-short"),shareVideoFullText:this.props.t("widget.action-button-labels.share-video-full"),shareVideoShortText:this.props.t("widget.action-button-labels.share-video-short"),showAllCardsFullText:this.props.t("widget.action-button-labels.show-all-cards-full"),showAllCardsShortText:this.props.t("widget.action-button-labels.show-all-cards-short"),commentsFullText:this.props.t("widget.action-button-labels.show-comments-full"),commentsShortText:this.props.t("widget.action-button-labels.show-comments-short")}}getVideoCardsAccessibilityLabels(){return{facebookButtonTitle:this.props.t("widget.accessibility.action-cards.facebook-like-button"),youtubeButtonTitle:this.props.t("widget.accessibility.action-cards.youtube-subscribe-button"),twitterButtonTitle:this.props.t("widget.accessibility.action-cards.twitter-follow-button")}}validateVideoElement(){const{player:e}=this.state;if(this.isVideoElementValidated||!e||e._destroyed)return;const t=e._defaultModules.engine.getElement();t&&(t.load(),this.isVideoElementValidated=!0)}render(){const{mobileMode:e,width:t,height:n,isAutoplayed:r,isVideoPlayRequested:i,isVideoPlaying:s,isVideoPaused:a,isVideoPauseRequested:c,playAtFullScreen:d,playInline:p,onError:h,videoItem:m,channelData:f,onPlay:g,onPause:v,onFullScreenChanged:y,cardsData:b,preload:E,isLive:S,isPlayableVideo:C,isDownloadAllowed:w,canAccessFullVideo:P,canDownloadVideo:I,muted:O,overlayContent:T,onVolumeChange:N,onMuteChange:A,isRTL:x,fillAllSpace:_,areElementsRounded:L,canShowFullInfo:R,canShareVideo:k,canShowAllCards:D,canShowTitle:V,canShowBuyRentButton:M,canShowComments:B,isCommentsEnabled:F,hasNewComments:U,onShareRequest:j,isEditorViewMode:H,isSiteViewMode:Z,t:W,qualityEnabled:z,speedEnabled:q,bi:G}=this.props,$=this.state.vidiUrls,{engine:Y,eventEmitter:K,player:X,VODplayer:Q}=this.state;if(!C)return null;if(!Q)return l().createElement(ce.$,null);i&&u().isEmpty($)&&this.validateVideoElement();const ee=this.getBuyRentButtonText(),te=this.props.t("widget.accessibility.action-cards.all-cards.next-page"),ne=this.props.t("widget.accessibility.action-cards.all-cards.previous-page"),re=e=>this.props.t("widget.accessibility.action-cards.all-cards.slide-contents",e),oe=F&&!e||H,ie={fontFamily:"Madefor",texts:{normalSpeed:W("shared.playerSettings.speed.normalSpeed"),menuSpeedTitle:W("shared.playerSettings.speed.title"),buttonTooltip:W("shared.playerSettings.tooltip"),menuQualityTitle:W("shared.playerSettings.quality.title"),autoQualityTitle:W("shared.playerSettings.quality.auto")},qualityEnabled:z,speedEnabled:q,onMenuClicked:e=>{G.report((0,Hr.op5)({origin:"widget",channelID:null==f?void 0:f.id,videoID:null==m?void 0:m.id,target:e}))},onPopoverVisibilityChange:e=>{e&&G.report((0,Hr.dbA)({origin:"widget",channelID:null==f?void 0:f.id,videoID:null==m?void 0:m.id}))},onSpeedChange:e=>{G.report((0,Hr.oUE)({origin:"widget",channelID:null==f?void 0:f.id,videoID:null==m?void 0:m.id,target:"speed",value:String(e)}))},onQualityChange:e=>{G.report((0,Hr.oUE)({origin:"widget",channelID:null==f?void 0:f.id,videoID:null==m?void 0:m.id,target:"quality",value:e}))}};return l().createElement(Q,{width:t,height:n,preload:E,mobileMode:e,vidiUrls:$,videoItem:m,channelData:f,isVideoPlayRequested:!u().isEmpty($)&&i,isVideoPauseRequested:c,playAtFullScreen:d,playInline:p,texts:{[ln.TEXT_LABELS.LOGO_LABEL]:(0,cn.t)("widget.player.watch-on-site-label"),[ln.TEXT_LABELS.LOGO_TOOLTIP]:(0,cn.t)("widget.player.watch-on-site-tooltip"),[ln.TEXT_LABELS.PAUSE_CONTROL_LABEL]:(0,cn.t)("widget.player.pause-control-label"),[ln.TEXT_LABELS.PLAY_CONTROL_LABEL]:(0,cn.t)("widget.player.play-control-label"),[ln.TEXT_LABELS.PROGRESS_CONTROL_LABEL]:(0,cn.t)("widget.player.progress-control-label"),[ln.TEXT_LABELS.PROGRESS_CONTROL_VALUE]:e=>{let{percent:t=0}=e;return(0,cn.t)("widget.player.progress-control-value",{percent:t})},[ln.TEXT_LABELS.MUTE_CONTROL_LABEL]:(0,cn.t)("widget.player.mute-control-label"),[ln.TEXT_LABELS.MUTE_CONTROL_TOOLTIP]:(0,cn.t)("widget.player.mute-control-tooltip"),[ln.TEXT_LABELS.UNMUTE_CONTROL_LABEL]:(0,cn.t)("widget.player.unmute-control-label"),[ln.TEXT_LABELS.UNMUTE_CONTROL_TOOLTIP]:(0,cn.t)("widget.player.unmute-control-tooltip"),[ln.TEXT_LABELS.VOLUME_CONTROL_LABEL]:(0,cn.t)("widget.player.volume-control-label"),[ln.TEXT_LABELS.VOLUME_CONTROL_VALUE]:e=>{let{volume:t=0}=e;return(0,cn.t)("widget.player.volume-control-value",{percent:t})},[ln.TEXT_LABELS.ENTER_FULL_SCREEN_LABEL]:(0,cn.t)("widget.player.enter-full-screen-label"),[ln.TEXT_LABELS.ENTER_FULL_SCREEN_TOOLTIP]:(0,cn.t)("widget.player.enter-full-screen-tooltip"),[ln.TEXT_LABELS.EXIT_FULL_SCREEN_LABEL]:(0,cn.t)("widget.player.exit-full-screen-label"),[ln.TEXT_LABELS.EXIT_FULL_SCREEN_TOOLTIP]:(0,cn.t)("widget.player.exit-full-screen-tooltip"),[ln.TEXT_LABELS.LIVE_INDICATOR_TEXT]:e=>{let{isEnded:t}=e;return t?(0,cn.t)("widget.player.live-ended-indicator"):(0,cn.t)("widget.player.live-indicator")},[ln.TEXT_LABELS.LIVE_SYNC_LABEL]:(0,cn.t)("widget.player.live-sync-label"),[ln.TEXT_LABELS.LIVE_SYNC_TOOLTIP]:(0,cn.t)("widget.player.live-sync-tooltip"),[ln.TEXT_LABELS.ENTER_PICTURE_IN_PICTURE_TOOLTIP]:(0,cn.t)("widget.player.enter_picture_in_picture_tooltip"),[ln.TEXT_LABELS.ENTER_PICTURE_IN_PICTURE_LABEL]:(0,cn.t)("widget.player.enter_picture_in_picture_label"),[ln.TEXT_LABELS.EXIT_PICTURE_IN_PICTURE_LABEL]:(0,cn.t)("widget.player.exit_picture_in_picture_label"),[ln.TEXT_LABELS.EXIT_PICTURE_IN_PICTURE_TOOLTIP]:(0,cn.t)("widget.player.exit_picture_in_picture_tooltip")},canShowTitle:V,onPlay:g,onPause:v,onError:h,canDownload:I&&w&&!e&&!S,onDownloadClick:this.handleDownloadVideo,muted:O,onPlayAbort:this.onPlayAbort,onEnded:this.onEnded,onAnomalyDetected:this.reportAnomaly,onFullScreenChanged:y,onInit:this.onPlayerInit,onMuteChange:A,onVolumeChange:N,isAnnotoModuleEnabled:oe,modules:{fullScreenManager:zr},isRTL:x,fillAllSpace:_,settingsModuleConfig:ie,showSettings:!0},!e&&l().createElement(je,o()({videoItem:m,isFocusable:s||a,areElementsRounded:L,canShowBuyRentButton:M&&Boolean(ee),canShowTitle:V,canShowAllCardsButton:D,canShowCommentsButton:B,shouldShowCommentsPimple:U,canShowFullInfo:R,canShareVideo:k,onShareVideoShow:this.openShareOverlay,onBuyRentButtonClick:this.getBuyClickHandler(),onAllCardsButtonClick:this.handleAllCardsButtonClick,onCommentsButtonClick:this.handleCommentsButtonClick,videoOwnershipStatus:this.getVideoOwnershipStatus(),onVideoInfoShow:this.openVideoInfoOverlay,buyRentButtonText:ee},this.getActionButtonLabels(),{infoButtonAriaLabel:this.props.t("widget.accessibility.show-video-info"),shareButtonAriaLabel:this.props.t("widget.accessibility.share"),allCardsButtonAriaLabel:this.props.t("widget.accessibility.all-cards"),commentsButtonAriaLabel:this.props.t("widget.accessibility.video-chat"),isRTL:x})),!e&&l().createElement(wr,{videoItem:m,channelData:f,overlayContent:T,onShareRequest:j,onClose:this.handleOverlayClose,allCardsOverlayContent:l().createElement(Mn,{thumbnailSize:300,biOrigin:J.ALL_CARDS,cardsData:b},(e=>{let{cardsData:t,onCardClick:n}=e;return l().createElement(Zt,{cardsData:t,onCardClick:n,getSlideAriaLabel:re,prevButtonAriaLabel:ne,nextButtonAriaLabel:te,labels:this.getVideoCardsAccessibilityLabels()})}))}),!e&&X&&!X._destroyed&&l().createElement(Mn,{thumbnailSize:300,cardsData:b,player:X,biOrigin:J.VIDEO},(e=>{let{cardsData:t,onCardClick:n}=e;return l().createElement(Xt,{cardsData:t,player:X,onCardClick:n,labels:this.getVideoCardsAccessibilityLabels()})})),!e&&l().createElement(Qt,{isPlayerUIVisible:this.props.isPlayerUIVisible}),X&&!X._destroyed&&l().createElement(Mr,{engine:Y,eventEmitter:K,videoItem:m,channelData:f,isVideoPlaying:s,isLive:S,isAutoplayed:r}),X&&!X._destroyed&&S&&l().createElement(xr,{eventEmitter:K,videoItem:m,channelId:f.id,canAccessFullVideo:P,isSiteMode:Z}),this.getFullScreenShareOverlay(),X&&F&&!e&&l().createElement(Zn,{player:X,videoItem:m,channelData:f,mobileMode:e}))}}s()(Gr,"defaultProps",{onPlay:u().noop,onPause:u().noop,onEnded:u().noop,onError:u().noop,onFullScreenChanged:u().noop,onShareRequest:u().noop,onVideoInfoShow:u().noop,onVolumeChange:u().noop,width:640,height:360,preload:"none",onPlayRequest:u().noop,canShowTitle:!0,canShowBuyRentButton:!0,isPlayableVideo:!0,muted:!1});const $r=(0,ie.Z)()(function(e){return function(t){var n=(0,se.YA)();return l().createElement(e,ae({},ae(ae({},t),{bi:n})))}}((0,d.$j)(((e,t)=>{const n=(0,Tn.sI)(e),r=u().get(t,"videoItem"),o=u().get(t,"channelData"),i=(0,In.C)(e);return{vidiUrls:(0,un.Z)(t),cardsData:n,canShowAllCards:!u().isEmpty(n),canShowComments:Sn(e,r,o,i),downloadUrl:(0,un.k)(t),isEditorViewMode:Fr.ZJ(e),isSiteViewMode:Fr.bK(e),isPlayerUIVisible:(0,oe.y3)(e),isCommentsEnabled:(0,en.QK)(e)||(0,en.lM)(e),areElementsRounded:(0,en.as)(e),isAutoplayed:(0,oe.ZA)(e),isInFullScreen:(0,oe.R8)(e),isShareOverlayOpen:(0,On.Wg)(e),isLive:(0,v.mY)(r),canAccessFullVideo:(0,De.yi)(o,r,i),isDownloadAllowed:(0,De.H_)(o,r,i),isPlayableVideo:(0,De.$4)(o,r,i),currentSiteUser:i,isSingleVideo:(0,tn.qf)(e),canDownloadVideo:(0,sn.ZS)(e,r.id),instance:(0,on.s8)(e),baseUrl:(0,Ur.S)(e),hasNewComments:Pn(e),overlayContent:(0,oe.l$)(e),isRTL:(0,en.dZ)(e),qualityEnabled:(0,en.IV)(e),speedEnabled:(0,en.um)(e)}}),qr)(Gr)));var Yr=n(73372);const Kr="nhRDy3",Xr="GJq9jn",Qr="Dle5lv",Jr="VJ3PRr",eo="WrXkTw";var to,no=n(26710);const ro={setFullScreenStatus:te.Y,setVolumeChangedByUser:ne.Nu},oo=(0,g.X)((0,d.$j)(((e,t)=>({isExternalVideo:(0,v.SH)(t.videoItem),isInFullScreen:(0,oe.R8)(e),shouldRenderInternalPlayer:!t.mobileMode||!(0,v.SH)(t.videoItem),isAllCardsOverlayVisible:(0,re.EW)(e),locale:(0,en.Kd)(e),compId:(0,on.Qp)(e)})),ro)((to=class extends l().Component{constructor(e){super(e),s()(this,"setStylesForRef",(e=>{if(!e)return;const{width:t,height:n}=this.getStyles();u().isNumber(t)&&u().isNumber(n)&&(e.style.width=`${t}px`,e.style.height=`${n}px`)})),s()(this,"saveIframeRef",(e=>{this.iframeRef=e})),s()(this,"savePlayerWrapperRef",(e=>{this.playerWrapperRef=e})),s()(this,"setPlayStatus",(()=>{const{isVideoPlaying:e}=this.props;if(!e){const{beenPlayed:e}=this.state;e?this.onResume():this.onPlayStart()}})),s()(this,"handleContainerRef",(e=>{e&&(this.subscribedPointerOver||(this.subscribedPointerOver=!0,e.addEventListener("pointerover",(()=>{const{videoItem:e}=this.props;e.videoSource===S.V.YOUTUBE&&(0,no.A)()}),{once:!0})))})),s()(this,"onPlayStart",(()=>{this.props.onPlayStart(),this.setState({beenPlayed:!0})})),s()(this,"onEnded",(async()=>{if(this.setState({ended:!0,beenPlayed:!1}),document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement){const e=(document.webkitExitFullscreen||document.exitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).bind(document);await e()}setTimeout((()=>this.props.onEnded()),100)})),s()(this,"onResume",(()=>{this.props.onResume(),this.setState({ended:!1})})),s()(this,"onFullScreenChanged",(e=>{const{setFullScreenStatus:t,onFullScreenChanged:n}=this.props;t(e),n(e)})),s()(this,"onVolumeChange",(()=>{this.props.setVolumeChangedByUser()})),s()(this,"onMuteChange",(e=>{const{isMuted:t}=this.props;t!=e&&this.props.setVolumeChangedByUser()})),this.playerWrapperRef=null,this.iframeRef=null,this.state={beenPlayed:!1,ended:!1,mounted:!1},this.playerRef=l().createRef(),this.overlayRef=l().createRef()}componentDidMount(){const e=this.playerRef.current,t=this.overlayRef.current;[e,t].forEach(this.setStylesForRef),this.handleContainerRef(t)}UNSAFE_componentWillReceiveProps(e){this.isVideoIdChanged(e)&&this.setState({beenPlayed:!1,ended:!1})}componentDidUpdate(e){const{isVideoPlaying:t,isExternalVideo:n,isAutoplayed:r}=this.props,o=e.isVideoPlaying!==t;r||o&&t&&(0,G.T)(n?this.iframeRef:this.playerWrapperRef)}isVideoIdChanged(e){return e.videoItem.id!==this.props.videoItem.id}get showChannelCover(){const{appSettings:e,canShowChannelCover:t}=this.props;return t&&e.numbers.mainItemType===ee.H.CHANNEL_COVER}showVideoTitle(){return u().get(this.props,"appSettings.booleans.showVideoTitle",!0)}shouldShowInitialOverlay(){const{isVideoPlayingOptimistic:e,isVideoPausedOptimistic:t,isVideoPlayAborted:n,isInFullScreen:r,showInitialOverlayOnPause:o,isAllCardsOverlayVisible:i,children:s}=this.props;return!i&&(o?!!s&&(!!r&&!e):n||!e&&!t)}get posterUrl(){const{videoItem:e,channelData:t}=this.props,{customCoverUrl:n}=e;let{coverUrl:r}=e;return r=n||r,this.showChannelCover&&(r=t.customCoverUrl||t.coverUrl||r),r}get initialOverlay(){const{children:e}=this.props,{beenPlayed:t,ended:n}=this.state;if(!e)return null;const{channelData:r}=this.props,o=u().pick(this.props,"showChannelCover","appSettings","videoItem");return l().cloneElement(e,u().assign({channelData:r,beenPlayed:t,ended:n,showChannelCover:this.showChannelCover},o))}get poster(){const{simple:e,isExternalVideo:t,showPoster:n,width:r,height:o,videoItem:i}=this.props;if(!n)return null;if(e&&t)return null;const s=this.posterUrl;if(!s)return null;const{channelData:a}=this.props;return a?l().createElement(Yr.Z,{posterUrl:s,mediaInfo:a.mediaInfo,channelId:a.id,channelTitle:a.title,videoTitle:i.title,showChannelCover:this.showChannelCover,width:r,height:o}):l().createElement(y.t,{src:s,breakpoins:[{min:0,width:r,height:o}]})}get overlay(){return this.shouldShowInitialOverlay()?l().createElement("div",{className:Qr,ref:this.overlayRef,style:this.getStyles(),onPointerOver:this.handlePointerOver},this.initialOverlay,this.poster):null}getStyles(){const{width:e,height:t}=this.props;return{width:e,height:t}}get player(){const{isOverQuota:e,width:t,height:n,shouldRenderInternalPlayer:r,isMuted:i,onPause:s,fillAllSpace:a}=this.props,c=u().omit(this.props,"intl","styles");return e?l().createElement(Q,{width:t,height:n}):l().createElement(l().Fragment,null,l().createElement("div",{className:f()({[eo]:a,[Jr]:this.props.isExternalVideo})},r&&l().createElement($r,o()({},c,{fillAllSpace:a,muted:i,canShowTitle:this.showVideoTitle(),onFullScreenChanged:this.onFullScreenChanged,onPlay:this.setPlayStatus,onPause:s,onEnded:this.onEnded,onVolumeChange:this.onVolumeChange,onMuteChange:this.onMuteChange}))),this.props.isExternalVideo&&l().createElement(q,o()({},c,{YoutubePlayer:no.Y,fillAllSpace:a,locale:this.props.locale,muted:i,onFullScreenChanged:this.onFullScreenChanged,onPlay:this.setPlayStatus,onPause:s,onEnded:this.onEnded,onIframeRef:this.saveIframeRef,onVolumeChange:this.onVolumeChange})))}render(){const{dataHook:e,showPlayer:t,fillAllSpace:n}=this.props;return l().createElement("div",{className:f()(Kr,{[eo]:n}),ref:this.playerRef,"data-hook":e,style:this.getStyles()},this.overlay,t&&l().createElement("div",{className:Xr,dir:"ltr",ref:this.savePlayerWrapperRef,"aria-hidden":this.shouldShowInitialOverlay()},this.player))}},s()(to,"defaultProps",{onPause:u().noop,onPlayStart:u().noop,onResume:u().noop,onEnded:u().noop,onPlayBlocked:u().noop,showPlayer:!0,showPoster:!0,dataHook:"player"}),to)));var io=n(5952),so=n(94120),ao=n(59672);let lo=(0,c.get)(n.g,"__Locale.translations",{}),co=(0,c.get)(n.g,"__EXPERIMENTS__",null),uo=(0,ao.Z)(co,lo);const po=()=>uo;var ho=n(31048),mo=n(69514),fo=n(96658),go=n(84363),vo=n(66258),yo=n(66550);const bo={fetchVideoUrls:fo.C,fetchVideoCards:go.T,cleanupVideoCards:vo.p,logBi:rn.k,logWidgetVidPlayStart:h.Q};class Eo extends l().Component{constructor(){super(...arguments),s()(this,"reloadCounts",{}),s()(this,"reloadVideoUrls",(e=>{if(!e)return;const{fetchVideoUrls:t,videoItem:n}=this.props,{id:r}=n;if(this.reloadCounts[r]=this.reloadCounts[r]||0,this.reloadCounts[r]+=1,!(this.reloadCounts[r]>1))switch(e.errorType){case ln.ERRORS.MANIFEST_LOAD:case ln.ERRORS.LEVEL_LOAD:case ln.ERRORS.CONTENT_LOAD:t(n,!0)}})),s()(this,"onPlayStart",(()=>{this.props.onPlayStart(),this.sendVidStartPlayBI()})),s()(this,"onEnded",(()=>{const{onEnded:e,handleVideoEnd:t}=this.props;this.sendVidPlayedBI(),e(),t()})),s()(this,"sendBIForVideoInfoShow",(()=>{this.sendBI("widget.vid.info.clicked")})),s()(this,"sendBIForPurchaseRequested",(()=>{this.sendBuyBI("widget.vid.buy.clicked")})),s()(this,"sendBIForShareRequested",(e=>{this.sendBI("widget.vid.share.clicked",{button:e})})),s()(this,"sendBIForFullScreenChanged",(e=>{const{channelData:t,videoItem:n}=this.props;e&&this.props.logBi("widget.vid.fullScreen.entered",{channelID:t.id,videoID:n.id,origin:"on_site"}),this.props.onFullScreenChanged(e)})),s()(this,"onPurchaseRequest",(()=>{const{onPurchaseClick:e}=this.props;this.sendBIForPurchaseRequested(),e()})),s()(this,"onRentRequest",(()=>{const{onRentClick:e}=this.props;this.sendBIForPurchaseRequested(),e()})),s()(this,"onSubscribeRequest",(()=>{const{onSubscribeClick:e}=this.props;this.sendBIForPurchaseRequested(),e()}))}componentDidMount(){this.checkVideoUrls(this.props),this.updateVideoCards(this.props.videoItem)}UNSAFE_componentWillReceiveProps(e){this.checkVideoUrls(e)}componentDidUpdate(e){const t=!e.isVideoCardsEnabled&&this.props.isVideoCardsEnabled;(e.videoItem.id!==this.props.videoItem.id||t)&&this.updateVideoCards(this.props.videoItem)}checkVideoUrls(e){let{fetchVideoUrls:t,videoUrls:n,channelData:r,videoItem:o,currentSiteUser:i,shouldLoadVideo:s}=e;s&&(0,ho.L)({videoUrls:n,channelData:r,videoItem:o,currentSiteUser:i})&&t(o)}updateVideoCards(e){const{isVideoCardsEnabled:t,fetchVideoCards:n,shouldLoadVideo:r,cleanupVideoCards:o}=this.props;r&&e&&(t&&e.hasCards?n(e.listId,e.id):o())}get isUserLogged(){const{currentSiteUser:e}=this.props;return Boolean(e)}sendVidStartPlayBI(){const{mainOrThumbnailLocation:e,channelData:t,videoItem:n}=this.props;this.props.logWidgetVidPlayStart({channelData:t,videoItem:n,button:e})}sendVidPlayedBI(){const{mainOrThumbnailLocation:e,channelData:t,videoItem:{id:n,durationSec:r},isLive:o,isAutoplayed:i}=this.props;this.props.logBi("widget.vid.played",{channelID:t.id,videoID:n,button:e,isLive:o,duration:(0,_r.Q)(r),isAutoplay:i})}sendBI(e,t){const{channelData:n,videoItem:r}=this.props,{id:o,videoSource:i}=r;this.props.logBi(e,u().assign({},t,{channelID:n.id,videoID:o,videoType:i}))}sendBuyBI(e){const{videoItem:t,channelData:n,mainOrThumbnailLocation:r}=this.props,o=(0,so.ie)(n,t);this.sendBI(e,{buyType:o,button:r})}render(){const{size:e,isOverQuota:t,fillAllSpace:n}=this.props,r=u().omit(this.props,"size");return l().createElement(oo,o()({},r,e,{isFetchDisabled:!0,translations:po(),onPlayStart:this.onPlayStart,onEnded:this.onEnded,onError:this.reloadVideoUrls,onPurchaseRequest:this.onPurchaseRequest,onRentRequest:this.onRentRequest,onSubscribeRequest:this.onSubscribeRequest,onShareRequest:this.sendBIForShareRequested,onVideoInfoShow:this.sendBIForVideoInfoShow,onFullScreenChanged:this.sendBIForFullScreenChanged,isOverQuota:t,fillAllSpace:n}))}}s()(Eo,"defaultProps",{abortPlayVideo:u().noop,onFullScreenChanged:u().noop,onPlayStart:u().noop,onEnded:u().noop,onMemberSignUp:u().noop,onSubscribeClick:u().noop,onPurchaseClick:u().noop,onRentClick:u().noop,handleVideoEnd:u().noop,onPlayBlocked:u().noop,onLoad:u().noop,mainOrThumbnailLocation:"main",simple:!1,mobileMode:!1,onPlayRequest:u().noop,shouldLoadVideo:!0,isLive:!1});const So=(0,p.F)((0,d.$j)(((e,t)=>{const n=u().get(t,"videoItem",{});return{videoUrls:(0,mo.Z)(e,t),appSettings:(0,en.GR)(e),currentSiteUser:(0,In.C)(e),isVideoCardsEnabled:(0,Tn.ON)(e,n),isOverQuota:(0,io.P)(n),isLive:(0,v.mY)(n),isAutoplayed:(0,oe.ZA)(e),isMobile:(0,yo.tq)(e)}}),bo)(Eo))},95701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r,o=n(26290),i=n.n(o),s=n(27762),a=n.n(s),l=n(17607),c=n.n(l),u=n(44714),d=n(53458),p=n(72788),h=n(81098),m=n(87077),f=n(13060),g=n(72096),v=n(14013);const{logCardClick:y,logCardCloseButtonClick:b}=v.default,E={pauseVideo:h.r,logCardClick:y,logCardCloseButtonClick:b},S=(0,u.$j)(((e,t)=>{let{thumbnailSize:n}=t;return{cardsData:(0,g.mk)({thumbnailSize:n,imageHost:p.l.image})(e),videoByIds:(0,f.$u)(e),channelData:(0,m.js)(e)}}),E)((r=class extends a().PureComponent{constructor(){super(...arguments),i()(this,"logCardClose",(e=>{let{id:t}=e;this.props.logCardCloseButtonClick({card:c().find(this.props.cardsData,{clientId:t})})})),i()(this,"handleCardClick",(e=>{const{channelData:t,pauseVideo:n,biOrigin:r,handlePlayRequest:o}=this.props,{actionListId:i,actionItemId:s}=e;this.props.logCardClick({card:e,biOrigin:r}),(e=>e.type===d.Lx.Video||e.type===d.Lx.RecentVideo)(e)&&t.id===i?o({id:s}):(e=>e.type===d.Lx.Product||e.type===d.Lx.Custom)(e)&&!e.url||n()}))}componentDidMount(){const{player:e}=this.props;e&&c().isFunction(e.onCardClose)&&e.onCardClose(this.logCardClose)}render(){const{cardsData:e,children:t}=this.props;return t({cardsData:e,onCardClick:this.handleCardClick})}},i()(r,"defaultProps",{thumbnailSize:110}),r))},8349:(e,t,n)=>{"use strict";n.d(t,{X:()=>o,Z:()=>r});const r={id:n(81330).$,title:"Wix Demo Channel"},o={id:"a1ca9dac7ee44d52a41868329471105b",title:"Wix Editor Demo Channel"}},88692:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={DASHBOARD:{CLOSED:"vod.dashboard.closed"},MODAL:{OPEN:"vod.modal.open",CLOSE:"vod.modal.close"},TRANSCODING:{READY:"vod.transcoding.ready"},TOOLTIP:{SHOW:"vod.tooltip.show",HIDE:"vod.tooltip.hide",DID_SHOW:"vod.tooltip.did-show",DID_HIDE:"vod.tooltip.did-hide"},POPOUT:{SHOW:"vod.popout.show",HIDE:"vod.popout.hide"},PAYMENT:{PAYMENT_EVENT:"vod.payment.payment-event",CANCEL_SUBSCRIPTION:"vod.payment.cancel-subscription"},SESSION:{LOGIN_USER:"vod.session.login-user",LOGOUT_USER:"vod.session.logout-user"}}},93129:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={TYPES:{SALE:"sale",RENT:"rent",SUBSCRIPTION:"subscription",SUBSCRIPTION_CANCEL:"subscription-cancel"}}},90786:(e,t,n)=>{"use strict";n.d(t,{$J:()=>o,JN:()=>S,M7:()=>E,u9:()=>v});var r=n(15184);const o={UNLIMITED_STREAMING:"unlimitedStreaming",INSTANT_ACCESS:"instantAccess",MONTHLY_PAYMENT:"monthlyPayment",SINGLE_VIDEO:"singleVideo",ONE_PAYMENT:"onePayment",SINGLE_VIDEO_STREAMING:"singleVideoStreaming",STREAMING_PERIOD:"streamingPeriod",UNLIMITED_DOWNLOADS:"unlimitedDownloads",DOWNLOAD_ANY_TIME:"downloadAnytime",FREE_WITH_LOGIN:"freeWithLogin"},{UNLIMITED_STREAMING:i,INSTANT_ACCESS:s,MONTHLY_PAYMENT:a,SINGLE_VIDEO:l,ONE_PAYMENT:c,SINGLE_VIDEO_STREAMING:u,STREAMING_PERIOD:d,UNLIMITED_DOWNLOADS:p,DOWNLOAD_ANY_TIME:h,FREE_WITH_LOGIN:m}=o,f={[r.u.SUBSCRIPTION]:[i,s,a],[r.u.PURCHASE]:[l,c,i],[r.u.RENT]:[u,d],[r.u.MEMBER_ONLY]:[m,i],[r.u.PLAN]:[i,s]},g={[r.u.SUBSCRIPTION]:[p],[r.u.PURCHASE]:[h],[r.u.RENT]:[],[r.u.MEMBER_ONLY]:[h]};function v(e){let{paymentType:t,downloadEnabled:n}=e;const r=f[t];return n?r.concat(g[t]):r}const y="SALE",b="RECURRING",E={[r.u.SUBSCRIPTION]:b,[r.u.PURCHASE]:y,[r.u.RENT]:y,[r.u.MEMBER_ONLY]:null},S="videoPaymentLogOut"},38581:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});const r=[275,980]},840:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={PENDING:"pending",FAILED:"failed",RESOLVED:"resolved"}},73372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(27762),o=n.n(r),i=n(44714),s=n(39396),a=n(26290),l=n.n(a),c=n(60042),u=n.n(c),d=n(38239),p=n(71217),h=n(3333),m=n(49288);const f="AVCEjs",g="qkC5BG",v="ErGSQi",y={logWidgetSystem:p.e,getPreviewUrlsAction:(e,t)=>()=>{const{channelService:n}=(0,h.g)();return n.getVideoPreviewUrls(e,t)}},b=(0,i.$j)(null,y)(class extends o().Component{constructor(e){super(e),l()(this,"setReady",(()=>{this.setState({isReady:!0})})),this.state={vidiUrls:[],uploadingError:!1,VODPlayer:null,isReady:!1},this.loadUrls()}componentDidMount(){(0,d.K)().then((e=>{this.setState({VODPlayer:e})}))}loadUrls(){const{channelId:e,instance:t}=this.props;this.props.logWidgetSystem("channel.cover.videoPreview.loadUrls.started"),this.props.getPreviewUrlsAction(e,t).then((e=>{this.props.logWidgetSystem("channel.cover.videoPreview.loadUrls.loaded"),this.setState({vidiUrls:(0,m.Z)({videoUrls:e}),uploadingError:!1})}),(()=>{this.props.logWidgetSystem("channel.cover.videoPreview.loadUrls.failed"),this.setState({uploadingError:!0})}))}shouldShowPoster(){const{uploadingError:e,isReady:t}=this.state;return!t||e}render(){const{width:e,height:t,poster:n}=this.props,{vidiUrls:r,VODPlayer:i}=this.state,s=u()(g,{[v]:!this.shouldShowPoster()});return o().createElement("div",{className:f},o().createElement("div",{className:s},n),i&&o().createElement(i,{width:e,height:t,vidiUrls:r,onPlay:this.setReady,canShowTitle:!1,hideMainUI:!0,loader:!1,videoViewMode:"FILL",muted:!0,autoPlay:!0,loop:!0}))}});var E=n(88137),S=n(65925),C=n(66550),w=n(62223);const P=(0,i.$j)((e=>({instance:(0,s.s8)(e),isEditorViewMode:S.ZJ(e),isMobileDevice:(0,C.ND)(e)})))(class extends o().Component{shouldRenderVideoPreview(){const{isEditorViewMode:e,isMobileDevice:t}=this.props;return this.isVideoPreview()&&!e&&!t}isVideoPreview(){const{showChannelCover:e,mediaInfo:t}=this.props;return Boolean(e&&t)}getImageCover(){const{width:e=w.LJ,height:t=w.BX,posterUrl:n,channelTitle:r,videoTitle:i,showChannelCover:s}=this.props;return o().createElement(E.t,{dataHook:"image-cover",alt:s?r:i,key:n,src:n,breakpoints:[{min:0,width:e,height:t}]})}render(){const{width:e,height:t,channelId:n,instance:r}=this.props;return this.shouldRenderVideoPreview()?o().createElement(b,{dataHook:"video-preview",channelId:n,instance:r,poster:this.getImageCover(),width:e,height:t}):this.getImageCover()}})},31672:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var r=n(77028),o=n.n(r),i=n(27762),s=n.n(i),a=n(44714),l=n(86606),c=n(3729),u=n(11063),d=n(48321),p=n(54550),h=n(90608),m=n(12524),f=n.n(m);const g="oxi0H4",v="nmE6B9",y="rdl4K1",b="ij5a2j",E="xsu1qA",S="FB6WUz",C="u0k0VN",w="FkBvQ7",P="krCYi2",I="Twmg0v",O="Wwa13L",T="mgPcdS";var N=n(13154),A=n(84470);class x extends s().Component{constructor(){super(...arguments),this.openGoogleCalendarEvent=e=>{const{startTime:t,liveText:n,videoTitle:r}=this.props,o=new Date(t).toISOString().replace(/-|:|\.\d+/g,"");const i=(0,p.Q)("https://www.google.com/calendar/event",{action:"TEMPLATE",dates:`${o}/${o}`,text:r,location:"",details:n});(0,h.M)(i),e.stopPropagation()}}renderReminder(){const{reminderIcon:e,noBackground:t,reminderAriaLabel:n,isRTL:r}=this.props;if(!e)return null;const o=f()(b,{[O]:t,[I]:r,[P]:!r});return s().createElement("button",{onClick:this.openGoogleCalendarEvent,tabIndex:0,role:"link",className:o,"aria-label":n},e)}renderLiveStreamLabel(){const{isSmall:e,className:t,liveText:n,isRTL:r}=this.props,o=f()(g,t,S,{[E]:e,[I]:r,[P]:!r});return s().createElement("div",{"data-hook":"live-stream-label",className:o,role:"note","aria-label":n},n)}renderPendingLiveStreamLabel(){const{isSmall:e,className:t,pendingLiveText:n,isRTL:r}=this.props,o=f()(g,t,S,C,{[E]:e,[I]:r,[P]:!r});return s().createElement("div",{"data-hook":"live-stream-pending-label",className:o,role:"note","aria-label":n},n)}mapPropsToStyles(){const{isRTL:e,noBackground:t,className:n}=this.props;return{liveTextStyle:f()(w,{[I]:e,[P]:!e}),textStyle:f()(y,{[O]:t,[I]:e,[P]:!e}),soonLabelStyle:f()(g,n,{[O]:t,[I]:e,[P]:!e}),scheduledLabelBigStyle:f()(g,n,{[I]:e,[P]:!e}),countdownStyle:f()(T,{[I]:e,[P]:!e})}}renderScheduledSoonLabel(){const{startTime:e,liveText:t,scheduledSoonAriaLabel:n,startsInAriaLabel:r}=this.props,{liveTextStyle:o,textStyle:i,countdownStyle:a,soonLabelStyle:l}=this.mapPropsToStyles();return s().createElement("div",{"data-hook":"scheduled-soon-label",className:l,"aria-label":n},s().createElement("div",{className:i},s().createElement("span",{className:o},t+":"),s().createElement(u.I,{className:a,until:e,titlePrefix:r,isFocusable:!0})),this.renderReminder())}renderScheduledLabelSmall(){const{smallClassName:e,className:t,scheduledAriaLabel:n,isRTL:r}=this.props,o=f()(g,t,e,v,{[I]:r,[P]:!r});return s().createElement("div",{"data-hook":"scheduled-icon",className:o,role:"img","aria-label":n},s().createElement(A.W,{icon:s().createElement(N.Z,null)}))}renderScheduledLabelBig(){const{startTime:e,locale:t,liveText:n,scheduledAriaLabel:r,dateFormat:o}=this.props,{liveTextStyle:i,textStyle:a,scheduledLabelBigStyle:l}=this.mapPropsToStyles(),c=new Date(e).toLocaleString(t,o);return s().createElement("div",{"data-hook":"scheduled-label",className:l,"aria-label":r,role:"region"},s().createElement("div",{tabIndex:0,role:"region",className:a},s().createElement("span",{className:i},n+":"),c),this.renderReminder())}render(){const{startTime:e,isSmall:t,isReadyLiveStream:n,isPendingLiveStream:r,isScheduled:o}=this.props;return r?this.renderPendingLiveStreamLabel():n?this.renderLiveStreamLabel():o?t?this.renderScheduledLabelSmall():e-Date.now()<d.c.ONE_DAY?this.renderScheduledSoonLabel():this.renderScheduledLabelBig():null}}x.defaultProps={dateFormat:{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"}};var _,L=n(90159);function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}const k=function(e){return i.createElement("svg",R({xmlns:"http://www.w3.org/2000/svg",width:22,height:15,viewBox:"0 0 22 15"},e),_||(_=i.createElement("path",{d:"M4 6V3H3v3H0v1h3v3h1V7h3V6H4zm10.952 8h3.032l1.015-1H14zm.479 1h2.137c-.047-.223-.047-.39 0-.5.048-.11.191-.277.43-.5h-2.997c.235.214.379.38.43.5.052.12.052.286 0 .5zm5.402-5.887V6.182c0-2.233-1.184-4.102-3.25-4.597v-.494C17.583.487 17.1 0 16.5 0s-1.083.487-1.083 1.09v.495c-2.073.495-3.25 2.357-3.25 4.597v2.93L11.2 10.4A1 1 0 0 0 12 12h8.998a1 1 0 0 0 .8-1.6l-.966-1.287z",fillRule:"evenodd"})))},D=(0,L.Z)()((0,a.$j)(((e,t)=>{let{itemType:n,startTime:r,liveVideoStatus:o}=t;return{startTime:r,isScheduled:(0,l.$Z)({itemType:n})&&Boolean(r),isPendingLiveStream:(0,l.eZ)({liveVideoStatus:o}),isReadyLiveStream:(0,l.$C)({liveVideoStatus:o}),locale:(0,c.Kd)(e),isRTL:(0,c.dZ)(e)}}))(class extends s().Component{render(){return s().createElement(x,o()({},this.props,{liveText:this.props.t("shared.live"),pendingLiveText:this.props.t("shared.pending-live"),scheduledSoonAriaLabel:this.props.t("widget.accessibility.scheduled-soon-label"),scheduledAriaLabel:this.props.t("widget.accessibility.scheduled-label"),startsInAriaLabel:this.props.t("widget.accessibility.starts-in"),reminderAriaLabel:this.props.t("widget.accessibility.reminder"),reminderIcon:s().createElement(k,null)}))}}))},63891:(e,t,n)=>{"use strict";n.d(t,{X:()=>p});var r=n(26290),o=n.n(r),i=n(27762),s=n.n(i),a=n(88692),l=n(44714),c=n(39396),u=n(82682);const d={setHydratedData:c.cX},p=(0,u.X)((0,l.$j)(null,d)(class extends s().Component{constructor(){super(...arguments),o()(this,"handleUserLogin",(async e=>{const{id:t,email:n}=e.data;this.props.setHydratedData({currentSiteUser:{id:t,email:n}})}))}componentDidUpdate(e){(0,u.A)(a.Z.SESSION.LOGIN_USER,this.handleUserLogin,{prevProps:e,nextProps:this.props})}render(){return null}}))},82682:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,X:()=>i});var r=n(17607),o=n.n(r);const i=(0,n(21491).kF)((e=>{let{pubSubEvents:t}=e;return{pubSubEvents:t}})),s=(e,t,n)=>{let{prevProps:r,nextProps:i}=n;r.pubSubEvents&&i.pubSubEvents&&(o().isEqual(r.pubSubEvents[e],i.pubSubEvents[e])||i.pubSubEvents[e]&&t(i.pubSubEvents[e]))}},43399:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Pt});var r=n(77028),o=n.n(r),i=n(26290),s=n.n(i),a=n(27762),l=n.n(a),c=n(44714),u=n(17607),d=n.n(u),p=n(60042),h=n.n(p),m=n(27010),f=n(3805),g=n(13980),v=n.n(g),y=n(6263),b=n(12524),E=n.n(b);const S="ISMda6",C="mLYoXG",w="z9w579",P="P3B6gV",I="z_0LKu";var O=n(84470),T=n(5142);class N extends l().Component{render(){const{options:e,disabled:t,dataHook:n,className:r,ariaLabel:o,onChange:i,selected:s,isRTL:a}=this.props,c=E()(w,{[I]:a,[P]:!a});return l().createElement("div",{className:`${S} ${r}`,"aria-label":o},l().createElement(O.W,{className:c,icon:l().createElement(T.Z,null)}),l().createElement("select",{"data-hook":n,className:C,onChange:i,value:s||"",disabled:t},e.map((e=>l().createElement("option",{key:e.value,value:e.value},e.text)))))}}N.defaultProps={options:[],onChange:()=>{},disabled:!1,isRTL:!1};const A="hR37sJ",x=({text:e})=>l().createElement("div",{className:A,"data-hook":"share-title"},e);x.propTypes={text:v().string};var _=n(4612),L=n(54550);const R=e=>{try{return new URL(e).origin}catch(t){const n=document.createElement("a");return n.setAttribute("href",e),`${n.protocol}//${n.host}`}};var k=n(90608),D=n(86344);const V="qIR94d",M="GysGrC",B=({children:e,content:t})=>l().createElement("div",{className:V},e,l().createElement("span",{className:M,"aria-hidden":"true"},t)),F={container:"ip5WTJ",select:"VHfV65","share-buttons":"_n5JOe",shareButtons:"_n5JOe",icon:"gr2cNO"},U=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 21 21",fill:"currentColor",width:e||"1em",height:e||"1em",...t},a.createElement("path",{id:"a_1_",fill:"currentColor",d:"M1.6,0h17.8C20.3,0,21,0.7,21,1.6c0,0,0,0,0,0v17.8c0,0.9-0.7,1.6-1.6,1.6l0,0H1.6 C0.7,21,0,20.3,0,19.4c0,0,0,0,0,0V1.6C0,0.7,0.7,0,1.6,0z M12,21h3v-9h3V9h-3c-0.1-0.3-0.1-0.9,0-2c-0.1-0.5,0.3-0.9,1-1h2V3 c-1,0-2,0-3,0c-2.7,0.3-3.7,2.3-3,6H9v3h3V21z"}),a.createElement("defs",null,a.createElement("filter",{id:"Adobe_OpacityMaskFilter",filterUnits:"userSpaceOnUse",x:"0",y:"0",width:"68",height:"65"},a.createElement("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"}))),a.createElement("mask",{maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"68",height:"65",id:"vod_FacebookIcon_b"},a.createElement("g",{filter:"url(#Adobe_OpacityMaskFilter)"},a.createElement("path",{id:"a",fill:"currentColor",d:"M1.6,0h17.8C20.3,0,21,0.7,21,1.6c0,0,0,0,0,0v17.8c0,0.9-0.7,1.6-1.6,1.6l0,0H1.6 C0.7,21,0,20.3,0,19.4c0,0,0,0,0,0V1.6C0,0.7,0.7,0,1.6,0z M12,21h3v-9h3V9h-3c-0.1-0.3-0.1-0.9,0-2c-0.1-0.5,0.3-0.9,1-1h2V3 c-1,0-2,0-3,0c-2.7,0.3-3.7,2.3-3,6H9v3h3V21z"}))),a.createElement("g",{mask:"url(#vod_FacebookIcon_b)"},a.createElement("path",{fill:"currentColor",d:"M0,0h68v65H0V0z"})));U.displayName="FacebookIcon";const j=U;class H extends l().Component{constructor(){super(...arguments),this.onClick=()=>{const{canShareContent:e}=this.props;if(e){const e=this.getShareUrl();(0,k.M)(e)}this.props.onShare(_.H.FACEBOOK)}}getShareUrl(){const{instanceInfo:e,videoId:t,channelId:n}=this.props,{instanceId:r,componentId:o,sitePageId:i,siteUrl:s,biToken:a}=e,l=R(s),c=(0,L.Q)(`${l}/${_.l}/${i}`,{"instance-id":r,"component-id":o,"channel-id":n,"video-id":t,"bi-token":a,bsi:(0,D.Y)()});return(0,L.Q)("https://www.facebook.com/sharer/sharer.php",{ref:"site",display:"popup",u:c})}render(){const{className:e,ariaLabel:t,dataHook:n,tooltip:r}=this.props;return l().createElement(B,{content:r},l().createElement("button",{onClick:this.onClick,"data-hook":n,className:e,"aria-label":t},l().createElement(O.W,{icon:l().createElement(j,null),className:F.icon})))}}H.propTypes={dataHook:v().string,onShare:v().func,className:v().string,canShareContent:v().bool,tooltip:v().node,videoId:v().string,channelId:v().string,instanceInfo:v().shape({instanceId:v().string,componentId:v().string,sitePageId:v().string,siteUrl:v().string}),ariaLabel:v().string},H.defaultProps={onShare:u.noop};const Z=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 24 21",fill:"currentColor",width:e||"1em",height:e||"1em",...t},a.createElement("g",{transform:"translate(0 1)"},a.createElement("path",{id:"a",fill:"currentColor",d:"M2.4,12.9c1-0.2,1.7-0.2,2.4,0v-0.8c-1.3,0.1-2.4-0.7-3.2-1.6c-0.4-1-0.7-1.9-0.8-3.2 C1.6,8,2.4,8.2,3.2,8.1C2.1,7.5,1.4,6.5,0.8,5.7c0-1.6,0.2-2.8,0.8-4C4.3,4.9,7.7,6.6,12,6.5c-0.4-1.3-0.2-2.4,0.8-3.2 c0.4-1.3,1.6-2.1,3.2-2.4c1.5-0.2,2.9,0.3,4,1.6c1.4-0.3,2.3-0.7,3.2-0.8V0.9c-0.2,1.5-1,2.4-1.6,3.2c0.6-0.3,1.5-0.5,2.4-0.8 c-0.2,0.2-0.4,0.4-0.8,0.8c-0.3,0.5-0.9,1-1.6,1.6c0,0.8,0,1.5,0,2.4c-0.3,1.3-0.8,2.8-1.6,4c-0.5,1.6-1.4,2.8-2.4,4 c-1.9,1.9-4.2,3.1-7.2,4c-0.6-0.1-1.5,0-2.4,0c-2.8,0.1-5.5-0.6-8-2.4c1.7,0.4,3.4,0.2,4.8-0.8c1,0,1.7-0.4,2.4-0.8 C4.7,15.8,3.1,14,2.4,12.9z"})));Z.displayName="TwitterIcon";const W=Z;class z extends l().Component{constructor(){super(...arguments),this.onClick=()=>{const{instanceInfo:e,videoId:t,channelId:n,descriptionText:r,canShareContent:o,content:i}=this.props,{instanceId:s,componentId:a,sitePageId:l,siteUrl:c,biToken:u}=e,d=R(c),p=(0,L.Q)(`${d}/${_.l}/${l}`,{"instance-id":s,"component-id":a,"channel-id":n,"video-id":t,"bi-token":u,bsi:(0,D.Y)()});if(o){const e=(0,L.Q)("https://twitter.com/intent/tweet",{original_referer:c,text:r.replace("{siteUrl}",p).replace("{title}",i.title)});(0,k.M)(e)}this.props.onShare(_.H.TWITTER)}}render(){const{className:e,dataHook:t,ariaLabel:n,tooltip:r}=this.props;return l().createElement(B,{content:r},l().createElement("button",{onClick:this.onClick,"data-hook":t,className:e,"aria-label":n},l().createElement(O.W,{icon:l().createElement(W,null),className:F.icon})))}}z.propTypes={dataHook:v().string,onShare:v().func,content:v().object,className:v().string,descriptionText:v().string,canShareContent:v().bool,tooltip:v().node,ariaLabel:v().string,videoId:v().string,channelId:v().string,instanceInfo:v().shape({instanceId:v().string,componentId:v().string,sitePageId:v().string,siteUrl:v().string})},z.defaultProps={onShare:u.noop};var q=n(16323);const G=e=>(0,q.N)({url:e,width:480,height:360}),$=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 19 23",fill:"currentColor",width:e||"1em",height:e||"1em",...t},a.createElement("path",{id:"a",fill:"currentColor",d:"M7.9,15.2c-0.9,3.3-1,4-1.9,5.6c-0.4,0.7-0.9,1.4-1.5,2.1L4.2,23l-0.2-0.2c-0.2-1-0.2-2-0.2-3 c0-1.3,0.2-1.8,2-8.9l0-0.3C5.4,9.4,5.4,8.3,5.7,7.1C6.6,4.7,9.5,4.5,10,6.5c0.3,1.2-0.5,2.9-1.2,5.3c-0.5,2,2,3.4,4.1,2 c2-1.3,2.7-4.6,2.6-6.8c-0.3-4.5-5.6-5.5-9-4.1c-3.9,1.7-4.7,6.2-3,8.2c0.2,0.3,0.4,0.4,0.3,0.7c-0.1,0.4-0.2,0.8-0.3,1.2 c-0.1,0.3-0.4,0.4-0.7,0.3c-0.6-0.2-1.2-0.6-1.6-1.1c-1.5-1.7-1.9-5.1,0.1-8C3.5,1,7.5-0.3,11.2,0.1c4.4,0.5,7.2,3.3,7.7,6.5 c0.2,1.5,0.1,5.1-2.1,7.6c-2.5,2.9-6.6,3.1-8.5,1.3c-0.1-0.1-0.3-0.3-0.4-0.5L7.9,15.2z"}));$.displayName="PinterestIcon";const Y=$;class K extends l().Component{constructor(){super(...arguments),this.onClick=()=>{const{descriptionText:e,canShareContent:t,content:n}=this.props,{siteUrl:r}=this.props.instanceInfo;if(t){const t=(0,L.Q)("https://www.pinterest.com/pin/create/button/",{url:r,media:G(n.coverUrl),description:e.replace("{description}",n.description).replace("{title}",n.title)});(0,k.M)(t)}this.props.onShare(_.H.PINTEREST)}}render(){const{className:e,dataHook:t,ariaLabel:n,tooltip:r}=this.props;return l().createElement(B,{content:r},l().createElement("button",{onClick:this.onClick,"data-hook":t,className:e,"aria-label":n},l().createElement(O.W,{icon:l().createElement(Y,null),className:F.icon})))}}K.propTypes={dataHook:v().string,onShare:v().func,content:v().object,className:v().string,descriptionText:v().string,tooltip:v().node,canShareContent:v().bool,ariaLabel:v().string,instanceInfo:v().shape({instanceId:v().string,componentId:v().string,sitePageId:v().string,siteUrl:v().string})},K.defaultProps={onShare:u.noop};const X=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 12 18",fill:"currentColor",width:e||"1em",height:e||"1em",...t},a.createElement("path",{id:"a",fill:"currentColor",d:"M6.5,10.7l0.1-3h4.2V4.6H6.6c0.1-2.5,0.1-3.8,0-3.8H4.2c-0.4,2.3-1.8,4.1-4,4.6L0.1,7.7h2.8v4.7 c0.2,2.2,0.7,3.6,1.5,4.3c1.1,0.7,1.8,1,3.8,1c0.5,0,1,0,1.6,0l1.5-0.9v-2.7c-2,0.6-3.4,0.6-4.3,0C6.6,13.8,6.4,12.6,6.5,10.7 L6.5,10.7z"}));X.displayName="TumblrIcon";const Q=X;class J extends l().Component{constructor(){super(...arguments),this.onClick=()=>{const{siteUrl:e}=this.props.instanceInfo,{descriptionText:t,canShareContent:n,content:r}=this.props;if(n){const n=(0,L.Q)("https://www.tumblr.com/widgets/share/tool",{posttype:"photo",content:G(r.coverUrl),caption:t.replace("{siteUrl}",e).replace("{title}",r.title),url:e});(0,k.M)(n)}this.props.onShare(_.H.TUMBLR)}}render(){const{className:e,dataHook:t,ariaLabel:n,tooltip:r}=this.props;return l().createElement(B,{content:r},l().createElement("button",{onClick:this.onClick,"data-hook":t,className:e,"aria-label":n},l().createElement(O.W,{icon:l().createElement(Q,null),className:F.icon})))}}J.propTypes={dataHook:v().string,onShare:v().func,content:v().object,className:v().string,descriptionText:v().string,tooltip:v().node,canShareContent:v().bool,ariaLabel:v().string,instanceInfo:v().shape({instanceId:v().string,componentId:v().string,sitePageId:v().string,siteUrl:v().string})},J.defaultProps={onShare:u.noop};var ee=n(21994);const te="xmF3c1";class ne extends l().Component{constructor(){super(...arguments),this.handleClick=()=>{const{canShareContent:e}=this.props;e&&this.copyToClipboard(),this.props.onClick()},this.saveRef=e=>{this.ref=e}}copyToClipboard(){document.queryCommandSupported("copy")&&(this.ref.select(),document.execCommand("copy"))}render(){const{dataHook:e,className:t,ariaLabel:n,instanceInfo:r,tooltip:o}=this.props;return l().createElement(B,{content:o},l().createElement("button",{className:t,"data-hook":e,onClick:this.handleClick,"aria-label":n},l().createElement(O.W,{icon:l().createElement(ee.Z,null),className:F.icon}),r&&l().createElement("input",{type:"text",ref:this.saveRef,tabIndex:"-1",readOnly:!0,className:te,value:r.siteUrl})))}}ne.propTypes={dataHook:v().string,onClick:v().func,className:v().string,tooltip:v().node,canShareContent:v().bool,ariaLabel:v().string,instanceInfo:v().shape({instanceId:v().string,componentId:v().string,sitePageId:v().string,siteUrl:v().string})};const re=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 14 11",fill:"currentColor",width:e||"14",height:e||"11",...t},a.createElement("path",{fill:"currentColor",d:"M3.59 9.782l.653.653 9.192-9.192-.979-.98-8.273 8.274L.919 5.273 0 6.193l3.59 3.59z",fillRule:"evenodd"}));re.displayName="LinkCopiedIcon";const oe=re,ie="pyjkGK",se="lAlNpA",ae="woFIFd",le="nCSQim",ce="_Rboqt",ue=({dataHook:e,shouldShowLink:t,text:n,isRTL:r})=>l().createElement("div",{className:E()(ie,{[se]:t}),"aria-hidden":"true",tabIndex:"-1","data-hook":e},l().createElement(O.W,{className:E()(ae,{[ce]:r,[le]:!r}),icon:l().createElement(oe,null)}),l().createElement("div",{"data-hook":"link-copied-text"},n));ue.propTypes={dataHook:v().string,shouldShowLink:v().bool,text:v().string,isRTL:v().bool};const de=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 31 19",fill:"currentColor",width:e||"31",height:e||"19",...t},a.createElement("path",{id:"a",fill:"currentColor",d:"M21.4,15.3c-0.4-0.4-0.4-1,0-1.4c0,0,0.1-0.1,0.1-0.1l5.1-4.1l-5.1-4c-0.4-0.3-0.5-1-0.2-1.4 c0,0,0,0,0.1-0.1L22,3.6c0.4-0.4,1-0.4,1.4-0.1L31,9.8L23.3,16c-0.4,0.3-1,0.3-1.3-0.1L21.4,15.3L21.4,15.3z M9.7,15.3L9,15.9 c-0.4,0.4-1,0.4-1.4,0.1L0,9.8l7.6-6.3C8,3.2,8.6,3.2,9,3.6l0.7,0.8c0.4,0.4,0.3,1-0.1,1.4c0,0,0,0-0.1,0L4.5,9.8l5.1,4 C10,14.1,10.1,14.7,9.7,15.3C9.7,15.2,9.7,15.2,9.7,15.3L9.7,15.3z M13.3,18.9l-0.9-0.3c-0.5-0.2-0.8-0.7-0.6-1.2l5.1-16.7 C17,0.2,17.6-0.1,18.1,0c0,0,0,0,0,0l0.9,0.3c0.5,0.2,0.8,0.7,0.6,1.2l-5.1,16.7C14.4,18.8,13.8,19.1,13.3,18.9 C13.3,19,13.3,18.9,13.3,18.9z"}));de.displayName="EmbedIcon";const pe=de,he="fkwITi";class me extends l().Component{constructor(){super(...arguments),this.handleClick=e=>{e.preventDefault(),e.stopPropagation(),this.props.onClick()}}render(){const{dataHook:e,className:t,ariaLabel:n,disabled:r,tooltip:o}=this.props;return l().createElement(B,{content:o},l().createElement("button",{"data-hook":e,className:`${he} ${t}`,"aria-hidden":r,disabled:r,onClick:this.handleClick,"aria-label":n},l().createElement(O.W,{className:`${F.icon} ${he}`,icon:l().createElement(pe,null)})))}}me.propTypes={dataHook:v().string,className:v().string,tooltip:v().node,onClick:v().func,ariaLabel:v().string,disabled:v().bool};const fe=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 26 6",fill:"currentColor",width:e||"26",height:e||"20",...t},a.createElement("path",{fill:"currentColor",d:"M3 0a3 3 0 1 1-3 3 3 3 0 0 1 3-3zm10 0a3 3 0 1 1-3 3 3 3 0 0 1 3-3zm10 0a3 3 0 1 1-3 3 3 3 0 0 1 3-3z",fillRule:"evenodd"}));fe.displayName="MoreIcon";const ge=fe,ve="dHswoT";class ye extends l().Component{render(){const{className:e,onClick:t,dataHook:n,ariaLabel:r,tooltip:o}=this.props;return l().createElement(B,{content:o},l().createElement("button",{"data-hook":n,onClick:t,className:`${e} ${ve}`,"aria-label":r},l().createElement(O.W,{icon:l().createElement(ge,null)})))}}ye.propTypes={className:v().string,tooltip:v().node,dataHook:v().string,onClick:v().func,ariaLabel:v().string};var be=n(14111);const Ee=e=>{e.stopPropagation()};class Se extends l().Component{constructor(e){super(e),this.handleChange=e=>{this.setState({shareMode:e.target.value})},this.handleLinkClick=()=>{const{showLinkCopied:e}=this.state;e||(this.setState({showLinkCopied:!0}),setTimeout((()=>{this.setState({showLinkCopied:!1})}),3e3),this.props.onLinkCopied({shareType:this.isInShareChannelMode()?be.L.CHANNEL:be.L.VIDEO}))},this.handleEmbedClick=()=>{this.props.onEmbedClicked({shareType:this.isInShareChannelMode()?be.L.CHANNEL:be.L.VIDEO})},this.handleShare=e=>{this.props.onShare({networkName:e,shareType:this.isInShareChannelMode()?be.L.CHANNEL:be.L.VIDEO})},this.state={shareMode:e.shareMode,showLinkCopied:!1}}UNSAFE_componentWillReceiveProps(e){const{shareMode:t}=this.props;e.shareMode!==t&&this.setState({shareMode:e.shareMode})}isInShareChannelMode(){return this.state.shareMode===be.L.CHANNEL}isEmbedButtonHidden(){const{videoItem:e}=this.props;return this.isInShareChannelMode()||(0,y.SH)(e)}getShareOptions(){const{shareChannelText:e,shareVideoText:t}=this.props;return[{value:be.L.CHANNEL,text:e},{value:be.L.VIDEO,text:t}]}getContentToShare(){if(this.isInShareChannelMode()){const{channelData:e}=this.props;return(e=>({title:e.title,description:e.description,coverUrl:e.customCoverUrl||e.coverUrl}))(e)}{const{videoItem:e}=this.props;return(e=>({title:e.title,description:e.description,coverUrl:e.customCoverUrl||e.coverUrl}))(e)}}getInstanceInfo(){const{channelUrl:e,videoUrl:t,instanceInfo:n}=this.props;return{...n,siteUrl:this.isInShareChannelMode()?e:t}}shouldShowEmbedButton(){const{shouldShowEmbedButton:e}=this.props;return e&&!this.isEmbedButtonHidden()}render(){const{titleText:e,children:t,channelData:n,videoItem:r,onMoreClicked:o,facebookAriaLabel:i,twitterAriaLabel:s,pinterestAriaLabel:a,tumblrAriaLabel:c,linkAriaLabel:u,embedAriaLabel:d,moreAriaLabel:p,embedTooltipText:h,facebookTooltipText:m,linkTooltipText:f,moreTooltipText:g,pinterestTooltipText:v,tumblrTooltipText:y,twitterTooltipText:b,canShareContent:E,canShowSelect:S,shouldShowFacebookButton:C,shouldShowTwitterButton:w,shouldShowPinterestButton:P,shouldShowTumblrButton:I,shouldShowLinkButton:O,shouldShowMoreButton:T,isRTL:A,twitterDescriptionText:_,pinterestDescriptionText:L,tumblrDescriptionText:R,linkCopiedText:k}=this.props;if(t)return t;const{shareMode:D,showLinkCopied:V}=this.state,M=this.isInShareChannelMode()?null:r.id,B=n.id,U=this.getContentToShare(),j=this.getInstanceInfo();return l().createElement("section",{className:F.container,onClick:Ee},l().createElement(x,{text:e,dataHook:"title"}),S&&l().createElement(N,{dataHook:"share-select",className:F.select,options:this.getShareOptions(),selected:D,onChange:this.handleChange,isRTL:A}),l().createElement("div",{"data-hook":"share-buttons",className:F["share-buttons"]},C&&l().createElement(H,{canShareContent:E,dataHook:"facebook",tooltip:m,onShare:this.handleShare,videoId:M,channelId:B,content:U,instanceInfo:j,ariaLabel:i}),w&&l().createElement(z,{canShareContent:E,dataHook:"twitter",tooltip:b,onShare:this.handleShare,descriptionText:_,videoId:M,channelId:B,content:U,instanceInfo:j,ariaLabel:s}),P&&l().createElement(K,{canShareContent:E,dataHook:"pinterest",tooltip:v,onShare:this.handleShare,content:U,instanceInfo:j,descriptionText:L,ariaLabel:a}),I&&l().createElement(J,{canShareContent:E,className:F.tumblr,dataHook:"tumblr",tooltip:y,onShare:this.handleShare,content:U,instanceInfo:j,descriptionText:R,ariaLabel:c}),O&&l().createElement(ne,{canShareContent:E,dataHook:"link",onClick:this.handleLinkClick,tooltip:f,instanceInfo:j,ariaLabel:u}),this.shouldShowEmbedButton()&&l().createElement(me,{dataHook:"embed-button",onClick:this.handleEmbedClick,tooltip:h,ariaLabel:d}),T&&l().createElement(ye,{dataHook:"more-button",onClick:o,tooltip:g,ariaLabel:p})),E&&l().createElement(ue,{dataHook:"link-copied",shouldShowLink:V,text:k,isRTL:A}))}}Se.propTypes={shareMode:v().oneOf([be.L.VIDEO,be.L.CHANNEL]),titleText:v().string.isRequired,children:v().node,channelData:v().object,videoItem:v().object,instanceInfo:v().object,videoUrl:v().string,channelUrl:v().string,canShareContent:v().bool,canShowSelect:v().bool,shouldShowFacebookButton:v().bool,shouldShowTwitterButton:v().bool,shouldShowPinterestButton:v().bool,shouldShowTumblrButton:v().bool,shouldShowLinkButton:v().bool,shouldShowEmbedButton:v().bool,shouldShowMoreButton:v().bool,isRTL:v().bool,shareChannelText:v().string,shareVideoText:v().string,twitterDescriptionText:v().string,pinterestDescriptionText:v().string,tumblrDescriptionText:v().string,linkCopiedText:v().string,facebookAriaLabel:v().string,twitterAriaLabel:v().string,pinterestAriaLabel:v().string,tumblrAriaLabel:v().string,linkAriaLabel:v().string,embedAriaLabel:v().string,moreAriaLabel:v().string,embedTooltipText:v().string,facebookTooltipText:v().string,linkTooltipText:v().string,moreTooltipText:v().string,pinterestTooltipText:v().string,tumblrTooltipText:v().string,twitterTooltipText:v().string,onShare:v().func,onEmbedClicked:v().func,onMoreClicked:v().func,onLinkCopied:v().func},Se.defaultProps={canShareContent:!0,canShowSelect:!0,shouldShowFacebookButton:!0,shouldShowTwitterButton:!0,shouldShowPinterestButton:!0,shouldShowTumblrButton:!0,shouldShowLinkButton:!0,shouldShowEmbedButton:!1,shouldShowMoreButton:!1,twitterDescriptionText:"",pinterestDescriptionText:"",shareMode:be.L.CHANNEL,onShare:u.noop,onEmbedClicked:u.noop,onMoreClicked:u.noop,onLinkCopied:u.noop};var Ce=n(72632),we=n(90159),Pe=n(14254),Ie=n(3729),Oe=n(39396),Te=n(65925),Ne=n(50336);const Ae=e=>{let{videoItem:t}=e;return d().get(t,"embedOptions.enabled",!1)};var xe=n(31255),_e=n(70428),Le=n(71217);const Re="bQ64sb";class ke extends l().Component{constructor(){super(...arguments),s()(this,"handleChange",(e=>{this.props.onChange(e.target.value)}))}render(){const{options:e,selected:t,dataHook:n,ariaLabel:r,isRTL:o}=this.props;return l().createElement(N,{dataHook:n,ariaLabel:r,className:Re,selected:t,onChange:this.handleChange,options:e,isRTL:o})}}const De=ke,Ve=({size:e,...t})=>a.createElement("svg",{viewBox:"0 0 1000 1000",fill:"currentColor",width:e||"1em",height:e||"1em",...t},a.createElement("path",{fill:"currentColor",d:"M921 0L500 421 79 0 0 79l421 421L0 921l79 79 421-421 421 421 79-79-421-421 421-421-79-79z"}));Ve.displayName="close";const Me=Ve,Be="_2ealv";class Fe extends l().Component{render(){const{value:e,dataHook:t,className:n,disabled:r,onChange:o,onFocus:i,onBlur:s,setRef:a,tabIndex:c,ariaLabel:u}=this.props;return l().createElement("input",{type:"text",className:`${Be} ${n}`,"data-hook":t,ref:a,"aria-label":u,value:e,tabIndex:c,onChange:o,onBlur:s,onFocus:i,disabled:r})}}Fe.defaultProps={onChange:()=>{}};const Ue="TihlYE",je="rjed5Y",He="VAI767",Ze="iksh09",We="K37W2o";class ze extends l().Component{constructor(e){super(e),s()(this,"onCustomWidthChanged",(e=>{this.setState({width:e.target.value})})),s()(this,"onCustomHeightChanged",(e=>{this.setState({height:e.target.value})})),s()(this,"onWidthBlur",(()=>{if(!this.state.width)return;const e=Number(this.state.width);e===this.props.width||d().isNaN(e)||this.props.onWidthBlur(e)})),s()(this,"onHeightBlur",(()=>{if(!this.state.height)return;const e=Number(this.state.height);e===this.props.height||d().isNaN(e)||this.props.onHeightBlur(e)})),s()(this,"onSubmit",(e=>{e.preventDefault(),this.onWidthBlur(),this.onHeightBlur()}));const{width:t,height:n}=e;this.state={width:t,height:n}}UNSAFE_componentWillReceiveProps(e){const{width:t,height:n}=this.state;String(e.width)!==t&&this.setState({width:e.width}),String(e.height)!==n&&this.setState({height:e.height})}render(){const{dataHook:e,onFocus:t,inactive:n}=this.props,{width:r,height:o}=this.state,i=h()(je,{[We]:n});return l().createElement("form",{"data-hook":e,className:Ue,onSubmit:this.onSubmit},l().createElement(Fe,{className:i,dataHook:"custom-width",tabIndex:"0",value:r,onChange:this.onCustomWidthChanged,onFocus:t,onBlur:this.onWidthBlur,ariaLabel:this.props.t("widget.accessibility.widget-width",{width:r})}),l().createElement(Me,{className:He}),l().createElement(Fe,{className:i,dataHook:"custom-height",tabIndex:"0",value:o,onChange:this.onCustomHeightChanged,onFocus:t,onBlur:this.onHeightBlur,ariaLabel:this.props.t("widget.accessibility.widget-height",{height:o})}),l().createElement("input",{type:"submit",className:Ze}))}}const qe=(0,we.Z)()(ze),Ge="zNO2HL",$e="POfyt8",Ye="HqUAO0",Ke="Xg5RZl",Xe="CGa46a",Qe="jdjxMr",Je="HrkKTe",et="zPfU85";class tt extends l().Component{constructor(e){super(e),s()(this,"handleCopyClick",(()=>{const{showSuccessMessage:e}=this.state;e||this.copyToClipboard()})),s()(this,"copyToClipboard",(()=>{document.queryCommandSupported("copy")&&(this.input.select(),document.execCommand("copy"),this.setState({showSuccessMessage:!0}),this.hideMessages(),this.props.onContentCopied())})),s()(this,"setRef",(e=>{this.input=e})),this.state={showSuccessMessage:!1}}componentDidMount(){this.props.onInit(this.input)}hideMessages(){setTimeout((()=>{this.setState({showSuccessMessage:!1})}),3e3)}render(){const{onFocus:e,value:t,isRTL:n}=this.props,{showSuccessMessage:r}=this.state;return l().createElement("div",{className:Ge},l().createElement(Fe,{dataHook:"iframe-code",className:$e,setRef:this.setRef,onFocus:e,value:t}),l().createElement("button",{className:h()(Ye,{[et]:r,[Xe]:n,[Ke]:!n}),tabIndex:"0",onClick:this.handleCopyClick},l().createElement("i",{className:Je}),l().createElement("span",{className:Qe},this.props.t("share-overlay.embed.copy"))))}}const nt=(0,we.Z)()(tt);var rt;function ot(){return ot=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},ot.apply(this,arguments)}const it=function(e){return a.createElement("svg",ot({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16"},e),rt||(rt=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.73 7 8.023.707 7.316 0l-7 7H0v1h.293l7.34 7.34.708-.706L1.707 8H16V7H1.73z"})))},st="xzbJ8F",at="PoY8De",lt="VZoaRS",ct=(0,we.Z)()((e=>{let{dataHook:t,onBackButtonClick:n,t:r}=e;return l().createElement("div",{"data-hook":t,className:at,dir:"ltr"},l().createElement("a",{href:"#","data-hook":"back-button",className:st,onClick:n,"aria-label":r("widget.accessibility.close-embed-form")},l().createElement(it,null)),l().createElement("span",{className:lt},r("share-overlay.embed.video.title")))})),ut=16/9,dt=200,pt=Math.round(112.5),ht={"embed-form":"Z9WsXs",embedForm:"Z9WsXs","size-picker":"Oyw91C",sizePicker:"Oyw91C"},mt={logBi:Le.k},ft=(0,c.$j)((e=>({biToken:(0,Oe.LG)(e),instanceId:(0,Oe.Sg)(e),siteUrl:(0,Oe.$2)(e),fullSiteUrl:(0,Oe.tf)(e),siteOwnerId:(0,Oe.hx)(e)})),mt)(class extends l().Component{constructor(e){super(e),s()(this,"saveRef",(e=>{this.containerRef=e})),s()(this,"handleBackButtonClick",(e=>{e.preventDefault(),this.props.onBack()})),s()(this,"saveTextAreaRef",(e=>{this.textAreaRef=e})),s()(this,"selectCode",(()=>{this.textAreaRef.select()})),s()(this,"updateSize",(e=>{this.setState({size:e})})),s()(this,"onWidthBlur",(e=>{const t=!d().gt(e,dt),n=t?dt:e,r=t?pt:(e=>Math.round(Number(e)/ut))(e);this.setState({customHeight:r,customWidth:n})})),s()(this,"onHeightBlur",(e=>{const t=!d().gt(e,pt),n=t?pt:e,r=t?dt:(e=>Math.round(Number(e)*ut))(e);this.setState({customHeight:n,customWidth:r})})),s()(this,"setCustomSize",(()=>{const{size:e}=this.state,t=d().last(this.SIZES).value;if(e!==t){const[n,r]=e.split("x");this.setState({size:t,customHeight:r,customWidth:n})}})),s()(this,"stopPropagation",(e=>{e.stopPropagation()})),s()(this,"handleContentCopied",(()=>{const{channelId:e,videoId:t}=this.props;this.props.logBi("widget.share.embed.copy.clicked",{channelID:e,videoID:t,shareType:be.L.VIDEO})})),this.SIZES=[{value:"560x315",text:"560x315"},{value:"1280x720",text:"1280x720"},{value:"853x480",text:"853x480"},{value:"640x360",text:"640x360"},{value:"",text:e.t("share-overlay.embed.custom")}],this.DEFAULT_SIZE=this.SIZES[0],this.state={customWidth:"",customHeight:"",size:this.DEFAULT_SIZE.value,websiteUrl:null,instanceId:e.instanceId,biToken:e.biToken,pathToPage:null}}componentDidMount(){const{siteUrl:e,fullSiteUrl:t}=this.props,n=e.length,[r]=t.substr(n).split("?");this.setState({pathToPage:r?encodeURIComponent(r):""}),(0,Ce.T)(this.containerRef)}generateEmbedUrl(){const{width:e,height:t}=this.getSize(),n=this.buildEmbedUrl();return n?`<iframe width="${e}" height="${t}" src="${n}" frameborder="0" allowfullscreen></iframe>`:""}buildEmbedUrl(){const{pathToPage:e,instanceId:t,biToken:n}=this.state;if(null===e)return"";const{channelId:r,videoId:o,compId:i,sitePageId:s,siteOwnerId:a}=this.props;return`https://embed.wix.com/video?instanceId=${t}&biToken=${n}&pathToPage=${e}&channelId=${r||a}&videoId=${o}&compId=${i}&sitePageId=${s}`}getSize(){const{size:e,customWidth:t,customHeight:n}=this.state;if(e){const[t,n]=e.split("x");return{width:t,height:n}}if(t&&n)return{width:t,height:n};const[r,o]=this.DEFAULT_SIZE.value.split("x");return{width:r,height:o}}getOptions(){return this.SIZES}getCustomSizeWidth(){const{size:e,customWidth:t}=this.state;return e?e.split("x")[0]:t}getCustomSizeHeight(){const{size:e,customHeight:t}=this.state;return e?e.split("x")[1]:t}render(){const{dataHook:e,isRTL:t}=this.props,{size:n}=this.state;return l().createElement("section",{"data-hook":e,ref:this.saveRef,onClick:this.stopPropagation,className:ht["embed-form"]},l().createElement(ct,{dataHook:"header",onBackButtonClick:this.handleBackButtonClick}),l().createElement("div",{className:ht["size-picker"]},l().createElement(De,{dataHook:"embed-select",onChange:this.updateSize,selected:n,options:this.getOptions(),isRTL:t,ariaLabel:this.props.t("widget.accessibility.widget-size",{size:n.label})}),l().createElement(qe,{dataHook:"custom-size",className:ht["custom-sizes"],inactive:Boolean(n),width:this.getCustomSizeWidth(),height:this.getCustomSizeHeight(),onFocus:this.setCustomSize,onWidthBlur:this.onWidthBlur,onHeightBlur:this.onHeightBlur})),l().createElement(nt,{onInit:this.saveTextAreaRef,onFocus:this.selectCode,onContentCopied:this.handleContentCopied,value:this.generateEmbedUrl(),isRTL:t}))}}),gt=(0,we.Z)()(ft),vt="Gyj5HM",yt="BFuZk9",bt="cUvZxj";var Et;const St={[be.L.VIDEO]:"share-overlay.social.share",[be.L.CHANNEL]:"widget.compact-view.components.action-bar.share-this-channel",CHANNEL_AND_VIDEO:"share-overlay.social.title"},Ct={closeShareOverlay:xe.sx,logBi:Le.k},wt=(0,c.$j)(((e,t)=>{const n=Te.g4(e),r=Te.ZJ(e),o=!(n||r);return{shareMode:(0,Pe.W3)(e),canShareContent:o,isEditor:r,isChannelShareVisible:d().isUndefined(t.canShareChannel)?(0,Ie.Sd)(e):t.canShareChannel,isVideoShareVisible:d().isUndefined(t.canShareVideo)?(0,Ne.r)(e):t.canShareVideo,instanceInfo:{...(0,Pe.sE)(e),biToken:(0,Oe.LG)(e)},isShareOverlayOpen:(0,Pe.Wg)(e),shouldShowEmbedButton:Ae(t),compId:(0,Oe.Qp)(e),sitePageId:(0,Oe.zj)(e),videoUrl:(0,Pe.cy)(e,t),channelUrl:(0,Pe.GT)(e),isRTL:(0,Ie.dZ)(e)}}),Ct)((Et=class extends l().Component{constructor(e){super(e),s()(this,"openEmbedForm",(0,_e.Q)((()=>{this.setState({isEmbedOpen:!0})}))),s()(this,"closeEmbedForm",(()=>{this.state.isEmbedOpen&&this.setState({isEmbedOpen:!1})})),s()(this,"closeShareOverlay",(()=>{this.props.closeShareOverlay(),this.props.onClosed()})),s()(this,"saveRef",(e=>{this.containerRef=e})),s()(this,"handleShare",(0,_e.Q)((e=>{let{networkName:t,shareType:n}=e;const{channelData:r,videoItem:o}=this.props;this.props.logBi("widget.vid.share.clicked",{button:t,shareType:n,channelID:r.id,videoID:o.id})}))),s()(this,"handleLinkCopied",(0,_e.Q)((e=>{let{shareType:t}=e;const{channelData:n,videoItem:r}=this.props;this.props.logBi("widget.vid.share.clicked",{button:"link",shareType:t,channelID:n.id,videoID:r?r.id:null})}))),this.state={isEmbedOpen:!1}}UNSAFE_componentWillReceiveProps(e){const{isShareOverlayOpen:t,isEditor:n}=this.props;t&&!e.isShareOverlayOpen&&this.closeEmbedForm(),!n&&e.isEditor&&this.closeShareOverlay()}componentDidUpdate(e){const{isShareOverlayOpen:t}=this.props;!e.isShareOverlayOpen&&t&&(0,Ce.T)(this.containerRef)}componentWillUnmount(){const{isShareOverlayOpen:e,closeShareOverlay:t}=this.props;e&&t()}getTitleByShareMode(e){const{isChannelShareVisible:t,isVideoShareVisible:n}=this.props;if(t&&n)return this.props.t(St.CHANNEL_AND_VIDEO);const r=St[e];return r?this.props.t(r):""}getTranslations(e){return{titleText:this.getTitleByShareMode(e),shareChannelText:this.props.t("share-overlay.social.share-channel"),shareVideoText:this.props.t("share-overlay.social.share-video"),twitterDescriptionText:this.props.t("social-share.network.twitter",{title:"{title}",siteUrl:"{siteUrl}"}),pinterestDescriptionText:this.props.t("social-share.network.pinterest",{title:"{title}",description:"{description}"}),tumblrDescriptionText:this.props.t("social-share.network.tumblr",{title:"{title}",siteUrl:"{siteUrl}"}),linkCopiedText:this.props.t("share-overlay.social.link-copied"),embedTooltipText:this.props.t("share-overlay.social.embed-video"),facebookTooltipText:this.props.t("social-button.facebook"),linkTooltipText:this.props.t("share-overlay.social.copy-link"),pinterestTooltipText:this.props.t("social-button.pinterest"),tumblrTooltipText:this.props.t("social-button.tumblr"),twitterTooltipText:this.props.t("social-button.twitter")}}getAriaLabels(){return{facebookAriaLabel:this.props.t("widget.accessibility.share-on",{network:"Facebook"}),twitterAriaLabel:this.props.t("widget.accessibility.share-on",{network:"Twitter"}),pinterestAriaLabel:this.props.t("widget.accessibility.share-on",{network:"Pinterest"}),tumblrAriaLabel:this.props.t("widget.accessibility.share-on",{network:"Tumblr"}),linkAriaLabel:this.props.t("widget.accessibility.get-link"),embedAriaLabel:this.props.t("widget.accessibility.get-embed-code"),moreAriaLabel:this.props.t("widget.accessibility.show-more")}}canShowSelect(){const{isChannelShareVisible:e,isVideoShareVisible:t,videoItem:n}=this.props;return e&&t&&Boolean(n)}getShareMode(){const{videoItem:e,shareMode:t}=this.props;return e?t:be.L.CHANNEL}render(){const{instanceInfo:e,canShareContent:t,channelData:n,videoItem:r,isShareOverlayOpen:i,shouldShowEmbedButton:s,videoUrl:a,channelUrl:c,compId:u,sitePageId:d,shareMode:p,isRTL:g}=this.props,v=h()("share-overlay-container",vt,{[yt]:i}),{isEmbedOpen:y}=this.state;return l().createElement("div",{className:v,"data-hook":"share-overlay","aria-hidden":!i,ref:this.saveRef},l().createElement(m.r,{type:"fade-in-out",className:`share-overlay-animate ${bt}`,when:i},l().createElement(f.s,{dataHook:"closable-overlay",onClose:this.closeShareOverlay,closeOnBodyClick:!0,isFullWidth:!0,isVisible:i,isRTL:g,ariaLabel:this.props.t("widget.accessibility.share"),closeButtonAriaLabel:this.props.t("widget.accessibility.close-share")},l().createElement(Se,o()({channelData:n,videoItem:r,shareMode:this.getShareMode(),instanceInfo:e,canShareContent:t,onEmbedClicked:this.openEmbedForm,canShowSelect:this.canShowSelect(),onShare:this.handleShare,onLinkCopied:this.handleLinkCopied,shouldShowEmbedButton:s,videoUrl:a,channelUrl:c,isRTL:g},this.getTranslations(p),this.getAriaLabels()),y&&l().createElement(gt,{dataHook:"embed-form",onBack:this.closeEmbedForm,channelId:n.id,videoId:r.id,compId:u,sitePageId:d,isRTL:g})))))}},s()(Et,"defaultProps",{onShare:d().noop,onClosed:d().noop}),Et)),Pt=(0,we.Z)()(wt)},90716:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var r=n(26290),o=n.n(r),i=n(27762),s=n.n(i),a=n(17607),l=n.n(a),c=n(44714),u=n(60042),d=n.n(u),p=n(71217),h=n(3729);const m="OvK04b",f="xN6cBY",g="fRkHOM",v=()=>{},y=e=>{const{text:t,className:n,onBlur:r=v,onClick:o=v,onFocus:i=v}=e,a=d()(n,m,{[f]:e.rounded,[e.rounded?e.roundedClassName:""]:e.rounded&&e.roundedClassName});return s().createElement("button",{type:"button",className:a,onClick:()=>{o(t)},onFocus:i,onBlur:r,"data-hook":"tag"},s().createElement("span",{className:g},t))},b="Tc3W9Z";class E extends s().Component{render(){const{tags:e,isRounded:t,className:n,tagClassName:r,roundedTagClassName:o,onTagClick:i,onTagFocus:a,onTagBlur:c}=this.props;return s().createElement("div",{className:n,"data-hook":"tags-cloud"},l().map(e,(e=>s().createElement(y,{key:e,className:d()(b,r),roundedClassName:o,text:e,rounded:t,onClick:i,onFocus:a,onBlur:c}))))}}o()(E,"defaultProps",{onTagClick:l().noop});const S="mqeYqD",C="j7hYeR";var w,P=n(66550);const I={logBi:p.k},O=(0,c.$j)((e=>({isMobile:(0,P.tq)(e),isVisible:(0,h.l$)(e),isRounded:(0,h.as)(e)})),I)((w=class extends s().Component{constructor(){super(...arguments),o()(this,"onTagClick",(e=>{this.sendTagSelectedBI(),this.props.onTagClick(e)}))}getTagList(){return l().map(this.props.tags||[],"value")}sendTagSelectedBI(){this.props.logBi("widget.tags.selected")}render(){const{className:e,tagClassName:t,roundedTagClassName:n,isVisible:r,isRounded:o,onTagFocus:i,onTagBlur:a,isMobile:l}=this.props;if(!r)return null;const c=d()(S,t,{[C]:l});return s().createElement(E,{className:e,tagClassName:c,isRounded:o,roundedTagClassName:n,tags:this.getTagList(),onTagBlur:a,onTagFocus:i,onTagClick:this.onTagClick})}},o()(w,"defaultProps",{onTagClick:l().noop}),w))},47260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(26290),o=n.n(r),i=n(27762),s=n.n(i),a=n(17607),l=n.n(a),c=n(44714),u=n(79507),d=n(27615);const p={clearVideoUrlsCacheForAll:d.gM,clearVideoUrlsCacheForItem:d.Zj},h=(0,c.$j)(null,p)(class extends s().Component{constructor(){super(...arguments),o()(this,"clearVideoUrlsCacheForAll",l().debounce((()=>{this.props.clearVideoUrlsCacheForAll()}),300)),o()(this,"clearVideoUrlsCacheForItem",(e=>{this.props.clearVideoUrlsCacheForItem(e.itemId)}))}render(){return s().createElement(u.Z,{onSubscription:this.clearVideoUrlsCacheForAll,onSubscriptionCancel:this.clearVideoUrlsCacheForAll,onLogin:this.clearVideoUrlsCacheForAll,onRent:this.clearVideoUrlsCacheForItem,onSale:this.clearVideoUrlsCacheForItem})}})},56709:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(26290),o=n.n(r),i=n(27762),s=n.n(i),a=n(17607),l=n.n(a),c=n(44714),u=n(79507),d=n(42925);const p={getPaymentInfo:n(16005).q},h=(0,c.$j)((e=>({channelId:(0,d.gO)(e)})),p)(class extends s().Component{constructor(){super(...arguments),o()(this,"fetchChannelPaymentData",l().debounce((()=>{this.props.getPaymentInfo(this.props.channelId)}),300))}render(){return s().createElement(u.Z,{onAnyEvent:this.fetchChannelPaymentData})}})},54994:(e,t,n)=>{"use strict";n.d(t,{IJ:()=>d,yZ:()=>h,zS:()=>u});var r=n(17607),o=n.n(r),i=n(97698),s=n(3729),a=n(38581),l=n(65911);const c=(0,i.P1)(((e,t)=>t),s.CG,s.Yj,((e,t,n)=>{if(!e)return 0;return e-2*(n?t:l.m)})),u=(0,i.P1)(c,s.A1,s.I2,((e,t,n)=>{if(!e)return n;const r=a.i[0]+t,o=Math.floor(e/r);return Math.min(Math.max(o,1),n)})),d=(0,i.P1)(c,s.A1,s.I2,u,((e,t,n,r)=>{const i=Math.min(r,n),s=(l=(r>=n||t?e-(i-1)*t:e)/i,Math.round(100*l)/100);var l;return o().clamp(s,...a.i)})),p=(0,i.P1)(d,(e=>e>699?80:e>499?60:50)),h=(0,i.P1)(s.vr,s.A1,p,((e,t,n)=>e?o().clamp(t,n,l.c):t))},21442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(27762),o=n.n(r),i=n(83452);const s="eYVqDh",a="wyOybg",l=()=>o().createElement("div",{className:s},o().createElement(i.$,{className:a}))},56417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(26290),o=n.n(r),i=n(27762),s=n.n(i),a=n(91747),l=n(62051),c=n(4612),u=n(44714),d=n(39396),p=n(59052);const h="VHQ8pz";var m,f=n(90159);const g={openModal:p.h7},v=(0,u.$j)((e=>({compId:(0,d.Qp)(e),siteUrl:(0,d.tf)(e)})),g)((m=class extends s().Component{constructor(e){super(e),o()(this,"hasNativeShare",(()=>Boolean(navigator.share))),o()(this,"loadSharePopup",(async()=>{const e=(await n.e(366).then(n.bind(n,87124))).default;this.setState({ShareMobileContent:e})})),o()(this,"sendStatsReport",(e=>{const{channelData:t,videoItem:n}=this.props;n&&({network:{name:e},channel:t}.videoItem=n)})),o()(this,"openPopup",(()=>{this.hasNativeShare()?this.openNativeShare():this.openSharePopup()})),o()(this,"openNativeShare",(()=>{const{siteUrl:e,compId:t,channelData:n,videoItem:r}=this.props;let o,i;r?(i=r.title,o=(0,a.T)(r,{siteUrl:e,compId:t})):(i=n.title,o=(0,l.T)({siteUrl:e,compId:t})),navigator.share({url:o,title:i}).then((()=>this.sendStatsReport(c.H.LINK))).catch((async e=>{20!==e.code&&(await this.loadSharePopup(),this.openSharePopup())}))})),o()(this,"openSharePopup",(()=>{const{videoItem:e,compId:t,channelData:n,top:r,siteUrl:o,openModal:i}=this.props,{ShareMobileContent:c}=this.state;let u,d,p,m,f,g;e?(d="widget.share-video.share",p="widget.share-video.share-link",m=(0,a.T)(e,{siteUrl:o,compId:t}),f=e.description,g=e.customCoverUrl||e.coverUrl,u=e.title):(d="widget.share-channel.share",p="widget.share-channel.share-link",m=(0,l.T)({siteUrl:o,compId:t}),f=n.description,g=n.customCoverUrl||n.coverUrl,u=n.title);const v={siteUrl:m,title:u,description:f,coverUrl:g};i({title:s().createElement("span",{className:h},this.props.t(d)),top:r,closeButtonLabel:this.props.t("widget.accessibility.close-share"),content:s().createElement(c,{shareParams:v,inputLabel:this.props.t(p),channelId:n.id,videoId:e&&e.id,onShare:this.sendStatsReport})})})),this.state={ShareMobileContent:null}}async componentDidMount(){this.hasNativeShare()||await this.loadSharePopup(),this.props.isOpen&&this.openPopup()}render(){const{children:e}=this.props;return e?s().cloneElement(e,{onClick:this.openPopup}):null}},o()(m,"displayName","ShareMobile"),o()(m,"defaultProps",{dataHook:"share-mobile"}),m)),y=(0,f.Z)()(v)},8275:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,z:()=>i});var r=n(21627);const o={PLAYBACK_MODULE_LOADED:"CLIENT.MOBILE.PLAYBACK_MODULE.LOADED"},i=(0,r.Z)(o.PLAYBACK_MODULE_LOADED)},29861:(e,t,n)=>{"use strict";n.d(t,{aL:()=>o,bX:()=>i,pi:()=>s});var r=n(21627);const o={CLOSE_SLIDE_MENU:"CLIENT.MOBILE.SLIDE_MENU.CLOSE",OPEN_SLIDE_MENU:"CLIENT.MOBILE.SLIDE_MENU.OPEN"},i=(0,r.Z)(o.CLOSE_SLIDE_MENU),s=(0,r.Z)(o.OPEN_SLIDE_MENU)},14013:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(22060);const o={[r.VIDEO_CARD_TYPES.SOCIAL]:"get_social_followers",[r.VIDEO_CARD_TYPES.PRODUCT]:"boost_sales",[r.VIDEO_CARD_TYPES.CUSTOM]:"custom",[r.VIDEO_CARD_TYPES.VIDEO]:"promote_video",[r.VIDEO_CARD_TYPES.RECENT_VIDEO]:"promote_video",[r.VIDEO_CARD_TYPES.CHANNEL]:"feature_channel"};function i({type:e}){return o[e]}var s=n(17607);var a=n(71217);const l=(c=a.k,{logCardClick:({card:e,biOrigin:t})=>c("widget.videoCards.card.click",{cardName:i(e),origin:t,socialNetwork:(0,s.get)(e,"network",null)}),logCardCloseButtonClick:({card:e})=>c("widget.videoCards.card.close.click",{cardName:i(e)}),logAllCardsButtonClick:()=>c("widget.videoCards.allCards.open.click"),logAllCardsCloseButtonClick:()=>c("widget.videoCards.allCards.close.click")});var c},62568:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={VIDEO_INFO:"videoInfo",ALL_CARDS:"allCards"}},93221:(e,t,n)=>{"use strict";n.d(t,{J8:()=>S,xy:()=>C});var r=n(17607),o=n.n(r),i=n(83379),s=n(19891),a=n(36229),l=n(35664),c=n(82629),u=n(13060),d=n(3729),p=n(82053),h=n(72096),m=n(25839),f=n(62568),g=n(79812),v=n(6263),y=n(40385),b=n(46310),E=n(42925);const S=e=>O(!1,e),C=e=>O(!0,e),w=(e,t,n)=>{const r=(0,u.mJ)(t,n);e((0,y.s)({videoItem:r,channelData:(0,E.gD)(t,(0,E.gO)(t))}))},P={[m.o.OPEN_ACTION_CARDS]:function(e,t){const n=(0,h.sI)(t);o().isEmpty(n)||(e((0,g.A9)()),e((0,l.V)(f.Z.ALL_CARDS)))},[m.o.PLAY_NEXT_VIDEO]:function(e,t,n,r){const o=(0,a.e2)(t),s=(0,c.Xm)(t)&&!(0,c.so)(t);o&&(w(e,t,o),e((0,i.x)(o,s)))}},I={[m.o.PLAY_NEXT_VIDEO]:function(e,t,n,r){const o=(0,a.e2)(t);if(o){const n=(0,u.mJ)(t,o);(0,v.E8)(n)||(w(e,t,o),e((0,s.D0)(o,!0)))}}},O=(0,b.DM)("handleVideoEnd",((e,t)=>(n,r)=>{const o=r();if(!(0,p.qf)(o)){const r=(0,d.tU)(o),i=(e?I:P)[r];i&&i(n,o,t,e)}}))},59052:(e,t,n)=>{"use strict";n.d(t,{h7:()=>c,CC:()=>u});var r=n(21627),o=n(59406),i=n(60901);var s=n(39396),a=n(98825);const l=(0,r.Z)("CLIENT.OPEN_MODAL"),c=e=>(t,n)=>{const r=(0,s.Qp)(n()),o={...e,compId:r};t(l(o)),(0,a.h7)(o).catch(a.Pw)},u=()=>e=>{e(c({closeOnOverlayClick:!0,title:(0,i.t)("widget.preview-prompt.preview-mode"),contentType:o.J.PREVIEW_PROMPT}))}},59879:(e,t,n)=>{"use strict";n.d(t,{DV:()=>a,VG:()=>s,aK:()=>l,d4:()=>i,n$:()=>u,sT:()=>c});var r=n(21627),o=n(60218);const i=(0,o.f)("PAYMENT.CREATE_ORDER"),s=(0,o.f)("PAYMENT.INIT_CHECKOUT"),a=(0,r.Z)("PAYMENT.SELECT_METHOD"),l=(0,r.Z)("PAYMENT.STATUS_CHANGE"),c=(0,r.Z)("PAYMENT.ERROR"),u={IDLE:0,PENDING:1,DONE:2,FAIL:3}},43953:(e,t,n)=>{"use strict";n.d(t,{DY:()=>l,aK:()=>o.aK,n$:()=>o.n$,sT:()=>o.sT,sl:()=>a,yK:()=>c});var r=n(39396),o=n(59879),i=n(46310),s=n(3333);const a=(e,t,n)=>async()=>{const r=(0,s.g)();await r.purchase.cancelOrder(e,t,n)},l=e=>(0,o.DV)(e),c=(0,i._N)("payment.initPayment",(e=>{let{paymentType:t,channelId:n,videoId:i}=e;return async e=>{try{e(o.VG.START()),await e(function(e,t,n){return(i,a)=>{const l=a(),c=(0,r.s8)(l),u=(0,r.Qp)(l),d=(0,r.$2)(l);return i(o.d4.START({paymentType:e,channelId:t,videoId:n})),(0,s.g)().purchase.createOrder(n,t,e,d,c,u).then((e=>{i(o.d4.SUCCESS({orderId:e}))}),(e=>(i(o.d4.FAIL(e)),Promise.reject(e))))}}(t,n,i)),e(o.VG.SUCCESS())}catch(t){e(o.VG.FAIL(t)),e((0,o.sT)(t))}}}))},47944:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>i});var r=n(21627);const o={SET:"CLIENT.VIDEO.AUTOPLAYED.SET"},i=(0,r.Z)(o.SET)},85903:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,a:()=>o});var r=n(21627);const o={SET:"CLIENT.VIDEO.FULLSCREEN_STATUS.SET"},i=(0,r.Z)(o.SET)},35664:(e,t,n)=>{"use strict";n.d(t,{V:()=>i,a:()=>o});var r=n(21627);const o={SET:"CLIENT.VIDEO.OVERLAY_CONTENT.SET"},i=(0,r.Z)(o.SET)},63212:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,a:()=>o});var r=n(21627);const o={SET:"CLIENT.VIDEO.SAVED_TIME.SET"},i=(0,r.Z)(o.SET)},66060:(e,t,n)=>{"use strict";n.d(t,{Nu:()=>c,Zj:()=>l,aL:()=>s});var r=n(21627),o=n(82629),i=n(46310);const s={SET_MUTED:"CLIENT.VIDEO.SOUND.SET_MUTED",SET_VOLUME_CHANGED_BY_USER:"CLIENT.VIDEO.SOUND.SET_VOLUME_CHANGED_BY_USER"},a=(0,r.Z)(s.SET_VOLUME_CHANGED_BY_USER),l=(0,r.Z)(s.SET_MUTED),c=(0,i.DM)("setVolumeChangedByUser",(()=>(e,t)=>{(0,o.so)(t())||e(a())}))},79812:(e,t,n)=>{"use strict";n.d(t,{$g:()=>i,A9:()=>s,aL:()=>o});var r=n(21627);const o={SHOW:"CLIENT.VIDEO.PLAYER_UI.SHOW",HIDE:"CLIENT.VIDEO.PLAYER_UI.HIDE"},i=(0,r.Z)(o.SHOW),s=(0,r.Z)(o.HIDE)},83379:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var r=n(52907),o=n(81098),i=n(87077),s=n(946),a=n(13060),l=n(96918);const c=(0,n(46310).DM)("requestPlayVideo",(function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),(c,u)=>{const d=u(),p=(0,a.$u)(d),h=(0,i.js)(d),m=(0,s.C)(d),f=p[e];c((0,l.$4)(h,f,m)?(0,o.Kz)(f.id,t,n):(0,r.Uw)(f.id))}}))},27615:(e,t,n)=>{"use strict";n.d(t,{Zj:()=>s,aL:()=>o,gM:()=>i});var r=n(21627);const o={ALL:"CLIENT.VIDEO_URLS.CLEAR_ALL",FOR_ITEM:"CLIENT.VIDEO_URLS.CLEAR_FOR_ITEM"},i=(0,r.Z)(o.ALL),s=(0,r.Z)(o.FOR_ITEM)},96658:(e,t,n)=>{"use strict";n.d(t,{C:()=>h,a:()=>c});var r=n(60218),o=n(39396),i=n(46310),s=n(52829),a=n(3333);const l=(0,r.f)("CLIENT.VIDEO_URLS.GET"),c=l.NAMES,{START:u,SUCCESS:d,FAIL:p}=l,h=(0,i._N)("fetchVideoUrls",(function(e,t){return void 0===t&&(t=!1),(n,r)=>{const i=r(),{videoUrlsCache:l}=i,c=(0,o.s8)(i),h=(0,s.S)(i);if(!t&&(!e||l[e.id]))return;const m={videoItem:e};if(n(u(m)),e.dgsInfo&&!e.itemId&&!e.listId)return Promise.resolve();const f=e.listId||i.channelInfo.info.id;return(0,a.g)().videoService.getVideoUrls(e.itemId,f,c,h).then((function(e){return n(d(m,e)),e}),(function(e){n(p(m,e))}))}}))},93060:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(87077),o=n(13060),i=n(77763);const s=(0,n(46310)._N)("ensureVideoLoaded",(e=>(t,n)=>{const s=n(),a=(0,o.$u)(s),l=(0,r.js)(s);return a[e]?Promise.resolve():t((0,i.t)(l.id,e))}))},14348:(e,t,n)=>{"use strict";n.d(t,{O2:()=>P,OF:()=>S,R7:()=>m,X0:()=>C,YR:()=>f,gU:()=>p,l1:()=>w,nR:()=>E,pX:()=>h,yq:()=>y});var r=n(17607),o=n.n(r),i=n(21627),s=n(65435),a=n(82053),l=n(36229),c=n(80840),u=n(46310),d=n(42925);const p="CLIENT.LAZY_CHANNEL_VIDEOS.RESET",h="CLIENT.LAZY_CHANNEL_VIDEOS.PAGE_INDEX.SET",m="CLIENT.LAZY_CHANNEL_VIDEOS.VIDEO_INDEX.SET",f="CLIENT.LAZY_CHANNEL_VIDEOS.PREPEND_VIDEO_IDS",g=(0,i.Z)(h),v=(0,i.Z)(m),y=(0,i.Z)(p),b=((0,i.Z)(f),(0,u._N)("loadMoreInChunks",(function(e,t){let{category:n,tag:r,query:o}=void 0===t?{}:t;return async(t,i,s)=>{let{storage:a}=s,c=e;const u=i(),d=(0,l.W$)(u);let p=await a.loadingPromise;for(;c>0&&(!p||(null==(h=p.data)?void 0:h.result.length)>=d&&null!=(m=p.paging)&&m.cursor);){var h,m,f;await t(E(d,{category:n,tag:r,query:o})),p=await a.loadingPromise,c-=(null==(f=p)||null==(f=f.data)||null==(f=f.result)?void 0:f.length)??d}a.loadingPromise=null}}))),E=(0,u._N)("loadMore",(function(e,t){let{category:n,tag:r,query:i}=void 0===t?{}:t;return(t,s,a)=>{let{storage:u}=a;const p=s(),h=o().omitBy({query:i,tag:r,category:n},o().isEmpty);return u.loadingPromise=(u.loadingPromise||Promise.resolve()).then((()=>{const n=(0,l.Lp)(p);return n&&u.lastCursor===n?Promise.resolve():(u.lastCursor=n,t((0,c.qz)((0,d.gO)(p),{paging:{size:e,cursor:n},...h})))})),u.loadingPromise}})),S=(0,u._N)("loadMoreVideoPages",(function(e){return void 0===e&&(e=1),(t,n)=>{const r=n();if((0,a.qf)(r))return Promise.resolve();const o=(0,s.uP)(r),i=(0,s.tz)(r),c=(0,l.W$)(r);return t((e>1?b:E)(c*e,{[i]:o}))}})),C=(0,u.DM)("goToLazyVideosPageIndex",(e=>(t,n)=>{const r=n(),o=(0,l.uB)(r),i=(0,l.Lp)(r);o.length===e+1&&i&&t(S()),t(g(e))})),w=(0,u.DM)("loadMoreVideosForMobileVertical",(()=>(e,t)=>{const n=t(),r=(0,l.Lp)(n),o=(0,l.DQ)(n);r&&e(S(1)),e(g(o+1))})),P=e=>(t,n)=>{const r=n(),o=(0,l.Di)(r),i=(0,l.Lp)(r);o.length===e+1&&i&&t(S()),t(v(e))}},42577:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(17607),o=n.n(r),i=n(24220),s=n(52907),a=n(80840),l=n(14348);const c={prependedIds:[],ids:[],cursor:null,perPage:0,isFetching:!1,currentPageIndex:0,currentVideoIndex:0},u=e=>t=>({...t,isFetching:e}),d=(0,i.Z)({[a.aL.START]:u(!0),[a.aL.FAIL]:u(!1),[a.aL.SUCCESS]:(e,t)=>{let{payload:n}=t;const r=o().reject(n.response.data.result,(t=>o().includes(e.prependedIds,t)));return{...e,ids:[...e.ids,...r],cursor:n.response.paging.cursor,isFetching:!1}},[l.YR]:(e,t)=>{let{payload:n}=t;return{...e,prependedIds:[...e.prependedIds,...o().castArray(n)]}},[l.pX]:(e,t)=>{let{payload:n}=t;return{...e,currentPageIndex:n}},[l.R7]:(e,t)=>{let{payload:n}=t;return{...e,currentVideoIndex:n}},[s.At.SET]:(e,t)=>{let{payload:n}=t;return{...e,currentVideoIndex:Math.max(0,o().indexOf(e.ids,n,0))}},[s.At.RESET]:e=>({...e,currentVideoIndex:0}),[l.gU]:o().constant(c)},c)},36229:(e,t,n)=>{"use strict";n.d(t,{DI:()=>h,DQ:()=>f,OS:()=>g,Lp:()=>m,ab:()=>v,e2:()=>S,Di:()=>p,uB:()=>y,W$:()=>d,DV:()=>E,zV:()=>b});var r=n(17607),o=n.n(r),i=n(97698);var s=n(3729),a=n(63582);var l=n(54994),c=n(13060),u=n(66550);const d=(0,i.P1)(s.GR,s.bm,s.I2,l.zS,s.zD,s.cM,s.sn,s.v3,s.BH,(e=>e.isLightbox),u.tq,s.ZG,((e,t,n,r,o,i,s,l,c,u,d,p)=>e?d?c?4:8:u?Math.ceil(window.innerWidth/272):l?r*t:s?a.C*a.$:o||i?n*t:8:0)),p=(0,i.P1)((e=>e.lazyChannelVideos.prependedIds),(e=>e.lazyChannelVideos.ids),((e,t)=>[...e,...o().without(t,...e)])),h=(0,i.P1)(p,c.$u,((e,t)=>o().map(e,(e=>t[e])))),m=e=>e.lazyChannelVideos.cursor,f=e=>e.lazyChannelVideos.currentPageIndex,g=e=>e.lazyChannelVideos.currentVideoIndex,v=e=>e.lazyChannelVideos.isFetching,y=(0,i.P1)(p,d,((e,t)=>o().chunk(e,t))),b=(0,i.P1)(p,g,((e,t)=>Boolean(e[t-1])&&-1!==t)),E=(0,i.P1)(p,g,((e,t)=>Boolean(e[t+1])&&-1!==t)),S=(0,i.P1)(p,g,((e,t)=>e[t+1]||null))},30184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(17607),o=n.n(r),i=n(24220),s=n(28074);const a=(0,i.Z)({[s.MF]:(e,t)=>{let{payload:n}=t;return o().merge({},e,n)}},null)},12574:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(24220).Z)({},{})},83691:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(17607),o=n.n(r),i=n(24220),s=n(59879);const a={config:null,error:null,orderId:null,paymentType:null,paymentMethods:null,selectedMethod:null,checkoutInitializationStatus:s.n$.IDLE};function l(e,t){let{payload:n}=t;return n&&n.params&&(n=n.params),o().isError(n)&&(n=n.message),o().isObject(n)&&(n=o().get(n,"data.error_description")),n&&o().isString(n)||(n="unknown_error"),{...e,status:"ERROR",error:n}}const c=(0,i.Z)({[s.VG.START]:e=>({...e,checkoutInitializationStatus:s.n$.PENDING}),[s.VG.SUCCESS]:e=>({...e,checkoutInitializationStatus:s.n$.DONE}),[s.VG.FAIL](e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{...e,checkoutInitializationStatus:s.n$.FAIL,...l(e,...n)}},[s.d4.START](e,t){let{payload:n}=t;return{...e,paymentType:o().get(n,"params.paymentType"),orderId:null,error:null,paymentMethods:null,selectedMethod:null}},[s.d4.SUCCESS](e,t){let{payload:n}=t;return{...e,orderId:o().get(n,"params.orderId")}},[s.d4.FAIL]:l,[s.sT]:l,[s.DV](e,t){let{payload:n}=t;return{...e,error:null,selectedMethod:n}},[s.aK]:function(e,t){let{payload:n}=t;return{...e,status:n}}},a)},39709:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(74081),o=n(24220),i=n(81098),s=n(52907),a=n(59332);const l=a.VIDEO_PLAYBACK_STATUSES.INITIAL,c=()=>a.VIDEO_PLAYBACK_STATUSES.INITIAL,u=(0,o.Z)({[i.aL.PLAY]:()=>a.VIDEO_PLAYBACK_STATUSES.PLAYING,[i.aL.REQUEST_PLAY]:()=>a.VIDEO_PLAYBACK_STATUSES.PLAY_REQUESTED,[i.aL.ABORT_PLAY]:()=>a.VIDEO_PLAYBACK_STATUSES.PLAY_ABORTED,[i.aL.PAUSE]:e=>e===a.VIDEO_PLAYBACK_STATUSES.INITIAL?e:a.VIDEO_PLAYBACK_STATUSES.PAUSED,[i.aL.REQUEST_PAUSE]:()=>a.VIDEO_PLAYBACK_STATUSES.PAUSE_REQUESTED,[i.aL.RESET]:c,[i.aL.END]:()=>a.VIDEO_PLAYBACK_STATUSES.ENDED,[i.aL.SET]:(e,t)=>{let{payload:n}=t;return n},[s.At.SET]:c,[s.At.RESET]:c},l);var d=n(85903),p=n(66060),h=n(47944),m=n(35664);const f=(0,o.Z)({[d.a.SET]:(e,t)=>{let{payload:n}=t;return{...e,isInFullScreen:n}},[p.aL.SET_MUTED]:(e,t)=>{let{payload:n}=t;return{...e,muted:n}},[p.aL.SET_VOLUME_CHANGED_BY_USER]:e=>({...e,isVolumeChangedByUser:!0}),[h.a.SET]:(e,t)=>{let{payload:n}=t;return{...e,autoPlayed:n}},[m.a.SET]:(e,t)=>{let{payload:n}=t;return{...e,overlayContent:n||null}}},{isInFullScreen:!1,muted:!1,isVolumeChangedByUser:!1,autoPlayed:!1,overlayContent:null});var g=n(17607),v=n.n(g),y=n(79812);const b=(0,o.Z)({[y.aL.SHOW]:v().constant({isVisible:!0}),[y.aL.HIDE]:v().constant({isVisible:!1})},{isVisible:null});var E=n(63212);const S=(0,o.Z)({[E.a.SET]:(e,t)=>{let{payload:n}=t;return n}},0),C=(0,r.UY)({playback:u,state:f,ui:b,savedTime:S})},95493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(17607),o=n.n(r),i=n(24220),s=n(96658),a=n(27615),l=n(840);const c=(0,i.Z)({[s.a.START]:function(e,t){let{payload:n}=t;const{params:{videoItem:{id:r}}}=n;return{...e,[r]:{status:l.Z.PENDING}}},[s.a.SUCCESS]:function(e,t){let{payload:n}=t;const r=n.response,{params:{videoItem:{id:o}}}=n;return{...e,[o]:{status:l.Z.RESOLVED,urls:r}}},[s.a.FAIL]:function(e,t){let{payload:n}=t;const{params:{videoItem:{id:r}}}=n;return{...e,[r]:{status:l.Z.FAILED}}},[a.aL.ALL]:function(){return{}},[a.aL.FOR_ITEM]:function(e,t){let{payload:n}=t;const r=n;return o().omit(e,r)}},{})},52829:(e,t,n)=>{"use strict";n.d(t,{S:()=>a});var r=n(97698),o=n(39396),i=n(65925),s=n(72788);const a=(0,r.P1)(o.$2,i.bK,((e,t)=>t?e:s.l.manage))},3729:(e,t,n)=>{"use strict";n.d(t,{as:()=>nt,FE:()=>Ee,C$:()=>Ke,Sd:()=>ye,Vu:()=>Ge,R0:()=>Ye,gS:()=>$e,jS:()=>We,K1:()=>we,m8:()=>he,To:()=>pe,j0:()=>be,vr:()=>Ze,Xj:()=>He,fi:()=>je,AV:()=>Me,Um:()=>Ue,Vx:()=>Se,GR:()=>O,rV:()=>x,DT:()=>ze,jb:()=>me,LY:()=>fe,l$:()=>qe,UW:()=>ve,z3:()=>U,CG:()=>Qe,Kd:()=>A,PR:()=>H,bm:()=>_,Yj:()=>L,X3:()=>X,od:()=>ee,A1:()=>K,jz:()=>J,bX:()=>Q,tU:()=>ne,bp:()=>Ve,I2:()=>R,pC:()=>Ne,io:()=>Re,jc:()=>it,cM:()=>ce,QK:()=>Be,lM:()=>Fe,sn:()=>ae,_n:()=>ot,v3:()=>ue,Ns:()=>re,zn:()=>tt,uP:()=>Te,i3:()=>De,XM:()=>rt,dZ:()=>ie,LF:()=>T,ZG:()=>de,R4:()=>Le,zD:()=>le,ok:()=>Oe,BH:()=>se,d2:()=>z,At:()=>q,c9:()=>G,eB:()=>st,mK:()=>at,DM:()=>lt,GJ:()=>ct,um:()=>et,IV:()=>Je});var r=n(17607),o=n.n(r),i=n(97698),s=n(34423),a=n(10550),l=n(6510),c=n(90655),u=n(90733),d=n(75817),p=n(14903),h=n(46796),m=n(18573),f=n(39140),g=n(2550),v=n(67170),y=n(98199),b=n(50882),E=n(41149),S=n(12313);const C=["ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","pnb","ps","sd","ug","ur","yi"];var w=n(87077),P=n(94120),I=n(82053);const O=e=>e.appSettings,T=(0,i.P1)(O,(e=>e.booleans.responsive)),N=(e,t)=>n=>o().get(n,e,t||o().get(e.replace("appSettings.",""))),A=N("appSettings.locale"),x=N("appSettings.booleans.autoPlay"),_=N("appSettings.numbers.numberOfRows"),L=N("appSettings.booleans.stretchToFullWidth"),R=N("appSettings.numbers.videosInRow"),k=N("appSettings.numbers.videoInfoPosition"),D=N("appSettings.numbers.showInfoAction"),V=N("appSettings.numbers.showInfoAction"),M=N("appSettings.numbers.layoutStyle"),B=(N("appSettings.numbers.expandedTheme"),N("appSettings.numbers.playType")),F=N("appSettings.numbers.mainActionStyleType"),U=N("appSettings.numbers.channelLayout"),j=N("appSettings.numbers.mobileChannelLayout"),H=N("appSettings.numbers.mainItemOverlayOpacity"),Z=(N("appSettings.numbers.thumbnailOverlayOpacity"),N("appSettings.numbers.videoListVisibility")),W=e=>(0,i.P1)(Z,(t=>t===e)),z=W(a.a.ALWAYS_SHOW),q=W(a.a.EXPAND_ON_CLICK),G=W(a.a.NEVER_SHOW),$=N("appSettings.numbers.compactShowVideoListType"),Y=N("appSettings.booleans.showSearch"),K=N("appSettings.numbers.thumbnailSpacing"),X=(N("appSettings.numbers.sliderHeight"),N("appSettings.numbers.textAlignment")),Q=N("appSettings.booleans.useOptimalFontSizes"),J=N("appSettings.fonts.titleFont"),ee=N("appSettings.fonts.textFont"),te=(N("appSettings.colors.thumbnailOverlayColor"),N("appSettings.numbers.loadMoreButtonType")),ne=N("appSettings.numbers.videoEndOption"),re=(0,i.P1)(te,(e=>e===l.p.TEXT)),oe=e=>(0,i.P1)(U,(t=>t===e)),ie=(0,i.P1)(A,(e=>e&&-1!==C.indexOf(e))),se=(0,i.P1)(j,(e=>e===c.g.VERTICAL)),ae=oe(c.P.COMPACT),le=oe(c.P.STRIP),ce=oe(c.P.CLASSIC),ue=oe(c.P.GRID),de=(0,i.P1)(U,(e=>e===c.P.SLIDER_BIG||e===c.P.SLIDER_SMALL)),pe=(0,i.P1)(Y,ae,((e,t)=>e&&!t)),he=N("appSettings.booleans.showTitleForMainItem"),me=N("appSettings.booleans.showChannelInfo"),fe=N("appSettings.booleans.showChannelShare"),ge=N("appSettings.booleans.showSignIn"),ve=(0,i.P1)(ge,w.js,((e,t)=>e||(0,P.wo)(t))),ye=(0,i.P1)(fe,I.qf,((e,t)=>!t&&e)),be=(0,i.P1)($,(e=>e!==u.b.NEVER_SHOW)),Ee=(0,i.P1)(be,fe,me,ve,I.qf,((e,t,n,r,o)=>!o&&(e||t||n||r))),Se=(0,i.P1)(Z,(e=>e!==a.a.NEVER_SHOW)),Ce=N("appSettings.booleans.showPublisherForMainItem"),we=(0,i.P1)(Ce,ae,((e,t)=>e&&!t)),Pe=N("appSettings.numbers.previewType"),Ie=e=>(0,i.P1)(Pe,(t=>t===e)),Oe=Ie(d.i.THUMBNAILS_HOVER),Te=Ie(d.i.MENU),Ne=Ie(d.i.ACTION_BAR),Ae=Ie(d.i.NAVIGATION_ARROWS),xe=N("appSettings.numbers.navigationArrowsBehavior"),_e=N("appSettings.numbers.thumbnailButtonsBehavior"),Le=(0,i.P1)(xe,Ae,((e,t)=>e===p.U.ALWAYS||t)),Re=(0,i.P1)(_e,Oe,((e,t)=>e===h.g.ON_HOVER&&!t)),ke=N("appSettings.numbers.navigationArrowsPosition"),De=(0,i.P1)(ke,(e=>e===m.G.OUTSIDE)),Ve=N("appSettings.booleans.showVideoPublisherInList"),Me=(0,i.P1)(Ve,ae,((e,t)=>e&&!t)),Be=N("appSettings.booleans.allowComments"),Fe=N("appSettings.booleans.allowCommentsLive",!0),Ue=N("appSettings.booleans.showVideoTitleInList"),je=N("appSettings.booleans.showVideoDurationInList"),He=N("appSettings.booleans.showVideoDescriptionInList"),Ze=(0,i.P1)(Ue,Me,He,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o().some(t)})),We=N("appSettings.booleans.showFullInfo"),ze=N("appSettings.booleans.enableVideosSharing"),qe=N("appSettings.booleans.showChannelTags"),Ge=(0,i.P1)(pe,qe,((e,t)=>e&&t)),$e=(N("appSettings.booleans.showExpandedVideoInfo"),N("appSettings.booleans.enableExpandedVideosSharing")),Ye=((0,i.P1)(N("appSettings.booleans.showExpandedSignIn"),ve,de,ue,((e,t,n,r)=>n||r?e:t)),N("appSettings.booleans.showExpandedChannelTitle"),N("appSettings.booleans.showExpandedVideoTitle"),N("appSettings.booleans.showExpandedVideoList"),N("appSettings.booleans.showChannelTitle")),Ke=N("appSettings.booleans.showChannelCategories"),Xe=N("appSettings.numbers.mainItemType"),Qe=N("appSettings.numbers.containerMargins"),Je=e=>{const t=e.appSettings.booleans.showVideoQuality;return"boolean"!=typeof t?s.default.showVideoQuality.getDefaultValue():t},et=e=>{const t=e.appSettings.booleans.showVideoPlaybackSpeed;return"boolean"!=typeof t?s.default.showVideoPlaybackSpeed.getDefaultValue():t},tt=(0,i.P1)(Xe,(e=>e===f.H.CHANNEL_COVER)),nt=(0,i.P1)(M,(e=>e===g.e.ROUND)),rt=(0,i.P1)(B,(e=>e===v.y.IN_FRAME)),ot=(0,i.P1)(F,(e=>e===y.A.ICON)),it=(0,i.P1)(F,(e=>e===y.A.ICON_WITH_TEXT)),st=(0,i.P1)(D,(e=>e===b.p5.ALWAYS)),at=(0,i.P1)(D,(e=>e===b.p5.NEVER)),lt=(0,i.P1)(k,(e=>e===E.i.BELOW_VIDEOS)),ct=(0,i.P1)(D,(e=>e===b.p5.ON_MOUSE_OVER));(0,i.P1)(V,(e=>e===S.t.ALWAYS)),(0,i.P1)(V,(e=>e===S.t.ON_MOUSE_OVER))},24972:(e,t,n)=>{"use strict";n.d(t,{C$:()=>d,hQ:()=>u});var r=n(17607),o=n.n(r),i=n(97698),s=n(87077),a=n(3729),l=n(75608);const c=(0,i.P1)(s.js,(e=>o().get(e,"statsInfo.categories",[]))),u=(0,i.P1)(c,(e=>o().map(e,(e=>{let{value:t}=e;return{value:t,label:t}})))),d=(0,i.P1)(a.C$,s.js,((e,t)=>e&&!(0,l.$_)(t)))},27069:(e,t,n)=>{"use strict";n.d(t,{ZS:()=>c});var r=n(17607),o=n.n(r),i=n(97698),s=n(13060);const a=e=>o().get(e,"allowDownload",!1),l=(0,i.P1)(s.JA,o().nthArg(1),((e,t)=>t?a(e[t]):(e=>o().some(e,a))(e))),c=function(e,t){return void 0===t&&(t=null),l(e,t)}},66550:(e,t,n)=>{"use strict";n.d(t,{tq:()=>s,ND:()=>a});const r="mobile",o="tablet",i=e=>(e=>e.hydratedData.data)(e).deviceType,s=e=>i(e)===r,a=e=>s(e)||(e=>i(e)===o)(e)},69514:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(840);const o=(0,n(97698).P1)([e=>e.videoUrlsCache,(e,t)=>t.videoItem],((e,t)=>{if(!t)return null;const n=e[t.id];return n&&n.status===r.Z.RESOLVED?n.urls:null}))},5476:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r=n(97698),o=n(14190),i=n(13060);const s=(0,r.P1)([o.hg,i.$u],((e,t)=>t[e]))},77625:(e,t,n)=>{"use strict";n.d(t,{Bp:()=>S,EW:()=>E,FE:()=>y,IZ:()=>b,ZH:()=>C,kH:()=>w});var r=n(17607),o=n.n(r),i=n(97698),s=n(14190),a=n(93881),l=n(5476),c=n(14604),u=n(3729),d=n(24972),p=n(82629),h=n(53458),m=n(62568),f=n(62223),g=n(36229),v=n(66550);const y=(0,i.P1)(u.R0,u.UW,u.jb,u.Sd,a.P,a.x,d.C$,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o().some(t)})),b=(0,i.P1)(l.g,v.ND,((e,t)=>!(!e||e.videoSource===h.qk.FACEBOOK&&t||e.videoSource===h.qk.VIMEO&&t))),E=(0,i.P1)(p.l$,(e=>e===m.Z.ALL_CARDS)),S=(0,i.P1)(E,c.BW,c.ah,((e,t,n)=>e||t||n)),C=(0,i.P1)(g.DQ,g.DI,s.sq,g.W$,((e,t,n,r)=>{if(n){const e=o().findIndex(t,(e=>{let{id:t}=e;return t===n})),r=t[e];t.splice(e,1),t.unshift(r)}return o().slice(t,0,(e+1)*r)})),w=e=>f.tn+e*(f.pV+f.KG)+f.pV/2},79709:(e,t,n)=>{"use strict";n.d(t,{MT:()=>m,Yn:()=>c,al:()=>d,z:()=>h});var r=n(17607),o=n.n(r),i=n(97698),s=n(87077),a=n(46735),l=n(13060);function c(e){return Boolean(o().get(e,"dgsInfo"))}const u=(0,i.P1)(s.js,o().property("dealInfo")),d=(0,i.P1)(u,(e=>(0,a.il)(e)||(0,a.AZ)(e))),p=(0,i.P1)(l.mJ,o().property("dealInfo")),h=(0,i.P1)(p,a.OQ),m=(0,i.P1)(p,a.Tv)},82629:(e,t,n)=>{"use strict";n.d(t,{R8:()=>r,Xm:()=>i,ZA:()=>a,l$:()=>l,so:()=>s,y3:()=>o});const r=e=>e.player.state.isInFullScreen,o=e=>e.player.ui.isVisible,i=e=>e.player.state.muted,s=e=>e.player.state.isVolumeChangedByUser,a=e=>e.player.state.autoPlayed,l=e=>e.player.state.overlayContent},17633:(e,t,n)=>{"use strict";n.d(t,{CP:()=>l,eY:()=>u,hU:()=>c});var r=n(97698),o=n(30592),i=n(39396),s=n(68348);const a=(0,r.P1)(i.tf,s.Z),l=(0,r.P1)(a,i.Qp,((e,t)=>Boolean(t&&e[o.iN]===t))),c=(0,r.P1)(a,l,((e,t)=>t?e[o.r3]:null)),u=(0,r.P1)(a,l,((e,t)=>t),((e,t,n)=>t?e[n]:null))},65435:(e,t,n)=>{"use strict";n.d(t,{n3:()=>a,rH:()=>l,tz:()=>s,uP:()=>i});var r=n(97698),o=n(23144);const i=e=>e.search.searchQuery,s=e=>e.search.searchQueryField,a=(0,r.P1)(s,i,((e,t)=>e===o.O.CATEGORY?t:"")),l=e=>e.search.isSearching},93881:(e,t,n)=>{"use strict";n.d(t,{P:()=>l,x:()=>a});var r=n(97698),o=n(87077),i=n(5452),s=n(53203);const a=(0,r.P1)(o.js,(e=>(0,s.g)({channel:e}))),l=(0,r.P1)(o.js,(e=>(0,i.NP)(e)&&!(0,i.wR)(e)))},72096:(e,t,n)=>{"use strict";n.d(t,{sI:()=>h,mk:()=>m,ON:()=>p});var r=n(97698),o=n(87077),i=n(6263),s=n(946),a=n(96918),l=n(22060),c=n(16323);const u=(e,t)=>{return!(n=e,n.type!==l.VIDEO_CARD_TYPES.VIDEO&&n.type!==l.VIDEO_CARD_TYPES.RECENT_VIDEO||t!==e.actionListId);var n},d=({videoCard:e,thumbnailSize:t,imageHost:n})=>({...e,thumbnailUrl:(0,c.N)({url:e.thumbnailUrl,width:t,height:t,params:{lg:1},imageHost:n})}),p=(0,r.P1)(s.C,o.js,((e,t)=>t),((e,t,n)=>n&&!(0,i.SH)(n)&&(0,a.yi)(t,n,e))),h=e=>e.videoCards,m=e=>{let{thumbnailSize:t,imageHost:n}=e;return(0,r.P1)(h,o.js,((e,r)=>(({videoCards:e,channelId:t,thumbnailSize:n,imageHost:r})=>e.map((e=>{const o={...e,url:u(e,t)?null:e.url};return d({videoCard:o,thumbnailSize:n,imageHost:r})})))({channelId:r.id,videoCards:e,thumbnailSize:t,imageHost:n})))}},75126:(e,t,n)=>{"use strict";n.d(t,{F:()=>c,p:()=>u});var r=n(17607),o=n.n(r),i=n(97698),s=n(17633),a=n(13060),l=n(82053);const c=(0,i.P1)([l.qf,l.bb,s.hU],((e,t,n)=>e?t:n)),u=(0,i.P1)([c,a.$u],((e,t)=>!o().isEmpty(t[e])))},14604:(e,t,n)=>{"use strict";n.d(t,{BW:()=>u,Bc:()=>l,C4:()=>i,D0:()=>c,GI:()=>p,ah:()=>d,i8:()=>o,mC:()=>a,rE:()=>s});var r=n(59332);const o=e=>e.player.playback===r.VIDEO_PLAYBACK_STATUSES.PLAYING,i=e=>e.player.playback===r.VIDEO_PLAYBACK_STATUSES.INITIAL,s=e=>e.player.playback===r.VIDEO_PLAYBACK_STATUSES.PAUSED,a=e=>e.player.playback===r.VIDEO_PLAYBACK_STATUSES.PLAY_REQUESTED,l=e=>e.player.playback===r.VIDEO_PLAYBACK_STATUSES.PAUSE_REQUESTED,c=e=>e.player.playback===r.VIDEO_PLAYBACK_STATUSES.ENDED,u=e=>o(e)||a(e),d=e=>s(e)||l(e),p=e=>e.player.playback===r.VIDEO_PLAYBACK_STATUSES.PLAY_ABORTED},50336:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});var r=n(97698),o=n(3729);const i=(0,r.P1)(o.DT,o.gS,o.zD,o.ZG,o.v3,o.XM,((e,t,n,r,o,i)=>n||r?t:i?e:t))},49288:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,k:()=>c});var r=n(17607),o=n.n(r),i=n(97698),s=n(32313);const a=e=>e.videoUrls;function l(e,t){return/mp4/i.test(t)?{url:e,type:s.MediaStreamType.MP4,name:/[0-9]+p/i.exec(t)[0]}:/mpd/i.test(t)?{url:e,type:s.MediaStreamType.DASH}:/m3u8/i.test(t)?{url:e,type:s.MediaStreamType.HLS}:/webm/i.test(t)?{url:e,type:s.MediaStreamType.WEBM}:null}const c=(0,i.P1)([a],(e=>e&&e.downloadUrl)),u=(0,i.P1)([a],(e=>o().map(e,l)))},65925:(e,t,n)=>{"use strict";n.d(t,{$W:()=>d,At:()=>s,ZJ:()=>c,bK:()=>u,g4:()=>l});var r=n(97698),o=n(71123),i=n(39396);const s=(0,r.P1)(i.ev,(e=>e.viewMode)),a=e=>(0,r.P1)(s,(t=>t===e)),l=a(o.n.PREVIEW),c=a(o.n.EDITOR),u=a(o.n.SITE),d=a(o.n.STANDALONE)},24038:(e,t,n)=>{"use strict";n.d(t,{T0:()=>h,nO:()=>u,rv:()=>d,zF:()=>c});var r=n(97698),o=n(87077),i=n(75608),s=n(3729),a=n(53203);const l=(0,r.P1)(o.js,(e=>(0,i.Px)(e))),c=(0,r.P1)(l,s.C$,((e,t)=>e&&t)),u=(0,r.P1)(l,s.To,((e,t)=>e&&t)),d=(0,r.P1)(c,u,((e,t)=>e||t)),p=(0,r.P1)(o.js,(e=>(0,a.g)({channel:e}))),h=(0,r.P1)(s.R0,s.LY,s.jb,s.UW,p,((e,t,n,r,o)=>e||t||n||r||o))},63193:(e,t,n)=>{"use strict";n.d(t,{tH:()=>g,Pw:()=>m,tg:()=>f});var r=n(17607),o=n.n(r);const i="login",s="signup";var a=n(71217),l=n(39396),c=n(46310);const u=(0,c.TU)("REQUEST_LOGIN"),d=(0,c.TU)("LOGOUT"),p={[s]:{requested:"user.signup.requested",succeeded:"user.signup.succeeded",cancelled:"user.signup.cancelled"},[i]:{requested:"user.logIn.requested",succeeded:"user.logIn.succeeded",cancelled:"user.logIn.cancelled"}},h=(0,c._N)("requestAuth",(e=>(t,n)=>{const r=e?i:s,c=n(),d=(0,l.Kd)(c),h=p[r];return t((0,a.e)(h.requested)),new Promise(((e,n)=>{t(u({language:d,mode:r},(n=>{(n=n.data||n).id&&(t((0,a.e)(h.succeeded,{previousEventName:h.requested})),e(n))}),(e=>{o().get(e,"wasCancelled")?t((0,a.e)(h.cancelled,{previousEventName:h.requested})):n(e)})))}))})),m=()=>h(!0),f=()=>h(!1),g=(0,c.DM)("logOutCurrentMember",(()=>e=>{e((0,a.e)("user.logOut.requested")),e(d())}))},19147:(e,t,n)=>{"use strict";n.d(t,{V0:()=>m,Z2:()=>h,d0:()=>f});var r=n(17607),o=n.n(r),i=n(94120),s=n(27711);const a=e=>{if(!e)return"none";let{trailerType:t}=e;switch(t=t||s.i.FIRST_20_SEC,t){case s.i.FIRST_20_SEC:return"preview";case s.i.TRAILER:return"trailer";case s.i.NONE:default:return"none"}};var l=n(90655);const c={[l.P.CLASSIC]:"classic",[l.P.STRIP]:"strip",[l.P.COMPACT]:"compact",[l.P.SLIDER_SMALL]:"small_slider",[l.P.SLIDER_BIG]:"big_slider",[l.P.GRID]:"grid"};var u=n(5952),d=n(84509);function p(e,t){return(0,i._S)(e,t)?"channelCover":"featuredVid"}function h(e,t){return(0,i.wg)(e,t)===i.zu.PLAY?"playVid":a(t)}function m(e,t,n,r,s){const l=o().get(e,"numbers.channelLayout"),u=(0,i.wg)(t,n);return{loading_time:d.Z.vars.appFullyRendered,viewMode:s,layout:o().get(c,l),buyTypeDisplayed:(0,i.vu)({settings:e,videoItem:n,channelData:t,showChannelCover:r}),trailerType:a(n),isTrailerBtn:u===i.zu.TRAILER_OR_PREVIEW,isSubscriptionBtn:(0,i.sH)({settings:e,videoItem:n,channelData:t,showChannelCover:r}),mainItem:p(e,r)}}function f(e){let{appSettings:t,channelData:n,videoItem:r}=e;const s=(0,i.vu)({settings:t,videoItem:r,channelData:n,showChannelCover:!1}),l=(0,i.wg)(n,r);return{buyType:s,channelID:o().get(n,"id","none"),trailerType:a(r),buyBtn:s===i.cL.BUY,trailerBtn:l===i.zu.TRAILER_OR_PREVIEW,playBtn:l===i.zu.PLAY,videoID:o().get(r,"id","none"),overQuoted:(0,u.P)(r)}}},40385:(e,t,n)=>{"use strict";n.d(t,{Q:()=>p,s:()=>d});var r=n(53458),o=n(6263),i=n(6026),s=n(5952),a=n(4600),l=n(71217),c=n(82629);const u=e=>{if((0,o.mY)(e))switch(e.itemType){case r.qG.ItemScheduled:return i.s.SCHEDULED;case r.qG.ItemLive:return i.s.LIVE}return e.videoSource},d=e=>{let{videoItem:t,channelData:n,buttonName:r="play_video"}=e;return e=>{const{id:o,durationSec:i}=t,c=u(t);e((0,l.k)("widget.vid.clicked",{duration:(0,a.Q)(i),channelID:n.id,videoType:c,videoID:o,overQuoted:(0,s.P)(t),buttonName:r}))}},p=e=>{let{channelData:t,videoItem:n,button:r}=e;return(e,o)=>{const i=(0,c.ZA)(o()),{id:s,durationSec:d}=n,p=u(n);e((0,l.k)("widget.vid.start.play",{duration:(0,a.Q)(d),channelID:t.id,videoType:p,videoID:s,isAutoplay:i,button:r}))}}},10396:(e,t,n)=>{"use strict";n.d(t,{G:()=>l,n:()=>u});var r=n(17607),o=n.n(r),i=n(96918),s=n(46735),a=n(1831);const l={[i.FE.BUY]:"widget.overlay-buttons.buy",[i.FE.RENT]:"widget.overlay-buttons.rent",[i.FE.BUY_OR_RENT]:"widget.overlay-buttons.buy-from",[i.FE.PRICING_PLAN]:"widget.mobile.overlay-button.subscribe.short"},c={...{[i.FE.SUBSCRIBE]:"widget.channel-actions.subscribe",[i.FE.BUY]:"widget.overlay-buttons.buy",[i.FE.RENT]:"widget.overlay-buttons.rent",[i.FE.BUY_OR_RENT]:"widget.overlay-buttons.buy-from",[i.FE.PRICING_PLAN]:"widget.mobile.overlay-button.subscribe.short"},[i.o8.YOU_BOUGHT_THIS]:"actions.purchased",[i.o8.YOU_RENTED_THIS]:"actions.rented"},u=(e,t,n)=>{let{channelData:r,videoItem:l,currentSiteUser:u}=e;return((e,t,n)=>{let{channelData:r,videoItem:l,currentSiteUser:c,translations:u}=e;const d=(0,i.fy)({channelData:r,videoItem:l,currentSiteUser:c}),p=u[d];if(!p)return null;let h,m;switch(d){case i.FE.PRICING_PLAN:return t(p);case i.FE.SUBSCRIBE:return h=(0,s.il)(r.dealInfo),(0,a.Z)(p,h);case i.FE.BUY:return h=(0,s.Tv)(l.dealInfo),(0,a.Z)(p,h);case i.FE.RENT:return h=(0,s.OQ)(l.dealInfo),(0,a.Z)(p,h);case i.FE.BUY_OR_RENT:return h=(0,s._E)(l.dealInfo),(0,a.Z)(p,h);case i.o8.YOU_RENTED_THIS:return m=o().get(l.dgsInfo,"rent"),t(p,{date:m.expirationTs?new Intl.DateTimeFormat(n,{month:"short",day:"numeric"}).format(new Date(1e3*m.expirationTs)):void 0});default:return t(p)}})({channelData:r,videoItem:l,currentSiteUser:u,translations:c},t,n)}},68348:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(81684);function o(e){if(!e)return{};const t=e.match(/(?:\?|$)([^#]*)/)[1];return(0,r.Q)(t)}},61613:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r={WIDGET:"widget"}},38239:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=async()=>{const{VODPlayer:e}=await Promise.all([n.e(604),n.e(397)]).then(n.bind(n,18559));return e}},98825:(e,t,n)=>{"use strict";n.d(t,{Mr:()=>l,Pw:()=>s,h7:()=>a,nB:()=>i});var r=n(88692),o=n(51445);const i=Symbol("dismissed");Symbol("cancelled");function s(e){if(!function(e){return e===i}(e))return Promise.reject(e)}function a(e){return new Promise((function(t,n){o.Z.publish(r.Z.MODAL.OPEN,{...e,resolve:t,reject:n})}))}function l(){o.Z.publish(r.Z.MODAL.CLOSE)}},70428:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a,y:()=>s});var r=n(59052),o=n(65925);let i;const s=e=>{i=e},a=e=>function(){if(i){const e=i.getState(),t=o.g4(e),n=o.ZJ(e);if(t||n)return void i.dispatch((0,r.CC)())}return e(...arguments)}},43753:(e,t,n)=>{"use strict";n.d(t,{QU:()=>h,QC:()=>p,X1:()=>a,yN:()=>u,P5:()=>d,L_:()=>m,fb:()=>l});var r=n(17607),o=n.n(r),i=n(15184);const s={CLOSED_BY_USER:"closed-by-user",SUCCEED:"succeed"};const a=(0,n(46310).TU)("OPEN_FULL_SCREEN_OVERLAY");function l(e,t,n){void 0===t&&(t=o().noop);const r=n?i.u.PLAN:i.u.SUBSCRIPTION;return a(`#/payment/${r}/${e}`,(e=>{e===s.CLOSED_BY_USER&&t()}))}function c(e,t,n){return a(e?`#/payment/${n}/${e}/${t}`:`#/payment/${n}/video/${t}`)}function u(e,t){return c(e,t,i.u.PURCHASE)}function d(e,t){return c(e,t,i.u.RENT)}function p(e,t){return c(e,t,i.u.MEMBER_ONLY)}function h(e){return a(`#/channel/${e}/info`)}function m(e,t){const n=`#/channel/${e}/share/`;return a(t?`${n}${t}`:n)}},84509:(e,t,n)=>{"use strict";n.d(t,{F:()=>d,Z:()=>p});var r=n(17607),o=n.n(r);const i=n.g.vodPerformance||{now:o().noop,addVar:o().noop,addTimestamp:o().noop,stamps:{},vars:{}},{addVar:s,addTimestamp:a,stamps:l,vars:c,now:u}=i,d=function(e,t){void 0===t&&(t="navigationStart"),l[e]||a(e,u()),c[e]||s(e,u()-l[t])},p=i},51445:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(17607),o=n.n(r);const i={},s={subscribe(e,t){i[e]||(i[e]=[]);const n=i[e].push(t)-1;return function(){i[e].splice(n,1)}},publish(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i[e]&&o().forEach(i[e],(function(e){e(...n)}))}}},94715:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a,_:()=>s});var r=n(39396),o=n(46310),i=n(76465);const s="refreshOnLoginEvents",a=(0,o.DM)("storeForReload",(e=>(t,n)=>{const o=n(),a=(0,r.sq)(o),l=(0,r.Qp)(o);t((0,i.M)(s,{uid:a,stored:e,rootCompId:l},!0))}))},25022:(e,t,n)=>{"use strict";n.d(t,{B9:()=>h,H8:()=>m,Nf:()=>a,O4:()=>g,_D:()=>s,pq:()=>f,xo:()=>p});var r=n(62223);const o=20,i=10,s=680,a=980,l=9/16,c=.78125;function u(e){return Math.floor(100*e)/100}function d(e){return e*l}function p(e,t){void 0===t&&(t=o);const n=e-2*t;return{width:u(n),height:u(d(n))}}function h(e){return p(e,0)}function m(e){return void 0===e&&(e=r.xP),{width:e,height:u(e*c)}}function f(e,t){const n=e/t;return{width:u(n),height:u(d(n))}}function g(e,t){const n=(e-2*o-(t-1)*i)/t;return{width:u(n),height:u(d(n))}}},8304:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,I:()=>l});var r=n(17607),o=n(63402),i=n(71123);let s;function a(e){if(e){const t=(0,o.T)(e)||{addEventListener:r.noop,removeEventListener:r.noop,Events:{},Utils:{},PubSub:{subscribe:r.noop,unsubscribe:r.noop},Performance:{applicationLoadingStep:r.noop,applicationLoaded:r.noop}};s={...t,Utils:{...t.Utils,getViewMode(){const t=e.Utils.getViewMode();return t===i.n.STANDALONE?i.n.SITE:t}}}}}const l=()=>s},71217:(e,t,n)=>{"use strict";n.d(t,{k:()=>c,e:()=>u});var r=n(46310),o=n(17607),i=n.n(o);const s="requested",a={status:{"fullscreenModal.load":!0},getEventName(e){let{eventName:t}=e;return t.split(".").slice(0,-1).join(".")},getTransactionType(e){let{eventName:t}=e;return i().last(t.split("."))},isTransaction(e){let{eventName:t,previousEventName:n}=e;return a.getTransactionType({eventName:t})===s||n},hasActive:e=>Boolean(a.status[e]),start(e){a.status[e]=!0},complete:e=>delete a.status[e],getTransactionResult(e){const t=a.getEventName(e);return a.getTransactionType(e)===s?(a.hasActive(t)||a.start(t),!0):!!a.hasActive(t)&&a.complete(t)}},l=a,c=(0,r.TU)("LOG_BI"),u=(0,r.DM)("bi.logWidgetSystem",(function(e,t){let{previousEventName:n}=void 0===t?{}:t;return t=>{if(l.isTransaction({eventName:e,previousEventName:n})){if(!l.getTransactionResult({eventName:e}))return}t(c("widget-system",{eventName:e}))}}))},76465:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});const r=(0,n(46310).TU)("pubSubPublish")},46310:(e,t,n)=>{"use strict";n.d(t,{DM:()=>d,HA:()=>a,TU:()=>c,_N:()=>p,fs:()=>l,gh:()=>m});const r="@WORKER_ACTION",o="____worker-fn-proxy-id",i="FUNCTION_CALL_EVENT";(()=>{const e=(()=>{let e=0;return()=>++e})()})();function s(e,t,n){if(!h(e)&&!function(e){return"object"==typeof e&&e.type.startsWith("@PROXY/")}(e))return e;let{resolve:r,reject:o,args:i,...s}=e;return i=i.map((e=>t(e)?n(e):e)),s.isAsync&&(r=n(r),o=n(o)),{...s,resolve:r,reject:o,args:i}}function a(e,t){const n=e.events||[];n.forEach((e=>t(e))),e.consumeEvents(n.map((e=>e.id)))}function l(){const e=new Map,t=(()=>{let e=0;return()=>++e})();function n(n){const r=t();return e.set(r,n),{[o]:r}}return{serializeAction:function(e){return s(e,(e=>"function"==typeof e),n)},callFunction:function(t){if(t.name!==i)return;const{functionId:n,args:r}=t.data,o=e.get(n);o?(e.delete(n),o(...r)):console.error("calling callback function multiple times")},proxyfyFn:n}}function c(e){const t=`${r}/${e}`,n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return{type:t,args:n}};return n.type=t,n}const u=(e,t)=>t,d=u,p=(e,t)=>u(e,t,{isAsync:!0});function h(e){return e.type.startsWith(r)}const m=e=>()=>t=>n=>{if(!h(n))return t(n);e(n)}},37800:(e,t,n)=>{"use strict";n.d(t,{_:()=>me});var r=n(26290),o=n.n(r),i=n(27762),s=n.n(i),a=n(17607),l=n.n(a),c=n(44714),u=n(70809),d=n(89644),p=n.n(d),h=n(70353),m=n.n(h);const f="www.wix.com",g="http";var v=n(34406);function y(){return"undefined"!=typeof window}function b(){var e;return void 0!==v&&null!=(null===(e=null==v?void 0:v.versions)||void 0===e?void 0:e.node)}var E=n(6856),S=n(34406);function C(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return/(^https?:)|(^\/\/)/.test(e)}async function w(e){try{await e()}catch(e){}}function P(e,t){return t.split(".").filter((e=>e)).reduce(((e,t)=>e[t]),e)}function I(e){try{return new URL(e).protocol}catch(t){return T(e).protocol}}function O(e){let t;try{t=new URL(e)}catch(n){t=new URL(`http:${e}`)}try{return t.host}catch(t){return T(e).host}}function T(e){const t=new RegExp("^(.*:)//([A-Za-z0-9-.]+)(:[0-9]+)?(.*)$");try{const n=t.exec(e);return{protocol:n[1],host:n[2]}}catch(e){return{protocol:"http:",host:""}}}function N(e,t){let n;try{n=new URL(e),n.host=t,n.protocol="http"}catch(r){n=new URL(`http://${t}`),n.pathname=e}return n.toString()}function A(){let e;if(b()&&S.env.HTTP_CLIENT_GLOBAL_CONFIG)try{e=JSON.parse(S.env.HTTP_CLIENT_GLOBAL_CONFIG)}catch(e){}var t;return e||(y()?e=window._httpClientGlobalConfig:"object"==typeof self&&(null===(t=null===self||void 0===self?void 0:self.constructor)||void 0===t||t.name)),e||{httpMockServer:{enabled:!1}}}const x=JSON.parse('["wix.com","editorx.com","wix-code.com","wixapps.net","wixprod.net"]');function _(e){var t;return(null===(t=null==e?void 0:e.headers)||void 0===t?void 0:t["x-wix-request-id"])||""}function L(e){if(!C(e))return!0;const t=`.${O(e)}`;return!!x.find((e=>t.endsWith(`.${e}`)))}const R=["code","config","request","response","toJSON","__CANCEL__"];class k extends Error{constructor(e){super(e.message),this.isWixHttpError=!0,Object.setPrototypeOf(this,k.prototype),R.forEach((t=>{this[t]=e[t]}))}get requestId(){return _(this.response)}}const D=({requestOptions:e,urlObject:t,headers:n,globalConfig:r={httpMockServer:{enabled:!1}}})=>{const{url:o,params:i}=e;if(i&&"object"!=typeof i)throw new Error("Search params must be an object");const s=function(e,t){if(t.httpMockServer.enabled){return{url:N(e,new URL(t.httpMockServer.mockServerUrl).host)}}return{}}(o,r);return Object.assign(Object.assign(Object.assign({},e),s),{headers:n})},V=(e,t,n={httpMockServer:{enabled:!1}},r)=>{const{url:o,disableWixHeaders:i,headers:s,includeWixHeaders:a}=e,l=(({url:e,disableWixHeaders:t,includeWixHeaders:n,wixHeadersOpts:r})=>n||!t&&L(e)?(0,E.I)(r):{})({url:o,disableWixHeaders:i,includeWixHeaders:a,wixHeadersOpts:t}),c=M(n,e,r);return Object.assign(Object.assign(Object.assign({},l),function(e){e=e||{};return Object.keys(e).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n.toLowerCase()]:e[n]})),{})}(s)),c)},M=(e,t,n)=>{const{url:r,params:o}=t,{host:i,protocol:s}=n;return e.httpMockServer.enabled?{"x-wix-metro-original-url":B(r,o),"x-wix-metro-original-host":C(r)?O(r):i,"x-wix-metro-original-protocol":C(r)?I(r):s}:{}};function B(e,t){const{pathname:n,searchParams:r}=new URL(e,"http://unused.com");if(t=t||r){const e=function(e){return Object.entries(e).map((([e,t])=>`${e}=${encodeURIComponent(t)}`)).flat().join("&")}(t)||t.toString();return`${n}${e?`?${e}`:""}`}return n}class F{constructor(e={}){this.opts=e,this.opts=function(e){let t=e.adapter;t||(t=m(),b()&&(t=function(){return require("axios/lib/adapters/http");return n(70353)}()));return Object.assign({adapter:t,isSSR:!1},e)}(this.opts),this.client=p().create(this.opts),this.flags={sanitizerPocEnabled:U()}}static isHttpError(e){return!!(null==e?void 0:e.isWixHttpError)}async request(e,t){var n,r;const o=(i=this.opts).baseURL?O(i.baseURL):i.isSSR?f:"undefined"!=typeof self&&self.location?self.location.host:"";var i;const s=function(e){return e.baseURL?I(e.baseURL):e.isSSR?g:"undefined"!=typeof self&&self.location?self.location.protocol:""}(this.opts),a={protocol:s,host:o},l="function"==typeof e?e({isSSR:this.opts.isSSR,host:o}):e,c=(null==t?void 0:t.signedInstance)||await(null===(r=(n=this.opts).getAppToken)||void 0===r?void 0:r.call(n))||"",u=this.getHeaders(l,c,a),d=D({requestOptions:l,urlObject:a,headers:u,globalConfig:A()});this.opts.isSSR&&(d.baseURL=this.opts.baseURL?this.opts.baseURL:`${g}://${f}`);try{const e=await this.client.request(d).catch((e=>this.maybeFallbackRequest(e,l,a,c)));return this.transformResponse(e,l)}catch(e){this.handleRequestError(e,d,t)}}async get(e,t){const n=Object.assign(Object.assign({},t),{url:e,method:"GET"});return this.request(n)}async delete(e,t){const n=Object.assign(Object.assign({},t),{url:e,method:"DELETE"});return this.request(n)}async head(e,t){const n=Object.assign(Object.assign({},t),{url:e,method:"HEAD"});return this.request(n)}async options(e,t){const n=Object.assign(Object.assign({},t),{url:e,method:"OPTIONS"});return this.request(n)}async post(e,t,n){const r=Object.assign(Object.assign({},n),{url:e,data:t,method:"POST"});return this.request(r)}async put(e,t,n){const r=Object.assign(Object.assign({},n),{url:e,data:t,method:"PUT"});return this.request(r)}async patch(e,t,n){const r=Object.assign(Object.assign({},n),{url:e,data:t,method:"PATCH"});return this.request(r)}get CancelToken(){return p().CancelToken}get isCancel(){return p().isCancel}getHeaders(e,t,n){if("function"==typeof this.opts.createHeaders)return this.getCustomHeaders(e,t,n);const r={signedInstance:t,artifactId:this.opts.artifactId,csrf:!1,multilingualOptions:this.opts.multilingualOptions};return V(e,r,A(),n)}getCustomHeaders(e,t,n){const{url:r}=e,o=t&&L(r)?{authorization:t}:{},i=this.opts.createHeaders(),s=M(A(),e,n);return Object.assign(Object.assign(Object.assign({},s),i),o)}handleRequestError(e,t,n){const r=function(...e){return new k(...e)}(e);throw w((()=>{var e;return null===(e=t.onError)||void 0===e?void 0:e.call(t,r)})),w((()=>{var e;return null===(e=this.opts.errorHandler)||void 0===e?void 0:e.handleError(r,{errorCodesMapping:null==n?void 0:n.errorCodesMapping,showError:null==n?void 0:n.showError})})),r}maybeFallbackRequest(e,t,n,r){var o,i,s;if(A().httpMockServer.enabled&&A().httpMockServer.allowUnmocked&&404===(null===(o=e.response)||void 0===o?void 0:o.status)&&"NO_SCENARIO_FOUND"===(null===(s=null===(i=e.response)||void 0===i?void 0:i.data)||void 0===s?void 0:s.msg)){const e=this.getHeaders(t,r,n),o=D({requestOptions:t,urlObject:n,headers:e});return this.client.request(o)}throw e}transformResponse(e,t){const n=_(e),r=function(e,t,n){let r=function(e,t){try{if(t.sanitizerPocEnabled){const t=performance.now(),n=new Sanitizer;if(e.headers["content-type"].includes("application/json")){console.log("[+] JSON Response detected, sanitizing data");const r=function(e){try{return Object.keys(e).forEach((t=>{"string"==typeof e[t]?e[t]=n.sanitizeFor("span",e[t]).innerHTML:"object"==typeof e[t]&&(e[t]=r(e[t]))})),e}catch(e){console.log(e)}},o=performance.now();return console.log(`Time taken: ${o-t} milliseconds.`),r(e.data)}}}catch(e){console.log("[+] Sanitizer API not supported: %o",e)}return e.data}(e,n);t._pickResponseBody&&(r=P(e.data,t._pickResponseBody));if(t._logs){const n=P(e.data,t._logs);(null==n?void 0:n.length)&&n.map((e=>console.log(...e)))}return r}(e,t,this.flags);return Object.assign(Object.assign({},e),{data:r,requestId:n})}}function U(){var e;try{return y()&&"true"===new URLSearchParams((null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.hash)||"").get("sanitizerPOC")}catch(e){return!1}}F.CancelToken=p().CancelToken,F.isCancel=p().isCancel;var j=function(e){var t=e.isSSR,n=void 0!==t&&t,r=e.getAppToken;return new F({isSSR:n,getAppToken:r})},H=n(90159),Z=n(25977),W=function(){return W=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},W.apply(this,arguments)},z=function(e){return function(t){var n=(0,Z.a)();return s().createElement(e,W({},W(W({},t),{wixSDK:n})))}},q=n(46310),G=n(21491),$=n(28074),Y=n(99784);const K=e=>(0,Y.bw)((()=>e));var X=n(39396),Q=n(71217);const J=e=>()=>"true"===te()[e],ee=new class{constructor(){this.experiments={}}get(){return this.experiments}set(e){this.experiments=e}enabled(e){return"true"===this.experiments[e]}},te=()=>ee.get();J("specs.vod.videoHoursDeprecation"),J("specs.vod.storageQuota"),J("specs.vod.storageQuotaAnnouncement");var ne=n(44910),re=n(53842),oe=n(52834);const ie={[oe.g.Boolean]:"booleans",[oe.g.Font]:"fonts",[oe.g.Color]:"colors",[oe.g.Number]:"numbers"};var se=n(3333),ae=n(8304),le=n(18030),ce=n(60901),ue=n(4306),de=n(77580),pe=n(85505);const he=e=>class extends s().Component{constructor(){super(...arguments),o()(this,"state",{error:!1})}componentDidCatch(e,t){this.props.captureException(e,{extra:{reactInfo:t}}),this.setState({error:!0})}render(){return this.state.error?null:s().createElement(e,this.props)}};function me(e){let{createStore:t,Component:n}=e;class r extends s().Component{constructor(e){super(e),o()(this,"logWidgetLoaded",(()=>{this.store.dispatch((0,Q.k)("widget.loaded",{channelID:"00000000-0000-0000-0000-000000000000"}))}));const{configData:{instance:n,v3ToV2MappingBaseUrl:r},experiments:i,wixSDK:{Wix:s},isSSR:a,t:c,handlers:d,controllerState:p}=e,h=j({isSSR:a,getAppToken:()=>this.props.configData.instance});(0,ce.Q)(c),(0,ae.E)(s),ee.set(i),(0,pe.A)(h,r),(0,se.X)(h,n,r);const m=this.functionsProxy=(0,q.fs)();this.resolve=l().noop,a&&(this.promise=new Promise((e=>{this.resolve=e})));const f=t=>e.dispatchEv(m.serializeAction(t)),g=[(0,q.gh)(a?async e=>(await this.promise,f(e)):f)],{configData:v,appState:y,styleParams:b}=this.props;this.history=(0,u.PP)({initialEntries:[v.url]}),this.store=t({middlewares:g,initialState:y,history:this.history,handlers:d}),p&&this.store.dispatch((0,ue.g)(p)),a?this.promise.then(this.logWidgetLoaded):this.logWidgetLoaded(),this.updateInstance(),this.store.dispatch((0,$.bv)(b))}updateInstance(){K(this.props.configData.instance)}componentDidUpdate(e){const{controllerState:t,styleParams:n}=this.props;"backend"===e.renderingEnv&&"browser"===this.props.renderingEnv&&this.resolve(),l().isEqual(e.configData,this.props.configData)||(this.updateInstance(),this.store.dispatch((0,X.cX)({instance:this.props.configData.instance}))),e.controllerState!==t&&this.store.dispatch((0,ue.g)(t)),e.styleParams!==n&&this.store.dispatch((0,$.IA)(n))}UNSAFE_componentWillReceiveProps(e){(0,q.HA)(e,(e=>{this.functionsProxy.callFunction(e)}))}render(){const{store:e}=this,{controllerState:t,handlers:r}=this.props;return s().createElement(c.zt,{store:e},s().createElement(G.TX,{value:this.props},s().createElement(de.M.Provider,{value:{handlers:r,controllerState:t}},s().createElement(le.F,null,s().createElement(n,null)))))}}return he(function(e){return t=>{const n=(0,ne.y)(),r=(0,i.useMemo)((()=>{const e={booleans:{},numbers:{},fonts:{},colors:{}};for(const t of Object.values(re.T4)){if(!t.getDefaultValue)continue;const r=t.key;e[ie[t.type]][r]=n.get(t)}return e}),[n]);return s().createElement(e,{styleParams:r,...t})}}((0,H.Z)()(z(r))))}},63414:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>NO});var r=n(27762),o=n.n(r);const i=new Map,s=e=>{const t=(n=e,Object.keys(n).filter((e=>void 0!==n[e])).sort().map((e=>`${e}=${n[e]}`)).join("&"));var n;if(i.has(t))return i.get(t);const r=(({language:e,country:t,...n})=>{if(void 0===Intl?.NumberFormat)throw new Error("Intl.NumberFormat is not available.");const r=(e=>e.split("-")[0])(e),o=t?`${r}-${t}`:e;return Intl.NumberFormat(o,{style:"currency",...n})})(e);return i.set(t,r),r};s.cache=i;const a={AC:"%N%n%O%n%A%n%C%n%Z",AD:"%N%n%O%n%A%n%Z %C",AE:"%N%n%O%n%A%n%S",AF:"%N%n%O%n%A%n%C%n%Z",AI:"%N%n%O%n%A%n%C%n%Z",AL:"%N%n%O%n%A%n%Z%n%C",AM:"%N%n%O%n%A%n%Z%n%C%n%S",AR:"%N%n%O%n%A%n%Z %C%n%S",AS:"%N%n%O%n%A%n%C %S %Z",AT:"%O%n%N%n%A%n%Z %C",AU:"%O%n%N%n%A%n%C %S %Z",AX:"%O%n%N%n%A%n%Z %C%n\xc5LAND",AZ:"%N%n%O%n%A%nAZ %Z %C",BA:"%N%n%O%n%A%n%Z %C",BB:"%N%n%O%n%A%n%C, %S %Z",BD:"%N%n%O%n%A%n%C - %Z",BE:"%O%n%N%n%A%n%Z %C",BF:"%N%n%O%n%A%n%C %X",BG:"%N%n%O%n%A%n%Z %C",BH:"%N%n%O%n%A%n%C %Z",BL:"%O%n%N%n%A%n%Z %C %X",BM:"%N%n%O%n%A%n%C %Z",BN:"%N%n%O%n%A%n%C %Z",BR:"%O%n%N%n%A%n%D%n%C-%S%n%Z",BS:"%N%n%O%n%A%n%C, %S",BT:"%N%n%O%n%A%n%C %Z",BY:"%O%n%N%n%A%n%Z, %C%n%S",CA:"%N%n%O%n%A%n%C %S %Z",CC:"%O%n%N%n%A%n%C %S %Z",CH:"%O%n%N%n%A%n%Z %C",CI:"%N%n%O%n%X %A %C %X",CL:"%N%n%O%n%A%n%Z %C%n%S",CN:"%Z%n%S%C%D%n%A%n%O%n%N",CO:"%N%n%O%n%A%n%D%n%C, %S, %Z",CR:"%N%n%O%n%A%n%S, %C%n%Z",CU:"%N%n%O%n%A%n%C %S%n%Z",CV:"%N%n%O%n%A%n%Z %C%n%S",CX:"%O%n%N%n%A%n%C %S %Z",CY:"%N%n%O%n%A%n%Z %C",CZ:"%N%n%O%n%A%n%Z %C",DE:"%N%n%O%n%A%n%Z %C",DK:"%N%n%O%n%A%n%Z %C",DO:"%N%n%O%n%A%n%Z %C",DZ:"%N%n%O%n%A%n%Z %C",EC:"%N%n%O%n%A%n%Z%n%C",EE:"%N%n%O%n%A%n%Z %C %S",EG:"%N%n%O%n%A%n%C%n%S%n%Z",EH:"%N%n%O%n%A%n%Z %C",ES:"%N%n%O%n%A%n%Z %C %S",ET:"%N%n%O%n%A%n%Z %C",FI:"%O%n%N%n%A%n%Z %",FK:"%N%n%O%n%A%n%C%n%Z",FM:"%N%n%O%n%A%n%C %S %Z",FO:"%N%n%O%n%A%nFO%Z %C",FR:"%O%n%N%n%A%n%Z %C",GB:"%N%n%O%n%A%n%C%n%Z",GE:"%N%n%O%n%A%n%Z %C",GF:"%O%n%N%n%A%n%Z %C %X",GG:"%N%n%O%n%A%n%C%nGUERNSEY%n%Z",GI:"%N%n%O%n%A%nGIBRALTAR%n%Z",GL:"%N%n%O%n%A%n%Z %C",GN:"%N%n%O%n%Z %A %C",GP:"%O%n%N%n%A%n%Z %C %X",GR:"%N%n%O%n%A%n%Z %C",GS:"%N%n%O%n%A%n%n%C%n%Z",GT:"%N%n%O%n%A%n%Z- %C",GU:"%N%n%O%n%A%n%C %Z",GW:"%N%n%O%n%A%n%Z %C",HK:"%S%n%C%n%A%n%O%n%N",HM:"%O%n%N%n%A%n%C %S %Z",HN:"%N%n%O%n%A%n%C, %S%n%Z",HR:"%N%n%O%n%A%n%Z %C",HT:"%N%n%O%n%A%nHT%Z %C",HU:"%N%n%O%n%C%n%A%n%Z",ID:"%N%n%O%n%A%n%C%n%S %Z",IE:"%N%n%O%n%A%n%D%n%C%n%S%n%Z",IL:"%N%n%O%n%A%n%C %Z",IM:"%N%n%O%n%A%n%C%n%Z",IN:"%N%n%O%n%A%n%C %Z%n%S",IO:"%N%n%O%n%A%n%C%n%Z",IQ:"%O%n%N%n%A%n%C, %S%n%Z",IR:"%O%n%N%n%S%n%C, %D%n%A%n%Z",IS:"%N%n%O%n%A%n%Z %C",IT:"%N%n%O%n%A%n%Z %C %S",JE:"%N%n%O%n%A%n%C%nJERSEY%n%Z",JM:"%N%n%O%n%A%n%C%n%S %X",JO:"%N%n%O%n%A%n%C %Z",JP:"\u3012%Z%n%S%n%A%n%C%n%O%n%N%",KE:"%N%n%O%n%A%n%C%n%Z",KG:"%N%n%O%n%A%n%Z %C",KH:"%N%n%O%n%A%n%C %Z",KI:"%N%n%O%n%A%n%S%n%C",KN:"%N%n%O%n%A%n%C, %S",KP:"%Z%n%S%n%C%n%A%n%O%n%N",KR:"%S %C%D%n%A%n%O%n%N%n%Z",KW:"%N%n%O%n%A%n%Z %C",KY:"%N%n%O%n%A%n%S %Z",KZ:"%Z%n%S%n%C%n%A%n%O%n%N",LA:"%N%n%O%n%A%n%Z %C",LB:"%N%n%O%n%A%n%C %Z",LI:"%O%n%N%n%A%n%Z %C",LK:"%N%n%O%n%A%n%C%n%Z",LR:"%N%n%O%n%A%n%Z %C",LS:"%N%n%O%n%A%n%C %Z",LT:"%O%n%N%n%A%n%Z %C",LU:"%O%n%N%n%A%n%Z %C",LV:"%N%n%O%n%A%n%S%n%C, %Z",MA:"%N%n%O%n%A%n%Z %C",MC:"%N%n%O%n%A%n%Z %C %X",MD:"%N%n%O%n%A%n%Z %C",ME:"%N%n%O%n%A%n%Z %C",MF:"%O%n%N%n%A%n%Z %C %X",MG:"%N%n%O%n%A%n%Z %C",MH:"%N%n%O%n%A%n%C %S %Z",MK:"%N%n%O%n%A%n%Z %C",MM:"%N%n%O%n%A%n%C, %Z",MN:"%N%n%O%n%A%n%C%n%S %Z",MO:"%A%n%O%n%N",MP:"%N%n%O%n%A%n%C %S %Z",MQ:"%O%n%N%n%A%n%Z %C %X",MT:"%N%n%O%n%A%n%C %Z",MU:"%N%n%O%n%A%n%Z%n%C",MV:"%N%n%O%n%A%n%C %Z",MW:"%N%n%O%n%A%n%C %X",MX:"%N%n%O%n%A%n%D%n%Z %C, %S",MY:"%N%n%O%n%A%n%D%n%Z %C%n%S",MZ:"%N%n%O%n%A%n%Z %C%S",NA:"%N%n%O%n%A%n%C%n%Z",NC:"%O%n%N%n%A%n%Z %C %X",NE:"%N%n%O%n%A%n%Z %C",NF:"%O%n%N%n%A%n%C %S %Z",NG:"%N%n%O%n%A%n%D%n%C %Z%n%S",NI:"%N%n%O%n%A%n%Z%n%C, %S",NL:"%O%n%N%n%A%n%Z %C",NO:"%N%n%O%n%A%n%Z %C",NP:"%N%n%O%n%A%n%C %Z",NR:"%N%n%O%n%A%n%S",NZ:"%N%n%O%n%A%n%D%n%C %Z",OM:"%N%n%O%n%A%n%Z%n%C",PA:"%N%n%O%n%A%n%C%n%S",PE:"%N%n%O%n%A%n%C %Z%n%S",PF:"%N%n%O%n%A%n%Z %C %S",PG:"%N%n%O%n%A%n%C %Z %S",PH:"%N%n%O%n%A%n%D, %C%n%Z %S",PK:"%N%n%O%n%A%n%D%n%C-%Z",PL:"%N%n%O%n%A%n%Z %C",PM:"%O%n%N%n%A%n%Z %C %X",PN:"%N%n%O%n%A%n%C%n%Z",PR:"%N%n%O%n%A%n%C PR %Z",PT:"%N%n%O%n%A%n%Z %C",PW:"%N%n%O%n%A%n%C %S %Z",PY:"%N%n%O%n%A%n%Z %C",RE:"%O%n%N%n%A%n%Z %C %X",RO:"%N%n%O%n%A%n%Z %S %C",RS:"%N%n%O%n%A%n%Z %C",RU:"%N%n%O%n%A%n%C%n%S%n%Z",SA:"%N%n%O%n%A%n%C %Z",SC:"%N%n%O%n%A%n%C%n%S",SD:"%N%n%O%n%A%n%C%n%Z",SE:"%O%n%N%n%A%n%Z %C",SG:"%N%n%O%n%A%nSINGAPORE %Z",SH:"%N%n%O%n%A%n%C%n%Z",SI:"%N%n%O%n%A%n%Z %C",SJ:"%N%n%O%n%A%n%Z %C",SK:"%N%n%O%n%A%n%Z %C",SM:"%N%n%O%n%A%n%Z %C",SN:"%N%n%O%n%A%n%Z %C",SO:"%N%n%O%n%A%n%C, %S %Z",SR:"%N%n%O%n%A%n%C%n%S",SV:"%N%n%O%n%A%n%Z-%C%n%S",SZ:"%N%n%O%n%A%n%C%n%Z",TA:"%N%n%O%n%A%n%C%n%Z",TC:"%N%n%O%n%A%n%C%n%Z",TH:"%N%n%O%n%A%n%D %C%n%S %Z",TJ:"%N%n%O%n%A%n%Z %C",TM:"%N%n%O%n%A%n%Z %C",TN:"%N%n%O%n%A%n%Z %C",TR:"%N%n%O%n%A%n%Z %C/%S",TV:"%N%n%O%n%A%n%C%n%S",TW:"%Z%n%S%C%n%A%n%O%n%N",TZ:"%N%n%O%n%A%n%Z %C",UA:"%N%n%O%n%A%n%C%n%S%n%Z",UM:"%N%n%O%n%A%n%C %S %Z",US:"%N%n%O%n%A%n%C, %S %Z",UY:"%N%n%O%n%A%n%Z %C %S",UZ:"%N%n%O%n%A%n%Z %C%n%S",VA:"%N%n%O%n%A%n%Z %C",VC:"%N%n%O%n%A%n%C %Z",VE:"%N%n%O%n%A%n%C %Z, %S",VG:"%N%n%O%n%A%n%C%n%Z",VI:"%N%n%O%n%A%n%C %S %Z",VN:"%N%n%O%n%A%n%C%n%S %Z",WF:"%O%n%N%n%A%n%Z %C %X",XK:"%N%n%O%n%A%n%Z %C",YT:"%O%n%N%n%A%n%Z %C %X",ZA:"%N%n%O%n%A%n%D%n%C%n%Z",ZM:"%N%n%O%n%A%n%Z %C"},l={"%N":"name","%O":"organization","%A":"addressLines","%D":"dependentLocality","%C":"locality","%S":"administrativeArea","%Z":"postalCode","%X":"sortingCode","%R":"postalCountry"},c=["AU","AT","BG","HR","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IT","LV","LT","LU","NL","NZ","NO","PL","PT","RO","SK","SI","ES","SE","CH","TR","IE","JP","BR"],u=(e,t)=>{const n=[],r=e.addressLine2??e.addressLine_2??void 0;if(e.streetAddress){const t=(({name:e,number:t,apt:n},r)=>{if(!e&&!t)return"";if(!e||!t)return e||t;const o=n?`${t}-${n}`:t;return c.includes(r)?`${e} ${o}`.trim():`${o} ${e}`.trim()})(e.streetAddress,e.country);n.push(t)}else e.addressLine&&n.push(e.addressLine);return r&&n.push(r),{name:t?.fullName,organization:t?.company,postalCountry:e.country,administrativeArea:e.subdivision,locality:e.city,country:e.countryFullname,postalCode:e.postalCode,addressLines:n}},d=e=>"%"===e[0]&&"%n"!==e,p=e=>l[e],h=(e,t)=>"addressLines"===t?void 0!==e.addressLines&&e.addressLines.length>0:void 0!==e[t]&&""!==e[t],m=({address:e,addressContactDetails:t},{appendCountry:n=!0}={})=>{const r=u(e,t),o=(e=>{const t=[];let n=0;for(;n<e.length;){if("%"===e[n])t.push(e.slice(n,n+2)),n+=1;else{let r=n;for(;"%"!==e[r]&&r<e.length;)r+=1;t.push(e.slice(n,r)),n=r-1}n+=1}return t})((e=>{const t=e?.toUpperCase();return t&&t in a?a[t]:"%N%n%O%n%A%n%C"})(e.country)),i=((e,t)=>{const n=[];let r=0;for(;r<t.length;){const o=t[r];if("%n"===o)n.push(o);else if(d(o)){const t=p(o);h(e,t)&&n.push(o)}else{const i=0===r||!d(t[r-1])||n.length>0&&d(n[n.length-1]),s=r===o.length-1||"%n"===o[r+1]||h(e,p(t[r+1]));i&&s&&n.push(o)}r+=1}for(;n.length>0&&"%n"===n[0];)n.shift();return n})(r,o);return((e,t,n)=>{const r=[];let o="";for(const n of t)if("%n"===n)o.length>0&&(r.push(o),o="");else if(d(n)){const t=p(n);if("postalCountry"===t)continue;if("addressLines"===t){e.addressLines&&e.addressLines.length>0&&(o+=e.addressLines[0],r.push(o),o="",2===e.addressLines.length&&r.push(e.addressLines[1]));continue}o+=e[t]}else o+=n;return o.length>0&&r.push(o),n.appendCountry&&e.country&&r.push(e.country),r})(r,i,{appendCountry:n})};var f=n(22970);var g,v,y=n(94001),b=n.n(y),E=n(93809),S=n.n(E),C=function(e){return e&&e.split("-")[0]},w=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},P=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}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,a])}}},I=function(){throw new Error("Translations has not been initialized yet")},O=function(){throw new Error("You are using t function, but have disabled translations.")},T=function(e){var t=e.language,r=e.defaultTranslations,o=e.prefix,i=void 0===o?"messages":o,s=e.defaultLanguage,a=e.availableLanguages,l=e.localeDistPath,c=e.initI18n,u=e.basePath,d=this;this.t=I,this.all={},this.init=function(e){var t=void 0===e?{}:e,r=t.prepopulated,o=t.wait,i=void 0!==o&&o,s=t.useSuspense,a=void 0!==s&&s;return w(d,void 0,void 0,(function(){var e,t,o,s=this;return P(this,(function(l){switch(l.label){case 0:if(e=this.config,t=new Set(e.availableLanguages||[]),!this._initI18n)throw new Error("Can't initialize i18n without initI18n method.");return this.i18n=this._initI18n({locale:e.language,useSuspense:a,wait:i,messages:r,disableAutoInit:!0,asyncMessagesLoader:function(r){var o;return"en"===r?Promise.resolve(e.defaultTranslations):t.has(r)?fetch("".concat(null!==(o=s.basePath)&&void 0!==o?o:n.p).concat(s.localeDistPath,"/").concat(e.prefix,"_").concat(r,".json")).then((function(t){return t.ok?t.json():Promise.reject(new Error("Can't load locale: ".concat(e.language)))})):Promise.reject(new Error("Locale assets for ".concat(r," are not provided")))}}),[4,this.i18n.init()];case 1:if(l.sent(),!(o=this.i18n.getResourceBundle(e.language,"translation"))&&t.has(e.language))throw new Error("Unexpected missing translations for language ".concat(e.language));return this.all=o||e.defaultTranslations||{},this.t=function(e,t){return s.i18n.t(e,t)},[2,this]}}))}))},this.config={availableLanguages:a,language:C(t),defaultTranslations:r,prefix:i,defaultLanguage:s},this.localeDistPath=l,this._initI18n=c,this.i18n=null,this.basePath=u},N=function(e){var t=e.providers,n=e.children,r=e.additionalProps;return t.reduce((function(e,t){return t(e,r||{})}),n)},A=(0,r.createContext)({error:null,errorId:null,errorEnvironment:null}).Provider,x=function(){return new URLSearchParams(window.location.search).get("editorType")},_=function(e){var t,n,r,o,i,s,a,l,c,u,d,p,h,m,f;this.entry="Widget";var g,v=e.host,y=e.controllerOptions,b=e.predefined,E=e.query;this.isSSR=null!==(t=null==b?void 0:b.isSSR)&&void 0!==t?t:null==y?void 0:y.isSSR,this.isRTL=null!==(n=null==b?void 0:b.isRTL)&&void 0!==n?n:null==y?void 0:y.isRTL,this.language=null!==(r=null==b?void 0:b.language)&&void 0!==r?r:null==y?void 0:y.language,this.multilingual=null!==(o=null==b?void 0:b.multilingual)&&void 0!==o?o:null==y?void 0:y.multilingual,this.appDefinitionId=null!==(i=null==b?void 0:b.appDefinitionId)&&void 0!==i?i:null==y?void 0:y.appDefinitionId,this.widgetId=null!==(s=null==b?void 0:b.widgetId)&&void 0!==s?s:null==y?void 0:y.widgetId,this.isMobile=null!==(a=null==b?void 0:b.isMobile)&&void 0!==a?a:"Mobile"===(null==v?void 0:v.formFactor),this.isEditor=null!==(l=null==b?void 0:b.isEditor)&&void 0!==l?l:"Editor"===(null==v?void 0:v.viewMode),this.isPreview=null!==(c=null==b?void 0:b.isPreview)&&void 0!==c?c:"Preview"===(null==v?void 0:v.viewMode),this.isViewer=null!==(u=null==b?void 0:b.isViewer)&&void 0!==u?u:"Site"===(null==v?void 0:v.viewMode),this.isEditorX=null!==(d=null==b?void 0:b.isEditorX)&&void 0!==d?d:function(e){var t;return null!==(t=null==e?void 0:e.booleans.responsive)&&void 0!==t&&t}(null==v?void 0:v.style.styleParams),this.isADI=null!==(p=null==b?void 0:b.isADI)&&void 0!==p?p:(void 0===(g=E)&&(g={}),"onboarding"===g.dsOrigin),this.isClassicEditor=null!==(h=null==b?void 0:b.isClassicEditor)&&void 0!==h?h:function(e){return void 0===e&&(e={}),"Editor1.4"===e.dsOrigin}(E),this.isCssPerBreakpoint=null!==(m=null==b?void 0:b.isCssPerBreakpoint)&&void 0!==m?m:!!(null==v?void 0:v.usesCssPerBreakpoint),this.dimensions=null!==(f=null==b?void 0:b.dimensions)&&void 0!==f?f:{height:null==v?void 0:v.dimensions.height,width:null==v?void 0:v.dimensions.width}},L=n(64421),R=(0,r.createContext)(null),k=(R.Consumer,R.Provider),D=n(971),V=n(13980),M=n.n(V),B=o().createContext({ready:!1,set:null,get:null,getDefaultValue:null,reset:null,resetAll:null,publishEvent:null}),F=B.Consumer,U=function(e){function t(){var t=this.constructor,n=e.call(this,'\nSettingsProvider is not ready.\nUsually this case should be unreachable.  \nIn case you face it use "context.ready: boolean" flag not determine if it possible to set/get params. \n')||this;return Object.setPrototypeOf(n,t.prototype),n}return(0,f.__extends)(t,e),t}(Error);!function(e){e.Set="set",e.Reset="reset",e.ResetAll="resetAll",e.PublishEvent="publishEvent"}(g||(g={})),function(e){e.Setting="Settings",e.Styles="Styles"}(v||(v={}));var j,H=function(e){function t(t,n){var r=this.constructor,o=e.call(this,"\nCan't modify ".concat(n," values from current environment.\nPlease make sure you are not using `").concat(n,".").concat(t,"(...)` from the widget part.\n"))||this;return Object.setPrototypeOf(o,r.prototype),o}return(0,f.__extends)(t,e),t}(Error);!function(e){e.Number="Number",e.Boolean="Boolean",e.String="String",e.Text="Text",e.Object="Object"}(j||(j={}));var Z=function(){var e,t=this;this.handlers=((e={})[j.Object]={serialize:function(e){return"string"==typeof e?(console.error("\u26a0\ufe0f Seems like you are calling `settings.set(param, JSON.stringify(value))`. Please, pass a plain object/array and tpa-settings will serializate it."),e):JSON.stringify(e)},deserialize:function(e){return"string"!=typeof e?e:JSON.parse(e)}},e),this.serialize=function(e,n){return e.type===j.Object?t.handlers[j.Object].serialize(n):n},this.deserialize=function(e,n){return e.type===j.Object?t.handlers[j.Object].deserialize(n):n}},W=function(e){function t(){var t=this.constructor,n=e.call(this,"\nNo `Wix`, `editorSDK` or `publicData` was passed to TPASettingsProvider.\nIn order to work with tpa-settings, you have to pass either Wix SDK or Editor SDK for Settings panel mode or publicData for Widget mode.\n")||this;return Object.setPrototypeOf(n,t.prototype),n}return(0,f.__extends)(t,e),t}(Error),z=function(e,t){return e.localeCompare(t)},q=function(e,t){var n=t.isMobile,r=t.language,o=void 0===r?"en":r;return"function"==typeof e.dangerousKeyTransformationOverride?e.dangerousKeyTransformationOverride(e.key,{isMobile:n,language:o}):function(e,t,n){if("string"!=typeof e)throw new Error("`generateKey` expects key to be passed and be a string");if(!t)throw new Error("`generateKey` expects options to be passed");return Object.keys(n).sort(z).reduce((function(e,r){var o=n[r]===t[r],i=!t[r]&&!n[r];return o||i?e:e+"\u25b6\ufe0e"+("boolean"!=typeof t[r]||n[r]?r+":"+t[r]:r)}),e)}(e.key,{m:n,l:o},{m:!1,l:"en"})},G=function(e){return e.type===j.Text},$=function(e,t){return{languageAndMobile:q(e,{isMobile:t.isMobile,language:t.language}),language:q(e,{isMobile:!1,language:t.language}),mobile:q(e,{isMobile:t.isMobile}),original:e.key}},Y=function(e){return void 0===e.inheritDesktop||e.inheritDesktop},K=function(e){var t=e.environmentLabel;return function(e){throw new Error("It is not possible to translate ".concat(e,". Translate function was not passed to the ").concat(t))}},X=new Z;function Q(e,t,n){void 0===n&&(n={});var r,o=G(t),i=$(t,{isMobile:n.isMobile,language:o?n.language:void 0}),s=Y(t);return o?void 0!==e[i.languageAndMobile]?r=e[i.languageAndMobile]:s&&void 0!==e[i.language]&&(r=e[i.language]):void 0!==e[i.mobile]?r=e[i.mobile]:s&&void 0!==e[i.original]&&(r=e[i.original]),X.deserialize(t,r)}var J=!1;function ee(e,t,n,r){void 0===n&&(n={});var o=(0,f.__rest)(n,[]);void 0===r&&(r="COMPONENT");var i=e;e.COMPONENT||(J||(console.warn("`getSettingsValue` or `getSettingsValues` should accept whole public data object. Probably, data was passed only for one scope."),J=!0),i={COMPONENT:e,APP:{}});var s="COMPONENT"===r&&t.inheritFromAppScope,a=Q(i[r],t,o);return void 0===a&&s&&(a=Q(i.APP,t,o)),t.getDefaultValue&&void 0===a?te(i,r,t,o):a}function te(e,t,n,r){var o,i;void 0===r&&(r={});var s=null!==(o=r.t)&&void 0!==o?o:K({environmentLabel:null!==(i=r.environmentLabel)&&void 0!==i?i:"`getSettingsValue` function"});return n.getDefaultValue({isMobile:r.isMobile,isRTL:r.isRTL,isEditorX:r.isEditorX,t:s,presetId:r.presetId,experiments:r.experiments,getSettingParamValue:function(n,o){return void 0===o&&(o={}),ee(e,n,(0,f.__assign)((0,f.__assign)((0,f.__assign)({},r),o),{t:s}),t)}})}var ne=function(e){var t,n;return{APP:null!==(t=null==e?void 0:e.APP)&&void 0!==t?t:{},COMPONENT:null!==(n=null==e?void 0:e.COMPONENT)&&void 0!==n?n:{}}},re=function(e){function t(t){var n=e.call(this,t)||this;n.handleRevisionChanged=function(){return(0,f.__awaiter)(n,void 0,void 0,(function(){var e,t;return(0,f.__generator)(this,(function(n){switch(n.label){case 0:return e=this.props.SDKAdapter,this.isWidgetMode()?[3,2]:[4,e.getAllData()];case 1:t=n.sent(),this.setState({publicData:ne(t)}),n.label=2;case 2:return[2]}}))}))},n.getLanguageForParam=function(e){return G(e)?n.props.language:void 0},n.handleGetParam=function(e){var t=n.props.scope;if(!n.state.ready)throw new U;return ee(n.state.publicData,e,{t:n.props.t,experiments:n.props.experiments,isMobile:n.props.isMobile,isEditorX:n.props.isEditorX,isRTL:n.props.isRTL,language:n.props.language,presetId:n.state.publicData[t].presetId,environmentLabel:"<SettingsProvider />"},t)},n.handleGetDefaultValue=function(e){var t=n.props.scope;return te(n.state.publicData,t,e,{t:n.props.t,experiments:n.props.experiments,isMobile:n.props.isMobile,isEditorX:n.props.isEditorX,isRTL:n.props.isRTL,presetId:n.state.publicData[t].presetId,environmentLabel:"<SettingsProvider />"})},n.handleSetParam=function(e,t){var r,o,i=n.props.scope;if(!n.state.ready)throw new U;if(n.isWidgetMode())throw new H(g.Set,v.Setting);var s=n.serializer.serialize(e,t),a=q(e,{isMobile:n.props.isMobile,language:n.getLanguageForParam(e)});n.state.publicData[i][a]!==s&&(n.setState((function(e){var t,n;return(0,f.__assign)((0,f.__assign)({},e),{publicData:(0,f.__assign)((0,f.__assign)({},e.publicData),(t={},t[i]=(0,f.__assign)((0,f.__assign)({},e.publicData[i]),(n={},n[a]=s,n)),t))})})),n.setWixDataParam(a,s),null===(r=n.props.history)||void 0===r||r.addDebounced(e.key),null===(o=n.props.bi)||void 0===o||o.settingsChanged({parameter:e.key,value:s}))},n.handleResetParam=function(e){var t,r,o=n.props.scope;if(n.isWidgetMode())throw new H(g.Reset,v.Setting);var i=q(e,{isMobile:n.props.isMobile,language:n.getLanguageForParam(e)});n.setState((function(e){var t,n;return(0,f.__assign)((0,f.__assign)({},e),{publicData:(0,f.__assign)((0,f.__assign)({},e.publicData),(t={},t[o]=(0,f.__assign)((0,f.__assign)({},e.publicData[o]),(n={},n[i]=void 0,n)),t))})})),n.removeWixDataParam(i),null===(t=n.props.history)||void 0===t||t.addDebounced(e.key),null===(r=n.props.bi)||void 0===r||r.settingsChanged({parameter:e.key,value:""})},n.handleResetAll=function(e){var t,r;if(n.isWidgetMode())throw new H(g.ResetAll,v.Setting);null===(t=n.props.history)||void 0===t||t.startBatch(),Object.keys(e).forEach((function(t){n.handleResetParam(e[t])})),null===(r=n.props.history)||void 0===r||r.endBatch("All settings")},n.handlePublishEvent=function(e,t){if(n.isWidgetMode())throw new H(g.PublishEvent,v.Setting);n.setWixDataParam("___settingsEvent",{event:e,payload:{id:Date.now(),value:t}})};var r=t.publicData;return n.state={ready:!!r,publicData:ne(r)},n.serializer=new Z,n}return(0,f.__extends)(t,e),t.prototype.componentDidMount=function(){return(0,f.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r=this;return(0,f.__generator)(this,(function(o){switch(o.label){case 0:return e=this.props,t=e.SDKAdapter,e.publicData?[2]:t?[4,t.getAllData()]:[3,2];case 1:return n=o.sent(),this.setState({ready:!0,publicData:ne(n)}),window.onunload=function(){r.handlePublishEvent("reset",{})},[2];case 2:throw new W}}))}))},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.publicData,r=t.revisionID;this.isWidgetMode()&&n!==e.publicData&&this.setState({ready:!!n,publicData:ne(n)}),r!==e.revisionID&&this.handleRevisionChanged()},t.prototype.isWidgetMode=function(){return this.props.publicData},t.prototype.setWixDataParam=function(e,t){var n=this.props,r=n.SDKAdapter,o=n.scope;r.setData(e,t,o)},t.prototype.removeWixDataParam=function(e){var t=this.props,n=t.SDKAdapter,r=t.scope;n.removeData(e,r)},t.prototype.render=function(){return o().createElement(B.Provider,{value:{ready:this.state.ready,get:this.handleGetParam,getDefaultValue:this.handleGetDefaultValue,set:this.handleSetParam,reset:this.handleResetParam,resetAll:this.handleResetAll,publishEvent:this.handlePublishEvent}},this.props.children)},t.propTypes={SDKAdapter:M().object,settingsValues:M().object,t:M().func,experiments:M().object,bi:M().object,isMobile:M().bool,isEditorX:M().bool,scope:M().string.isRequired},t.defaultProps={scope:"COMPONENT"},t}(o().Component),oe=n(17607),ie=n.n(oe),se=n(77388),ae=n(52834),le=n(59880);function ce(e){var t=e.styles,n=e.textPresets,r=e.colors,o=e.isMobile,i=e.isRTL,s=e.isEditorX,a=e.dimensions,l=e.experiments,c=e.styleParamsPerBreakpointMode;return function(e){return e.getDefaultValue({colors:r,textPresets:n,isMobile:o,isRTL:i,isEditorX:s,dimensions:a,experiments:l,getStyleParamValue:function(e,u){return void 0===u&&(u={}),ue((0,f.__assign)({storage:t,colors:r,textPresets:n,isMobile:o,isRTL:i,isEditorX:s,dimensions:a,experiments:l,styleParamsPerBreakpointMode:c},u))(e)}})}}function ue(e){var t=e.storage,n=e.textPresets,r=e.colors,o=void 0===r?[]:r,i=e.isMobile,s=e.isRTL,a=e.isEditorX,l=e.dimensions,c=e.experiments,u=e.styleParamsPerBreakpointMode,d=function(e){return(t.numbers||{})[e]},p=function(e){return(t.booleans||{})[e]},h=function(e){return(t.fonts||{})[e]},m=function(e){return(t.colors||{})[e]};return function(e){var r,g,v=(r={},r[ae.g.Number]=d,r[ae.g.Boolean]=p,r[ae.g.Font]=h,r[ae.g.Color]=m,r)[e.type],y=e.key||e.name;if(u)g=v(y);else{var b=q((0,f.__assign)((0,f.__assign)({},e),{key:y}),{isMobile:i});g=v(b);var E=Y(e);b!==y&&E&&void 0===g&&(g=v(y))}return void 0===g&&e.getDefaultValue?ce({styles:t,textPresets:n,colors:o,isMobile:i,isRTL:s,isEditorX:a,dimensions:l,experiments:c,styleParamsPerBreakpointMode:u})(e):g}}var de=function(e){function t(t){var n=this.constructor,r=e.call(this,"\nYou are calling `getDefaultValue` for styles param, but it wasn't specified.\nPlease check the `".concat(t,"` style param implementation.\n"))||this;return Object.setPrototypeOf(r,n.prototype),r}return(0,f.__extends)(t,e),t}(Error);var pe=function(){function e(e){var t=e.styleParams,n=e.wixStyles,r=e.textPresets,o=e.colors,i=e.history,s=e.bi,a=e.isMobile,l=e.isRTL,c=e.isEditorX,u=e.dimensions,d=e.experiments,p=e.styleParamsPerBreakpointMode,h=e.currentStylesGetter,m=e.allStylesGetter,g=this;this.set=function(e,t,n){var r,o;void 0===n&&(n={}),e.name&&console.warn('Check the "'.concat(e.name,'" style param \u2013 property "name" is deprecated. Please use "key"'));var i=e.key||e.name,s=q((0,f.__assign)((0,f.__assign)({},e),{key:i}),{isMobile:!g.styleParamsPerBreakpointMode&&g.isMobile});switch(e.type){case ae.g.Number:g.setNumberParam(s,t,n);break;case ae.g.Boolean:g.setBooleanParam(s,t,n);break;case ae.g.Font:g.setFontParam(s,t,n);break;case ae.g.Color:g.setColorParam(s,t,n);break;default:console.error('"'.concat(e.type,'" is not supported type.'))}null===(r=g.history)||void 0===r||r.addDebounced(i),null===(o=g.bi)||void 0===o||o.settingsChanged({parameter:i,value:t})},this.getCurrentStyles=function(){return g.currentStylesGetter?g.wixStyles.decode(g.currentStylesGetter(),g.colors,g.textPresets):g.styles},this.get=function(e){return ue({storage:g.getCurrentStyles(),colors:g.colors,textPresets:g.textPresets,isMobile:g.isMobile,isRTL:g.isRTL,isEditorX:g.isEditorX,dimensions:g.dimensions,experiments:g.experiments,styleParamsPerBreakpointMode:g.styleParamsPerBreakpointMode})(e)},this.getDefaultValue=function(e){if(!e.getDefaultValue)throw new de(e.key);return ce({styles:g.styles,colors:g.colors,textPresets:g.textPresets,isMobile:g.isMobile,isRTL:g.isRTL,isEditorX:g.isEditorX,dimensions:g.dimensions,experiments:g.experiments,styleParamsPerBreakpointMode:g.styleParamsPerBreakpointMode})(e)},this.reset=function(e){var t=ce({styles:g.styles,colors:g.colors,textPresets:g.textPresets,isMobile:g.isMobile,isRTL:g.isRTL,isEditorX:g.isEditorX,dimensions:g.dimensions,experiments:g.experiments,styleParamsPerBreakpointMode:g.styleParamsPerBreakpointMode});g.set(e,t(e))},this.resetAll=function(e){var t,n;null===(t=g.history)||void 0===t||t.startBatch(),Object.keys(e).forEach((function(t){g.reset(e[t])})),null===(n=g.history)||void 0===n||n.endBatch("All styles")},this.wixStyles=n,this.textPresets=r,this.colors=o,this.styles=t,this.history=i,this.bi=s,this.isMobile=a,this.isRTL=l,this.isEditorX=c,this.dimensions=u,this.experiments=d,this.styleParamsPerBreakpointMode=p,this.currentStylesGetter=h,this.allStylesGetter=m}return e.prototype.setStylesParam=function(e,t,n){var r,o;this.styles=(0,f.__assign)((0,f.__assign)({},this.styles),((r={})[e]=(0,f.__assign)((0,f.__assign)({},this.styles[e]),((o={})[t]=n,o)),r))},e.prototype.setBooleanParam=function(e,t,n){this.setStylesParam("booleans",e,t),this.wixStyles.setBooleanParam(e,t,n)},e.prototype.setColorParam=function(e,t,n){this.setStylesParam("colors",e,function(e,t){if(null==e?void 0:e.name){var n=t.find((function(t){return t.name===e.name}));return(0,f.__assign)((0,f.__assign)({},e),{value:(0,le.Z)(n.value,e.opacity).rgb()})}return e}(t,this.colors)),this.wixStyles.setColorParam(e,t,n)},e.prototype.setFontParam=function(e,t,n){this.setStylesParam("fonts",e,t),this.wixStyles.setFontParam(e,t,n)},e.prototype.setNumberParam=function(e,t,n){this.setStylesParam("numbers",e,t),this.wixStyles.setNumberParam(e,t,n)},e.prototype.getAll=function(){return JSON.parse(JSON.stringify(this.getCurrentStyles()))},e.prototype.getAllForAllBreakpoints=function(){var e=this;return this.allStylesGetter?JSON.parse(JSON.stringify(this.allStylesGetter().map((function(t){return e.wixStyles.decode(t,e.colors,e.textPresets)})))):[this.getAll()]},e.prototype.setStyleParams=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t;return(0,f.__generator)(this,(function(n){switch(n.label){case 0:return t=this,[4,this.wixStyles.decode(e,this.colors,this.textPresets)];case 1:return t.styles=n.sent(),[2]}}))}))},e.prototype.handleSiteColorChange=function(e){var t=this.styles.colors,n=Object.keys(t).reduce((function(n,r){return t[r].name?n[r]=(0,f.__assign)((0,f.__assign)({},t[r]),{value:e[t[r].name]}):n[r]=t[r],n}),{});this.styles=(0,f.__assign)((0,f.__assign)({},this.styles),{colors:n})},e}();var he=n(5570);function me(e,t,n){var r=Object.keys(e.fonts||[]).reduce((function(t,r){var o,i,s=e.fonts[r];return(0,f.__assign)((0,f.__assign)({},t),{fonts:(0,f.__assign)((0,f.__assign)({},t.fonts),(o={},o[r]="Custom"!==s.preset&&null!==(i=(0,he.s9)(e.fonts[r].preset,n))&&void 0!==i?i:s,o))})}),{fonts:{}}).fonts,o=Object.keys(e.colors||[]).reduce((function(n,r){var o;try{var i=function(e,t){var n;if(!e.value)return null;if(e.themeName){var r=t.find((function(t){return t.reference===e.themeName||t.name===e.themeName})),o=(0,le.Z)(e.value||r.value);if(r)return{value:o.rgb(),name:r.name,opacity:o.opacity()}}var i=(0,le.Z)(e.value);return{value:i.rgb(),name:null!==(n=e.themeName)&&void 0!==n?n:null,opacity:i.opacity()}}(e.colors[r],t);return(0,f.__assign)((0,f.__assign)({},n),{colors:(0,f.__assign)((0,f.__assign)({},n.colors),(o={},o[r]=i,o))})}catch(e){return(0,f.__assign)((0,f.__assign)({},n),{errors:n.errors.concat(r)})}}),{colors:{},errors:[]}),i=o.colors;o.errors;return(0,f.__assign)((0,f.__assign)({},e),{fonts:r,colors:i})}var fe,ge=function(){function e(e,t){var n=this;this.refresh=function(){return(0,f.__awaiter)(n,void 0,void 0,(function(){var e,t;return(0,f.__generator)(this,(function(n){switch(n.label){case 0:return this.editorSDK?[4,this.editorSDK.components.getById("token",{id:new URLSearchParams(window.location.search).get("origCompId")})]:[3,3];case 1:return e=n.sent(),[4,this.editorSDK.document.tpa.getStyleParams("token",{compRef:e})];case 2:return t=n.sent(),[2,this.normalizeStylesReceivedFromEditorSDK(t)];case 3:return[2]}}))}))},this.decode=function(e,t,n){return e?me(e,t,n):null},this.SDKAdapter=e,this.editorSDK=t}return e.prototype.setBooleanParam=function(e,t,n){this.SDKAdapter.setBooleanParam(e,t,n)},e.prototype.setFontParam=function(e,t,n){this.SDKAdapter.setFontParam(e,t,n)},e.prototype.setNumberParam=function(e,t,n){this.SDKAdapter.setNumberParam(e,t,n)},e.prototype.setColorParam=function(e,t,n){return(0,f.__awaiter)(this,void 0,void 0,(function(){var r,o;return(0,f.__generator)(this,(function(i){switch(i.label){case 0:return[4,this.SDKAdapter.getSiteColors()];case 1:return r=i.sent(),o=function(e,t){if(e.name){var n=t.find((function(t){return t.name===e.name})),r=(0,le.Z)(n.value,e.opacity).rgb();return{opacity:e.opacity,rgba:r,color:{value:r,name:n.name,reference:n.reference}}}return{opacity:e.opacity,rgba:(0,le.Z)(e.value,e.opacity).rgb(),color:!1}}(t,r),this.SDKAdapter.setColorParam(e,o,n),[2]}}))}))},e.prototype.load=function(){return this.SDKAdapter.getStyleParams()},e.prototype.getSiteTextPresets=function(){return this.SDKAdapter.getSiteTextPresets()},e.prototype.getSiteColors=function(){return this.SDKAdapter.getSiteColors()},e.prototype.normalizeStylesReceivedFromEditorSDK=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i,s;return(0,f.__generator)(this,(function(a){switch(a.label){case 0:for(i in t=function(t){var r,o;return(0,f.__generator)(this,(function(i){switch(i.label){case 0:return e.colors.hasOwnProperty(t)&&e.colors[t].hasOwnProperty("themeName")?[4,n.getSiteColors()]:[3,2];case 1:r=i.sent(),o=r.find((function(n){return n.name===e.colors[t].themeName})),e.colors[t].themeName=o.reference,i.label=2;case 2:return[2]}}))},n=this,r=e.colors,o=[],r)o.push(i);s=0,a.label=1;case 1:return s<o.length?(i=o[s])in r?[5,t(i)]:[3,3]:[3,4];case 2:a.sent(),a.label=3;case 3:return s++,[3,1];case 4:return[2,e]}}))}))},e}(),ve=function(e){function t(){var t=this.constructor,n=e.call(this,'\nStylesProvider is not ready. Styles are not loaded.\nUsually this case should be unreachable.  \nIn case you face it use "context.ready: boolean" flag not determine if it possible to set/get params. \n')||this;return Object.setPrototypeOf(n,t.prototype),n}return(0,f.__extends)(t,e),t}(Error),ye=((fe={})[ae.g.Number]="numbers",fe[ae.g.Boolean]="booleans",fe[ae.g.Font]="fonts",fe[ae.g.Color]="colors",fe),be=function(e){function t(t){var n=e.call(this,t)||this;return n.state={ready:!1,styles:null},n.getStyleParamsWithDefaults=function(e){var t=n.props.userStylesParams;if(!t)return e;var r=ue({storage:e,colors:n.props.siteColors,textPresets:n.props.textPresets,isMobile:n.props.isMobile,isRTL:n.props.isRTL,isEditorX:n.props.isEditorX,dimensions:n.props.dimensions,experiments:n.props.experiments,styleParamsPerBreakpointMode:n.props.styleParamsPerBreakpointMode});return Object.values(t).forEach((function(t){var n=r(t);void 0!==n&&(e[ye[t.type]][t.key]=n)})),e},n.getStylesForAllBreakpoints=function(){if(!n.state.ready)throw new ve;return n.stylesStore.getAllForAllBreakpoints().map(n.getStyleParamsWithDefaults)},n.handleGetParam=function(e){if(!n.state.ready)throw new ve;return n.stylesStore.get(e)},n.handleGetDefaultValue=function(e){if(!n.state.ready)throw new ve;return n.stylesStore.getDefaultValue(e)},n.handleSetParam=function(e,t,r){if(!n.state.ready)throw new ve;if(n.isWidgetMode())throw new H(g.Set,v.Styles);if(n.stylesStore.get(e)!==t){n.stylesStore.set(e,t,r);var o=n.stylesStore.getAll();n.setState({styles:o})}},n.handleResetParam=function(e){if(!n.state.ready)throw new ve;if(n.isWidgetMode())throw new H(g.Reset,v.Styles);n.stylesStore.reset(e);var t=n.stylesStore.getAll();n.setState({styles:t})},n.handleResetAll=function(e){if(!n.state.ready)throw new ve;if(n.isWidgetMode())throw new H(g.ResetAll,v.Styles);n.stylesStore.resetAll(e),n.setState({styles:n.stylesStore.getAll()})},n.handleSiteColorChange=function(e){if(!n.state.ready)throw new ve;n.stylesStore.handleSiteColorChange(e);var t=n.stylesStore.getAll();n.setState({styles:t})},n.isWidgetMode(t)&&(n.wixStyles=new ge,n.initStylesStore({textPresets:t.textPresets,colors:t.siteColors,styleParams:t.styleParams,currentStylesGetter:t.currentStylesGetter,allStylesGetter:t.allStylesGetter})),n.state={ready:n.isWidgetMode(t),styles:null},n}return(0,f.__extends)(t,e),t.prototype.componentDidMount=function(){return(0,f.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,o,i,s;return(0,f.__generator)(this,(function(a){switch(a.label){case 0:return this.isWidgetModeWithoutStyleProps()?(this.setState({ready:!0}),[2]):this.isWidgetMode()?[2]:(this.wixStyles=new ge(this.props.SDKAdapter,this.props.editorSDK),i=(o=Promise).all,[4,this.wixStyles.load()]);case 1:return s=[a.sent()],[4,this.wixStyles.getSiteTextPresets()];case 2:return s=s.concat([a.sent()]),[4,this.wixStyles.getSiteColors()];case 3:return[4,i.apply(o,[s.concat([a.sent()])])];case 4:return e=a.sent(),t=e[0],n=e[1],r=e[2],this.initStylesStore({styleParams:t,textPresets:n,colors:r,currentStylesGetter:this.props.currentStylesGetter,allStylesGetter:this.props.allStylesGetter}),this.setState({ready:!0}),[2]}}))}))},t.prototype.initStylesStore=function(e){var t=e.styleParams,n=e.textPresets,r=e.colors,o=e.currentStylesGetter,i=e.allStylesGetter,s=this.wixStyles.decode(t,r,n);this.stylesStore=new pe({styleParams:s,textPresets:n,colors:r,wixStyles:this.wixStyles||null,history:this.props.history,bi:this.props.bi,isMobile:this.props.isMobile,isRTL:this.props.isRTL,isEditorX:this.props.isEditorX,dimensions:this.props.dimensions,experiments:this.props.experiments,styleParamsPerBreakpointMode:this.props.styleParamsPerBreakpointMode,currentStylesGetter:o,allStylesGetter:i})},t.prototype.componentDidUpdate=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t,n;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:if(this.props.revisionID===e.revisionID)return[3,2];if(!this.props.editorSDK)throw new Error("Pass editorSDK to TPASettingsProvider's props");return[4,this.wixStyles.refresh()];case 1:t=r.sent(),this.stylesStore.setStyleParams(t),n=this.stylesStore.getAll(),this.setState({styles:n}),r.label=2;case 2:return this.isWidgetMode(this.props)&&this.widgetPropsChanged(this.props,e)&&this.initStylesStore({textPresets:this.props.textPresets,colors:this.props.siteColors,styleParams:this.props.styleParams,currentStylesGetter:this.props.currentStylesGetter,allStylesGetter:this.props.allStylesGetter}),[2]}}))}))},t.prototype.isWidgetMode=function(e){return void 0===e&&(e=this.props),e.styleParams&&!e.SDKAdapter},t.prototype.widgetPropsChanged=function(e,t){return!((0,oe.isEqual)(e.styleParams,t.styleParams)&&(0,oe.isEqual)(e.siteColors,t.siteColors)&&(0,oe.isEqual)(e.textPresets,t.textPresets)&&(0,oe.isEqual)(e.dimensions,t.dimensions)&&e.isMobile===t.isMobile&&e.allStylesGetter===t.allStylesGetter&&e.currentStylesGetter===t.currentStylesGetter)},t.prototype.isWidgetModeWithoutStyleProps=function(){return!this.isWidgetMode()&&!this.props.SDKAdapter},t.prototype.render=function(){return o().createElement(se.N.Provider,{value:{getStylesForAllBreakpoints:this.getStylesForAllBreakpoints,ready:this.state.ready,get:this.handleGetParam,getDefaultValue:this.handleGetDefaultValue,set:this.handleSetParam,reset:this.handleResetParam,resetAll:this.handleResetAll,changeSiteColors:this.handleSiteColorChange}},this.props.children)},t.propTypes={SDKAdapter:M().object,isMobile:M().bool,isRTL:M().bool,isEditorX:M().bool,dimensions:M().object,experiments:M().object,bi:M().object,styleParams:M().object,textPresets:M().object,siteColors:M().array,userStylesParams:M().object,styleParamsPerBreakpointMode:M().bool,currentStylesGetter:M().func,allStylesGetter:M().func},t}(o().Component),Ee=function(e){var t=e.t,n=e.experiments,r=e.publicData,i=e.isMobile,s=e.isRTL,a=e.isEditorX,l=e.dimensions,c=e.language,u=e.children,d=e.hostStyle,p=e.stylesParams,h=e.styleParamsPerBreakpointMode,m=e.currentStylesGetter,f=e.allStylesGetter;return o().createElement(re,{t,experiments:n,publicData:r,isMobile:i,isRTL:s,isEditorX:a,language:c},o().createElement(be,{userStylesParams:p,currentStylesGetter:m,allStylesGetter:f,styleParamsPerBreakpointMode:h,styleParams:null==d?void 0:d.styleParams,textPresets:null==d?void 0:d.siteTextPresets,siteColors:null==d?void 0:d.siteColors,isEditorX:a,isMobile:i,isRTL:s,experiments:n,dimensions:l},o().createElement(F,null,(function(e){return o().createElement(se.$,null,(function(t){return e.ready&&t.ready&&u}))}))))},Se=n(90819);function Ce(e){var t=void 0===e?{}:e,n=t.suspense,r=void 0===n||n,i=(t.readOnly,o().useContext(Se.k));if(!i)throw new Error("You are trying to get Experiments outside ExperimentsProvider component.\nPlease wrap up your application in ExperimentsProvider.");var s=i.ready,a=i.promise,l=i.experimentsInstance;if(r&&!s)throw a;return{ready:s,experiments:l}}var we,Pe=function(){return Pe=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},Pe.apply(this,arguments)},Ie=function(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},Oe=function(){return null},Te=function(e){var t=e.experimentsDisabled,n=Ie(e,["experimentsDisabled"]),r=(t?Oe:Ce)();return o().createElement(Ee,Pe({experiments:null==r?void 0:r.experiments},n))},Ne=function(){return Ne=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},Ne.apply(this,arguments)},Ae={language:"_language",translations:"_translations",multilingual:"_multilingual",experiments:"_experiments",biMethods:"_biMethods",openModal:"__openModal__",biUtil:"_biUtil",mobile:"_mobile",isRTL:"_isRTL",isSSR:"_isSSR",isSEO:"_isSEO",appDefinitionId:"_appDefinitionId",widgetId:"_widgetId",fedopsLogger:"_fedopsLogger",sentry:"_sentry",errorMonitor:"_errorMonitor",publicData:"_publicData",styles:"__styles",enabledHOCs:"_enabledHOCs",onAppLoaded:"_onAppLoaded",onAppLoadStarted:"_onAppLoadStarted",error:"_workerError",errorMonitorWithOptions:"__errorMonitorWithOptions",logger:"__logger",transactionWithAction:"__transactionWithAction",shouldReportAppLoadStarted:"shouldReportAppLoadStarted"},xe=function(){function e(){this.store={}}return e.prototype.init=function(){},e.prototype.getProps=function(){return this.store},e.prototype.getProp=function(e){var t=this.getPrivateKey(e);return this.store[t]},e.prototype.spreadProp=function(e){var t,n=this.getPrivateKey(e);return(t={})[n]=this.store[n],t},e.prototype.getPrivateKey=function(t){return e.PropsMap[t]},e.prototype.getFromExternalStore=function(e,t){return t[this.getPrivateKey(e)]},e.prototype.setProp=function(e,t){var n=this.getPrivateKey(e);this.store[n]=t},e.prototype.isHOCEnabled=function(e){return this.getProp("enabledHOCs")[e]},e.prototype.isFlowPropsReceived=function(){return!!this.getProp("enabledHOCs")},e.PropsMap=Ae,e}(),_e=(we=function(e,t){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},we(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}we(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Le=function(e){function t(t){var n=t.props,r=e.call(this)||this;return r.getPanoramaClient=function(){return e={errorMonitorWithOptions:r.getProp("errorMonitorWithOptions"),transactionWithAction:r.getProp("transactionWithAction"),logger:r.getProp("logger")},{errorMonitor:function(t){return{reportError:function(n,r){e.errorMonitorWithOptions(t,"reportError",n,r)},addBreadcrumb:function(n){e.errorMonitorWithOptions(t,"addBreadcrumb",n)}}},transaction:function(t){return{start:function(n){e.transactionWithAction(t,"start",n)},finish:function(n){e.transactionWithAction(t,"finish",n)}}},logger:function(){return e.logger}};var e},r.getBILogger=function(){return function(e){var t=e.biMethods,n=e.biUtil;return Ne(Ne({},t),{util:n})}({biMethods:r.getProp("biMethods"),biUtil:r.getProp("biUtil")})},r.initConsumerProps(n),r}return _e(t,e),t.prototype.initConsumerProps=function(e){this.store=e},t.prototype.getControllerError=function(){return this.getProp("error")?function(e){var t=new Error;return t.name=e.name,t.message=e.message,t.stack=e.stack,{error:t,errorId:e.errorId}}(this.getProp("error")):null},t}(xe),Re=(0,r.createContext)(null),ke=(Re.Consumer,function(e){var t=e.openModal,n=e.children,i=(0,r.useMemo)((function(){return{openModal:t}}),[t]);return o().createElement(Re.Provider,{value:i},n)});const De=(0,r.createContext)(null).Provider;const Ve=(0,r.createContext)(null).Provider;var Me=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Be=function(){return Be=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},Be.apply(this,arguments)},Fe=function(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},Ue=function(e){return(0,r.useMemo)((function(){return new Le({props:e})}),[e])},je=function(e){function t(t){var n=e.call(this,t)||this;return t.onAppLoadStarted&&t.onAppLoadStarted(),n}return Me(t,e),t.prototype.componentDidMount=function(){this.props.onAppLoaded&&this.props.host.registerToComponentDidLayout(this.props.onAppLoaded)},t.prototype.render=function(){return this.props.children},t}(o().Component),He=n(44714),Ze=n(3729),We=n(65925),ze=n(26290),qe=n.n(ze),Ge=n(69914),$e=n(8518),Ye=n.n($e),Ke=n(63525),Xe=n.n(Ke);const Qe="undefined"!=typeof document&&"onfocusin"in document,Je=Qe?"focusin":"focus",et=Qe?"focusout":"blur";let tt,nt,rt=null,ot=null;const it={pointer:!1,key:!1,script:!1,initial:!1};function st(e=document.documentElement,t){let n="";if(t.type===Je||"shadow-focus"===t.type){const e=tt.get();n=ot||e.pointer&&"pointer"||e.key&&"key"||"script"}else"initial"===t.type&&(n="initial");e.setAttribute("data-focus-source",n),t.type!==et&&(it[n]||(0,Ge.cn)(e,"focus-source-"+n),it[n]=!0,rt=n)}function at(){return rt}function lt(e){return it[e]}function ct(e){ot=e}function ut(){ot=!1}const dt={engage:function(e){const t=(n=e,e=>st(n,e));var n;return nt=Ye()(),document.addEventListener("shadow-focus",t,!0),e.addEventListener(Je,t,!0),e.addEventListener(et,t,!0),tt=Xe()(),t({type:"initial"}),{used:lt,current:at,lock:ct,unlock:ut}},disengage:function(e){const t=(n=e,e=>st(n,e));var n;t({type:et}),rt=ot=null,Object.keys(it).forEach((function(t){(0,Ge.IV)(e,"focus-source-"+t),it[t]=!1})),tt&&tt.disengage(),nt&&nt.disengage(),document.removeEventListener("shadow-focus",t,!0),e.removeEventListener(Je,t,!0),e.removeEventListener(et,t,!0),e.removeAttribute("data-focus-source")}},pt="undefined"!=typeof window&&window.document&&"unknown"!=typeof window.document.activeElement;var ht=n(17633),mt=n(14604),ft=n(87077),gt=n(97698),vt=n(96918),yt=n(75126),bt=n(946),Et=n(13060),St=n(23970);const Ct=(0,gt.P1)([yt.F,ft.js,bt.C,Et.$u],((e,t,n,r)=>(0,vt.$4)(t,r[e],n)));var wt=n(37265),Pt=n(81098),It=n(60042),Ot=n.n(It),Tt=n(51445);const Nt={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",NONE:"none"},At={START:"start",CENTER:"center",END:"end"},xt={LEFT:"left",CENTER:"center",RIGHT:"right",TOP:"top"};function _t(e){return{[Nt.TOP]:Nt.BOTTOM,[Nt.LEFT]:Nt.RIGHT,[Nt.RIGHT]:Nt.LEFT,[Nt.BOTTOM]:Nt.TOP}[e]||Nt.NONE}const Lt=12,Rt=23,kt={triangleSide:Nt.TOP,popoutSide:Nt.BOTTOM,popoutPosition:xt.CENTER,trianglePosition:At.CENTER};function Dt(e,t,n){if(void 0===n&&(n=kt),!e||!t)return{left:0,top:0,offsetX:0};const{popoutSide:r,popoutPosition:o,trianglePosition:i}={...kt,...n},s=e.getBoundingClientRect(),a=t.getBoundingClientRect(),{top:l,left:c,width:u,height:d}=s,{width:p,height:h}=a,{innerWidth:m,pageXOffset:f}=window;let g=l,v=c+f;r===Nt.TOP?g-=h+Lt:r===Nt.LEFT?(g-=h/2-d/2,v-=p+Lt):r===Nt.RIGHT?(g-=h/2-d/2,v+=u+Lt):r===Nt.BOTTOM&&(g+=d+Lt),r!==Nt.TOP&&r!==Nt.BOTTOM||(o===xt.RIGHT?v+=u-p+Rt:o===xt.LEFT?v-=Rt:v-=p/2-u/2);let y=0;return i===At.CENTER&&f+m<v+p&&(y=v+p+Lt-(f+m),v-=y),v<Lt&&(y=-Lt+v,v=Lt),{top:g,left:v,offsetX:y}}var Vt=n(88692),Mt=n(66550);M().oneOf(ie().values(Nt)),M().oneOf(ie().values(At)),M().oneOf(ie().values(xt)),M().oneOf(ie().values({CLICK:"click",HOVER:"hover"}));const Bt={content:"EWjvBx",triangle:"vbxyIl",before:"hxEonB",after:"ZCVXWy",inner:"w5CKMg","calendar-popout-inner":"ReJBta",calendarPopoutInner:"ReJBta","triangle-none":"InwTTx",triangleNone:"InwTTx","triangle-top":"O7FIUS",triangleTop:"O7FIUS","triangle-right":"HHPxUP",triangleRight:"HHPxUP","triangle-bottom":"hsuzbd",triangleBottom:"hsuzbd","triangle-left":"w75NZG",triangleLeft:"w75NZG","triangle-end":"RoSCia",triangleEnd:"RoSCia","triangle-start":"qpYZ_5",triangleStart:"qpYZ_5","yellow-stripe":"j9qou3",yellowStripe:"j9qou3",stripe:"m1kMuu","stripe-yellow":"d8j_q_",stripeYellow:"d8j_q_","stripe-white":"jvjYTI",stripeWhite:"jvjYTI","purple-stripe":"IczZlL",purpleStripe:"IczZlL","stripe-purple":"Y3bVdr",stripePurple:"Y3bVdr","tooltip-content":"mFmg_g",tooltipContent:"mFmg_g"};var Ft;const Ut={popoutSide:Nt.TOP,popoutPosition:xt.CENTER,trianglePosition:At.CENTER,getRef:ie().noop,onMouseEnter:ie().noop,onMouseLeave:ie().noop,onClickOutside:ie().noop};const jt=(0,He.$j)((e=>({isPortableDevice:(0,Mt.ND)(e)})))((Ft=class extends o().Component{constructor(){super(...arguments),qe()(this,"handleClickOutside",(e=>{const{target:t}=e;t!==window&&this.popout&&this.popout.contains(t)||this.props.onClickOutside({event:e})})),qe()(this,"hideAllButOnePopout",(e=>{e&&this.popout&&!this.popout.contains(e)&&this.props.onClickOutside()})),qe()(this,"getRef",(e=>{this.popout=e,this.props.getRef(e)}))}componentDidMount(){window.addEventListener("blur",this.handleClickOutside),this.props.isPortableDevice?document.addEventListener("touchstart",this.handleClickOutside):document.addEventListener("click",this.handleClickOutside),this.unsubscribeHide=Tt.Z.subscribe(Vt.Z.POPOUT.SHOW,this.hideAllButOnePopout)}componentWillUnmount(){window.removeEventListener("blur",this.handleClickOutside),document.removeEventListener("click",this.handleClickOutside),document.removeEventListener("touchstart",this.handleClickOutside),this.unsubscribeHide&&this.unsubscribeHide()}render(){const{children:e,className:t,onMouseEnter:n,onMouseLeave:r,triangleClassName:i,height:s,isActive:a,popoutSide:l,trianglePosition:c}=this.props;let{style:u}=this.props;s&&(u={...u,height:s});const d=Ot()(t,Bt.content,[Bt[`triangle-${_t(l)}`]],[Bt[`triangle-${c}`]]);return o().createElement("div",{ref:this.getRef,className:d,style:u,onMouseEnter:n,onMouseLeave:r},o().createElement("div",{className:Ot()(i,Bt.triangle,Bt.before)}),o().createElement("div",{className:Bt["tooltip-content"],"data-hook":a?"tooltip-content":""},e),o().createElement("div",{className:Ot()(i,Bt.triangle,Bt.after)}))}},qe()(Ft,"defaultProps",Ut),Ft));class Ht extends o().Component{render(){const{innerClassName:e,children:t}=this.props,n=ie().omit(this.props,"styles","innerClassName","children");return o().createElement(jt,n,o().createElement("div",{className:Ot()(Bt.inner,e)},t))}}qe()(Ht,"defaultProps",Ut);const Zt="o2HYMd",Wt="D0l4ah",zt="knXXuc";let qt;class Gt extends o().Component{constructor(){super(...arguments),qe()(this,"state",{popoutComponent:Ht,visible:!1}),qe()(this,"showTooltip",(e=>{e.compId===this.props.compId&&(this.preventHide(),this.setState({visible:!0,preventHideOnHover:!1,popoutComponent:Ht,className:"",innerClassName:"",triangleClassName:"",content:null,popoutSide:Nt.RIGHT,popoutPosition:xt.CENTER,trianglePosition:At.CENTER,referenceElement:null,...e}))})),qe()(this,"hideTooltip",(()=>{const e=this.state.preventHideOnHover?200:0;qt=setTimeout((()=>{this.setState({visible:!1})}),e)})),qe()(this,"handleMouseEnter",(()=>{this.state.preventHideOnHover&&this.preventHide()})),qe()(this,"handleMouseLeave",(()=>{this.hideTooltip()})),qe()(this,"getPopoutRef",(e=>{this.popout=e}))}componentDidMount(){this.showTooltipUnsubscribe=Tt.Z.subscribe(Vt.Z.TOOLTIP.SHOW,this.showTooltip),this.hideTooltipUnsubscribe=Tt.Z.subscribe(Vt.Z.TOOLTIP.HIDE,this.hideTooltip)}componentDidUpdate(e,t){const{visible:n,tooltipId:r}=this.state;if(n&&!ie().isEqual(this.state,t)&&this.updatePosition(),n!==t.visible){const e=n?Vt.Z.TOOLTIP.DID_SHOW:Vt.Z.TOOLTIP.DID_HIDE;Tt.Z.publish(e,r)}}componentWillUnmount(){this.showTooltipUnsubscribe(),this.hideTooltipUnsubscribe()}get Popout(){return this.state.popoutComponent}preventHide(){clearTimeout(qt)}calculatePosition(){const{referenceElement:e,popoutSide:t,popoutPosition:n,trianglePosition:r}=this.state;return Dt(e,this.popout,{popoutSide:t,popoutPosition:n,trianglePosition:r})}updatePosition(){const{top:e,left:t,offsetX:n}=this.calculatePosition();this.popout.style.top=`${e}px`,this.popout.style.left=`${t}px`;const r=`translateX(${n}px) rotate(45deg)`,o=this.popout.firstElementChild,i=this.popout.lastElementChild;o.style.transform=r,i.style.transform=r}render(){const{visible:e,content:t,left:n,top:r,className:i,innerClassName:s,triangleClassName:a,popoutSide:l,popoutPosition:c,trianglePosition:u,onClickOutside:d}=this.state,p=Ot()(i,Zt,{[Wt]:e}),h=Ot()(zt,s);return o().createElement(this.Popout,{getRef:this.getPopoutRef,onClickOutside:d,popoutSide:l,popoutPosition:c,trianglePosition:u,className:p,innerClassName:h,triangleClassName:a,style:{left:n,top:r},isActive:e,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t)}}var $t=n(29204),Yt=n(97906);const Kt="yL8O38",Xt="HmWUS4",Qt="IW7CzA",Jt="oq6W9o";class en extends o().Component{get title(){const{title:e,titleClassName:t}=this.props;return e?o().createElement("h1",{"data-hook":"modal-title",className:Ot()(Xt,t)},e):null}render(){const{onButtonClick:e,className:t,buttonClassName:n}=this.props,r=Ot()(t,Kt);return o().createElement("header",{className:r},this.title,o().createElement(Yt.Z,{dataHook:"header-close-button",className:Ot()(Qt,Jt,n),onClick:e,name:"close"}))}}qe()(en,"defaultProps",{onButtonClick:ie().noop});var tn=n(11752);const nn="Q4T8JH",rn="qJU_n_",on="yCVhgt";class sn extends o().Component{get title(){const{title:e}=this.props;return e?o().createElement("h1",{"data-hook":"modal-title",className:rn},e):null}render(){const{onButtonClick:e,closeButtonLabel:t}=this.props;return o().createElement("header",{"data-hook":"modal-header",className:nn},this.title,o().createElement(Yt.Z,{dataHook:"header-close-button",className:on,onClick:e,ariaLabel:t,name:"close"}))}}qe()(sn,"defaultProps",{onButtonClick:ie().noop});var an=n(98825),ln=n(90159),cn=n(59406);const un="QPt7Is",dn="jERghF",pn="hIrOMD",hn=(0,ln.Z)()((e=>{let{t}=e;return o().createElement("div",{className:un,"data-hook":"preview-mode-prompt"},o().createElement("div",null,t("widget.preview-prompt.you-in-preview.line1")),o().createElement("div",{className:dn},t("widget.preview-prompt.you-in-preview.line2")),o().createElement(tn.KM,{dataHook:"close-preview-prompt",className:pn,onClick:an.Mr},t("widget.preview-prompt.got-it")))})),mn={[cn.J.PREVIEW_PROMPT]:o().createElement(hn,null)},fn="dAvh45",gn="aRH9Rr",vn="zt3zmS",yn="NYCzpU",bn="jzTfA4",En="svRy_v",Sn="K0spSb",Cn="fwdy2l",wn="Bp5HsF",Pn=!1,In={...mn};function On(e,t){return void 0===t&&(t=!1),e=function(e,t){let{buttons:n}=e;return n=ie().mapValues(n,(function(e,n){return e.Button?e:{...e,Button:t[n]}})),{...e,buttons:n}}(e,{primary:tn.KM,secondary:tn.kq}),t&&(e={Header:sn,className:Sn,windowClassName:Cn,contentClassName:wn,closeOnOverlayClick:!0,...e}),e.contentType&&(e.content=In[e.contentType]),e}class Tn extends o().Component{constructor(e){super(e),qe()(this,"saveRef",(e=>{this.containerRef=e})),qe()(this,"openModal",(e=>{e=On(e,this.props.isMobile),this.setState({title:null,closeButtonLabel:null,content:null,Header:en,closeOnOverlayClick:Pn,className:"",windowClassName:"",contentClassName:"",buttonsClassName:"",buttons:{},resolve:ie().noop,reject:ie().noop,noCloseButton:!1,...e}),setTimeout((()=>{this.setState({open:!0})}),0)})),qe()(this,"closeModal",(()=>new Promise((e=>{this.setState({open:!1},(()=>{setTimeout((()=>{this.setState({content:null},e)}),200)}))})))),qe()(this,"handleBackdropClick",(e=>{const{closeOnOverlayClick:t}=this.state;!e.isDefaultPrevented()&&t&&this.$modal.dismiss()})),qe()(this,"handleCloseButtonClick",(()=>{this.$modal.dismiss()})),this.state={open:!1,closeOnOverlayClick:Pn,title:null,closeButtonLabel:null,content:null},this.containerRef=null}componentDidMount(){this.openModalUnsubscribe=Tt.Z.subscribe(Vt.Z.MODAL.OPEN,this.openModal),this.closeModalUnsubscribe=Tt.Z.subscribe(Vt.Z.MODAL.CLOSE,this.closeModal)}componentDidUpdate(e,t){if(this.state.open&&!t.open)if(this.props.useSafeFocus){const e=this.containerRef.style.height;this.containerRef.style.height=0,this.containerRef.focus(),this.containerRef.style.height=e}else this.containerRef.focus()}componentWillUnmount(){this.openModalUnsubscribe(),this.closeModalUnsubscribe()}stopEventPropagation(e){e.preventDefault()}get $modal(){var e=this;const{resolve:t,reject:n}=this.state;return{resolve:e=>{t({data:e,$modal:this.$modal})},reject(e){void 0===e&&(e=an.nB),n(e)},close:e=>{this.closeModal().then((()=>t(e)))},dismiss:function(t){void 0===t&&(t=an.nB),e.closeModal().then((()=>n(t)))}}}get buttons(){const{buttons:e,buttonsClassName:t}=this.state;if(!ie().keys(e).length)return null;const n={primary:"confirmation-button",secondary:"cancellation-button"};return o().createElement("footer",{className:Ot()(t,bn)},ie().map(e,((e,t)=>{let{Button:r,label:i,onClick:s}=e;return o().createElement(r,{key:t,dataHook:n[t],label:i,type:"button",onClick:(0,$t.r)(s,this.$modal),className:En})})))}render(){const{open:e,content:t}=this.state;if(!e&&!t)return null;const{Header:n,title:r,closeButtonLabel:i,className:s,windowClassName:a,contentClassName:l}=this.state,c=Ot()(s,fn,{[gn]:e&&t});return o().createElement("div",{className:c,onClick:this.handleBackdropClick,role:"presentation"},o().createElement("section",{"data-hook":"modal-window",className:Ot()(a,vn),role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,ref:this.saveRef,onClick:this.stopEventPropagation},n&&o().createElement(n,{title:r,closeButtonLabel:i,onButtonClick:this.handleCloseButtonClick,role:"presentation"}),o().createElement("div",{"data-hook":"modal-content",className:Ot()(l,yn),role:"presentation"},ie().isString(t)?t:o().cloneElement(t,{$modal:this.$modal})),this.buttons))}}qe()(Tn,"defaultProps",{closeOnOverlayClick:Pn});var Nn=n(71217),An=n(39396),xn=n(82682),_n=n(28624);const Ln={logBi:Nn.k},Rn=(0,He.$j)((e=>({currentCompId:(0,An.Qp)(e)})),Ln)((0,xn.X)(class extends o().Component{constructor(){super(...arguments),qe()(this,"sendBiEvent",(e=>{let{data:t}=e;const{eventName:n,params:r,targetCompId:o}=t;o===this.props.currentCompId&&this.props.logBi(n,r)}))}componentDidUpdate(e){(0,xn.A)(_n.Q,this.sendBiEvent,{prevProps:e,nextProps:this.props})}render(){return null}}));var kn=n(14190),Dn=n(52907),Vn=n(93060),Mn=n(63212),Bn=n(42925),Fn=n(83379),Un=n(63438);const jn={selectVideo:Dn.Uw,ensureVideoLoaded:Vn.d,resetSelectedVideo:Dn.Fn,setSavedTime:Mn.Z,requestPlayVideo:Fn.x,openFullScreenVideoOverlay:St.Ep,closeFullScreenVideoOverlay:St.xZ},Hn=(0,He.$j)((e=>({isClassic:(0,Ze.cM)(e),isStrip:(0,Ze.zD)(e),isCompact:(0,Ze.sn)(e),isSlider:(0,Ze.ZG)(e),isGrid:(0,Ze.v3)(e),isPlayInFrame:(0,Ze.XM)(e),currentChannelId:(0,Bn.gO)(e),mainVideoId:(0,kn.hg)(e),channel:(0,ft.js)(e)})),jn)(class extends o().Component{constructor(){super(...arguments),qe()(this,"handleEvent",(e=>{const{selectedVideoId:t,savedPlayerTime:n,openOverlay:r}=e,{resetSelectedVideo:o,setSavedTime:i}=this.props;t?(n&&!r&&i(n),this.tryPlayVideoForLayout(e)):o()}))}tryPlayVideoForLayout(e){const{autoplay:t,selectedVideoId:n,openOverlay:r}=e,{isPlayInFrame:o,isStrip:i,isCompact:s,isGrid:a,isSlider:l,mainVideoId:c,requestPlayVideo:u,selectVideo:d,ensureVideoLoaded:p,channel:h,openFullScreenVideoOverlay:m,closeFullScreenVideoOverlay:f}=this.props;if(r){if(i||(s||a||l)&&!o)return void m(h.id,n,t,f)}p(n).then((()=>{c!==n&&d(n),!i&&t&&u(n)}))}render(){return o().createElement(Un.R,{onEvent:this.handleEvent})}});var Zn=n(83452);const Wn="VXNPfe",zn="Dn0ToJ",qn=()=>r.createElement("div",{className:Wn},r.createElement(Zn.$,{className:zn}));var Gn,$n=n(77028),Yn=n.n($n),Kn=n(59332),Xn=n(55061),Qn=n(93221),Jn=n(82629),er=n(47944);function tr(e,t){return{showInitialOverlay:!t&&e}}const nr=(0,He.$j)((e=>({isVideoPlayRequested:(0,mt.mC)(e),isVideoPauseRequested:(0,mt.Bc)(e),isVideoPlaying:(0,mt.i8)(e),isVideoPaused:(0,mt.rE)(e),isVideoPlayingOptimistic:(0,mt.BW)(e),isVideoPausedOptimistic:(0,mt.ah)(e),isVideoPlayAborted:(0,mt.GI)(e),isMuted:(0,Jn.Xm)(e),playAtFullScreen:!(0,Mt.tq)(e)})),((e,t)=>{let{fedops:n}=t;return{pauseVideo:Pt.r,setAutoPlayed:er.b,setPlaybackStatus:Pt.dt,abortPlayVideo:Pt.YU,requestPlay:Fn.x,handleVideoEnd:()=>e((0,Qn.J8)(n))}}))((Gn=class extends o().Component{constructor(e){super(e),qe()(this,"onPlayStart",(()=>{const{setPlaybackStatus:e,onPlayStart:t}=this.props;e(Kn.VIDEO_PLAYBACK_STATUSES.PLAYING),t(),this.setState(tr(!1,!0))})),qe()(this,"onFullScreenChanged",(e=>{this.props.onFullScreenChanged(e);let t={isInFullScreen:e};if(!e){this.props.pauseVideo();const n=!0;t={...t,paused:n,...tr(n,e)}}this.setState(t)})),qe()(this,"onPause",(()=>{const{setPlaybackStatus:e,isVideoPaused:t,setAutoPlayed:n}=this.props;t||(n(!1),e(Kn.VIDEO_PLAYBACK_STATUSES.PAUSED))})),qe()(this,"onResume",(()=>{const{setPlaybackStatus:e}=this.props;e(Kn.VIDEO_PLAYBACK_STATUSES.PLAYING)})),qe()(this,"onEnded",(()=>{const{setPlaybackStatus:e}=this.props;e(Kn.VIDEO_PLAYBACK_STATUSES.ENDED)})),qe()(this,"onLoad",(()=>{const{setPlaybackStatus:e}=this.props;e(Kn.VIDEO_PLAYBACK_STATUSES.INITIAL)})),qe()(this,"onPlayBlocked",(()=>{const{videoItem:e,requestPlay:t}=this.props;e.id&&t(e.id,!0)})),this.state={...tr(e.paused,!1),paused:e.paused}}UNSAFE_componentWillReceiveProps(e){const{paused:t}=e,{isInFullScreen:n}=this.state;if(this.props.paused!==t){const e={...tr(t,n),paused:t};t&&n&&(e.showInitialOverlay=!1),this.setState(e)}}render(){const{playAtFullScreen:e}=this.props,{paused:t,showInitialOverlay:n}=this.state,r=ie().omit(this.props,"paused","mobileMode","playAtFullScreen","onFullScreenChanged","onPurchaseClick","onSubscribeClick","onRentClick");return o().createElement(Xn.Z,Yn()({},r,{showInitialOverlayOnPause:!0,mobileMode:!0,paused:t,playAtFullScreen:e,showInitialOverlay:n,onPlayStart:this.onPlayStart,onPause:this.onPause,onResume:this.onResume,onEnded:this.onEnded,onPlayBlocked:this.onPlayBlocked,onLoad:this.onLoad,onFullScreenChanged:this.onFullScreenChanged}))}},qe()(Gn,"defaultProps",{onFullScreenChanged:ie().noop,onPlayStart:ie().noop,onPlayBlocked:ie().noop}),Gn));var rr,or=n(27113),ir=n(66060);const sr=(0,He.$j)((e=>({isVideoPlayRequested:(0,mt.mC)(e),isVideoPauseRequested:(0,mt.Bc)(e),isVideoPlaying:(0,mt.i8)(e),isVideoPaused:(0,mt.rE)(e),isVideoPlayingOptimistic:(0,mt.BW)(e),isVideoPausedOptimistic:(0,mt.ah)(e),isVideoPlayAborted:(0,mt.GI)(e),isMuted:(0,Jn.Xm)(e)})),((e,t)=>{let{fedops:n}=t;return{handleVideoEnd:()=>e((0,Qn.J8)(n)),setAutoPlayed:t=>e((0,er.b)(t)),setPlaybackStatus:t=>e((0,Pt.dt)(t)),abortPlayVideo:t=>e((0,Pt.YU)(t)),setMuted:t=>e((0,ir.Zj)(t)),playVideo:t=>e((0,Pt.CQ)(t))}}))((rr=class extends o().Component{constructor(){super(...arguments),qe()(this,"onPause",(()=>{const{setPlaybackStatus:e,isVideoPaused:t,setAutoPlayed:n}=this.props;t||(n(!1),e(Kn.VIDEO_PLAYBACK_STATUSES.PAUSED))})),qe()(this,"onResume",(()=>{const{setPlaybackStatus:e}=this.props;e(Kn.VIDEO_PLAYBACK_STATUSES.PLAYING)})),qe()(this,"onPlayStart",(()=>{const{setPlaybackStatus:e,onPlayStart:t}=this.props;e(Kn.VIDEO_PLAYBACK_STATUSES.PLAYING),t()})),qe()(this,"onEnded",(()=>{const{setPlaybackStatus:e,onEnded:t}=this.props;e(Kn.VIDEO_PLAYBACK_STATUSES.ENDED),t()})),qe()(this,"onLoad",(()=>{const{setPlaybackStatus:e}=this.props;e(Kn.VIDEO_PLAYBACK_STATUSES.INITIAL)})),qe()(this,"onPlayBlocked",(()=>{const{videoItem:e,setMuted:t,playVideo:n}=this.props;e.id&&(t(!0),n(e.id))}))}render(){const e=ie().omit(this.props,"mobileMode");return o().createElement(Xn.Z,Yn()({},e,{mobileMode:!1,onPlayBlocked:this.onPlayBlocked,onLoad:this.onLoad,onPause:this.onPause,onResume:this.onResume,onPlayStart:this.onPlayStart,onEnded:this.onEnded}))}},qe()(rr,"defaultProps",{onEnded:ie().noop,onPlayStart:ie().noop}),rr)),ar=(0,or.F)(sr),lr=o().createContext({PlayerComponent:null,isPortableDevice:!1}),cr=e=>class extends o().Component{render(){return o().createElement(lr.Consumer,null,(t=>{let{PlayerComponent:n,isPortableDevice:r}=t;return o().createElement(e,Yn()({},this.props,{PlayerComponent:n,isPortableDevice:r}))}))}},ur=(0,He.$j)((e=>({isPortableDevice:(0,Mt.ND)(e)})))(class extends o().PureComponent{render(){const{children:e,isPortableDevice:t}=this.props,n=t?nr:ar;return o().createElement(lr.Provider,{value:{PlayerComponent:n,isPortableDevice:t}},e)}});var dr=n(27291),pr=n(16005),hr=n(43677);const mr="EDIT_MODE_CHANGE",fr="PAGE_NAVIGATION",gr="SETTINGS_UPDATED";var vr;const yr={setHydratedData:An.cX},br=(0,He.$j)((e=>({viewMode:We.At(e)})),yr)((0,xn.X)((vr=class extends o().Component{constructor(){super(...arguments),qe()(this,"handleEditModeChange",(e=>{let{editMode:t}=e;const{viewMode:n,setHydratedData:r,onChange:o}=this.props;o({prevViewMode:n,viewMode:t}),r({viewMode:t})}))}componentDidUpdate(e){(0,xn.A)(mr,this.handleEditModeChange,{prevProps:e,nextProps:this.props})}render(){return null}},qe()(vr,"defaultProps",{onChange:ie().noop}),vr)));var Er=n(14348),Sr=n(82053);const Cr=["previewType"],wr=(e,t)=>{const n=ie().union(ie().keys(e),ie().keys(t));return ie().filter(n,(n=>!ie().includes(Cr,n)&&e[n]!==t[n]))},Pr=(e,t)=>{const{booleans:n,numbers:r}=((e,t)=>{const{booleans:n,numbers:r}=t.appSettings,{booleans:o,numbers:i}=e.appSettings;return{booleans:wr(n,o),numbers:wr(r,i)}})(e,t);return n.length||r.length},Ir={getPublicChannel:dr.f,getPaymentInfo:pr.q,resetSearch:hr.v2,resetSelectedVideo:Dn.Fn,pauseVideo:Pt.r,fetchVideos:Er.OF},Or=(0,He.$j)((e=>({currentChannelId:(0,Bn.gO)(e),currentVideoId:(0,Sr.bb)(e),appSettings:(0,Ze.GR)(e),isEditor:We.ZJ(e),isUnsavedTemplateSite:(0,An.$M)(e)})),Ir)((0,xn.X)(class extends o().Component{constructor(){super(...arguments),qe()(this,"handleEditModeChange",(()=>{this.reset(),(0,an.Mr)()})),qe()(this,"reloadOnDashboardClosing",(e=>{e===Vt.Z.DASHBOARD.CLOSED&&(this.reloadData(),this.reset())})),qe()(this,"reset",(()=>{const{resetSearch:e,resetSelectedVideo:t,pauseVideo:n}=this.props;n(),e(),t()}))}componentDidUpdate(e){(0,xn.A)(gr,this.reloadOnDashboardClosing,{prevProps:e,nextProps:this.props})}UNSAFE_componentWillReceiveProps(e){e.isEditor&&Pr(this.props,e)&&this.reset()}reloadData(){const{currentChannelId:e}=this.props,{getPublicChannel:t,getPaymentInfo:n,fetchVideos:r}=this.props;t(e),n(e),r()}render(){return o().createElement(br,{onChange:this.handleEditModeChange})}})),Tr=(0,xn.X)(class extends o().Component{constructor(){super(...arguments),qe()(this,"stopPlaybackOnPageChange",(e=>{let{wasAppOnPage:t}=e;t&&this.props.isVideoPlaying&&this.props.pauseVideo()}))}componentDidUpdate(e){(0,xn.A)(fr,this.stopPlaybackOnPageChange,{prevProps:e,nextProps:this.props})}render(){return null}});var Nr=n(63891),Ar=n(56709),xr=n(47260),_r=n(79507);const Lr={logWidgetSystem:Nn.e},Rr=(0,He.$j)(null,Lr)(class extends o().Component{constructor(){super(...arguments),qe()(this,"logPaymentSucceeded",(()=>{this.props.logWidgetSystem("video.purchase.succeeded")})),qe()(this,"logSubscribeSucceeded",(()=>{this.props.logWidgetSystem("channel.subscribe.succeeded")})),qe()(this,"logUnsubscribeSucceeded",(()=>{this.props.logWidgetSystem("channel.unsubscribe.succeeded")}))}render(){return o().createElement(_r.Z,{onSale:this.logPaymentSucceeded,onRent:this.logPaymentSucceeded,onSubscription:this.logSubscribeSucceeded,onSubscriptionCancel:this.logUnsubscribeSucceeded})}});var kr=n(8304),Dr=n(85505);const Vr=(0,He.$j)((e=>({isUnsavedTemplateSite:(0,An.$M)(e)})))(class extends o().Component{async componentDidMount(){const{isUnsavedTemplateSite:e}=this.props;if(e)return;const t=await(async()=>{try{return await Dr.m.settings.get()}catch(e){return 404===e.status?{}:Promise.reject(e)}})(),n=(0,kr.I)();n.Settings.appEngaged(t.biUserUploadedFiles?n.Settings.PremiumIntent.PAID:n.Settings.PremiumIntent.FREE)}render(){return null}});var Mr=n(46310);const Br=(0,Mr.TU)("FIT_INTO_VIEW");var Fr=n(32356),Ur=n(10801);const jr={pauseVideo:Pt.r,fitIntoView:Br,openFullScreenVideoOnMount:()=>(e,t)=>{const n=t();if(!(0,yt.p)(n))return;if(!(0,Ze.ZG)(n)&&!(0,Ze.v3)(n))return;const r=(0,yt.F)(n),o=(0,ft.js)(n),i=Ct(n);e((0,St.Ep)(o.id,r,i,(()=>e((0,St.xZ)()))))}},Hr=(0,He.$j)((e=>({appSettings:(0,Ze.GR)(e),videoIdFromUrl:(0,ht.hU)(e),viewMode:(0,We.At)(e),compId:(0,An.Qp)(e),layout:(0,Ze.z3)(e),isCompIdInUrl:(0,ht.CP)(e),isVideoPlaying:(0,mt.BW)(e),isSiteMode:(0,We.bK)(e),isEditorMode:(0,We.ZJ)(e)})),jr)((0,Ur.yT)(class extends o().Component{constructor(){super(...arguments),qe()(this,"saveContainerRef",(e=>{e&&dt.engage(e),this.containerRef=e}))}componentDidMount(){this.focusWithinHandler=(()=>{const e=[].slice,t=e=>{e.classList.remove("focus-within")},n=(()=>{let n,r;const o=()=>{let o=pt?document.activeElement:null;if(n=!1,r!==o)for(r=o,e.call(document.getElementsByClassName("focus-within")).forEach(t);o&&o.classList;)o.classList.add("focus-within"),o=o.parentNode};return()=>{n||(requestAnimationFrame(o),n=!0)}})();return document.addEventListener("focus",n,!0),document.addEventListener("blur",n,!0),n(),{disengage(){document.removeEventListener("focus",n,!0),document.removeEventListener("blur",n,!0)}}})(),this.scrollToIfNecessary(),this.props.openFullScreenVideoOnMount()}componentWillUnmount(){this.focusWithinHandler.disengage(),dt.disengage(this.containerRef)}scrollToIfNecessary(){const{videoIdFromUrl:e,isCompIdInUrl:t,fitIntoView:n}=this.props;(t||e)&&(n(),this.containerRef.scrollIntoView({behavior:"smooth"}))}render(){const{children:e,appSettings:t,viewMode:n,layout:r,windowSize:i,isVideoPlaying:s,pauseVideo:a,isSiteMode:l,isEditorMode:c,compId:u}=this.props;return o().createElement(o().Fragment,null,o().createElement("div",{ref:this.saveContainerRef,"data-layout":r,className:Fr.Z.root,"data-view-mode":n},o().createElement(Rn,null),o().createElement(wt.Z,null),o().createElement(Rr,null),l||i.width?o().createElement(ur,null,o().createElement(o().Fragment,null,e,o().createElement(Hn,null))):o().createElement(qn,null),o().createElement(Or,null),o().createElement(Tr,{isVideoPlaying:s,pauseVideo:a}),o().createElement(Ar.Z,null),o().createElement(xr.Z,null),o().createElement(Nr.X,null),o().createElement(Tn,{settings:t}),o().createElement(Gt,{compId:u}),c&&o().createElement(Vr,null)))}}));var Zr=n(90655),Wr=n(12524),zr=n.n(Wr),qr=n(23040);const Gr="AgluQk",$r="mXrOdj";class Yr extends o().Component{constructor(){super(...arguments),this.handleNextClick=()=>{const{isDisabled:e,onNextClick:t}=this.props;e||t()},this.handlePrevClick=()=>{const{isDisabled:e,onPrevClick:t}=this.props;e||t()}}renderPrevButton(){const{nextButtonClassName:e,prevButtonClassName:t,prevButtonAriaLabel:n,customArrowIcon:r,isRTL:i}=this.props,s=zr()({[e]:i,[t]:!i,[$r]:i,[Gr]:!i});return o().createElement(qr.f,{onClick:this.handlePrevClick,className:s,ariaLabel:n,dataHook:"prev-button",arrowIcon:r})}renderNextButton(){const{nextButtonClassName:e,prevButtonClassName:t,nextButtonAriaLabel:n,customArrowIcon:r,isRTL:i}=this.props,s=zr()({[e]:!i,[t]:i,[$r]:!i,[Gr]:i});return o().createElement(qr.f,{onClick:this.handleNextClick,className:s,ariaLabel:n,dataHook:"next-button",arrowIcon:r})}render(){const{isPrevVisible:e,isNextVisible:t,className:n,dataHook:r}=this.props;return o().createElement("nav",{className:n,"data-hook":r},e&&this.renderPrevButton(),t&&this.renderNextButton())}}var Kr=n(72632),Xr=n(46735),Qr=n(6263),Jr=n(2654),eo=n(70428),to=n(43753),no=n(5452),ro=n(94115);const oo=(0,Mr.DM)("openFullScreenPurchaseOverlay",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return t=>{e.interactionStarted(ro.y.CASHIER_MODAL_LOAD),t((0,to.yN)(...n))}})),io=(0,Mr.DM)("openFullScreenMemberOnlyOverlay",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return t=>{e.interactionStarted(ro.y.CASHIER_MODAL_LOAD),t((0,to.QC)(...n))}})),so=(0,Mr.DM)("openFullScreenSubscribeOverlay",((e,t,n)=>(r,o)=>{const{channelInfo:{info:i}}=o(),s=(0,no.vm)(i);e.interactionStarted(ro.y.CASHIER_MODAL_LOAD),r((0,to.fb)(t,n,s))})),ao=(0,Mr.DM)("openFullScreenRentOverlay",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return t=>{e.interactionStarted(ro.y.CASHIER_MODAL_LOAD),t((0,to.P5)(...n))}}));var lo=n(94715),co=n(25022),uo=n(24038),po=n(53203),ho=n(36229),mo=n(21627),fo=n(58660),go=n(59052),vo=n(38387);const yo=(0,mo.Z)("CLIENT.PLAYER_OVERLAY.PLAY_SELECTED_VIDEO"),bo=(0,Mr.DM)("playSelectedVideo",(e=>{let{videoItem:t,onPlaySelectedVideo:n=ie().noop,shouldSendPlayStartBi:r=!0,showChannelCover:o}=e;return(e,i)=>{const s=i(),a=(0,ft.js)(s),l=(0,bt.C)(s),c=(0,fo.kM)(s,{showChannelCover:o}),u=We.g4(s),d=We.ZJ(s);(u||d)&&t.memberOnly?e((0,go.CC)()):(r&&e((0,vo.mi)({channelData:a,videoItem:t,currentSiteUser:l,isChannelCover:c})),n(t),e(yo()))}}));var Eo=n(5476),So=n(65435);const Co=(0,gt.P1)([ho.ab,So.uP,ho.uB],((e,t,n)=>Boolean(!e&&t&&!n.length)));var wo=n(50336);const Po=(0,He.$j)((e=>({canShowVideoInfoButton:(0,Ze.jS)(e),canShowShareButton:(0,wo.r)(e)})))(class extends o().Component{render(){const{canShowVideoInfoButton:e,canShowShareButton:t,children:n}=this.props;return n({canShowVideoInfoButton:e,canShowShareButton:t})}});var Io=n(27179),Oo=n(16951);const To=/(auto|scroll|overlay)/,No=(e,t)=>null===e.parentNode?t:No(e.parentNode,t.concat([e])),Ao=(e,t)=>getComputedStyle(e,null).getPropertyValue(t),xo=e=>To.test((e=>Ao(e,"overflow")+Ao(e,"overflow-y")+Ao(e,"overflow-x"))(e));function _o(e){if(e instanceof HTMLElement||e instanceof SVGElement)return ie().find(No(e.parentNode,[]),xo)||document.scrollingElement||document.documentElement}const Lo=M().shape({value:M().any,label:M().node}),Ro=(M().arrayOf(Lo),"sPq7sb"),ko="vqMUFN",Do="Tn05eY",Vo="tr9JOS",Mo="tZoUzy";class Bo extends o().Component{constructor(){super(...arguments),qe()(this,"getRef",(e=>{e&&this.props.getRef(e)}))}render(){const{onlyOnHover:e,scrollX:t,scrollY:n,className:r}=this.props,i=ie().pick(this.props,"children","style"),s=Ot()(r,Ro,{[Vo]:e,[ko]:t,[Do]:n});return o().createElement("div",Yn()({},i,{ref:this.getRef,className:s}))}}qe()(Bo,"defaultProps",{scrollX:!1,scrollY:!0,onlyOnHover:!1,getRef:ie().noop});class Fo extends o().Component{render(){const{className:e}=this.props,t=ie().omit(this.props,"styles");return o().createElement(Bo,Yn()({},t,{className:Ot()(Mo,e)}))}}const Uo=27,jo=9,Ho=32,Zo=13,Wo=40,zo=38,qo="BJkZnp",Go="lPh4SU",$o="hVZyxp",Yo="DcOYqb",Ko="wjiqNI",Xo="aCO_qz",Qo="noE83V",Jo="_Dn3Tk",ei="p_NKWW",ti="THK2ia",ni="mLNr7p",ri="QtzTPk",oi="YNUfaB",ii="i2RKws",si="S2Tm4R",ai="G1tQxj",li="yaW5oV",ci="d00dSQ",ui="XlND82",di="p4faKx";class pi extends o().Component{render(){const{selected:e,className:t,label:n,height:r,containerRef:i,onClick:s,onKeyDown:a,isFocusable:l}=this.props,c=Ot()(oi,t,{selected:e});return o().createElement("section",{className:c,ref:i,"data-hook":"dropdown-option",title:n,onClick:s,onKeyDown:a,style:{height:r},role:"option",tabIndex:l?0:-1},n)}}class hi extends o().Component{constructor(){super(...arguments),qe()(this,"state",{isOpen:!1,isPopoutHidden:!0}),qe()(this,"wrapperRef",null),qe()(this,"selectedOptionRef",null),qe()(this,"triangleRef",null),qe()(this,"popoutRef",null),qe()(this,"saveRef",((e,t)=>{this[e]=t})),qe()(this,"close",(()=>{this.state.isOpen&&this.setOpenState(!1)})),qe()(this,"toggle",(e=>{e.nativeEvent.stopImmediatePropagation(),this.setOpenState(!this.state.isOpen)})),qe()(this,"closeAndCallOnChange",(e=>{const{onChange:t}=this.props,n=e!==this.props.value;this.setOpenState(!1),n&&t(e)})),qe()(this,"handleWrapperKeyDown",(e=>{this.openFromKeyboard(e)})),qe()(this,"handleOptionKeyDown",((e,t)=>{this.navigateByOptionsFromKeyboard(t),this.selectOptionFromKeyboard(t,e),this.closeFromKeyboard(t)}))}componentDidUpdate(){this.updatePopoutPosition()}componentWillUnmount(){clearTimeout(this.timeout)}calculatePosition(){const{popoutTriangleSide:e,popoutPosition:t}=this.props;return n=this.triangleRef,r=this.popoutRef,void 0===(o={triangleSide:e,popoutPosition:t})&&(o=kt),Dt(n,r,o={...o,popoutSide:_t(o.triangleSide)});var n,r,o}updatePopoutPosition(){if(!this.props.enablePopoutPositioningUpdate)return;const e=this.wrapperRef.getBoundingClientRect(),{scrollLeft:t}=_o(_o(this.wrapperRef));let{left:n,top:r,offsetX:o}=this.calculatePosition();n-=t+e.left-o,r-=e.top,this.popoutRef.style.left=`${n}px`,this.popoutRef.style.top=`${r}px`}setOpenState(e){e?(this.setState({isOpen:e,isPopoutHidden:!1}),this.props.onOpen(),function(e){Tt.Z.publish(Vt.Z.POPOUT.SHOW,e)}(this.popoutRef)):(this.setState({isOpen:e}),this.timeout=setTimeout((()=>{this.setState({isPopoutHidden:!0})}),200))}openFromKeyboard(e){ie().includes([Wo,Zo,Ho],e.keyCode)&&(e.stopPropagation(),this.setOpenState(!0),this.selectedOptionRef&&ie().delay((()=>this.selectedOptionRef.focus())))}closeFromKeyboard(e){e.keyCode===Uo&&(e.stopPropagation(),this.close(),this.wrapperRef&&ie().delay((()=>this.wrapperRef.focus()))),e.keyCode===jo&&(e.stopPropagation(),this.close())}navigateByOptionsFromKeyboard(e){e.keyCode===Wo&&e.target.nextElementSibling&&(e.stopPropagation(),e.target.nextElementSibling.focus()),e.keyCode===zo&&e.target.previousElementSibling&&(e.stopPropagation(),e.target.previousElementSibling.focus())}selectOptionFromKeyboard(e,t){ie().includes([Zo,Ho],e.keyCode)&&(e.stopPropagation(),this.closeAndCallOnChange(t),this.wrapperRef&&ie().delay((()=>this.wrapperRef.focus())))}renderSelectedValue(){const{options:e,value:t,placeholder:n}=this.props,r=ie().find(e,(e=>ie().isEqual(e.value,t)));return r?o().createElement("span",{className:Yo,title:r.label},r.label):o().createElement("span",{className:Yo},o().createElement("span",{className:$o},n))}renderOptions(){const{options:e,value:t,height:n,optionClassName:r,selectedOptionClassName:i,maxOptionsVisible:s,ScrollbarWrapper:a}=this.props,l=ie().map(e,((e,s)=>{if(e.categoryLabel)return o().createElement("div",{key:`category-${e.categoryLabel}`,className:ii},e.categoryLabel);const a=ie().isEqual(t,e.value),l=Ot()(r,{[i]:i&&a});return o().createElement(pi,{key:s,label:e.label,value:e.value,selected:a,className:l,height:n,containerRef:a?(0,$t.r)(this.saveRef,"selectedOptionRef"):null,isFocusable:this.state.isOpen,onKeyDown:(0,$t.r)(this.handleOptionKeyDown,e.value),onClick:(0,$t.r)(this.closeAndCallOnChange,e.value)})}));return e.length>s?o().createElement(a,null,l):l}render(){const{rounded:e,disabled:t,popoutTriangleSide:n,popoutPosition:r,options:i,className:s,optionsClassName:a,labelClassName:l,triangleClassName:c,height:u,maxOptionsVisible:d,enablePopoutPositioningUpdate:p,dataHook:h,ariaLabel:m,isFocusable:f}=this.props,{isOpen:g,isPopoutHidden:v}=this.state,y=Ot()(qo,s,{[li]:g,[ai]:v,[si]:e,[di]:t}),b=i.length>d?u*d:0,E=p?{}:{[Qo]:r===xt.LEFT,[Jo]:r===xt.CENTER,[ei]:r===xt.RIGHT,[ti]:r===xt.TOP},S=Ot()(Xo,a,{[ni]:1===i.length,...E}),C=f&&!g&&v?0:-1;return o().createElement("section",{ref:(0,$t.r)(this.saveRef,"wrapperRef"),className:y,"data-hook":h,onKeyDown:this.handleWrapperKeyDown,style:{height:u},"aria-label":v?m:null,"aria-hidden":!g&&!v||null,role:"listbox",tabIndex:C},o().createElement("div",{className:Ot()(Go,l),"data-hook":"dropdown-label",style:{height:u},onClick:this.toggle},this.renderSelectedValue(),o().createElement(Oo.Z,{getRef:(0,$t.r)(this.saveRef,"triangleRef"),className:Ot()(Ko,c),name:"triangle-down"})),o().createElement(Ht,{getRef:(0,$t.r)(this.saveRef,"popoutRef"),className:S,innerClassName:ri,popoutSide:_t(n),height:b,isActive:g&&!v,onClickOutside:this.close},this.renderOptions()))}}qe()(hi,"defaultProps",{height:32,maxOptionsVisible:5,onChange:ie().noop,onOpen:ie().noop,rounded:!1,disabled:!1,isFocusable:!0,popoutTriangleSide:Nt.NONE,popoutPosition:xt.LEFT,enablePopoutPositioningUpdate:!1,ScrollbarWrapper:Fo});class mi extends o().Component{render(){const e=ie().omit(this.props,"styles");return o().createElement(hi,Yn()({},e,{className:Ot()(ci,e.className),ScrollbarWrapper:Fo}))}}class fi extends o().Component{render(){const e=ie().omit(this.props,"styles");return o().createElement(hi,Yn()({},e,{className:Ot()(ci,ui),ScrollbarWrapper:Fo}))}}const gi="z5PY68",vi="PRNfxB",yi="XPe5nm";var bi;const Ei=(0,ln.Z)()((bi=class extends o().Component{render(){const{className:e,onClick:t,isFocusable:n}=this.props;return o().createElement("button",{className:Ot()(yi,e),onClick:t,"data-hook":"channel-account-info",tabIndex:n?0:-1,"aria-label":this.props.t("widget.accessibility.my-account")},o().createElement(Oo.Z,{name:"avatar"}))}},qe()(bi,"defaultProps",{isFocusable:!0}),bi));var Si=n(31461),Ci=n(7896),wi=n(81665),Pi=n(80753),Ii=n(56666),Oi=n(13185),Ti=n.n(Oi),Ni="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Ai=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Ni&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var xi=Ni&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Ai))}};function _i(e){return e&&"[object Function]"==={}.toString.call(e)}function Li(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ri(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ki(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Li(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:ki(Ri(e))}function Di(e){return e&&e.referenceNode?e.referenceNode:e}var Vi=Ni&&!(!window.MSInputMethodContext||!document.documentMode),Mi=Ni&&/MSIE 10/.test(navigator.userAgent);function Bi(e){return 11===e?Vi:10===e?Mi:Vi||Mi}function Fi(e){if(!e)return document.documentElement;for(var t=Bi(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Li(n,"position")?Fi(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ui(e){return null!==e.parentNode?Ui(e.parentNode):e}function ji(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var s,a,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&Fi(s.firstElementChild)!==s?Fi(l):l;var c=Ui(e);return c.host?ji(c.host,t):ji(e,Ui(t).host)}function Hi(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function Zi(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Wi(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Bi(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function zi(e){var t=e.body,n=e.documentElement,r=Bi(10)&&getComputedStyle(n);return{height:Wi("Height",t,n,r),width:Wi("Width",t,n,r)}}var qi=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Gi=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},$i=Object.assign||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};function Yi(e){return $i({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Ki(e){var t={};try{if(Bi(10)){t=e.getBoundingClientRect();var n=Hi(e,"top"),r=Hi(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?zi(e.ownerDocument):{},s=i.width||e.clientWidth||o.width,a=i.height||e.clientHeight||o.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var u=Li(e);l-=Zi(u,"x"),c-=Zi(u,"y"),o.width-=l,o.height-=c}return Yi(o)}function Xi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Bi(10),o="HTML"===t.nodeName,i=Ki(e),s=Ki(t),a=ki(e),l=Li(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=Yi({top:i.top-s.top-c,left:i.left-s.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(r&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Hi(t,"top"),o=Hi(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(d,t)),d}function Qi(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Li(e,"position"))return!0;var n=Ri(e);return!!n&&Qi(n)}function Ji(e){if(!e||!e.parentElement||Bi())return document.documentElement;for(var t=e.parentElement;t&&"none"===Li(t,"transform");)t=t.parentElement;return t||document.documentElement}function es(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},s=o?Ji(e):ji(e,Di(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Xi(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:Hi(n),a=t?0:Hi(n,"left");return Yi({top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:o,height:i})}(s,o);else{var a=void 0;"scrollParent"===r?"BODY"===(a=ki(Ri(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r;var l=Xi(a,s,o);if("HTML"!==a.nodeName||Qi(s))i=l;else{var c=zi(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function ts(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=es(n,r,i,o),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map((function(e){return $i({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function ns(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Xi(n,r?Ji(t):ji(t,Di(n)),r)}function rs(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function os(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function is(e,t,n){n=n.split("-")[0];var r=rs(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),s=i?"top":"left",a=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[s]=t[s]+t[l]/2-r[l]/2,o[a]=n===a?t[a]-r[c]:t[os(a)],o}function ss(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function as(e,t,n){var r=void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=ss(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n));return r.forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&_i(n)&&(t.offsets.popper=Yi(t.offsets.popper),t.offsets.reference=Yi(t.offsets.reference),t=n(t,e))})),t}function ls(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ns(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ts(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=is(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=as(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function cs(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function us(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function ds(){return this.state.isDestroyed=!0,cs(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[us("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ps(e){var t=e.ownerDocument;return t?t.defaultView:window}function hs(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||hs(ki(i.parentNode),t,n,r),r.push(i)}function ms(e,t,n,r){n.updateBound=r,ps(e).addEventListener("resize",n.updateBound,{passive:!0});var o=ki(e);return hs(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function fs(){this.state.eventsEnabled||(this.state=ms(this.reference,this.options,this.state,this.scheduleUpdate))}function gs(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,ps(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function vs(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ys(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&vs(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var bs=Ni&&/Firefox/i.test(navigator.userAgent);function Es(e,t,n){var r=ss(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var Ss=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Cs=Ss.slice(3);function ws(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Cs.indexOf(e),r=Cs.slice(n+1).concat(Cs.slice(0,n));return t?r.reverse():r}var Ps="flip",Is="clockwise",Os="counterclockwise";function Ts(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(ss(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],s=o[2];if(!i)return e;if(0===s.indexOf("%")){return Yi("%p"===s?n:r)[t]/100*i}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){vs(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Ns={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:Gi({},l,i[l]),end:Gi({},l,i[l]+i[c]-s[c])};e.offsets.popper=$i({},s,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,s=o.reference,a=r.split("-")[0],l=void 0;return l=vs(+n)?[+n,0]:Ts(n,i,s,a),"left"===a?(i.top+=l[0],i.left-=l[1]):"right"===a?(i.top+=l[0],i.left+=l[1]):"top"===a?(i.left+=l[0],i.top-=l[1]):"bottom"===a&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Fi(e.instance.popper);e.instance.reference===n&&(n=Fi(n));var r=us("transform"),o=e.instance.popper.style,i=o.top,s=o.left,a=o[r];o.top="",o.left="",o[r]="";var l=es(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=s,o[r]=a,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),Gi({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),Gi({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=$i({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[a])&&(e.offsets.popper[l]=i(r[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Es(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,a=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",m=rs(r)[c];a[h]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(a[h]-m)),a[d]+m>s[h]&&(e.offsets.popper[d]+=a[d]+m-s[h]),e.offsets.popper=Yi(e.offsets.popper);var f=a[d]+a[c]/2-m/2,g=Li(e.instance.popper),v=parseFloat(g["margin"+u]),y=parseFloat(g["border"+u+"Width"]),b=f-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(s[c]-m,b),0),e.arrowElement=r,e.offsets.arrow=(Gi(n={},d,Math.round(b)),Gi(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(cs(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=es(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=os(r),i=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case Ps:s=[r,o];break;case Is:s=ws(r);break;case Os:s=ws(r,!0);break;default:s=t.behavior}return s.forEach((function(a,l){if(r!==a||s.length===l+1)return e;r=e.placement.split("-")[0],o=os(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),m=d(c.right)>d(n.right),f=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===r&&h||"right"===r&&m||"top"===r&&f||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&h||y&&"end"===i&&m||!y&&"start"===i&&f||!y&&"end"===i&&g),E=!!t.flipVariationsByContent&&(y&&"start"===i&&m||y&&"end"===i&&h||!y&&"start"===i&&g||!y&&"end"===i&&f),S=b||E;(p||v||S)&&(e.flipped=!0,(p||v)&&(r=s[l+1]),S&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=$i({},e.offsets.popper,is(e.instance.popper,e.offsets.reference,e.placement)),e=as(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=i[n]-(a?o[s?"width":"height"]:0),e.placement=os(t),e.offsets.popper=Yi(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Es(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ss(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=ss(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==i?i:t.gpuAcceleration,a=Fi(e.instance.popper),l=Ki(a),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,s=Math.floor,a=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:s:a,h=t?i:a;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!bs),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",h=us("transform"),m=void 0,f=void 0;if(f="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===p?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,s&&h)c[h]="translate3d("+m+"px, "+f+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=f*g,c[p]=m*v,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=$i({},y,e.attributes),e.styles=$i({},c,e.styles),e.arrowStyles=$i({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ys(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ys(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=ns(o,t,e,n.positionFixed),s=ts(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),ys(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},As={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ns},xs=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=xi(this.update.bind(this)),this.options=$i({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys($i({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=$i({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return $i({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&_i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return qi(e,[{key:"update",value:function(){return ls.call(this)}},{key:"destroy",value:function(){return ds.call(this)}},{key:"enableEventListeners",value:function(){return fs.call(this)}},{key:"disableEventListeners",value:function(){return gs.call(this)}}]),e}();xs.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,xs.placements=Ss,xs.Defaults=As;const _s=xs;var Ls=n(22241),Rs=n.n(Ls),ks=Rs()(),Ds=Rs()(),Vs=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,(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"referenceNode",void 0),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}(0,wi.Z)(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return r.createElement(ks.Provider,{value:this.referenceNode},r.createElement(Ds.Provider,{value:this.setReferenceNode},this.props.children))},t}(r.Component),Ms=function(e){return Array.isArray(e)?e[0]:e},Bs=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},Fs=function(e,t){if("function"==typeof e)return Bs(e,t);null!=e&&(e.current=t)},Us={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},js={},Hs=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,(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"state",{data:void 0,placement:void 0}),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"popperInstance",void 0),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"popperNode",null),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"arrowNode",null),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"setPopperNode",(function(e){e&&t.popperNode!==e&&(Fs(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"setArrowNode",(function(e){t.arrowNode=e})),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:(0,Ci.Z)({},t.props.modifiers,{arrow:(0,Ci.Z)({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"getPopperStyle",(function(){return t.popperNode&&t.state.data?(0,Ci.Z)({position:t.state.data.offsets.popper.position},t.state.data.styles):Us})),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:js})),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=(0,Pi.Z)((0,Pi.Z)(t)).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new _s(n,e,t.getOptions()))})),(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}(0,wi.Z)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&Ti()(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){Fs(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return Ms(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(r.Component);(0,Ii.Z)(Hs,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});_s.placements;function Zs(e){var t=e.referenceElement,n=(0,Si.Z)(e,["referenceElement"]);return r.createElement(ks.Consumer,null,(function(e){return r.createElement(Hs,(0,Ci.Z)({referenceElement:void 0!==t?t:e},n))}))}var Ws=n(45982),zs=n.n(Ws),qs=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,(0,Ii.Z)((0,Pi.Z)((0,Pi.Z)(t)),"refHandler",(function(e){Fs(t.props.innerRef,e),Bs(t.props.setReferenceNode,e)})),t}(0,wi.Z)(t,e);var n=t.prototype;return n.componentWillUnmount=function(){Fs(this.props.innerRef,null)},n.render=function(){return zs()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),Ms(this.props.children)({ref:this.refHandler})},t}(r.Component);function Gs(e){return r.createElement(Ds.Consumer,null,(function(t){return r.createElement(qs,(0,Ci.Z)({setReferenceNode:t},e))}))}function $s(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Ys=n(88677),Ks=n.n(Ys);const Xs=!1,Qs=o().createContext(null);var Js=function(e){return e.scrollTop},ea="unmounted",ta="exited",na="entering",ra="entered",oa="exiting",ia=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=ta,r.appearStatus=na):o=ra:o=t.unmountOnExit||t.mountOnEnter?ea:ta,r.state={status:o},r.nextCallback=null,r}(0,wi.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ea?{status:ta}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==na&&n!==ra&&(t=na):n!==na&&n!==ra||(t=oa)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===na){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ks().findDOMNode(this);n&&Js(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ta&&this.setState({status:ea})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ks().findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||Xs?this.safeSetState({status:ra},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,s),this.safeSetState({status:na},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:ra},(function(){t.props.onEntered(i,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ks().findDOMNode(this);t&&!Xs?(this.props.onExit(r),this.safeSetState({status:oa},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ta},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ta},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ks().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],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ea)return null;var t=this.props,n=t.children,r=(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,(0,Si.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o().createElement(Qs.Provider,{value:null},"function"==typeof n?n(e,r):o().cloneElement(o().Children.only(n),r))},t}(o().Component);function sa(){}ia.contextType=Qs,ia.propTypes={},ia.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sa,onEntering:sa,onEntered:sa,onExit:sa,onExiting:sa,onExited:sa},ia.UNMOUNTED=ea,ia.EXITED=ta,ia.ENTERING=na,ia.ENTERED=ra,ia.EXITING=oa;const aa=ia;var la=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=$s(n.className,r):n.setAttribute("class",$s(n.className&&n.className.baseVal||"",r)));var n,r}))},ca=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}(0,wi.Z)(t,e);var n=t.prototype;return n.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&&Js(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))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&la(e,r),o&&la(e,o),i&&la(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,Si.Z)(e,["classNames"]));return o().createElement(aa,(0,Ci.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o().Component);ca.defaultProps={classNames:""},ca.propTypes={};const ua=ca;var da=!("undefined"==typeof window||!window.document||!window.document.createElement),pa=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var ha=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),pa(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return da?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Ks().createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(o().Component);ha.propTypes={children:M().node.isRequired,node:M().any};const ma=ha;var fa=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var ga=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),fa(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){this.renderPortal()}},{key:"componentWillUnmount",value:function(){Ks().unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(e){this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var t=this.props.children;"function"==typeof this.props.children.type&&(t=o().cloneElement(this.props.children)),this.portal=Ks().unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(o().Component);const va=ga;ga.propTypes={children:M().node.isRequired,node:M().any};const ya=Ks().createPortal?ma:va;var ba=n(41929),Ea=n(34067),Sa=n.n(Ea);class Ca extends r.PureComponent{constructor(e){super(e),this._isInsideClick=e=>{const{rootRef:t,excludeClass:n}=this.props;let r=e.target;for(;r;){if(t.current===r)return!0;if(r.classList){if("string"==typeof n&&r.classList.contains(n))return!0;if("object"==typeof n&&r.classList.toString().split(" ").some((e=>n.includes(e))))return!0}r=r.parentElement}},this._onClickOutside=e=>{const{onClickOutside:t}=this.props;"function"!=typeof t||this._isInsideClick(e)||t(e)},this._boundEvents=[]}_registerEvents(){const{options:e}=this.props;["mouseup","touchend"].forEach((t=>{document.addEventListener(t,this._onClickOutside,e),this._boundEvents.push(t)}))}_unregisterEvents(){const{options:e}=this.props;for(;this._boundEvents.length>0;){const t=this._boundEvents.pop();document.removeEventListener(t,this._onClickOutside,e)}}componentDidMount(){this.props.onClickOutside&&this._registerEvents()}componentDidUpdate(e){this.props.onClickOutside!==e.onClickOutside&&(this.props.onClickOutside?this._registerEvents():this._unregisterEvents())}componentWillUnmount(){this._unregisterEvents()}render(){return this.props.children}}const wa=r.createContext({excludeClickOutsideClasses:[]}),Pa=({moveBy:e,placement:t=""})=>t.includes("right")||t.includes("left")?`${e?e.y:0}px, ${e?e.x:0}px`:`${e?e.x:0}px, ${e?e.y:0}px`,Ia="data-";function Oa(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Ta(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}const{overflow:t,overflowX:n,overflowY:r}=function(e){return 1!==e.nodeType?[]:e.ownerDocument.defaultView.getComputedStyle(e,null)}(e);return/(auto|scroll|overlay)/.test(t+r+n)?e:Ta(Oa(e))}var Na=n(98121),Aa=n.n(Na);function xa(e,t){if(!e)return null;if("string"==typeof e)switch(e){case"window":case"viewport":return document.body;case"scrollParent":return Ta(t);default:return}return"function"==typeof e?function(e,t){if(!t)return;const n=_a(e,t);if(n)return n;return}(e,t):Aa()(e)?e:void 0}function _a(e,t){if(t)return e(t)?t:_a(e,Oa(t))}const La=e=>{const t=({children:e})=>"string"==typeof e?r.createElement("div",{},e):e;return t.displayName=e,t};let Ra;const ka=!1;const Da=(e,t)=>e&&e.classList.remove(...t.split(" ")),Va=({timeout:e})=>{if("object"==typeof e){const{enter:t,exit:n}=e;return void 0!==t&&void 0!==n&&(t>0||n>0)}return!!e},Ma=(e,t)=>e?t.startsWith("top")||t.startsWith("bottom")?{left:`${e}px`}:t.startsWith("left")||t.startsWith("right")?{top:`${e}px`}:{}:{};class Ba extends r.Component{constructor(e){super(e),this.targetRef=null,this.portalNode=null,this.appendToNode=null,this.clickOutsideRef=null,this.popperScheduleUpdate=null,this._hideTimeout=null,this._showTimeout=null,this._handleClickOutside=e=>{const{onClickOutside:t,shown:n,disableClickOutsideWhenClosed:r}=this.props;!t||r&&!n||t(e)},this._onKeyDown=e=>{const{onEscPress:t}=this.props;t&&"Escape"===e.key&&t(e)},this._onDocumentKeyUp=e=>{const{onTabOut:t}=this.props;"undefined"!=typeof document&&this.popoverContentRef.current&&!this.popoverContentRef.current.contains(document.activeElement)&&t(e)},this.state={isMounted:!1,shown:e.shown||!1},this.clickOutsideRef=r.createRef(),this.popoverContentRef=r.createRef(),this.clickOutsideClass=Sa()("clickOutside"),this.contentHook=`popover-content-${e["data-hook"]||""}-${Ra}`}focus(){this.popoverContentRef.current&&this.popoverContentRef.current.focus()}getPopperContentStructure(e){const{shown:t}=this.state,{moveBy:n,appendTo:o,placement:i,showArrow:s,moveArrowTo:a,flip:l,fixed:c,customArrow:u,role:d,id:p,zIndex:h,minWidth:m,maxWidth:f,width:g,dynamicWidth:v,excludeClass:y=this.clickOutsideClass,contentClassName:b,onEscPress:E,tabIndex:S,"aria-label":C,"aria-labelledby":w,"aria-describedby":P}=this.props,I=(({width:e,moveBy:t,appendTo:n,shouldAnimate:r,flip:o,fixed:i,placement:s,isTestEnv:a,minWidth:l,dynamicWidth:c})=>{const u=!i,d={offset:{offset:Pa({moveBy:t,placement:s})},computeStyle:{gpuAcceleration:!r},flip:{enabled:void 0!==o?o:!t},preventOverflow:{enabled:u},hide:{enabled:u}};return(c||l||e)&&(d.setPopperWidth={enabled:!0,order:840,fn:t=>{const{width:n}=t.offsets.reference;return t.styles=Object.assign(Object.assign({},t.styles),(({width:e,minWidth:t,dynamicWidth:n,referenceWidth:r})=>{return{minWidth:n?`${r}px`:(o=t,"string"==typeof o?o:`${o}px`),width:e||"auto"};var o})({width:e,referenceWidth:n,minWidth:l,dynamicWidth:c})),t}}),a&&(d.computeStyle={enabled:!1}),n&&(d.preventOverflow=Object.assign(Object.assign({},d.preventOverflow),{boundariesElement:n})),d})({minWidth:m,width:g,dynamicWidth:v,moveBy:n,appendTo:o,shouldAnimate:Va(this.props),flip:l,placement:i,fixed:c,isTestEnv:ka}),O=r.createElement(Zs,{modifiers:I,placement:i},(({ref:n,style:o,placement:l,arrowProps:c,scheduleUpdate:m})=>(this.popperScheduleUpdate=m,r.createElement(wa.Consumer,null,(({excludeClickOutsideClasses:m})=>r.createElement("div",{ref:n,"data-hook":"popover-content","data-content-element":this.contentHook,style:Object.assign(Object.assign({},o),{zIndex:h,maxWidth:f}),"data-placement":l||i,className:zr()(ba.classes.popover,this.clickOutsideClass,b,{[ba.classes.withArrow]:s,[ba.classes.popoverContent]:!s},...m)},s&&this.renderArrow(c,a,l||i,u),r.createElement("div",{key:"popover-content",id:p,role:d,tabIndex:S,ref:this.popoverContentRef,className:s?ba.classes.popoverContent:"",onKeyDown:t&&E?this._onKeyDown:void 0,"aria-label":C,"aria-labelledby":w,"aria-describedby":P},r.createElement(wa.Provider,{value:{excludeClickOutsideClasses:[y,...m]}},e.Content))))))));return this.wrapWithAnimations(O)}applyStylesToPortaledNode(){const{shown:e}=this.state;Va(this.props)||e?((e,t)=>{e&&e.classList.add(...t.split(" "))})(this.portalNode,this.portalClasses):Da(this.portalNode,this.portalClasses)}wrapWithAnimations(e){const{timeout:t}=this.props,{shown:n}=this.state;return Va(this.props)?r.createElement(ua,{in:n,timeout:t,unmountOnExit:!0,classNames:{enter:ba.classes["popoverAnimation-enter"],enterActive:ba.classes["popoverAnimation-enter-active"],exit:ba.classes["popoverAnimation-exit"],exitActive:ba.classes["popoverAnimation-exit-active"]},onExited:()=>Da(this.portalNode,this.portalClasses)},e):e}renderPopperContent(e){const t=this.getPopperContentStructure(e);return this.portalNode?r.createElement(ya,{node:this.portalNode},t):t}renderArrow(e,t,n,o){const i={ref:e.ref,key:"popover-arrow","data-hook":"popover-arrow",style:Object.assign(Object.assign({},e.style),Ma(t,n))};return o?o(n,i):r.createElement("div",Object.assign({},i,{className:ba.classes.arrow}))}componentDidMount(){const{shown:e,onTabOut:t}=this.props;this.initAppendToNode(),t&&e&&this._setBlurByKeyboardListener(),this.setState({isMounted:!0})}_setBlurByKeyboardListener(){"undefined"!=typeof document&&document.addEventListener("keyup",this._onDocumentKeyUp,!0)}_removeBlurListener(){"undefined"!=typeof document&&document.removeEventListener("keyup",this._onDocumentKeyUp,!0)}initAppendToNode(){const{appendTo:e}=this.props;this.appendToNode=xa(e,this.targetRef),this.appendToNode&&(this.portalNode=document.createElement("div"),this.portalNode.setAttribute("data-hook","popover-portal"),Object.assign(this.portalNode.style,{position:"static",top:0,left:0,width:0,height:0}),this.appendToNode.appendChild(this.portalNode))}hidePopover(){const{isMounted:e}=this.state,{hideDelay:t,onTabOut:n}=this.props;e&&!this._hideTimeout&&(this._showTimeout&&(clearTimeout(this._showTimeout),this._showTimeout=null),n&&this._removeBlurListener(),t?this._hideTimeout=setTimeout((()=>{this.setState({shown:!1})}),t):this.setState({shown:!1}))}showPopover(){const{isMounted:e}=this.state,{showDelay:t,onTabOut:n}=this.props;e&&!this._showTimeout&&(this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),n&&this._setBlurByKeyboardListener(),t?this._showTimeout=setTimeout((()=>{this.setState({shown:!0})}),t):this.setState({shown:!0}))}componentWillUnmount(){this.portalNode&&this.appendToNode.children.length&&this.appendToNode.removeChild(this.portalNode),this.portalNode=null,this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),this._showTimeout&&(clearTimeout(this._showTimeout),this._showTimeout=null)}updatePosition(){this.popperScheduleUpdate&&this.popperScheduleUpdate()}componentDidUpdate(e){const{shown:t}=this.props;this.portalNode&&(this.portalClasses=(0,ba.st)(ba.classes.root,this.props.className),this.applyStylesToPortaledNode()),e.shown!==t?t?this.showPopover():this.hidePopover():this.updatePosition()}render(){const{onMouseEnter:e,onMouseLeave:t,onKeyDown:n,onClick:o,children:i,style:s,id:a,excludeClass:l,fluid:c}=this.props,{isMounted:u,shown:d}=this.state,p=((e,t)=>r.Children.toArray(e).reduce(((e,t)=>r.isValidElement(t)&&t.type&&t.type.displayName?(e[t.type.displayName.split(".").pop()]=t,e):e),t||{}))(i,{Element:null,Content:null}),h=Va(this.props),m=u&&(h||d);return r.createElement(Vs,null,r.createElement(Ca,{rootRef:this.clickOutsideRef,onClickOutside:d?this._handleClickOutside:void 0,excludeClass:[this.clickOutsideClass,l]},r.createElement("div",Object.assign({ref:this.clickOutsideRef,style:s,"data-content-hook":this.contentHook,className:(0,ba.st)(ba.classes.root,{fluid:c},this.props.className),onMouseEnter:e,onMouseLeave:t,id:a},(e=>{const t={};for(const n in e)e.hasOwnProperty(n)&&n.length>5&&n.startsWith(Ia)&&(t[n]=e[n]);return t})(this.props)),r.createElement(Gs,{innerRef:e=>this.targetRef=e},(({ref:e})=>r.createElement("div",{ref:e,className:ba.classes.popoverElement,"data-hook":"popover-element",onClick:o,onKeyDown:n},p.Element))),m&&this.renderPopperContent(p))))}}Ba.displayName="CorePopover",Ba.defaultProps={flip:!0,fixed:!1,zIndex:1e3},Ba.Element=La("Popover.Element"),Ba.Content=La("Popover.Content");var Fa,Ua="o__54SF3W",ja="sl80Rak",Ha=n.sts.bind(null,Ua);(function(e){e.hover="hover",e.click="click"})(Fa||(Fa={}));const Za=Object.assign(r.forwardRef(((e,t)=>{const{triggerAction:n,wiredToSiteColors:o,children:i,className:s,shown:a}=e,l=(0,f.__rest)(e,["triggerAction","wiredToSiteColors","children","className","shown"]),[c,u]=r.useState(!1),d=r.useRef(void 0!==a||n===Fa.click),p=r.useRef(function(e="prefix"){return`${e}_${Math.random().toString(36).substr(2,9)}`}("popover")),h=r.useMemo((()=>["bottom","top"].some((t=>new RegExp(t).test(e.placement)))),[e.placement]),[m,g]=r.Children.toArray(i).sort(((e,t)=>{if([e,t].every(r.isValidElement))return e.type===Za.Element?-1:0}));return r.createElement(Ba,Object.assign({ref:t,showArrow:!0,shown:null!=a?a:c,moveBy:h?{y:8}:{x:8},className:Ha(ja,{wired:o},s)},function(e){switch(n){case Fa.click:return{role:"dialog",appendTo:"parent"};case Fa.hover:default:return Object.assign(Object.assign({},e.current?{}:{onMouseEnter:v,onMouseLeave:y}),{role:"tooltip",id:p.current})}}(d),l),r.cloneElement(m,{},r.cloneElement(m.props.children,function(e){switch(n){case Fa.hover:return Object.assign({"aria-describedby":p},e.current?{}:{onFocus:v,onBlur:y});case Fa.click:default:return{}}}(d))),g);function v(){u(!0)}function y(){u(!1)}})),{Element:Ba.Element,Content:Ba.Content});Za.defaultProps={triggerAction:Fa.hover,wiredToSiteColors:!0,placement:"top"},Za.displayName="Popover";const Wa="KImp7D",za="VvMBwR",qa="wAuGTD",Ga="wgykCW",$a=(0,ln.Z)()(class extends o().Component{render(){const{children:e,userEmail:t,logoutLabel:n,onLogoutClick:r}=this.props;return o().createElement("section",{"aria-labelledby":"account_btn_mobile_heading",className:Wa},o().createElement("div",{className:`qa-account-button-user-email ${za}`,id:"account_btn_mobile_heading",role:"heading","aria-label":`${this.props.t("widget.account.signed-as")} ${t}`},t),e?o().createElement("div",null,e):null,o().createElement("div",{className:qa,role:"presentation"},o().createElement(tn.Qj,{className:`qa-account-button-user-logout ${Ga}`,dataHook:"account-info-logout-button",ariaLabel:n,onClick:r},n)))}}),Ya="gQFCEZ",Ka="nmGSLq";var Xa="oPTQ3EI",Qa="sK_AubX",Ja=n.sts.bind(null,Xa);const el=(0,ln.Z)()(class extends o().Component{render(){const{logoutLabel:e,userEmail:t,onLogoutClick:n,className:r}=this.props;return o().createElement(Za,{hideDelay:300,placement:"bottom",wiredToSiteColors:!1,className:Ja(Qa),contentClassName:Ya,"data-hook":"channel-account-info"},o().createElement(Za.Element,null,o().createElement("button",{className:Ot()(Ka,r),"aria-label":this.props.t("widget.accessibility.my-account")},o().createElement(Oo.Z,{name:"avatar"}))),o().createElement(Za.Content,null,o().createElement($a,{logoutLabel:e,userEmail:t,onLogoutClick:n})))}}),tl=(0,ln.Z)()((0,He.$j)(((e,t)=>({appSettings:(0,Ze.GR)(e),userEmail:(0,bt.v)(e),isSubscriptionEnabled:(0,no._l)(t.channelData)})))((0,xn.X)(class extends o().Component{constructor(){super(...arguments),qe()(this,"handleLogoutEvent",(()=>{this.disableConsumeEvents||(this.props.onLogoutClick(),this.disableConsumeEvents=!0)})),qe()(this,"handleAccountButtonClicked",(()=>{this.props.onClick()}))}componentDidUpdate(e){(0,xn.A)(Vt.Z.SESSION.LOGOUT_USER,this.handleLogoutEvent,{prevProps:e,nextProps:this.props})}renderLoginButton(){const{className:e,onLoginClick:t,isFocusable:n}=this.props;return o().createElement("div",{className:e},o().createElement(tn.Qj,{className:gi,isFocusable:n,onClick:t,dataHook:"login-button"},this.props.t("widget.account.sign-in")))}renderAccountButtonWithTooltip(){const{infoButtonClassName:e,userEmail:t,onLogoutClick:n}=this.props;return o().createElement(el,{className:e,logoutLabel:this.props.t("widget.account.logout"),userEmail:t,onLogoutClick:n,dataHook:"info-button-with-tooltip"})}renderAccountButtonSimple(){const{infoButtonClassName:e,isFocusable:t}=this.props;return o().createElement(Ei,{className:e,isFocusable:t,onClick:this.handleAccountButtonClicked})}renderAccountButton(){const{isSubscriptionEnabled:e}=this.props;return e?this.renderAccountButtonSimple():this.renderAccountButtonWithTooltip()}render(){const{className:e,userEmail:t}=this.props;return t?o().createElement("div",{"data-hook":"member-actions",className:Ot()("qa-account",e,vi)},this.renderAccountButton()):this.renderLoginButton()}}))),nl="H0pYyI",rl="Smn6XV",ol={sendBiEvent:Io.t},il=(0,ln.Z)()((0,He.$j)((e=>({isVisible:(0,Ze.jb)(e)})),ol)(class extends o().Component{constructor(){super(...arguments),qe()(this,"doSendAboutInfoDisplayedBI",ie().once((()=>{this.props.sendBiEvent("widget.aboutCh.displayed")}))),qe()(this,"handleClick",(e=>{this.props.sendBiEvent("widget.aboutCh.clicked"),this.props.onClick(e)}))}componentDidMount(){this.sendAboutInfoDisplayedBI()}componentDidUpdate(){this.sendAboutInfoDisplayedBI()}sendAboutInfoDisplayedBI(){this.props.isVisible&&this.doSendAboutInfoDisplayedBI()}render(){const{className:e,isVisible:t,isFocusable:n}=this.props;return t?o().createElement(tn.Qj,{className:Ot()(e,nl,rl),dataHook:"channel-info-button",isFocusable:n,ariaLabel:this.props.t("widget.accessibility.show-channel-info"),onClick:this.handleClick},o().createElement(Oo.Z,{name:"info-1"})):null}}));var sl=n(1831);const al=(0,ln.Z)()((0,He.$j)(((e,t)=>({subscriptionPriceInfo:(0,Xr.il)(t.dealInfo),isPricingPlan:(0,no.vm)(t)})))(class extends o().Component{render(){const{subscriptionPriceInfo:e,isPricingPlan:t}=this.props;return t?this.props.t("widget.mobile.overlay-button.subscribe.short"):(0,sl.Z)("widget.channel-actions.subscribe",e)}})),ll=(0,He.$j)(((e,t)=>({dealInfo:(0,no.R6)(t),isVisible:(0,po.g)({channel:t.channelData})})))(class extends o().Component{render(){const{isVisible:e,dealInfo:t,className:n,onClick:r,isFocusable:i,channelData:s}=this.props;return e?o().createElement(tn.Qj,{className:Ot()(n,nl),dataHook:"channel-subscription-button",isFocusable:i,onClick:r},o().createElement(al,{dealInfo:t,isVisible:e,channel:s})):null}}),cl={logBi:Nn.k,openFullScreenSubscribeOverlay:so,openFullScreenPurchaseOverlay:oo,openFullScreenRentOverlay:ao},ul=(0,He.$j)((e=>({currentSiteUser:(0,bt.C)(e)})),cl)(class extends o().Component{constructor(){super(...arguments),qe()(this,"openPurchase",(0,eo.Q)((()=>{const{videoItem:e,channelData:t,fedops:n}=this.props;this.props.openFullScreenPurchaseOverlay(n,t.id,e.id)}))),qe()(this,"openRent",(0,eo.Q)((()=>{const{videoItem:e,channelData:t,fedops:n}=this.props;this.props.openFullScreenRentOverlay(n,t.id,e.id)}))),qe()(this,"openSubscription",(0,eo.Q)((()=>{const{channelData:e,fedops:t}=this.props;this.props.openFullScreenSubscribeOverlay(t,e.id,(()=>{this.props.logBi("widget.subscriptionPopUp.Completed",{channelID:e.id,result:"canceled",errorMsg:""})}))})))}render(){const e=ie().omit(this.props,"mobileMode","playAtFullScreen","showInitialOverlay","showControls","showPoster","currentTime","paused","muted","onPurchaseClick","onSubscribeClick","onRentClick"),{PlayerComponent:t}=this.props;return o().createElement(t,Yn()({},e,{playAtFullScreen:!1,showPlayer:!1,showInitialOverlay:!0,showControls:!0,showPoster:!0,paused:!0,shouldLoadVideo:!1,onPurchaseClick:this.openPurchase,onSubscribeClick:this.openSubscription,onRentClick:this.openRent}))}}),dl=(0,or.F)(ul),pl="kTZMZS",hl="RoUZxc";var ml;const fl={logBi:Nn.k},gl=(0,ln.Z)()((0,He.$j)(null,fl)((ml=class extends o().Component{constructor(){super(...arguments),qe()(this,"getOptions",ie().memoize((e=>{const t=ie().map(e,(e=>({label:e,value:e})));return[{label:this.props.t("widget.categories.all-videos"),value:""},...t]}))),qe()(this,"sendCategoriesClickedBI",(()=>{this.props.logBi("widget.categories.clicked")})),qe()(this,"handleChange",(e=>{this.sendCategorySelectedBI(),this.props.onCategorySelect(e)}))}sendCategorySelectedBI(){this.props.logBi("widget.categories.selected")}render(){const{className:e,selectedCategory:t,DropdownClass:n,maxOptionsVisible:r,height:i,list:s,isFocusable:a}=this.props;return o().createElement(n,{className:`${e} qa-widget-categories`,dataHook:"categories-dropdown",optionsClassName:pl,optionClassName:hl,height:i,maxOptionsVisible:r,isFocusable:a,onChange:this.handleChange,onOpen:this.sendCategoriesClickedBI,value:t||"",options:this.getOptions(s),ariaLabel:this.props.t("widget.accessibility.select-category")})}},qe()(ml,"defaultProps",{selectedCategory:null,DropdownClass:mi}),ml)));function vl(e,t){t.keyCode===Zo&&t.target===t.currentTarget&&(t.stopPropagation(),e(t))}function yl(e,t){t.keyCode===Uo&&e(t)}const bl="Yz7RJD",El="t9pi2n",Sl="cyU7z6",Cl="i2ZD_X",wl="_c_9Lp",Pl="hkFf_y",Il="BbU8Lb",Ol="KqhR8r",Tl="FcA5r4",Nl="CGKm2n",Al="hkplHd";var xl;const _l={logBi:Nn.k},Ll=(0,ln.Z)()((0,He.$j)(null,_l)((xl=class extends o().Component{constructor(e){super(e),qe()(this,"updateValue",(()=>{const{value:e}=this.input;this.props.onChange(e),this.setState({currentValue:e})})),qe()(this,"searchOnEnter",(e=>{const{keyCode:t}=e.nativeEvent,{value:n}=this.input;13===t&&(this.sendSearchBI(n),this.permitSearch())})),qe()(this,"permitSearch",(()=>{const{onSearch:e}=this.props,{value:t}=this.input;this.setFocused(!0),e(t)})),qe()(this,"closeSearch",(()=>{this.input.value="",this.input.blur(),this.setState({currentValue:"",focused:!1}),this.props.onClose("")})),qe()(this,"handleFocus",(e=>{this.props.onFocus(e),this.setFocused(!0)})),qe()(this,"handleBlur",(e=>{this.props.onBlur(e),this.setFocused(!1)})),this.state={currentValue:e.value,focused:!1}}componentDidMount(){document.addEventListener("keyup",(0,$t.r)(yl,this.closeSearch))}UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({currentValue:e.value})}componentWillUnmount(){document.removeEventListener("keyup",(0,$t.r)(yl,this.closeSearch))}sendSearchBI(e){""!==e&&this.props.logBi("widget.search.clicked")}setFocused(e){setTimeout((()=>this.setState({focused:e})),0)}render(){const{className:e,value:t,layout:n}=this.props,{currentValue:r,focused:i}=this.state,s=this.props.t("widget.search-bar.search-video"),a=Ot()(bl,{[Al]:"strip"===n,[Il]:r,[El]:t,[Ol]:t!==r,[Cl]:i,className:e});return o().createElement("div",{className:Ot()(e,a)},o().createElement("div",{className:Nl},s),o().createElement("input",{type:"text",className:Sl,"data-hook":"search-bar-input",value:r,onKeyPress:this.searchOnEnter,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.updateValue,ref:e=>this.input=e,placeholder:s}),o().createElement(Oo.Z,{className:wl,name:"search-bar"}),o().createElement(tn.Qj,{className:Pl,onClick:this.closeSearch,"aria-hidden":!r,isFocusable:Boolean(r||t),ariaLabel:this.props.t("widget.accessibility.close-videos-search")},o().createElement(Oo.Z,{name:"clear-search"})),o().createElement(tn.Qj,{className:Tl,onClick:this.permitSearch,isFocusable:Boolean(r||t),ariaLabel:this.props.t("widget.accessibility.search-videos")},o().createElement(Oo.Z,{name:"permit-search"})))}},qe()(xl,"defaultProps",{layout:"classic",value:"",onChange:ie().noop,onSearch:ie().noop,onClose:ie().noop,onFocus:ie().noop,onBlur:ie().noop,onKeyPress:ie().noop}),xl))),Rl="Avrjeh",kl="k4k3EA",Dl="Nr2TdO",Vl="V9GFfX",Ml="aY0V9f";class Bl extends o().Component{constructor(){super(...arguments),this.preventScrollOnTab=e=>{e.keyCode===jo&&this.containerRef.current&&(this.containerRef.current.scrollLeft=0)},this.containerRef=o().createRef(),this.contentRef=o().createRef(),this.handleTransitionEnd=e=>{e.target===this.contentRef.current&&void 0!==this.props.onTransitionEnd&&this.props.onTransitionEnd()}}componentDidMount(){document.addEventListener("keydown",this.preventScrollOnTab)}componentWillUnmount(){document.removeEventListener("keydown",this.preventScrollOnTab)}getCurrentPageOffset(){const{currentPageNumber:e,width:t,isRTL:n}=this.props;return{transform:`translate3d(${e*t*(n?1:-1)}px, 0, 0)`}}render(){const{children:e,disabled:t,className:n,dataHook:r,isRTL:i}=this.props,s=zr()(kl,{[Dl]:t,[Ml]:i,[Vl]:!i});return o().createElement("div",{"data-hook":r,className:zr()(Rl,n),ref:this.containerRef},o().createElement("div",{className:s,ref:this.contentRef,onTransitionEnd:this.handleTransitionEnd,"data-hook":"content-slider-content",style:this.getCurrentPageOffset()},e))}}const Fl="m0EVYH",Ul=(e,t)=>{const n=t?`minmax(${t}px, 1fr)`:"1fr";return Array(e).fill(n).join(" ")};class jl extends o().Component{constructor(){super(...arguments),this.containerClassName=`${this.props.styleId}-${this.props.gridId}`,this.containerRef=o().createRef(),this.state={isClient:!1}}componentDidMount(){this.containerRef.current&&(this.containerRef.current.style.gridTemplateColumns="",this.containerRef.current.style.msGridColumns=""),"undefined"!=typeof window&&this.setState({isClient:!0})}getCss(){const{rows:e=1,cols:t=1,minItemWidth:n}=this.props;return`.${this.containerClassName} {\n      grid-template-rows: ${Ul(e)};\n      grid-template-columns: ${Ul(t,n)};\n    }`}render(){const{style:e,children:t}=this.props;return o().createElement(o().Fragment,null,o().createElement("style",{key:this.state.isClient?"first-pass":"second-pass"},this.getCss()),o().createElement("div",{ref:this.containerRef,className:zr()(Fl,this.containerClassName),style:e},t))}}const Hl={container:"hNl9my",page:"GxH_UU"};class Zl extends o().Component{constructor(){super(...arguments),this.renderPage=(e,t)=>{const{isRTL:n,numberOfRows:r,numberOfColumns:i,gridMinWidth:s,styleId:a,gridId:l}=this.props,c=r&&i&&s&&a,u=zr()({[Hl.page]:!c,[Hl.rtl]:n,[Hl.ltr]:!n}),d=this.renderPageItems(e,t);return o().createElement("div",{key:t,"data-hook":"page-list-page",className:u,style:{minWidth:this.props.pageWidth||"100vw"}},d&&c?o().createElement(jl,{gridId:l,styleId:a,rows:r,cols:i,style:{minWidth:s}},d):d)}}shouldRenderPage(e){const{currentPageNumber:t,preRenderedCount:n}=this.props;return Math.abs(t-e)<=n}renderPageItems(e,t){const{renderItem:n,currentPageNumber:r}=this.props,o=t===r;return this.shouldRenderPage(t)?e.map(((e,t)=>n(e,t,o))):null}render(){return o().createElement("div",{className:Hl.container},this.props.itemsByPageNumber.map(this.renderPage))}}Zl.propTypes={currentPageNumber:M().number,pageWidth:M().number,itemsByPageNumber:M().arrayOf(M().array),preRenderedCount:M().number,renderItem:M().func,isRTL:M().bool,styleId:M().string,numberOfRows:M().number,numberOfColumns:M().number,gridMinWidth:M().number},Zl.defaultProps={preRenderedCount:1};const Wl=(0,mo.Z)("CLIENT.PLAYER_OVERLAY.OPEN_SUBSCRIPTION"),zl=(0,Mr.DM)("openSubscription",(e=>(t,n)=>{const r=n(),o=(0,ft.js)(r);(0,eo.Q)((()=>{t((0,Io.t)("widget.subscription.clicked")),t((0,vo.Ki)("subscribe")),t(so(e,o.id,(()=>t((0,vo.PR)()))))}))(),t(Wl())})),ql=(0,mo.Z)("CLIENT.PLAYER_OVERLAY.OPEN_FULL_SCREEN_OVERLAY"),Gl=(0,Mr.DM)("openPlayerOverlay",((e,t,n)=>(r,o)=>{const i=o(),s=(0,ft.js)(i),a=(0,Ze.GR)(i),l=(0,fo.kM)(i,{showChannelCover:n}),c=(0,vt.D$)(s,t),u={channelData:s,appSettings:a,videoItem:t,isChannelCover:l};(0,eo.Q)((()=>{r((0,vo.CN)(u)),r(((e,t,n)=>{let{channelData:r,videoItem:o}=t;return t=>{switch(n){case vt.FE.SUBSCRIBE:return t(so(e,r.id));case vt.FE.RENT:return t(ao(e,r.id,o.id));default:return t(oo(e,r.id,o.id))}}})(e,u,c))}))(),r(ql())}));class $l extends o().Component{constructor(e){super(e),this._node=null}componentDidMount(){this.measure()}componentDidUpdate(){this.props.shouldMeasure&&this.measure()}measure(){var e;this.props.shouldMeasure&&this.props.onMeasure({width:(e=this._node,function(e,t){try{return e()}catch(e){return t}}((()=>e.getBoundingClientRect().width),0))})}render(){const{children:e}=this.props;return o().cloneElement(o().Children.only(e),{ref:e=>this._node=e})}}function Yl(e){return o().Children.map(e.children,(e=>e.key))}qe()($l,"defaultProps",{shouldMeasure:!0,onMeasure:ie().noop});class Kl extends o().Component{constructor(){super(...arguments),qe()(this,"state",{width:null}),qe()(this,"onMeasure",(e=>{const t=ie().get(e,"width");0!==t&&t!==this.state.width&&this.setState({width:t})}))}UNSAFE_componentWillReceiveProps(e){const t=Yl(e).join("++"),n=Yl(this.props).join("++");e.maxWidth===this.props.maxWidth&&t===n||this.setState({width:null})}render(){const{maxWidth:e,children:t,shouldAlwaysMeasure:n}=this.props,r=this.state.width,[i,s]=o().Children.toArray(t);return o().createElement($l,{onMeasure:this.onMeasure,shouldMeasure:n||null===r},r&&r>e?s:i)}}var Xl=n(84582);const Ql={lineClamp:2},Jl=e=>{let{text:t,clampOptions:n={},enforceJSClamp:r}=e;return o().createElement(Xl.v,{text:t,dataHook:"title",wrapperTag:"h3",enforceJSClamp:r,clampOptions:{...Ql,...n}})},ec=(0,ln.Z)()((e=>{let{className:t,t:n}=e;return o().createElement("span",{className:t},n("widget.overlay-buttons.coming-soon"))}));var tc=n(31672),nc=n(75608);const rc={overlay:"QniVAu",content:"g5boAs","top-content":"oWyccR",topContent:"oWyccR",title:"Eq1_bc","preview-text":"XQN6Cx",previewText:"XQN6Cx",publisher:"cGcZic","buttons-wrapper":"Ji2wt1",buttonsWrapper:"Ji2wt1",button:"V5U_kO","rounded-icon":"tnkS87",roundedIcon:"tnkS87",bordered:"_tdJHD",icon:"J1ZDNm",text:"WIqvYz","play-icon":"noNjtK tnkS87",playIcon:"noNjtK tnkS87","soon-info":"tJkDNg",soonInfo:"tJkDNg",buttons:"wAYen1","next-icon":"Hndcy0",nextIcon:"Hndcy0","live-label":"axBxrO",liveLabel:"axBxrO","overlay-wrapper":"xv2xCN",overlayWrapper:"xv2xCN","preview-hover":"j2LnOJ",previewHover:"j2LnOJ",background:"SdHgAX",visible:"Ta1S5p","title-block":"T1IBbf",titleBlock:"T1IBbf","shown-on-hover":"tLKHGM",shownOnHover:"tLKHGM","small-buy-button":"iwUpNB",smallBuyButton:"iwUpNB","small-subscribe-button":"jUrdsN",smallSubscribeButton:"jUrdsN","small-buttons":"OMbR5e",smallButtons:"OMbR5e","paid-icon":"_XpmUb tnkS87",paidIcon:"_XpmUb tnkS87"};var oc;const ic={openSubscription:zl,openPlayerOverlay:Gl,playSelectedVideo:bo},sc=(0,He.$j)(((e,t)=>({isThumbnailsPreviewHover:(0,Ze.ok)(e),isTitleAlwaysShown:(0,Ze.eB)(e),isTitleNeverShown:(0,Ze.mK)(e),subscribeButtonText:(0,fo.MT)(e,t),publisherText:(0,fo.y7)(e,t),playButtonText:(0,fo.lb)(e,t),purchaseButtonText:(0,fo.m4)(e,t),opacityStyle:(0,fo.uo)(e)})),ic)((oc=class extends o().Component{constructor(e){super(e),qe()(this,"playSelectedVideo",(0,eo.Q)((e=>{e.preventDefault(),e.stopPropagation();const{videoItem:t,playSelectedVideo:n,onPlaySelectedVideo:r,showChannelCover:o}=this.props;n({videoItem:t,onPlaySelectedVideo:r,showChannelCover:o})}))),qe()(this,"handleSubscriptionClick",(e=>{e.preventDefault(),e.stopPropagation(),this.props.openSubscription(this.props.fedops)})),qe()(this,"handlePurchaseClick",(e=>{e.preventDefault(),e.stopPropagation();const{videoItem:t,openPlayerOverlay:n,fedops:r}=this.props;n(r,t)}));const{durationStr:t}=this.props.videoItem;this.clampOptions={truncateText:` / ${t}`,textAlign:"center"}}get titleBlock(){const{videoItem:e,isTitleNeverShown:t}=this.props;return t?null:o().createElement("div",{className:rc["title-block"]},o().createElement("div",{className:rc.title},o().createElement(Jl,{text:e.title,clampOptions:this.clampOptions,enforceJSClamp:!0})))}get smallPlayButton(){return this.props.playButtonText?o().createElement(tn.Me,{className:Ot()(rc.button,rc["play-button"]),onClick:this.playSelectedVideo,isFocusable:this.props.isContentFocusable},o().createElement(Oo.M,{className:Ot()(rc.icon,rc["play-icon"]),name:"arrow-right-filled"})):null}get smallSubscribeButton(){return this.props.subscribeButtonText?o().createElement(tn.Me,{className:Ot()(rc.button,rc["small-subscribe-button"]),onClick:this.handleSubscriptionClick,isFocusable:this.props.isContentFocusable},o().createElement(Oo.M,{className:Ot()(rc.icon,rc["paid-icon"]),name:"paid"})):null}get smallPurchaseButton(){return this.props.purchaseButtonText?o().createElement(tn.Me,{className:Ot()(rc.button,rc["small-buy-button"]),onClick:this.handlePurchaseClick,isFocusable:this.props.isContentFocusable},o().createElement(Oo.M,{className:Ot()(rc.icon,rc["paid-icon"]),name:"paid"})):null}get normalButtons(){const e=this.renderPlayButton(),t=this.renderSubscribeButton(),n=this.renderPurchaseButton(),r=`${e?"1":""}${t?"2":""}${n?"3":""}`;return o().createElement("div",{className:rc["buttons-wrapper"],key:r},e,t||n)}get smallButtons(){return o().createElement("div",{className:rc["buttons-wrapper"]},this.smallPlayButton,this.smallSubscribeButton||this.smallPurchaseButton)}get buttons(){const{width:e,isOnlySmallButtons:t}=this.props;return t?this.smallButtons:o().createElement(Kl,{maxWidth:e-48},this.normalButtons,this.smallButtons)}renderPlayButton(){const{channelData:e,isContentFocusable:t,playButtonText:n}=this.props;if(!(0,nc.z3)(e))return o().createElement(ec,{className:rc["soon-info"]});if(!n)return null;const r=Ot()(rc.button,rc["play-button"]),i=Ot()(rc.icon,rc["play-icon"]);return o().createElement("a",{href:"",className:r,"data-hook":"overlay-play-button",onClick:this.playSelectedVideo,tabIndex:t?0:-1},o().createElement(Oo.M,{className:i,name:"arrow-right-filled"}),o().createElement("span",{className:rc.text},n))}renderSubscribeButton(){const{subscribeButtonText:e}=this.props;return e?o().createElement("a",{href:"",className:rc.button,"data-hook":"subscribe-button",onClick:this.handleSubscriptionClick,tabIndex:this.props.isContentFocusable?0:-1},o().createElement("span",{className:rc.text},e)):null}renderPurchaseButton(){const{purchaseButtonText:e}=this.props;return e?o().createElement("a",{href:"",className:rc.button,onClick:this.handlePurchaseClick,"data-hook":"paid-access-button",tabIndex:this.props.isContentFocusable?0:-1},o().createElement("span",{className:rc.text},e)):null}renderLiveLabel(){const{videoItem:e}=this.props;return o().createElement(tc.Z,{itemType:e.itemType,liveVideoStatus:e.liveVideoStatus,startTime:e.dateStartLive,isSmall:!0,noBackground:!0,className:rc["live-label"],smallClassName:rc["shown-on-hover"]})}render(){const{channelData:e,videoItem:t,className:n,isThumbnailsPreviewHover:r,isTitleAlwaysShown:i,isTitleNeverShown:s}=this.props;if(!e||!t)return null;const a=Ot()(n,rc["overlay-wrapper"],{[rc["preview-hover"]]:r,[rc.visible]:i||s});return o().createElement("div",{className:a},o().createElement("div",{className:rc.background}),o().createElement("div",{className:rc.content},o().createElement("div",{className:rc["top-content"]},this.titleBlock,this.buttons,this.renderLiveLabel())))}},qe()(oc,"defaultProps",{isContentFocusable:!0}),oc)),ac=(0,or.F)(sc);var lc=n(23654);const cc="TgZWKq",uc="awy_A5";class dc extends o().Component{render(){const{channelData:e,videoItem:t,width:n,height:r,appSettings:i,isFocusable:s,onClick:a,onPlayRequest:l,currentSiteUser:c}=this.props,u=(0,$t.r)(a,t);return o().createElement("section",{className:cc,onClick:u,onKeyDown:(0,$t.r)(vl,u),"data-hook":"video-list-thumb-wrapper","aria-hidden":!s,tabIndex:s?0:-1},o().createElement("div",{className:uc},o().createElement(lc.Cq,{video:t,width:n,height:r}),o().createElement(ac,{channelData:e,videoItem:t,width:n,showChannelCover:!1,appSettings:i,onPlaySelectedVideo:(0,$t.r)(l,t),isContentFocusable:s,currentSiteUser:c})))}}const pc="GyiVV9",hc="tO_1ZK",mc="ixdP0F",fc={logWidgetSystem:Nn.e},gc=(0,ln.Z)()((0,He.$j)((e=>({videoByIds:(0,Et.$u)(e),appSettings:(0,Ze.GR)(e),isRTL:(0,Ze.dZ)(e),styleId:(0,An.Qp)(e)})),fc)(class extends o().Component{constructor(){super(...arguments),qe()(this,"renderVideoItem",((e,t,n)=>{const{channelData:r,videoByIds:i,thumbnailSize:s,appSettings:a,onThumbnailClick:l,onPlayRequest:c,currentSiteUser:u}=this.props;return o().createElement(dc,Yn()({},s,{channelData:r,videoItem:i[e],appSettings:a,currentSiteUser:u,key:e,isFocusable:n,onClick:l,onPlayRequest:c}))}))}componentDidMount(){this.props.logWidgetSystem("videoList.show.rendered",{previousEventName:"videoList.show.requested"})}UNSAFE_componentWillReceiveProps(e){let{currentVideosPageNumber:t}=e;t!==this.props.currentVideosPageNumber&&this.props.logWidgetSystem("videoList.changePage.rendered",{previousEventName:"videoList.changePage.requested"})}componentDidUpdate(){this.props.logWidgetSystem("videoList.searchByQuery.rendered",{previousEventName:"videoList.searchByQuery.requested"}),this.props.logWidgetSystem("videoList.searchByTag.rendered",{previousEventName:"videoList.searchByTag.requested"}),this.props.logWidgetSystem("videoList.searchByCategory.rendered",{previousEventName:"videoList.searchByCategory.requested"})}hasPage(e){const{videoIdsByPageNumber:t}=this.props;return Boolean(t[e])}get isPrevPageVisible(){const{currentVideosPageNumber:e}=this.props;return this.hasPage(e-1)}get isNextPageVisible(){const{currentVideosPageNumber:e}=this.props;return this.hasPage(e+1)}render(){const{currentVideosPageNumber:e,videoIdsByPageNumber:t,containerWidth:n,onSlideToPrev:r,onSlideToNext:i,isRTL:s,numberOfRows:a,numberOfColumns:l,styleId:c}=this.props;return o().createElement("div",{className:pc},o().createElement(Bl,{width:n,currentPageNumber:e,isRTL:s},o().createElement(Zl,{gridId:"strip-videos",styleId:c,pageWidth:"100%",gridMinWidth:co.Nf,currentPageNumber:e,itemsByPageNumber:t,renderItem:this.renderVideoItem,numberOfRows:a,numberOfColumns:l,isRTL:s})),o().createElement(Yr,{prevButtonClassName:hc,nextButtonClassName:mc,prevButtonAriaLabel:this.props.t("widget.accessibility.prev-videos"),nextButtonAriaLabel:this.props.t("widget.accessibility.next-videos"),onPrevClick:r,onNextClick:i,isPrevVisible:this.isPrevPageVisible,isNextVisible:this.isNextPageVisible,isRTL:s}))}})),vc={},yc={setItem(e,t){t=String(t);try{n.g.localStorage.setItem(e,t)}catch(n){vc[e]=t}},getItem(e){try{return n.g.localStorage.getItem(e)}catch(t){return vc[e]}},removeItem(e){try{return n.g.localStorage.removeItem(e)}catch(t){delete vc[e]}}};var bc=n(90786),Ec=n(53458);const Sc=e=>{let{onPurchase:t,onSubscription:n,onRent:r}=e;const o=yc.getItem(bc.JN),i={[Ec.DE.RENT]:r,[Ec.DE.SALE]:t,[Ec.DE.SUBSCRIPTION]:n};if(o){const{paymentType:e,openerCompId:t}=JSON.parse(o);t===(0,kr.I)().Utils.getCompId()&&(i[e](),yc.removeItem(bc.JN))}},Cc={overlay:"WMErYD",content:"_b32Ta","top-content":"eYUy7M",topContent:"eYUy7M",title:"FGVqna","preview-text":"fhZwYs",previewText:"fhZwYs",publisher:"YaJIes","buttons-wrapper":"NsFeVY",buttonsWrapper:"NsFeVY",button:"Imo3Bi","rounded-icon":"UXV_7l",roundedIcon:"UXV_7l",bordered:"LzC4xz",icon:"ATUL2V",text:"WTgqM7","play-icon":"tAG8uQ UXV_7l",playIcon:"tAG8uQ UXV_7l","soon-info":"kYSFb_",soonInfo:"kYSFb_",buttons:"TUVOTZ","next-icon":"Q0Lc2K",nextIcon:"Q0Lc2K","live-label":"NFskrS",liveLabel:"NFskrS"};var wc;const Pc={openSubscription:zl,openPlayerOverlay:Gl,sendBiEvent:Io.t},Ic=(0,He.$j)(((e,t)=>({isSingleVideo:(0,Sr.qf)(e),titleText:(0,fo.hT)(e,t),subscribeButtonText:(0,fo.MT)(e,t),publisherText:(0,fo.y7)(e,t),playButtonText:(0,fo.lb)(e,t),purchaseButtonText:(0,fo.m4)(e,t),opacityStyle:(0,fo.uo)(e)})),Pc)((wc=class extends o().Component{constructor(){super(...arguments),qe()(this,"handlePlaySelectedVideo",(e=>{const{videoItem:t,onPlaySelectedVideo:n}=this.props;e.preventDefault(),e.stopPropagation(),n(t)})),qe()(this,"handlePurchaseButtonClick",(e=>{e&&(e.preventDefault(),e.stopPropagation());const{videoItem:t,openPlayerOverlay:n,fedops:r}=this.props;n(r,t)})),qe()(this,"handleSubscriptionButtonClick",(e=>{e&&(e.preventDefault(),e.stopPropagation()),this.props.openSubscription(this.props.fedops)}))}componentDidMount(){const{subscribeButtonText:e}=this.props;e&&this.props.sendBiEvent("widget.subscription.displayed",{whereDisplayed:"cover"}),Sc({onPurchase:this.handlePurchaseButtonClick,onSubscription:this.handleSubscriptionButtonClick})}renderPublisher(){const e=Ot()(Cc.publisher,"qa-widget-overlay-publisher");return o().createElement("div",{className:e,"data-hook":"overlay-publisher"},this.props.publisherText)}renderLiveLabel(){const{videoItem:e}=this.props;return o().createElement(tc.Z,{itemType:e.itemType,liveVideoStatus:e.liveVideoStatus,videoTitle:e.title,startTime:e.dateStartLive,className:Cc["live-label"]})}renderPlayButton(){const{channelData:e,isContentFocusable:t,isSingleVideo:n,playButtonText:r}=this.props;if(!(0,nc.z3)(e)&&!n)return o().createElement(ec,{className:Cc["soon-info"]});if(!r)return null;const i=Ot()(Cc.button,Cc["play-button"]),s=Ot()(Cc.icon,Cc["play-icon"]);return o().createElement("a",{href:"",className:i,"data-hook":"overlay-play-button",onClick:this.handlePlaySelectedVideo,tabIndex:t?0:-1},o().createElement(Oo.M,{className:s,name:"arrow-right-filled"}),o().createElement("span",{className:Cc.text},r))}renderPurchaseButton(){const{purchaseButtonText:e}=this.props;if(!e)return null;const t=Ot()("qa-widget-overlay-buy-from-button",Cc.button);return o().createElement("a",{href:"",className:t,onClick:this.handlePurchaseButtonClick,"data-hook":"paid-access-button",tabIndex:this.props.isContentFocusable?0:-1},o().createElement("span",{className:Cc.text},e))}renderSubscribeButton(){const{subscribeButtonText:e,isContentFocusable:t}=this.props;if(!e)return null;const n=Ot()(Cc.button,"qa-widget-overlay-subscribe-button");return o().createElement("a",{href:"",className:n,"data-hook":"subscribe-button",onClick:this.handleSubscriptionButtonClick,tabIndex:t?0:-1},o().createElement("span",{className:Cc.text},e))}renderButtons(){const{buttonsWrapperClassName:e}=this.props,t=Ot()(Cc["buttons-wrapper"],e);return o().createElement("div",{className:t},this.renderPlayButton(),this.renderSubscribeButton()||this.renderPurchaseButton())}render(){const{channelData:e,videoItem:t,className:n,titleText:r,publisherText:i,opacityStyle:s}=this.props;if(!e)return null;const a=Ot()(n,Cc.overlay);return o().createElement("div",{style:s,className:a,"data-hook":"player-overlay player-overlay-visible",onClick:this.handlePlaySelectedVideo},o().createElement("div",{className:Cc.content},o().createElement("div",{className:Cc["top-content"]},i&&this.renderPublisher(),r&&o().createElement("div",{className:Cc.title},o().createElement(Jl,{text:r})),t&&this.renderButtons(),this.renderLiveLabel())))}},qe()(wc,"defaultProps",{isContentFocusable:!0}),wc)),Oc=(0,or.F)(Ic);var Tc;function Nc(){return Nc=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},Nc.apply(this,arguments)}const Ac=function(e){return r.createElement("svg",Nc({xmlns:"http://www.w3.org/2000/svg",width:36,height:37,viewBox:"0 0 36 37"},e),Tc||(Tc=r.createElement("path",{className:"search_svg__cls-1",d:"M16.47 33.13a16.575 16.575 0 1 1 16.47-16.57 16.538 16.538 0 0 1-16.47 16.57Zm0-31.75a15.18 15.18 0 1 0 15.09 15.18A15.144 15.144 0 0 0 16.47 1.38Zm18.51 35.61-8.61-9.48 1.02-.94L36 36.04Z"})))},xc="FFaVJm",_c="b0_h1o",Lc="UUxcEo",Rc=(0,ln.Z)()(class extends o().Component{render(){const{className:e}=this.props;return o().createElement("section",{className:Ot()(xc,e)},o().createElement(Ac,{className:_c}),o().createElement("span",{className:Lc},this.props.t("widget.home-view.no-search-results")))}});var kc=n(98529),Dc=function(){return Dc=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},Dc.apply(this,arguments)},Vc=function(e){return function(t){var n=(0,r.useContext)(L.vX);if(!n)throw new Error("`withEnvironment` can't be used within a `Settings` component. Please use `withSettingsEnvironment()`");return o().createElement(e,Dc({},Dc(Dc({},t),{environment:n})))}},Mc=n(61613);const Bc=(0,mo.Z)("OPEN.SUBSCRIBE-OVERLAY"),Fc=(0,mo.Z)("OPEN.BUY-VIDEO-OVERLAY"),Uc=e=>jc(e,Mc.N.WIDGET),jc=function(e,t){return void 0===t&&(t=""),function(n){n(Bc()),e(`/channel/subscribe/${t}`)}},Hc=function(e,t,n){return void 0===n&&(n=""),function(r){r(Fc()),e(`/video/${t}/purchase/${n}`)}};var Zc=n(30592),Wc=n(31255),zc=n(79709),qc=n(56417),Gc=(n(77763),n(29861));const $c=(0,mo.Z)("CLIENT.VISIT-CHANNEL"),Yc=(0,mo.Z)("CLIENT.OPEN.VIDEO-PAGE"),Kc=e=>function(t){t($c()),t((0,Gc.bX)()),e()},Xc=(e,t)=>function(n){n(Yc()),n((0,Gc.bX)()),t(`/video/${e}`)};class Qc{constructor(){qe()(this,"fallbackStorage",new Map)}setItem(e,t){try{this.fallbackStorage.set(e,t),sessionStorage.setItem(e,t)}catch{}}getItem(e){try{return sessionStorage.getItem(e)}catch{return this.fallbackStorage.get(e)||null}}}const Jc="vod-disable-deeplink-popups",eu={openBuyVideoOverlay:Hc,openSubscribeOverlay:jc,toggleShareVideoOverlay:Wc.lu,openFullScreenPurchaseOverlay:oo,openFullScreenSubscribeOverlay:so,openVideoFromUrlIfExists:e=>(t,n)=>{const r=n(),o=(0,ht.hU)(r);(0,Et.mJ)(r,o)&&t(Xc(o,e))}},tu=Vc((0,He.$j)((e=>{const t=(0,Et.$u)(e)||{};return{channelData:(0,ft.js)(e),videoData:t[(0,ht.hU)(e)],urlState:(0,ht.eY)(e,Zc.EI),paymentType:(0,ht.eY)(e,Zc.nE),areElementsRounded:(0,Ze.as)(e),siteUrl:(0,An.tf)(e),compId:(0,An.Qp)(e)}}),eu)(class extends o().Component{constructor(e){super(e),this.sessionStorage=new Qc,this.state={isShareOverlayOpened:!1},e.environment.isSSR?this.hasOpenedPopup=!0:this.hasOpenedPopup="true"===this.sessionStorage.getItem(Jc)}componentDidMount(){this.openDeeplinkPopups(this.props)}UNSAFE_componentWillUpdate(e){this.openDeeplinkPopups(e)}openDeeplinkPopups(e){const{hasOpenedPopup:t}=this,{channelData:n,urlState:r,videoData:o,openVideoFromUrlIfExists:i,isMobile:s,openMobileOverlay:a}=e;if(!t&&o&&!ie().isEmpty(n)){switch(s&&!r&&o&&i(a),r){case Zc.hU:this.openSharePopup();break;case Zc.Bf:this.openPurchasePopup(n,o);break;case Zc.ES:this.openSubscribePopup(n)}this.hasOpenedPopup=!0,this.sessionStorage.setItem(Jc,"true")}}openSharePopup(){this.props.isMobile||this.openShareOverlay()}openPurchasePopup(e,t){const{openBuyVideoOverlay:n,fedops:r,openMobileOverlay:o}=this.props;if(!(0,zc.Yn)(t))return this.props.isMobile?n(o,t.id):this.props.openFullScreenPurchaseOverlay(r,e.id,t.id)}openSubscribePopup(e){const{openSubscribeOverlay:t,fedops:n,openMobileOverlay:r}=this.props;if(!(0,zc.Yn)(e))return this.props.isMobile?t(r,e.id):this.props.openFullScreenSubscribeOverlay(n,e.id)}openShareOverlay(){this.props.toggleShareVideoOverlay()}render(){const{channelData:e,urlState:t,videoData:n,isMobile:r}=this.props;return r&&t===Zc.hU?o().createElement(qc.Z,{channelData:e,videoItem:n,isOpen:!0}):null}})),nu=(0,or.F)(tu);var ru;const ou=(0,ln.Z)()((ru=class extends o().Component{constructor(){super(...arguments),qe()(this,"saveContainerRef",(e=>{this.containerRef=e,this.props.onRef(e)}))}componentDidUpdate(e){const{currentVideosPageNumber:t}=this.props;e.currentVideosPageNumber!==t&&(0,Kr.T)(this.containerRef),this.checkIsSearchJustEnded(e)&&(0,Kr.T)(this.containerRef)}checkIsSearchJustEnded(e){const{currentVideosPageNumber:t,videoIdsByPageNumber:n,isVideosFetching:r,isChannelHasVideos:o,isSearching:i}=this.props;if(!e.isSearching||i)return;const s=!r&&e.isVideosFetching!==r,a=ie().get(n[t],"length"),l=!ie().isEqual(e.videoIdsByPageNumber[t],n[t]);return s&&o&&(l||!a)}isNoSearchResults(){const{videoIdsByPageNumber:e,searchQuery:t,isVideosFetching:n}=this.props;return!n&&t&&!e.length}getVideosContainerAriaLabel(){const{channelTitle:e,currentVideosPageNumber:t,searchQuery:n}=this.props;if(this.isNoSearchResults())return null;if(n){const e=0===t?"widget.accessibility.search-results-for":"widget.accessibility.search-results-page-n-for";return this.props.t(e,{searchQuery:n,pageNumber:t+1})}const r=0===t?"widget.accessibility.channel-videos":"widget.accessibility.channel-videos-page-n";return this.props.t(r,{channelTitle:e,pageNumber:t+1})}render(){const{className:e,style:t,children:n,dataHook:r}=this.props;return o().createElement("section",{className:e,style:t,"data-hook":r,ref:this.saveContainerRef,tabIndex:"0","aria-label":this.getVideosContainerAriaLabel()},n)}},qe()(ru,"defaultProps",{onRef:ie().noop}),ru));var iu;function su(){return su=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},su.apply(this,arguments)}const au=function(e){return r.createElement("svg",su({width:14,height:17,viewBox:"0 0 14 17",xmlns:"http://www.w3.org/2000/svg"},e),iu||(iu=r.createElement("path",{d:"M4.812 7.548a2.493 2.493 0 0 1 .091 1.644l5.243 3.206a2.5 2.5 0 1 1-.732.724l-4.976-3.043a2.5 2.5 0 1 1-.184-3.36l4.984-3.154a2.5 2.5 0 1 1 .6.802L4.812 7.549Z"})))},lu="cxRPmf",cu="bIf2Dz";class uu extends o().Component{render(){const{className:e,iconClassName:t,onClick:n,tabIndex:r,ariaLabel:i,children:s,icon:a}=this.props,l=a||au;return o().createElement("button",{className:Ot()(lu,e),tabIndex:r,"data-hook":"share-overlay-button",onClick:n,"aria-label":i},o().createElement(l,{className:Ot()(cu,t)}),s)}}qe()(uu,"defaultProps",{tabIndex:0});var du=n(23685);const pu="bSlajt",hu="wxqBau",mu=e=>{let{children:t,width:n,height:r,isMainItemChannelCover:i,channelCoverUrl:s}=e;return i?o().createElement(du.Z,{className:hu,src:s,width:n,height:r},t):o().createElement("div",{className:pu,style:{width:n,height:r},"data-hook":"noPlayer"},t)};mu.defaultProps={children:o().createElement("div",null),width:"100%",height:"100%"};const fu=mu;var gu=n(84509),vu=n(19147);const yu="appFullyRendered";var bu=n(94120),Eu=n(71123);const Su=(0,Mr.DM)("sendLoadComplete",(()=>e=>{try{const t=parseInt(performance.now(),10);e((0,Nn.k)("widget.loadComplete",{loadingTime:t,viewMode:Eu.n.SITE}))}catch(e){console.warn("unable to send widget.loadComplete 71:257")}}));var Cu=n(21491);const wu=[Zr.P.CLASSIC,Zr.P.COMPACT,Zr.P.STRIP];function Pu(e){const t={logBi:Nn.k,sendLoadComplete:Su};return(0,Cu.kF)((e=>({registerToComponentDidLayout:e.host.registerToComponentDidLayout})))((0,He.$j)((t=>({appSettings:(0,Ze.GR)(t),channel:(0,ft.js)(t),mainVideo:(0,Eo.g)(t),isSiteMode:We.bK(t),viewMode:We.At(t),showChannelCover:e(t)})),t)(class extends o().Component{constructor(){super(...arguments),qe()(this,"logWidgetOpenedBi",(()=>{const{appSettings:e,channel:t,mainVideo:n,isSiteMode:r,viewMode:o,showChannelCover:i}=this.props;(0,gu.F)(yu),this.props.logBi("widget.opened",(0,vu.V0)(e,t,n,i,o)),r&&this.props.sendLoadComplete()}))}componentDidMount(){this.logWidgetOpenedBi()}render(){return null}}))}const Iu=Pu((function(e){const t=(0,Ze.z3)(e),n=(0,oe.includes)(wu,t),r=(0,Ze.GR)(e);return(0,bu._S)(r,n)})),Ou=Pu((e=>!e.isVideosTouched));var Tu=n(6026),Nu=n(86606),Au=n(45375),xu=n(96658),_u=n(48321);const Lu=(0,oe.sortBy)([{timeToStart:_u.c.ONE_HOUR,step:_u.c.ONE_MINUTE},{timeToStart:5*_u.c.ONE_MINUTE,step:_u.c.ONE_MINUTE/6},{timeToStart:5*-_u.c.ONE_MINUTE,step:_u.c.ONE_MINUTE/6},{timeToStart:-_u.c.ONE_HOUR,step:_u.c.ONE_MINUTE/2}],"timeToStart"),Ru={step:_u.c.ONE_MINUTE/20};class ku extends o().Component{constructor(){super(...arguments),this.timeouts=[],this.pollVideo=e=>{const{getVideoData:t}=this.props,{id:n}=e,r=(e=>{const{dateStartLive:t}=e;if((0,Nu.eZ)(e))return Ru.step;const n=t-Date.now(),r=(0,oe.find)(Lu,(e=>n<0?n>e.timeToStart:e.timeToStart>n));return r&&r.step})(e);r&&t(n).then(this.onPollResponse).then((t=>this.checkStatusChange(e,t))).then(this.handleStatusChange).then((e=>{e&&(this.timeouts[n]=setTimeout((()=>this.pollVideo(e)),r))})).catch((t=>this.onPollResponse({data:e},t)))},this.onPollResponse=(e,t)=>{const{data:n}=e;return this.props.onPoll(n,t),n},this.checkStatusChange=(e,t)=>{const{onStreamChangePending:n,onStreamChangeReady:r}=this.props;let o=e;return t?!(0,Nu.eZ)(e)&&(0,Nu.eZ)(t)?(o={...t,dgsInfo:e.dgsInfo},n(o),{ready:!1,changedVideoItem:o}):!(0,Nu.$C)(e)&&(0,Nu.$C)(t)?(o={...t,dgsInfo:e.dgsInfo},r(o),{ready:!0,changedVideoItem:o}):{ready:!1,changedVideoItem:o}:{ready:!1,changedVideoItem:o}},this.handleStatusChange=e=>{const{autoplayVideo:t}=this.props,{ready:n,changedVideoItem:r}=e;return n&&r?(t(r),null):e.changedVideoItem}}componentDidMount(){const{scheduledVideos:e,pendingVideos:t}=this.props;(0,oe.forEach)(e,this.pollVideo),(0,oe.forEach)(t,this.pollVideo),this.handleInitialStreaming()}componentWillUnmount(){(0,oe.forEach)(this.timeouts,(e=>clearTimeout(e)))}handleInitialStreaming(){const{streamingVideos:e,canInitiallyAutoplay:t}=this.props,n=e&&e[0];n&&t(n.id)&&this.props.autoplayVideo(n)}render(){return null}}ku.propTypes={scheduledVideos:M().arrayOf(M().shape({id:M().string,dateStartLive:M().number})),pendingVideos:M().arrayOf(M().shape({id:M().string})),streamingVideos:M().arrayOf(M().shape({id:M().string})),autoplayVideo:M().func,canInitiallyAutoplay:M().func,onStreamChangePending:M().func,onStreamChangeReady:M().func,onPoll:M().func,getVideoData:M().func};const Du=e=>e.fullScreenModal.lightbox,Vu=(0,gt.P1)((e=>ie().get(e,"entities.videos")),(e=>ie().filter(e,(e=>ie().includes([Ec.qG.ItemLive,Ec.qG.ItemScheduled,Ec.qG.ItemLiveFinalize],e.itemType))))),Mu=(0,gt.P1)(Vu,(e=>ie().filter(e,(e=>{let{itemType:t}=e;return(0,Nu.$Z)({itemType:t})})))),Bu=(0,gt.P1)(Vu,(e=>ie().filter(e,(e=>{let{liveVideoStatus:t}=e;return(0,Nu.eZ)({liveVideoStatus:t})})))),Fu=(0,gt.P1)(Vu,(e=>ie().filter(e,(e=>{let{liveVideoStatus:t}=e;return(0,Nu.$C)({liveVideoStatus:t})}))));var Uu=n(3333);const ju={updateLiveStatus:Au.W,fetchVideoUrls:xu.C,selectVideo:Dn.Uw,logBi:Nn.k,getVideoData:e=>async(t,n)=>{const r=n(),o=(0,Uu.g)(),i=(0,ft.js)(r);return o.channelVideos.getChannelVideoById(i.id,e)}},Hu=(0,He.$j)((e=>({channel:(0,ft.js)(e),currentSiteUser:(0,bt.C)(e),isVideoOverlayOpened:Du(e),scheduledVideos:Mu(e),pendingVideos:Bu(e),streamingVideos:Fu(e),isPreviewOrEditorMode:We.g4(e)||We.ZJ(e)})),ju)(class extends o().Component{constructor(){super(...arguments),qe()(this,"autoplayVideo",(e=>{const{playVideo:t,selectVideo:n,channel:r,currentSiteUser:o,isVideoOverlayOpened:i}=this.props;this.isOtherVideoPlaying(e.id)||i||((0,vt.yi)(r,e,o)?(this.logAutoplayBi(e),t(e)):n(e.id))})),qe()(this,"logAutoplayBi",(e=>{const{channel:t}=this.props;this.props.logBi("widget.video.autoplay.start",{videoType:Tu.s.LIVE,isEmbed:!1,channelID:t.id,videoID:e.id,origin:Tu.g.ON_SITE})})),qe()(this,"logPollBi",((e,t)=>{this.props.logBi("widget.poll.request.sent",{videoType:e&&this.getVideoType(e),isError:Boolean(t),errorMessage:ie().get(t,"message",null),origin:Tu.g.ON_SITE})})),qe()(this,"isOtherVideoPlaying",(e=>{const{isVideoPlaying:t,selectedVideoId:n}=this.props;return t&&n!==e})),qe()(this,"isOtherVideoSelected",(e=>{const{selectedVideoId:t}=this.props;return t&&t!==e})),qe()(this,"canInitiallyAutoplay",(e=>!this.isOtherVideoSelected(e))),qe()(this,"onStreamChangePending",(e=>{this.props.updateLiveStatus(e)})),qe()(this,"onStreamChangeReady",(e=>{this.props.updateLiveStatus(e),this.props.fetchVideoUrls(e,!0)}))}getVideoType(e){let{itemType:t,liveVideoStatus:n}=e,r=null;return(0,Nu.eZ)({liveVideoStatus:n})?r=Tu.s.LIVE:(0,Nu.$Z)({itemType:t})&&(r=Tu.s.SCHEDULED),r}render(){const{scheduledVideos:e,pendingVideos:t,streamingVideos:n,isPreviewOrEditorMode:r}=this.props;return r?null:o().createElement(ku,{scheduledVideos:e,pendingVideos:t,streamingVideos:n,autoplayVideo:this.autoplayVideo,canInitiallyAutoplay:this.canInitiallyAutoplay,onStreamChangePending:this.onStreamChangePending,onStreamChangeReady:this.onStreamChangeReady,onPoll:this.logPollBi,getVideoData:this.props.getVideoData})}}),Zu=(0,or.F)(Hu);var Wu,zu=n(63193),qu=n(43953);const Gu={logBi:Nn.k,logWidgetSystem:Nn.e,requestLogin:zu.Pw,logOutCurrentMember:zu.tH,openFullScreenShareOverlay:to.L_,openFullScreenChannelOverlay:to.QU,openFullScreenSubscribeOverlay:to.fb,openFullScreenOverlay:to.X1,cancelOrder:qu.sl},$u=(0,He.$j)((e=>({siteUrl:(0,An.$2)(e),instance:(0,An.s8)(e),isPricingPlan:(0,no.vm)(e.channelInfo.info)})),Gu)((Wu=class extends o().Component{constructor(){super(...arguments),qe()(this,"showChannelInfoAtOverlay",(()=>{this.props.openFullScreenChannelOverlay(this.props.channelId)})),qe()(this,"showChannelShareAtOverlay",(0,eo.Q)((()=>{const{videoId:e,channelId:t}=this.props;this.props.openFullScreenShareOverlay(t,e)}))),qe()(this,"openAccountInfoAtOverlay",(0,eo.Q)((()=>{this.props.openFullScreenOverlay(`#/account-info/${this.props.channelId}`)}))),qe()(this,"showChannelSubscriptionInfoAtOverlay",(0,eo.Q)((()=>{const{channelId:e,isPricingPlan:t}=this.props;this.props.logBi("widget.subscription.clicked",{channelID:e}),this.props.openFullScreenSubscribeOverlay(e,(()=>{this.props.logBi("widget.subscriptionPopUp.Completed",{result:"canceled",errorMsg:""})}),t)}))),qe()(this,"cancelChannelSubscription",(0,eo.Q)((async()=>{const{siteUrl:e,instance:t,channelId:n}=this.props;this.props.logWidgetSystem("channel.unsubscribe.requested"),this.props.cancelOrder(n,e,t)}))),qe()(this,"showLoginForm",(0,eo.Q)((()=>{this.props.logBi("widget.signIn.clicked",{channelID:this.props.channelId}),this.props.requestLogin().then(this.props.onPageRefresh)}))),qe()(this,"logOut",(()=>{this.props.logOutCurrentMember(),this.props.onPageRefresh()}))}render(){return this.props.children({showInfo:this.showChannelInfoAtOverlay,showAccountInfo:this.openAccountInfoAtOverlay,subscribe:this.showChannelSubscriptionInfoAtOverlay,cancelSubscription:this.cancelChannelSubscription,logOut:this.logOut,logIn:this.showLoginForm,showShare:this.showChannelShareAtOverlay})}},qe()(Wu,"defaultProps",{onPageRefresh:ie().noop}),Wu)),Yu={container:"cS1qTq","player-container":"HLSOgq",playerContainer:"HLSOgq","with-bottom-padding":"odMQvV",withBottomPadding:"odMQvV",player:"qsUFvX","with-videos":"hER52t",withVideos:"hER52t","single-video":"APC4qf",singleVideo:"APC4qf","prev-button":"qiIs5n",prevButton:"qiIs5n","next-button":"aru8RL",nextButton:"aru8RL","player-overlay-container":"A9N6Yv",playerOverlayContainer:"A9N6Yv","player-overlay":"QVkbi4",playerOverlay:"QVkbi4","search-line":"ZuDi8g",searchLine:"ZuDi8g",tags:"YM0jTs","all-videos":"tSzExy",allVideos:"tSzExy",search:"XF9mr_","categories-container":"IZ_7RH",categoriesContainer:"IZ_7RH",expanded:"uD8KI7",categories:"wXVXQX","channel-actions":"jtEAI8",channelActions:"jtEAI8",hidden:"Iil4Y_",button:"Cd5Tu5",icon:"kFGaaZ","videos-container":"MD08_j",videosContainer:"MD08_j",videos:"iZd306","no-search-results":"mR5T0M",noSearchResults:"mR5T0M",stretched:"tLgzNV","account-button":"xCZ03I",accountButton:"xCZ03I",action:"rOcM48","action-share":"PQGPrZ",actionShare:"PQGPrZ","close-icon":"WRVCZ0",closeIcon:"WRVCZ0","close-icon-with-label":"g7wABM",closeIconWithLabel:"g7wABM","share-buttons":"YJgiRq",shareButtons:"YJgiRq","channel-info-window":"D36FHm",channelInfoWindow:"D36FHm","coming-soon":"wFevVu",comingSoon:"wFevVu","buttons-wrapper-no-margin":"qe9nUK",buttonsWrapperNoMargin:"qe9nUK"};var Ku;const Xu={isSearchBarExpanded:!1,currentCategory:null,areAllVideosVisible:!1},Qu={selectVideo:Dn.Uw,resetSelectedVideo:Dn.Fn,requestPlayVideo:Fn.x,searchByString:hr.cW,searchByCategory:hr.Pj,goToLazyVideosPageIndex:Er.X0,openFullScreenVideoOverlay:St.Ep,closeFullScreenVideoOverlay:St.xZ,playSelectedVideo:bo,logWidgetSystem:Nn.e,storeForReload:lo.Y,sendBiEvent:Io.t,openFullScreenMemberOnlyOverlay:io,openFullScreenChannelOverlay:to.QU},Ju=(0,ln.Z)()((0,He.$j)((e=>({mainVideoId:(0,kn.hg)(e),mainVideo:(0,Eo.g)(e),selectedVideoId:e.selectedVideoId,isVideoPlaying:(0,mt.BW)(e),currentChannelId:(0,Bn.gO)(e),canShowChannelCover:!e.isVideosTouched,appSettings:(0,Ze.GR)(e),isThumbnailsPreviewHover:(0,Ze.ok)(e),firstChannelVideoId:e.firstChannelVideoId,isVideoShareVisible:(0,Ze.gS)(e),videoIdsByPageNumber:(0,ho.uB)(e),currentVideosPageNumber:(0,ho.DQ)(e),lazyLoadedVideoIds:(0,ho.Di)(e),videoByIds:(0,Et.$u)(e),isVideosFetching:(0,ho.ab)(e),currentSiteUser:(0,bt.C)(e),currentIdIndex:(0,ho.OS)(e),hasPrevVideo:(0,ho.zV)(e),hasNextVideo:(0,ho.DV)(e),isSignInVisible:(0,Ze.UW)(e),isSearchInputVisible:(0,uo.nO)(e),isCategoriesDropdownVisible:(0,uo.zF)(e),isChannelInfoVisible:(0,Ze.jb)(e),isChannelShareVisible:(0,Ze.Sd)(e),searchQuery:(0,So.uP)(e),channelData:(0,ft.js)(e),isSingleVideo:(0,Sr.qf)(e),isSearchResultEmpty:Co(e),isMainItemChannelCover:(0,Ze.zn)(e),isVideoListAlwaysShow:(0,Ze.d2)(e),isVideoListExpandOnClick:(0,Ze.At)(e),isVideoListNeverShow:(0,Ze.c9)(e),isRTL:(0,Ze.dZ)(e),isEditor:We.ZJ(e)})),Qu)((Ku=class extends o().Component{constructor(e){var t;super(e),t=this,qe()(this,"videosContainerRef",null),qe()(this,"playerOverlayContainerRef",null),qe()(this,"saveRef",((e,t)=>{this[e]=t})),qe()(this,"focusVideosContainer",(()=>{(0,Kr.T)(this.videosContainerRef),window.removeEventListener("resize",this.focusVideosContainer)})),qe()(this,"handleSlideToPrev",(()=>{this.props.logWidgetSystem("videoList.changePage.requested");const{currentVideosPageNumber:e,goToLazyVideosPageIndex:t}=this.props;t(e-1)})),qe()(this,"handleSlideToNext",(()=>{this.props.logWidgetSystem("videoList.changePage.requested");const{currentVideosPageNumber:e,goToLazyVideosPageIndex:t}=this.props;t(e+1)})),qe()(this,"handleThumbnailClick",(e=>{(e.id!==this.props.mainVideoId||this.props.canShowChannelCover)&&this.props.selectVideo(e.id)})),qe()(this,"reset",(function(e){void 0===e&&(e=t.props),t.setState({searchBarValue:"",...Xu,...t.getDefaultPlayerConfig(e),areAllVideosVisible:e.isThumbnailsPreviewHover}),t.props.goToLazyVideosPageIndex(0)})),qe()(this,"handleCategorySelect",(e=>{this.props.searchByCategory(e),this.props.logWidgetSystem("videoList.searchByCategory.requested"),this.setState({currentCategory:e,searchBarValue:""})})),qe()(this,"storeDataForReload",(()=>{this.props.storeForReload({selectedVideoId:this.props.mainVideoId})})),qe()(this,"setCurrentVideoFromPayment",(e=>{e.itemId&&this.props.selectVideo(e.itemId)})),qe()(this,"showChannelInfo",(e=>{e.preventDefault(),this.props.openFullScreenChannelOverlay(this.props.channelData.id)})),qe()(this,"openMembership",(()=>{this.props.openFullScreenMemberOnlyOverlay(this.props.fedops,this.props.channelData.id,this.props.mainVideoId)})),qe()(this,"handleSearchInputFocus",(()=>{this.setState({isSearchBarExpanded:!0})})),qe()(this,"handleSearchInputBlur",(()=>{this.setState({isSearchBarExpanded:!1})})),qe()(this,"clearSearch",(()=>{this.setState({searchBarValue:"",isSearchBarExpanded:!1}),this.state.currentCategory||this.props.searchByString("")})),qe()(this,"searchByQuery",(e=>{this.props.searchByString(e),this.props.logWidgetSystem("videoList.searchByQuery.requested"),this.setState({currentCategory:null})})),qe()(this,"handleSearchInputChange",(e=>{this.setState({searchBarValue:e})})),qe()(this,"playVideo",(0,eo.Q)((e=>{const{currentSiteUser:t,channelData:n,mainVideoId:r,openFullScreenVideoOverlay:o,closeFullScreenVideoOverlay:i,requestPlayVideo:s,isPortableDevice:a,fedops:l}=this.props,{id:c,memberOnly:u}=e;if(a)return c===r?s(c):this.handleThumbnailClick(e);!u||u&&t?(this.props.playSelectedVideo({videoItem:e}),o(n.id,c,!0,i)):this.props.openFullScreenMemberOnlyOverlay(l,n.id,c)}))),qe()(this,"selectNextVideo",(()=>{const{selectVideo:e,lazyLoadedVideoIds:t,currentIdIndex:n}=this.props;e(t[n+1])})),qe()(this,"selectPrevVideo",(()=>{const{selectVideo:e,lazyLoadedVideoIds:t,currentIdIndex:n}=this.props;e(t[n-1])})),qe()(this,"handleUserToggleVisibilityAllVideos",(()=>{this.state.areAllVideosVisible||this.props.logWidgetSystem("videoList.show.requested"),this.toggleVisibilityAllVideos()})),qe()(this,"toggleVisibilityAllVideos",(()=>{const{currentVideosPageNumber:e,goToLazyVideosPageIndex:t}=this.props,n=!this.state.areAllVideosVisible;this.setState({areAllVideosVisible:n}),n&&!e&&t(0)})),this.state={searchBarValue:e.searchQuery,isInitialVideosLoaded:!1,...Xu,...this.getDefaultPlayerConfig(e)}}componentDidMount(){const{currentVideosPageNumber:e,goToLazyVideosPageIndex:t}=this.props;this.sendSubscriptionDisplayedOnWidget(),this.shouldRenderVideos&&!e&&t(0)}UNSAFE_componentWillReceiveProps(e){e.isEditor&&this.hasPreviewBecameActive(e)&&this.reset(e)}componentDidUpdate(e,t){const{selectedVideoId:n}=this.props;e.selectedVideoId!==n&&(0,Kr.T)(this.playerOverlayContainerRef);t.areAllVideosVisible!==this.state.areAllVideosVisible&&this.shouldRenderVideos&&window.addEventListener("resize",this.focusVideosContainer)}sendSubscriptionDisplayedOnWidget(){const{channelData:e}=this.props;(0,po.g)({channel:e})&&this.props.sendBiEvent("widget.subscription.displayed",{whereDisplayed:"widget"})}get shouldRenderVideos(){const{isThumbnailsPreviewHover:e,isVideoListAlwaysShow:t,isVideoListExpandOnClick:n}=this.props;return!!e||(n?this.state.areAllVideosVisible:t)}get shouldRenderAllVideosButton(){const{isVideoListExpandOnClick:e,isSingleVideo:t,isThumbnailsPreviewHover:n}=this.props;return!n&&(!t&&(e&&!this.state.areAllVideosVisible))}get listThumbnailSize(){if("undefined"==typeof window)return{};const e=this.props.windowSize.width,{videosInRow:t}=this.props.appSettings.numbers;return(0,co.pq)(e,t)}get videosListHeight(){const{appSettings:e,channelData:t}=this.props,{videosInRow:n,numberOfRows:r}=e.numbers,o=Math.min(t.videosCount,n*r);return this.listThumbnailSize.height*Math.ceil(o/n)}isVideoPreviewMode(){return!1}getDefaultPlayerConfig(){return{isVideoPreview:!1}}hasPreviewBecameActive(e){return!this.state.isVideoPreview&&this.isVideoPreviewMode(e)}get categoriesList(){const e=ie().get(this.props,"channelData.statsInfo.categories")||[];return ie().map(e,"value")}get noSearchResults(){const e=Ot()(Yu["no-search-results"],{[Yu.stretched]:this.videosListHeight<350});return o().createElement(Rc,{className:e})}get videosList(){const{appSettings:e,channelData:t,videoIdsByPageNumber:n,currentVideosPageNumber:r,isVideosFetching:i,mainVideo:s,currentSiteUser:a}=this.props,{videosInRow:l,numberOfRows:c}=e.numbers,u=!n.length;return i&&u||!s?null:o().createElement(gc,{className:Yu.videos,containerWidth:this.playerSize.width,videoIdsByPageNumber:n,currentVideosPageNumber:r,onSlideToNext:this.handleSlideToNext,onSlideToPrev:this.handleSlideToPrev,channelData:t,currentSiteUser:a,onPlayRequest:this.playVideo,onThumbnailClick:this.handleThumbnailClick,thumbnailSize:this.listThumbnailSize,numberOfRows:c,numberOfColumns:l})}get closeVideosButton(){const{appSettings:e,isVideoListAlwaysShow:t}=this.props,{showChannelShare:n,showChannelInfo:r,showSignIn:i}=e.booleans,s=!(n||r||this.canSubscribe||i);return!this.shouldRenderVideos||t?null:o().createElement(tn.Qj,{className:Yu.action,isFocusable:this.isChannelActionsFocusable(),onClick:this.handleUserToggleVisibilityAllVideos,dataHook:"close-action-bar",ariaLabel:this.props.t("widget.accessibility.close-video-list")},s&&this.props.t("widget.strip-view.close"),o().createElement(Oo.Z,{className:Yu[s?"close-icon-with-label":"close-icon"],name:"add"}))}get categories(){const{isCategoriesDropdownVisible:e,appSettings:t,searchQuery:n,isVideoListNeverShow:r}=this.props,{isSearchBarExpanded:i,currentCategory:s,searchBarValue:a}=this.state,{showChannelCategories:l}=t.booleans;if(!e||r||!l)return null;const c=i||!s&&(n||a),u=Ot()(Yu["categories-container"],{[Yu.hidden]:c});return o().createElement("div",{className:u},o().createElement(gl,{className:Yu.categories,DropdownClass:fi,isFocusable:this.isChannelActionsFocusable(),height:42,list:this.categoriesList,onCategorySelect:this.handleCategorySelect,selectedCategory:s}))}get canSubscribe(){const{channelData:e}=this.props,t=(0,Xr.il)(e.dealInfo);return!ie().get(e,"dgsInfo.subscription")&&t}isChannelActionsFocusable(){return!this.props.searchQuery||this.state.currentCategory}get signInButton(){const{isSignInVisible:e,channelData:t}=this.props;return e?o().createElement($u,{channelId:t.id,onPageRefresh:this.storeDataForReload},(e=>o().createElement(tl,{className:Ot()("qa-widget-channel-account",Yu.action),infoButtonClassName:Yu["account-button"],isFocusable:this.isChannelActionsFocusable(),channelData:t,onClick:e.showAccountInfo,onLoginClick:e.logIn,onLogoutClick:e.logOut,onSubscribeClick:e.subscribe}))):null}get channelActions(){const{channelData:e,searchQuery:t,mainVideoId:n,isChannelShareVisible:r,isChannelInfoVisible:i,isSignInVisible:s}=this.props,{currentCategory:a}=this.state,l=this.closeVideosButton;if(!(r||i||(0,po.g)({channel:e})||s||l))return null;const{isSearchBarExpanded:c,searchBarValue:u}=this.state,d=c||(a?"":t)||u,p=Ot()(Yu["channel-actions"],{[Yu.hidden]:d}),h=this.isChannelActionsFocusable();return o().createElement($u,{channelId:e.id,videoId:n,onPageRefresh:this.storeDataForReload},(t=>o().createElement("div",{className:p,"data-hook":"channel-actions"},r&&o().createElement(uu,{className:Ot()(Yu.action,Yu["action-share"]),ariaLabel:this.props.t("widget.accessibility.share"),tabIndex:h?0:-1,onClick:t.showShare}),o().createElement(il,{className:Yu.action,channelData:e,isFocusable:h,onClick:this.showChannelInfo}),o().createElement(ll,{className:Yu.action,channelData:e,isFocusable:h,onClick:t.subscribe}),this.signInButton,l)))}get searchBar(){const{isSearchInputVisible:e,appSettings:t,searchQuery:n,isVideoListNeverShow:r}=this.props,{currentCategory:i}=this.state;if(!e)return null;const{isSearchBarExpanded:s,searchBarValue:a}=this.state,l=i?"":n,c=s||l||a,{booleans:u}=t,{showSearch:d}=u;return r||!d?null:o().createElement(Ll,{layout:"strip",className:Ot()("qa-widget-searchbar",Yu.search,{[Yu.expanded]:c}),value:l,onFocus:this.handleSearchInputFocus,onBlur:this.handleSearchInputBlur,onChange:this.handleSearchInputChange,onClose:this.clearSearch,onSearch:this.searchByQuery})}get actionsLine(){const{isVideoPlaying:e,isSingleVideo:t,isVideoListNeverShow:n,isPortableDevice:r}=this.props;if(t)return this.renderSingleVideoActionsLine();const i=this.searchBar,s=this.categories,a=this.channelActions;return!this.shouldRenderVideos&&!n||r&&e||!i&&!s&&!a?null:o().createElement("div",{className:Yu["search-line"],"data-hook":"widget-search-line"},a,i,s)}renderSingleVideoActionsLine(){return this.props.isSignInVisible?o().createElement("div",{className:Yu["search-line"],"data-hook":"single-video-actions-line"},o().createElement("div",{className:Yu["channel-actions"],"data-hook":"single-video-actions"},this.signInButton)):null}get allVideosButton(){const{isVideoPlaying:e,isPortableDevice:t}=this.props;return!this.shouldRenderAllVideosButton||t&&e?null:o().createElement("div",{className:Yu["all-videos"]},o().createElement(kc.Z,{className:Yu.button,disableTheme:!0,dataHook:"all-videos-button",onClick:this.handleUserToggleVisibilityAllVideos},this.props.t("widget.strip-view.all-videos"),o().createElement(Oo.Z,{name:"add",className:Yu.icon})))}get videos(){const{channelData:e,isVideosFetching:t,videoIdsByPageNumber:n,searchQuery:r,currentVideosPageNumber:i,isSingleVideo:s,isSearchResultEmpty:a}=this.props;if(!e||!this.shouldRenderVideos||s)return null;const l={channelTitle:e.title,isChannelHasVideos:Boolean(e.videosCount),dataHook:"video-list",isVideosFetching:t,videoIdsByPageNumber:n,searchQuery:r,currentVideosPageNumber:i};return e.videosCount?o().createElement(ou,Yn()({},l,{className:Yu["videos-container"],style:{height:this.videosListHeight},onRef:(0,$t.r)(this.saveRef,"videosContainerRef")}),a?this.noSearchResults:this.videosList):o().createElement(ou,Yn()({},l,{className:Yu["coming-soon"],style:{minHeight:this.listThumbnailSize.height},onRef:(0,$t.r)(this.saveRef,"videosContainerRef")}),this.props.t("widget.this-channel-is-coming-soon"))}get playerSize(){const{width:e}=this.props.windowSize;return e?{width:Math.max(co.Nf,e),height:Math.round(Math.max(co.Nf,e)/2.39)}:{}}get hasBottomContent(){const e=this.allVideosButton,t=this.actionsLine;return Boolean(e||t)}renderNoVideoPlayerOverlay(){const{appSettings:e,channelData:t}=this.props,n=this.hasBottomContent,r={appSettings:e,channelData:t,buttonsWrapperClassName:Ot()({[Yu["buttons-wrapper-no-margin"]]:!n}),className:Yu["player-overlay"],showChannelCover:!0,areAllVideosVisible:!1,videoItem:{},onPlaySelectedVideo:ie().noop};return o().createElement(Oc,r)}get playerOverlayNav(){const{hasNextVideo:e,hasPrevVideo:t,isRTL:n}=this.props;return o().createElement(Yr,{prevButtonClassName:Yu["prev-button"],nextButtonClassName:Yu["next-button"],prevButtonAriaLabel:this.props.t("widget.accessibility.prev-video"),nextButtonAriaLabel:this.props.t("widget.accessibility.next-video"),onPrevClick:this.selectPrevVideo,onNextClick:this.selectNextVideo,isPrevVisible:t,isNextVisible:e,isRTL:n})}getCurrentlyPlayingVideo(){const{videoByIds:e,mainVideoId:t,isVideoPlaying:n}=this.props;return n?ie().get(e,t,null):null}renderPlayerOverlay(){const{appSettings:e,channelData:t,currentSiteUser:n,mainVideo:r,canShowChannelCover:i}=this.props;if(this.getCurrentlyPlayingVideo()&&(0,Qr.SH)(this.getCurrentlyPlayingVideo()))return null;const s=this.hasBottomContent,a=Ot()({[Yu["buttons-wrapper-no-margin"]]:!s});return o().createElement("section",{className:Yu["player-overlay-container"],ref:(0,$t.r)(this.saveRef,"playerOverlayContainerRef")},o().createElement(Oc,{className:Yu["player-overlay"],buttonsWrapperClassName:a,currentSiteUser:n,channelData:t,appSettings:e,videoItem:r,showChannelCover:i,onPlaySelectedVideo:this.playVideo,areAllVideosVisible:this.shouldRenderVideos,toggleVisibilityAllVideos:this.handleUserToggleVisibilityAllVideos,showChannelInfo:this.showChannelInfo}))}get player(){const{PlayerComponent:e,isPortableDevice:t}=this.props;if(!e)return null;const{width:n,height:r}=this.playerSize,{channelData:i,isVideoPlaying:s,mainVideo:a,canShowChannelCover:l}=this.props,c={videoItem:a,channelData:i,width:n,height:r,canShowChannelCover:l,className:Yu.player,onMemberSignUp:this.openMembership};return t?o().createElement(Po,null,(t=>{let{canShowVideoInfoButton:n,canShowShareButton:r}=t;return o().createElement(e,Yn()({},c,{paused:!s,canShowFullInfo:n,canShareVideo:r}))})):o().createElement(Po,null,(t=>{let{canShowVideoInfoButton:n,canShowShareButton:r}=t;return o().createElement(dl,Yn()({},c,{PlayerComponent:e,onMemberSignUp:this.openMembership,canShowFullInfo:n,canShareVideo:r}))}))}renderNoVideosPlayerContent(){const{channelData:e,isMainItemChannelCover:t}=this.props,{width:n,height:r}=this.playerSize;return o().createElement(fu,{channelCoverUrl:(0,Jr.k)(e),width:n,height:r,isMainItemChannelCover:t},this.renderNoVideoPlayerOverlay())}get playerContainer(){const{mainVideo:e}=this.props;if(!e)return o().createElement("div",{className:Yu["player-container"]},this.renderNoVideosPlayerContent(),this.allVideosButton,this.actionsLine);const t=this.hasBottomContent;return o().createElement("div",{className:Ot()(Yu["player-container"],{[Yu["with-bottom-padding"]]:t}),"data-channel-layout":"strip"},o().createElement("div",{className:Yu.player},this.player,this.renderPlayerOverlay(),this.playerOverlayNav,this.allVideosButton,this.actionsLine),o().createElement(nu,null))}render(){const{channelData:e,isVideoPlaying:t,selectedVideoId:n,isSingleVideo:r}=this.props;return o().createElement("section",{className:Ot()(Yu.container,{[Yu["with-videos"]]:this.shouldRenderVideos,[Yu["single-video"]]:r}),ref:(0,$t.r)(this.saveRef,"containerRef"),"data-channel-layout":"strip","data-hook":"widget-container","aria-label":this.props.t("widget.accessibility.channel-videos-widget",{channelTitle:e.title}),tabIndex:"0"},this.playerContainer,this.videos,o().createElement(_r.Z,{onRent:this.setCurrentVideoFromPayment,onSale:this.setCurrentVideoFromPayment,onSubscription:this.reset,onSubscriptionCancel:this.reset}),o().createElement(Zu,{playVideo:this.playVideo,isVideoPlaying:t,selectedVideoId:n}),o().createElement(Iu,null))}},qe()(Ku,"displayName","StripView"),Ku))),ed=cr((0,or.F)((0,Ur.yT)(Ju)));var td,nd=n(77625),rd=n(40385),od=n(43399),id=n(14254);const sd={toggleShareChannelOverlay:Wc.op,toggleShareVideoOverlay:Wc.lu},ad=(0,He.$j)((e=>({isOpen:(0,id.Wg)(e),canShowVideoShare:(0,wo.r)(e),canShowChannelShare:(0,Ze.Sd)(e)})),sd)((td=class extends o().Component{constructor(){super(...arguments),qe()(this,"toggleShare",(()=>{const{canShowChannelShare:e}=this.props;e?this.props.toggleShareChannelOverlay():this.props.toggleShareVideoOverlay()}))}render(){const{isFocusable:e,isOpen:t,children:n,canShowChannelShare:r}=this.props;return r?n&&n({toggleShare:this.toggleShare,tabIndex:!e||t?-1:0,ariaLabel:this.props.t("widget.accessibility.share")}):null}},qe()(td,"defaultProps",{isFocusable:!0}),td)),ld=(0,ln.Z)()(ad);var cd,ud=n(90716);function dd(){return dd=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},dd.apply(this,arguments)}const pd=function(e){return r.createElement("svg",dd({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 9",style:{enableBackground:"new 0 0 30 9"},xmlSpace:"preserve"},e),cd||(cd=r.createElement("path",{d:"M24 0v4H0v1h24v4l6-4.5z"})))},hd={"nav-button":"XzMRoi",navButton:"XzMRoi","nav-text":"ZMf6Gh",navText:"ZMf6Gh","nav-arrow":"NjbPu8",navArrow:"NjbPu8",disabled:"OlV30R",prev:"KuGKez",next:"zrkS1r"},md={next:"shared.navigation.next-page",prev:"shared.navigation.previous-page"};class fd extends o().Component{render(){const{name:e,disabled:t,ariaLabel:n,onClick:r}=this.props,i=Ot()(hd["nav-button"],hd[e],{[hd.disabled]:t});return o().createElement("button",{className:i,type:"button",onClick:()=>{t||r()},"aria-label":n,"data-hook":`nav-button-${e}`},o().createElement(pd,{className:hd["nav-arrow"]}),o().createElement("div",{className:hd["nav-text"]},o().createElement(o().Fragment,null,this.props.t(md[e]))))}}qe()(fd,"defaultProps",{rounded:!1});const gd=(0,ln.Z)()((e=>o().createElement(fd,Yn()({},e,{ariaLabel:e.t("widget.accessibility.prev-videos"),name:"prev"})))),vd=(0,ln.Z)()((e=>o().createElement(fd,Yn()({},e,{ariaLabel:e.t("widget.accessibility.next-videos"),name:"next"}))));var yd=n(33625);const bd="edmwQJ";var Ed;!function(e){e.AUD="AUD",e.BRL="BRL",e.CAD="CAD",e.CHF="CHF",e.CZK="CZK",e.DKK="DKK",e.EUR="EUR",e.GBP="GBP",e.HKD="HKD",e.HUF="HUF",e.ILS="ILS",e.JPY="JPY",e.MXN="MXN",e.MYR="MYR",e.NOK="NOK",e.NZD="NZD",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SEK="SEK",e.SGD="SGD",e.THB="THB",e.TWD="TWD",e.USD="USD",e.BIF="BIF",e.CVE="CVE",e.KMF="KMF",e.CDF="CDF",e.DJF="DJF",e.ERN="ERN",e.GNF="GNF",e.LSL="LSL",e.LYD="LYD",e.MWK="MWK",e.MRO="MRO",e.SLL="SLL",e.SZL="SZL",e.TJS="TJS",e.TOP="TOP",e.XPF="XPF",e.XOF="XOF",e.XAF="XAF",e.WST="WST",e.VUV="VUV",e.UGX="UGX",e.TZS="TZS",e.STD="STD",e.RWF="RWF",e.PGK="PGK",e.MVR="MVR",e.MOP="MOP",e.MMK="MMK",e.MDL="MDL",e.HTG="HTG",e.GMD="GMD",e.GEL="GEL",e.ETB="ETB",e.BTN="BTN",e.BDT="BDT",e.AOA="AOA",e.AED="AED",e.MGA="MGA",e.GHS="GHS",e.TMT="TMT",e.DZD="DZD",e.MAD="MAD",e.KWD="KWD",e.TND="TND",e.AZN="AZN",e.BGL="BGL",e.BGN="BGN",e.UZS="UZS",e.KZT="KZT",e.KGS="KGS",e.RSD="RSD",e.MKD="MKD",e.TTD="TTD",e.PEN="PEN",e.SOS="SOS",e.IDR="IDR",e.DOP="DOP",e.ZAR="ZAR",e.GTQ="GTQ",e.BYN="BYN",e.BWP="BWP",e.MZN="MZN",e.ALL="ALL",e.RON="RON",e.HNL="HNL",e.KES="KES",e.ISK="ISK",e.HRK="HRK",e.BAM="BAM",e.JOD="JOD",e.JMD="JMD",e.PYG="PYG",e.AWG="AWG",e.ANG="ANG",e.NIO="NIO",e.BZD="BZD",e.VEF="VEF",e.PAB="PAB",e.YER="YER",e.SAR="SAR",e.QAR="QAR",e.OMR="OMR",e.SCR="SCR",e.PKR="PKR",e.NPR="NPR",e.MUR="MUR",e.LKR="LKR",e.UAH="UAH",e.MNT="MNT",e.LAK="LAK",e.VND="VND",e.KRW="KRW",e.NGN="NGN",e.CRC="CRC",e.KHR="KHR",e.AFN="AFN",e.CNY="CNY",e.FKP="FKP",e.SHP="SHP",e.GIP="GIP",e.LBP="LBP",e.EGP="EGP",e.UYU="UYU",e.BOB="BOB",e.BMD="BMD",e.SBD="SBD",e.XCD="XCD",e.LRD="LRD",e.KYD="KYD",e.GYD="GYD",e.FJD="FJD",e.COP="COP",e.CLP="CLP",e.BSD="BSD",e.BND="BND",e.BBD="BBD",e.ARS="ARS",e.NAD="NAD",e.SRD="SRD",e.BHD="BHD",e.AMD="AMD",e.TRY="TRY",e.INR="INR",e.IQD="IQD",e.ZMW="ZMW"}(Ed||(Ed={}));const Sd={[Ed.BIF]:{symbol:"FBu"},[Ed.CVE]:{symbol:"$"},[Ed.KMF]:{symbol:"CF"},[Ed.CDF]:{symbol:"FC"},[Ed.DJF]:{symbol:"Fdj"},[Ed.ERN]:{symbol:"\u1293\u1255\u134b"},[Ed.GNF]:{symbol:"FG"},[Ed.LSL]:{symbol:"L"},[Ed.LYD]:{symbol:"\u0644.\u062f"},[Ed.MWK]:{symbol:"MK"},[Ed.MRO]:{symbol:"UM"},[Ed.SLL]:{symbol:"LE"},[Ed.SZL]:{symbol:"L"},[Ed.TJS]:{symbol:"TJS"},[Ed.TOP]:{symbol:"T$"},[Ed.XPF]:{symbol:"F"},[Ed.XOF]:{symbol:"CFA"},[Ed.XAF]:{symbol:"FCFA"},[Ed.WST]:{symbol:"WS$"},[Ed.VUV]:{symbol:"VT"},[Ed.UGX]:{symbol:"USh"},[Ed.TZS]:{symbol:"TSh"},[Ed.STD]:{symbol:"Db"},[Ed.RWF]:{symbol:"R\u20a3"},[Ed.PGK]:{symbol:"K"},[Ed.MVR]:{symbol:"Rf"},[Ed.MOP]:{symbol:"MOP$"},[Ed.MMK]:{symbol:"K"},[Ed.MDL]:{symbol:"L"},[Ed.HTG]:{symbol:"G"},[Ed.GMD]:{symbol:"D"},[Ed.GEL]:{symbol:"GEL"},[Ed.ETB]:{symbol:"Br"},[Ed.BTN]:{symbol:"Nu."},[Ed.BDT]:{symbol:"\u09f3"},[Ed.AOA]:{symbol:"Kz"},[Ed.AED]:{symbol:"AED"},[Ed.MGA]:{symbol:"Ar"},[Ed.GHS]:{symbol:"GH\u20b5"},[Ed.TMT]:{symbol:"T"},[Ed.DZD]:{symbol:"\u062f\u062c"},[Ed.MAD]:{symbol:"\u062f.\u0645."},[Ed.KWD]:{symbol:"\u062f.\u0643"},[Ed.TND]:{symbol:"\u062f.\u062a"},[Ed.AZN]:{symbol:"\u043c\u0430\u043d"},[Ed.BGL]:{symbol:"\u043b\u0432",isDisabled:!0},[Ed.BGN]:{symbol:"\u043b\u0432"},[Ed.UZS]:{symbol:"\u0441\u0443\u043c"},[Ed.KZT]:{symbol:"\u20b8"},[Ed.KGS]:{symbol:"\u0441\u043e\u043c"},[Ed.RSD]:{symbol:"\u0420\u0421\u0414"},[Ed.MKD]:{symbol:"\u0434\u0435\u043d"},[Ed.TTD]:{symbol:"TT$"},[Ed.PEN]:{symbol:"S/."},[Ed.SOS]:{symbol:"S"},[Ed.IDR]:{symbol:"Rp"},[Ed.DOP]:{symbol:"RD$"},[Ed.ZAR]:{symbol:"R"},[Ed.GTQ]:{symbol:"Q"},[Ed.BYN]:{symbol:"BYR"},[Ed.BWP]:{symbol:"P"},[Ed.MZN]:{symbol:"MT"},[Ed.ALL]:{symbol:"Lek"},[Ed.RON]:{symbol:"lei"},[Ed.HNL]:{symbol:"L"},[Ed.KES]:{symbol:"Ksh"},[Ed.ISK]:{symbol:"kr"},[Ed.HRK]:{symbol:"kn"},[Ed.BAM]:{symbol:"KM"},[Ed.JOD]:{symbol:"JD"},[Ed.JMD]:{symbol:"J$"},[Ed.PYG]:{symbol:"Gs"},[Ed.AWG]:{symbol:"\u0192"},[Ed.ANG]:{symbol:"\u0192"},[Ed.NIO]:{symbol:"C$"},[Ed.BZD]:{symbol:"BZ$"},[Ed.VEF]:{symbol:"Bs"},[Ed.PAB]:{symbol:"B/."},[Ed.YER]:{symbol:"\ufdfc"},[Ed.SAR]:{symbol:"\ufdfc"},[Ed.QAR]:{symbol:"\ufdfc"},[Ed.OMR]:{symbol:"\ufdfc"},[Ed.SCR]:{symbol:"\u20a8"},[Ed.PKR]:{symbol:"\u20a8"},[Ed.NPR]:{symbol:"\u20a8"},[Ed.MUR]:{symbol:"\u20a8"},[Ed.LKR]:{symbol:"\u20a8"},[Ed.UAH]:{symbol:"\u20b4"},[Ed.MNT]:{symbol:"\u20ae"},[Ed.LAK]:{symbol:"\u20ad"},[Ed.VND]:{symbol:"\u20ab"},[Ed.KRW]:{symbol:"\u20a9"},[Ed.NGN]:{symbol:"\u20a6"},[Ed.CRC]:{symbol:"\u20a1"},[Ed.KHR]:{symbol:"\u17db"},[Ed.AFN]:{symbol:"\u060b"},[Ed.CNY]:{symbol:"\xa5"},[Ed.FKP]:{symbol:"\xa3"},[Ed.SHP]:{symbol:"\xa3"},[Ed.GIP]:{symbol:"\xa3"},[Ed.LBP]:{symbol:".\u0644.\u0644"},[Ed.EGP]:{symbol:"\xa3"},[Ed.UYU]:{symbol:"$U"},[Ed.BOB]:{symbol:"$b"},[Ed.BMD]:{symbol:"BD$"},[Ed.SBD]:{symbol:"$"},[Ed.XCD]:{symbol:"$"},[Ed.LRD]:{symbol:"$"},[Ed.KYD]:{symbol:"$"},[Ed.GYD]:{symbol:"$"},[Ed.FJD]:{symbol:"$"},[Ed.CLP]:{symbol:"$"},[Ed.BSD]:{symbol:"$"},[Ed.BND]:{symbol:"$"},[Ed.BBD]:{symbol:"$"},[Ed.ARS]:{symbol:"$"},[Ed.NAD]:{symbol:"$"},[Ed.SRD]:{symbol:"$"},[Ed.BHD]:{symbol:".\u062f.\u0628"},[Ed.AMD]:{symbol:"AMD"},[Ed.TRY]:{symbol:"\u20ba"},[Ed.INR]:{symbol:"\u20b9"},[Ed.IQD]:{symbol:"\u0639.\u062f"},[Ed.ZMW]:{symbol:"ZK"}},Cd={offset:2,subscription:{min:.01,max:1e5,default:1},rent:{min:.01,max:1e5,default:1},sale:{min:.01,max:1e5,default:1},pricing_plan:{min:.01,max:1e5,default:1}},wd=Object.keys(Sd).reduce(((e,t)=>({...e,[t]:{...Cd,...Sd[t]}})),{}),Pd=Ed.USD,Id={[Ed.AUD]:{symbol:"$",offset:2,subscription:{min:.01,max:2500,default:6.49},pricing_plan:{min:.01,max:2500,default:6.49},rent:{min:.01,max:2500,default:3.79},sale:{min:.01,max:2500,default:3.79}},[Ed.BRL]:{symbol:"R$",offset:2,subscription:{min:.05,max:6500,default:16.79},pricing_plan:{min:.05,max:6500,default:16.79},rent:{min:.05,max:6500,default:9.79},sale:{min:.05,max:6500,default:9.79}},[Ed.CAD]:{symbol:"$",offset:2,subscription:{min:.01,max:2500,default:5.79},pricing_plan:{min:.01,max:2500,default:5.79},rent:{min:.01,max:2500,default:3.49},sale:{min:.01,max:2500,default:3.49}},[Ed.CHF]:{symbol:"CHF",offset:2,subscription:{min:.05,max:2e3,default:4.99},pricing_plan:{min:.05,max:2e3,default:4.99},rent:{min:.05,max:2e3,default:2.99},sale:{min:.05,max:2e3,default:2.99}},[Ed.CZK]:{symbol:"K\u010d",offset:2,subscription:{min:1,max:49e3,default:121.49},pricing_plan:{min:1,max:49e3,default:121.49},rent:{min:1,max:49e3,default:72.49},sale:{min:1,max:49e3,default:72.49}},[Ed.DKK]:{symbol:"kr",offset:2,subscription:{min:.05,max:13500,default:33.99},pricing_plan:{min:.05,max:13500,default:33.99},rent:{min:.05,max:13500,default:19.99},sale:{min:.05,max:13500,default:19.99}},[Ed.EUR]:{symbol:"\u20ac",offset:2,subscription:{min:.01,max:2e3,default:4.99},pricing_plan:{min:.01,max:2e3,default:4.99},rent:{min:.01,max:2e3,default:2.99},sale:{min:.01,max:2e3,default:2.99}},[Ed.GBP]:{symbol:"\xa3",offset:2,subscription:{min:.01,max:2e3,default:3.99},pricing_plan:{min:.01,max:2e3,default:3.99},rent:{min:.01,max:2e3,default:2.29},sale:{min:.01,max:2e3,default:2.29}},[Ed.HKD]:{symbol:"$",offset:2,subscription:{min:.1,max:15500,default:39},pricing_plan:{min:.1,max:15500,default:39},rent:{min:.1,max:15500,default:24},sale:{min:.1,max:15500,default:24}},[Ed.HUF]:{symbol:"Ft",offset:2,subscription:{min:5,max:57e4,default:1389.49},pricing_plan:{min:5,max:57e4,default:1389.49},rent:{min:5,max:57e4,default:833.49},sale:{min:5,max:57e4,default:833.49}},[Ed.ILS]:{symbol:"\u20aa",offset:2,subscription:{min:.01,max:8e3,default:17.9},pricing_plan:{min:.01,max:8e3,default:17.9},rent:{min:.01,max:8e3,default:10.9},sale:{min:.01,max:8e3,default:10.9}},[Ed.JPY]:{symbol:"\xa5",offset:0,subscription:{min:1,max:25e4,default:420},pricing_plan:{min:1,max:25e4,default:420},rent:{min:1,max:25e4,default:360},sale:{min:1,max:25e4,default:360}},[Ed.MXN]:{symbol:"$",offset:2,subscription:{min:.5,max:38e3,default:94.49},pricing_plan:{min:.5,max:38e3,default:94.49},rent:{min:.5,max:38e3,default:56.49},sale:{min:.5,max:38e3,default:56.49}},[Ed.MYR]:{symbol:"RM",offset:2,subscription:{min:.05,max:8e3,default:20.49},pricing_plan:{min:.05,max:8e3,default:20.49},rent:{min:.05,max:8e3,default:12.49},sale:{min:.05,max:8e3,default:12.49}},[Ed.NOK]:{symbol:"kr",offset:2,subscription:{min:1,max:17e3,default:41.99},pricing_plan:{min:1,max:17e3,default:41.99},rent:{min:1,max:17e3,default:24.99},sale:{min:1,max:17e3,default:24.99}},[Ed.NZD]:{symbol:"$",offset:2,subscription:{min:.01,max:2500,default:6.49},pricing_plan:{min:.01,max:2500,default:6.49},rent:{min:.01,max:2500,default:3.79},sale:{min:.01,max:2500,default:3.79}},[Ed.PHP]:{symbol:"\u20b1",offset:2,subscription:{min:1,max:94500,default:233.99},pricing_plan:{min:1,max:94500,default:233.99},rent:{min:1,max:94500,default:139.99},sale:{min:1,max:94500,default:139.99}},[Ed.PLN]:{symbol:"z\u0142",offset:2,subscription:{min:1,max:8e3,default:19.79},pricing_plan:{min:1,max:8e3,default:19.79},rent:{min:1,max:8e3,default:11.79},sale:{min:1,max:8e3,default:11.79}},[Ed.RUB]:{symbol:"\u20bd",offset:2,subscription:{min:.01,max:15e4,default:279},pricing_plan:{min:.01,max:15e4,default:279},rent:{min:.01,max:15e4,default:169},sale:{min:.01,max:15e4,default:169}},[Ed.SEK]:{symbol:"kr",offset:2,subscription:{min:1,max:17e3,default:42.79},pricing_plan:{min:1,max:17e3,default:42.79},rent:{min:1,max:17e3,default:25.79},sale:{min:1,max:17e3,default:25.79}},[Ed.SGD]:{symbol:"$",offset:2,subscription:{min:.05,max:3e3,default:6.79},pricing_plan:{min:.05,max:3e3,default:6.79},rent:{min:.05,max:3e3,default:4.79},sale:{min:.05,max:3e3,default:4.79}},[Ed.THB]:{symbol:"\u0e3f",offset:2,subscription:{min:.5,max:7e4,default:172.79},pricing_plan:{min:.5,max:7e4,default:172.79},rent:{min:.5,max:7e4,default:103.49},sale:{min:.5,max:7e4,default:103.49}},[Ed.TWD]:{symbol:"NT$",offset:2,subscription:{min:1,max:65e3,default:158.49},pricing_plan:{min:1,max:65e3,default:158.49},rent:{min:1,max:65e3,default:94.99},sale:{min:1,max:65e3,default:94.99}},[Ed.USD]:{symbol:"$",offset:2,subscription:{min:.01,max:2e3,default:4.99},pricing_plan:{min:.01,max:2e3,default:4.99},rent:{min:.01,max:2e3,default:2.99},sale:{min:.01,max:2e3,default:2.99}},[Ed.COP]:{symbol:"$",offset:2,subscription:{min:1,max:7e6,default:1},pricing_plan:{min:1,max:7e6,default:1},rent:{min:1,max:7e6,default:1},sale:{min:1,max:7e6,default:1}},...wd};class Od extends o().Component{render(){const{currency:e}=this.props;return o().createElement("div",{className:bd,"data-hook":"currency-symbol"},Id[e??Pd].symbol)}}var Td=n(62547);const Nd=()=>(0,gt.P1)(ft.js,bt.C,((e,t)=>t.videoItem),((e,t)=>t.onPlayRequest),((e,t)=>t.onPlayMemberOnlyRequest),((e,t,n,r,o)=>{const i=(0,vt.TK)(e,n,t),s=(0,vt.D$)(e,n,t),a=function(e,t,n,r){return n?e:r===vt.FE.SIGN_IN?t:ie().noop}(r,o,(0,vt.$4)(e,n,t),s),l=function(e,t){return e?{props:Td.Gz[e]}:t===vt.FE.SIGN_IN?{props:"widget.overlay-buttons.play-video"}:null}(i,s);return l?{callback:a,translationData:l}:null}));var Ad=n(10396);const xd=()=>(0,gt.P1)(ft.js,bt.C,((e,t)=>t.videoItem),((e,t)=>t.onSubscriptionRequest),((e,t)=>t.onPurchaseRequest),((e,t)=>t.onRentRequest),((e,t,n,r,o,i)=>{const s=(0,vt.D$)(e,n,t),a=function(e,t,n,r){return r===vt.FE.RENT?n:r===vt.FE.SUBSCRIBE||r===vt.FE.PRICING_PLAN?e:r?t:oe.noop}(r,o,i,s),l=function(e,t,n){switch(e){case vt.FE.BUY:return{props:Ad.G[e],priceModel:(0,Xr.Tv)(n.dealInfo)};case vt.FE.RENT:return{props:Ad.G[e],priceModel:(0,Xr.OQ)(n.dealInfo)};case vt.FE.BUY_OR_RENT:return{props:Ad.G[e],priceModel:(0,Xr._E)(n.dealInfo)};case vt.FE.SUBSCRIBE:return{props:"widget.overlay-buttons.get-subscription",priceModel:(0,Xr.il)(t.dealInfo)};case vt.FE.PRICING_PLAN:return{props:Ad.G[e],priceModel:(0,Xr.AZ)(t.dealInfo)};default:return null}}(s,e,n);return l?{callback:a,translationData:l}:null})),_d="F2nCJ5",Ld="A2_XOr",Rd="AX4rmo",kd="LxgSGa",Dd="bl9PqF",Vd="ekZcnh",Md="kn2svW",Bd="BPt7UM",Fd="Cg2xdo",Ud="j2rwll",jd="NQ_YwU",Hd="tOoXED",Zd="NSn5zp",Wd="HptYDw",zd="XxKAeP",qd="MuruQ3",Gd="ffJ2DZ";class $d extends o().Component{render(){const{children:e,maxLinesCount:t,className:n,ariaHidden:r}=this.props;return e?o().createElement("div",{className:Ot()(Md,n),"aria-hidden":r},o().createElement(Xl.v,{text:e,dataHook:"title",wrapperTag:"h3",clampOptions:{lineClamp:t}})):null}}qe()($d,"defaultProps",{maxLinesCount:2,ariaHidden:!1});class Yd extends o().Component{render(){const{children:e,className:t,ariaHidden:n}=this.props;return e?o().createElement("div",{className:Ot()(Md,t),"data-hook":"publisher","aria-hidden":n},e):null}}var Kd;function Xd(){return Xd=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},Xd.apply(this,arguments)}qe()(Yd,"defaultProps",{ariaHidden:!1});const Qd=function(e){return r.createElement("svg",Xd({width:56,height:56,viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg"},e),Kd||(Kd=r.createElement("g",{fill:"#FFF",fillRule:"evenodd"},r.createElement("path",{d:"M28 53c13.807 0 25-11.193 25-25S41.807 3 28 3 3 14.193 3 28s11.193 25 25 25Zm0 3C12.536 56 0 43.464 0 28S12.536 0 28 0s28 12.536 28 28-12.536 28-28 28Z"}),r.createElement("path",{d:"M37.232 27.91 22 36.82V19z"}))))};class Jd extends o().Component{constructor(){super(...arguments),qe()(this,"handleClick",(e=>{e.stopPropagation(),e.preventDefault(),this.props.onClick()}))}render(){const{children:e,isIconOnly:t,isFocusable:n,className:r,iconClassName:i,ariaHidden:s}=this.props,a=Ot()(Rd,r,{[jd]:t});return o().createElement("div",{className:a,onClick:this.handleClick,"data-hook":"overlay-play-button","aria-hidden":s,tabIndex:n?0:-1},o().createElement(Qd,{className:Ot()(Ud,i)}),e&&o().createElement("span",{className:Fd},e))}}qe()(Jd,"defaultProps",{isFocusable:!0,isIconOnly:!1,ariaHidden:!1});var ep=n(14456),tp=n(88137);const np="yUuGIv",rp=e=>{const{videoItem:t,className:n,breakpoints:r}=e;return o().createElement("div",{className:Ot()(np,n)},o().createElement(tp.t,{alt:t.title,src:(0,ep.d)(t)??"",breakpoints:r}))},op={container:"WbWfav",visible:"LbME4F","title-block":"FOKmr9",titleBlock:"FOKmr9",button:"kNZkmm",cover:"BDLGnY",content:"UY2hWZ","top-content":"zQeRrz",topContent:"zQeRrz",title:"rS5XGm","buttons-wrapper":"z2PKy8",buttonsWrapper:"z2PKy8",text:"NjBqm2",icon:"NRIXVk","only-icon":"jJIhxm",onlyIcon:"jJIhxm","info-when-hover":"oXTL_p",infoWhenHover:"oXTL_p","paid-access-icon":"sJGW7U",paidAccessIcon:"sJGW7U",duration:"zpZLt9","live-scheduled-label":"dbLgPb",liveScheduledLabel:"dbLgPb","play-button":"sZZMor",playButton:"sZZMor","info-visible":"rW3Lmv",infoVisible:"rW3Lmv","description-below":"NV95O0",descriptionBelow:"NV95O0",description:"WkaqTs",publisher:"lr6yn9",selected:"nn1iuC","preview-hover":"qsMYo5",previewHover:"qsMYo5",playing:"vMLTGd","now-playing":"Mfb4J2",nowPlaying:"Mfb4J2",thumbnail:"HPntRk","play-icon":"KnWguL",playIcon:"KnWguL","element-max-249":"RGP9b_",elementMax249:"RGP9b_","element-max-199":"P5mpqG",elementMax199:"P5mpqG","live-label":"lvDuDL",liveLabel:"lvDuDL"};function ip(e,t){var n,r;const o=(null==e||null==(n=e.dealInfo)?void 0:n[0])||(null==t||null==(r=t.dealInfo)?void 0:r[0]);return null==o?void 0:o.currency}var sp;const ap={[op["element-max-199"]]:{maxWidth:199},[op["element-max-249"]]:{minWidth:200,maxWidth:249}},lp=(0,ln.Z)()((0,He.$j)((()=>{const e=Nd(),t=xd();return(n,r)=>({playButtonConfig:e(n,r),paidAccessButtonConfig:t(n,r),isLive:(0,Qr.mY)(r.videoItem),isPlaying:r.isSelected&&(0,mt.BW)(n),isShowVideoListItemTitle:(0,Ze.Um)(n),isShowVideoListItemPublisher:(0,Ze.AV)(n),isClassicLayout:(0,Ze.cM)(n),channel:(0,ft.js)(n)})}))((sp=class extends o().Component{constructor(){super(...arguments),qe()(this,"renderOverlay",(e=>{const{videoItem:t,className:n,isInfoAlwaysShown:r,isDescriptionBelow:i,isInfoShownOnHover:s,isThumbnailsPreviewHover:a,isSelected:l,isPlaying:c,width:u,height:d,isContentFocusable:p,onClick:h,isLive:m}=this.props;if(!t)return null;const f=Ot()(op.container,n,{[op["info-visible"]]:r,[op["info-when-hover"]]:s,[op["description-below"]]:i,[op["preview-hover"]]:a,[op.selected]:l,[op.playing]:c,...e}),g=Ot()(op.thumbnail,{[op.live]:m}),v=Ot()("video-list-thumb-wrapper",{"video-list-thumb-wrapper-selected":l});return o().createElement("section",{className:f,onClick:h,"data-hook":v,style:{width:u}},o().createElement("div",{className:g,style:{height:d,width:u},onKeyDown:(0,$t.r)(vl,h),tabIndex:p?0:-1,"aria-hidden":!p},o().createElement(rp,{className:op.cover,videoItem:t,breakpoints:[{min:0,width:u,height:d}],withFallbackColor:!0}),o().createElement("div",{className:op.content},this.renderPlayingIndication(),!i&&this.renderTitle(),this.renderPaidAccessIcon(),this.renderDuration(),this.renderLiveLabel())),this.renderPlayButton(),i&&this.renderDescription())}))}renderTitle(){const{videoItem:e,isPlaying:t,isDescriptionBelow:n,isShowVideoListItemTitle:r,isClassicLayout:i}=this.props;return i&&!r?null:o().createElement($d,{className:op.title,maxLinesCount:n?1:2,ariaHidden:t},e.title)}renderPublisher(){const{videoItem:e,isPlaying:t,isClassicLayout:n,isShowVideoListItemPublisher:r}=this.props;return n&&!r?null:o().createElement(Yd,{className:op.publisher,ariaHidden:t},e.publisher)}renderDescription(){const e=this.renderTitle(),t=this.renderPublisher();return e||t?o().createElement("div",{className:op.description},e,t):null}renderPlayButton(){const{playButtonConfig:e,isContentFocusable:t,isPlaying:n}=this.props;return e?o().createElement(Jd,{className:op["play-button"],iconClassName:op["play-icon"],onClick:e.callback,isFocusable:t,ariaHidden:n,isIconOnly:!0},this.props.t(e.translationData.props)):null}renderPaidAccessIcon(){const{paidAccessButtonConfig:e,isPlaying:t,videoItem:n,channel:r}=this.props;if(!e)return null;const i=ip(n,r);return o().createElement("div",{className:op["paid-access-icon"],"aria-hidden":t,"data-hook":"paid-icon"},o().createElement(Od,{currency:i}))}renderPlayingIndication(){const{isPlaying:e}=this.props;return o().createElement("div",{className:op["now-playing"],tabIndex:-1,"aria-hidden":!e},this.props.t("thumbnail.now-playing"))}renderDuration(){const{isLive:e,videoItem:{durationStr:t,isPlaying:n}}=this.props;return!t||e?null:o().createElement("div",{className:op.duration,role:"timer","aria-hidden":n,"aria-label":this.props.t("widget.accessibility.duration",{durationStr:t})},t)}renderLiveLabel(){const{videoItem:e}=this.props;return o().createElement(tc.Z,{itemType:e.itemType,liveVideoStatus:e.liveVideoStatus,startTime:e.dateStartLive,isSmall:!0,className:op["live-label"],smallClassName:op["live-scheduled-label"]})}render(){return o().createElement(yd.ContainerQuery,{query:ap},this.renderOverlay)}},qe()(sp,"defaultProps",{isContentFocusable:!0,isDescriptionBelow:!1,isShowVideoListItemTitle:!0,isShowVideoListItemPublisher:!0}),sp))),cp="zsTrPt",up="a6tM_O",dp="wYi6Gv",pp="h_5iS1",hp={logWidgetSystem:Nn.e},mp=(0,He.$j)((e=>({isFetching:(0,ho.ab)(e),videoByIds:(0,Et.$u)(e),isVideoPlaying:(0,mt.BW)(e),selectedVideoId:(0,kn.hg)(e),videosInRowCount:(0,Ze.I2)(e),searchQuery:(0,So.uP)(e),currentSiteUser:(0,bt.C)(e),isThumbnailsPreviewHover:(0,Ze.ok)(e),isInfoAlwaysShown:(0,Ze.eB)(e),isInfoShownOnHover:(0,Ze.GJ)(e),isDescriptionBelow:(0,Ze.DM)(e),isRTL:(0,Ze.dZ)(e)})),hp)(class extends o().Component{constructor(){super(...arguments),qe()(this,"renderVideoItem",((e,t,n)=>{const{channelData:r,videoByIds:i,thumbnailSize:s,onThumbnailClick:a,onPlayRequest:l,onPlayMemberOnlyRequest:c,selectedVideoId:u,isSelectedVideoIndicationDisabled:d,videosInRowCount:p,currentSiteUser:h,isThumbnailsPreviewHover:m,isInfoAlwaysShown:f,isDescriptionBelow:g,isInfoShownOnHover:v}=this.props,y=i[e],b=u===e&&!d,E=(t+1)%p==0,S=Ot()(up,{[dp]:E});return o().createElement(lp,Yn()({},s,{key:e,className:S,currentSiteUser:h,channelData:r,videoItem:y,isSelected:b,isContentFocusable:n,isThumbnailsPreviewHover:m,isInfoAlwaysShown:f,isDescriptionBelow:g,isInfoShownOnHover:v,onPlayRequest:(0,$t.r)(l,y),onPlayMemberOnlyRequest:(0,$t.r)(c,e),onClick:(0,$t.r)(a,y)}))}))}UNSAFE_componentWillReceiveProps(e){let{currentVideosPageNumber:t}=e;t!==this.props.currentVideosPageNumber&&this.props.logWidgetSystem("videoList.changePage.rendered",{previousEventName:"videoList.changePage.requested"})}componentDidUpdate(){this.props.logWidgetSystem("videoList.searchByQuery.rendered",{previousEventName:"videoList.searchByQuery.requested"}),this.props.logWidgetSystem("videoList.searchByTag.rendered",{previousEventName:"videoList.searchByTag.requested"}),this.props.logWidgetSystem("videoList.searchByCategory.rendered",{previousEventName:"videoList.searchByCategory.requested"})}hasPage(e){const{videoIdsByPageNumber:t}=this.props;return Boolean(t[e])}get isPrevPageVisible(){const{currentVideosPageNumber:e}=this.props;return this.hasPage(e-1)}get isNextPageVisible(){const{currentVideosPageNumber:e}=this.props;return this.hasPage(e+1)}render(){const{currentVideosPageNumber:e,videoIdsByPageNumber:t,containerWidth:n,className:r,onSlideToNext:i,onSlideToPrev:s,isFetching:a,isRTL:l}=this.props;return o().createElement("div",{className:r},o().createElement(Bl,{className:cp,width:n,currentPageNumber:e,isRTL:l},o().createElement(Zl,{pageWidth:n,currentPageNumber:e,itemsByPageNumber:t,renderItem:this.renderVideoItem,isRTL:l})),(this.isPrevPageVisible||this.isNextPageVisible||a)&&o().createElement("div",{className:pp},o().createElement(gd,{disabled:!this.isPrevPageVisible,onClick:s}),o().createElement(vd,{disabled:!this.isNextPageVisible,onClick:i})))}}),fp="Ov75TI",gp="jZkLN1",vp="aPHGRp",yp="cDR_Ox",bp="tXIrMk",Ep="mTJGQm",Sp="ByxKUH",Cp="DD1itD",wp="s7OlfS",Pp={openSubscription:zl,openPlayerOverlay:Gl,playSelectedVideo:bo},Ip=(0,He.$j)(((e,t)=>({titleText:(0,fo.hT)(e,t),publisherText:(0,fo.y7)(e,t),subscribeButtonText:(0,fo.MT)(e,t),playButtonText:(0,fo.lb)(e,t),purchaseButtonText:(0,fo.m4)(e,t),playNextButtonText:(0,fo.s6)(e,t),opacityStyle:(0,fo.uo)(e)})),Pp)(class extends o().Component{constructor(){super(...arguments),qe()(this,"handlePlayNextVideoClick",(e=>{e.preventDefault(),e.stopPropagation(),this.props.playNextVideo()})),qe()(this,"handleSubscriptionButtonClick",(e=>{e.preventDefault(),e.stopPropagation(),this.props.openSubscription(this.props.fedops)})),qe()(this,"handlePurchaseButtonClick",(e=>{e.preventDefault(),e.stopPropagation();const{openPlayerOverlay:t,videoItem:n,fedops:r}=this.props;t(r,n)})),qe()(this,"handlePlaySelectedVideo",(e=>{e.preventDefault(),e.stopPropagation();const{videoItem:t,playSelectedVideo:n,onPlaySelectedVideo:r}=this.props;n({videoItem:t,onPlaySelectedVideo:r})}))}renderPublisher(){const{publisherText:e}=this.props,t=Ot()(yp,"qa-widget-overlay-publisher");return o().createElement("div",{className:t,"data-hook":"overlay-publisher"},o().createElement("span",null,e))}renderLiveLabel(){const{videoItem:e}=this.props;return o().createElement(tc.Z,{itemType:e.itemType,liveVideoStatus:e.liveVideoStatus,videoTitle:e.title,startTime:e.dateStartLive,className:wp})}renderPlayButton(){const{channelData:e,playButtonText:t}=this.props;return t?(0,nc.z3)(e)?o().createElement(kc.Z,{dataHook:"overlay-play-button",className:Ep,onClick:this.handlePlaySelectedVideo},o().createElement(Oo.Z,{className:Sp,name:"arrow-right-filled"}),o().createElement("span",null,t)):o().createElement(ec,{className:Cp}):null}renderPlayNextButton(){const{playNextButtonText:e}=this.props;return e?o().createElement(kc.Z,{className:Ep,"data-hook":"overlay-next-video-button",onClick:this.handlePlayNextVideoClick},e):null}renderSubscribeButton(){const{subscribeButtonText:e}=this.props;return e?o().createElement(kc.Z,{className:Ep,dataHook:"subscribe-button",onClick:this.handleSubscriptionButtonClick},e):null}renderPurchaseButton(){const{purchaseButtonText:e}=this.props;return e?o().createElement(kc.Z,{className:Ep,dataHook:"paid-access-button",onClick:this.handlePurchaseButtonClick},e):null}renderButtons(){return this.props.videoItem?o().createElement("div",{className:bp},this.renderPlayButton(),this.renderSubscribeButton()||this.renderPurchaseButton(),this.renderPlayNextButton()):null}render(){const{className:e,opacityStyle:t,publisherText:n,titleText:r,saveRef:i}=this.props;return o().createElement("section",{className:fp,ref:i},o().createElement("div",{style:t,className:Ot()(e,gp),"data-hook":"player-overlay player-overlay-visible",onClick:this.handlePlaySelectedVideo},r&&o().createElement("div",{className:vp},o().createElement(Jl,{text:r})),n&&this.renderPublisher(),this.renderLiveLabel(),this.renderButtons()))}}),Op=(0,or.F)(Ip);var Tp=n(19891);const Np=(0,Mr.DM)("requestPlayVideoOnload",((e,t)=>(n,r)=>{const o=r();t?(n((0,er.b)(!0)),n((0,Tp.D0)(e,!0))):(0,mt.C4)(o)&&n((0,Fn.x)(e,!0,!0))})),Ap=e=>{let{isMobile:t=!1,onAutoPlayRequested:n}=e;const o=(0,He.I0)(),i=(0,He.v9)(Ze.rV),s=(0,He.v9)(Eo.g),a=(0,He.v9)(kn.hg),l=(0,He.v9)(ht.hU),c=(0,He.v9)(We.bK),u=(0,He.v9)(We.$W);return(0,r.useEffect)((()=>{i&&!l&&(c||u)&&(n&&n(s),o(Np(a,t)))}),[]),null},xp="reXdTQ",_p="j0_X8l",Lp="uN4U0m",Rp="ggLWS3",kp="S8dCdI",Dp="pnxiKN",Vp="EE78T4",Mp="nzcGxA",Bp="KsKaAG",Fp="VgbGS3",Up="PmKhOD",jp="XDhPr5",Hp="zRr18R",Zp="_8SXLd5",Wp="Rv3MBX",zp="U6Xh6u",qp="mnTBW0",Gp="Bk2B6Z",$p="UcE16Q",Yp="ViDJXz";var Kp=n(74995);const Xp={container:"N2Pky6",ratioImage:"QnYI6u"};var Qp;!function(e){e.FIT_TO_HEIGHT="FIT_TO_HEIGHT",e.FIT_TO_WIDTH="FIT_TO_WIDTH"}(Qp||(Qp={}));const Jp={[Qp.FIT_TO_HEIGHT]:Xp.fitToheight,[Qp.FIT_TO_WIDTH]:Xp.fitToWidth};class eh extends o().Component{render(){const{children:e,mode:t}=this.props;return o().createElement("div",{className:Xp.container},o().createElement("img",{className:zr()(Xp.ratioImage,Jp[t]),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAIAAAC0SDtlAAAAGklEQVQYlWP8//8/AymAiSTVoxpoooGBgQEAMWADDx3noXgAAAAASUVORK5CYII=",alt:"","aria-hidden":"true"}),e)}}eh.propTypes={children:M().any,mode:M().oneOf([Qp.FIT_TO_HEIGHT,Qp.FIT_TO_WIDTH])},eh.defaultProps={mode:Qp.FIT_TO_WIDTH};var th=n(35457),nh=n(62223);const rh="Sxxmni",oh="W7SUd2",ih="vuYpTR",sh=e=>{let{titleKey:t,coverUrl:n}=e;const{t:r}=(0,Kp.$)();return o().createElement("div",{className:rh},o().createElement(eh,null,n&&o().createElement(tp.t,{src:n,className:oh,mode:th.h.FIT_TO_WIDTH,breakpoints:[{width:nh.LJ,height:nh.BX,min:0}]}),o().createElement("div",{className:ih},r(t))))},ah=function(e){let{coverUrl:t}=e;return o().createElement(sh,{coverUrl:t,titleKey:"widget.this-channel-is-coming-soon"})};class lh{constructor(e){this.logger=e,qe()(this,"interactions",{})}start(e){let t=this.interactions[e]||0;t++,this.logger.interactionStarted(e),this.interactions[e]=t}end(e){let t=this.interactions[e];t>0&&(t--,this.logger.interactionEnded(e),this.interactions[e]=t)}}function ch(e){return(0,or.F)((t=>{const{fedops:n}=t,i=(0,r.useMemo)((()=>new lh(n)),[n]);return o().createElement(e,Yn()({interactions:i},t))}))}const uh={computer:"COMPUTER_PLAY",vimeo:"VIMEO_PLAY",youtube:"YOUTUBE_PLAY",facebook:"FACEBOOK_PLAY",grid:"GRID_PLAY",classic:"CLASSIC_PLAY",compact:"COMPACT_PLAY","full-screen-modal":"FULL_SCREEN_MODAL_PLAY",auto:"AUTO_PLAY",click:"CLICK_PLAY",open:"OPEN_PLAY"};function dh(e,t){e.start("PLAY"),"auto"!==t.trigger&&(e.start(uh[t.source]),e.start(uh[t.layout])),e.start(uh[t.trigger])}function ph(e,t){e.end("PLAY"),e.end(uh[t.source]),e.end(uh[t.layout]),e.end(uh.click),e.end(uh.auto),e.end(uh.open)}var hh,mh=n(96498);const fh={isTagFocused:!1,isSearchInputFocused:!1,searchLayout:!1,currentCategory:null},gh={selectVideo:Dn.Uw,searchByString:hr.cW,searchByCategory:hr.Pj,searchByTag:hr.P_,setSavedTime:Mn.Z,goToLazyVideosPageIndex:Er.X0,requestPlayVideo:Fn.x,logBi:Nn.k,logWidgetSystem:Nn.e,logWidgetVidClick:rd.s,storeForReload:lo.Y,sendBiEvent:Io.t,openFullScreenMemberOnlyOverlay:io,openFullScreenPurchaseOverlay:oo,openFullScreenSubscribeOverlay:so,openFullScreenRentOverlay:ao,openFullScreenChannelOverlay:to.QU,fitIntoView:Br},vh=(0,ln.Z)()((0,He.$j)(((e,t)=>{const n=(0,ho.Di)(e),r=(0,ho.OS)(e),o=(0,ho.DV)(e)?n[r+1]:null;return{isSite:We.bK(e),isEditor:We.ZJ(e),mainVideoId:(0,kn.hg)(e),mainVideo:(0,Eo.g)(e),nextVideoId:o,selectedVideoId:e.selectedVideoId,isVideoPlaying:(0,mt.BW)(e),isVideoPaused:(0,mt.ah)(e),isVideoEnded:(0,mt.D0)(e),currentChannelId:(0,Bn.gO)(e),canShowChannelCover:!e.isVideosTouched,appSettings:(0,Ze.GR)(e),currentSiteUser:(0,bt.C)(e),firstChannelVideoId:e.firstChannelVideoId,numberOfRows:(0,Ze.bm)(e),videoByIds:(0,Et.$u)(e),isSignInVisible:(0,Ze.UW)(e),isSearchBarVisible:(0,uo.rv)(e),isSearchInputVisible:(0,uo.nO)(e),isCategoriesDropdownVisible:(0,uo.zF)(e),isHeaderVisible:(0,uo.T0)(e),searchQuery:(0,So.uP)(e),channelData:(0,ft.js)(e),videosPerPage:(0,ho.W$)(e),videoIdsByPageNumber:(0,ho.uB)(e),currentVideosPageNumber:(0,ho.DQ)(e),isVideosFetching:(0,ho.ab)(e),isSearching:(0,So.rH)(e),isSearchResultEmpty:Co(e),isMainItemChannelCover:(0,Ze.zn)(e),showAutoPlay:(0,nd.IZ)(e),playerSize:(0,co.xo)(t.windowSize.width),instance:(0,An.s8)(e),isMobile:(0,Mt.tq)(e)}}),gh)((hh=class extends o().Component{constructor(e){var t;super(e),t=this,qe()(this,"playerOverlayContainerRef",null),qe()(this,"saveRef",((e,t)=>{this[e]=t})),qe()(this,"reset",(()=>{this.setState({...fh,searchBarValue:""}),this.props.goToLazyVideosPageIndex(0)})),qe()(this,"handleThumbnailClick",(e=>{const{selectedVideoId:t,fitIntoView:n,selectVideo:r}=this.props;t!==e.id&&(n(),this.containerRef.scrollIntoView({behavior:"smooth"}),r(e.id))})),qe()(this,"searchByTag",(e=>{this.props.logWidgetSystem("videoList.searchByTag.requested"),this.setTagsFocusState(!1),this.props.searchByTag(e),this.setState({searchBarValue:e,currentCategory:null}),this.props.logBi("widget.tags.clicked")})),qe()(this,"handleTagsFocus",(()=>{this.setTagsFocusState(!0)})),qe()(this,"handleTagsBlur",(()=>{this.setTagsFocusState(!1)})),qe()(this,"handleSlideToPrev",(()=>{this.props.logWidgetSystem("videoList.changePage.requested");const{currentVideosPageNumber:e,goToLazyVideosPageIndex:t}=this.props;t(e-1)})),qe()(this,"handleSlideToNext",(()=>{this.props.logWidgetSystem("videoList.changePage.requested");const{currentVideosPageNumber:e,goToLazyVideosPageIndex:t}=this.props;t(e+1)})),qe()(this,"handleThumbnailPlayButtonClick",(e=>{const{channelData:t,mainVideo:n}=this.props;if((0,mh.Z)()){const t=n.id!==e.id;this.playVideo(e,t)}else this.playVideo(e);(0,rd.s)({videoItem:e,channelData:t})})),qe()(this,"handleSearchInputFocus",(()=>{this.setSearchInputFocusState(!0)})),qe()(this,"handleSearchInputBlur",(()=>{setTimeout((()=>{this.setSearchInputFocusState(!1)}),300)})),qe()(this,"clearSearch",(()=>{this.setState({searchBarValue:""}),this.state.currentCategory||this.props.searchByString("")})),qe()(this,"searchByQuery",(e=>{this.props.searchByString(e),this.props.logWidgetSystem("videoList.searchByQuery.requested"),this.setState({currentCategory:null})})),qe()(this,"handleSearchInputChange",(e=>{this.setState({searchBarValue:e})})),qe()(this,"handleCategorySelect",(e=>{this.props.searchByCategory(e),this.props.logWidgetSystem("videoList.searchByCategory.requested"),this.setState({currentCategory:e,searchBarValue:""})})),qe()(this,"showChannelInfo",(e=>{e.preventDefault(),this.props.openFullScreenChannelOverlay(this.props.channelData.id)})),qe()(this,"openMemberOnly",(0,eo.Q)((e=>{this.props.openFullScreenMemberOnlyOverlay(this.props.fedops,this.props.channelData.id,e)}))),qe()(this,"storeDataForReload",(()=>{this.props.storeForReload({selectedVideoId:this.props.mainVideoId})})),qe()(this,"setCurrentVideoFromPayment",(e=>{e.itemId&&this.props.selectVideo(e.itemId)})),qe()(this,"openSubscription",(0,eo.Q)((()=>{const{currentChannelId:e}=this.props;this.props.logBi("widget.subscription.clicked",{channelID:e}),this.props.openFullScreenSubscribeOverlay(this.props.fedops,e,(()=>{this.props.logBi("widget.subscriptionPopUp.Completed",{result:"canceled",errorMsg:""})}))}))),qe()(this,"openPurchase",(0,eo.Q)((()=>{const{currentChannelId:e,mainVideoId:t}=this.props;this.props.openFullScreenPurchaseOverlay(this.props.fedops,e,t)}))),qe()(this,"openRent",(0,eo.Q)((()=>{const{currentChannelId:e,mainVideoId:t}=this.props;this.props.openFullScreenRentOverlay(this.props.fedops,e,t)}))),qe()(this,"handleOverlayPlayClick",(e=>{e.memberOnly&&!this.props.currentSiteUser?this.openMemberOnly(e.id):this.playVideo(e)})),qe()(this,"playVideo",(function(e,n){let{id:r}=e;void 0===n&&(n=!1);const{requestPlayVideo:o,interactions:i,mainVideo:s}=t.props;dh(i,{layout:"classic",source:s.videoSource,trigger:"click"}),o(r,n)})),qe()(this,"startAutoPlayFedopsInteraction",(e=>{dh(this.props.interactions,{source:e.videoSource,layout:"classic",trigger:"auto"})})),qe()(this,"playNextVideo",(()=>{const{nextVideoId:e,channelData:t,mainVideo:n}=this.props;e&&(this.props.logWidgetVidClick({videoItem:n,channelData:t,buttonName:"next_video"}),this.playVideo({id:e}))})),qe()(this,"handlePlayStarted",(()=>{const{interactions:e,mainVideo:t}=this.props;ph(e,{layout:"classic",source:t.videoSource})})),qe()(this,"saveContainerRef",(e=>{this.containerRef=e})),this.state={...fh,searchBarValue:e.searchQuery,isInitialVideosLoaded:!1}}componentDidMount(){this.sendSubscriptionDisplayedOnWidget(),this.props.goToLazyVideosPageIndex(0)}componentDidUpdate(e){e.selectedVideoId!==this.props.selectedVideoId&&(0,Kr.T)(this.playerOverlayContainerRef)}sendSubscriptionDisplayedOnWidget(){const{channelData:e}=this.props;(0,po.g)({channel:e})&&this.props.sendBiEvent("widget.subscription.displayed",{whereDisplayed:"widget"})}get listThumbnailSize(){const{appSettings:e,windowSize:t}=this.props,n=e.numbers.videosInRow;return(0,co.O4)(t.width,n)}getTagList(){var e;return(null==(e=this.props.channelData)||null==(e=e.statsInfo)?void 0:e.tags)||[]}get categoriesList(){const e=ie().get(this.props,"channelData.statsInfo.categories")||[];return ie().map(e,"value")}setTagsFocusState(e){this.setState({isTagFocused:e}),e||setTimeout((()=>this.hideSearchLayout()),0)}get tags(){var e;const{searchLayout:t,searchBarValue:n}=this.state,r=this.getTagList();return r.length&&t&&!n?o().createElement("div",{className:Zp,"data-hook":"tags-wrapper"},o().createElement(Fo,{style:{maxHeight:null==(e=this.listThumbnailSize)?void 0:e.height}},o().createElement(ud.Z,{className:qp,onTagFocus:this.handleTagsFocus,onTagBlur:this.handleTagsBlur,onTagClick:this.searchByTag,tags:r}))):null}get noSearchResults(){const{isSearchResultEmpty:e}=this.props,{searchBarValue:t,searchLayout:n}=this.state;return!e||n&&!t?null:o().createElement(Rc,{className:Yp})}isChannelCoverShown(){return this.props.canShowChannelCover&&this.props.isMainItemChannelCover}get videosList(){const{channelData:e,currentSiteUser:t,videoIdsByPageNumber:n,currentVideosPageNumber:r,videosPerPage:i,mainVideo:s,playerSize:a}=this.props,{searchLayout:l,searchBarValue:c}=this.state,u=l&&!c&&this.getTagList().length;return!ie().get(n[r],"length")||!s||u?null:o().createElement(mp,{className:zp,containerWidth:a.width,videoIdsByPageNumber:n,currentVideosPageNumber:r,onSlideToNext:this.handleSlideToNext,onSlideToPrev:this.handleSlideToPrev,channelData:e,currentSiteUser:t,videosPerPageCount:i,onThumbnailClick:this.handleThumbnailClick,onPlayRequest:this.handleThumbnailPlayButtonClick,onPlayMemberOnlyRequest:this.openMemberOnly,thumbnailSize:this.listThumbnailSize,isSelectedVideoIndicationDisabled:this.isChannelCoverShown()})}setSearchInputFocusState(e){this.setState({isSearchInputFocused:e}),e?this.showSearchLayout():setTimeout((()=>this.hideSearchLayout()),0)}showSearchLayout(){this.setState({searchLayout:!0})}hideSearchLayout(){const{isTagFocused:e,isSearchInputFocused:t}=this.state;e||t||this.setState({searchLayout:!1})}get search(){const{isSearchInputVisible:e,searchQuery:t}=this.props,{currentCategory:n}=this.state;if(!e)return null;const r=n?"":t;return o().createElement(Ll,{value:r,onFocus:this.handleSearchInputFocus,onBlur:this.handleSearchInputBlur,onChange:this.handleSearchInputChange,onSearch:this.searchByQuery,onClose:this.clearSearch,className:Fp})}get categories(){const{isCategoriesDropdownVisible:e,searchQuery:t,videosPerPage:n,videoByIds:r}=this.props,{searchLayout:i,currentCategory:s,searchBarValue:a}=this.state;if(!e||!s&&(a||t))return null;const l=Ot()(Up,{[Hp]:i});return o().createElement("div",{className:l},o().createElement(gl,{className:jp,maxOptionsVisible:ie().size(r)>n?5:3,isFocusable:!t||Boolean(s),list:this.categoriesList,onCategorySelect:this.handleCategorySelect,selectedCategory:s}))}get content(){const{isSearchBarVisible:e,channelData:t,isVideosFetching:n,videoIdsByPageNumber:r,searchQuery:i,currentVideosPageNumber:s,isSearching:a}=this.props;if(!n&&0===t.videosCount)return o().createElement(ah,{coverUrl:(0,Jr.k)(t)});const l=Ot()(Vp,{[Mp]:!e});return o().createElement("div",{className:l},o().createElement("section",{className:Bp,"aria-label":this.props.t("widget.accessibility.search-videos"),"data-hook":"widget-search-line"},this.search,this.categories),this.tags,o().createElement(ou,{channelTitle:t.title,isChannelHasVideos:Boolean(t.videosCount),isVideosFetching:n,isSearching:a,videoIdsByPageNumber:r,searchQuery:i,currentVideosPageNumber:s,className:Wp,dataHook:"video-list",style:{height:this.videosListHeight},onRef:(0,$t.r)(this.saveRef,"videosContainerRef")},this.videosList,this.noSearchResults))}get channelTitle(){const{channelData:e,appSettings:t}=this.props;return t.booleans.showChannelTitle?e.title:null}get signInButton(){const{isSignInVisible:e,channelData:t}=this.props;return e?o().createElement($u,{channelId:t.id,onPageRefresh:this.storeDataForReload},(e=>o().createElement(tl,{className:kp,tooltipSide:"bottom",channelData:t,onClick:e.showAccountInfo,onLoginClick:e.logIn,onLogoutClick:e.logOut,onSubscribeClick:e.subscribe}))):null}get header(){const{channelData:e,isHeaderVisible:t}=this.props,n=Ot()(_p,{[Lp]:!t}),r=this.channelTitle;return o().createElement("header",{className:n,"data-hook":"widget-header"},o().createElement("h2",{className:Rp,"data-hook":"channel-title",title:r},r),o().createElement(ld,null,(e=>{let{toggleShare:t,ariaLabel:n}=e;return o().createElement(uu,{className:kp,ariaLabel:n,onClick:t})})),o().createElement(il,{className:kp,channelData:e,onClick:this.showChannelInfo}),o().createElement(ll,{className:kp,channelData:e,onClick:this.openSubscription}),this.signInButton)}renderShareOverlay(){const{channelData:e,mainVideo:t}=this.props,n=t?t.id:e.id;return o().createElement(od.Z,{key:`share-${n}`,channelData:e,videoItem:t})}renderMainSceneContent(){return o().createElement("div",{className:$p},this.renderPlayer(),this.renderShareOverlay())}renderPlayer(){const{mainVideo:e}=this.props;if(e)return this.renderPlayerForCurrentDevice(e)}renderPlayerForCurrentDevice(e){const{isVideoPlaying:t,isVideoEnded:n,canShowChannelCover:r,channelData:i,appSettings:s,nextVideoId:a,mainVideo:l,currentSiteUser:c,showAutoPlay:u,PlayerComponent:d,playerSize:p}=this.props,h=o().createElement(Op,{appSettings:s,currentSiteUser:c,channelData:i,videoItem:l,showChannelCover:r,nextVideoId:a,onPlaySelectedVideo:this.handleOverlayPlayClick,playNextVideo:this.playNextVideo,ended:n,saveRef:(0,$t.r)(this.saveRef,"playerOverlayContainerRef")});return d?o().createElement("div",{className:Gp},o().createElement(Po,null,(n=>{let{canShowVideoInfoButton:s,canShowShareButton:a}=n;return o().createElement(d,{className:Dp,videoItem:e,channelData:i,width:p.width,height:p.height,paused:!t,canShowChannelCover:r,onPurchaseClick:this.openPurchase,onRentClick:this.openRent,onSubscribeClick:this.openSubscription,canShowFullInfo:s,canShareVideo:a,onPlayStart:this.handlePlayStarted},h)})),o().createElement(nu,null),u&&o().createElement(Ap,{dataHook:"autoplay-video",onAutoPlayRequested:this.startAutoPlayFedopsInteraction})):o().createElement("div",{className:Gp},o().createElement("div",{className:Dp,style:p},h))}render(){const{channelData:e,isVideoPlaying:t,mainVideoId:n,windowSize:r,isEditor:i}=this.props,s=i?{width:"100%",height:"100%"}:{width:r.width,minHeight:r.height};return o().createElement("main",{ref:this.saveContainerRef,className:xp,style:s,"data-hook":"widget-container","data-channel-layout":"classic","aria-label":this.props.t("widget.accessibility.channel-videos-widget",{channelTitle:e.title}),tabIndex:0},this.header,this.renderMainSceneContent(),this.content,o().createElement(_r.Z,{onRent:this.setCurrentVideoFromPayment,onSale:this.setCurrentVideoFromPayment,onSubscription:this.reset,onSubscriptionCancel:this.reset}),o().createElement(Zu,{playVideo:this.playVideo,isVideoPlaying:t,selectedVideoId:n}),o().createElement(Iu,null))}},qe()(hh,"displayName","ClassicView"),hh))),yh=cr(ch((0,Ur.yT)(vh)));var bh=n(27010),Eh=n(63582);const Sh="ekpD71";class Ch extends o().Component{render(){const{children:e,borderWidth:t=2}=this.props;return o().createElement("div",{style:{borderWidth:t},className:Sh},e)}}class wh extends o().Component{constructor(){super(...arguments),qe()(this,"handleClick",(e=>{e.stopPropagation(),e.preventDefault(),this.props.onClick()}))}render(){const{children:e,isIconOnly:t,isFocusable:n,className:r,ariaHidden:i,currency:s}=this.props,a=Ot()(Rd,r,{[jd]:t});return o().createElement("a",{href:"#",className:a,onClick:this.handleClick,"data-hook":"paid-access-button","aria-hidden":i,tabIndex:n?0:-1},o().createElement("div",{className:Ud},o().createElement(Ch,{borderWidth:t?3:2},o().createElement(Od,{currency:s}))),e&&o().createElement("span",{className:Fd},e))}}qe()(wh,"defaultProps",{isFocusable:!0,isIconOnly:!1,ariaHidden:!1});const Ph="W6L_ej",Ih="LXWNJj",Oh="P9btGc",Th="itAs9u",Nh="jpS184",Ah="zKLz4I",xh="P3g1qr",_h="OFh61d",Lh="eddosW",Rh="pmrXpM",kh="JQe1Yh",Dh="o6ZC_D",Vh="MLk6Jy",Mh="kLuT7o",Bh="l27WuX";var Fh;const Uh=(0,ln.Z)()((0,He.$j)((()=>{const e=Nd(),t=xd();return(n,r)=>({playButtonConfig:e(n,r),paidAccessButtonConfig:t(n,r),isThumbnailsPreviewHover:(0,Ze.ok)(n),isOverlayAlwaysShown:(0,Ze.eB)(n),isOverlayNeverShown:(0,Ze.mK)(n),isShareOverlayOpen:(0,id.Wg)(n)})}))((Fh=class extends o().Component{renderTitle(){const{videoItem:e}=this.props;return o().createElement("div",{className:Ih},o().createElement($d,{className:Ah},e.title))}renderPlayButton(){const{playButtonConfig:e,isContentFocusable:t}=this.props;return e?o().createElement(Jd,{className:Oh,iconClassName:_h,onClick:e.callback,isFocusable:t,isIconOnly:!0},this.props.t(e.translationData.props)):null}renderPaidAccessButton(){const{paidAccessButtonConfig:e,isContentFocusable:t,videoItem:n,channelData:r}=this.props;if(!e)return null;const i=ip(n,r);return o().createElement(wh,{className:Oh,iconClassName:_h,onClick:e.callback,isFocusable:t,currency:i,isIconOnly:!0},(0,sl.Z)(e.translationData.props,e.translationData.priceModel))}renderLiveLabel(){const{videoItem:e}=this.props;return o().createElement(tc.Z,{itemType:e.itemType,liveVideoStatus:e.liveVideoStatus,startTime:e.dateStartLive,isSmall:!0,noBackground:!0,className:Bh,smallClassName:Rh})}render(){const{videoItem:e,className:t,isOverlayNeverShown:n,isOverlayAlwaysShown:r,isThumbnailsPreviewHover:i,width:s,height:a,isContentFocusable:l,onClick:c,isShareOverlayOpen:u}=this.props;if(!e)return null;const d=Ot()(Ph,{[kh]:n,[Dh]:r,[Vh]:i,[Mh]:u});return o().createElement("section",{className:Ot()(Lh,t),onClick:c,onKeyDown:(0,$t.r)(vl,c),"data-hook":"video-list-thumb-wrapper",style:{height:a,width:s},"aria-hidden":!l,tabIndex:l?0:-1},o().createElement(rp,{videoItem:e,breakpoints:[{min:0,width:s,height:a}]}),o().createElement("div",{"data-hook":"player-overlay",className:d},o().createElement("div",{className:Th},o().createElement("div",{className:Nh},this.renderTitle(),o().createElement("div",{className:xh},this.renderPlayButton(),this.renderPaidAccessButton(),this.renderLiveLabel())))))}},qe()(Fh,"defaultProps",{isContentFocusable:!0,showChannelCover:!1,onPlayRequest:ie().noop,onPlayMemberOnlyRequest:ie().noop,onPlayWithoutPreviewRequest:ie().noop,onPurchaseRequest:ie().noop,onSubscriptionRequest:ie().noop}),Fh))),jh="GYzXGt",Hh="mUnnYK",Zh="jSMkMZ",Wh={"videos-container-min-800":{minWidth:800},"videos-container-max-799":{maxWidth:799,minWidth:600},"videos-container-max-599":{maxWidth:599,minWidth:550},"videos-container-max-549":{maxWidth:549,minWidth:450},"videos-container-max-449":{maxWidth:449}},zh={logWidgetSystem:Nn.e},qh=(0,ln.Z)()((0,He.$j)((e=>({currentSiteUser:(0,bt.C)(e),videoByIds:(0,Et.$u)(e)})),zh)(class extends o().Component{constructor(){super(...arguments),qe()(this,"renderVideoItem",((e,t,n)=>{const{currentSiteUser:r,channelData:i,videoByIds:s,thumbnailSize:a,OverlayActionsCallbacks:l,onBeforeClick:c,onBeforePlayRequested:u,onPlayRequestedBi:d}=this.props,p=s[e];return o().createElement(l,{channelId:i.id,videoId:p.id,videoSource:p.videoSource,onBeforeClick:c,onBeforePlayRequested:u,onPlayRequestedBi:ie().partial(d,p),key:e},o().createElement(Uh,Yn()({},a,{currentSiteUser:r,channelData:i,videoItem:p,isContentFocusable:n})))}))}UNSAFE_componentWillReceiveProps(e){let{currentVideosPageNumber:t}=e;t!==this.props.currentVideosPageNumber&&this.props.logWidgetSystem("videoList.changePage.rendered",{previousEventName:"videoList.changePage.requested"})}componentDidUpdate(){this.props.logWidgetSystem("videoList.show.rendered",{previousEventName:"videoList.show.requested"})}hasPage(e,t){const{videoIdsByPageNumber:n,channelData:{videosCount:r}}=this.props,o=e+t;if(0===e&&t>0){const e=n[0]?n[0].length*o:0;return Boolean(n[o])||e<r}return Boolean(n[o])}get isPrevPageVisible(){const{currentVideosPageNumber:e}=this.props;return this.hasPage(e,-1)}get isNextPageVisible(){const{currentVideosPageNumber:e}=this.props;return this.hasPage(e,1)}render(){const{currentVideosPageNumber:e,videoIdsByPageNumber:t,containerWidth:n,onSlideToPrev:r,onSlideToNext:i,isVisible:s,isRTL:a}=this.props;return o().createElement(yd.ContainerQuery,{query:Wh},(l=>o().createElement("div",{className:Ot()(jh,l)},o().createElement(Bl,{width:n,currentPageNumber:e,isRTL:a},o().createElement(Zl,{pageWidth:n,currentPageNumber:e,itemsByPageNumber:t,renderItem:this.renderVideoItem})),s&&o().createElement(Yr,{prevButtonClassName:Hh,nextButtonClassName:Zh,onPrevClick:r,onNextClick:i,prevButtonAriaLabel:this.props.t("widget.accessibility.prev-videos"),nextButtonAriaLabel:this.props.t("widget.accessibility.next-videos"),isPrevVisible:this.isPrevPageVisible,isNextVisible:this.isNextPageVisible,isRTL:a}))))}}));var Gh=n(15440);const $h={...Td.Gz,[vt.ds.FULL]:"widget.overlay-buttons.start-watching"};function Yh(e){const{channelData:t,videoItem:n,currentSiteUser:r}=e,o=(0,vt.TK)(t,n,r),i=(0,vt.D$)(t,n,r),s=function(e,t,n){return t?e.onPlayRequest:n===vt.FE.SIGN_IN?e.onPlayMemberOnlyRequest:e.onPlayWithoutPreviewRequest}(e,(0,vt.$4)(t,n,r),i),a=function(e,t){return e?{props:$h[e]}:(vt.FE.SIGN_IN,{props:"widget.overlay-buttons.start-watching"})}(o);return{callback:s,translationData:a}}var Kh=n(79259);function Xh(e){const{channelData:t}=e;if(!(0,Kh.jo)(t)&&!(0,Kh.ZD)(t))return null;const n=function(e){return e.onSubscriptionRequest}(e);return{callback:n,translationData:function(e){const t=(0,no.vm)(e);return{props:t?"widget.mobile.overlay-button.subscribe.short":"widget.overlay-buttons.get-subscription",priceModel:t?(0,Xr.AZ)(e.dealInfo):(0,Xr.il)(e.dealInfo)}}(t)}}const Qh=(0,gt.P1)(Ze.PR,(e=>({backgroundColor:`rgba(0,0,0,${ie().round(e/100,2)})`})));var Jh=n(73372);class em extends o().Component{getCoverUrl(){const{channelData:e,videoItem:t}=this.props;return(0,Jr.k)(e)||(0,ep.d)(t)}render(){const{width:e,height:t,className:n,channelData:r}=this.props;return o().createElement("div",{className:Ot()(kd,n)},o().createElement(Jh.Z,{posterUrl:this.getCoverUrl(),mediaInfo:r.mediaInfo,channelId:r.id,channelTitle:r.title,showChannelCover:!0,width:e,height:t}))}}qe()(em,"defaultProps",{withFallbackColor:!1});var tm,nm=n(26710),rm=n(77294);const om={[Wd]:{maxWidth:1899,minWidth:550},[zd]:{maxWidth:549,minWidth:450},[qd]:{maxWidth:449,minWidth:300},[Gd]:{maxWidth:299}},im=(0,Gh.X)((0,ln.Z)()((0,He.$j)(((e,t)=>({playButtonConfig:Yh(t),paidAccessButtonConfig:Xh(t),canShowMainItemTitle:(0,Ze.m8)(e),isMainActionsOnlyIcons:(0,Ze._n)(e),opacityStyles:Qh(e)})))((tm=class extends o().Component{constructor(){super(...arguments),qe()(this,"handleClick",(()=>{const{onPlayRequest:e}=this.props;this.canPlayVideo()&&e()})),qe()(this,"handleContainerRef",(e=>{this.subscribedPointerOver||(this.subscribedPointerOver=!0,e.addEventListener("pointerover",(()=>{const{videoItem:e}=this.props;e.videoSource===rm.V.YOUTUBE&&(0,nm.A)()}),{once:!0}))}))}canPlayVideo(){const{channelData:e,videoItem:t,currentSiteUser:n}=this.props;return(0,vt.$4)(e,t,n)}renderTitle(){const{channelData:e,canShowMainItemTitle:t}=this.props;return t?o().createElement("div",{className:Ld},o().createElement($d,null,e.title)):null}renderLiveLabel(){const{videoItem:e}=this.props;return o().createElement(tc.Z,{itemType:e.itemType,liveVideoStatus:e.liveVideoStatus,videoTitle:e.title,startTime:e.dateStartLive,className:Zd})}renderPlayButton(){const{playButtonConfig:e,isContentFocusable:t,isMainActionsOnlyIcons:n}=this.props;return e?o().createElement(Jd,{onClick:e.callback,isFocusable:t,isIconOnly:n},this.props.t(e.translationData.props)):null}renderPaidAccessButton(){const{paidAccessButtonConfig:e,isContentFocusable:t,isMainActionsOnlyIcons:n,channelData:r,videoItem:i,t:s}=this.props;if(!e)return null;const a=ip(i,r),{translationData:l,callback:c}=e,{props:u,priceModel:d}=l;return o().createElement(wh,{onClick:c,isFocusable:t,isIconOnly:n,currency:a},(0,sl.Z)(u,d))}render(){const{channelData:e,videoItem:t,className:n,width:r,height:i,withFallbackColor:s,opacityStyles:a,isContentFocusable:l}=this.props;if(!e)return null;const c=Ot()("player-overlay",{"player-overlay-visible":l});return o().createElement(yd.ContainerQuery,{query:om},(l=>o().createElement("div",{"data-hook":c,className:Ot()(_d,n,{[Hd]:this.canPlayVideo(),...l}),onClick:this.handleClick,ref:this.handleContainerRef},o().createElement(em,{channelData:e,videoItem:t,width:r,height:i,withFallbackColor:s}),o().createElement("div",{className:Dd,style:a},o().createElement("div",{className:Vd},this.renderTitle(),this.renderLiveLabel(),o().createElement("div",{className:Bd},this.renderPlayButton(),this.renderPaidAccessButton()))))))}},qe()(tm,"defaultProps",{isContentFocusable:!0,showChannelCover:!1,onPlayRequest:ie().noop,onPlayMemberOnlyRequest:ie().noop,onPlayWithoutPreviewRequest:ie().noop,onPurchaseRequest:ie().noop,onSubscriptionRequest:ie().noop}),tm))));var sm;const am={[Wd]:{maxWidth:1899,minWidth:550},[zd]:{maxWidth:549,minWidth:450},[qd]:{maxWidth:449,minWidth:300},[Gd]:{maxWidth:299}},lm=(0,Gh.X)((0,ln.Z)()((0,He.$j)((()=>{const e=Nd(),t=xd();return(n,r)=>({playButtonConfig:e(n,r),paidAccessButtonConfig:t(n,r),canShowMainItemTitle:(0,Ze.m8)(n),isMainActionsOnlyIcons:(0,Ze._n)(n),opacityStyles:Qh(n)})}))((sm=class extends o().Component{constructor(){super(...arguments),qe()(this,"topContentRef",null),qe()(this,"handleClick",(()=>{const{onPlayRequest:e}=this.props;this.canPlayVideo()&&e()})),qe()(this,"handleContainerRef",(e=>{e&&(this.subscribedPointerOver||(this.subscribedPointerOver=!0,e.addEventListener("pointerover",(()=>{const{videoItem:e}=this.props;e.videoSource===rm.V.YOUTUBE&&(0,nm.A)()}),{once:!0})))}))}canPlayVideo(){const{channelData:e,videoItem:t,currentSiteUser:n}=this.props;return(0,vt.$4)(e,t,n)}renderTitle(){const{videoItem:e,canShowMainItemTitle:t}=this.props;return t?o().createElement("div",{className:Ld},o().createElement($d,null,e.title)):null}renderLiveLabel(){const{videoItem:e}=this.props;return o().createElement(tc.Z,{itemType:e.itemType,liveVideoStatus:e.liveVideoStatus,videoTitle:e.title,startTime:e.dateStartLive,className:Zd})}renderPlayButton(){const{playButtonConfig:e,isContentFocusable:t,isMainActionsOnlyIcons:n}=this.props;return e?o().createElement(Jd,{onClick:e.callback,isFocusable:t,isIconOnly:n},this.props.t(e.translationData.props)):null}renderPaidAccessButton(){var e;const{paidAccessButtonConfig:t,isContentFocusable:n,isMainActionsOnlyIcons:r,videoItem:i}=this.props;if(!t)return null;const s=null==(e=i.dealInfo[0])?void 0:e.currency;return o().createElement(wh,{onClick:t.callback,isFocusable:n,isIconOnly:r,currency:s},(0,sl.Z)(t.translationData.props,t.translationData.priceModel))}render(){const{videoItem:e,className:t,width:n,height:r,opacityStyles:i,isContentFocusable:s}=this.props;if(!e)return null;const a=Ot()("player-overlay",{"player-overlay-visible":s});return o().createElement(yd.ContainerQuery,{query:am},(s=>o().createElement("div",{"data-hook":a,className:Ot()(_d,t,{[Hd]:this.canPlayVideo(),...s}),onClick:this.handleClick,ref:this.handleContainerRef},o().createElement(rp,{videoItem:e,breakpoints:[{min:0,width:n,height:r}]}),o().createElement("div",{className:Dd,style:i},o().createElement("div",{className:Vd},this.renderTitle(),this.renderLiveLabel(),o().createElement("div",{className:Bd},this.renderPlayButton(),this.renderPaidAccessButton()))))))}},qe()(sm,"defaultProps",{isContentFocusable:!0,showChannelCover:!1,onPlayRequest:ie().noop,onPlayMemberOnlyRequest:ie().noop,onPlayWithoutPreviewRequest:ie().noop,onPurchaseRequest:ie().noop,onSubscriptionRequest:ie().noop}),sm)))),cm="rkKPQu",um="vk027E",dm="iOHkhO";class pm extends o().Component{renderTooltip(){const{tooltip:e,innerClassName:t}=this.props;return o().createElement("span",{className:um},o().createElement("span",{className:Ot()(t,dm)},e))}render(){const{tooltip:e,children:t,className:n}=this.props;return t?o().createElement("span",{className:Ot()(n,cm)},e&&this.renderTooltip(),t):null}}const hm="kStuKS",mm="rNx795",fm="wbXibj",gm="_5v4xn",vm="Z6Qu_U",ym="bb4Cpk",bm="oKBu0q",Em="Ochasp",Sm="Wv5yqD",Cm="DQAcr0",wm="YtBXJS",Pm="TbkjQQ",Im={sendBiEvent:Io.t},Om=(0,ln.Z)()((0,He.$j)(null,Im)(class extends o().Component{constructor(){super(...arguments),qe()(this,"handleSubscriptionClick",(()=>{this.props.onSubscriptionRequest()}))}componentDidMount(){const{canShowSubscriptionButton:e}=this.props;e&&this.props.sendBiEvent("widget.subscription.displayed",{whereDisplayed:"widget"})}wrapWithTooltip(e,t){return o().createElement(pm,{tooltip:t,className:fm,innerClassName:Pm},e)}getShareButton(){const e=this.props.t("widget.compact-view.components.action-bar.share-tooltip-button");return o().createElement(ld,null,(t=>{let{toggleShare:n,ariaLabel:r}=t;return this.wrapWithTooltip(o().createElement(uu,{ariaLabel:r,className:`${gm} ${vm}`,onClick:n}),e)}))}get channelInfoButton(){const{channelData:e,onInfoRequest:t,canShowChannelInfo:n}=this.props;if(!n)return null;const r=this.props.t("widget.compact-view.components.action-bar.channel-info-tooltip"),i=o().createElement(il,{className:`${mm} ${Cm}`,channelData:e,onClick:t});return this.wrapWithTooltip(i,r)}get channelSubscriptionButton(){const{channelData:e,canShowSubscriptionButton:t,videoItem:n}=this.props;if(!t)return null;const r=o().createElement(al,{dealInfo:e.dealInfo}),i=ip(n,e),s=o().createElement("button",{className:gm,onClick:this.handleSubscriptionClick,"data-hook":"subscription-button","aria-label":this.props.t("widget.accessibility.subscribe-to-channel")},o().createElement("div",{className:`${mm} ${wm}`},o().createElement(Od,{currency:i})));return this.wrapWithTooltip(s,r)}get membershipActions(){const{channelData:e,onSubscriptionRequest:t,onAccountInfoAtOverlayRequest:n,canShowSignIn:r,onLogInRequest:i,onLogOutRequest:s}=this.props;return r?o().createElement(tl,{className:Ot()(fm,mm),infoButtonClassName:bm,channelData:e,onClick:n,onLoginClick:i,onLogoutClick:s,onSubscribeClick:t}):null}get closeButtonWithTooltip(){const{onCloseRequest:e}=this.props,t=this.props.t("widget.compact-view.components.action-bar.close"),n=o().createElement("button",{className:gm,onClick:e,"data-hook":"close-action-bar","aria-label":this.props.t("widget.accessibility.close-video-list")},o().createElement(Oo.Z,{name:"exit",className:Ot()(mm,Em)}));return this.wrapWithTooltip(n,t)}get closeButtonWithLabel(){const{onCloseRequest:e}=this.props,t=this.props.t("widget.compact-view.components.action-bar.close");return o().createElement("button",{className:Ot()(gm,fm),onClick:e,"data-hook":"close-action-bar",tabIndex:"0"},o().createElement("span",{className:mm},o().createElement(Oo.Z,{name:"exit",className:Ot()(mm,Em,Sm)}),o().createElement("span",{className:ym},t)))}get closeButton(){const{canShowCloseButton:e}=this.props;if(!e)return null;const{channelInfoButton:t,channelSubscriptionButton:n,membershipActions:r,closeButtonWithTooltip:o,closeButtonWithLabel:i}=this,s=[this.getShareButton(),t,n,r];return ie().some(s)?o:i}render(){return o().createElement("nav",{className:hm},this.getShareButton(),this.channelInfoButton,this.channelSubscriptionButton,this.membershipActions,this.closeButton)}}));var Tm;function Nm(){return Nm=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},Nm.apply(this,arguments)}const Am=function(e){return r.createElement("svg",Nm({width:22,height:12,viewBox:"0 0 22 12",xmlns:"http://www.w3.org/2000/svg"},e),Tm||(Tm=r.createElement("path",{d:"M0 7h22V5H0v2Zm0 5h22v-2H0v2ZM0 2h22V0H0v2Z",fillRule:"evenodd"})))},xm="Q3Ksmg",_m="iWXVEg";class Lm extends o().Component{render(){const{onClick:e,className:t,ariaLabel:n}=this.props;return o().createElement("button",{className:Ot()(xm,_m,t),onClick:e,"aria-label":n,"data-hook":"menu-button"},o().createElement(Am,null))}}const Rm="xvJs5M",km="z7MDug",Dm="Zh8SYq",Vm="kN8quU",Mm="w4oiJ9",Bm="QzLukg",Fm=(0,ln.Z)()(class extends o().Component{constructor(){super(...arguments),qe()(this,"handleButtonsClick",(e=>{e.stopPropagation(),this.props.onButtonsClick()}))}renderButtons(){const{onActionsContainerClick:e,children:t}=this.props;return o().createElement("div",{onClick:e,className:Rm},o().createElement("div",{className:Bm,onClick:this.handleButtonsClick},t))}renderMenuButton(){const{onMenuClick:e}=this.props;return o().createElement("div",{className:Rm,onClick:e},o().createElement(Lm,{className:Dm,ariaLabel:this.props.t("widget.accessibility.show-all-videos")}))}render(){const{areActionsVisible:e,height:t}=this.props;return o().createElement("div",{style:{height:t},className:Vm},o().createElement(bh.r,{activeClassName:Mm,dataHook:"compact-actions",type:"fade-in",when:e},this.renderButtons()),o().createElement(bh.r,{type:"fade-in",activeClassName:km,dataHook:"menu-button-wrapper",when:!e},this.renderMenuButton()))}}),Um="pOmUbd",jm="brIYTo",Hm="hpOf1d",Zm="p0JGCy",Wm="iHSeC2",zm=e=>{let{fadeInOnly:t,children:n,currentIdIndex:i,activeClassName:s,onAnimationComplete:a}=e;const l=(0,r.useRef)(-1);(0,r.useEffect)((()=>{l.current=i}),[i]);const c=e=>e===l.current,u=e=>{e.stopPropagation()},d=(e,t)=>{const n=(e=>e===i)(t),r=Ot()(Hm,{[Wm]:n,[s]:n,[Zm]:c(t)});return o().createElement("div",{className:r,onTransitionEnd:n?a:ie().noop,key:t},o().createElement("div",{className:jm,onTransitionEnd:u},e))};return o().createElement("div",{className:Um},t?d(n[i],i):ie().map(n,d))},qm="klVbBo",Gm="Ns4h5u",$m="ozBGxe",Ym=e=>{let{loadedVideoIds:t,mainVideoId:n,className:r,onAnimationComplete:i,renderItem:s,isPlayerVisible:a,isMainVideoAtChannelCover:l=!1}=e;const c=t.length?t:[n],u=t.length?t.indexOf(n):0;return o().createElement("div",{className:Ot()(qm,r)},o().createElement(zm,{activeClassName:a?$m:"",fadeInOnly:l,onAnimationComplete:i,currentIdIndex:u},ie().map(c,((e,t)=>{if(!(Math.abs(u-t)<=1))return o().createElement("div",{key:e});const n=t===u;return o().createElement("section",{className:Gm,"data-hook":"main-item-slider-item","data-is-visible-overlay":n?"visible":null,"aria-hidden":!n,key:e},s(e,n))}))))},Km=(0,r.memo)(Ym);var Xm;const Qm={playVideo:Pt.Kz,selectVideo:Dn.Uw,openFullScreenVideoOverlay:St.Ep,closeFullScreenVideoOverlay:St.xZ,openFullScreenPurchaseOverlay:oo,openFullScreenRentOverlay:ao,openFullScreenMemberOnlyOverlay:io,openFullScreenSubscribeOverlay:so},Jm=(0,He.$j)(null,Qm)((Xm=class extends o().Component{constructor(){super(...arguments),qe()(this,"selectVideo",(()=>{const{selectVideo:e,videoId:t}=this.props;e(t)})),qe()(this,"showVideoAtOverlay",(0,eo.Q)((()=>{const{channelId:e,videoId:t,openFullScreenVideoOverlay:n,closeFullScreenVideoOverlay:r}=this.props;n(e,t,null,r)}))),qe()(this,"showVideoMemberOnlyInfo",(0,eo.Q)((()=>{const{channelId:e,videoId:t,fedops:n}=this.props;this.props.openFullScreenMemberOnlyOverlay(n,e,t)}))),qe()(this,"showVideoPurchaseInfo",(0,eo.Q)((()=>{const{channelId:e,videoId:t,fedops:n}=this.props;this.props.openFullScreenPurchaseOverlay(n,e,t)}))),qe()(this,"showVideoRentInfo",(0,eo.Q)((()=>{const{channelId:e,videoId:t,fedops:n}=this.props;this.props.openFullScreenRentOverlay(n,e,t)}))),qe()(this,"showChannelSubscriptionInfoAtOverlay",(0,eo.Q)((()=>{this.props.openFullScreenSubscribeOverlay(this.props.fedops,this.props.channelId)}))),qe()(this,"handleSelectVideo",(()=>{this.props.onBeforeClick(),this.selectVideo()})),qe()(this,"handlePlayVideo",(()=>{this.props.onBeforePlayRequested(),this.props.onPlayRequestedBi(),this.playVideo()}))}componentDidMount(){Sc({onRent:this.showVideoRentInfo,onPurchase:this.showVideoPurchaseInfo,onSubscription:this.showChannelSubscriptionInfoAtOverlay})}playVideo(){const{playVideo:e,videoId:t}=this.props;e(t)}render(){return o().cloneElement(this.props.children,{onClick:this.handleSelectVideo,onPlayRequest:this.handlePlayVideo,onPlayMemberOnlyRequest:this.showVideoMemberOnlyInfo,onPlayWithoutPreviewRequest:this.handleSelectVideo,onPurchaseRequest:this.showVideoPurchaseInfo,onRentRequest:this.showVideoRentInfo,onSubscriptionRequest:this.showChannelSubscriptionInfoAtOverlay})}},qe()(Xm,"defaultProps",{onBeforeClick:ie().noop,onBeforePlayRequested:ie().noop,onPlayRequestedBi:ie().noop}),Xm)),ef=(0,or.F)(Jm);function tf(e){return e.displayName||e.name||"Component"}function nf(e){return function(t){var n;return n=class extends o().Component{render(){return o().createElement(e,this.props,o().createElement(t,this.props))}},qe()(n,"displayName",`${tf(e)}(${tf(t)})`),n}}const rf={playVideo:Pt.Kz,selectVideo:Dn.Uw},of=nf(ef)((0,He.$j)(null,rf)(class extends o().Component{constructor(){super(...arguments),qe()(this,"selectVideo",(()=>{const{selectVideo:e,videoId:t}=this.props;e(t)})),qe()(this,"playVideo",(()=>{const{playVideo:e,videoId:t}=this.props;this.props.onPlayRequestedBi(),e(t)})),qe()(this,"handlePlayRequest",(()=>{const{isMainVideo:e,onBeforePlayRequested:t,onBeforeClick:n}=this.props;(e?ie().flow(t,this.playVideo):ie().flow(n,this.selectVideo))()}))}render(){const{children:e}=this.props;return o().cloneElement(e,{...this.props,onPlayRequest:this.handlePlayRequest})}}));var sf;const af={selectVideo:Dn.Uw,openFullScreenVideoOverlay:St.Ep,closeFullScreenVideoOverlay:St.xZ},lf=nf(ef)((0,He.$j)(null,af)((sf=class extends o().Component{constructor(){super(...arguments),qe()(this,"showVideoAtOverlay",(0,eo.Q)((()=>{const{channelId:e,videoId:t,openFullScreenVideoOverlay:n,closeFullScreenVideoOverlay:r}=this.props;n(e,t,null,r)}))),qe()(this,"playVideoAtOverlay",(0,eo.Q)((()=>{const{channelId:e,videoId:t,openFullScreenVideoOverlay:n,closeFullScreenVideoOverlay:r}=this.props;this.props.onPlayRequestedBi(),n(e,t,!0,r)})))}render(){return o().cloneElement(this.props.children,{...this.props,onPlayRequest:this.playVideoAtOverlay,onPlayWithoutPreviewRequest:this.showVideoAtOverlay})}},qe()(sf,"defaultProps",{onPlayRequestedBi:ie().noop}),sf))),cf={openFullScreenPurchaseOverlay:oo,openFullScreenSubscribeOverlay:so,openFullScreenRentOverlay:ao},uf=(0,He.$j)(null,cf)(class extends o().Component{constructor(){super(...arguments),qe()(this,"showPurchaseInfoAtOverlay",(0,eo.Q)((()=>{const{channelId:e,videoId:t,fedops:n}=this.props;this.props.openFullScreenPurchaseOverlay(n,e,t)}))),qe()(this,"showRentInfoAtOverlay",(0,eo.Q)((()=>{const{channelId:e,videoId:t,fedops:n}=this.props;this.props.openFullScreenRentOverlay(n,e,t)}))),qe()(this,"showChannelSubscriptionInfoAtOverlay",(0,eo.Q)((()=>{this.props.openFullScreenSubscribeOverlay(this.props.fedops,this.props.channelId)})))}componentDidMount(){Sc({onRent:this.showRentInfoAtOverlay,onPurchase:this.showPurchaseInfoAtOverlay,onSubscription:this.showChannelSubscriptionInfoAtOverlay})}render(){return o().cloneElement(this.props.children,{onPurchaseClick:this.showPurchaseInfoAtOverlay,onSubscribeClick:this.showChannelSubscriptionInfoAtOverlay,onRentClick:this.showRentInfoAtOverlay})}}),df=(0,or.F)(uf),pf={"share-channel-overlay":"gOxtT1",shareChannelOverlay:"gOxtT1","videos-in-animation":"kW62Dq",videosInAnimation:"kW62Dq",content:"S3t6nO","nav-button-prev":"ZiJLLA",navButtonPrev:"ZiJLLA","nav-button-next":"RX47C8",navButtonNext:"RX47C8","main-video-slider":"bKuQmA",mainVideoSlider:"bKuQmA","videos-container":"_Fowaj",videosContainer:"_Fowaj"},hf=function(){return o().createElement(sh,{titleKey:"widget.notification.video-deleted"})};var mf;const ff={areAllVideosVisible:!1,isShareOverlayVisible:!1},gf={selectVideo:Dn.Uw,playVideo:Pt.Kz,pauseVideo:Pt.r,requestPlayVideo:Fn.x,resetSelectedVideo:Dn.Fn,resetPlaybackStatus:Pt.UX,closeShareOverlay:Wc.sx,setSavedTime:Mn.Z,goToLazyVideosPageIndex:Er.X0,openFullScreenVideoOverlay:St.Ep,closeFullScreenVideoOverlay:St.xZ,logWidgetSystem:Nn.e,logWidgetVidClick:rd.s,sendBiEvent:Io.t},vf=(0,ln.Z)()((0,He.$j)((e=>({videoIdsByPageNumber:(0,ho.uB)(e),currentVideosPageNumber:(0,ho.DQ)(e),lazyLoadedVideoIds:(0,ho.Di)(e),isVideoPaused:(0,mt.ah)(e),isVideoPlaying:(0,mt.BW)(e),isPlayInFrame:(0,Ze.XM)(e),mainVideoId:(0,kn.hg)(e),mainVideo:(0,Eo.g)(e),selectedVideoId:e.selectedVideoId,hasNextVideo:(0,ho.DV)(e),hasPrevVideo:(0,ho.zV)(e),currentIdIndex:(0,ho.OS)(e),videoByIds:(0,Et.$u)(e),isVideosFetching:(0,ho.ab)(e),currentSiteUser:(0,bt.C)(e),canShowAutoPlay:(0,nd.IZ)(e),canShowChannelCover:!e.isVideosTouched,canShowChannelInfo:(0,Ze.jb)(e),canShowChannelShare:(0,Ze.Sd)(e),canShowVideoList:(0,Ze.j0)(e),canShowSignIn:(0,Ze.UW)(e),canShowSubscriptionButton:(0,po.g)({channel:(0,ft.js)(e)}),isThumbnailsPreviewHover:(0,Ze.ok)(e),isActionBarVisible:(0,Ze.FE)(e),isAllCardsOverlayVisible:(0,nd.EW)(e),isRTL:(0,Ze.dZ)(e),channelData:(0,ft.js)(e),isSingleVideo:(0,Sr.qf)(e),isMainItemChannelCover:(0,Ze.zn)(e),isMobile:(0,Mt.tq)(e)})),gf)((mf=class extends o().Component{constructor(e){super(e),qe()(this,"videosContainerRef",null),qe()(this,"playerOverlayContainerRef",null),qe()(this,"shareOverlayContainerRef",null),qe()(this,"saveVideosContainerRef",(e=>{this.videosContainerRef=e})),qe()(this,"startAutoPlayFedopsInteraction",(e=>{dh(this.props.interactions,{source:e.videoSource,layout:"compact",trigger:"auto"})})),qe()(this,"sendWidgetVidClickedBi",(e=>{const{channelData:t,logWidgetVidClick:n,interactions:r,isPlayInFrame:o,mainVideo:i}=this.props;n({videoItem:e,channelData:t}),o&&dh(r,{source:i.videoSource,layout:"compact",trigger:"click"})})),qe()(this,"reset",(()=>{this.setState(ff),this.props.goToLazyVideosPageIndex(0)})),qe()(this,"showAllVideos",(()=>{const{isVideoPlaying:e,pauseVideo:t,currentVideosPageNumber:n,goToLazyVideosPageIndex:r}=this.props;this.props.sendBiEvent("widget.actionBar.open.click"),e&&t(),this.setState({areAllVideosVisible:!0}),n||r(0),this.props.logWidgetSystem("videoList.show.requested")})),qe()(this,"hideAllVideos",(()=>{this.setState({areAllVideosVisible:!1}),this.props.closeShareOverlay()})),qe()(this,"toggleShareOverlay",(()=>{this.setState({isShareOverlayVisible:!this.state.isShareOverlayVisible})})),qe()(this,"hideShareOverlay",(()=>{this.setState({isShareOverlayVisible:!1})})),qe()(this,"renderPlayerOverlayItem",((e,t)=>{const{width:n,height:r}=this.playerSize,{channelData:i,currentSiteUser:s,videoByIds:a,mainVideoId:l}=this.props,c=this.isAtChannelCover(e)?im:lm,u=a[e],d=this.overlayActionsCallbacks;return o().createElement(d,{isMainVideo:e===l,onBeforeClick:this.hideAllVideos,onBeforePlayRequested:this.hideAllVideos,onPlayRequestedBi:ie().partial(this.sendWidgetVidClickedBi,u),channelId:i.id,videoId:u.id,videoItem:u},o().createElement(c,{currentSiteUser:s,width:n,height:r,isContentFocusable:t,channelData:i,videoItem:u}))})),qe()(this,"renderMainItemSlider",(()=>{const{lazyLoadedVideoIds:e,mainVideo:t,mainVideoId:n,isSingleVideo:r,isVideosFetching:i,currentIdIndex:s,channelData:a}=this.props,l=r?[n]:e;return t||i?n?-1===s?this.renderPlayerOverlayItem(n,!0):o().createElement(Km,{className:pf["main-video-slider"],loadedVideoIds:l,mainVideoId:n,isMainVideoAtChannelCover:this.isAtChannelCover(n),renderItem:this.renderPlayerOverlayItem}):null:r?o().createElement(hf,null):o().createElement(ah,{coverUrl:(0,Jr.k)(a)})})),qe()(this,"finishPlayFedopsInteraction",(()=>{const{mainVideo:e,interactions:t}=this.props;ph(t,{source:e.videoSource,layout:"compact"})})),qe()(this,"handleSlideToPrev",(()=>{this.props.logWidgetSystem("videoList.changePage.requested");const{currentVideosPageNumber:e,goToLazyVideosPageIndex:t}=this.props;t(e-1)})),qe()(this,"handleSlideToNext",(()=>{this.props.logWidgetSystem("videoList.changePage.requested");const{currentVideosPageNumber:e,goToLazyVideosPageIndex:t}=this.props;t(e+1)})),qe()(this,"selectNextVideo",(()=>{const{selectVideo:e,lazyLoadedVideoIds:t,currentIdIndex:n}=this.props;e(t[n+1])})),qe()(this,"selectPrevVideo",(()=>{const{selectVideo:e,lazyLoadedVideoIds:t,currentIdIndex:n}=this.props;e(t[n-1])})),qe()(this,"setCurrentVideoFromPayment",(e=>{e.itemId&&this.props.selectVideo(e.itemId)})),qe()(this,"handleActionBarContainerClick",(()=>{this.hideAllVideos(),this.hideShareOverlay()})),qe()(this,"handleShareRequest",(e=>{e.stopPropagation(),this.toggleShareOverlay()})),qe()(this,"playVideo",(e=>{let{id:t}=e;const{isPlayInFrame:n,channelData:r,openFullScreenVideoOverlay:o,closeFullScreenVideoOverlay:i,requestPlayVideo:s,isPortableDevice:a}=this.props;n||a?s(t):o(r.id,t,this.isPlayAllowed(t),i)})),this.state=ff}UNSAFE_componentWillReceiveProps(e){let{isVideoPlaying:t}=e;t&&!this.props.isVideoPlaying&&this.setState({areAllVideosVisible:!1})}componentDidUpdate(e,t){const{selectedVideoId:n,canShowVideoList:r,canShowChannelShare:o}=this.props,{areAllVideosVisible:i,isShareOverlayVisible:s}=this.state,a=t.areAllVideosVisible!==i;e.selectedVideoId!==n&&setTimeout((()=>{const e=this.playerOverlayContainerRef&&this.playerOverlayContainerRef.querySelector('[data-is-visible-overlay="true"]');(0,Kr.T)(e)}),400);r&&a&&i&&(0,Kr.T)(this.videosContainerRef);o&&s&&t.isShareOverlayVisible!==s&&(0,Kr.T)(this.shareOverlayContainerRef)}getShareOverlay(){const{channelData:e,mainVideo:t}=this.props,n=t?t.id:e.id;return o().createElement(od.Z,{key:`share-${n}`,channelData:e,videoItem:t})}renderMainItemSliderNav(){const{hasPrevVideo:e,hasNextVideo:t,isRTL:n}=this.props;return o().createElement(Yr,{prevButtonClassName:pf["nav-button-prev"],nextButtonClassName:pf["nav-button-next"],isPrevVisible:e,isNextVisible:t,isRTL:n,prevButtonAriaLabel:this.props.t("widget.accessibility.prev-video"),nextButtonAriaLabel:this.props.t("widget.accessibility.next-video"),onNextClick:this.selectNextVideo,onPrevClick:this.selectPrevVideo})}isVideoItemAtChannelCover(e){return this.props.isMainItemChannelCover&&e===this.props.mainVideoId}isAtChannelCover(e){return this.props.canShowChannelCover&&this.isVideoItemAtChannelCover(e)}get player(){const{mainVideo:e,canShowAutoPlay:t}=this.props;if(!e)return null;const{width:n,height:r}=this.playerSize,{channelData:i,isPlayInFrame:s,isVideoPlaying:a,currentSiteUser:l,PlayerComponent:c,isPortableDevice:u}=this.props;if(!(0,vt.$4)(i,e,l)||!c)return null;const d={videoItem:e,channelData:i,width:n,height:r,paused:!a,showPoster:!1},p={channelId:i.id,videoId:e.id};return u?o().createElement(Po,null,(e=>{let{canShowVideoInfoButton:n,canShowShareButton:r}=e;return o().createElement(df,p,o().createElement(c,Yn()({},d,{canShowFullInfo:n,canShareVideo:r}),t&&o().createElement(Ap,{dataHook:"autoplay-video",onAutoPlayRequested:this.startAutoPlayFedopsInteraction})))})):s?o().createElement(o().Fragment,null,o().createElement(Po,null,(e=>{let{canShowVideoInfoButton:t,canShowShareButton:n}=e;return o().createElement(df,p,o().createElement(c,Yn()({},d,{canShowFullInfo:t,canShareVideo:n,onPlayStart:this.finishPlayFedopsInteraction})))})),o().createElement(Ap,{dataHook:"autoplay-video",onAutoPlayRequested:this.startAutoPlayFedopsInteraction})):null}get playerContentSize(){const{canShowVideoList:e}=this.props;if(!e)return this.playerSize;const{width:t,height:n}=this.playerSize;return{width:t,height:n-(this.actionBarHeight-40)}}get playerSize(){const{windowSize:e}=this.props,t=Math.min(Math.max(e.width,400),980);return(0,co.xo)(t,0)}get actionBarHeight(){return this.areActionsVisible?60:40}get thumbnailSize(){const{width:e,height:t}=this.playerSize;return{width:e/Eh.$,height:(t-20)/Eh.C}}renderVideos(){const{channelData:e,videoIdsByPageNumber:t,currentVideosPageNumber:n,canShowVideoList:r,isVideosFetching:i,isRTL:s,mainVideo:a}=this.props,l=this.overlayActionsCallbacks;return r&&a?o().createElement(ou,{className:pf["videos-container"],channelTitle:e.title,isChannelHasVideos:Boolean(e.videosCount),isVideosFetching:i,videoIdsByPageNumber:t,currentVideosPageNumber:n,style:{height:this.videosListHeight},onRef:this.saveVideosContainerRef},o().createElement(qh,{containerWidth:this.playerContentSize.width,channelData:e,isVisible:this.isVideoListVisible,isRTL:s,videoIdsByPageNumber:t,currentVideosPageNumber:n,onSlideToPrev:this.handleSlideToPrev,onSlideToNext:this.handleSlideToNext,onBeforeClick:this.hideAllVideos,onBeforePlayRequested:this.hideAllVideos,onPlayRequestedBi:this.sendWidgetVidClickedBi,OverlayActionsCallbacks:l,thumbnailSize:this.thumbnailSize})):null}get actionBar(){const{isActionBarVisible:e}=this.props;return e?o().createElement(Fm,{height:this.actionBarHeight,areActionsVisible:this.areActionsVisible,onActionsContainerClick:this.handleActionBarContainerClick,onMenuClick:this.showAllVideos,onButtonsClick:this.hideShareOverlay},this.actions):null}get actions(){const{channelData:e,canShowVideoList:t,canShowSignIn:n,canShowChannelShare:r,canShowChannelInfo:i,canShowSubscriptionButton:s,mainVideo:a}=this.props;return o().createElement($u,{channelId:e.id},(l=>o().createElement(Om,{channelData:e,videoItem:a,canShowSignIn:n,canShowChannelShare:r,canShowChannelInfo:i,canShowCloseButton:t,canShowSubscriptionButton:s,onShareRequest:this.handleShareRequest,onCloseRequest:this.hideAllVideos,onLogInRequest:l.logIn,onLogOutRequest:l.logOut,onInfoRequest:l.showInfo,onSubscriptionRequest:l.subscribe,onSubscriptionCancelRequest:l.cancelSubscription,onAccountInfoAtOverlayRequest:l.showAccountInfo})))}get isVideoListVisible(){const{areAllVideosVisible:e}=this.state,{isThumbnailsPreviewHover:t,canShowVideoList:n}=this.props;return!!n&&(e||t)}get areActionsVisible(){const{canShowVideoList:e}=this.props;return!e||this.isVideoListVisible}get overlayActionsCallbacks(){const{isPlayInFrame:e,isPortableDevice:t}=this.props;return t?of:e?ef:lf}isPlayAllowed(e){const{channelData:t,videoByIds:n,currentSiteUser:r}=this.props;return(0,vt.$4)(t,n[e],r)}render(){const{isVideoPlaying:e,isVideoPaused:t,channelData:n,selectedVideoId:r,isAllCardsOverlayVisible:i,isPortableDevice:s}=this.props,a=!e&&!i&&(s||!t);return o().createElement("main",{className:pf.container,"data-hook":"widget-container","data-channel-layout":"compact","aria-label":this.props.t("widget.accessibility.channel-videos-widget",{channelTitle:n.title}),tabIndex:"0"},o().createElement("div",{className:pf.content,style:this.playerContentSize},o().createElement(bh.r,{type:"fade-in",dataHook:"video-list",className:pf["videos-in-animation"],when:this.isVideoListVisible},this.renderVideos()),o().createElement(bh.r,{type:"fade-in",dataHook:"player-content",when:!this.isVideoListVisible},this.player,a&&this.renderMainItemSlider(),a&&!this.isVideoListVisible&&this.renderMainItemSliderNav(),o().createElement(nu,null)),this.getShareOverlay()),this.actionBar,o().createElement(_r.Z,{onRent:this.setCurrentVideoFromPayment,onSale:this.setCurrentVideoFromPayment,onSubscription:this.reset,onSubscriptionCancel:this.reset}),o().createElement(Zu,{playVideo:this.playVideo,isVideoPlaying:e,selectedVideoId:r}),o().createElement(Iu,null))}},qe()(mf,"displayName","CompactView"),mf))),yf=cr(ch((0,Ur.yT)(vf)));var bf;const Ef={playVideo:Pt.Kz,pauseVideo:Pt.r,selectVideo:Dn.Uw,openFullScreenVideoOverlay:St.Ep,closeFullScreenVideoOverlay:St.xZ,openFullScreenPurchaseOverlay:oo,openFullScreenMemberOnlyOverlay:io,openFullScreenSubscribeOverlay:so,openFullScreenRentOverlay:ao},Sf=(0,He.$j)((e=>({isPlayInFrame:(0,Ze.XM)(e),isVideoPlaying:(0,mt.BW)(e),isPortableDevice:(0,Mt.ND)(e)})),Ef)((bf=class extends o().Component{constructor(){super(...arguments),qe()(this,"selectVideo",(()=>{const{selectVideo:e,videoItem:t}=this.props;e(t.id)})),qe()(this,"showVideoAtOverlay",(0,eo.Q)((()=>{const{channelId:e,videoItem:t,openFullScreenVideoOverlay:n,closeFullScreenVideoOverlay:r}=this.props;this.pausePlayingVideo(),n(e,t.id,!1,r)}))),qe()(this,"showVideoMemberOnlyInfo",(0,eo.Q)((()=>{const{channelId:e,videoItem:t,fedops:n}=this.props;this.pausePlayingVideo(),this.props.openFullScreenMemberOnlyOverlay(n,e,t.id)}))),qe()(this,"showVideoPurchaseInfo",(0,eo.Q)((()=>{const{channelId:e,videoItem:t,fedops:n}=this.props;this.pausePlayingVideo(),this.props.openFullScreenPurchaseOverlay(n,e,t.id)}))),qe()(this,"showVideoRentInfo",(0,eo.Q)((()=>{const{channelId:e,videoItem:t,fedops:n}=this.props;this.pausePlayingVideo(),this.props.openFullScreenRentOverlay(n,e,t.id)}))),qe()(this,"showChannelSubscriptionInfoAtOverlay",(0,eo.Q)((()=>{this.pausePlayingVideo(),this.props.openFullScreenSubscribeOverlay(this.props.fedops,this.props.channelId)}))),qe()(this,"playVideoAtOverlay",(0,eo.Q)((()=>{const{channelId:e,videoItem:t,openFullScreenVideoOverlay:n,closeFullScreenVideoOverlay:r}=this.props;this.pausePlayingVideo(),n(e,t.id,!0,r)}))),qe()(this,"handlePlayVideo",(()=>{const{isPlayInFrame:e,onPlayRequestedBi:t,videoItem:n,isPortableDevice:r,isResponsive:o}=this.props;t(n),o?this.playVideoAtOverlay():e?this.playVideo():r?this.showVideoAtOverlay():this.playVideoAtOverlay()}))}componentDidMount(){Sc({onRent:this.showVideoRentInfo,onPurchase:this.showVideoPurchaseInfo,onSubscription:this.showChannelSubscriptionInfoAtOverlay})}playVideo(){const{playVideo:e,videoItem:t}=this.props;this.selectVideo(),setTimeout((()=>{e(t.id)}))}pausePlayingVideo(){const{isVideoPlaying:e,pauseVideo:t}=this.props;e&&t()}render(){const{children:e}=this.props;return o().cloneElement(e,{onClick:this.handlePlayVideo,onPlayRequest:this.handlePlayVideo,onPlayMemberOnlyRequest:this.showVideoMemberOnlyInfo,onPlayWithoutPreviewRequest:this.showVideoAtOverlay,onPurchaseRequest:this.showVideoPurchaseInfo,onSubscriptionRequest:this.showChannelSubscriptionInfoAtOverlay,onRentRequest:this.showVideoRentInfo})}},qe()(bf,"defaultProps",{onPlayRequestedBi:ie().noop}),bf)),Cf=(0,or.F)(Sf),wf=(0,gt.P1)(((e,t)=>t),Jn.R8,((e,t)=>e.itemWidth>nh.yz||t));var Pf=n(79812);const If={pauseVideo:Pt.r,closeShareOverlay:Wc.sx,showPlayerUI:Pf.$g,openFullScreenShareOverlay:to.L_},Of=(0,He.$j)(((e,t)=>({isShareOpen:(0,id.Wg)(e),mainVideoId:(0,kn.hg)(e),channel:(0,ft.js)(e),shouldOpenFullscreenModal:!wf(e,t)})),If)(class extends o().Component{constructor(){super(...arguments),qe()(this,"openFullScreenShareOverlay",(0,eo.Q)(((e,t)=>{this.props.openFullScreenShareOverlay(e,t)})))}UNSAFE_componentWillReceiveProps(e){let{pauseVideo:t,isShareOpen:n,shouldOpenFullscreenModal:r,channel:o,mainVideoId:i,closeShareOverlay:s,showPlayerUI:a}=e;r&&n&&!this.props.isShareOpen&&(t(),s(),a(),this.openFullScreenShareOverlay(o.id,i))}render(){return null}}),Tf="Ka3OKk",Nf="LW4DQF",Af="s2pPat",xf="H9kzYa",_f="oq7svw",Lf="ug1ey4",Rf="kveEvR",kf="ccVTXp",Df="XnBkjx";class Vf extends o().Component{constructor(e){super(e),qe()(this,"prev",(()=>{const{lastVisibleItemIndex:e,visibleCount:t}=this.state,n=Math.max(e-2*(t-1),0);n>=0&&this.scrollToItem(n)})),qe()(this,"next",(()=>{const{itemsCount:e}=this.props,{lastVisibleItemIndex:t}=this.state,n=Math.min(t,e-1);n<e&&this.scrollToItem(n)})),qe()(this,"scrollToItem",(e=>{const{isRTL:t}=this.props,n=this.containerRef.current,r=n.children[e];if(t){const e=n.clientWidth-r.offsetLeft-r.clientWidth;n.scrollLeft=-1*e}else n.scrollLeft=r.offsetLeft})),qe()(this,"checkHorizontalVisibleItems",(()=>{const{itemsCount:e}=this.props,t=this.containerRef.current,{clientWidth:n,scrollLeft:r}=t,o=t.firstChild.clientWidth,i=Math.ceil((n+Math.abs(r))/o),s=Math.min(i-1,e-1);this.visibleItemsChanged(s)})),qe()(this,"checkVerticalVisibleItems",(()=>{const{itemsCount:e}=this.props;if(this.props.vertical){const t=this.containerRef.current,n=t.firstChild.clientHeight,r=t.getBoundingClientRect(),o=window.innerHeight-r.y,i=Math.ceil(o/n),s=Math.min(i-1,e-1);s>=0&&this.visibleItemsChanged(s)}})),qe()(this,"visibleItemsChanged",(e=>{const{lastItemIndex:t}=this.state,n={lastVisibleItemIndex:e};e>t&&(this.props.loadMore(e-t),n.lastItemIndex=e),this.setState(n)})),qe()(this,"countVisibleItems",(()=>{const e=this.containerRef.current,{clientWidth:t,clientHeight:n}=e.firstChild;let r;r=this.props.vertical?Math.ceil(e.clientHeight/n):Math.ceil(e.clientWidth/t),this.setState({visibleCount:r})})),qe()(this,"checkVisibleItems",ie().debounce((()=>{this.countVisibleItems(),this.props.vertical?this.checkVerticalVisibleItems():this.checkHorizontalVisibleItems()}),150)),qe()(this,"handleScroll",ie().debounce(this.checkHorizontalVisibleItems,150)),qe()(this,"handleParentScroll",ie().debounce(this.checkVerticalVisibleItems,150)),this.containerRef=o().createRef(),this.state={lastVisibleItemIndex:0,lastItemIndex:0,visibleCount:5}}componentDidMount(){const{subscribeOnParentScroll:e}=this.props;e&&e(this.handleParentScroll),window.addEventListener("resize",this.checkVisibleItems),this.checkVisibleItems()}componentDidUpdate(e){const{itemsCount:t}=this.props,{itemsCount:n}=e,{visibleCount:r}=this.state,o=this.containerRef.current;(t!==n||!r&&o.clientWidth>0)&&this.checkVisibleItems()}componentWillUnmount(){const{unSubscribeFromParentScroll:e}=this.props;e&&e(this.handleParentScroll),window.removeEventListener("resize",this.checkVisibleItems)}renderArrows(){const{itemsCount:e,vertical:t,arrowClassName:n,isRTL:r}=this.props,{lastVisibleItemIndex:i,visibleCount:s}=this.state;if(t||s>e)return null;const a=this.containerRef.current,l=a&&Math.abs(a.scrollLeft)>0;let c=e>s;if(i===e-1){const e=a.children[i],t=r?a.clientWidth-e.offsetLeft-e.clientWidth:e.offsetLeft;c=Math.abs(a.scrollLeft)+a.clientWidth<t+e.clientWidth}return o().createElement(o().Fragment,null,o().createElement("div",{onClick:r?this.next:this.prev,className:Ot()(Lf,Rf,n,{[Df]:r?c:l})}),o().createElement("div",{onClick:r?this.prev:this.next,className:Ot()(Lf,kf,n,{[Df]:r?l:c})}))}render(){const{itemClassName:e,items:t,itemsCount:n,renderItem:r,vertical:i,isRTL:s,itemsGap:a}=this.props,{visibleCount:l,lastItemIndex:c}=this.state,u=c+2*l,d=ie().map(Array(n).slice(0,u),((e,n)=>t[n]));return o().createElement("div",{className:Ot()(Tf,{[Nf]:!i,[Af]:i}),ref:this.containerRef,onScroll:this.handleScroll,style:{gap:a}},ie().map(d,(t=>o().createElement("div",{className:Ot()(xf,e,{[_f]:s}),key:t},r(t)))),this.renderArrows())}}qe()(Vf,"defaultProps",{loadMore:ie().noop,subscribeOnParentScroll:ie().noop,unSubscribeFromParentScroll:ie().noop,itemsGap:0});const Mf=Vf,Bf="OGSZtY",Ff="ZUT_4F",Uf="MuWJw2",jf="fpZydw",Hf="eoAeUI",Zf="azCWwB",Wf="iqHOYT",zf="vQdLoh",qf="bP3EaO",Gf="idCd_k",$f="Vu13CR",Yf="qsUMbA",Kf="RyjM8p",Xf="CZNNz7";var Qf=n(81249);const Jf="TgISbN",eg="uL8dDL",tg="_Ylg0k",ng="_BRG8E",rg="D1y5OO";class og extends o().Component{render(){const{theme:e,active:t,style:n}=this.props;return o().createElement("div",{"data-hook":"item-loading",style:n,className:zr()(Jf,{[rg]:e===Qf.S.LIGHT,[ng]:e===Qf.S.DARK,[tg]:!e,[eg]:t})})}}var ig=n(61863);const sg="WXhjVQ",ag="x7sgsK",lg="PXFpLD",cg="EcQmcQ",ug="GSLmqT",dg="r72D1C",pg="C9Zjgc",hg="eYueFh",mg="KfYhAe",fg="TKnDKq",gg="P7D7NQ",vg="H0bMsJ",yg="cLOpwb",bg="nd19Lg",Eg="BUcRDP",Sg="IOnYqk",Cg="W8lUy4",wg=[275,400,500,608,700,980],Pg=e=>wg.filter((t=>t<=e)).map((e=>`${e}px`)).join(" ");class Ig extends o().Component{constructor(){super(...arguments),qe()(this,"stopPropagation",(e=>{e.stopPropagation()}))}getCoverStyle(){return{...this.getSize(),backgroundImage:`url(${this.props.backgroundUrl})`}}getSize(){const{width:e}=this.props;if(e){return{width:e,height:.5625*e}}return{}}getMinWidthAttributte(){const{width:e}=this.props;return e?{"data-thumbnail-min-width":Pg(e)}:{}}renderLiveLabel(){const{width:e,showLiveLabel:t,liveLabel:n,isRTL:r}=this.props;if(!t)return null;const i=Ot()(Cg,{[Eg]:r,[bg]:!r});return o().createElement("div",{className:i},o().cloneElement(n,{thumbnailWidth:e}))}renderButtons(){const{buttons:e,isRTL:t}=this.props;if(!e)return null;const n=Ot()(hg,{[Eg]:t,[bg]:!t});return o().createElement("div",{onClick:this.stopPropagation,className:n},e)}getCoverClassName(){const{showLiveLabel:e,showButtonsOnHover:t,isRTL:n}=this.props;return Ot()(dg,{[yg]:e,[gg]:t,[Eg]:n,[bg]:!n})}renderContent(){const{content:e,isRTL:t}=this.props;if(!e)return null;const n=Ot()(lg,{[Eg]:t,[bg]:!t});return o().createElement("div",{className:n},e)}renderDuration(){const{duration:e,isRTL:t}=this.props;if(!e)return null;const n=Ot()(vg,{[Eg]:t,[bg]:!t});return o().createElement("div",{className:n},e)}render(){const{width:e,onClick:t,overlayClassName:n,isFocusable:r,isLoading:i,ariaLabel:s,dataHook:a,isRTL:l,isPaid:c,useResponsiveThumbnail:u,backgroundSrc:d,breakpoints:p,videoTitle:h}=this.props,m=Ot()(sg,{[ag]:i,[Eg]:l,[bg]:!l,[cg]:Boolean(p)}),f=Ot()(pg,{[Eg]:l,[bg]:!l}),g=Ot()(ug,{[Eg]:l,[bg]:!l}),v=Ot()(mg,n,{[Eg]:l,[bg]:!l,[fg]:u}),y=o().createElement("div",{className:v},this.renderLiveLabel(),this.renderButtons(),this.renderDuration(),c&&o().createElement(ig.Z,{className:Sg})),b=e||320,E=p||[{min:0,width:b,height:b/16*9}];return o().createElement("div",Yn()({},this.getMinWidthAttributte(),{style:{width:e},className:m,onClick:t,"data-hook":a,"aria-hidden":!r}),o().createElement("div",{className:f,tabIndex:r?0:-1,"aria-label":s},i?o().createElement("div",{className:g,style:this.getSize()},o().createElement(og,{active:i})):o().createElement("div",{className:this.getCoverClassName(),"data-hook":"thumbnail-cover",style:u?{}:this.getCoverStyle()},u?o().createElement(tp.t,{alt:h,src:d,breakpoints:E},y):y),this.renderContent()))}}qe()(Ig,"displayName","Thumbnail"),qe()(Ig,"defaultProps",{onClick:oe.noop,dataHook:"video-list-thumb-wrapper"});const Og="bOlKmx",Tg="mj3g7H",Ng="cKjuLr",Ag="sHMecX",xg="L9QNng",_g="LrrgIa",Lg="ulI38_",Rg="Q9JsZJ",kg="dCzRzB",Dg="H2MDFs",Vg="b218Fe";let Mg=function(e){return e.LEFT="left",e.CENTER="center",e.RIGHT="right",e}({});class Bg extends o().Component{constructor(){super(...arguments),qe()(this,"state",{isClient:!1}),qe()(this,"handleContentClick",(e=>{const{onClick:t}=this.props;e.preventDefault(),e.stopPropagation(),t()}))}componentDidMount(){"undefined"!=typeof window&&this.setState({isClient:!0})}renderPublisher(){const{publisher:e,isRTL:t,publisherClassName:n}=this.props;if(!e)return null;const r=Ot()(kg,n,{[Ag]:t,[Ng]:!t});return o().createElement("div",{className:r,"data-hook":"publisher"},e)}renderTitle(){const{title:e,isRTL:t,titleClassName:n,isOptimalFontSizes:r}=this.props;if(!e)return null;const i=Ot()(_g,n,{[Ag]:t,[Ng]:!t,[Dg]:r});return o().createElement("h3",{key:this.state.isClient?"title-client":"title-ssr",className:i,title:e,"data-hook":"title"},e)}renderDescription(){const{description:e,isRTL:t,textClassName:n,isOptimalFontSizes:r}=this.props;if(!e)return null;const i=Ot()(Vg,n,{[Ag]:t,[Ng]:!t,[Dg]:r});return o().createElement("div",{key:this.state.isClient?"description-client":"description-ssr",className:i,"data-hook":"description"},e)}render(){const{className:e,isFocusable:t,alignment:n,isRTL:r}=this.props,i=Ot()(Og,{[Tg]:n===Mg.LEFT,[Rg]:n===Mg.CENTER,[Lg]:n===Mg.RIGHT,[Ag]:r,[Ng]:!r}),s=Ot()(xg,e,{[Ag]:r,[Ng]:!r});return o().createElement("div",{className:i},o().createElement("a",{href:"#",className:s,onClick:this.handleContentClick,tabIndex:t?0:-1,"aria-hidden":!t},this.renderPublisher(),this.renderTitle(),this.renderDescription()))}}qe()(Bg,"defaultProps",{alignment:Mg.LEFT,isOptimalFontSizes:!0});const Fg=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 40 40",fill:"currentColor",width:e||"40",height:e||"40",...t},r.createElement("defs",null,r.createElement("path",{d:"M20,37.8378378 C29.8515658,37.8378378 37.8378378,29.8515658 37.8378378,20 C37.8378378,10.1484342 29.8515658,2.16216216 20,2.16216216 C10.1484342,2.16216216 2.16216216,10.1484342 2.16216216,20 C2.16216216,29.8515658 10.1484342,37.8378378 20,37.8378378 Z M20,40 C8.954305,40 0,31.045695 0,20 C0,8.954305 8.954305,0 20,0 C31.045695,0 40,8.954305 40,20 C40,31.045695 31.045695,40 20,40 Z M26.594595,19.6756755 L15.1351351,12.972973 L15.1351351,26.378378 L26.594595,19.6756755 Z",id:"path-play"})),r.createElement("g",{id:"play-button",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},r.createElement("g",{id:"Awesome-Icons---slider-+-grid",transform:"translate(-768 -876)"},r.createElement("g",{id:"Icons/play",transform:"translate(768 876)"},r.createElement("g",{id:"play"},r.createElement("mask",{id:"mask-play",fill:"currentColor"},r.createElement("use",{xlinkHref:"#path-play"})),r.createElement("use",{id:"Mask",fill:"currentColor",fillRule:"nonzero",xlinkHref:"#path-play"}))))));Fg.displayName="PlayIcon";const Ug=Fg;var jg=n(84470);const Hg="oRc1hr",Zg="Ruw4Qd",Wg="R4zfjI",zg="O2Sst0",qg="siS6QX",Gg="NTBBG1",$g="Pw1drs",Yg="grnIuB",Kg="MqEZQa";class Xg extends o().Component{getButtonClassNames(){const{isRTL:e}=this.props;return{buttonClassNames:Ot()(Wg,{[zg]:e,[Zg]:!e}),iconClassNames:Ot()(Yg,{[zg]:e,[Zg]:!e}),textClassNames:Ot()(Gg,{[zg]:e,[Zg]:!e})}}renderPlayButton(){const{showPlayButton:e,playButtonText:t,onPlayClick:n,isFocusable:r}=this.props;if(!e)return null;const{buttonClassNames:i,iconClassNames:s,textClassNames:a}=this.getButtonClassNames();return o().createElement("button",{className:i,onClick:n,tabIndex:r?0:-1,"aria-hidden":!r,"aria-label":t,"data-hook":"overlay-play-button"},o().createElement(jg.W,{icon:o().createElement(Ug,null),className:s}),o().createElement("div",{className:a},t),this.renderTooltip(t))}renderBuyButton(){const{showBuyButton:e,buyButtonText:t,onBuyClick:n,isFocusable:r,buyAriaLabel:i,currency:s}=this.props;if(!e)return null;const{buttonClassNames:a,iconClassNames:l,textClassNames:c}=this.getButtonClassNames();return o().createElement("button",{className:a,onClick:n,tabIndex:r?0:-1,"aria-hidden":!r,"aria-label":i,"data-hook":"paid-access-button"},o().createElement("div",{className:Ot()(Kg,l)},o().createElement(Od,{currency:s})),o().createElement("div",{className:c},t),this.renderTooltip(t))}renderTooltip(e){const{isRTL:t}=this.props,n=Ot()($g,{[zg]:t,[Zg]:!t});return o().createElement("div",{className:n},e)}render(){const{showButtonsText:e,className:t,isRTL:n}=this.props,r=Ot()(Hg,{[qg]:!e,[zg]:n,[Zg]:!n},t);return o().createElement("div",{className:r,"data-hook":"thumbnail-buttons"},this.renderPlayButton(),this.renderBuyButton())}}var Qg=n(54550),Jg=n(90608);const ev=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 26 12",fill:"currentColor",width:e||"26",height:e||"12",...t},r.createElement("g",{id:"Page-1",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},r.createElement("g",{id:"Live-backoffice"},r.createElement("path",{id:"Rectangle",fill:"currentColor",d:"M-1.51094415e-15 -7.95673788e-16L26 3.8597913e-15 26 12 1.48839274e-15 12z"}),r.createElement("path",{d:"M4.81,9 L8.347,9 L8.347,8.334 L5.557,8.334 L5.557,2.997 L4.81,2.997 L4.81,9 Z M9.4,9 L10.147,9 L10.147,2.997 L9.4,2.997 L9.4,9 Z M13.342,9 L14.269,9 L16.69,2.997 L15.835,2.997 L13.81,8.181 L11.785,2.997 L10.93,2.997 L13.342,9 Z M17.473,9 L21.406,9 L21.406,8.334 L18.22,8.334 L18.22,6.264 L21.343,6.264 L21.343,5.598 L18.22,5.598 L18.22,3.663 L21.406,3.663 L21.406,2.997 L17.473,2.997 L17.473,9 Z",id:"LIVE",fill:"currentColor"}))));ev.displayName="LiveIcon";const tv=ev,nv=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 22 12",fill:"currentColor",width:e||"22",height:e||"12",...t},r.createElement("g",{id:"Page-1",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},r.createElement("g",{id:"02---Thumbnail-Components",transform:"translate(-1379 -6965)"},r.createElement("g",{id:"Icons/CalendarSmall-1",transform:"translate(1379 6965)"},r.createElement("path",{d:"M2,6 L2,4.5 C2,4.22385542 2.22385542,3.99999389 2.5,3.99998636 C2.77613484,3.99997882 2.99999247,4.22382423 3,4.49995907 C3,4.49996362 3,4.49996817 3,4.49997271 L3,6 L4.5,6 C4.77614237,6 5,6.22385763 5,6.5 C5,6.77614237 4.77614237,7 4.5,7 L3,7 L3,8.5 C3,8.77614237 2.77614237,9 2.5,9 C2.22385763,9 2,8.77614237 2,8.5 L2,7 L0.5,7 C0.223857625,7 3.38176876e-17,6.77614237 0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L2,6 Z",id:"Combined-Shape",fill:"currentColor",fillRule:"evenodd"}),r.createElement("path",{id:"Path",stroke:"currentColor",d:"M12.5 7.5H13.5V8.5H12.5z",strokeWidth:"1"}),r.createElement("rect",{id:"Combined-Shape",stroke:"currentColor",x:"9.5",y:"1.5",width:"12",height:"10",rx:"1",strokeWidth:"1"}),r.createElement("rect",{id:"Rectangle-10-Copy-12",stroke:"currentColor",x:"12.5",y:".5",width:"1",height:"2",rx:".5",strokeWidth:"1"}),r.createElement("rect",{id:"Rectangle-10-Copy-14",stroke:"currentColor",x:"15.5",y:".5",width:"1",height:"2",rx:".5",strokeWidth:"1"}),r.createElement("rect",{id:"Rectangle-10-Copy-17",stroke:"currentColor",x:"18.5",y:".5",width:"1",height:"2",rx:".5",strokeWidth:"1"})))));nv.displayName="ScheduledSmallIcon";const rv=nv,ov=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 24 14",fill:"currentColor",width:e||"24",height:e||"14",...t},r.createElement("g",{id:"Page-1",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},r.createElement("g",{id:"02---Thumbnail-Components",transform:"translate(-652 -6964)"},r.createElement("g",{id:"Icons/CalendarBig-1",transform:"translate(652 6964)"},r.createElement("path",{d:"M3,7 L3,4.5 C3,4.22385763 3.22385763,4 3.5,4 C3.77614237,4 4,4.22385763 4,4.5 L4,7 L6.5,7 C6.77614237,7 7,7.22385763 7,7.5 C7,7.77614237 6.77614237,8 6.5,8 L4,8 L4,10.5 C4,10.7761424 3.77614237,11 3.5,11 C3.22385763,11 3,10.7761424 3,10.5 L3,8 L0.5,8 C0.223857625,8 3.38176876e-17,7.77614237 0,7.5 C-3.38176876e-17,7.22385763 0.223857625,7 0.5,7 L3,7 Z",id:"Combined-Shape",fill:"currentColor",fillRule:"evenodd"}),r.createElement("rect",{id:"Rectangle-8",stroke:"currentColor",x:"10.5",y:"1.5",width:"13",height:"12",rx:"1",strokeWidth:"1"}),r.createElement("rect",{id:"Rectangle-10",fill:"currentColor",x:"15",y:"0",width:"1",height:"3",rx:".5",fillRule:"evenodd"}),r.createElement("rect",{id:"Rectangle-10-Copy",fill:"currentColor",x:"12",y:"0",width:"1",height:"3",rx:".5",fillRule:"evenodd"}),r.createElement("rect",{id:"Rectangle-10-Copy-3",fill:"currentColor",x:"18",y:"0",width:"1",height:"3",rx:".5",fillRule:"evenodd"}),r.createElement("rect",{id:"Rectangle-10-Copy-4",fill:"currentColor",x:"21",y:"0",width:"1",height:"3",rx:".5",fillRule:"evenodd"}),r.createElement("path",{id:"Rectangle-46",fill:"currentColor",d:"M13 9H15V11H13z",fillRule:"evenodd"})))));ov.displayName="ScheduledBigIcon";const iv=ov;var sv=n(11063);const av="IDiMov",lv="uHKJjW",cv="DNjchN",uv="JVsbUw",dv="wptbnR",pv="eIO2z2",hv="kOSeYu",mv="AAVaKa",fv="j_qqJX";class gv extends o().Component{constructor(){super(...arguments),qe()(this,"openGoogleCalendarEvent",(e=>{const{startTime:t,liveText:n,videoTitle:r}=this.props,o=new Date(t).toISOString().replace(/-|:|\.\d+/g,"");const i=(0,Qg.Q)("https://www.google.com/calendar/event",{action:"TEMPLATE",dates:`${o}/${o}`,text:r,location:"",details:n});(0,Jg.M)(i),e.stopPropagation()}))}renderLiveLabel(){const{liveText:e,pendingLiveText:t,isPendingLiveStream:n,className:r,isRTL:i}=this.props,s=n?t:e,a=Ot()(av,r,{[dv]:i,[uv]:!i}),l=Ot()(lv,{[dv]:i,[uv]:!i}),c=Ot()(cv,{[dv]:i,[uv]:!i});return o().createElement("div",{"data-hook":"live-stream-label",className:a,role:"note","aria-label":s},o().createElement(jg.W,{icon:o().createElement(tv,null),className:l}),o().createElement("span",{className:c},s))}renderScheduledLabel(){const{className:e,liveText:t,addReminderText:n,reminderAriaLabel:r,thumbnailWidth:i,isFocusable:s,isRTL:a}=this.props,l=i<500?rv:iv,c=Ot()(pv,e,{[dv]:a,[uv]:!a}),u=Ot()(fv,{[dv]:a,[uv]:!a}),d=Ot()(mv,{[dv]:a,[uv]:!a}),p=Ot()(hv,{[dv]:a,[uv]:!a});return o().createElement("div",{"data-hook":"scheduled-label",className:c,"aria-label":this.getScheduledAriaLabel(),role:"region",tabIndex:s?0:-1},o().createElement(jg.W,{icon:o().createElement(l,null),className:u}),o().createElement("span",{className:d},`${t}: `,this.renderScheduledTime()),o().createElement("span",{onClick:this.openGoogleCalendarEvent,tabIndex:s?0:-1,role:"link",className:p,"aria-label":r},n))}getScheduledAriaLabel(){const{startTime:e,scheduledSoonAriaLabel:t,scheduledAriaLabel:n}=this.props;return e-Date.now()<_u.c.ONE_DAY?t:n}renderScheduledTime(){const{startTime:e,startsInAriaLabel:t,locale:n,dateFormat:r,isFocusable:i}=this.props;return e-Date.now()>_u.c.ONE_DAY?new Date(e).toLocaleString(n,r):o().createElement(sv.I,{until:e,titlePrefix:t,isFocusable:i})}render(){const{isStreaming:e,isScheduled:t}=this.props;return e?this.renderLiveLabel():t?this.renderScheduledLabel():null}}qe()(gv,"defaultProps",{dateFormat:{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"}});const vv="SVfNeo",yv="zcmkQ0",bv="emNH7z",Ev="vBlh5k",Sv="YuO1NO",Cv="MCQmsR";var wv=n(20642),Pv=n(42493),Iv=n(16323);const Ov={[wv.x.LEFT]:"left",[wv.x.CENTER]:"center",[wv.x.RIGHT]:"right"},Tv=(0,ln.Z)()((0,He.$j)((()=>{const e=Nd(),t=xd();return(n,r)=>({playButtonConfig:e(n,r),paidAccessButtonConfig:t(n,r),showTitle:(0,Ze.Um)(n),showDuration:(0,Ze.fi)(n),showPublisher:(0,Ze.bp)(n),showDescription:(0,Ze.Xj)(n),showContent:(0,Ze.vr)(n),isButtonsShownOnHover:(0,Ze.io)(n),locale:(0,Ze.Kd)(n),isButtonsTextShown:(0,Ze.jc)(n),isPendingLiveStream:(0,Nu.eZ)(r.videoItem),textAlignment:(0,Ze.X3)(n),isOptimalFontSizes:(0,Ze.bX)(n),titleFont:(0,Ze.jz)(n),textFont:(0,Ze.od)(n),isRTL:(0,Ze.dZ)(n)})}))(class extends o().Component{constructor(){super(...arguments),qe()(this,"handlePlayClick",(()=>{const{playButtonConfig:e}=this.props;e&&e.callback()}))}renderThumbnailContent(){const{videoItem:e,onPlayWithoutPreviewRequest:t,showTitle:n,showPublisher:r,showDescription:i,showContent:s,isContentFocusable:a,textAlignment:l,isOptimalFontSizes:c,isRTL:u,titleFont:d,textFont:p,renderThumbnailContent:h,width:m,textClassName:f}=this.props;if(!s)return null;const g=n?e.title:"",v=i?e.description:"",y=r?e.publisher:"",b=Ov[l];return h?h({title:g,description:v,publisher:y,alignment:b,onClick:t}):o().createElement(Bg,{width:m,title:g,description:v,publisher:y,onClick:t,className:vv,titleClassName:bv,textClassName:Ot()(Ev,f),publisherClassName:Sv,isFocusable:a,isOptimalFontSizes:c,alignment:b,titleFont:d,textFont:p,isRTL:u})}renderThumbnailButtons(){const{isRTL:e}=this.props,t={...this.getPlayButtonProps(),...this.getBuyButtonProps()};return o().createElement(Xg,Yn()({showButtonsText:this.props.isButtonsTextShown,isFocusable:this.props.isContentFocusable},t,{className:yv,isRTL:e}))}renderLiveLabel(){const{videoItem:e,locale:t,isContentFocusable:n,isPendingLiveStream:r,isRTL:i}=this.props;return(0,Qr.mY)(e)?o().createElement(gv,{videoTitle:e.title,startTime:e.dateStartLive,isStreaming:(0,Nu.n_)(e),isScheduled:(0,Nu.$Z)(e),locale:t,isFocusable:n,isPendingLiveStream:r,liveText:this.props.t("shared.live"),pendingLiveText:this.props.t("shared.pending-live"),scheduledSoonAriaLabel:this.props.t("widget.accessibility.scheduled-soon-label"),scheduledAriaLabel:this.props.t("widget.accessibility.scheduled-label"),startsInAriaLabel:this.props.t("widget.accessibility.starts-in"),reminderAriaLabel:this.props.t("widget.accessibility.reminder"),addReminderText:this.props.t("shared.add-reminder"),isRTL:i}):null}getPlayButtonProps(){const{playButtonConfig:e}=this.props;return e?{showPlayButton:!0,playButtonText:this.props.t(e.translationData.props),onPlayClick:this.handlePlayClick}:{showPlayButton:!1}}getBuyButtonProps(){const{paidAccessButtonConfig:e}=this.props;if(!e)return{showBuyButton:!1};const{currency:t,price:n}=e.translationData.priceModel;return{showBuyButton:!0,currency:t,buyButtonText:(0,sl.Z)(e.translationData.props,e.translationData.priceModel),buyAriaLabel:this.props.t(e.translationData.props,{price:`${t} ${n}`}),onBuyClick:e.callback}}getBackgroundSrc(){const{videoItem:e}=this.props;return(0,ep.d)(e)}getBackgroundUrl(){const{videoItem:e,width:t}=this.props,n=(0,ep.d)(e),r=(0,Pv.Z)(n,{containerWidth:t,containerHeight:9*t/16});return(0,Iv.N)({url:n,width:r[0],height:r[1]})}render(){const{width:e,breakpoints:t,isButtonsShownOnHover:n,videoItem:r,showDuration:i,isLoading:s,isContentFocusable:a,dataHook:l,isRTL:c,useResponsiveThumbnail:u}=this.props,d=i&&r.durationSec?r.durationStr:"";return o().createElement(Ig,{breakpoints:t,width:e,useResponsiveThumbnail:u||t,videoTitle:r.title,isLoading:s,dataHook:l,onClick:this.handlePlayClick,overlayClassName:Cv,backgroundUrl:this.getBackgroundUrl(),backgroundSrc:this.getBackgroundSrc(),buttons:this.renderThumbnailButtons(),content:this.renderThumbnailContent(),duration:d,liveLabel:this.renderLiveLabel(),showButtonsOnHover:n,showLiveLabel:(0,Qr.mY)(r),isFocusable:a,ariaLabel:r.title,isRTL:c})}}));var Nv=n(26957),Av=n(62515);const xv=(0,r.createContext)(null),_v=e=>{let{children:t}=e;const{ref:n,width:r=0}=(0,Av.NB)();return o().createElement("div",{ref:n,style:{containerType:"inline-size",width:"100%"}},o().createElement(xv.Provider,{value:{widgetWidth:r}},t))};const Lv=[{max:639,width:560,height:315},{max:1279,width:592,height:333},{min:1280,width:608,height:342}],Rv={loadMore:Er.nR};class kv extends o().Component{constructor(){super(...arguments),qe()(this,"loadMore",(e=>{const{nextVideosCursor:t,isFetching:n,loadMore:r,category:o}=this.props;t&&!n&&r(e,{category:o})})),qe()(this,"renderThumbnailContent",(e=>{let{title:t,description:n,publisher:r,alignment:i,onClick:s}=e;const a=Ot()(zf,{[qf]:i===Mg.LEFT,[Gf]:i===Mg.CENTER,[$f]:i===Mg.RIGHT});return o().createElement("div",{className:a,onClick:s},r?o().createElement("div",{className:Xf},r):null,o().createElement(Xl.v,{text:t,className:Yf}),n?o().createElement(Xl.v,{text:n,className:Kf}):null)})),qe()(this,"renderItem",(e=>{const{videoByIds:t,channel:n,currentSiteUser:r,onPlayRequestedBi:i}=this.props,s=!e,a=s?{}:t[e];return o().createElement(Cf,{channelId:n.id,videoItem:a,onPlayRequestedBi:i,key:e,isResponsive:!0},o().createElement(Tv,{isLoading:s,videoItem:a,key:e,channelData:n,isContentFocusable:!0,currentSiteUser:r,breakpoints:Lv,renderThumbnailContent:this.renderThumbnailContent}))}))}render(){const{videoIds:e,itemsCount:t,isRTL:n,queryWidgetWidth:r,thumbnailSpacing:i}=this.props,s=r([{minWidth:640,className:Uf},{minWidth:1280,className:jf}]),a=r([{minWidth:640,className:Zf},{minWidth:1280,className:Wf}]);return o().createElement("div",{className:Bf},o().createElement(Mf,{items:e,itemsCount:t,renderItem:this.renderItem,arrowClassName:Ot()(Hf,a),itemClassName:Ot()(Ff,s),loadMore:this.loadMore,isRTL:n,itemsGap:i}))}}const Dv=(0,He.$j)((e=>({thumbnailSpacing:(0,Ze.A1)(e),nextVideosCursor:(0,ho.Lp)(e),isFetching:(0,ho.ab)(e),category:(0,So.n3)(e),isRTL:(0,Ze.dZ)(e)})),Rv)(function(e){return t=>{const{widgetWidth:n}=function(){const e=(0,r.useContext)(xv);if(null===e)throw new Error("WidgetWidthContext is null");return e}(),{isSSR:i}=(0,Nv.O)();return o().createElement(e,Yn()({queryWidgetWidth:e=>function(e,t,n){return n||CSS.supports("container-type","inline-size")?e.map((e=>{let{className:t}=e;return t})):e.filter((e=>{let{maxWidth:n=1/0,minWidth:r=0,className:o}=e;return t<=n&&t>=r})).map((e=>{let{className:t}=e;return t})).join(" ")}(e,n,i)},t))}}(kv)),Vv=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 29 48",fill:"currentColor",width:e||"1em",height:e||"1em",...t},r.createElement("defs",null,r.createElement("filter",{id:"shadow",x:"-10%",y:"-10%",width:"120%",height:"120%"},r.createElement("feOffset",{result:"offOut",in:"SourceAlpha"}),r.createElement("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"2"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"blurOut"})),r.createElement("path",{id:"arrow-left-path",d:"M7.771 33.77l27.598.079v1.917l-27.597-.08v.006h-2.07L5.697 6.155h2.069L7.77 33.77z",strokeWidth:"1"})),r.createElement("use",{stroke:"currentColor",fill:"currentColor",transform:"rotate(45 18.533 25.788)",filter:"url(#shadow)",fillRule:"evenodd",xlinkHref:"#arrow-left-path"}),r.createElement("use",{fill:"currentColor",stroke:"currentColor",transform:"rotate(45 18.533 25.788)",fillRule:"evenodd",xlinkHref:"#arrow-left-path"}));Vv.displayName="ArrowLeftShadyIcon";const Mv=Vv;var Bv=n(75621);const Fv="fTAW2B",Uv="DU96Fk",jv="pbLKQ3",Hv="eYz3Od",Zv="i0fmRb",Wv="KbCI9U",zv="Nh9uSi",qv="qNtLuc",Gv=e=>{let{onClick:t,className:n,direction:r,hidden:i,absolute:s,ariaLabel:a,showOnHover:l,dataHook:c,style:u}=e;return o().createElement("button",{"aria-label":a,"data-hook":c,className:Ot()(jv,n,{[Zv]:i,[Wv]:s,[Hv]:l,[zv]:"left"===r,[qv]:"right"===r}),style:u,onClick:t},s?o().createElement(Mv,{size:"30px"}):o().createElement(Bv.Z,{size:"30px"}))},$v=e=>{let{itemsGap:t=0,isRTL:n,items:i,itemsCount:s,renderItem:a,loadMore:l,a11y:c,navButtonStyle:u,navButtonClassName:d,navButtonsAbsolute:p,showArrowsOnHover:h,dataHook:m}=e;const{width:f=0,ref:g}=(0,Av.NB)({refreshMode:"debounce",refreshRate:300}),v=g.current,y=(e=>{if(!e)return[];const{children:t}=e;return[...t]})(v),[b,E]=(0,r.useState)(0),S=(e=>{let{children:t,scrollLeft:n,containerWidth:r,isRTL:o}=e;const i=Math.abs(n);let s=-1;for(let e=0;e<t.length;e++){const{offsetLeft:n,clientWidth:a}=t[e],l=(o?r-n-a:n)+a;if(-1===s&&l>i&&(s=e),l>=i+r)return e-s+1}return 0})({children:y,containerWidth:f,isRTL:n,scrollLeft:b}),C=(e=>{let{children:t,scrollLeft:n,containerWidth:r,isRTL:o}=e;const i=Math.abs(n);for(let e=0;e<t.length;e++){const{offsetLeft:n,clientWidth:s}=t[e],a=o?r-n-s:n;if(a+s>i+r&&a!==i)return e}return-1})({children:y,containerWidth:f,scrollLeft:b,isRTL:n}),w=(e=>{let{children:t,scrollLeft:n,containerWidth:r,isRTL:o,visibleCount:i}=e;const s=Math.abs(n);if(0===s)return-1;for(let e=0;e<t.length;e++){const{offsetLeft:n,clientWidth:a}=t[e];if((o?r-n-a:n)+a>s)return Math.max(e-i,0)}return 0})({children:y,scrollLeft:b,containerWidth:f,isRTL:n,visibleCount:S}),P=(0,oe.debounce)((e=>{E(e)}),300),I=e=>{if(!v)return;const t=v.children[e];if(t){const{offsetLeft:e,clientWidth:r}=t;if(n){const t=f-e-r;v.scrollLeft=-t}else v.scrollLeft=e}};return(0,r.useEffect)((()=>{const e=i.length,t=2*S;e!==s&&e-C<t&&l(t)}),[i,s,l,C,S]),o().createElement("div",{className:Fv,"data-hook":m},o().createElement(Gv,{dataHook:"css-slider-prev-button",onClick:()=>I(w),style:u,absolute:p,className:d,direction:n?"right":"left",hidden:0===b,ariaLabel:null==c?void 0:c.prevSlideMessage,showOnHover:h}),o().createElement("div",{"data-hook":"css-slider-slides","aria-label":null==c?void 0:c.containerMessage,className:Uv,style:{gap:t},ref:g,onScroll:e=>P(e.currentTarget.scrollLeft)},i.map((e=>o().createElement("div",{key:e},a(e))))),o().createElement(Gv,{dataHook:"css-slider-next-button",style:u,onClick:()=>I(C),absolute:p,className:d,direction:n?"left":"right",hidden:-1===C,ariaLabel:null==c?void 0:c.nextSlideMessage,showOnHover:h}))};var Yv=n(24972);const Kv="leK7F8",Xv="Iz3uO4",Qv="G8Qtqb",Jv="QPijdb",ey="xeQIMo",ty="P4q2QL";var ny=n(94405);class ry extends o().Component{componentDidMount(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("keydown",this.handleDocumentKeyPress,!1),window.addEventListener("blur",this.handleWindowBlur,!1)}componentWillUnmount(){document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("keydown",this.handleDocumentKeyPress,!1),window.removeEventListener("blur",this.handleWindowBlur,!1)}constructor(e){super(e),this.closingPromise=Promise.resolve(),this.handleWindowBlur=()=>{this.props.isOpen||this.setIsOpen(!1)},this.handleDocumentClick=e=>{this.containerRef&&(this.containerRef.contains(e.target)||this.state.isOpen&&this.setIsOpen(!1))},this.handleDocumentKeyPress=e=>{if(this.containerRef&&e.keyCode===Uo){if(this.containerRef.contains(e.target))return void this.setOpenFromKeyboard(!1);this.setIsOpen(!1)}},this.handleKeyDown=e=>{(0,oe.includes)([Wo,zo,Ho,Zo],e.keyCode)&&(e.preventDefault(),this.state.isOpen||this.setOpenFromKeyboard(!0))},this.setOpenFromKeyboard=e=>{this.setIsOpen(e,(()=>{e?this.contentRef&&this.props.focusContentOnOpen&&this.contentRef.childNodes[0].focus():this.openerRef&&this.openerRef.focus()}))},this.toggleOpen=e=>{"mousedown"===e.type&&0===e.button&&(e.preventDefault(),this.setIsOpen(!this.state.isOpen))},this.saveRef=e=>t=>this[e]=t,this.handleContentKeydown=e=>{(0,oe.includes)([Ho,Zo],e.keyCode)&&(e.preventDefault(),this.setOpenFromKeyboard(!1))},this.state={isOpen:e.isOpen,isClosing:!1}}UNSAFE_componentWillReceiveProps({isOpen:e}){e!==this.props.isOpen&&this.setIsOpen(e)}setIsOpen(e,t=oe.noop){this.closingPromise.then((()=>{this.setState({isClosing:!e}),e?this._setIsOpen(e,t):this.closingPromise=new Promise((e=>setTimeout(e,300))).then((()=>{this._setIsOpen(e,t)}))}))}_setIsOpen(e,t){this.setState({isOpen:e,isClosing:!1},t),this.props.onToggle(e)}render(){const{className:e,content:t,children:n,dataHook:r,isFocusable:i,ariaRole:s,ariaLabel:a,openerClassName:l,dropdownPosition:c}=this.props,{isOpen:u,isClosing:d}=this.state;return o().createElement("div",{ref:this.saveRef("containerRef"),"data-hook":"popover-container",className:Kv},o().createElement("div",{role:s,className:l,"aria-label":a,"aria-haspopup":"true","aria-expanded":u,ref:this.saveRef("openerRef"),onKeyDown:this.handleKeyDown,onMouseDown:this.toggleOpen,tabIndex:i?0:-1,"data-hook":r},n),o().Children.count(t)>0&&o().createElement(ny.t,{dataHook:"popover-content",className:zr()(Xv,e,{[ey]:u,[ty]:d,[Qv]:"left"===c,[Jv]:"right"===c})},o().createElement("div",{ref:this.saveRef("contentRef"),"aria-hidden":!u,onMouseDown:this.toggleOpen,onKeyDown:this.handleContentKeydown},u&&t)))}}ry.defaultProps={isFocusable:!0,onToggle:oe.noop,ariaRole:"button",dataHook:"open-popover",focusContentOnOpen:!0,isOpen:!1};var oy=n(5142);const iy="fj3QW1",sy="ydLpez",ay="wzIrXX",ly="zLYJMs",cy="jcCsdn",uy="fcfXG6";M().shape({label:M().string.isRequred,value:M().string.isRequred,className:M().string});class dy extends o().Component{constructor(e){super(e),this.handleOptionKeyDown=e=>t=>{if((0,oe.includes)([Ho,Zo],t.keyCode))return t.preventDefault(),void this.props.onChange(e);const{previousElementSibling:n,nextElementSibling:r}=t.target;zo===t.keyCode&&(t.preventDefault(),n&&n.focus()),Wo===t.keyCode&&(t.preventDefault(),r&&r.focus())},this.setValue=e=>()=>{this.props.onChange(e)},this.saveOptionsRef=e=>this.optionsRef=e,this.renderOption=(e,t)=>{const{optionClassName:n,selectedOptionClassName:r,selectedOption:i}=this.props,s=(0,oe.get)(i,"value")===e.value;return o().createElement("section",{key:t,className:zr()(n,{[r]:s}),role:"option","aria-selected":s,tabIndex:this.state.isOpen?0:-1,"data-selected":s,"data-hook":(0,oe.isUndefined)(t)?"":"dropdown-option",onKeyDown:this.handleOptionKeyDown(e),onMouseDown:this.setValue(e)},e.label)},this.setIsOpen=e=>{this.setState({isOpen:e},(()=>{const{selectedOption:t,options:n,onToggle:r}=this.props;if(this.optionsRef){const e=this.optionsRef.childNodes[(0,oe.findIndex)(n,{value:t.value})];e&&e.focus()}r(e)}))},this.state={isOpen:!1}}renderOptions(){const{optionsContainerClassName:e,options:t}=this.props;return o().createElement("div",{ref:this.saveOptionsRef,className:e},(0,oe.map)(t,this.renderOption))}render(){const{selectedOption:e,className:t,openerClassName:n,valueClassName:r,arrowClassName:i,popoverClassName:s,arrowIcon:a,dataHook:l,ariaLabel:c,placeholder:u,isOpen:d,isRTL:p}=this.props,h=zr()(iy,t,{[ay]:this.state.isOpen,[uy]:p,[ly]:!p}),m=zr()(cy,r),f=zr()(sy,i);return o().createElement(ry,{ariaRole:"combobox",isOpen:d,ariaLabel:c,className:s,openerClassName:n,focusContentOnOpen:!1,dataHook:l,onToggle:this.setIsOpen,content:this.renderOptions(),dropdownPosition:p?"left":"right"},o().createElement("div",{className:h},o().createElement("div",{"data-hook":"dropdown-value",className:m},e?e.label:u),o().createElement(jg.W,{className:f,icon:a})))}}dy.defaultProps={onChange:oe.noop,onToggle:oe.noop,arrowIcon:o().createElement(oy.Z,null),placeholder:"",dataHook:"dropdown-control"};var py=n(23144);const hy="AFOgzV",my="LRVQbb",fy="lFB2vZ",gy="rBzD6U",vy="nkU5jz",yy="ofKEwu",by="SNPkAT";var Ey=n(60901);const Sy={updateSearch:hr.GP,resetPlaybackStatus:Pt.UX,logBi:Nn.k,logWidgetSystem:Nn.e},Cy=(0,ln.Z)()((0,He.$j)((e=>({isOpen:(0,Ze.pC)(e),categoryOptions:[{label:(0,Ey.t)("widget.categories.all-videos"),value:""},...(0,Yv.hQ)(e)],selectedCategory:(0,So.n3)(e),isRTL:(0,Ze.dZ)(e)})),Sy)(class extends o().Component{constructor(){super(...arguments),qe()(this,"getOptionByValue",(e=>ie().find(this.props.categoryOptions,{value:e}))),qe()(this,"handleChange",(e=>{const{updateSearch:t,selectedCategory:n,resetPlaybackStatus:r}=this.props;n!==e.value&&(t({searchQuery:e.value,searchQueryField:py.O.CATEGORY}),r()),this.props.logWidgetSystem("videoList.searchByCategory.requested"),this.props.logBi("widget.categories.selected")})),qe()(this,"handleDropdownToggle",(e=>{e&&this.props.logBi("widget.categories.clicked")}))}render(){const{className:e,selectedCategory:t,categoryOptions:n,isOpen:r,isRTL:i}=this.props;return o().createElement("div",{className:e,"data-hook":"categories-dropdown"},o().createElement(dy,{options:n,isOpen:r,openerClassName:fy,valueClassName:Ot()(gy,{[vy]:!t}),ariaLabel:this.props.t("widget.accessibility.select-category"),arrowClassName:by,optionClassName:yy,optionsContainerClassName:my,popoverClassName:hy,onChange:this.handleChange,selectedOption:this.getOptionByValue(t),onToggle:this.handleDropdownToggle,isRTL:i}))}}));var wy=n(93881);const Py="VfCUCg",Iy="gjRSzR",Oy="MXTCxw";class Ty extends o().Component{constructor(){super(...arguments),qe()(this,"handleKeyDown",(e=>{if(ie().includes([Ho,Zo],e.keyCode))return e.preventDefault(),void this.props.onClick();const{previousElementSibling:t,nextElementSibling:n}=e.target;zo===e.keyCode&&(e.preventDefault(),t&&t.focus()),Wo===e.keyCode&&(e.preventDefault(),n&&n.focus())}))}render(){const{dataHook:e,onClick:t,children:n,icon:r,className:i}=this.props;return o().createElement("div",{"data-hook":e,role:"menuitem",onKeyDown:this.handleKeyDown,tabIndex:"0",className:Ot()(Py,i),onClick:t},o().createElement("span",{className:Iy},r),o().createElement("span",{className:Oy},n))}}const Ny="GfXhV3",Ay=e=>{let{children:t,dataHook:n,maxCharsCount:r}=e;return o().createElement("div",{"data-hook":n,className:Ny},(s=r,void 0===(i=t)&&(i=""),i.length<=s?i:`${i.slice(0,40)}...`));var i,s};Ay.defaultProps={maxCharsCount:40};const xy=Ay;var _y;function Ly(){return Ly=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},Ly.apply(this,arguments)}const Ry=function(e){return r.createElement("svg",Ly({xmlns:"http://www.w3.org/2000/svg",width:3,height:15,viewBox:"0 0 3 15"},e),_y||(_y=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.5 3a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 6a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 6a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})))};var ky;function Dy(){return Dy=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},Dy.apply(this,arguments)}const Vy=function(e){return r.createElement("svg",Dy({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16"},e),ky||(ky=r.createElement("g",{fill:"currentColor"},r.createElement("path",{d:"M8 2a3 3 0 0 0-3 3v1a3 3 0 1 0 6 0V5a3 3 0 0 0-3-3zm0-1a4 4 0 0 1 4 4v1a4 4 0 1 1-8 0V5a4 4 0 0 1 4-4z"}),r.createElement("path",{d:"M7.221 10h1.024-1.024zm1.8 0c3.742 0 4.975 1.729 4.975 5h1c0-2.577-.747-6-5.975-6h-1.8v1h1.8zm-.28 0h-.496.496zm-1.764 0c-3.701 0-4.975 1.769-4.975 5h-1c0-2.577.81-6 5.975-6h.244v1h-.244zm1.764 0H7.707h1.034zm-1.52 0h.486-.486zm1.8 0c3.742 0 4.975 1.729 4.975 5h1c0-2.577-.747-6-5.975-6h-1.8v1h1.8zm-2.044 0c-3.701 0-4.975 1.769-4.975 5h-1c0-2.577.81-6 5.975-6h.244v1h-.244z"}))))},My={popoverMenu:"sqBEsS",popoverMenuContainer:"x73CA1",container:"jMeJAh",title:"gTiTCQ",menu:"t5jSY3",menuButton:"VGXP_Y",menuEmpty:"_RXmXu",signIn:"FGP4_A",withSeparator:"tQvBry"},By={logBi:Nn.k,logOutCurrentMember:zu.tH},Fy=(0,ln.Z)()((0,He.$j)((e=>({isMenuOpen:(0,Ze.uP)(e)||(0,Ze.pC)(e),currentSiteUserEmail:(0,bt.v)(e),canShowChannelTitle:(0,Ze.R0)(e),canShowSignIn:(0,Ze.UW)(e),canShowChannelInfo:(0,Ze.jb)(e),canShowChannelShare:(0,Ze.Sd)(e),canShowSubscription:(0,wy.x)(e),canShowCancelSubscription:(0,wy.P)(e),isRTL:(0,Ze.dZ)(e)})),By)((0,xn.X)(class extends o().Component{constructor(){super(...arguments),qe()(this,"handleLogoutEvent",(()=>{this.props.logOutCurrentMember()})),qe()(this,"handlePopoverToggle",(e=>{e&&this.logMenuClickedBi()})),qe()(this,"logMenuClickedBi",(()=>{const{channel:e}=this.props;this.props.logBi("widget.menu.clicked",{channelID:e.id})})),qe()(this,"handleSubscribeRequest",(()=>{const{onSubscriptionRequest:e}=this.props;e()})),qe()(this,"handleChannelInfoRequest",(()=>{const{onInfoRequest:e,channel:t}=this.props;this.props.logBi("widget.aboutCh.clicked",{channelID:t.id}),e()}))}componentDidUpdate(e){(0,xn.A)(Vt.Z.SESSION.LOGOUT_USER,this.handleLogoutEvent,{prevProps:e,nextProps:this.props})}renderSubscribe(){const{channel:e}=this.props;return o().createElement(Ty,{onClick:this.handleSubscribeRequest,key:"channel-subscription",dataHook:"channel-subscription-button"},o().createElement(al,{dealInfo:e.dealInfo}))}renderSubscriptionCancel(){const{onCancelSubscriptionRequest:e}=this.props;return o().createElement(Ty,{onClick:e,key:"channel-subscription-cancel",dataHook:"channel-subscription-cancel"},this.props.t("widget.payments.cancel-subscription"))}renderShare(){return o().createElement(Ty,{onClick:this.props.onShareRequest,key:"channel-share",dataHook:"share-overlay-button"},this.props.t("widget.accessibility.share"))}renderSignIn(e){const{currentSiteUserEmail:t,onShowAccountInfoRequest:n,onLogInRequest:r,channel:i}=this.props,s=Ot()({[My.withSeparator]:e});if(t){const e=(0,no.vm)(i)?void 0:n;return o().createElement(Ty,{onClick:e,className:s,key:"channel-account-info",icon:o().createElement(Vy,{className:My.signIn}),dataHook:"channel-account-info"},t)}return o().createElement(Ty,{onClick:r,className:s,key:"channel-login",dataHook:"login-button"},this.props.t("widget.account.sign-in"))}renderChannelInfo(){return o().createElement(Ty,{onClick:this.handleChannelInfoRequest,key:"channel-info",dataHook:"channel-info-button"},this.props.t("widget.compact-view.components.action-bar.channel-info-tooltip"))}renderContent(){const{canShowSignIn:e,canShowChannelInfo:t,canShowChannelShare:n,canShowSubscription:r,canShowCancelSubscription:i}=this.props,s=ie().compact([r&&this.renderSubscribe(),i&&this.renderSubscriptionCancel(),n&&this.renderShare(),t&&this.renderChannelInfo()]),a=ie().compact([e&&this.renderSignIn(s.length),...s]);return ie().size(a)?o().createElement("div",{className:My.popoverMenuContainer},a):null}renderTitle(){const{canShowChannelTitle:e,channel:t}=this.props;return e?o().createElement("div",{className:My.title},o().createElement(xy,{dataHook:"channel-title"},t.title)):null}renderMenuWithTitle(e){const{channel:t,isRTL:n}=this.props;return o().createElement(ry,{ariaRole:"combobox",openerClassName:My.menuContainer,ariaLabel:t.title,isOpen:this.props.isMenuOpen,className:My.popoverMenu,content:e,onToggle:this.handlePopoverToggle,isRTL:n,dropdownPosition:n?"right":"left"},o().createElement("div",{"data-hook":"menu-button",className:My.menu},o().createElement(Ry,{className:My.menuButton}),this.renderTitle()))}render(){const e=this.renderContent();return o().createElement("div",{className:My.container,"data-hook":"channel-actions"},e?this.renderMenuWithTitle(e):this.renderTitle())}}))),Uy={container:"xc_kMR",responsive:"MVzrYf"};var jy;const Hy=(0,He.$j)((e=>({canShowActionBar:(0,nd.FE)(e),canShowChannelCategories:(0,Yv.C$)(e)})))((jy=class extends o().Component{renderChannelMenu(){const{channelData:e,onPageRefresh:t}=this.props;return o().createElement($u,{channelId:e.id,onPageRefresh:t},(t=>o().createElement(Fy,{channel:e,onLogInRequest:t.logIn,onShowAccountInfoRequest:t.showAccountInfo,onSubscriptionRequest:t.subscribe,onCancelSubscriptionRequest:t.cancelSubscription,onInfoRequest:t.showInfo,onShareRequest:t.showShare})))}render(){const{style:e,className:t,canShowChannelCategories:n,canShowActionBar:r,isResponsive:i}=this.props;return r?o().createElement("section",{"data-hook":"action-bar",className:Ot()(Uy.container,t,{[Uy.responsive]:i}),style:e},o().createElement("div",{className:Uy.menu},this.renderChannelMenu()),n&&o().createElement(Cy,{className:Uy.categories})):null}},qe()(jy,"defaultProps",{onPageRefresh:ie().noop}),jy)),Zy="_70Wt8",Wy="Xg7V2O",zy="FMMnZn",qy=(0,ln.Z)()((e=>{let{className:t,dataHook:n,message:r,onButtonClick:i,t:s}=e;return o().createElement("section",{"data-hook":n,tabIndex:"0",className:Ot()(Zy,t)},o().createElement("div",null,o().createElement("div",{className:Wy},r),o().createElement("button",{"data-hook":"reset-search-button",className:zy,onClick:i},s("widget.search.clear-search"))))})),Gy="LOADING",$y="READY";const Yy=new class{constructor(){qe()(this,"setLoaded",ie().debounce((()=>{this.status=$y,this.setStatusAttribute()}),300)),this.pending=["load"]}init(){this.root=document.getElementById("root"),this.status=Gy,this.setStatusAttribute(),window.addEventListener("load",(()=>this.setMarkerReady("load")),{once:!0})}setStatusAttribute(){this.root.setAttribute("data-loading-status",this.status)}addMarker(e){this.pending=ie().uniq([...this.pending,e])}setMarkerReady(e){this.pending=ie().reject(this.pending,(t=>e===t)),this.pending.length||this.setLoaded()}},Ky=(0,gt.P1)(Ze.CG,Ze.i3,((e,t)=>ie().clamp(e,t?24:0,100))),Xy=((0,gt.P1)(ft.js,Eo.g,bt.C,Ze.XM,((e,t,n,r)=>Boolean(t&&r&&(0,vt.$4)(e,t,n)))),"qPMmGE"),Qy="u5T_8F",Jy="Ui_uny",eb="HlW7T_",tb="pwQZhO",nb="_PwWpy",rb="GdM2Ug",ob="XX1XcE",ib=()=>{const{t:e}=(0,Kp.$)();return o().createElement("div",{className:ob},e("widget.this-channel-is-coming-soon"))},sb=31,ab=36,lb=52,cb={[Zr.P.SLIDER_SMALL]:"sliderSmall",[Zr.P.SLIDER_BIG]:"sliderBig"},ub={loadMore:Er.nR,loadMoreVideoPages:Er.OF,selectVideo:Dn.Uw,pauseVideo:Pt.r,resetSearch:hr.v2,requestPlayVideo:Fn.x,openFullScreenVideoOverlay:St.Ep,closeFullScreenVideoOverlay:St.xZ,logWidgetSystem:Nn.e,logWidgetVidClick:rd.s},db=(0,ln.Z)()((0,He.$j)(((e,t)=>{const n=(0,Eo.g)(e),r=(0,ho.Di)(e),o=(0,Ze.z3)(e),i=ie().get(n,"id"),s=(0,Ze.i3)(e),a=o===Zr.P.SLIDER_SMALL?320:672,l=a/16*9,c=((e,t)=>t?e>=700?lb:e>=400?ab:sb:0)(a,s);return{styleId:(0,An.Qp)(e),isEditorMode:We.ZJ(e),isResponsive:(0,Ze.LF)(e),channel:(0,ft.js)(e),channelLayout:o,layoutName:ie().get(cb,o,""),currentSiteUser:(0,bt.C)(e),mainVideo:n,mainVideoId:i,mainVideoIndex:ie().indexOf(r,i),videoIds:r,videoByIds:(0,Et.$u)(e),nextVideosCursor:(0,ho.Lp)(e),isFetching:(0,ho.ab)(e),isThumbnailsPreviewHover:(0,Ze.ok)(e),isNavAlwaysVisible:(0,Ze.R4)(e),isVideoPlaying:(0,mt.BW)(e),isVideoPaused:(0,mt.ah)(e),thumbnailSpacing:(0,Ze.A1)(e),containerMargins:(0,Ze.CG)(e),selectedCategory:(0,So.n3)(e),isInlineShareVisible:wf(e,t),isPlayInFrame:(0,Ze.XM)(e),showAutoPlay:(0,nd.IZ)(e),isRTL:(0,Ze.dZ)(e),isMobile:(0,Mt.tq)(e),isArrowsOutside:(0,Ze.i3)(e),sliderMargin:Ky(e),sliderWidth:t.windowSize.width,sliderPadding:c,itemWidth:a,thumbnailHeight:l}}),ub)(class extends o().Component{constructor(){var e;super(...arguments),e=this,qe()(this,"logVideoPlayRequested",(e=>{const{channel:t}=this.props;this.props.logWidgetVidClick({videoItem:e,channelData:t})})),qe()(this,"renderItem",(e=>{const{channel:t,videoByIds:n,currentSiteUser:r,itemWidth:i,mainVideo:s,thumbnailHeight:a}=this.props;if(!e)return null;const l=n[e],c=Ot()("video-list-thumb-wrapper",{"video-list-thumb-wrapper-selected":s.id===e});return o().createElement(Cf,{channelId:t.id,videoItem:l,onPlayRequestedBi:this.logVideoPlayRequested,key:e},o().createElement(Tv,{videoItem:l,key:e,dataHook:c,channelData:t,isContentFocusable:!0,currentSiteUser:r,width:i,textClassName:rb,breakpoints:[{min:0,width:i,height:a}]}))})),qe()(this,"getSliderAreaStyles",(()=>{const{sliderMargin:e,sliderPadding:t}=this.props;return{width:`calc(100% - ${2*(e+t)}px)`}})),qe()(this,"loadMoreItems",(e=>{const{loadMore:t,loadMoreVideoPages:n,selectedCategory:r,isFetching:o,nextVideosCursor:i}=this.props;Boolean(i&&!o)&&(r?n():t(e,{category:r}))})),qe()(this,"setCurrentVideoFromPayment",(function(t){let{itemId:n}=void 0===t?{}:t;n&&e.props.selectVideo(n)})),qe()(this,"playVideo",(e=>{let{id:t}=e;const{channel:n,requestPlayVideo:r,openFullScreenVideoOverlay:o,closeFullScreenVideoOverlay:i,isPlayInFrame:s,isPortableDevice:a}=this.props;s||a?r(t):o(n.id,t,!0,i)}))}componentDidMount(){Yy.setMarkerReady(this.props.channelLayout)}componentDidUpdate(){this.props.logWidgetSystem("videoList.searchByCategory.rendered",{previousEventName:"videoList.searchByCategory.requested"})}getPublishedChannelItemsCount(){const{channel:e,videoIds:t,nextVideosCursor:n}=this.props;return!n&&t.length?t.length:e.videosCount}getMaxItemsCount(){const{videoIds:e,selectedCategory:t,nextVideosCursor:n,sliderWidth:r,itemWidth:o}=this.props,i=Math.ceil(r/o);return t&&n?Math.max(e.length+(n?1:0),i):this.getPublishedChannelItemsCount()}renderSlider(){const{channel:e,videoIds:t,isArrowsOutside:n,isNavAlwaysVisible:r,thumbnailSpacing:i,isRTL:s,thumbnailHeight:a}=this.props;return o().createElement($v,{dataHook:"css-slider",items:t,itemsCount:this.getMaxItemsCount(),renderItem:this.renderItem,loadMore:this.loadMoreItems,isRTL:s,itemsGap:i,a11y:{containerMessage:this.props.t("widget.accessibility.channel-videos",{channelTitle:e.title}),prevSlideMessage:this.props.t("widget.accessibility.prev-videos"),nextSlideMessage:this.props.t("widget.accessibility.next-videos")},navButtonStyle:{height:a,width:55},navButtonClassName:Ot()({[nb]:n}),navButtonsAbsolute:!n,showArrowsOnHover:!r})}renderEmptyState(){return o().createElement("div",{"data-hook":"slider-empty",style:this.getSliderAreaStyles(),className:eb},!this.props.isFetching&&o().createElement("div",{className:tb},this.props.t("widget.this-channel-is-coming-soon")))}renderContent(){const{mainVideo:e,selectedCategory:t,nextVideosCursor:n,videoIds:r,isFetching:o}=this.props;return o||!t||n||r.length?e?this.renderSlider():this.renderEmptyState():this.renderEmptySearchState(this.props.t("widget.categories.no-videos-in-category"))}renderEmptySearchState(e){return o().createElement("div",{style:this.getSliderAreaStyles()},o().createElement(qy,{dataHook:"slider-empty-search-results",message:e,onButtonClick:this.props.resetSearch}))}renderActions(){const{isArrowsOutside:e,channel:t,isResponsive:n,videoIds:r,isFetching:i}=this.props,s=n?null:{margin:e?"0 55px":0};return!n||r.length||i?o().createElement(Hy,{onPageRefresh:ie().noop,style:s,channelData:t,isResponsive:n}):null}renderSliderContent(){const{selectedCategory:e}=this.props;return o().createElement("section",{key:`slider-${e}`,"data-hook":"slider-container"},this.renderContent())}renderResponsiveSliderContent(){const{videoIds:e,videoByIds:t,channel:n,currentSiteUser:r,isFetching:i}=this.props;return i||e.length?o().createElement(Dv,{videoIds:e,videoByIds:t,itemsCount:this.getMaxItemsCount(),channel:n,currentSiteUser:r,onPlayRequestedBi:this.logVideoPlayRequested}):o().createElement("div",null,o().createElement(ib,null))}render(){const{itemWidth:e,channel:t,layoutName:n,isVideoPlaying:r,mainVideoId:i,isResponsive:s}=this.props;return o().createElement("main",{className:Ot()(Xy,{[Qy]:s}),"data-thumbnail-min-width":Pg(e),"data-hook":"widget-container","data-channel-layout":n,"aria-label":this.props.t("widget.accessibility.channel-videos-widget",{channelTitle:t.title}),tabIndex:"0"},o().createElement("div",{className:Jy},this.renderActions()),s?this.renderResponsiveSliderContent():this.renderSliderContent(),o().createElement(Of,{itemWidth:e}),o().createElement(_r.Z,{onRent:this.setCurrentVideoFromPayment,onSale:this.setCurrentVideoFromPayment}),o().createElement(Zu,{playVideo:this.playVideo,isVideoPlaying:r,selectedVideoId:i}),o().createElement(Iu,null))}})),pb=(0,or.F)((0,Ur.yT)(db)),hb=ie().flow(cr)(pb),mb="_9Mk0v",fb="dJVNcL",gb="nAm6oZ",vb="i4NLoc",yb="pm1sNI",bb="KZzYPG",Eb="NgJ89A",Sb="dxlWs2",Cb=(0,He.$j)((e=>({channelData:(0,ft.js)(e),mainVideo:(0,Eo.g)(e),isPlayInFrame:(0,Ze.XM)(e),isVideoPlaying:(0,mt.BW)(e)})))(class extends o().Component{render(){const{channelData:e,isPlayInFrame:t,isVideoPlaying:n,mainVideo:r,width:i,height:s,PlayerComponent:a,isPortableDevice:l,fillAllSpace:c,onPlayStart:u}=this.props;if(!a)return null;const d={videoItem:r,channelData:e,width:i,height:s,paused:!n,fillAllSpace:c,onPlayStart:u},p={channelId:e.id,videoId:r.id};return l||t?o().createElement(Po,null,(e=>{let{canShowVideoInfoButton:t,canShowShareButton:n}=e;return o().createElement(df,p,o().createElement(a,Yn()({},d,{showPoster:!1,showInitialOverlay:!1,canShowFullInfo:t,canShareVideo:n})))})):null}});var wb=n(54994);const Pb="M4MvHK",Ib="bCmoZB",Ob="pLbLYE",Tb="IixSeg",Nb="jcWlHO",Ab="lrQ7rV";var xb;const _b=(0,He.$j)((e=>({isRounded:(0,Ze.as)(e),isLink:(0,Ze.Ns)(e),isThumbnailsHaveContentBelow:(0,Ze.vr)(e)})))((xb=class extends o().Component{getClassName(){const{isLink:e,isRounded:t}=this.props;return e?Nb:t?Tb:null}render(){const{isThumbnailsHaveContentBelow:e,isLoading:t,children:n,onClick:r,ariaLabel:i,dataHook:s}=this.props,a=Ot()(Ob,this.getClassName(),{[Ab]:t});return o().createElement("div",{className:Ot()(Pb,{[Ib]:e})},o().createElement("button",{"aria-label":i,"data-hook":s,tabIndex:"0",onClick:r,className:a},n))}},qe()(xb,"defaultProps",{isLink:!1}),xb)),Lb="icGn0v",Rb="Yu19Bc",kb="VaiN8d",Db="d0AljU",Vb=()=>o().createElement("div",{className:Lb,"data-hook":"balls-loader"},o().createElement("div",{className:Rb}),o().createElement("div",{className:kb}),o().createElement("div",{className:Db}));var Mb=n(65911);var Bb=n(38581);const Fb={selectVideo:Dn.Uw,loadMoreVideoPages:Er.OF,resetSearch:hr.v2,requestPlayVideo:Fn.x,openFullScreenVideoOverlay:St.Ep,closeFullScreenVideoOverlay:St.xZ,logWidgetSystem:Nn.e,logWidgetVidClick:rd.s},Ub=(0,ln.Z)()((0,He.$j)(((e,t)=>{let{windowSize:n}=t;return{windowSize:n,styleId:(0,An.Qp)(e),isEditorMode:We.ZJ(e),channel:(0,ft.js)(e),currentSiteUser:(0,bt.C)(e),mainVideo:(0,Eo.g)(e),mainVideoId:(0,kn.hg)(e),isFetching:(0,ho.ab)(e),itemWidth:(0,wb.IJ)(e,n.width),isVideoPlaying:(0,mt.BW)(e),numberOfRows:(0,Ze.bm)(e),videosInRow:(0,wb.zS)(e,n.width),gridColumns:(0,Ze.I2)(e),isFullWidth:(0,Ze.Yj)(e),containerMargins:(0,Ze.CG)(e),rowSpacing:(0,wb.yZ)(e),thumbnailSpacing:(0,Ze.A1)(e),hasMoreVideos:(0,ho.Lp)(e),isPlayInFrame:(0,Ze.XM)(e),selectedCategory:(0,So.n3)(e),showAutoPlay:(0,nd.IZ)(e),isPlayerActive:(0,nd.Bp)(e),isMobile:(0,Mt.tq)(e)}}),Fb)(class extends o().Component{constructor(e){var t;super(e),t=this,qe()(this,"reset",(e=>{let{editMode:t}=e;const{numberOfRows:n,mainVideoId:r}=this.props;this.state.numberOfRows!==n&&this.setState({numberOfRows:n}),this.playerContainerRef&&this.playerRef&&t===Eu.n.EDITOR&&this.playerContainerRef.appendChild(this.playerRef),t===Eu.n.PREVIEW&&this.attachPlayerToSelectedThumbnail(r)})),qe()(this,"setCurrentVideoFromPayment",(function(e){let{itemId:n}=void 0===e?{}:e;n&&t.props.selectVideo(n)})),qe()(this,"finishFedopsInteraction",(()=>{ph(this.props.interactions,{source:this.props.mainVideo.videoSource,layout:"grid"})})),qe()(this,"startAutoPlayFedopsInteraction",(e=>{dh(this.props.interactions,{source:e.videoSource,layout:"grid",trigger:"auto"})})),qe()(this,"logVideoPlayRequested",(e=>{const{channel:t,logWidgetVidClick:n,isPlayInFrame:r,interactions:o}=this.props;r&&dh(o,{source:e.videoSource,layout:"grid",trigger:"click"}),n({videoItem:e,channelData:t})})),qe()(this,"saveThumbnailRef",((e,t)=>{this.thumbnailRefs[e]=t,e===this.props.mainVideoId&&this.attachPlayerToSelectedThumbnail(this.props.mainVideoId)})),qe()(this,"renderThumbnail",(e=>{const{channel:t,isSearching:n,videoByIds:r,currentSiteUser:i,itemWidth:s,rowSpacing:a,thumbnailSpacing:l}=this.props,c=r[e];return c?o().createElement("div",{style:{marginTop:a,marginLeft:l},key:e,ref:(0,$t.r)(this.saveThumbnailRef,e),className:bb},o().createElement(Cf,{channelId:t.id,videoItem:c,onPlayRequestedBi:this.logVideoPlayRequested},o().createElement(Tv,{videoItem:c,isLoading:n,dataHook:"video-list-thumb-wrapper",channelData:t,currentSiteUser:i,width:s,isContentFocusable:!0,breakpoints:[{min:0,width:s,height:s/1.7777777777777777}]}))):o().createElement("div",{key:e,style:{width:s}})})),qe()(this,"loadMoreVideos",(()=>{const{loadMoreVideoPages:e,hasMoreVideos:t,numberOfRows:n,isFetching:r}=this.props;if(r)return;this.props.logWidgetSystem("videoList.loadMore.requested");(t?e():Promise.resolve()).then((()=>{this.setState({numberOfRows:ie().clamp(this.state.numberOfRows+n,1,this.getNumberOfRows())}),this.props.logWidgetSystem("videoList.loadMore.rendered")}))})),qe()(this,"saveContainerRef",(e=>{this.containerRef=e})),qe()(this,"playVideo",(e=>{let{id:t}=e;const{channel:n,requestPlayVideo:r,openFullScreenVideoOverlay:o,closeFullScreenVideoOverlay:i,isPlayInFrame:s,isPortableDevice:a}=this.props;s||a?r(t):o(n.id,t,!0,i)})),qe()(this,"resetSearch",(()=>{const{resetSearch:e,numberOfRows:t}=this.props;this.setState({numberOfRows:t}),e()})),qe()(this,"savePlayerContainerRef",(e=>{this.playerContainerRef=e})),qe()(this,"savePlayerRef",(e=>{this.playerRef=e})),this.state={numberOfRows:e.numberOfRows},this.forcedWidth=0,this.thumbnailRefs={},this.playerRef=null,this.playerContainerRef=null}componentDidMount(){this.attachPlayerToSelectedThumbnail(this.props.mainVideoId)}UNSAFE_componentWillReceiveProps(e){let{numberOfRows:t,isFullWidth:n,mainVideoId:r}=e;t!==this.props.numberOfRows&&this.setState({numberOfRows:t}),n===this.props.isFullWidth||n||(this.forcedWidth=co.Nf),r!==this.props.mainVideoId&&this.attachPlayerToSelectedThumbnail(r)}componentDidUpdate(){this.forcedWidth&&this.props.windowSize.width===co.Nf&&(this.forcedWidth=0)}attachPlayerToSelectedThumbnail(e){const t=this.thumbnailRefs[e];t&&this.playerRef&&(t.contains(this.playerRef)||t.appendChild(this.playerRef))}renderGridContent(){const{mainVideo:e,isFetching:t,selectedCategory:n,hasMoreVideos:r,videoIds:o}=this.props;return t||!n||r||o.length?e?this.renderThumbnailsCSSGrid():this.renderEmptyState():this.renderEmptySearchState(this.props.t("widget.categories.no-videos-in-category"))}getContentAriaLabel(){const{videoIds:e,selectedCategory:t,hasMoreVideos:n}=this.props,r={videosCount:e.length},o=n?this.props.t("widget.a11y.grid.more-videos-available"):"";return[t?this.props.t("widget.a11y.grid.videos-for-category",{...r,category:t}):this.props.t("widget.a11y.grid.videos",r),o].join(" ")}renderThumbnailsCSSGrid(){const{videoIds:e,videosInRow:t,rowSpacing:n,thumbnailSpacing:r,styleId:i}=this.props,{numberOfRows:s}=this.state,a=ie().range(0,s*t),l=ie()(a).map((e=>`fake-item-${e}`)).assign(e).value(),c=Math.ceil(e.length/t),u=ie().clamp(s,1,c);return o().createElement(o().Fragment,null,o().createElement("div",{"data-hook":"grid-content",tabIndex:"0","aria-label":this.getContentAriaLabel(),className:gb},o().createElement(jl,{styleId:i,gridId:"grid-layout-items",style:{gridAutoRows:0,overflowY:"hidden",marginTop:-n,marginLeft:-r},rows:u,cols:t,minItemWidth:Bb.i[0]},ie().map(l,this.renderThumbnail))))}renderEmptyState(){return o().createElement("div",{"data-hook":"grid-empty",className:vb},!this.props.isFetching&&o().createElement("div",{className:yb},this.props.t("widget.this-channel-is-coming-soon")))}renderActions(){const{channel:e}=this.props;return o().createElement(Hy,{channelData:e,className:fb})}renderLoadMoreButton(){const{isFetching:e}=this.props;return o().createElement(_b,{dataHook:"load-more-button",isLoading:e,onClick:this.loadMoreVideos,ariaLabel:this.props.t("widget.load-more")},e?o().createElement(Vb,null):this.props.t("widget.load-more"))}shouldDisplayLoadMoreButton(){const{hasMoreVideos:e}=this.props;return e||this.state.numberOfRows<this.getNumberOfRows()}getNumberOfRows(){const{videoIds:e,videosInRow:t}=this.props;return Math.ceil(e.length/t)}renderEmptySearchState(e){return o().createElement(qy,{className:vb,dataHook:"grid-empty-search-results",message:e,onButtonClick:this.resetSearch})}renderPlayer(){const{channel:e,mainVideo:t,isPlayerActive:n,showAutoPlay:r,PlayerComponent:i}=this.props;return t?o().createElement("div",{"data-hook":"player-wrapper",ref:this.savePlayerRef,className:Ot()(Eb,{[Sb]:n})},o().createElement(eh,null,o().createElement(Cb,{PlayerComponent:i,fillAllSpace:!0,onPlayStart:this.finishFedopsInteraction}),o().createElement(od.Z,{key:e.id,channelData:e,videoItem:t})),r&&o().createElement(Ap,{dataHook:"autoplay-video",onAutoPlayRequested:this.startAutoPlayFedopsInteraction})):null}render(){const{channel:e,isFullWidth:t,containerMargins:n,itemWidth:r,mainVideoId:i,isVideoPlaying:s,isSearching:a,videoIds:l,isPlayInFrame:c}=this.props,u=t?n:Mb.m,d={padding:`32px ${u}px`,minWidth:`${this.forcedWidth||r+2*u}px`,minHeight:a||!l.length?"100vh":"unset"};return o().createElement("main",{className:mb,style:d,"data-thumbnail-min-width":Pg(r),"data-hook":"widget-container","data-channel-layout":"grid",ref:this.saveContainerRef,"aria-label":this.props.t("widget.accessibility.channel-videos-widget",{channelTitle:e.title}),tabIndex:"0"},c&&o().createElement("div",{ref:this.savePlayerContainerRef,style:{display:"none"}},this.renderPlayer()),this.renderActions(),this.renderGridContent(),this.shouldDisplayLoadMoreButton()&&this.renderLoadMoreButton(),o().createElement(Of,{itemWidth:r}),o().createElement(_r.Z,{onRent:this.setCurrentVideoFromPayment,onSale:this.setCurrentVideoFromPayment}),o().createElement(Iu,null),o().createElement(Zu,{playVideo:this.playVideo,isVideoPlaying:s,selectedVideoId:i}),o().createElement(br,{onChange:this.reset}))}})),jb=ch((0,Ur.yT)(Ub)),Hb=cr((Zb=jb,(0,He.$j)((e=>({videoIds:(0,ho.Di)(e),videoByIds:(0,Et.$u)(e),isSearching:(0,So.rH)(e)})))(class extends o().Component{constructor(e){super(e),this.state={prevVideoIds:e.videoIds,prevVideoByIds:e.videoByIds}}UNSAFE_componentWillReceiveProps(e){let{videoIds:t,videoByIds:n}=e;this.props.videoIds.length!==t.length&&this.props.videoIds.length&&this.setState({prevVideoIds:this.props.videoIds}),ie().isEqual(n,this.state.prevVideoByIds)||this.setState({prevVideoByIds:n})}getVideoByIds(){const{isSearching:e,videoByIds:t}=this.props;return e?this.state.prevVideoByIds:t}getVideoIds(){const{isSearching:e,videoIds:t}=this.props;return e?this.state.prevVideoIds:t}render(){return o().createElement(Zb,Yn()({},this.props,{videoByIds:this.getVideoByIds(),videoIds:this.getVideoIds()}))}})));var Zb;const Wb={[Zr.P.STRIP]:ed,[Zr.P.CLASSIC]:yh,[Zr.P.COMPACT]:yf,[Zr.P.SLIDER_SMALL]:hb,[Zr.P.SLIDER_BIG]:hb,[Zr.P.GRID]:Hb};const zb=(0,He.$j)((e=>({appSettings:e.appSettings,isResponsiveEditor:(0,Ze.LF)(e),isEditorMode:(0,We.ZJ)(e)})))((e=>{const t=function(e){return ie().get(e.appSettings,"numbers.channelLayout")}(e),n=(r=t,e.isResponsiveEditor?hb:Wb[r]);var r;return o().createElement(Hr,null,o().createElement(n,null))})),qb=(0,He.$j)((e=>({isRTL:(0,Ze.dZ)(e)})))(class extends o().Component{render(){const{isRTL:e,children:t}=this.props,n=e?"rtl":"ltr";return o().createElement("div",{"data-hook":"wix-vod-widget-direction-container",dir:n},t)}});var Gb=n(37800);const $b=n(14078).Z;var Yb=n(25977),Kb=n(17887),Xb=n(24791);function Qb(){return o().useContext(B)}var Jb=n(44910);var eE;const tE=(eE={channelId:{type:j.String,getDefaultValue:()=>"a1ca9dac-7ee4-4d52-a418-68329471105b"},videoId:{type:j.String,getDefaultValue:()=>""},useIdsFromSettings:{type:j.Boolean,getDefaultValue:()=>!1}},Object.keys(eE).reduce((function(e,t){return e[t]=(0,f.__assign)((0,f.__assign)({},eE[t]),{key:eE[t].key||t}),e}),{}));var nE=n(34423),rE=n(94188),oE=n(81330);function iE(e,t,n){return e||t?{channelId:t?n:(0,rE.n8)(e),videoId:(0,rE.n8)(t)}:{channelId:oE.$,videoId:""}}function sE(){const e=Qb(),t=(0,Jb.y)(),n=(0,He.v9)(An.hx),o=e.get(tE.useIdsFromSettings),i=function(e,t,n){let r="",o="";return"string"==typeof e&&(r=e),"string"==typeof t&&(o=t),iE(r,o,n)}(t.get(nE.default.channelId),t.get(nE.default.videoId),n),s=function(e,t,n){return iE(e,t,n)}(e.get(tE.channelId),e.get(tE.videoId),n);return function(e,t){const{Wix:n}=(0,Yb.a)(),{isEditor:o}=(0,Nv.O)(),i=Qb(),s=(0,Kb.YA)(),a=i.get(tE.useIdsFromSettings),l=(0,r.useCallback)(((e,t)=>new Promise(((r,o)=>{n&&n.Data.Public.set(e.key,t,{scope:n.Data.SCOPE.COMPONENT},(()=>r(null)),(()=>o(new Error(`Failed to set ${e.key}`))))}))),[n]),c=(0,r.useCallback)((async()=>{try{await l(tE.channelId,e),await l(tE.videoId,t),await l(tE.useIdsFromSettings,!0),s.report((0,Xb.ggS)({}))}catch(e){}}),[l,e,t,s]);(0,r.useEffect)((()=>{o&&!a&&c()}),[o,c,a])}(i.channelId,i.videoId),o?s:i}function aE(){const e=(0,Jb.y)().get(nE.default.channelLayout),{isEditorX:t,isMobile:n}=(0,Nv.O)(),o=function(){const e=location.search;return(0,r.useMemo)((()=>"studio"===new URLSearchParams(e).get("origin")),[e])}();return n?{min:nh.xP,max:1/0}:t||o?null:e===Zr.P.CLASSIC?{min:co._D,max:co.Nf}:e===Zr.P.COMPACT?{min:400,max:980}:e===Zr.P.GRID?{min:2*Mb.m+Bb.i[0],max:1/0}:null}const lE=e=>{let{children:t}=e;const{Wix:n}=(0,Yb.a)(),{dimensions:i}=(0,Nv.O)(),s=aE(),a=(0,r.useCallback)((async()=>new Promise((e=>{n&&n.Settings.isFullWidth((t=>e(t)))}))),[n]);return(0,r.useEffect)((()=>{a().then((e=>{if(e||!n||!s)return;const{min:t,max:r}=s,o=Math.max(Math.min(i.width,r),t);o!==i.width&&n.resizeComponent({width:o,height:0})}))}),[n,i,a,s]),o().createElement(o().Fragment,null,t)},cE=e=>{let{children:t}=e;const{isEditor:n}=(0,Nv.O)();return o().createElement(o().Fragment,null,t,n?o().createElement(lE,null):null)};const uE=(0,Gb._)({createStore:$b,Component:function(){return function(){const{isEditor:e}=(0,Nv.O)(),{channelId:t,videoId:n}=sE(),o=(0,He.v9)(Bn.gO),i=(0,He.v9)(Sr.bb);(0,r.useLayoutEffect)((()=>{e&&(t===o&&n===i||window.location.reload())}),[e,t,n,o,i])}(),function(){const{isSSR:e}=(0,Nv.O)();(0,r.useLayoutEffect)((()=>{if(e)return;const t=document.createElement("link");t.rel="stylesheet",t.href="https://static.parastorage.com/unpkg/@wix/wix-fonts@1.14.0/madefor.min.css",document.head.appendChild(t)}),[e])}(),o().createElement(Ur.GT,null,o().createElement(cE,null,o().createElement(_v,null,o().createElement(qb,null,o().createElement(zb,null)))))}});var dE=n(87939),pE=n(5297);const hE="blxBGu",mE="PE6o9t",fE="KKJtfB",gE="YRaaMr",vE=(0,ln.Z)()((0,He.$j)((e=>({showVideoShare:(0,wo.r)(e)})))(class extends o().Component{renderShareButton(){const{channelData:e,videoItem:t,sharePopupTopPositon:n}=this.props;return o().createElement(qc.Z,{videoItem:t,channelData:e,top:n},o().createElement(tn.Qj,{dataHook:"share-video-item-action",className:fE,ariaLabel:this.props.t("widget.accessibility.share")},o().createElement(pE.Z,null)))}renderCloseButton(){const{onCloseClick:e}=this.props;return o().createElement(dE.P,{onClick:e,dataHook:"close-video-player-action",theme:"light",className:mE,ariaLabel:this.props.t("widget.compact-view.components.action-bar.close")})}render(){const{className:e,showVideoShare:t}=this.props;return o().createElement("div",{className:Ot()(e,hE),"data-hook":"player-actions-strip"},t&&this.renderShareButton(),t&&o().createElement("div",{className:gE},"|"),this.renderCloseButton())}})),yE={"main-ui":"UtF6CG",mainUi:"UtF6CG","player-with-actions":"hDQOLU",playerWithActions:"hDQOLU","cover-on":"euCFSc",coverOn:"euCFSc",player:"kAmX64","action-strip":"EtnNMI",actionStrip:"EtnNMI","main-cover-overlay":"nwc2FH",mainCoverOverlay:"nwc2FH",visible:"n36Q7M","navigation-dots":"lLQyem",navigationDots:"lLQyem","top-menu-area":"HKKqxC",topMenuArea:"HKKqxC","slide-menu-icon-wrapper":"t5MF_H",slideMenuIconWrapper:"t5MF_H","slide-menu-icon":"vLv7qR",slideMenuIcon:"vLv7qR",subscribe:"_hsLLc"};var bE=n(69514);const EE=(e,t)=>t.videoItem,SE=(e,t)=>ie().get(t,"videoItem.title"),CE=(0,gt.P1)([ft.js],(e=>e.title)),wE=(0,gt.P1)([ft.js,(e,t)=>ie().get(t,"videoItem.id"),(e,t)=>t.isFirstVideo],((e,t,n)=>ie().get(e,"featuredItem")===t||n)),PE=(0,gt.P1)([e=>e.isVideosTouched,wE,Ze.BH],((e,t,n)=>!n&&!e&&t)),IE=(0,gt.P1)([Ze.GR,PE,EE],((e,t,n)=>!n||(0,bu._S)(e,t))),OE=(0,gt.P1)(IE,Ze.v3,Ze.ZG,((e,t,n)=>e&&(t||n))),TE=(0,gt.P1)(IE,Ze.R0,CE,SE,((e,t,n,r)=>e&&t?n:r)),NE=(0,gt.P1)(IE,Ze.R0,Ze.Um,CE,SE,((e,t,n,r,o)=>t?r:n&&!e?o:"")),AE=(0,gt.P1)(Ze.m8,OE,NE,TE,((e,t,n,r)=>e||t?t?n:r:"")),xE=(0,gt.P1)([ft.js,EE,IE],(function(e,t,n){void 0===t&&(t={});const{customCoverUrl:r,coverUrl:o}=t,i=r||o;return n&&(e.customCoverUrl||e.coverUrl)||i}));var _E=n(18753);const LE={[vt.FE.BUY]:"widget.overlay-buttons.buy",[vt.FE.RENT]:"widget.overlay-buttons.rent",[vt.FE.BUY_OR_RENT]:"widget.overlay-buttons.buy-from-small",[vt.FE.SUBSCRIBE]:"widget.overlay-buttons.get-subscription-small",[vt.FE.PRICING_PLAN]:"widget.mobile.overlay-button.subscribe.short"};var RE=n(55818),kE=n(92298);const DE=(e,t)=>t.videoItem,VE=(0,gt.P1)([ft.js,DE,bt.C,(e,t)=>t.isChannelCoverView],((e,t,n,r)=>{const o=(0,vt.TK)(e,t,n);if(o===vt.ds.LIVE_STREAMING)return"widget.overlay-buttons.watch-live";if(o===vt.ds.FULL)return r?"widget.overlay-buttons.start-watching":"widget.overlay-buttons.play-video";if(o===vt.ds.TRAILER)return"widget.overlay-buttons.trailer";if(o===vt.ds.FIRST_20_SEC)return"shared.preview";return(0,vt.D$)(e,t,n)===vt.FE.SIGN_IN?(0,Qr.mY)(t)?"widget.overlay-buttons.watch-live":r?"widget.overlay-buttons.start-watching":"widget.overlay-buttons.play-video":null})),ME=(0,gt.P1)([ft.js,DE,bt.C,(e,t)=>t.onMemberSignUp,(e,t)=>t.onPlayRequestedAllowed,(e,t)=>t.onPlayRequestedDisallowed],((e,t,n,r,o,i)=>(0,vt.D$)(e,t,n)===vt.FE.SIGN_IN?r:(0,vt.$4)(e,t,n)?o:i)),BE=(0,gt.P1)([ft.js,DE],((e,t)=>(0,RE.Z)({channel:e,video:t}))),FE=(0,gt.P1)([ft.js,DE,Ze.BH],((e,t,n)=>(0,kE.Z)({channel:e,video:t,translations:LE,isVerticalLayoutMobile:n}))),UE=(0,ln.Z)()((0,He.$j)(((e,t)=>({text:VE(e,t),action:ME(e,t),isTextShown:(0,Ze.jc)(e),isPlaybackModuleLoaded:e.modules.playbackModuleLoaded})))((0,_E.A)(class extends o().Component{constructor(){super(...arguments),qe()(this,"handleClick",(()=>{const{action:e,isPlaybackModuleLoaded:t,errorMonitor:n}=this.props;t?e():n.captureMessage("Play button clicked: The playback module has not been loaded yet.")}))}render(){const{text:e,className:t,icon:n,isTextShown:r}=this.props;return e?o().createElement("div",{"data-hook":"overlay-play-button",role:"button","aria-label":this.props.t(e),onClick:this.handleClick,className:t},n,o().createElement("span",null,r&&this.props.t(e))):null}}))),jE="Nb4lkN",HE=(0,He.$j)(((e,t)=>({text:FE(e,t),isTextShown:(0,Ze.jc)(e),channel:(0,ft.js)(e)})))(class extends o().Component{render(){const{text:e,onClick:t,iconClassName:n,className:r,isTextShown:i,videoItem:s,channel:a}=this.props,l=ip(s,a);return e?o().createElement("div",{"data-hook":"paid-access-button",className:r,onClick:t},o().createElement("div",{className:Ot()(jE,n)},o().createElement(Od,{currency:l})),i&&e):null}}),ZE="uwzQn8",WE="eswX9O",zE="N7UFIO",qE=(0,ln.Z)()(class extends o().Component{render(){const{title:e}=this.props;return o().createElement("div",{className:ZE,"data-hook":"no-videos-overlay"},o().createElement("div",null,o().createElement("div",{className:WE},e),o().createElement("div",{className:zE},this.props.t("widget.overlay-buttons.coming-soon"))))}});var GE;function $E(){return $E=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},$E.apply(this,arguments)}const YE=function(e){return r.createElement("svg",$E({xmlns:"http://www.w3.org/2000/svg",width:25,height:25,viewBox:"0 0 24 24"},e),GE||(GE=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{stroke:"#FFF",d:"M12 23.5c6.351 0 11.5-5.149 11.5-11.5S18.351.5 12 .5c-1.216 0-2.406.189-3.539.555A11.504 11.504 0 0 0 .5 12c0 6.351 5.149 11.5 11.5 11.5z"}),r.createElement("path",{fill:"#FFF",d:"M15.957 11.805 9.08 15.827V7.784z"}))))},KE={overlay:"zgXpph","central-area":"wCjDtL",centralArea:"wCjDtL",title:"Xsju_d","with-video":"kMl9ez",withVideo:"kMl9ez","central-buttons":"JwTUxq",centralButtons:"JwTUxq","central-button":"YQMsU6",centralButton:"YQMsU6",icon:"JlTAa6","with-text":"scPU2Z",withText:"scPU2Z","no-title":"VfOadM",noTitle:"VfOadM",labels:"h53uGJ","live-scheduled-label":"L_YH6V",liveScheduledLabel:"L_YH6V"},XE=e=>{let{purchaseFn:t,subscribeFn:n,videoItem:r,channelData:o}=e;const i=(0,vt.D$)(o,r);return i===vt.FE.SUBSCRIBE||i===vt.FE.PRICING_PLAN?n:i?t:void 0};var QE;const JE=(0,He.$j)((e=>({isTextShown:(0,Ze.jc)(e)})))((QE=class extends o().Component{constructor(){super(...arguments),qe()(this,"handlePurchaseClick",(()=>{const{videoItem:e,channelData:t,onBuyClick:n,onSubscribeClick:r}=this.props;XE({purchaseFn:n,subscribeFn:r,videoItem:e,channelData:t})()}))}stopPropagation(e){e.stopPropagation()}renderPurchaseButton(){const{videoItem:e,isTextShown:t}=this.props,n=Ot()(KE.icon,{[KE.withText]:t});return o().createElement(HE,{onClick:this.handlePurchaseClick,videoItem:e,iconClassName:n,className:Ot()(KE["central-button"])})}renderPlayButton(){const{videoItem:e,onMemberSignUp:t,onPlayRequestedAllowed:n,onPlayRequestedDisallowed:r,isChannelCoverView:i,isTextShown:s}=this.props,a=Ot()(KE.icon,{[KE.withText]:s});return o().createElement(UE,{videoItem:e,onMemberSignUp:t,onPlayRequestedAllowed:n,onPlayRequestedDisallowed:r,isChannelCoverView:i,icon:o().createElement(YE,{className:a}),className:Ot()(KE["central-button"])})}renderLiveLabel(){const{videoItem:e}=this.props;return o().createElement(tc.Z,{itemType:e.itemType,liveVideoStatus:e.liveVideoStatus,videoTitle:e.title,startTime:e.dateStartLive,isSmall:!0,smallClassName:KE["live-scheduled-label"],className:KE["live-label"]})}renderTitle(){const{title:e,videoItem:t}=this.props;return e&&o().createElement("div",{"data-hook":"title",className:Ot()(KE.title,{[KE["with-video"]]:t})},o().createElement(Xl.v,{text:e,clampOptions:{lineClamp:3}}))}render(){const{title:e,onCoverClick:t,videoItem:n}=this.props;if(!n)return o().createElement(qE,{title:e});const r=Ot()(KE["central-buttons"],{[KE["no-title"]]:!e});return o().createElement("div",{className:KE.overlay},o().createElement("div",{"data-hook":"labels",className:KE.labels},this.renderLiveLabel()),o().createElement("div",{"data-hook":"central-area",className:KE["central-area"],onClick:t},this.renderTitle(),o().createElement("div",{"data-hook":"central-buttons",className:r,onClick:this.stopPropagation},this.renderPlayButton(),this.renderPurchaseButton())))}},qe()(QE,"defaultProps",{onSubscribeClick:ie().noop}),QE));var eS=n(89161);const tS={openBuyVideoOverlay:(e,t)=>Hc(e,t,Mc.N.WIDGET),openSubscribeOverlay:Uc,openVideoPage:Xc,visitChannel:Kc};class nS extends o().Component{constructor(){super(...arguments),qe()(this,"onCoverClick",(()=>{const{isChannelCoverView:e,visitChannel:t,openVideoPage:n,videoItem:r,fedops:o,openMobileOverlay:i}=this.props;e?(o.interactionStarted(ro.y.MOBILE_OPEN_CHANNEL_VIEW),t(i)):(o.interactionStarted(ro.y.MOBILE_OPEN_VIDEO_VIEW),n(r.id,i))})),qe()(this,"onBuyClick",(0,eo.Q)((()=>{const{videoItem:e,openBuyVideoOverlay:t,openMobileOverlay:n}=this.props;t(n,e.id)}))),qe()(this,"handleSubscribeClick",(0,eo.Q)((()=>{const{openMobileOverlay:e}=this.props;this.props.openSubscribeOverlay(e)})))}render(){const{isChannelCoverView:e,isFirstVideo:t,onSignInRequested:n,onPlayRequestedAllowed:r,onPlayRequestedDisallowed:i,onMemberSignUp:s,itemWidth:a,itemHeight:l,coverUrl:c,videoItem:u,channelData:d,currentSiteUser:p,title:h,pictureMode:m}=this.props;return o().createElement("div",{style:{width:a,height:l,position:"relative"}},o().createElement(tp.t,{src:c,mode:m},o().createElement(JE,{onPlayRequestedAllowed:r,onPlayRequestedDisallowed:i,onMemberSignUp:s,onSignInRequested:n,onSubscribeClick:this.handleSubscribeClick,onCoverClick:this.onCoverClick,onBuyClick:this.onBuyClick,videoItem:u,channelData:d,currentSiteUser:p,title:h,isChannelCoverView:e,isFirstVideo:t})))}}const rS=(0,or.F)((0,He.$j)(((e,t)=>({channelData:(0,ft.js)(e),currentSiteUser:(0,bt.C)(e),videoUrls:(0,bE.Z)(e,t),isChannelCoverView:IE(e,t),coverUrl:xE(e,t),title:AE(e,t),appSettings:(0,Ze.GR)(e)})),tS)((0,eS.K3)(nS)));function oS(e,t,n){let{slidesPreviewWidth:r=0}=void 0===n?{}:n;return(e-2*r)/t}const iS=(e,t)=>null===e.key||ie().isUndefined(e.key)?t:e.key,sS=e=>{const t=[];return o().Children.forEach(e.children,((n,r)=>{const i=(e=>({width:e.slideWidth,flexShrink:0}))(ie().assign({},e,{index:r})),s=(e=>{let t,n,r;return t=e.rtl?e.slideCount-1-e.index:e.index,e.centerMode?(n=Math.floor(e.slidesToShow/2),t>e.currentSlide-n-1&&t<=e.currentSlide+n&&(r=!0)):r=e.currentSlide<=t&&t<e.currentSlide+e.slidesToShow,r})({index:r,...e});t.push(o().cloneElement(n,{key:`original${iS(n,r)}`,"data-index":r,...s&&{"data-active":"true"},className:n.props.className,style:ie().assign({},n.props.style||{},i)}))})),[].concat(t,[])};class aS extends o().Component{render(){const e=sS(this.props),{trackStyle:t,getRef:n,className:r}=this.props;return o().createElement("div",{ref:n,className:r,style:{display:"flex",...t}},e)}}qe()(aS,"defaultProps",{getRef:ie().noop});const lS="qhPlLJ";function cS(e){const{slideCount:t,slidesToShow:n,slideWidth:r}=e,o=(t+2*n)*r,i=ie().isNumber(e.left)?e.left:e.right;return{opacity:1,width:o,WebkitTransform:`translateX(${i}px)`,transform:`translateX(${i}px)`,transition:"",WebkitTransition:"",msTransform:`translateX(${i}px)`}}function uS(e){const t=cS(e);return t.WebkitTransition=`-webkit-transform '${e.speed}ms ${e.cssEase}`,t.transition=`transform ${e.speed}ms ${e.cssEase}`,t}function dS(e){const t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t);let o=Math.round(180*r/Math.PI);return o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":"vertical"}const pS={startX:0,startY:0,curX:0,curY:0};class hS extends o().Component{constructor(e){super(e),qe()(this,"_currentSlide",void 0),qe()(this,"_touchObject",void 0),qe()(this,"_dragging",void 0),qe()(this,"_animating",void 0),qe()(this,"track",null),qe()(this,"wrapper",null),qe()(this,"list",null),qe()(this,"resizeHandler",(()=>this.update())),qe()(this,"update",(e=>{if(!this.wrapper)return;const{slidesPreviewWidth:t,isRTL:n}=this.props,r=this.getMeasurements(null==e?void 0:e.nextWidth);this.setState(r,(()=>{const e=this.getTrackLeft(this._currentSlide,r.slideWidth,t),o=n?"right":"left",i=cS(ie().assign({direction:o,[o]:e,slideCount:this.getSlidesCount()},this.props,this.state));this.setTrackStyle(i)}))})),qe()(this,"touchPositionHandler",(e=>t=>e({posX:t.touches[0].pageX,posY:t.touches[0].pageY}))),qe()(this,"mousePositionHandler",(e=>t=>e({posX:t.clientX,posY:t.clientY}))),qe()(this,"swipeStart",(e=>{let{posX:t,posY:n}=e;this._dragging=!0,this._animating=!1,this._touchObject={startX:t,startY:n,curX:t,curY:n}})),qe()(this,"getSlidesCount",(()=>o().Children.count(this.props.children))),qe()(this,"swipeMove",(e=>{let{posX:t,posY:n}=e;if(!this._dragging)return;if(this._animating)return;const r=ie().clone(this._touchObject),{slideWidth:o}=this.state,{slidesToShow:i,slidesPreviewWidth:s,onUserStartedTracking:a,edgeFriction:l,isRTL:c}=this.props,u=this._currentSlide,d=this.getTrackLeft(u,o,s);r.curX=t,r.curY=n,r.swipeLength=Math.round(Math.sqrt(Math.pow(r.curX-r.startX,2)));const p=r.curX>r.startX?1:-1,h=this.getSlidesCount(),m=dS.call(this,r);let f=r.swipeLength;(0===u&&"right"===m||u>=h-i&&"left"===m)&&(f=r.swipeLength*l);const g=d+f*p;this._touchObject=r;const v=c?"right":"left",y=cS(ie().assign({[v]:g,slideCount:this.getSlidesCount()},this.props,this.state));this.setTrackStyle(y),r.swipeLength>4&&a()})),qe()(this,"swipeEnd",(e=>{if(!this._dragging)return;const{touchThreshold:t,isRTL:n,slidesPreviewWidth:r}=this.props,o=this._touchObject,i=this.state.listWidth/t,s=dS.call(this,o),a=this._currentSlide;if(this._dragging=!1,this._touchObject={...pS},!o.swipeLength)return;const l=n?"right":"left",c=n?"left":"right";if(o.swipeLength>i){const t=this.calcSlidesToScroll(o.swipeLength);e.preventDefault(),s===l?this.slideHandler(a+t):s===c?this.slideHandler(a-t):this.slideHandler(a)}else{const e=this.getTrackLeft(a,this.state.slideWidth,r);this.setTrackStyle(uS(ie().assign({[l]:e,slideCount:this.getSlidesCount()},this.props,this.state)))}})),qe()(this,"handlePrevButtonClick",(()=>{this.changeSlide({action:"previous"})})),qe()(this,"handleNextButtonClick",(()=>{this.changeSlide({action:"next"})})),qe()(this,"saveTrackRef",(e=>{this.track=e})),qe()(this,"saveWrapperRef",(e=>{this.wrapper=e,this.update()})),qe()(this,"saveListRef",(e=>{this.list=e})),this._currentSlide=e.initialSlide,this._touchObject={...pS},this.state=this.getMeasurements()}componentDidMount(){this.update(),window.addEventListener("resize",this.resizeHandler)}UNSAFE_componentWillReceiveProps(e){e.initialSlide===this.props.initialSlide&&e.width===this.props.width||(this._currentSlide=e.initialSlide,this.update({nextWidth:e.width}))}componentWillUnmount(){window.removeEventListener("resize",this.resizeHandler)}getMeasurements(e){const{slidesToShow:t,slidesPreviewWidth:n}=this.props,r=e??this.props.width;return{listWidth:r,trackWidth:r,slideWidth:oS(r,t,{slidesPreviewWidth:n})}}getTrackLeft(e,t,n){const{isRTL:r}=this.props,o=function(e,t,n,r,o){return 0===n?0:n>=e-t?n*r*-1+2*o:n*r*-1+o}(this.getSlidesCount(),this.props.slidesToShow,e,t,n);return r?-o:o}setTrackStyle(e){this.track&&ie().assign(this.track.style,e)}calcSlidesToScroll(e){const{slideWidth:t,listWidth:n}=this.state,{touchThreshold:r}=this.props,o=n/r;let i=Math.floor(e/t);return e%t>o&&(i+=1),i}slideHandler(e){var t;const{waitForAnimate:n,slidesToShow:r,slidesPreviewWidth:o,beforeChange:i,isRTL:s}=this.props;if(n&&this._animating)return;let a;const l=this.getSlidesCount();a=e<0?0:e>l-r?l-r:e;const c=this.getTrackLeft(a,this.state.slideWidth,o);i&&i(this._currentSlide,a);const u=s?"right":"left",d={trackStyle:cS({[u]:c,slideCount:this.getSlidesCount(),...this.props,...this.state}),swipeLeft:null},p=()=>{var e;this._animating=!1,this.setTrackStyle(d.trackStyle),this.props.afterChange(a),null==(e=this.track)||e.removeEventListener("transitionend",p)};this._animating=!0;const h=uS(ie().assign({[u]:c,slideCount:this.getSlidesCount()},this.props,this.state));this.setTrackStyle(h),this._currentSlide=a,null==(t=this.track)||t.addEventListener("transitionend",p)}changeSlide(e){const t=this._currentSlide;let n,r=t;const o=this.getSlidesCount(),i=this.props.slidesToScroll,s=o%i!=0?0:(o-t)%i;if("previous"===e.action)n=0===s?i:this.props.slidesToShow-s,r=t-n;else if("next"===e.action)n=0===s?i:s,r=t+n;else if("index"===e.action&&(r=e.slideIndex,r===t))return;this.slideHandler(r)}renderChildren(){const{slideWidth:e}=this.state,{getHeight:t,children:n}=this.props;return e?o().Children.map(n,(n=>o().cloneElement(n,{width:e,height:t(n,e)}))):null}render(){const e={cssEase:this.props.cssEase,speed:this.props.speed,currentSlide:this._currentSlide,slideWidth:this.state.slideWidth,slidesToShow:this.props.slidesToShow,slideCount:this.getSlidesCount(),trackStyle:this.state.trackStyle},{className:t,trackClassName:n}=this.props;return o().createElement("div",{ref:this.saveWrapperRef,className:Ot()(lS,t)},o().createElement("div",{ref:this.saveListRef,onMouseDown:this.mousePositionHandler(this.swipeStart),onMouseMove:this.mousePositionHandler(this.swipeMove),onMouseUp:this.swipeEnd,onMouseLeave:this.swipeEnd,onTouchStart:this.touchPositionHandler(this.swipeStart),onTouchMove:this.touchPositionHandler(this.swipeMove),onTouchEnd:this.swipeEnd,onTouchCancel:this.swipeEnd},o().createElement(aS,Yn()({getRef:this.saveTrackRef,className:n},e),this.renderChildren())))}}qe()(hS,"defaultProps",{className:"",cssEase:"ease",easing:"linear",edgeFriction:.35,initialSlide:0,slidesToScroll:1,speed:500,getHeight:ie().constant(200),slidesToShow:3,touchThreshold:5,useCSS:!0,waitForAnimate:!0,afterChange:ie().noop,beforeChange:ie().noop,onUserStartedTracking:ie().noop,slidesPreviewWidth:0});function mS(){return window.navigator.userAgent.toLowerCase()}function fS(){const e=function(e){switch(!0){case/(GT-S5300B|GT-S5360|GT-S5367|GT-S5570I|GT-S6102B|LG-E400f|LG-E400g|LG-E405f|LG-L38C|LGL35G)/i.test(e):return{width:240,height:320};case/(Ls 670|GT-S5830|GT-S5839i|GT-S6500D|GT-S6802B|GT-S7500L|H866C|Huawei-U8665|LG-C800|LG-MS695|LG-VM696|LGL55C|M865|Prism|SCH-R720|SCH-R820|SCH-S720C|SPH-M820-BST|SPH-M930BST|U8667|X501_USA_Cricket|ZTE-Z990G)/i.test(e):return{width:320,height:480};case/(5860E|ADR6300|ADR6330VW|ADR8995|APA9292KT|C771|GT-I8160|GT-I9070|GT-I9100|HTC-A9192|myTouch4G|N860|PantechP9070|PC36100|pcdadr6350|SAMSUNG-SGH-I727|SAMSUNG-SGH-I777|SAMSUNG-SGH-I997|SC-03D|SCH-I405|SCH-I500|SCH-I510|SCH-R760|SGH-S959G|SGH-T679|SGH-T769|SGH-T959V|SGH-T989|SPH-D700)/i.test(e):return{width:480,height:800};case/(DROIDX|SonyEricssonSO-02C|SonyEricssonST25i)/i.test(e):return{width:480,height:854};case/(DROID3|MB855)/i.test(e):return{width:540,height:960};case/F-05D/i.test(e):return{width:720,height:1280};default:return null}}(mS());let t,n;const r={width:window.screen.width,height:window.screen.height};return e?(t=e.width,n=e.height):vS()?(t=Math.min(r.width,r.height),n=Math.max(r.width,r.height)):(t=Math.max(r.width,r.height),n=Math.min(r.width,r.height)),{width:t,height:n}}function gS(){return!vS()}function vS(){const{orientation:e}=window;return 0===e||180===e||null}const yS=e=>{const t=Vc((0,Cu.kF)((e=>({registerToScroll:e.host.registerToScroll})))(class extends o().Component{constructor(){super(...arguments),qe()(this,"state",{isVisible:this.props.environment.isSSR}),qe()(this,"check",ie().debounce((()=>{(async function(e){let t;if(!e)return!1;t=n.g.Wix?await new Promise((e=>n.g.Wix.getBoundingRectAndOffsets((t=>e(t.rect))))):e.getBoundingClientRect();const{top:r,bottom:o}=t,{width:i,height:s}=fS(),a=gS()?i:s;return r<=0&&o>=a||r>=0&&o<=a})(this.containerRef).then(this.updateVisibility)}),400)),qe()(this,"updateVisibility",(e=>{e!==this.state.isVisible&&this.setState({isVisible:e})})),qe()(this,"saveRef",(e=>{this.containerRef=e,this.props.environment.isSSR||(this.check(),this.props.registerToScroll(this.check))}))}componentWillUnmount(){n.g.Wix&&n.g.Wix.removeEventListener(n.g.Wix.Events.SCROLL,this.check),this.check.cancel()}render(){return o().createElement("div",{role:"presentation",ref:this.saveRef},o().createElement(e,Yn()({},this.props,{isVisibleInViewport:this.state.isVisible})))}}));return t.WixWrappedComponent=e,t},bS="oo7o5s",ES=e=>{var t;const n=Vc(yS((t=class extends o().Component{constructor(e){var t;super(e),t=this,qe()(this,"handleNextProps",(function(e){void 0===e&&(e=t.props);const{isVisibleInViewport:n}=e,{isTrackStarted:r,isShownAlready:o}=t.state;if(e.environment.isSSR)return;if(o)return;const i=!r&&n;t.setState({shouldApplyAnimationClassName:i,isShownAlready:i})})),qe()(this,"updateTrackStarted",ie().once((()=>{this.setState({isTrackStarted:!0})}))),this.state={isTrackStarted:!1,isShownAlready:!1,shouldApplyAnimationClassName:!1}}componentDidMount(){this.handleNextProps()}UNSAFE_componentWillReceiveProps(e){this.handleNextProps(e)}render(){const{trackClassName:t}=this.props,{shouldApplyAnimationClassName:n}=this.state,r=Ot()(t,{[bS]:n});return o().createElement(e,Yn()({},this.props,{onUserStartedTracking:this.updateTrackStarted,trackClassName:r}))}},qe()(t,"defaultProps",{isVisibleInViewport:!1}),t)));return n.WixWrappedComponent=e,n};var SS,CS=n(31048);const wS={fetchVideoUrls:xu.C},PS=ES((0,He.$j)((e=>({videoIds:(0,ho.Di)(e),videoByIds:(0,Et.$u)(e),currentSiteUser:(0,bt.C)(e),channelData:(0,ft.js)(e),isRTL:(0,Ze.dZ)(e)})),wS)((SS=class extends o().Component{constructor(){super(...arguments),qe()(this,"afterChange",(e=>{this.props.onCurrentSlideChanged(e)}))}UNSAFE_componentWillReceiveProps(e){this.preloadUrls(e.videoByIds)}preloadUrls(e){ie().forEach(e,(e=>this.fetchUrlsForVideo(e)))}fetchUrlsForVideo(e){const{fetchVideoUrls:t,currentSiteUser:n,channelData:r}=this.props;(0,CS.L)({channelData:r,videoItem:e,currentSiteUser:n})&&t(e)}getInitialIndex(){const{videoIds:e,initialVideoId:t}=this.props,n=ie().indexOf(e,t);return n<0?0:n}render(){const{className:e,itemHeight:t,trackClassName:n,onUserStartedTracking:r,children:i,isRTL:s,width:a}=this.props;return o().createElement(hS,{width:a,getHeight:ie().constant(t),afterChange:this.afterChange,beforeChange:this.props.beforeCurrentSlideChanged,onUserStartedTracking:r,slidesToShow:1,trackClassName:n,className:e,initialSlide:this.getInitialIndex(),isRTL:s},i)}},qe()(SS,"defaultProps",{onCurrentSlideChanged:ie().noop}),SS)));var IS;function OS(){return OS=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},OS.apply(this,arguments)}const TS=function(e){return r.createElement("svg",OS({xmlns:"http://www.w3.org/2000/svg",width:4,height:16,viewBox:"0 0 4 16"},e),IS||(IS=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.315 6.5A1.75 1.75 0 1 1 .5 8.25 1.783 1.783 0 0 1 2.315 6.5zm0 6a1.75 1.75 0 1 1-1.814 1.75 1.783 1.783 0 0 1 1.815-1.75zM.502 2.207A1.75 1.75 0 0 1 4 2.25 1.787 1.787 0 0 1 2.185 4 1.75 1.75 0 0 1 .5 2.207z"})))},NS=(0,gt.P1)(Ze.UW,bt.C,((e,t)=>Boolean(e&&!t))),AS=(0,gt.P1)(Ze.UW,bt.C,((e,t)=>Boolean(e&&t))),xS=(0,gt.P1)([Et.IM,Ze.zD,Ze.sn,Ze.Vx,Ze.j0],((e,t,n,r,o)=>e&&!(t&&!r)&&!(n&&!o))),_S="VISIT_CHANNEL",LS="SUBSCRIBE",RS="SIGN_OUT",kS="SIGN_IN",DS="SHARE_CHANNEL",VS="SHARE_VIDEO",MS=(0,gt.P1)(BE,(e=>Boolean(e))),BS=(0,gt.P1)([IE,Ze.Sd],((e,t)=>e&&t)),FS=(0,gt.P1)([IE,wo.r],((e,t)=>!e&&t)),US=(0,gt.P1)([xS,MS,AS,NS,BS,FS],((e,t,n,r,o,i)=>({[_S]:e,[LS]:t,[RS]:n,[kS]:r,[DS]:o,[VS]:i}))),jS=(0,gt.P1)(US,(e=>ie()(e).pickBy(Boolean).keys().value())),HS=(0,gt.P1)(jS,(e=>!ie().isEmpty(e))),ZS={openSlideMenu:Gc.pi,closeSlideMenu:Gc.bX},WS=(0,or.F)((0,ln.Z)()((0,He.$j)(((e,t)=>({isSlideMenuOpened:e.slideMenuOpened,shouldBeShown:t.alwaysShow||HS(e,t)})),ZS)(class extends o().Component{constructor(){super(...arguments),qe()(this,"handleClick",(()=>{const{isSlideMenuOpened:e,openSlideMenu:t,closeSlideMenu:n}=this.props;e?n():t()}))}render(){const{className:e,iconClassName:t,shouldBeShown:n}=this.props;return n&&o().createElement("div",{"data-hook":"slide-menu-button",className:e,onClick:this.handleClick,role:"button","aria-label":this.props.t("widget.mobile.slide-menu-button-accessibility")},o().createElement(TS,{className:t}))}}))),zS="DH9iB2",qS="oArwYb",GS="Y6H6hN",$S="moNk2B",YS="B9jycU",KS="pleKOO",XS="mcU_Nb",QS="Z8bvEp",JS="dTQz_I",eC={closeSlideMenu:Gc.bX,visitChannel:Kc,openSubscribeOverlay:jc,logBi:Nn.k,logOutCurrentMember:zu.tH,requestLogin:zu.Pw};class tC extends o().Component{constructor(e){super(e),qe()(this,"renderMenuItems",(()=>{const{visibleMenuItems:e}=this.props,t=()=>null;return ie().map(e,(e=>ie().get(this.menuItemsRenderMap,e,t)()))})),qe()(this,"renderItem",(e=>{const t=e.text||(e=>ie().startCase(ie().toLower(e)))(this.props.t(e.title));return o().createElement("div",{"data-hook":e.dataHook,key:e.dataHook,className:JS,onClick:e.onClick,role:"button","aria-label":t},t)})),qe()(this,"visitChannel",(()=>{const{visitChannel:e,openMobileOverlay:t}=this.props;e(t)})),qe()(this,"renderVisitChannel",(()=>this.renderItem({dataHook:"visit-channel-menu-item",title:"widget.mobile.overlay-button.visit-channel",onClick:this.visitChannel}))),qe()(this,"renderSubscribe",(()=>{const{subscribeButtonText:e,openSubscribeOverlay:t,openMobileOverlay:n}=this.props;return this.renderItem({dataHook:"subscribe-menu-item",text:e,onClick:()=>t(n)})})),qe()(this,"renderSignOut",(()=>this.renderItem({dataHook:"sign-out-menu-item",title:"widget.mobile.overlay-button.sign-out",onClick:this.props.logOutCurrentMember}))),qe()(this,"renderSignIn",(()=>(this.props.logBi("widget.signIn.clicked"),this.renderItem({dataHook:"sign-in-menu-item",title:"widget.mobile.overlay-button.sign-in",onClick:(0,eo.Q)((()=>this.props.requestLogin()))})))),qe()(this,"renderChannelShare",(()=>{const{channelData:e}=this.props;return o().createElement(qc.Z,{channelData:e,key:"share-channel-menu-item",dataHook:"share-channel-menu-item"},this.renderItem({dataHook:"share-menu-item",title:"share-overlay.social.title"}))})),qe()(this,"renderVideoShare",(()=>{const{channelData:e,videoItem:t}=this.props;return o().createElement(qc.Z,{videoItem:t,channelData:e,key:"share-video-menu-item",dataHook:"share-video-menu-item"},this.renderItem({dataHook:"share-menu-item",title:"share-overlay.social.title"}))})),this.menuItemsRenderMap={[_S]:this.renderVisitChannel,[LS]:this.renderSubscribe,[RS]:this.renderSignOut,[kS]:this.renderSignIn,[DS]:this.renderChannelShare,[VS]:this.renderVideoShare}}render(){const{closeSlideMenu:e,showMenuButton:t,stretchToHeight:n,menuClassName:r}=this.props;return o().createElement("div",{className:zS},o().createElement("div",{"data-hook":"menu-close-area",className:qS,onClick:e}),o().createElement("div",{"data-hook":"slide-menu",className:Ot()(GS,r,$S,{[YS]:n})},t&&o().createElement(WS,{onClick:e,className:KS,iconClassName:XS,alwaysShow:!0}),o().createElement("div",{className:QS},this.renderMenuItems())))}}qe()(tC,"defaultProps",{showMenuButton:!0});const nC=(0,or.F)((0,ln.Z)()((0,He.$j)(((e,t)=>({subscribeButtonText:BE(e,t),visibleMenuItems:jS(e,t)})),eC)((0,eS.K3)(tC)))),rC=(0,He.$j)(((e,t)=>({text:BE(e,t)})))(class extends o().Component{render(){const{text:e,className:t,onClick:n}=this.props;return e?o().createElement("div",{"data-hook":"subscribe-button",className:t,onClick:n},e):null}}),oC="htZvFm",iC="NJMRtS",sC="CSVGXJ",aC="UjRkn1",lC="kMC7nb",cC="hCOHfq",uC="mBKtnu",dC="y_IOFm";var pC;const hC=12,mC=e=>e<3,fC=(e,t)=>t-e<4,gC=(0,He.$j)(((e,t)=>({hasMainDotsOnly:t.count<=3})))((pC=class extends o().Component{constructor(e){super(e),qe()(this,"getMove",(e=>this.state.cssLeft+hC*(this.props.selectedIndex-e))),qe()(this,"saveRef",(e=>{const{isRTL:t}=this.props;if(e){this.dotsNode=e;const n=t?"right":"left";this.dotsNode.style[n]=`${this.state.cssLeft}px`}}));const t=e.selectedIndex<3;this.state={cssLeft:this.getInitialCssLeft(e,t),needDotsRecalc:!0,isDirectedRight:t}}UNSAFE_componentWillReceiveProps(e){const{selectedIndex:t,hasMainDotsOnly:n}=e,r=e.selectedIndex!==this.props.selectedIndex,o=e.count!==this.props.count;if(!n&&(r||o)){const n=!!o||e.selectedIndex>this.props.selectedIndex,r=!!o||(!this.dots||this.isSmallDotBecomingActive(t)),i=r?this.getMove(e.selectedIndex):this.state.cssLeft;this.setState({needDotsRecalc:r,isDirectedRight:n,cssLeft:i})}}componentDidUpdate(){const{cssLeft:e}=this.state,{hasMainDotsOnly:t,isRTL:n}=this.props;if(!t){const t=n?"right":"left";this.dotsNode.style[t]=`${e}px`}}getInitialCssLeft(e,t){void 0===e&&(e=this.props),void 0===t&&(t=this.state.isDirectedRight);const{selectedIndex:n,count:r,hasMainDotsOnly:o}=e,i=hC*(5-r),s=r-3;return o?-.5*r*hC:mC(n)?24:fC(n,r)?i:t?24+hC*(0-n):i+hC*(s-n)}renderDot(e,t){const n=Ot()(lC,{[cC]:e.large,[dC]:e.near,[uC]:e.active});return o().createElement("div",{className:aC,key:t},o().createElement("div",{className:n}))}isSmallDotBecomingActive(e){return!ie().get(this.dots[e],"large")}renderSimplifiedDots(){const{count:e,selectedIndex:t,isRTL:n}=this.props,r=ie().times(e,(()=>({near:!0,large:!0})));ie().nth(r,t).active=!0;const i=Ot()(oC,iC),s={[n?"right":"left"]:this.getInitialCssLeft()};return o().createElement("div",{"data-hook":"navigation-dots",className:i,style:s},ie().map(r,this.renderDot))}getAllDots(){const{selectedIndex:e,count:t}=this.props,{isDirectedRight:n}=this.state;let r=ie().times(t,(()=>({})));if(n)if(mC(e))for(let e=0;e<3;e+=1)r[e].large=!0;else for(let t=0;t<3;t+=1)r[e-t].large=!0;else if(fC(e,t))for(let e=1;e<4;e+=1)r[t-e].large=!0;else for(let t=0;t<3;t+=1)r[e+t].large=!0;const o=ie().findIndex(r,"large"),i=ie().times(5,(e=>o+e-1));return r=ie().map(r,((e,t)=>ie().includes(i,t)?{...e,near:!0}:e)),r}withActiveDotUpdated(e){const{selectedIndex:t}=this.props;return ie().map(e,((e,n)=>(e.active=n===t,e)))}getDots(){const{needDotsRecalc:e}=this.state;let t=e?this.getAllDots():this.dots;return t=this.withActiveDotUpdated(t),this.dots=t,t}render(){const{hasMainDotsOnly:e,count:t}=this.props;return 0===t?null:e?this.renderSimplifiedDots():o().createElement("div",{className:sC},o().createElement("div",{ref:this.saveRef,className:oC,"data-hook":"navigation-dots"},ie().map(this.getDots(),this.renderDot)))}},qe()(pC,"defaultProps",{count:0,selectedIndex:0}),pC));class vC extends o().Component{constructor(e){super(e),qe()(this,"showCover",(()=>{this.setState({isMainCoverOverlayOn:!0})})),qe()(this,"closeCover",(()=>{this.setState({isMainCoverOverlayOn:!1})})),qe()(this,"beforeCurrentSlideChanged",((e,t)=>{this.setState({selectedIndex:t})})),qe()(this,"onCurrentSlideChanged",(e=>{this.props.onCurrentSlideChanged(e)})),qe()(this,"onPlayRequestedAllowed",(()=>{const{mainVideo:e,playVideo:t}=this.props;t(e),this.closeCover()})),qe()(this,"onPlayEnded",(()=>{this.props.isVideoPlaying||this.showCover()})),qe()(this,"onClosePlayerClick",(()=>{const{mainVideo:e,pauseVideo:t}=this.props;t(e.id),this.showCover()})),this.state={PlaybackComponent:null,isMainCoverOverlayOn:!0,selectedIndex:ie().indexOf(e.videoIds,e.mainVideoId,0)}}componentDidMount(){this.props.loadPlaybackModule().then((e=>{this.setState({PlaybackComponent:e})})).catch(ie().noop)}componentDidUpdate(e){const{isVideoPlaying:t,isMobileOverlayOpen:n}=this.props;!n&&t&&t!==e.isVideoPlaying&&this.closeCover()}renderSubscribeButton(e){const{onSubscribeClick:t}=this.props;return o().createElement(rC,{className:yE.subscribe,onClick:t,videoItem:e})}renderTopMenuArea(e,t){const{channelData:n}=this.props;return o().createElement("div",{"data-hook":"top-menu-area",className:yE["top-menu-area"]},this.renderSubscribeButton(e),o().createElement("div",{className:yE["slide-menu-icon-wrapper"]},o().createElement(WS,{className:yE["slide-menu-icon-wrapper"],iconClassName:yE["slide-menu-icon"],videoItem:e,channelData:n,isFirstVideo:t})))}renderNoVideosCover(){const{channelData:e,overlaySize:{width:t,height:n}}=this.props;return o().createElement(rS,{channelData:e,showChannelCover:!0,itemWidth:t,itemHeight:n,onSignInRequested:ie().noop,className:yE["overlay-only"],coverUrl:(0,Jr.k)(e)})}renderCover(e,t,n){void 0===n&&(n=null);const{overlaySize:{width:r,height:i},onPlayRequestedDisallowed:s,showLogInForm:a}=this.props;return o().createElement(o().Fragment,null,this.renderTopMenuArea(e,t),o().createElement(rS,{videoItem:e,className:n,itemWidth:r,itemHeight:i,isFirstVideo:t,onSignInRequested:a,onPlayRequestedDisallowed:s,onPlayRequestedAllowed:this.onPlayRequestedAllowed,onMemberSignUp:(0,$t.r)(this.props.openMemberOnlyPage,e.id),pictureMode:th.h.CONTAIN}))}renderCoverCarousel(){const{videoIds:e,videoByIds:t}=this.props;return ie()(e).filter((e=>Boolean(t[e]))).map(((e,n)=>o().createElement("div",{key:e,role:"presentation"},this.renderCover(t[e],0===n,yE["overlay-item-topmost"])))).value()}renderSlideMenu(e,t){const{isSlideMenuOpened:n,channelData:r}=this.props;return n&&e?o().createElement(nC,{videoItem:e,channelData:r,onMemberSignUp:(0,$t.r)(this.props.openMemberOnlyPage,e.id),isFirstVideo:t}):null}renderNavigationDots(){const{videoIds:e,isRTL:t}=this.props;return o().createElement("div",{className:yE["navigation-dots"]},o().createElement(gC,{count:ie().size(e),selectedIndex:this.state.selectedIndex||0,isRTL:t}))}renderMultipleVideosOverlay(){const{overlaySize:{height:e,width:t}}=this.props,{mainVideoId:n,videoIds:r,videoByIds:i}=this.props,s=ie().startsWith(r,n);return o().createElement("div",null,o().createElement(PS,{itemHeight:e,width:t,className:yE["players-list-slidable"],onCurrentSlideChanged:this.onCurrentSlideChanged,beforeCurrentSlideChanged:this.beforeCurrentSlideChanged,initialVideoId:this.props.mainVideoId},this.renderCoverCarousel()),this.renderNavigationDots(),this.renderSlideMenu(i[n],s))}renderSingleVideoOverlay(){const{mainVideo:e}=this.props,t=`${yE["single-item-cover"]} single-video-slick-active`;return o().createElement("div",{className:t,role:"presentation"},this.renderCover(e,!0),this.renderSlideMenu(e))}renderMainCoverOverlay(){const{isSingleVideoView:e}=this.props,{isMainCoverOverlayOn:t}=this.state,n=Ot()(yE["main-cover-overlay"],{[yE.visible]:t});return o().createElement("div",{"data-hook":"main-cover-overlay",className:n},e?this.renderSingleVideoOverlay():this.renderMultipleVideosOverlay())}renderPlayer(){const{isVideoPlaying:e,mainVideo:t,channelData:n,openMemberOnlyPage:r,playerSize:{width:i,height:s}}=this.props,{PlaybackComponent:a}=this.state;return a?o().createElement(a,{videoItem:t,channelData:n,paused:!e,onEnded:this.onPlayEnded,width:i,height:s,onMemberSignUp:r}):null}renderPlayerWithActions(){const{mainVideo:e,channelData:t,showAutoPlay:n}=this.props,{isMainCoverOverlayOn:r}=this.state,i=Ot()(yE["player-with-actions"],{[yE["cover-on"]]:r});return o().createElement("div",{"data-hook":"player-with-actions",className:i},!this.state.isMainCoverOverlayOn&&o().createElement(vE,{videoItem:e,channelData:t,className:yE["action-strip"],onCloseClick:this.onClosePlayerClick}),o().createElement("div",{className:yE.player},this.renderPlayer(),n&&o().createElement(Ap,{isMobile:!0})))}render(){const{mainVideo:e,overlaySize:{width:t,height:n},isAccessAllowedOrWithTrailer:r}=this.props,{isMainCoverOverlayOn:i}=this.state;if(!e)return this.renderNoVideosCover();const s=Ot()(yE["main-ui"],{[yE["cover-on"]]:i});return o().createElement("div",{"data-hook":"main-ui",className:s,style:{width:t,height:n}},this.renderMainCoverOverlay(),r&&this.renderPlayerWithActions())}}qe()(vC,"defaultProps",{onSubscribeClick:ie().noop});const yC=(0,He.$j)((e=>({isSlideMenuOpened:e.slideMenuOpened,showAutoPlay:(0,nd.IZ)(e),isRTL:(0,Ze.dZ)(e),isAccessAllowedOrWithTrailer:(0,Sr.w$)(e)})))((0,eS.K3)(vC)),bC="iS3CMj",EC="hlhUC8",SC="nkPhCN",CC="WxmMr1",wC="brCH24",PC="MtBSRD",IC="paAX01",OC="eAxYQL",TC="QnMQNi",NC="YJ1qQ7";var AC=n(38761);const xC="tZGbjB";var _C;const LC=(0,ln.Z)()((_C=class extends o().Component{render(){const{height:e,onClick:t}=this.props;return o().createElement("button",{"data-hook":"mobile-load-more-button",onClick:t,className:xC,style:{height:e,lineHeight:`${e}px`}},this.props.t("widget.load-more"))}},qe()(_C,"defaultProps",{height:66,onClick:ie().noop}),_C));var RC;const kC={loadMoreVideosForMobileVertical:Er.l1},DC=(0,He.$j)((e=>({isSlideMenuOpened:e.slideMenuOpened,visibleVideos:(0,nd.ZH)(e),selectedVideoId:e.selectedVideoId,showAutoPlay:(0,nd.IZ)(e),isAccessAllowedOrWithTrailer:(0,Sr.w$)(e),playback:e.playback})),kC)((RC=class extends o().Component{constructor(e){super(e),qe()(this,"playVideo",(e=>{const{pauseVideo:t,playVideo:n,selectedVideoId:r}=this.props;r&&t(r),n(e),this.setState({isPlayerVisible:!0})})),qe()(this,"handleVideoClose",(e=>{this.props.pauseVideo(e),this.setState({isPlayerVisible:!1})})),qe()(this,"handleLoadMoreClick",(()=>{this.props.loadMoreVideosForMobileVertical()})),this.state={PlaybackComponent:null,isPlayerVisible:!0},e.loadPlaybackModule().then((e=>{this.setState({PlaybackComponent:e})})).catch(ie().noop)}renderHeader(){const{channelData:e,isSingleVideoView:t}=this.props;return t?null:o().createElement("div",{className:EC,style:{height:nh.tn}},o().createElement("span",{className:wC},e.title),o().createElement(WS,{className:CC}))}renderMenu(){const{isSlideMenuOpened:e,channelData:t}=this.props;return e?o().createElement(nC,{showMenuButton:!1,channelData:t,menuClassName:SC,isFirstVideo:!0}):null}renderVideos(){const{showLogInForm:e,openMemberOnlyPage:t,onPlayRequestedDisallowed:n,visibleVideos:r,isAccessAllowedOrWithTrailer:i,playerSize:s}=this.props,a=s.height+nh.tn;return ie().map(r,((r,l)=>o().createElement("div",{key:r.id,"data-hook":"mobile-vertical-video-item",className:PC,style:{height:a,marginBottom:nh.KG}},o().createElement("div",{className:TC},o().createElement(rS,{videoItem:r,itemWidth:s.width,itemHeight:a,isFirstVideo:!1,onSignInRequested:e,onPlayRequestedDisallowed:n,onPlayRequestedAllowed:(0,$t.r)(this.playVideo,r),onMemberSignUp:(0,$t.r)(t,r.id),pictureMode:th.h.CONTAIN})),i&&this.renderPlayer(l,r))))}renderPlayer(e,t){const{channelData:n,openMemberOnlyPage:r,playerSize:{width:i,height:s},playback:a,selectedVideoId:l}=this.props,{PlaybackComponent:c,isPlayerVisible:u}=this.state,d=(0,nd.kH)(e);if(!c||!t)return null;const p=(0,AC.sx)({playback:a},t.id),h=(0,AC.tG)({playback:a},t.id),m=t.id===l;return o().createElement("div",{className:Ot()(IC,{[OC]:m&&u&&(p||h)})},o().createElement(vE,{videoItem:t,sharePopupTopPositon:d,channelData:n,className:NC,onCloseClick:(0,$t.r)(this.handleVideoClose,t.id)}),o().createElement(c,{videoItem:t,channelData:n,width:i,height:s,onMemberSignUp:r}))}renderLoadMoreButton(){const{visibleVideos:e,channelData:t}=this.props;return e.length>=t.videosCount?null:o().createElement(LC,{height:nh.T_,onClick:this.handleLoadMoreClick})}render(){const{channelData:e,showAutoPlay:t}=this.props;return e.videosCount?o().createElement("div",{"data-hook":"mobile-vertical-layout",className:bC},this.renderHeader(),this.renderMenu(),this.renderVideos(),this.renderLoadMoreButton(),t&&o().createElement(Ap,{isMobile:!0})):o().createElement(qE,{title:e.title})}},qe()(RC,"defaultProps",{onSubscribeClick:ie().noop}),RC)),VC=(0,gt.P1)([e=>e.entities.videos,kn.hg],((e,t)=>t&&e[t])),MC=(0,gt.P1)([ft.js,VC,bt.C],((e,t,n)=>Boolean(t&&((0,Qr.vf)(t)||(0,Qr.ME)(t))&&(0,vt.$4)(e,t,n))));var BC=n(39140);const FC=(0,gt.P1)([Ze.GR],(e=>ie().get(e,"numbers.mainItemType")===BC.H.CHANNEL_COVER)),UC=(0,gt.P1)([ho.Di],(e=>1===ie().size(e)));var jC=n(8275);const HC="Tr2ch9";var ZC;const WC={openVideoPage:Xc,selectVideo:Dn.Uw,resetSelectedVideo:Dn.Fn,requestPlay:Tp.D0,requestPause:Tp.hz,openSubscribeOverlayFromWidget:Uc,playbackModuleLoaded:jC.z,logWidgetSystem:Nn.e,requestLogin:zu.Pw,sendLoadComplete:Su,logWidgetVidClick:rd.s,storeForReload:lo.Y,sendBiEvent:Io.t},zC=(0,He.$j)(((e,t)=>{const n=(0,Ze.LF)(e);let r=nh.xP;return n&&t.windowSize.width&&(r=t.windowSize.width),{isVideoPlaying:Boolean(e.selectedVideoId)&&(0,AC.sx)(e,e.selectedVideoId),playback:e.playback,canShowChannelCover:!e.isVideosTouched,appSettings:(0,Ze.GR)(e),videoByIds:(0,Et.$u)(e),videoIds:(0,ho.Di)(e),isFetching:(0,ho.ab)(e),channelData:(0,ft.js)(e),currentSiteUser:(0,bt.C)(e),mainVideoId:(0,kn.hg)(e),mainVideo:(0,Eo.g)(e),canPlayVideoInFrame:MC(e),isMainItemChannelCover:FC(e),isSingleVideoView:UC(e),playerSize:(0,co.B9)(r),overlaySize:(0,co.H8)(r),staticsVersion:(0,An.ev)(e).staticsVersion,isVerticalLayoutMobile:(0,Ze.BH)(e),isMobile:(0,Mt.tq)(e)}}),WC)((ZC=class extends o().Component{constructor(e){super(e),qe()(this,"handleSubscribeClick",(0,eo.Q)((()=>{const{openMobileOverlay:e}=this.props;this.props.openSubscribeOverlayFromWidget(e)}))),qe()(this,"openMemberOnlyPage",(e=>{this.props.logWidgetSystem("video.memberOnlyInfo.mobileOverlay.requested"),this.props.openMobileOverlay(`/membership/${e}?shouldCloseMobileOverlay=true`)})),qe()(this,"processDataFromStorage",(e=>{let{selectedVideoId:t}=e;t&&(this.setState({initialVideoId:t}),this.props.selectVideo(t))})),qe()(this,"storeDataForReload",(()=>{this.props.storeForReload({selectedVideoId:this.props.mainVideoId})})),qe()(this,"playVideo",(e=>{const{channelData:t,currentSiteUser:n,selectVideo:r,requestPlay:o,playback:i,fedops:s,isMobile:a}=this.props,{id:l}=e,c={playback:i},u=(0,AC.WQ)(c,l)||(0,AC.UT)(c,l);(0,vt.$4)(t,e,n)?(u&&this.props.logWidgetVidClick({videoItem:e,channelData:t}),o(l)):r(l)})),qe()(this,"onCurrentSlideChanged",(e=>{const{isFetching:t,videoIds:n,selectVideo:r}=this.props;n[e]&&!t&&r(n[e])})),qe()(this,"onPlayRequestedDisallowed",(()=>{const{mainVideoId:e,openMobileOverlay:t}=this.props;this.props.openVideoPage(e,t)})),qe()(this,"loadPlaybackModule",(async()=>{if("undefined"==typeof window)return()=>null;const e=await n.e(17).then(n.bind(n,50020));return this.props.playbackModuleLoaded(),e.Playback})),qe()(this,"showLogInForm",(0,eo.Q)((()=>{this.props.sendBiEvent("widget.signIn.clicked"),this.props.requestLogin().then(this.storeDataForReload)}))),qe()(this,"reset",(()=>{this.props.resetSelectedVideo()})),this.state={initialVideoId:e.mainVideoId}}renderLayout(){return this.props.isVerticalLayoutMobile?this.renderVerticalLayout():this.renderCompactLayout()}renderVerticalLayout(){const{isVideoPlaying:e,channelData:t,playerSize:n,overlaySize:r,requestPause:i,mainVideo:s,isSingleVideoView:a}=this.props;return o().createElement(DC,{playerSize:n,overlaySize:r,channelData:t,isSingleVideoView:a,isVideoPlaying:e,pauseVideo:i,onSubscribeClick:this.handleSubscribeClick,openMemberOnlyPage:this.openMemberOnlyPage,onPlayRequestedDisallowed:this.onPlayRequestedDisallowed,showLogInForm:this.showLogInForm,playVideo:this.playVideo,loadPlaybackModule:this.loadPlaybackModule,mainVideo:s})}renderCompactLayout(){const{isVideoPlaying:e,canShowChannelCover:t,appSettings:n,videoByIds:r,videoIds:i,isFetching:s,channelData:a,currentSiteUser:l,mainVideoId:c,mainVideo:u,canPlayVideoInFrame:d,isMainItemChannelCover:p,isSingleVideoView:h,overlaySize:m,playerSize:f,openVideoPage:g,selectVideo:v,resetSelectedVideo:y,requestPause:b,openSubscribeOverlayFromWidget:E,playbackModuleLoaded:S,openMobileOverlay:C}=this.props;return o().createElement(yC,{isVideoPlaying:e,canShowChannelCover:t,appSettings:n,videoByIds:r,videoIds:i,isFetching:s,channelData:a,currentSiteUser:l,mainVideoId:c,canPlayVideoInFrame:d,isMainItemChannelCover:p,isSingleVideoView:h,overlaySize:m,playerSize:f,openVideoPage:g,selectVideo:v,resetSelectedVideo:y,pauseVideo:b,openSubscribeOverlayFromWidget:()=>E(C),playbackModuleLoaded:S,openMemberOnlyPage:this.openMemberOnlyPage,playVideo:this.playVideo,onCurrentSlideChanged:this.onCurrentSlideChanged,showLogInForm:this.showLogInForm,mainVideo:u,initialVideoId:this.state.initialVideoId,onSubscribeClick:this.handleSubscribeClick,onPlayRequestedDisallowed:this.onPlayRequestedDisallowed,loadPlaybackModule:this.loadPlaybackModule})}render(){const{openMobileOverlay:e}=this.props;return o().createElement("section",{"data-hook":"widget-container","data-app-version":this.props.staticsVersion,"data-channel-layout":"mobile",className:HC},o().createElement(Un.R,{onEvent:this.processDataFromStorage}),o().createElement(_r.Z,{onSubscription:this.reset,onSubscriptionCancel:this.reset}),this.renderLayout(),o().createElement(nu,{isMobile:!0,openMobileOverlay:e}),o().createElement(Ou,null))}},qe()(ZC,"displayName","MobileView"),ZC)),qC=(0,or.F)((0,Ur.yT)((0,eS.K3)(zC))),GC="z2II8N",$C=e=>{let{children:t,viewMode:n}=e;return o().createElement("div",{className:Ot()(Fr.Z.root,GC),"data-view-mode":n,role:"presentation"},t)};var YC=n(18030);function KC(e){let{children:t,className:n,style:r,dataHook:i,portal:s=!0}=e;return((e,t)=>e?o().createElement(ya,{role:"presentation"},o().createElement(qb,null,o().createElement(YC.F,null,t))):o().createElement("div",{role:"presentation"},t))(s,o().createElement("div",{style:{...r,position:"fixed"},"data-hook":i,className:n,role:"presentation"},t))}const XC="ogeZLA",QC="TqxUls",JC="ZvLw5E",ew="xooHE8",tw="zgcrN8",nw="eC5jXH",rw="Nfnumg",ow="Z72fTP",iw="rhZXvd",sw="XZZyrq",aw="vBEHlG";var lw;const cw={...mn},uw=!0;const dw=(0,He.$j)((e=>({compId:(0,An.Qp)(e)})))((lw=class extends o().Component{constructor(e){super(e),qe()(this,"state",{open:!1,closeOnOverlayClick:uw,title:null,closeButtonLabel:null,content:null}),qe()(this,"saveRef",(e=>{this.containerRef=e})),qe()(this,"openModal",(e=>{e.compId===this.props.compId&&(e=function(e,t){let{buttons:n}=e;return n=ie().mapValues(n,(function(e,n){return e.Button?e:{...e,Button:t[n]}})),{...e,buttons:n}}(e,{primary:tn.KM,secondary:tn.kq}),e.contentType&&(e.content=cw[e.contentType]),this.setState({Header:sn,title:null,closeButtonLabel:null,content:null,closeOnOverlayClick:uw,className:ow,windowClassName:iw,contentClassName:sw,buttonsClassName:"",buttons:{},resolve:ie().noop,reject:ie().noop,noCloseButton:!1,...e}),setTimeout((()=>{this.setState({open:!0})}),0))})),qe()(this,"closeModal",(()=>new Promise((e=>{this.setState({open:!1},(()=>{setTimeout((()=>{this.setState({content:null},e)}),200)}))})))),qe()(this,"handleBackdropClick",(e=>{const{closeOnOverlayClick:t}=this.state;!e.isDefaultPrevented()&&t&&this.$modal.dismiss()})),qe()(this,"handleCloseButtonClick",(()=>{this.$modal.dismiss()})),this.containerRef=null}componentDidMount(){this.openModalUnsubscribe=Tt.Z.subscribe(Vt.Z.MODAL.OPEN,this.openModal),this.closeModalUnsubscribe=Tt.Z.subscribe(Vt.Z.MODAL.CLOSE,this.closeModal)}componentDidUpdate(e,t){if(this.state.open&&!t.open){const e=this.containerRef.style.height;this.containerRef.style.height=0,this.containerRef.focus(),this.containerRef.style.height=e}}componentWillUnmount(){this.openModalUnsubscribe(),this.closeModalUnsubscribe()}stopEventPropagation(e){e.preventDefault()}get $modal(){var e=this;const{resolve:t,reject:n}=this.state;return{resolve:e=>{t({data:e,$modal:this.$modal})},reject(e){void 0===e&&(e=an.nB),n(e)},close:e=>{this.closeModal().then((()=>t(e)))},dismiss:function(t){void 0===t&&(t=an.nB),e.closeModal().then((()=>n(t)))}}}get buttons(){const{buttons:e,buttonsClassName:t}=this.state;if(!ie().keys(e).length)return null;const n={primary:"confirmation-button",secondary:"cancellation-button"};return o().createElement("footer",{className:Ot()(t,nw)},ie().map(e,((e,t)=>{let{Button:r,label:i,onClick:s}=e;return o().createElement(r,{key:t,dataHook:n[t],label:i,type:"button",onClick:(0,$t.r)(s,this.$modal),className:rw})})))}render(){const{open:e,content:t,Header:n,title:r,closeButtonLabel:i,className:s,windowClassName:a,contentClassName:l,top:c}=this.state;if(!e&&!t)return null;const u=Ot()(s,XC,{[QC]:e&&t});return o().createElement(KC,{portal:!1,className:aw},o().createElement("div",{className:u,onClick:this.handleBackdropClick,role:"presentation"},o().createElement("section",{"data-hook":"modal-window",className:Ot()(a,JC,{[ew]:ie().isNumber(c)}),style:{top:c},role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,ref:this.saveRef,onClick:this.stopEventPropagation},n&&o().createElement(n,{title:r,closeButtonLabel:i,onButtonClick:this.handleCloseButtonClick,role:"presentation"}),o().createElement("div",{"data-hook":"modal-content",className:Ot()(l,tw),role:"presentation"},ie().isString(t)?t:o().cloneElement(t,{$modal:this.$modal})),this.buttons)))}},qe()(lw,"displayName","Modal"),qe()(lw,"defaultProps",{closeOnOverlayClick:uw}),lw)),pw={requestPause:Tp.hz},hw=(0,He.$j)((e=>({viewMode:We.At(e),selectedVideoId:e.selectedVideoId})),pw)(class extends o().Component{constructor(){super(...arguments),qe()(this,"handleViewModeChange",(e=>{let{prevViewMode:t,viewMode:n}=e;const{requestPause:r,selectedVideoId:o}=this.props;t===Eu.n.PREVIEW&&n!==t&&r(o)}))}render(){return o().createElement(br,{onChange:this.handleViewModeChange})}}),mw={requestPause:Tp.hz},fw=(0,He.$j)((e=>({viewMode:(0,We.At)(e),selectedVideoId:e.selectedVideoId,isVideoPlaying:(0,AC.sx)(e,e.selectedVideoId)})),mw)(class extends o().Component{constructor(){super(...arguments),qe()(this,"pauseVideo",(()=>{const{requestPause:e,selectedVideoId:t}=this.props;e(t)}))}renderView(){return o().createElement(o().Fragment,null,o().createElement(qC,null),o().createElement(Rn,null),o().createElement(Rr,null),o().createElement(wt.Z,null),o().createElement(Ar.Z,null),o().createElement(xr.Z,null),o().createElement(Nr.X,null),o().createElement(dw,null),o().createElement(hw,null),o().createElement(Tr,{pauseVideo:this.pauseVideo,isVideoPlaying:this.props.isVideoPlaying}))}render(){const{viewMode:e}=this.props;return o().createElement($C,{viewMode:e},this.renderView())}});var gw=n(21442);const vw=(0,r.lazy)((()=>Promise.all([n.e(805),n.e(39)]).then(n.bind(n,97535)))),yw=()=>{const{isMobileOverlayOpen:e}=(0,eS.fR)();return e?o().createElement("div",{"data-hook":"mobile-overlay-modal",style:{position:"fixed",width:nh.xP,height:"100%",top:0,left:0,right:0,bottom:0,zIndex:99999,margin:"0 auto"}},o().createElement(r.Suspense,{fallback:o().createElement(gw.Z,null)},o().createElement(vw,null))):null},bw={logWidgetSystem:Nn.e},Ew=(0,He.$j)(null,bw)(class extends o().Component{componentDidMount(){this.props.logWidgetSystem("mobile.app.initialized")}render(){return o().createElement(eS.tZ,null,o().createElement(Ur.GT,null,o().createElement(cE,null,o().createElement(qb,null,o().createElement(fw,null),o().createElement(yw,null)))))}});var Sw=n(68830);const Cw=(0,n(90313).p)({createRootReducer:Sw.Z,createRootReducerPath:68830}),ww=(0,Gb._)({createStore:Cw,Component:Ew}),Pw=e=>{const t=["Desktop","Tablet"].includes(e.host.formFactor)?uE:ww;return o().createElement(t,e)};var Iw,Ow=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};function Tw(e){return e.type===Iw.literal}function Nw(e){return e.type===Iw.argument}function Aw(e){return e.type===Iw.number}function xw(e){return e.type===Iw.date}function _w(e){return e.type===Iw.time}function Lw(e){return e.type===Iw.select}function Rw(e){return e.type===Iw.plural}function kw(e){return e.type===Iw.pound}function Dw(e){return!(!e||"object"!=typeof e||0!==e.type)}function Vw(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(Iw||(Iw={}));var Mw=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bw=function(){return Bw=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},Bw.apply(this,arguments)},Fw=function(e){function t(n,r,o,i){var s=e.call(this)||this;return s.message=n,s.expected=r,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return Mw(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+(((s=t)?'"'+r(s)+'"':"end of input")+" found.");var s},t}(Error);var Uw=function(e,t){t=void 0!==t?t:{};var n,r={},o={start:at},i=at,s=function(e){return e.join("")},a=function(e){return Bw({type:Iw.literal,value:e},xt())},l="#",c=et("#",!1),u=function(){return Bw({type:Iw.pound},xt())},d=nt("argumentElement"),p="{",h=et("{",!1),m="}",f=et("}",!1),g=function(e){return Bw({type:Iw.argument,value:e},xt())},v=nt("numberSkeletonId"),y=/^['\/{}]/,b=tt(["'","/","{","}"],!1,!1),E={type:"any"},S=nt("numberSkeletonTokenOption"),C="/",w=et("/",!1),P=function(e){return e},I=nt("numberSkeletonToken"),O=function(e,t){return{stem:e,options:t}},T=function(e){return Bw({type:0,tokens:e},xt())},N="::",A=et("::",!1),x=function(e){return e},_=function(){return Nt.push("numberArgStyle"),!0},L=function(e){return Nt.pop(),e.replace(/\s*$/,"")},R=",",k=et(",",!1),D="number",V=et("number",!1),M=function(e,t,n){return Bw({type:"number"===t?Iw.number:"date"===t?Iw.date:Iw.time,style:n&&n[2],value:e},xt())},B="'",F=et("'",!1),U=/^[^']/,j=tt(["'"],!0,!1),H=/^[^a-zA-Z'{}]/,Z=tt([["a","z"],["A","Z"],"'","{","}"],!0,!1),W=/^[a-zA-Z]/,z=tt([["a","z"],["A","Z"]],!1,!1),q=function(e){return Bw({type:1,pattern:e},xt())},G=function(){return Nt.push("dateOrTimeArgStyle"),!0},$="date",Y=et("date",!1),K="time",X=et("time",!1),Q="plural",J=et("plural",!1),ee="selectordinal",te=et("selectordinal",!1),ne="offset:",re=et("offset:",!1),oe=function(e,t,n,r){return Bw({type:Iw.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&Je('Duplicate option "'+n+'" in plural element: "'+Xe()+'"',Qe()),e[n]={value:r,location:o},e}),{})},xt())},ie="select",se=et("select",!1),ae=function(e,t){return Bw({type:Iw.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&Je('Duplicate option "'+n+'" in select element: "'+Xe()+'"',Qe()),e[n]={value:r,location:o},e}),{})},xt())},le="=",ce=et("=",!1),ue=function(e){return Nt.push("select"),!0},de=function(e,t){return Nt.pop(),Bw({id:e,value:t},xt())},pe=function(e){return Nt.push("plural"),!0},he=function(e,t){return Nt.pop(),Bw({id:e,value:t},xt())},me=nt("whitespace"),fe=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ge=tt([["\t","\r"]," ","\x85","\xa0","\u1680",["\u2000","\u200a"],"\u2028","\u2029","\u202f","\u205f","\u3000"],!1,!1),ve=nt("syntax pattern"),ye=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,be=tt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["\xa1","\xa7"],"\xa9","\xab","\xac","\xae","\xb0","\xb1","\xb6","\xbb","\xbf","\xd7","\xf7",["\u2010","\u2027"],["\u2030","\u203e"],["\u2041","\u2053"],["\u2055","\u205e"],["\u2190","\u245f"],["\u2500","\u2775"],["\u2794","\u2bff"],["\u2e00","\u2e7f"],["\u3001","\u3003"],["\u3008","\u3020"],"\u3030","\ufd3e","\ufd3f","\ufe45","\ufe46"],!1,!1),Ee=nt("optional whitespace"),Se=nt("number"),Ce="-",we=et("-",!1),Pe=function(e,t){return t?e?-t:t:0},Ie=(nt("apostrophe"),nt("double apostrophes")),Oe="''",Te=et("''",!1),Ne=function(){return"'"},Ae=function(e,t){return e+t.replace("''","'")},xe=function(e){return!("{"===e||At()&&"#"===e||Nt.length>1&&"}"===e)},_e="\n",Le=et("\n",!1),Re=function(e){return"{"===e||"}"===e||At()&&"#"===e},ke=nt("argNameOrNumber"),De=nt("argNumber"),Ve="0",Me=et("0",!1),Be=function(){return 0},Fe=/^[1-9]/,Ue=tt([["1","9"]],!1,!1),je=/^[0-9]/,He=tt([["0","9"]],!1,!1),Ze=function(e){return parseInt(e.join(""),10)},We=nt("argName"),ze=0,qe=0,Ge=[{line:1,column:1}],$e=0,Ye=[],Ke=0;if(void 0!==t.startRule){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');i=o[t.startRule]}function Xe(){return e.substring(qe,ze)}function Qe(){return ot(qe,ze)}function Je(e,t){throw function(e,t){return new Fw(e,[],"",t)}(e,t=void 0!==t?t:ot(qe,ze))}function et(e,t){return{type:"literal",text:e,ignoreCase:t}}function tt(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function nt(e){return{type:"other",description:e}}function rt(t){var n,r=Ge[t];if(r)return r;for(n=t-1;!Ge[n];)n--;for(r={line:(r=Ge[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Ge[t]=r,r}function ot(e,t){var n=rt(e),r=rt(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function it(e){ze<$e||(ze>$e&&($e=ze,Ye=[]),Ye.push(e))}function st(e,t,n){return new Fw(Fw.buildMessage(e,t),e,t,n)}function at(){return lt()}function lt(){var e,t;for(e=[],t=ct();t!==r;)e.push(t),t=ct();return e}function ct(){var t;return(t=function(){var e,t;e=ze,(t=ut())!==r&&(qe=e,t=a(t));return e=t,e}())===r&&(t=function(){var t,n,o,i;Ke++,t=ze,123===e.charCodeAt(ze)?(n=p,ze++):(n=r,0===Ke&&it(h));n!==r&&Et()!==r&&(o=It())!==r&&Et()!==r?(125===e.charCodeAt(ze)?(i=m,ze++):(i=r,0===Ke&&it(f)),i!==r?(qe=t,t=n=g(o)):(ze=t,t=r)):(ze=t,t=r);Ke--,t===r&&(n=r,0===Ke&&it(d));return t}())===r&&(t=function(){var t;t=function(){var t,n,o,i,s,a,l,c,u;t=ze,123===e.charCodeAt(ze)?(n=p,ze++):(n=r,0===Ke&&it(h));n!==r&&Et()!==r&&(o=It())!==r&&Et()!==r?(44===e.charCodeAt(ze)?(i=R,ze++):(i=r,0===Ke&&it(k)),i!==r&&Et()!==r?(e.substr(ze,6)===D?(s=D,ze+=6):(s=r,0===Ke&&it(V)),s!==r&&Et()!==r?(a=ze,44===e.charCodeAt(ze)?(l=R,ze++):(l=r,0===Ke&&it(k)),l!==r&&(c=Et())!==r?(u=function(){var t,n,o;t=ze,e.substr(ze,2)===N?(n=N,ze+=2):(n=r,0===Ke&&it(A));n!==r?(o=function(){var e,t,n;if(e=ze,t=[],n=ht(),n!==r)for(;n!==r;)t.push(n),n=ht();else t=r;t!==r&&(qe=e,t=T(t));return e=t,e}(),o!==r?(qe=t,t=n=x(o)):(ze=t,t=r)):(ze=t,t=r);t===r&&(t=ze,qe=ze,(n=(n=_())?void 0:r)!==r&&(o=ut())!==r?(qe=t,t=n=L(o)):(ze=t,t=r));return t}(),u!==r?a=l=[l,c,u]:(ze=a,a=r)):(ze=a,a=r),a===r&&(a=null),a!==r&&(l=Et())!==r?(125===e.charCodeAt(ze)?(c=m,ze++):(c=r,0===Ke&&it(f)),c!==r?(qe=t,t=n=M(o,s,a)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r);return t}(),t===r&&(t=function(){var t,n,o,i,s,a,l,c,u;t=ze,123===e.charCodeAt(ze)?(n=p,ze++):(n=r,0===Ke&&it(h));n!==r&&Et()!==r&&(o=It())!==r&&Et()!==r?(44===e.charCodeAt(ze)?(i=R,ze++):(i=r,0===Ke&&it(k)),i!==r&&Et()!==r?(e.substr(ze,4)===$?(s=$,ze+=4):(s=r,0===Ke&&it(Y)),s===r&&(e.substr(ze,4)===K?(s=K,ze+=4):(s=r,0===Ke&&it(X))),s!==r&&Et()!==r?(a=ze,44===e.charCodeAt(ze)?(l=R,ze++):(l=r,0===Ke&&it(k)),l!==r&&(c=Et())!==r?(u=function(){var t,n,o;t=ze,e.substr(ze,2)===N?(n=N,ze+=2):(n=r,0===Ke&&it(A));n!==r?(o=function(){var t,n,o,i;t=ze,n=ze,o=[],i=mt(),i===r&&(i=ft());if(i!==r)for(;i!==r;)o.push(i),(i=mt())===r&&(i=ft());else o=r;n=o!==r?e.substring(n,ze):o;n!==r&&(qe=t,n=q(n));return t=n,t}(),o!==r?(qe=t,t=n=x(o)):(ze=t,t=r)):(ze=t,t=r);t===r&&(t=ze,qe=ze,(n=(n=G())?void 0:r)!==r&&(o=ut())!==r?(qe=t,t=n=L(o)):(ze=t,t=r));return t}(),u!==r?a=l=[l,c,u]:(ze=a,a=r)):(ze=a,a=r),a===r&&(a=null),a!==r&&(l=Et())!==r?(125===e.charCodeAt(ze)?(c=m,ze++):(c=r,0===Ke&&it(f)),c!==r?(qe=t,t=n=M(o,s,a)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,o,i,s,a,l,c,u,d,g;t=ze,123===e.charCodeAt(ze)?(n=p,ze++):(n=r,0===Ke&&it(h));if(n!==r)if(Et()!==r)if((o=It())!==r)if(Et()!==r)if(44===e.charCodeAt(ze)?(i=R,ze++):(i=r,0===Ke&&it(k)),i!==r)if(Et()!==r)if(e.substr(ze,6)===Q?(s=Q,ze+=6):(s=r,0===Ke&&it(J)),s===r&&(e.substr(ze,13)===ee?(s=ee,ze+=13):(s=r,0===Ke&&it(te))),s!==r)if(Et()!==r)if(44===e.charCodeAt(ze)?(a=R,ze++):(a=r,0===Ke&&it(k)),a!==r)if(Et()!==r)if(l=ze,e.substr(ze,7)===ne?(c=ne,ze+=7):(c=r,0===Ke&&it(re)),c!==r&&(u=Et())!==r&&(d=St())!==r?l=c=[c,u,d]:(ze=l,l=r),l===r&&(l=null),l!==r)if((c=Et())!==r){if(u=[],(d=vt())!==r)for(;d!==r;)u.push(d),d=vt();else u=r;u!==r&&(d=Et())!==r?(125===e.charCodeAt(ze)?(g=m,ze++):(g=r,0===Ke&&it(f)),g!==r?(qe=t,t=n=oe(o,s,l,u)):(ze=t,t=r)):(ze=t,t=r)}else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;return t}())===r&&(t=function(){var t,n,o,i,s,a,l,c,u;t=ze,123===e.charCodeAt(ze)?(n=p,ze++):(n=r,0===Ke&&it(h));if(n!==r)if(Et()!==r)if((o=It())!==r)if(Et()!==r)if(44===e.charCodeAt(ze)?(i=R,ze++):(i=r,0===Ke&&it(k)),i!==r)if(Et()!==r)if(e.substr(ze,6)===ie?(s=ie,ze+=6):(s=r,0===Ke&&it(se)),s!==r)if(Et()!==r)if(44===e.charCodeAt(ze)?(a=R,ze++):(a=r,0===Ke&&it(k)),a!==r)if(Et()!==r){if(l=[],(c=gt())!==r)for(;c!==r;)l.push(c),c=gt();else l=r;l!==r&&(c=Et())!==r?(125===e.charCodeAt(ze)?(u=m,ze++):(u=r,0===Ke&&it(f)),u!==r?(qe=t,t=n=ae(o,l)):(ze=t,t=r)):(ze=t,t=r)}else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;else ze=t,t=r;return t}())===r&&(t=function(){var t,n;t=ze,35===e.charCodeAt(ze)?(n=l,ze++):(n=r,0===Ke&&it(c));n!==r&&(qe=t,n=u());return t=n,t}()),t}function ut(){var e,t,n;if(e=ze,t=[],(n=Ct())===r&&(n=wt())===r&&(n=Pt()),n!==r)for(;n!==r;)t.push(n),(n=Ct())===r&&(n=wt())===r&&(n=Pt());else t=r;return t!==r&&(qe=e,t=s(t)),e=t}function dt(){var t,n,o,i,s;if(Ke++,t=ze,n=[],o=ze,i=ze,Ke++,(s=yt())===r&&(y.test(e.charAt(ze))?(s=e.charAt(ze),ze++):(s=r,0===Ke&&it(b))),Ke--,s===r?i=void 0:(ze=i,i=r),i!==r?(e.length>ze?(s=e.charAt(ze),ze++):(s=r,0===Ke&&it(E)),s!==r?o=i=[i,s]:(ze=o,o=r)):(ze=o,o=r),o!==r)for(;o!==r;)n.push(o),o=ze,i=ze,Ke++,(s=yt())===r&&(y.test(e.charAt(ze))?(s=e.charAt(ze),ze++):(s=r,0===Ke&&it(b))),Ke--,s===r?i=void 0:(ze=i,i=r),i!==r?(e.length>ze?(s=e.charAt(ze),ze++):(s=r,0===Ke&&it(E)),s!==r?o=i=[i,s]:(ze=o,o=r)):(ze=o,o=r);else n=r;return t=n!==r?e.substring(t,ze):n,Ke--,t===r&&(n=r,0===Ke&&it(v)),t}function pt(){var t,n,o;return Ke++,t=ze,47===e.charCodeAt(ze)?(n=C,ze++):(n=r,0===Ke&&it(w)),n!==r&&(o=dt())!==r?(qe=t,t=n=P(o)):(ze=t,t=r),Ke--,t===r&&(n=r,0===Ke&&it(S)),t}function ht(){var e,t,n,o;if(Ke++,e=ze,Et()!==r)if((t=dt())!==r){for(n=[],o=pt();o!==r;)n.push(o),o=pt();n!==r?(qe=e,e=O(t,n)):(ze=e,e=r)}else ze=e,e=r;else ze=e,e=r;return Ke--,e===r&&(r,0===Ke&&it(I)),e}function mt(){var t,n,o,i;if(t=ze,39===e.charCodeAt(ze)?(n=B,ze++):(n=r,0===Ke&&it(F)),n!==r){if(o=[],(i=Ct())===r&&(U.test(e.charAt(ze))?(i=e.charAt(ze),ze++):(i=r,0===Ke&&it(j))),i!==r)for(;i!==r;)o.push(i),(i=Ct())===r&&(U.test(e.charAt(ze))?(i=e.charAt(ze),ze++):(i=r,0===Ke&&it(j)));else o=r;o!==r?(39===e.charCodeAt(ze)?(i=B,ze++):(i=r,0===Ke&&it(F)),i!==r?t=n=[n,o,i]:(ze=t,t=r)):(ze=t,t=r)}else ze=t,t=r;if(t===r)if(t=[],(n=Ct())===r&&(H.test(e.charAt(ze))?(n=e.charAt(ze),ze++):(n=r,0===Ke&&it(Z))),n!==r)for(;n!==r;)t.push(n),(n=Ct())===r&&(H.test(e.charAt(ze))?(n=e.charAt(ze),ze++):(n=r,0===Ke&&it(Z)));else t=r;return t}function ft(){var t,n;if(t=[],W.test(e.charAt(ze))?(n=e.charAt(ze),ze++):(n=r,0===Ke&&it(z)),n!==r)for(;n!==r;)t.push(n),W.test(e.charAt(ze))?(n=e.charAt(ze),ze++):(n=r,0===Ke&&it(z));else t=r;return t}function gt(){var t,n,o,i,s;return t=ze,Et()!==r&&(n=Tt())!==r&&Et()!==r?(123===e.charCodeAt(ze)?(o=p,ze++):(o=r,0===Ke&&it(h)),o!==r?(qe=ze,(ue(n)?void 0:r)!==r&&(i=lt())!==r?(125===e.charCodeAt(ze)?(s=m,ze++):(s=r,0===Ke&&it(f)),s!==r?(qe=t,t=de(n,i)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r),t}function vt(){var t,n,o,i,s;return t=ze,Et()!==r?(n=function(){var t,n,o,i;return t=ze,n=ze,61===e.charCodeAt(ze)?(o=le,ze++):(o=r,0===Ke&&it(ce)),o!==r&&(i=St())!==r?n=o=[o,i]:(ze=n,n=r),(t=n!==r?e.substring(t,ze):n)===r&&(t=Tt()),t}(),n!==r&&Et()!==r?(123===e.charCodeAt(ze)?(o=p,ze++):(o=r,0===Ke&&it(h)),o!==r?(qe=ze,(pe(n)?void 0:r)!==r&&(i=lt())!==r?(125===e.charCodeAt(ze)?(s=m,ze++):(s=r,0===Ke&&it(f)),s!==r?(qe=t,t=he(n,i)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r)):(ze=t,t=r),t}function yt(){var t;return Ke++,fe.test(e.charAt(ze))?(t=e.charAt(ze),ze++):(t=r,0===Ke&&it(ge)),Ke--,t===r&&(r,0===Ke&&it(me)),t}function bt(){var t;return Ke++,ye.test(e.charAt(ze))?(t=e.charAt(ze),ze++):(t=r,0===Ke&&it(be)),Ke--,t===r&&(r,0===Ke&&it(ve)),t}function Et(){var t,n,o;for(Ke++,t=ze,n=[],o=yt();o!==r;)n.push(o),o=yt();return t=n!==r?e.substring(t,ze):n,Ke--,t===r&&(n=r,0===Ke&&it(Ee)),t}function St(){var t,n,o;return Ke++,t=ze,45===e.charCodeAt(ze)?(n=Ce,ze++):(n=r,0===Ke&&it(we)),n===r&&(n=null),n!==r&&(o=Ot())!==r?(qe=t,t=n=Pe(n,o)):(ze=t,t=r),Ke--,t===r&&(n=r,0===Ke&&it(Se)),t}function Ct(){var t,n;return Ke++,t=ze,e.substr(ze,2)===Oe?(n=Oe,ze+=2):(n=r,0===Ke&&it(Te)),n!==r&&(qe=t,n=Ne()),Ke--,(t=n)===r&&(n=r,0===Ke&&it(Ie)),t}function wt(){var t,n,o,i,s,a;if(t=ze,39===e.charCodeAt(ze)?(n=B,ze++):(n=r,0===Ke&&it(F)),n!==r)if(o=function(){var t,n,o,i;t=ze,n=ze,e.length>ze?(o=e.charAt(ze),ze++):(o=r,0===Ke&&it(E));o!==r?(qe=ze,(i=(i=Re(o))?void 0:r)!==r?n=o=[o,i]:(ze=n,n=r)):(ze=n,n=r);t=n!==r?e.substring(t,ze):n;return t}(),o!==r){for(i=ze,s=[],e.substr(ze,2)===Oe?(a=Oe,ze+=2):(a=r,0===Ke&&it(Te)),a===r&&(U.test(e.charAt(ze))?(a=e.charAt(ze),ze++):(a=r,0===Ke&&it(j)));a!==r;)s.push(a),e.substr(ze,2)===Oe?(a=Oe,ze+=2):(a=r,0===Ke&&it(Te)),a===r&&(U.test(e.charAt(ze))?(a=e.charAt(ze),ze++):(a=r,0===Ke&&it(j)));(i=s!==r?e.substring(i,ze):s)!==r?(39===e.charCodeAt(ze)?(s=B,ze++):(s=r,0===Ke&&it(F)),s===r&&(s=null),s!==r?(qe=t,t=n=Ae(o,i)):(ze=t,t=r)):(ze=t,t=r)}else ze=t,t=r;else ze=t,t=r;return t}function Pt(){var t,n,o,i;return t=ze,n=ze,e.length>ze?(o=e.charAt(ze),ze++):(o=r,0===Ke&&it(E)),o!==r?(qe=ze,(i=(i=xe(o))?void 0:r)!==r?n=o=[o,i]:(ze=n,n=r)):(ze=n,n=r),n===r&&(10===e.charCodeAt(ze)?(n=_e,ze++):(n=r,0===Ke&&it(Le))),t=n!==r?e.substring(t,ze):n}function It(){var t,n;return Ke++,t=ze,(n=Ot())===r&&(n=Tt()),t=n!==r?e.substring(t,ze):n,Ke--,t===r&&(n=r,0===Ke&&it(ke)),t}function Ot(){var t,n,o,i,s;if(Ke++,t=ze,48===e.charCodeAt(ze)?(n=Ve,ze++):(n=r,0===Ke&&it(Me)),n!==r&&(qe=t,n=Be()),(t=n)===r){if(t=ze,n=ze,Fe.test(e.charAt(ze))?(o=e.charAt(ze),ze++):(o=r,0===Ke&&it(Ue)),o!==r){for(i=[],je.test(e.charAt(ze))?(s=e.charAt(ze),ze++):(s=r,0===Ke&&it(He));s!==r;)i.push(s),je.test(e.charAt(ze))?(s=e.charAt(ze),ze++):(s=r,0===Ke&&it(He));i!==r?n=o=[o,i]:(ze=n,n=r)}else ze=n,n=r;n!==r&&(qe=t,n=Ze(n)),t=n}return Ke--,t===r&&(n=r,0===Ke&&it(De)),t}function Tt(){var t,n,o,i,s;if(Ke++,t=ze,n=[],o=ze,i=ze,Ke++,(s=yt())===r&&(s=bt()),Ke--,s===r?i=void 0:(ze=i,i=r),i!==r?(e.length>ze?(s=e.charAt(ze),ze++):(s=r,0===Ke&&it(E)),s!==r?o=i=[i,s]:(ze=o,o=r)):(ze=o,o=r),o!==r)for(;o!==r;)n.push(o),o=ze,i=ze,Ke++,(s=yt())===r&&(s=bt()),Ke--,s===r?i=void 0:(ze=i,i=r),i!==r?(e.length>ze?(s=e.charAt(ze),ze++):(s=r,0===Ke&&it(E)),s!==r?o=i=[i,s]:(ze=o,o=r)):(ze=o,o=r);else n=r;return t=n!==r?e.substring(t,ze):n,Ke--,t===r&&(n=r,0===Ke&&it(We)),t}var Nt=["root"];function At(){return"plural"===Nt[Nt.length-1]}function xt(){return t&&t.captureLocation?{location:Qe()}:{}}if((n=i())!==r&&ze===e.length)return n;throw n!==r&&ze<e.length&&it({type:"end"}),st(Ye,$e<e.length?e.charAt($e):null,$e<e.length?ot($e,$e+1):ot($e,$e))},jw=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},Hw=/(^|[^\\])#/g;function Zw(e){e.forEach((function(e){(Rw(e)||Lw(e))&&Object.keys(e.options).forEach((function(t){for(var n,r=e.options[t],o=-1,i=void 0,s=0;s<r.value.length;s++){var a=r.value[s];if(Tw(a)&&Hw.test(a.value)){o=s,i=a;break}}if(i){var l=i.value.replace(Hw,"$1{"+e.value+", number}"),c=Uw(l);(n=r.value).splice.apply(n,jw([o,1],c))}Zw(r.value)}))}))}function Ww(e,t){var n=Uw(e,t);return t&&!1===t.normalizeHashtagInPlural||Zw(n),n}var zw=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r};function qw(e){return JSON.stringify(e.map((function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map((function(e){var n;return(n={})[e]=t[e],n}))):e;var t})))}const Gw=function(e,t){return void 0===t&&(t={}),function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=qw(r),s=i&&t[i];return s||(s=new((n=e).bind.apply(n,zw([void 0],r))),i&&(t[i]=s)),s}};var $w=function(){return $w=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},$w.apply(this,arguments)},Yw=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Kw(e){var t={};return e.replace(Yw,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),t}var Xw=/^\.(?:(0+)(\+|#+)?)?$/g,Qw=/^(@+)?(\+|#+)?$/g;function Jw(e){var t={};return e.replace(Qw,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function eP(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function tP(e){var t=eP(e);return t||{}}function nP(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=$w($w($w({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return $w($w({},e),tP(t))}),{}));continue;case"engineering":t=$w($w($w({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return $w($w({},e),tP(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue}if(Xw.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Xw,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),o.options.length&&(t=$w($w({},t),Jw(o.options[0])))}else if(Qw.test(o.stem))t=$w($w({},t),Jw(o.stem));else{var i=eP(o.stem);i&&(t=$w($w({},t),i))}}return t}var rP,oP=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iP=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},sP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.variableId=n,r}return oP(t,e),t}(Error);function aP(e,t,n,r,o,i,s){if(1===e.length&&Tw(e[0]))return[{type:0,value:e[0].value}];for(var a,l=[],c=0,u=e;c<u.length;c++){var d=u[c];if(Tw(d))l.push({type:0,value:d.value});else if(kw(d))"number"==typeof i&&l.push({type:0,value:n.getNumberFormat(t).format(i)});else{var p=d.value;if(!o||!(p in o))throw new sP('The intl string context variable "'+p+'" was not provided to the string "'+s+'"');var h=o[p];if(Nw(d))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),l.push({type:1,value:h});else if(xw(d)){var m="string"==typeof d.style?r.date[d.style]:void 0;l.push({type:0,value:n.getDateTimeFormat(t,m).format(h)})}else if(_w(d)){m="string"==typeof d.style?r.time[d.style]:Vw(d.style)?Kw(d.style.pattern):void 0;l.push({type:0,value:n.getDateTimeFormat(t,m).format(h)})}else if(Aw(d)){m="string"==typeof d.style?r.number[d.style]:Dw(d.style)?nP(d.style.tokens):void 0;l.push({type:0,value:n.getNumberFormat(t,m).format(h)})}else if(Lw(d)){if(!(f=d.options[h]||d.options.other))throw new RangeError('Invalid values for "'+d.value+'": "'+h+'". Options are "'+Object.keys(d.options).join('", "')+'"');l.push.apply(l,aP(f.value,t,n,r,o))}else if(Rw(d)){var f;if(!(f=d.options["="+h])){if(!Intl.PluralRules)throw new sP('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var g=n.getPluralRules(t,{type:d.pluralType}).select(h-(d.offset||0));f=d.options[g]||d.options.other}if(!f)throw new RangeError('Invalid values for "'+d.value+'": "'+h+'". Options are "'+Object.keys(d.options).join('", "')+'"');l.push.apply(l,aP(f.value,t,n,r,o,h-(d.offset||0)))}else;}}return(a=l).length<2?a:a.reduce((function(e,t){var n=e[e.length-1];return n&&0===n.type&&0===t.type?n.value+=t.value:e.push(t),e}),[])}var lP=/@@(\d+_\d+)@@/g,cP=0;function uP(e,t){return e.split(lP).filter(Boolean).map((function(e){return null!=t[e]?t[e]:e})).reduce((function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e}),[])}var dP=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,pP=Date.now()+"@@",hP=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function mP(e,t,n){var r=e.tagName,o=e.outerHTML,i=e.textContent,s=e.childNodes;if(!r)return uP(i||"",t);r=r.toLowerCase();var a=~hP.indexOf(r),l=n[r];if(l&&a)throw new sP(r+" is a self-closing tag and can not be used, please use another tag name.");if(!s.length)return[o];var c=Array.prototype.slice.call(s).reduce((function(e,r){return e.concat(mP(r,t,n))}),[]);return l?"function"==typeof l?[l.apply(void 0,c)]:[l]:iP(["<"+r+">"],c,["</"+r+">"])}function fP(e,t,n,r,o,i){var s=aP(e,t,n,r,o,void 0,i),a={},l=s.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++cP;return a[n]=t.value,e+"@@"+n+"@@"}),"");if(!dP.test(l))return uP(l,a);if(!o)throw new sP("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new sP("Cannot format XML message without DOMParser");rP||(rP=new DOMParser);var c=rP.parseFromString('<formatted-message id="'+pP+'">'+l+"</formatted-message>","text/html").getElementById(pP);if(!c)throw new sP("Malformed HTML message "+l);var u=Object.keys(o).filter((function(e){return!!c.getElementsByTagName(e).length}));if(!u.length)return uP(l,a);var d=u.filter((function(e){return e!==e.toLowerCase()}));if(d.length)throw new sP("HTML tag must be lowercased but the following tags are not: "+d.join(", "));return Array.prototype.slice.call(c.childNodes).reduce((function(e,t){return e.concat(mP(t,a,o))}),[])}var gP=function(){return gP=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},gP.apply(this,arguments)};function vP(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?gP(gP(gP({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=gP(gP({},o[t]),i[t]||{}),e}),{})):o),n}),gP({},e)):e}var yP=function(){function e(t,n,r,o){var i=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,n,r,o,i){var s=aP(e,t,n,r,o,void 0,i);return 1===s.length?s[0].value:s.reduce((function(e,t){return e+t.value}),"")}(i.ast,i.locales,i.formatters,i.formats,e,i.message)},this.formatToParts=function(e){return aP(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.formatHTMLMessage=function(e){return fP(i.ast,i.locales,i.formatters,i.formats,e,i.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=vP(e.formats,r),this.locales=n,this.formatters=o&&o.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Gw(Intl.NumberFormat,e.number),getDateTimeFormat:Gw(Intl.DateTimeFormat,e.dateTime),getPluralRules:Gw(Intl.PluralRules,e.pluralRules)}}(this.formatterCache)}return e.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,e.__parse=Ww,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const bP=yP;function EP(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=e[t]}return o()?{}:{obj:e,k:r(i.shift())}}const SP=[],CP=SP.forEach,wP=SP.slice;class PP{constructor(e){this.type="i18nFormat",this.mem={},this.init(null,e)}init(e,t){const n=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return CP.call(wP.call(arguments,1),(function(t){if(t)for(const n in t)void 0===e[n]&&(e[n]=t[n])})),e}(n,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:void 0,parseErrorHandler:(e,t,n)=>n}),this.formats=this.options?.formats,e){const{bindI18n:t,bindI18nStore:n,memoize:r}=this.options;e.IntlMessageFormat=bP,e.ICU=this,r&&(t&&e.on(t,(()=>this.clearCache())),n&&e.store.on(n,(()=>this.clearCache())))}this.options?.localeData&&("[object Array]"===Object.prototype.toString.apply(this.options.localeData)?this.options.localeData.forEach((e=>this.addLocaleData(e))):this.addLocaleData(this.options.localeData))}addLocaleData(e){(Array.isArray(e)?e:[e]).forEach((e=>{e&&e.locale&&bP.__addLocaleData(e)}))}addUserDefinedFormats(e){this.formats=this.formats?{...this.formats,...e}:e}parse(e,t,n,r,o,i){const s=i&&i.resolved&&i.resolved.res,a=this.options?.memoize&&`${n}.${r}.${o.replace(/\./g,"###")}`;let l;this.options?.memoize&&(l=function(e,t){const{obj:n,k:r}=EP(e,t);if(n)return n[r]}(this.mem,a));try{return l||(l=new bP(e,n,this.formats),this.options?.memoize&&(this.options.memoizeFallback||!i||s)&&function(e,t,n){const{obj:r,k:o}=EP(e,t,Object);r[o]=n}(this.mem,a,l)),l.format(t)}catch(n){return this.options?.parseErrorHandler?.(n,o,e,t)}}addLookupKeys(e){return e}clearCache(){this.mem={}}}PP.type="i18nFormat";const IP=PP;var OP=n(86522);function TP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){(0,Ii.Z)(e,t,n[t])}))}return e}var NP=n(9249),AP=n(87371);function xP(e,t){if(t&&("object"==(0,OP.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,Pi.Z)(e)}function _P(e){return _P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_P(e)}var LP=n(88960);function RP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,LP.Z)(e,t)}var kP={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},DP=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,NP.Z)(this,e),this.init(t,n)}return(0,AP.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||kP,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,TP({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),VP=function(){function e(){(0,NP.Z)(this,e),this.observers={}}return(0,AP.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function MP(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function BP(e){return null==e?"":""+e}function FP(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var s=r(i.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function UP(e,t,n){var r=FP(e,t,Object);r.obj[r.k]=n}function jP(e,t){var n=FP(e,t),r=n.obj,o=n.k;if(r)return r[o]}function HP(e,t,n){var r=jP(e,n);return void 0!==r?r:jP(t,n)}function ZP(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):ZP(e[r],t[r],n):e[r]=t[r]);return e}function WP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function qP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return zP[e]})):e}var GP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$P=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,NP.Z)(this,t),n=xP(this,_P(t).call(this)),GP&&VP.call((0,Pi.Z)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return RP(t,e),(0,AP.Z)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),jP(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var s=[e,t];n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(s=e.split("."))[1]),this.addNamespaces(t),UP(this.data,s,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var a=jP(this.data,s)||{};r?ZP(a,n,o):a=TP({},a,n),UP(this.data,s,a),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?TP({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(VP),YP={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},KP={},XP=function(e){function t(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,NP.Z)(this,t),n=xP(this,_P(t).call(this)),GP&&VP.call((0,Pi.Z)(n)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=e,i=(0,Pi.Z)(n),r.forEach((function(e){o[e]&&(i[e]=o[e])})),n.options=s,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=DP.create("translator"),n}return RP(t,e),(0,AP.Z)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==(0,OP.Z)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),a=s.key,l=s.namespaces,c=l[l.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+a}return a}var h=this.resolve(e,n),m=h&&h.res,f=h&&h.usedKey||a,g=h&&h.exactUsedKey||a,v=Object.prototype.toString.apply(m),y=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&m&&("string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(v)<0&&("string"!=typeof y||"[object Array]"!==v)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,m,n):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===v,S=E?[]:{},C=E?g:f;for(var w in m)if(Object.prototype.hasOwnProperty.call(m,w)){var P="".concat(C).concat(i).concat(w);S[w]=this.translate(P,TP({},n,{joinArrays:!1,ns:l})),S[w]===P&&(S[w]=m[w])}m=S}}else if(b&&"string"==typeof y&&"[object Array]"===v)(m=m.join(y))&&(m=this.extendTranslation(m,e,n,r));else{var I=!1,O=!1,T=void 0!==n.count&&"string"!=typeof n.count,N=t.hasDefaultValue(n),A=T?this.pluralResolver.getSuffix(u,n.count):"",x=n["defaultValue".concat(A)]||n.defaultValue;!this.isValidLookup(m)&&N&&(I=!0,m=x),this.isValidLookup(m)||(O=!0,m=a);var _=N&&x!==m&&this.options.updateMissing;if(O||I||_){if(this.logger.log(_?"updateKey":"missingKey",u,c,a,_?x:m),i){var L=this.resolve(a,TP({},n,{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&k&&k[0])for(var D=0;D<k.length;D++)R.push(k[D]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);var V=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,t,_?r:m,_,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,t,_?r:m,_,n),o.emit("missingKey",e,c,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?R.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){V([e],a+t,n["defaultValue".concat(t)]||x)}))})):V(R,a,x))}m=this.extendTranslation(m,e,n,h,r),O&&m===a&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(a)),O&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(TP({},n,{interpolation:TP({},this.options.interpolation,n.interpolation)}));var s,a=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(a){var l=e.match(this.interpolator.nestingRegexp);s=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=TP({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),a){var u=e.match(this.interpolator.nestingRegexp);s<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=YP.handle(p,e,t,this.options&&this.options.postProcessPassResolved?TP({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,s=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!s.isValidLookup(t)){var l=s.extractFromKey(e,a),c=l.key;n=c;var u=l.namespaces;s.options.fallbackNS&&(u=u.concat(s.options.fallbackNS));var d=void 0!==a.count&&"string"!=typeof a.count,p=void 0!==a.context&&"string"==typeof a.context&&""!==a.context,h=a.lngs?a.lngs:s.languageUtils.toResolveHierarchy(a.lng||s.language,a.fallbackLng);u.forEach((function(e){s.isValidLookup(t)||(i=e,!KP["".concat(h[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(i)&&(KP["".concat(h[0],"-").concat(e)]=!0,s.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!s.isValidLookup(t)){o=n;var i,l,u=c,h=[u];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(h,c,n,e,a);else d&&(i=s.pluralResolver.getSuffix(n,a.count)),d&&p&&h.push(u+i),p&&h.push(u+="".concat(s.options.contextSeparator).concat(a.context)),d&&h.push(u+=i);for(;l=h.pop();)s.isValidLookup(t)||(r=l,t=s.getResource(n,e,l,a))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),t}(VP);function QP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var JP=function(){function e(t){(0,NP.Z)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=DP.create("languageUtils")}return(0,AP.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=QP(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=QP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=QP(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),eI=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],tI={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var nI=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,NP.Z)(this,e),this.languageUtils=t,this.options=r,this.logger=DP.create("pluralResolver"),this.rules=(n={},eI.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:tI[e.fc]}}))})),n)}return(0,AP.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var s=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):s():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),rI=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,NP.Z)(this,e),this.logger=DP.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,AP.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:qP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?WP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?WP(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?WP(t.nestingPrefix):t.nestingPrefixEscaped||WP("$t("),this.nestingSuffix=t.nestingSuffix?WP(t.nestingSuffix):t.nestingSuffixEscaped||WP(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,s,a=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(a.formatSeparator)<0){var o=HP(t,l,e);return a.alwaysFormat?a.format(o,void 0,n):o}var i=e.split(a.formatSeparator),s=i.shift().trim(),c=i.join(a.formatSeparator).trim();return a.format(HP(t,l,s),c,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return a.escapeValue?c(a.escape(e)):c(e)}}].forEach((function(t){for(s=0;o=t.regex.exec(e);){if(void 0===(i=u(o[1].trim())))if("function"==typeof d){var n=d(e,o,r);i="string"==typeof n?n:""}else{if(p){i=o[0];continue}a.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||a.useRawValueToEscape||(i=BP(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++s>=a.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=TP({},i);function a(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,s)).replace(/'/g,'"');try{s=JSON.parse(o),t&&(s=TP({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(a.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=BP(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var oI=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,NP.Z)(this,t),o=xP(this,_P(t).call(this)),GP&&VP.call((0,Pi.Z)(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=DP.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return RP(t,e),(0,AP.Z)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],s=[],a=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var a="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[a]=2:o.state[a]<0||(1===o.state[a]?s.indexOf(a)<0&&s.push(a):(o.state[a]=1,r=!1,s.indexOf(a)<0&&s.push(a),i.indexOf(a)<0&&i.push(a),l.indexOf(t)<0&&l.push(t)))})),r||a.push(e)})),(i.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:i,pending:s,toLoadLanguages:a,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var s={};this.queue.forEach((function(n){var r,a,l,c,u,d;r=n.loaded,a=i,c=FP(r,[o],Object),u=c.obj,d=c.k,u[d]=u[d]||[],l&&(u[d]=u[d].concat(a)),l||u[d].push(a),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){s[e]||(s[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){s[e].indexOf(t)<0&&s[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(a,l){a&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,s)}),i):s(a,l)})):s(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,s){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&s&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),s),t.loaded(e,r,s)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,TP({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(VP);function iI(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function sI(){}var aI=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,NP.Z)(this,t),e=xP(this,_P(t).call(this)),GP&&VP.call((0,Pi.Z)(e)),e.options=iI(n),e.services={},e.logger=DP,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),xP(e,(0,Pi.Z)(e));setTimeout((function(){e.init(n,r)}),0)}return e}return RP(t,e),(0,AP.Z)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=TP({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,OP.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,OP.Z)(e[2])||"object"===(0,OP.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,iI(t)),this.format=this.options.interpolation.format,n||(n=sI),!this.options.isClone){this.modules.logger?DP.init(r(this.modules.logger),this.options):DP.init(null,this.options);var o=new JP(this.options);this.store=new $P(this.options.resources,this.options);var i=this.services;i.logger=DP,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new nI(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new rI(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new oI(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new XP(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var a=MP(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),a.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sI,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=MP();return e||(e=this.languages),t||(t=this.options.ns),n||(n=sI),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&YP.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=MP();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==(0,OP.Z)(r)){for(var i=arguments.length,s=new Array(i>2?i-2:0),a=2;a<i;a++)s[a-2]=arguments[a];o=n.options.overloadTranslationOptionHandler([t,r].concat(s))}else o=TP({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var a=n.precheck(this,s);if(void 0!==a)return a}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!s(r,e)||o&&!s(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=MP();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=MP();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sI,o=TP({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=TP({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new XP(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(VP);const lI=new aI;var cI,uI=function({icuOptions:e={},...t}){const{parseErrorHandler:n}=t;return function({locale:e,asyncMessagesLoader:t,messages:n,useSuspense:r=!1,wait:o,disableAutoInit:i=!1,bindI18n:s},{icu:a}={}){const l={lng:e,fallbackLng:"en",keySeparator:!1,react:{useSuspense:r,bindI18n:s,wait:o},_polyfill:{isLoading:!1}},c=lI.createInstance(i?l:void 0);return a&&c.use(a),t&&c.use({type:"backend",read:async(e,n,r)=>{try{return r(null,await t(e))}catch(e){return r(e,null)}}}),n&&(l.resources={[e]:{translation:n}}),i||c.init(l),c}(t,{icu:new IP({parseErrorHandler:n,bindI18n:t.bindI18n,...e})})};!function(e){e.Default="",e.OwnerAccount="owner-account"}(cI||(cI={}));var dI="__WIXEXP_USE_NEW_API",pI="__WIXEXP_CONDUCTION_METHOD_",hI="__WIXEXP_OWNER_ACCOUNT_ID_",mI="__WIXEXP_LOGGED_IN_USER_ID_";function fI(e,t,n){var r,o;if("undefined"!=typeof self)if("function"==typeof n){if(void 0!==n(self[t]))return(r={})[e]=n(self[t]),r}else if(typeof self[t]===n)return(o={})[e]=self[t],o;return{}}var gI=function(e){return Object.keys(cI).filter((function(t){return cI[t]===e})).length>0?e:void 0};function vI(e){return function(e){return e.conductionMethod===cI.OwnerAccount&&e.siteOwnerId&&e.loggedInUserId}(e)?{forSiteOwner:{siteOwnerId:e.siteOwnerId,loggedInUserId:e.loggedInUserId}}:{}}var yI=function(e){return"string"==typeof e&&""!==e};function bI(e){void 0===e&&(e={});var t=e.forSiteOwner,n=e.forSiteVisitors,r=e.overrideCriteria,o="";if(["forSiteOwner","forSiteVisitors"].reduce((function(t,n){return e[n]?t+1:t}),0)>1)throw new Error('Only one of "forSiteOwner" or "forSiteVisitors" is accepted.');return t&&(o+=function(e){return yI(e.loggedInUserId)&&yI(e.siteOwnerId)?"&"+"requestContext.forSiteOwner.loggedInUserId=".concat(e.loggedInUserId,"&")+"requestContext.forSiteOwner.siteOwnerId=".concat(e.siteOwnerId):""}(t)),n&&(o+=function(e){return yI(e.visitorId)&&yI(e.siteOwnerId)?"&"+"requestContext.forSiteVisitors.visitorId=".concat(e.visitorId,"&")+"requestContext.forSiteVisitors.siteOwnerId=".concat(e.siteOwnerId):""}(n)),r&&(o+=function(e){return yI(e.entityId)?"&requestContext.overrideCriteria.entityId=".concat(e.entityId):""}(r)),o}function EI(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}var SI={conductAllInScope:"/_api/wix-laboratory-server/v1/laboratory/platform/conductAllInScope",conductExperiment:"/_api/wix-laboratory-server/v1/laboratory/platform/conductExperiment"},CI={conductAllInScope:"/_api/wix-laboratory-server/laboratory/conductAllInScope",conductExperiment:"/_api/wix-laboratory-server/laboratory/conductExperiment"};function wI(e,t){return-1!==e.indexOf(t?SI.conductAllInScope:CI.conductAllInScope)}var PI=function(e,t,n){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n=!1),n?"".concat(SI.conductExperiment,"?key=").concat(encodeURIComponent(e),"&fallbackValue=").concat(encodeURIComponent(t)):"".concat(CI.conductExperiment,"?key=").concat(encodeURIComponent(e),"&fallback=").concat(encodeURIComponent(t))};function II(e,t,n){var r="".concat(PI(t,"",n));return e.includes(r)}var OI=function(){function e(){this.urlMap=new Map,this.pendingUrlMap=new Map}return e.prototype.addUrlRequest=function(e,t){return(0,f.__awaiter)(this,void 0,void 0,(function(){var n=this;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return this.pendingUrlMap.set(e,t),[4,t.then((function(t){return n.addUrlResponse(e,t)}))];case 1:return r.sent(),[2]}}))}))},e.prototype.addUrlResponse=function(e,t){this.urlMap.set(e,t)},e.prototype.getUrlResponse=function(e){return this.urlMap.get(e)},e.prototype.getUrlRequest=function(e){return this.pendingUrlMap.get(e)},e.prototype.getExperimentValue=function(e,t){var n,r;try{for(var o=(0,f.__values)(this.urlMap.keys()),i=o.next();!i.done;i=o.next()){var s=i.value;if(II(s,e,t))return this.urlMap.get(s);if(wI(s,t)){var a=EI(this.urlMap.get(s));if("object"==typeof a&&e in a)return a[e]}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e}();!function(){function e(){}e.prototype.addUrlRequest=function(){},e.prototype.addUrlResponse=function(){},e.prototype.getUrlResponse=function(){},e.prototype.getUrlRequest=function(){},e.prototype.getExperimentValue=function(){}}();function TI(){return void 0===self.experimentsCacheV2&&(self.experimentsCacheV2=new OI),self.experimentsCacheV2}var NI=n(6856);var AI=n(41891),xI=function(){},_I=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,r=(0,f.__assign)((0,f.__assign)((0,f.__assign)((0,f.__assign)({},fI("useNewApi",dI,"boolean")),fI("conductionMethod",pI,gI)),fI("siteOwnerId",hI,"string")),fI("loggedInUserId",mI,"string"));return n.useNewApi=void 0!==t.useNewApi?t.useNewApi:r.useNewApi||!1,n.experiments=t.experiments||{},n.loaders=new Map,n.baseUrl=(n.useNewApi,t.baseUrl||""),n.requestContext=t.requestContext||vI(r),n.onError=t.onError||xI,t.scope&&n.load(t.scope),t.scopes&&t.scopes.forEach(n.load.bind(n)),n}return(0,f.__extends)(t,e),t.prototype.add=function(e){this.experiments=(0,f.__assign)((0,f.__assign)({},this.experiments),e)},t.prototype._addLoader=function(e,t){var n=this;return this.loaders.set(e,t),t.then((function(){n.loaders.delete(e)})),t},t.prototype._getUrlWithFallback=function(e,t){var n=this,r=TI().getUrlResponse(e);if(void 0!==r)return Promise.resolve(r);var o=TI().getUrlRequest(e);if(void 0!==o)return o;var i=this.loaders.get(e);if(void 0!==i)return i;var s=function(e){return new Promise((function(t,n){var r=(0,NI.I)(),o=new XMLHttpRequest;o.open("GET",e,!0),Object.keys(r).forEach((function(e){return o.setRequestHeader(e,r[e])})),o.responseType="text",o.withCredentials=!0,o.onload=function(){o.status>=200&&o.status<400?t(o.responseText):n(new Error("Failed to load ".concat(e,", status ").concat(o.status)))},o.onerror=function(){return n(new Error("Failed to load ".concat(e)))},o.send()}))}(e).catch((function(e){return n.onError(e),t}));return TI().addUrlRequest(e,s),s},t.prototype.load=function(e){var t=this,n=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),t?"".concat(SI.conductAllInScope,"?scope=").concat(encodeURIComponent(e)):"".concat(CI.conductAllInScope,"?scope=").concat(encodeURIComponent(e))}(e,this.useNewApi),r=this.useNewApi?bI(this.requestContext):"",o="".concat(this.baseUrl).concat(n).concat(r),i=this._getUrlWithFallback(o,"{}").then((function(e){return EI(e)})).then((function(e){return t.useNewApi?e.values:e})).then((function(e){return t.add(e),e}));return this._addLoader(o,i)},t.prototype.conduct=function(e,t){var n=this,r=TI().getExperimentValue(e,this.useNewApi);if(void 0!==r)return this._addConductResult(e,r);var o=PI(e,t,this.useNewApi),i=this.useNewApi?bI(this.requestContext):"",s="".concat(this.baseUrl).concat(o).concat(i),a=this._getUrlWithFallback(s,null!=t?t:"").then((function(t){return n._addConductResult(e,t)}));return this._addLoader(s,a)},t.prototype.pending=function(){return!!this.loaders.size},t.prototype.ready=function(){return Promise.all(Array.from(this.loaders.values()))},t.prototype._addConductResult=function(e,t){var n,r=this.useNewApi?JSON.parse(t).value:t;return this.add(((n={})[e]=r,n)),Promise.resolve(r)},t}(AI.Q),LI=function(){return LI=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},LI.apply(this,arguments)},RI=function(e,t){var n={};return e.visitorId?n.forSiteVisitors=LI(LI({},e),{visitorId:e.visitorId}):n.forSiteOwner=LI(LI({},e),{loggedInUserId:e.loggedInUserId}),t&&(n.overrideCriteria=t),n},kI=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DI=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},VI=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}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,a])}}},MI=function(e){function t(t){var n=t.experimentsConfig,r=t.prepopulated,o=t.baseUrl,i=t.ctx,s=t.overrideCriteria,a=e.call(this,{baseUrl:null!=o?o:"",experiments:r,useNewApi:!0,requestContext:RI(i,s)})||this;return a.init=function(){return DI(a,void 0,void 0,(function(){var e,t=this;return VI(this,(function(n){switch(n.label){case 0:return this.prepopulated||!this.flowConfig?[2,this]:(e=this.flowConfig.scopes.map((function(e){return t.load(e)})),[4,Promise.all(e).then((function(){return t}))]);case 1:return n.sent(),[2,this]}}))}))},a.flowConfig=n,a.prepopulated=r,a}return kI(t,e),t}(_I),BI=n(13036);var FI=n(77549),UI=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return UI(t,e),t.prototype.render=function(){return o().createElement(FI.h.Provider,{value:this.props.logger},this.props.children)},t}(o().Component),HI=(0,r.createContext)(null),ZI=(HI.Consumer,HI.Provider),WI=n(81718),zI=o().createContext({});const qI=r.createContext({mobile:!1,rtl:!1,seo:!1,cssVars:!1}),GI=qI.Provider;qI.Consumer;function $I(){return $I="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_P(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},$I.apply(null,arguments)}var YI=n(35921);const KI=function(e){var t=e.darkMode;return(0,YI.st)(YI.classes.root,{darkMode:t})};var XI=n(76673);const QI=function(e){var t=e.darkMode;return(0,XI.st)(XI.classes.root,{darkMode:t})};var JI=n(32984);const eO=function(e){var t=e.darkMode;return(0,JI.st)(JI.classes.root,{darkMode:t})};var tO="oEP3tNK",nO="sZgJpvA",rO=n.sts.bind(null,tO);var oO="o__72wYIQ",iO="spK5QGE",sO=n.sts.bind(null,oO);var aO="ozmFEGA",lO="ssu2DV4",cO=n.sts.bind(null,aO);const uO=r.createContext({});uO.Consumer;class dO extends r.PureComponent{getClassName(){const{theme:e,darkMode:t,madefor:n,className:r}=this.props;return cO(lO,{madefor:n},r,"responsive"===e&&(({darkMode:e})=>sO(iO,{darkMode:e}))({darkMode:t}))}getDataAttributes(){const{theme:e,darkMode:t,madefor:n}=this.props;return{"data-theme":e,"data-dark-mode":t,"data-madefor":n}}getValue(){const{theme:e,darkMode:t,madefor:n}=this.props;return{theme:e,darkMode:t,madefor:n,appFlagsClass:this.getClassName(),appDataAttributes:this.getDataAttributes()}}render(){const{dataHook:e,as:t="span",children:n}=this.props;return r.createElement(uO.Provider,{value:this.getValue()},r.createElement(t,{className:this.getClassName(),"data-hook":e,...this.getDataAttributes()},n))}}function pO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hO(e,t,n){return t=_P(t),xP(e,mO()?Reflect.construct(t,n||[],_P(e).constructor):t.apply(e,n))}function mO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mO=function(){return!!e})()}function fO(e,t,n,r){var o=$I(_P(1&r?e.prototype:e),t,n);return 2&r?function(e){return o.apply(n,e)}:o}dO.displayName="BaseUiNextProvider",dO.defaultProps={as:"span",darkMode:!1,madefor:!1};var gO=function(e){function t(e){var n;return(0,NP.Z)(this,t),(n=hO(this,t,[e])).themes={classic:KI,responsive:QI,facelift:eO},n.themeRootSelectors={classic:void 0,responsive:"responsive-skin",facelift:"classic-facelift-skin"},n}return RP(t,e),(0,AP.Z)(t,[{key:"getClassName",value:function(){var e=this.props,n=e.theme,r=e.madefor,o=e.darkMode,i=e.inputBorders;return rO(nO,{madefor:r},this.themes[n]({darkMode:o}),this.themeRootSelectors[n],o&&"dark-mode",i&&"facelift"===n?"input-borders-experiment":"",fO(t,"getClassName",this,3)([]))}},{key:"getDataAttributes",value:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pO(Object(n),!0).forEach((function(t){(0,Ii.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"data-madefor":this.props.madefor},fO(t,"getDataAttributes",this,3)([]))}},{key:"getValue",value:function(){var e=this.props;return{theme:e.theme,darkMode:e.darkMode,madefor:e.madefor,inputBorders:e.inputBorders,forceCloseTooltipAutomaticallyAfter:e.forceCloseTooltipAutomaticallyAfter}}}])}(dO);gO.displayName="WixBaseUiEnvironmentProvider",gO.propTypes={dataHook:M().string,as:M().string,theme:M().oneOf(["classic","responsive","facelift"]),madefor:M().bool,darkMode:M().bool,inputBorders:M().bool,forceCloseTooltipAutomaticallyAfter:M().number},gO.defaultProps={theme:"facelift",as:"span",madefor:!1,darkMode:!1,inputBorders:!1};var vO=n(78979),yO=(0,r.createContext)(null),bO=(yO.Consumer,yO.Provider,"specs.components.editorX.useMadefor"),EO="specs.components.editorClassic.useMadefor",SO="se_components_editorClassic_inputBorders",CO=function(e,t){return!!e&&(t.isEditorX?e.enabled(bO):e.enabled(EO))},wO=n(29600);e=n.hmd(e);var PO={I18nextProvider:function(e){var t=e.i18n,n=e.defaultNS,o=e.children,i=(0,r.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,r.createElement)(BI.OO.Provider,{value:i},o)},ExperimentsProvider:o().Fragment,PureExperimentsProvider:function(e){var t=e.experiments,n=e.children,i=function(e){var t=(0,r.useState)(!e.pending()),n=t[0],o=t[1];return(0,r.useEffect)((function(){var t=!0;return n||e.ready().then((function(){t&&o(!0)})).catch((function(){})),function(){t=!1}}),[n,e]),{ready:n,promise:e.ready(),experimentsInstance:e}}(t);return o().createElement(Se.k.Provider,{value:i},n)},BILoggerProvider:jI,FedopsLoggerProvider:WI.me,PanoramaProvider:ZI,HttpProvider:function(e){var t=e.children,n=e.client;return o().createElement(zI.Provider,{value:{client:n}},t)},TPAComponentsProvider:GI,BaseUiEnvironmentProviderWrapper:function(e){var t=e.children,n=(e.experimentsConfig?Ce:function(){return null})(),i=function(){var e=(0,r.useContext)(yO);if(!e)throw new Error("`useSettingsEnvironment()` can't be used within a `Widget` component. Please use `useEnvironment()`");return e}(),s=o().useMemo(x,[]);return o().createElement(gO,{madefor:CO(null==n?void 0:n.experiments,i),theme:i.isEditorX||i.isWixStudio||s===vO.EditorType.Responsive?"responsive":"facelift",inputBorders:null==n?void 0:n.experiments.enabled(SO),dataHook:"base-ui-provider"},t)}},IO=nE,OO=function(e,t,n){var i=e.initI18n,a=e.withStylesHoc,l=e.createWidgetExperiments,c=e.providers,u=n.name,d=n.componentId,p=n.withErrorBoundary,h=n.localeDistPath,g=n.translationsConfig,v=n.sentryConfig,y=n.styleHocConfig,E=n.stylesParams,C=n.customCssVars,w=n.multilingualDisabled,P=function(e){var n,a=e.error,u=e.errorId,d=e.host,p=Fe(e,["error","errorId","host"]),f=Ue(e),v=(0,r.useState)((function(){return f.getPanoramaClient()}))[0];f.getProp("error");var y=c,b=y.I18nextProvider,C=y.PureExperimentsProvider,P=y.BILoggerProvider,I=y.TPAComponentsProvider,x=y.FedopsLoggerProvider,R=y.PanoramaProvider,V=f.getBILogger(),M=new _({host:d,controllerOptions:{appDefinitionId:f.getProp("appDefinitionId"),widgetId:f.getProp("widgetId"),isSSR:f.getProp("isSSR"),isRTL:f.getProp("isRTL"),language:f.getProp("language"),multilingual:w?null:null!==(n=f.getProp("multilingual"))&&void 0!==n?n:null},query:p.query}),B=f.getProp("experiments"),F=(0,r.useMemo)((function(){if(f.isHOCEnabled("experiments"))return l({experiments:B})}),[B]),U=(0,r.useMemo)((function(){return function(e){return function(t){const n={...e,...t};return function({value:e,currency:t}){const r=s({...n,currency:t}),o="string"==typeof e?Number(e):e;return n.parts?r.formatToParts(o):r.format(o)}}}({language:M.language})}),[M.language]),j=function(e,t,n){return(0,r.useMemo)((function(){if(n){var r=n.error,o=n.errorId;return{error:r,errorId:null!=o?o:null,errorEnvironment:"controller"}}return e?{error:e,errorId:null!=t?t:null,errorEnvironment:"component"}:{error:null,errorId:null,errorEnvironment:null}}),[e,n])}(a,u,f.getControllerError()),H=[function(e){return o().createElement(I,{value:{mobile:M.isMobile,rtl:M.isRTL}},e)},function(e){return o().createElement(A,{value:j},e)}];f.isHOCEnabled("bi")&&H.push((function(e){return o().createElement(P,{logger:V},e)})),f.isHOCEnabled("fedops")&&H.push((function(e){return o().createElement(x,{value:f.getProp("fedopsLogger")},e)})),f.isHOCEnabled("panoramaClient")&&H.push((function(e){return o().createElement(R,{value:v},e)})),f.isHOCEnabled("sentry")&&H.push((function(e){return o().createElement(k,{value:f.getProp("sentry")},e)})),f.isHOCEnabled("errorMonitor")&&H.push((function(e){return o().createElement(D.YQ,{errorMonitor:f.getProp("errorMonitor")},e)}));var Z=f.getProp("language"),W=f.getProp("translations"),z=f.isHOCEnabled("translations"),q=(0,r.useMemo)((function(){if(z){var e=new T({localeDistPath:h,language:Z,availableLanguages:null==g?void 0:g.availableLanguages,prefix:null==g?void 0:g.prefix,initI18n:i});return e.init({prepopulated:W,useSuspense:!1,wait:!M.isSSR}),e.i18n}}),[z,Z,W]),G=(0,r.useMemo)((function(){return q?q.t.bind(q):O}),[q]);return f.isHOCEnabled("translations")&&H.push((function(e){return o().createElement(b,{i18n:q},e)})),H.push((function(e){return o().createElement(L.fl,null,(function(t){var n,r,i,s,a,l,c=t.isEditor||t.isEditorX||t.isADI?[S()(null===(n=null==d?void 0:d.style)||void 0===n?void 0:n.styleParams),S()(null===(r=null==d?void 0:d.style)||void 0===r?void 0:r.siteColors),S()(null===(i=null==d?void 0:d.style)||void 0===i?void 0:i.siteTextPresets)]:[null===(s=null==d?void 0:d.style)||void 0===s?void 0:s.styleParams,null===(a=null==d?void 0:d.style)||void 0===a?void 0:a.siteColors,null===(l=null==d?void 0:d.style)||void 0===l?void 0:l.siteTextPresets],u=c[0],p=c[1],h=c[2];return o().createElement(Te,{isMobile:t.isMobile,isRTL:t.isRTL,publicData:f.getProp("publicData"),currentStylesGetter:t.isSSR?void 0:d.getCurrentStyle,allStylesGetter:d.getAllStyles,styleParamsPerBreakpointMode:t.isCssPerBreakpoint,stylesParams:null!=E?E:{},hostStyle:{styleParams:u,siteColors:p,siteTextPresets:h},dimensions:t.dimensions,language:t.multilingual.isEnabled&&t.multilingual.currentLanguage||void 0,t:G,isEditorX:t.isEditorX,experimentsDisabled:!f.isHOCEnabled("experiments")},e)}))})),f.isHOCEnabled("experiments")&&H.push((function(e){return o().createElement(C,{experiments:F},e)})),H.push((function(t){return o().createElement(je,{onAppLoaded:f.getProp("onAppLoaded"),onAppLoadStarted:f.getProp("onAppLoadStarted"),host:e.host},o().createElement(ke,{openModal:f.getProp("openModal")},t))})),H.push((function(e){return o().createElement(L._N,{value:M},e)})),H.push((function(e){return o().createElement(De,{value:U},e)})),H.push((function(e){return o().createElement(Ve,{value:m},e)})),o().createElement(N,{providers:H},o().createElement(t,Be({host:d},p)))},I=null==y?void 0:y.enabled;if(!a)throw new Error("withStyles HOC have not been passed, please report this to Yoshi team");var x=a(P,{defaults:null!=E?E:void 0,customCssVars:C,enableMemoization:"undefined"==typeof WeakMap||b().Cache!==WeakMap}),R=I?function(e){var t=Ue(e);!function(e,t){if(!t.isFlowPropsReceived())throw new Error("Controller loading error. Please check https://bo.wix.com/pages/yoshi/docs/editor-flow/issues/controller-error for more info")}(0,t);var n=t.getProp("styles"),i=e.host,s=(0,r.useMemo)((function(){return n&&(i.style.styleParams=n),i}),[i,n]),a=t.getProp("publicData").COMPONENT;return o().createElement(x,Be({},e,{tpaData:a,host:s,isRTL:t.getProp("isRTL"),isMobile:t.getProp("mobile")}))}:P;if(v){return function(e){var t=Ue(e),n=t.getProp("isSSR"),i=t.getProp("isSEO"),s=(0,r.useMemo)((function(){return e=R,t={dsn:v.DSN,config:{environment:"Viewer"},tags:{componentId:d,componentName:u,isSSR:n,isSEO:i}},s=p?function(e){return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Me(n,t),n.prototype.componentDidCatch=function(){},n.prototype.render=function(){return o().createElement(e,Be({},this.props))},n}(o().Component)}(R):R,function(n){function o(){var e=null!==n&&n.apply(this,arguments)||this;return e.state={error:null},e}return(0,f.__extends)(o,n),o.prototype.getLazySentry=function(){return new this.props.host.LazySentry((0,f.__assign)((0,f.__assign)({dsn:t.dsn},t.config),{release:this.props.sentryRelease}))},o.prototype.getRavenUserContextOverrides=function(){return this.props.ravenUserContextOverrides},o.prototype.componentDidCatch=function(e){null===this.state.error&&this.setState({error:e});var n=this.getLazySentry();if(n){t.tags&&n.configureScope((function(e){Object.keys(t.tags).forEach((function(n){e.setTag(n,t.tags[n])}))}));var r=this.getRavenUserContextOverrides();(t.userContext||r)&&n.configureScope((function(e){e.setUser((0,f.__assign)((0,f.__assign)({},t.userContext),r))})),n.captureException(e)}},o.prototype.render=function(){return this.state.error&&s?r.createElement(s,(0,f.__assign)({error:this.state.error},this.props)):r.createElement(e,(0,f.__assign)({},this.props))},o}(r.Component);var e,t,s}),[d,u,n,i]);return o().createElement(s,Be({},e))}}return R}({initI18n:uI,withStylesHoc:function(e,t){var n=[].concat(t.cssPath||[]),o=[].concat(t.rtlCssPath||[]),i=[].concat(t.ltrCssPath||[]),s=o.length,a=function(t){var a=t.isRTL,l=t.host,c=t.cssBaseUrl,u=r.useMemo((function(){return n.concat(a?o:i)}),[a]),d=r.useState((function(){var e=0;if(!Ow())return e;for(var t=0,n=Array.from(document.styleSheets);t<n.length;t++){var r=n[t];if("string"==typeof r.href){var o=r.href.replace(c||"","");u.includes(o)&&e++}}return e})),p=d[0],h=d[1],m=(null==l?void 0:l.id)||t.id,g=m?".".concat(m):"",v=p+r.useMemo((function(){return Ow()?document.querySelectorAll("".concat(g," link")).length:u.length}),[])>=u.length;return r.createElement("div",{className:m},c&&s?u.map((function(e){return r.createElement("link",{href:"".concat(c).concat(e),rel:"stylesheet",type:"text/css",key:e,onLoad:y})})):null,s&&v?r.createElement(e,(0,f.__assign)({},t)):null,!s&&r.createElement(e,(0,f.__assign)({},t)));function y(){h((function(e){return e+1}))}};return a.displayName="WithStyles",a.tokenForCiPoliceRule="e2425ecc-e4c1-474c-9e2b-8357f32c907b",a},createExperiments:function(e){return new MI(e)},createWidgetExperiments:function(e){return new _I(e)},providers:PO},Pw,{multilingualDisabled:!1,sentryConfig:{DSN:"https://89a16a5a463b4b8cabf8b8fd697303da@sentry.wixpress.com/2885",id:"89a16a5a463b4b8cabf8b8fd697303da",projectName:"wix-video-widget",teamName:"media",errorMonitor:!0},styleHocConfig:{enabled:!0},translationsConfig:{icuEnabled:!0,defaultTranslationsPath:"/home/builduser/work/91e7dd51354251f9/wix-vod-widget/src/assets/locales/messages_en.json",availableLanguages:["ar","bg","ca","cs","da","de","el","en","es","fi","fr","he","hi","hu","id","it","ja","ko","lt","ms","nl","no","pl","pt","ro","ru","sk","sl","sv","th","tl","tr","uk","vi","zh","zu"]},stylesParams:IO.default,customCssVars:IO.customCssVars||function(){return{}},componentId:"144097ea-fea0-498e-ade7-e6de40127106",name:"WixVideo",withErrorBoundary:!0,localeDistPath:"assets/locales"});OO=(0,wO.hot)(e,OO);const TO=Pw.loadChunks,NO={loadableReady:n(33636).loadableReady,chunkLoadingGlobal:"webpackJsonp__wix_wix_vod_widget",component:OO,loadChunks:TO}},74176:(e,t,n)=>{e.exports={default:n(69495),__esModule:!0}},88071:(e,t,n)=>{e.exports={default:n(21288),__esModule:!0}},30302:(e,t,n)=>{e.exports={default:n(86088),__esModule:!0}},52664:(e,t,n)=>{e.exports={default:n(5298),__esModule:!0}},47694:(e,t,n)=>{e.exports={default:n(68399),__esModule:!0}},5360:(e,t,n)=>{e.exports={default:n(58868),__esModule:!0}},92175:(e,t,n)=>{"use strict";t.__esModule=!0;var r,o=n(52664),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||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}},73825:(e,t,n)=>{"use strict";t.__esModule=!0;var r=i(n(30302)),o=i(n(88071));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,l=(0,o.default)(e);!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},81093:(e,t,n)=>{"use strict";t.__esModule=!0;var r,o=n(74176),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},21166:function(e,t,n){var r;/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */e=n.nmd(e),function(o){var i=t,s=(e&&e.exports,"object"==typeof n.g&&n.g);s.global!==s&&s.window;var a=function(e){this.message=e};(a.prototype=new Error).name="InvalidCharacterError";var l=function(e){throw new a(e)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&l("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,r,o,i=e.length%3,s="",a=-1,u=e.length-i;++a<u;)t=e.charCodeAt(a)<<16,n=e.charCodeAt(++a)<<8,r=e.charCodeAt(++a),s+=c.charAt((o=t+n+r)>>18&63)+c.charAt(o>>12&63)+c.charAt(o>>6&63)+c.charAt(63&o);return 2==i?(t=e.charCodeAt(a)<<8,n=e.charCodeAt(++a),s+=c.charAt((o=t+n)>>10)+c.charAt(o>>4&63)+c.charAt(o<<2&63)+"="):1==i&&(o=e.charCodeAt(a),s+=c.charAt(o>>2)+c.charAt(o<<4&63)+"=="),s},decode:function(e){var t=(e=String(e).replace(u,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&l("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,o=0,i="",s=-1;++s<t;)r=c.indexOf(e.charAt(s)),n=o%4?64*n+r:r,o++%4&&(i+=String.fromCharCode(255&n>>(-2*o&6)));return i},version:"1.0.0"};void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}()},59083:(e,t,n)=>{"use strict";var r=n(38594);function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o<r&&(r=o),e[o]||(e[o]=[]),e[o].push(i),t++},process:function(){for(var t=r;t<=n;t++)for(var o=e[t],i=0;i<o.length;i++){(0,o[i])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),i=r.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=o(),l=!1;function c(){for(l=!0;a.size();){var e=a;a=o(),e.process()}l=!1}function u(){var e;e=c,s=setTimeout(e,0)}return{add:function(e,t){!l&&i&&n&&0===a.size()&&u(),a.add(e,t)},force:function(e){l||(void 0===e&&(e=n),s&&(clearTimeout(s),s=null),e?u():c())}}}},38594:e=>{"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];if(null==r&&void 0!==n)return n;return r}},62680:(e,t,n)=>{"use strict";var r=n(67286),o=n(89429),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},89429:(e,t,n)=>{"use strict";var r=n(4090),o=n(67286),i=n(47669),s=n(5408),a=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,a),u=n(70999),d=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,l,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var p=function(){return c(r,a,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},11103:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},67804:(e,t,n)=>{var r=n(11103),o=n(26047),i=Object.hasOwnProperty,s=Object.create(null);for(var a in r)i.call(r,a)&&(s[r[a]]=a);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,o,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var a=2*n;s[n]=parseInt(t.slice(a,a+2),16)}o&&(s[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)s[n]=parseInt(t[n]+t[n],16);o&&(s[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)s[n]=parseInt(t[n+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:i.call(r,t[1])?((s=r[t[1]])[3]=1,s):null:null;for(n=0;n<3;n++)s[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}for(n=0;n<3;n++)s[n]=c(s[n],0,255);return s[3]=c(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},35811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n],i=e[o];t.push({minWidth:null!=i.minWidth?i.minWidth:0,maxWidth:null!=i.maxWidth?i.maxWidth:1/0,minHeight:null!=i.minHeight?i.minHeight:0,maxHeight:null!=i.maxHeight?i.maxHeight:1/0,className:o})}return function(e){for(var n=e.height,r=e.width,o={},i=0,s=t;i<s.length;i++){var a=s[i],l=a.className,c=a.minWidth,u=a.maxWidth,d=a.minHeight,p=a.maxHeight;o[l]=null!=n&&null!=r?c<=r&&r<=u&&d<=n&&n<=p:null==n&&null!=r?c<=r&&r<=u:null==n||null!=r||d<=n&&n<=p}return o}}},69495:(e,t,n)=>{n(60506),n(30647),e.exports=n(70788).Array.from},21288:(e,t,n)=>{n(3063),n(60506),e.exports=n(49009)},86088:(e,t,n)=>{n(3063),n(60506),e.exports=n(71797)},5298:(e,t,n)=>{n(73647),e.exports=n(70788).Object.assign},68399:(e,t,n)=>{n(45565),e.exports=n(70788).Object.keys},58868:(e,t,n)=>{n(8158),n(60506),n(3063),n(43369),n(14308),n(34164),n(27987),e.exports=n(70788).Set},70160:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},67113:e=>{e.exports=function(){}},94215:e=>{e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},28806:(e,t,n)=>{var r=n(82509);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},98956:(e,t,n)=>{var r=n(5091);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},59434:(e,t,n)=>{var r=n(58848),o=n(68711),i=n(96885);e.exports=function(e){return function(t,n,s){var a,l=r(t),c=o(l.length),u=i(s,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},42780:(e,t,n)=>{var r=n(25838),o=n(28362),i=n(4253),s=n(68711),a=n(46577);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,h=t||a;return function(t,a,m){for(var f,g,v=i(t),y=o(v),b=r(a,m,3),E=s(y.length),S=0,C=n?h(t,E):l?h(t,0):void 0;E>S;S++)if((p||S in y)&&(g=b(f=y[S],S,v),e))if(n)C[S]=g;else if(g)switch(e){case 3:return!0;case 5:return f;case 6:return S;case 2:C.push(f)}else if(u)return!1;return d?-1:c||u?u:C}}},25907:(e,t,n)=>{var r=n(82509),o=n(85160),i=n(99682)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},46577:(e,t,n)=>{var r=n(25907);e.exports=function(e,t){return new(r(e))(t)}},22968:(e,t,n)=>{var r=n(77836),o=n(99682)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},77836:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},65831:(e,t,n)=>{"use strict";var r=n(28497).f,o=n(9183),i=n(8450),s=n(25838),a=n(94215),l=n(5091),c=n(63924),u=n(97264),d=n(55606),p=n(72401),h=n(12827).fastKey,m=n(59258),f=p?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,r){a(e,u,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[f]=0,null!=r&&l(r,n,e[c],e)}));return i(u.prototype,{clear:function(){for(var e=m(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[f]=0},delete:function(e){var n=m(this,t),r=g(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[f]--}return!!r},forEach:function(e){m(this,t);for(var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(m(this,t),e)}}),p&&r(u.prototype,"size",{get:function(){return m(this,t)[f]}}),u},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[f]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=m(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(t)}}},29426:(e,t,n)=>{var r=n(22968),o=n(98956);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},73843:(e,t,n)=>{"use strict";var r=n(29444),o=n(65624),i=n(12827),s=n(37305),a=n(23441),l=n(8450),c=n(5091),u=n(94215),d=n(82509),p=n(62456),h=n(28497).f,m=n(42780)(0),f=n(72401);e.exports=function(e,t,n,g,v,y){var b=r[e],E=b,S=v?"set":"add",C=E&&E.prototype,w={};return f&&"function"==typeof E&&(y||C.forEach&&!s((function(){(new E).entries().next()})))?(E=t((function(t,n){u(t,E,e,"_c"),t._c=new b,null!=n&&c(n,v,t[S],t)})),m("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var t="add"==e||"set"==e;!(e in C)||y&&"clear"==e||a(E.prototype,e,(function(n,r){if(u(this,E,e),!t&&y&&!d(n))return"get"==e&&void 0;var o=this._c[e](0===n?0:n,r);return t?this:o}))})),y||h(E.prototype,"size",{get:function(){return this._c.size}})):(E=g.getConstructor(t,e,v,S),l(E.prototype,n),i.NEED=!0),p(E,e),w[e]=E,o(o.G+o.W+o.F,w),y||g.setStrong(E,e,v),E}},70788:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},7377:(e,t,n)=>{"use strict";var r=n(28497),o=n(37468);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},25838:(e,t,n)=>{var r=n(70160);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},23066:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},72401:(e,t,n)=>{e.exports=!n(37305)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},49547:(e,t,n)=>{var r=n(82509),o=n(29444).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},86663:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},65624:(e,t,n)=>{var r=n(29444),o=n(70788),i=n(25838),s=n(23441),a=n(78121),l="prototype",c=function(e,t,n){var u,d,p,h=e&c.F,m=e&c.G,f=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,b=m?o:o[t]||(o[t]={}),E=b[l],S=m?r:f?r[t]:(r[t]||{})[l];for(u in m&&(n=t),n)(d=!h&&S&&void 0!==S[u])&&a(b,u)||(p=d?S[u]:n[u],b[u]=m&&"function"!=typeof S[u]?n[u]:v&&d?i(p,r):y&&S[u]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(p):g&&"function"==typeof p?i(Function.call,p):p,g&&((b.virtual||(b.virtual={}))[u]=p,e&c.R&&E&&!E[u]&&s(E,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},37305:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},5091:(e,t,n)=>{var r=n(25838),o=n(70841),i=n(80926),s=n(28806),a=n(68711),l=n(17033),c={},u={},d=e.exports=function(e,t,n,d,p){var h,m,f,g,v=p?function(){return e}:l(e),y=r(n,d,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(h=a(e.length);h>b;b++)if((g=t?y(s(m=e[b])[0],m[1]):y(e[b]))===c||g===u)return g}else for(f=v.call(e);!(m=f.next()).done;)if((g=o(f,y,m.value,t))===c||g===u)return g};d.BREAK=c,d.RETURN=u},29444:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},78121:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},23441:(e,t,n)=>{var r=n(28497),o=n(37468);e.exports=n(72401)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},11495:(e,t,n)=>{var r=n(29444).document;e.exports=r&&r.documentElement},27959:(e,t,n)=>{e.exports=!n(72401)&&!n(37305)((function(){return 7!=Object.defineProperty(n(49547)("div"),"a",{get:function(){return 7}}).a}))},28362:(e,t,n)=>{var r=n(77836);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},80926:(e,t,n)=>{var r=n(92830),o=n(99682)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},85160:(e,t,n)=>{var r=n(77836);e.exports=Array.isArray||function(e){return"Array"==r(e)}},82509:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},70841:(e,t,n)=>{var r=n(28806);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},25874:(e,t,n)=>{"use strict";var r=n(9183),o=n(37468),i=n(62456),s={};n(23441)(s,n(99682)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:o(1,n)}),i(e,t+" Iterator")}},63924:(e,t,n)=>{"use strict";var r=n(52245),o=n(65624),i=n(66538),s=n(23441),a=n(92830),l=n(25874),c=n(62456),u=n(51079),d=n(99682)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",m="values",f=function(){return this};e.exports=function(e,t,n,g,v,y,b){l(n,t,g);var E,S,C,w=function(e){if(!p&&e in T)return T[e];switch(e){case h:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},P=t+" Iterator",I=v==m,O=!1,T=e.prototype,N=T[d]||T["@@iterator"]||v&&T[v],A=N||w(v),x=v?I?w("entries"):A:void 0,_="Array"==t&&T.entries||N;if(_&&(C=u(_.call(new e)))!==Object.prototype&&C.next&&(c(C,P,!0),r||"function"==typeof C[d]||s(C,d,f)),I&&N&&N.name!==m&&(O=!0,A=function(){return N.call(this)}),r&&!b||!p&&!O&&T[d]||s(T,d,A),a[t]=A,a[P]=f,v)if(E={values:I?A:w(m),keys:y?A:w(h),entries:x},b)for(S in E)S in T||i(T,S,E[S]);else o(o.P+o.F*(p||O),t,E);return E}},32204:(e,t,n)=>{var r=n(99682)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(e){}return n}},97264:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},92830:e=>{e.exports={}},52245:e=>{e.exports=!0},12827:(e,t,n)=>{var r=n(78160)("meta"),o=n(82509),i=n(78121),s=n(28497).f,a=0,l=Object.isExtensible||function(){return!0},c=!n(37305)((function(){return l(Object.preventExtensions({}))})),u=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!i(e,r)&&u(e),e}}},65470:(e,t,n)=>{"use strict";var r=n(72401),o=n(63028),i=n(73465),s=n(38366),a=n(4253),l=n(28362),c=Object.assign;e.exports=!c||n(37305)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=a(e),c=arguments.length,u=1,d=i.f,p=s.f;c>u;)for(var h,m=l(arguments[u++]),f=d?o(m).concat(d(m)):o(m),g=f.length,v=0;g>v;)h=f[v++],r&&!p.call(m,h)||(n[h]=m[h]);return n}:c},9183:(e,t,n)=>{var r=n(28806),o=n(22671),i=n(86663),s=n(67610)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(49547)("iframe"),r=i.length;for(t.style.display="none",n(11495).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[l][i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=r(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},28497:(e,t,n)=>{var r=n(28806),o=n(27959),i=n(47163),s=Object.defineProperty;t.f=n(72401)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},22671:(e,t,n)=>{var r=n(28497),o=n(28806),i=n(63028);e.exports=n(72401)?Object.defineProperties:function(e,t){o(e);for(var n,s=i(t),a=s.length,l=0;a>l;)r.f(e,n=s[l++],t[n]);return e}},73465:(e,t)=>{t.f=Object.getOwnPropertySymbols},51079:(e,t,n)=>{var r=n(78121),o=n(4253),i=n(67610)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},93217:(e,t,n)=>{var r=n(78121),o=n(58848),i=n(59434)(!1),s=n(67610)("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~i(c,n)||c.push(n));return c}},63028:(e,t,n)=>{var r=n(93217),o=n(86663);e.exports=Object.keys||function(e){return r(e,o)}},38366:(e,t)=>{t.f={}.propertyIsEnumerable},67512:(e,t,n)=>{var r=n(65624),o=n(70788),i=n(37305);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",s)}},37468:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8450:(e,t,n)=>{var r=n(23441);e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},66538:(e,t,n)=>{e.exports=n(23441)},35062:(e,t,n)=>{"use strict";var r=n(65624),o=n(70160),i=n(25838),s=n(5091);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,a,l=arguments[1];return o(this),(t=void 0!==l)&&o(l),null==e?new this:(n=[],t?(r=0,a=i(l,arguments[2],2),s(e,!1,(function(e){n.push(a(e,r++))}))):s(e,!1,n.push,n),new this(n))}})}},43838:(e,t,n)=>{"use strict";var r=n(65624);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},55606:(e,t,n)=>{"use strict";var r=n(29444),o=n(70788),i=n(28497),s=n(72401),a=n(99682)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];s&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},62456:(e,t,n)=>{var r=n(28497).f,o=n(78121),i=n(99682)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},67610:(e,t,n)=>{var r=n(30755)("keys"),o=n(78160);e.exports=function(e){return r[e]||(r[e]=o(e))}},30755:(e,t,n)=>{var r=n(70788),o=n(29444),i="__core-js_shared__",s=o[i]||(o[i]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(52245)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},46657:(e,t,n)=>{var r=n(69800),o=n(23066);e.exports=function(e){return function(t,n){var i,s,a=String(o(t)),l=r(n),c=a.length;return l<0||l>=c?e?"":void 0:(i=a.charCodeAt(l))<55296||i>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):i:e?a.slice(l,l+2):s-56320+(i-55296<<10)+65536}}},96885:(e,t,n)=>{var r=n(69800),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},69800:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},58848:(e,t,n)=>{var r=n(28362),o=n(23066);e.exports=function(e){return r(o(e))}},68711:(e,t,n)=>{var r=n(69800),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},4253:(e,t,n)=>{var r=n(23066);e.exports=function(e){return Object(r(e))}},47163:(e,t,n)=>{var r=n(82509);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},78160:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},59258:(e,t,n)=>{var r=n(82509);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},99682:(e,t,n)=>{var r=n(30755)("wks"),o=n(78160),i=n(29444).Symbol,s="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},17033:(e,t,n)=>{var r=n(22968),o=n(99682)("iterator"),i=n(92830);e.exports=n(70788).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},49009:(e,t,n)=>{var r=n(28806),o=n(17033);e.exports=n(70788).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},71797:(e,t,n)=>{var r=n(22968),o=n(99682)("iterator"),i=n(92830);e.exports=n(70788).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},30647:(e,t,n)=>{"use strict";var r=n(25838),o=n(65624),i=n(4253),s=n(70841),a=n(80926),l=n(68711),c=n(7377),u=n(17033);o(o.S+o.F*!n(32204)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,d,p=i(e),h="function"==typeof this?this:Array,m=arguments.length,f=m>1?arguments[1]:void 0,g=void 0!==f,v=0,y=u(p);if(g&&(f=r(f,m>2?arguments[2]:void 0,2)),null==y||h==Array&&a(y))for(n=new h(t=l(p.length));t>v;v++)c(n,v,g?f(p[v],v):p[v]);else for(d=y.call(p),n=new h;!(o=d.next()).done;v++)c(n,v,g?s(d,f,[o.value,v],!0):o.value);return n.length=v,n}})},40067:(e,t,n)=>{"use strict";var r=n(67113),o=n(97264),i=n(92830),s=n(58848);e.exports=n(63924)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},73647:(e,t,n)=>{var r=n(65624);r(r.S+r.F,"Object",{assign:n(65470)})},45565:(e,t,n)=>{var r=n(4253),o=n(63028);n(67512)("keys",(function(){return function(e){return o(r(e))}}))},8158:()=>{},43369:(e,t,n)=>{"use strict";var r=n(65831),o=n(59258);e.exports=n(73843)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(o(this,"Set"),e=0===e?0:e,e)}},r)},60506:(e,t,n)=>{"use strict";var r=n(46657)(!0);n(63924)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},27987:(e,t,n)=>{n(35062)("Set")},34164:(e,t,n)=>{n(43838)("Set")},14308:(e,t,n)=>{var r=n(65624);r(r.P+r.R,"Set",{toJSON:n(29426)("Set")})},3063:(e,t,n)=>{n(40067);for(var r=n(29444),o=n(23441),i=n(92830),s=n(99682)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var c=a[l],u=r[c],d=u&&u.prototype;d&&!d[s]&&o(d,s,c),i[c]=i.Array}},77225:(e,t,n)=>{e.exports={ResizeSensor:n(93287),ElementQueries:n(22194)}},22194:function(e,t,n){"use strict";var r,o,i;"undefined"!=typeof window&&window,o=[n(93287)],void 0===(i="function"==typeof(r=function(e){var t=function(){var t,n={},r=[];function o(e){e||(e=document.documentElement);var t=window.getComputedStyle(e,null).fontSize;return parseFloat(t)||16}function i(e){if(!e.getBoundingClientRect)return{width:e.offsetWidth,height:e.offsetHeight};var t=e.getBoundingClientRect();return{width:Math.round(t.width),height:Math.round(t.height)}}function s(e,t){var n=t.split(/\d/),r=n[n.length-1];switch(t=parseFloat(t),r){case"px":default:return t;case"em":return t*o(e);case"rem":return t*o();case"vw":return t*document.documentElement.clientWidth/100;case"vh":return t*document.documentElement.clientHeight/100;case"vmin":case"vmax":var i=document.documentElement.clientWidth/100,s=document.documentElement.clientHeight/100;return t*(0,Math["vmin"===r?"min":"max"])(i,s)}}function a(e,t){var r,o,a,l,c,u,d,p;this.element=e;var h=["min-width","min-height","max-width","max-height"];this.call=function(){for(r in a=i(this.element),u={},n[t])n[t].hasOwnProperty(r)&&(o=n[t][r],l=s(this.element,o.value),c="width"===o.property?a.width:a.height,p=o.mode+"-"+o.property,d="","min"===o.mode&&c>=l&&(d+=o.value),"max"===o.mode&&c<=l&&(d+=o.value),u[p]||(u[p]=""),d&&-1===(" "+u[p]+" ").indexOf(" "+d+" ")&&(u[p]+=" "+d));for(var e in h)h.hasOwnProperty(e)&&(u[h[e]]?this.element.setAttribute(h[e],u[h[e]].substr(1)):this.element.removeAttribute(h[e]))}}function l(t,n){t.elementQueriesSetupInformation||(t.elementQueriesSetupInformation=new a(t,n)),t.elementQueriesSensor||(t.elementQueriesSensor=new e(t,(function(){t.elementQueriesSetupInformation.call()})))}function c(e,o,i,s){if(void 0===n[e]){n[e]=[];var a=r.length;t.innerHTML+="\n"+e+" {animation: 0.1s element-queries;}",t.innerHTML+="\n"+e+" > .resize-sensor {min-width: "+a+"px;}",r.push(e)}n[e].push({mode:o,property:i,value:s})}function u(e){var t;if(document.querySelectorAll&&(t=e?e.querySelectorAll.bind(e):document.querySelectorAll.bind(document)),t||"undefined"==typeof $$||(t=$$),t||"undefined"==typeof jQuery||(t=jQuery),!t)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return t}function d(e){var t=u(e);for(var r in n)if(n.hasOwnProperty(r))for(var o=t(r,e),i=0,s=o.length;i<s;i++)l(o[i],r)}function p(t){var n=[],r=[],o=[],i=0,s=-1,a=[];for(var l in t.children)if(t.children.hasOwnProperty(l)&&t.children[l].tagName&&"img"===t.children[l].tagName.toLowerCase()){n.push(t.children[l]);var c=t.children[l].getAttribute("min-width")||t.children[l].getAttribute("data-min-width"),u=t.children[l].getAttribute("data-src")||t.children[l].getAttribute("url");o.push(u);var d={minWidth:c};r.push(d),c?t.children[l].style.display="none":(i=n.length-1,t.children[l].style.display="block")}function p(){var e,l=!1;for(e in n)n.hasOwnProperty(e)&&r[e].minWidth&&t.offsetWidth>r[e].minWidth&&(l=e);if(l||(l=i),s!==l)if(a[l])n[s].style.display="none",n[l].style.display="block",s=l;else{var c=new Image;c.onload=function(){n[l].src=o[l],n[s].style.display="none",n[l].style.display="block",a[l]=!0,s=l},c.src=o[l]}else n[l].src=o[l]}s=i,t.resizeSensorInstance=new e(t,p),p()}function h(){for(var e=u()("[data-responsive-image],[responsive-image]"),t=0,n=e.length;t<n;t++)p(e[t])}var m=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,f=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function g(e){var t,n,r,o;for(e=e.replace(/'/g,'"');null!==(t=m.exec(e));)for(n=t[1]+t[3],r=t[2];null!==(o=f.exec(r));)c(n,o[1],o[2],o[3])}function v(e){var t="";if(e)if("string"==typeof e)-1===(e=e.toLowerCase()).indexOf("min-width")&&-1===e.indexOf("max-width")||g(e);else for(var n=0,r=e.length;n<r;n++)1===e[n].type?-1!==(t=e[n].selectorText||e[n].cssText).indexOf("min-height")||-1!==t.indexOf("max-height")?g(t):-1===t.indexOf("min-width")&&-1===t.indexOf("max-width")||g(t):4===e[n].type?v(e[n].cssRules||e[n].rules):3===e[n].type&&e[n].styleSheet.hasOwnProperty("cssRules")&&v(e[n].styleSheet.cssRules)}var y=!1;this.init=function(){var n="animationstart";void 0!==document.documentElement.style.webkitAnimationName?n="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?n="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(n="oanimationstart"),document.body.addEventListener(n,(function(t){var n=t.target,o=n&&window.getComputedStyle(n,null),i=o&&o.getPropertyValue("animation-name");if(i&&-1!==i.indexOf("element-queries")){n.elementQueriesSensor=new e(n,(function(){n.elementQueriesSetupInformation&&n.elementQueriesSetupInformation.call()}));var s=window.getComputedStyle(n.resizeSensor,null).getPropertyValue("min-width");s=parseInt(s.replace("px","")),l(t.target,r[s])}})),y||((t=document.createElement("style")).type="text/css",t.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",t.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(t),y=!0);for(var o=0,i=document.styleSheets.length;o<i;o++)try{document.styleSheets[o].href&&0===document.styleSheets[o].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[o].href),v(document.styleSheets[o].cssRules||document.styleSheets[o].rules||document.styleSheets[o].cssText)}catch(e){}h()},this.findElementQueriesElements=function(e){d(e)},this.update=function(){this.init()}};t.update=function(){t.instance.update()},t.detach=function(e){e.elementQueriesSetupInformation?(e.elementQueriesSensor.detach(),delete e.elementQueriesSetupInformation,delete e.elementQueriesSensor):e.resizeSensorInstance&&(e.resizeSensorInstance.detach(),delete e.resizeSensorInstance)},t.init=function(){t.instance||(t.instance=new t),t.instance.init()};var n=function(e){if(document.addEventListener)document.addEventListener("DOMContentLoaded",e,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var t=setInterval((function(){/loaded|complete/i.test(document.readyState)&&(e(),clearInterval(t))}),10);else window.onload=e};return t.findElementQueriesElements=function(e){t.instance.findElementQueriesElements(e)},t.listen=function(){n(t.init)},t})?r.apply(t,o):r)||(e.exports=i)},93287:function(e,t,n){"use strict";var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){if("undefined"==typeof window)return null;var e="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)},n=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||function(t){e.clearTimeout(t)};function r(e,t){var n=Object.prototype.toString.call(e),r="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&e instanceof jQuery||"undefined"!=typeof Elements&&e instanceof Elements,o=0,i=e.length;if(r)for(;o<i;o++)t(e[o]);else t(e)}function o(e){if(!e.getBoundingClientRect)return{width:e.offsetWidth,height:e.offsetHeight};var t=e.getBoundingClientRect();return{width:Math.round(t.width),height:Math.round(t.height)}}function i(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}var s=function(e,a){var l=0;function c(){var e,t,n=[];this.add=function(e){n.push(e)},this.call=function(r){for(e=0,t=n.length;e<t;e++)n[e].call(this,r)},this.remove=function(r){var o=[];for(e=0,t=n.length;e<t;e++)n[e]!==r&&o.push(n[e]);n=o},this.length=function(){return n.length}}function u(e,n){if(e)if(e.resizedAttached)e.resizedAttached.add(n);else{e.resizedAttached=new c,e.resizedAttached.add(n),e.resizeSensor=document.createElement("div"),e.resizeSensor.dir="ltr",e.resizeSensor.className="resize-sensor";var r={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},s={position:"absolute",left:"0px",top:"0px",transition:"0s"};i(e.resizeSensor,r);var a=document.createElement("div");a.className="resize-sensor-expand",i(a,r);var u=document.createElement("div");i(u,s),a.appendChild(u);var d=document.createElement("div");d.className="resize-sensor-shrink",i(d,r);var p=document.createElement("div");i(p,s),i(p,{width:"200%",height:"200%"}),d.appendChild(p),e.resizeSensor.appendChild(a),e.resizeSensor.appendChild(d),e.appendChild(e.resizeSensor);var h=window.getComputedStyle(e),m=h?h.getPropertyValue("position"):null;"absolute"!==m&&"relative"!==m&&"fixed"!==m&&"sticky"!==m&&(e.style.position="relative");var f=!1,g=0,v=o(e),y=0,b=0,E=!0;l=0;var S=function(){var t=e.offsetWidth,n=e.offsetHeight;u.style.width=t+10+"px",u.style.height=n+10+"px",a.scrollLeft=t+10,a.scrollTop=n+10,d.scrollLeft=t+10,d.scrollTop=n+10},C=function(){if(E){if(0===e.offsetWidth&&0===e.offsetHeight)return void(l||(l=t((function(){l=0,C()}))));E=!1}S()};e.resizeSensor.resetSensor=C;var w=function(){g=0,f&&(y=v.width,b=v.height,e.resizedAttached&&e.resizedAttached.call(v))},P=function(){v=o(e),(f=v.width!==y||v.height!==b)&&!g&&(g=t(w)),C()},I=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)};I(a,"scroll",P),I(d,"scroll",P),l=t((function(){l=0,C()}))}}r(e,(function(e){u(e,a)})),this.detach=function(t){l||(n(l),l=0),s.detach(e,t)},this.reset=function(){e.resizeSensor.resetSensor()}};if(s.reset=function(e){r(e,(function(e){e.resizeSensor.resetSensor()}))},s.detach=function(e,t){r(e,(function(e){e&&(e.resizedAttached&&"function"==typeof t&&(e.resizedAttached.remove(t),e.resizedAttached.length())||e.resizeSensor&&(e.contains(e.resizeSensor)&&e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached))}))},"undefined"!=typeof MutationObserver){var a=new MutationObserver((function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t].addedNodes,r=0;r<n.length;r++)n[r].resizeSensor&&s.reset(n[r])}));document.addEventListener("DOMContentLoaded",(function(e){a.observe(document.body,{childList:!0,subtree:!0})}))}return s})?r.call(t,n,t,e):r)||(e.exports=o)},13185:(e,t,n)=>{var r=n(33464),o=n(52635),i=n(34679),s=n(58786),a=n(82201),l=n(54277),c=Date.prototype.getTime;function u(e,t,n){var h=n||{};return!!(h.strict?i(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?h.strict?i(e,t):e==t:function(e,t,n){var i,h;if(typeof e!=typeof t)return!1;if(d(e)||d(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e)!==o(t))return!1;var m=s(e),f=s(t);if(m!==f)return!1;if(m||f)return e.source===t.source&&a(e)===a(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var g=p(e),v=p(t);if(g!==v)return!1;if(g||v){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;try{var y=r(e),b=r(t)}catch(e){return!1}if(y.length!==b.length)return!1;for(y.sort(),b.sort(),i=y.length-1;i>=0;i--)if(y[i]!=b[i])return!1;for(i=y.length-1;i>=0;i--)if(!u(e[h=y[i]],t[h],n))return!1;return!0}(e,t,h))}function d(e){return null==e}function p(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}e.exports=u},75195:(e,t,n)=>{"use strict";var r=n(70999),o=n(48342),i=n(5408),s=n(50326);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!s&&s(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===a&&d?d.enumerable:!a,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(a||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},14926:(e,t,n)=>{"use strict";var r=n(33464),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,a=n(75195),l=n(81181)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?a(e,t,n,!0):a(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(var a=0;a<i.length;a+=1)c(e,i[a],t[i[a]],n[i[a]])};u.supportsDescriptors=!!l,e.exports=u},72516:e=>{"use strict";var t=e.exports={};t.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:undefined}());var t},t.isLegacyOpera=function(){return!!window.opera}},67473:e=>{"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},14281:(e,t,n)=>{"use strict";var r=n(72516);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function i(e){return o(e).object}return{makeDetectable:function(e,i,s){s||(s=i,i=e,e=null),(e=e||{}).debug,r.isIE(8)?s(i):function(e,i){var s=!1,a=window.getComputedStyle(e),l=e.offsetWidth,c=e.offsetHeight;function u(){function n(){if("static"===a.position){e.style.position="relative";var n=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};n(t,e,a,"top"),n(t,e,a,"right"),n(t,e,a,"bottom"),n(t,e,a,"left")}}""!==a.position&&(n(),s=!0);var l=document.createElement("object");l.style.cssText="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",l.tabIndex=-1,l.type="text/html",l.onload=function(){s||n(),function e(t,n){t.contentDocument?n(t.contentDocument):setTimeout((function(){e(t,n)}),100)}(this,(function(t){i(e)}))},r.isIE()||(l.data="about:blank"),e.appendChild(l),o(e).object=l,r.isIE()&&(l.data="about:blank")}o(e).startSize={width:l,height:c},n?n.add(u):u()}(i,s)},addListener:function(e,t){if(!i(e))throw new Error("Element is not detectable by this strategy.");function n(){t(e)}r.isIE(8)?(o(e).object={proxy:n},e.attachEvent("onresize",n)):i(e).contentDocument.defaultView.addEventListener("resize",n)},uninstall:function(e){r.isIE(8)?e.detachEvent("onresize",o(e).object.proxy):e.removeChild(i(e)),delete o(e).object}}}},66599:(e,t,n)=>{"use strict";var r=n(67473).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState,i=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var s=function(){var e=500,t=500,n=document.createElement("div");n.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var r=document.createElement("div");r.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",r.appendChild(n),document.body.insertBefore(r,document.body.firstChild);var o=e-r.clientWidth,i=t-r.clientHeight;return document.body.removeChild(r),{width:o,height:i}}(),a="erd_scroll_detection_container";function l(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function c(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function u(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return function(e,t){if(!document.getElementById(e)){var n=t+"_animation",r="/* Created by the element-resize-detector library. */\n";r+="."+t+" > div::-webkit-scrollbar { display: none; }\n\n",r+="."+(t+"_animation_active")+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",r+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(t,n){n=n||function(e){document.head.appendChild(e)};var r=document.createElement("style");r.innerHTML=t,r.id=e,n(r)}(r+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",a),{makeDetectable:function(e,c,p){function h(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(c),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function m(e){var t=o(e).container.childNodes[0],n=getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function f(){var e=getComputedStyle(c),t={};return t.position=e.position,t.width=c.offsetWidth,t.height=c.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function g(){if(h("storeStyle invoked."),o(c)){var e=f();o(c).style=e}else h("Aborting because element has been uninstalled")}function v(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function y(){return 2*s.width+1}function b(){return 2*s.height+1}function E(e){return e+10+y()}function S(e){return e+10+b()}function C(e,t,n){var r=u(e),o=d(e),i=E(t),s=S(n),a=function(e){return 2*e+y()}(t),l=function(e){return 2*e+b()}(n);r.scrollLeft=i,r.scrollTop=s,o.scrollLeft=a,o.scrollTop=l}function w(){var e=o(c).container;if(!e){(e=document.createElement("div")).className=a,e.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",o(c).container=e,function(e){e.className+=" "+a+"_animation_active"}(e),c.appendChild(e);var t=function(){o(c).onRendered&&o(c).onRendered()};l(e,"animationstart",t),o(c).onAnimationStart=t}return e}function P(){if(h("Injecting elements"),o(c)){!function(){var e=o(c).style;if("static"===e.position){c.style.position="relative";var n=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};n(t,c,e,"top"),n(t,c,e,"right"),n(t,c,e,"bottom"),n(t,c,e,"left")}}();var e=o(c).container;e||(e=w());var n,r,i,u,d=s.width,p=s.height,m="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; "+("left: "+(n=(n=-(1+d))?n+"px":"0")+"; top: "+(r=(r=-(1+p))?r+"px":"0")+"; right: "+(u=(u=-d)?u+"px":"0")+"; bottom: "+(i=(i=-p)?i+"px":"0")+";"),f=document.createElement("div"),g=document.createElement("div"),v=document.createElement("div"),y=document.createElement("div"),b=document.createElement("div"),E=document.createElement("div");f.dir="ltr",f.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",f.className=a,g.className=a,g.style.cssText=m,v.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",y.style.cssText="position: absolute; left: 0; top: 0;",b.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",E.style.cssText="position: absolute; width: 200%; height: 200%;",v.appendChild(y),b.appendChild(E),g.appendChild(v),g.appendChild(b),f.appendChild(g),e.appendChild(f),l(v,"scroll",S),l(b,"scroll",C),o(c).onExpandScroll=S,o(c).onShrinkScroll=C}else h("Aborting because element has been uninstalled");function S(){o(c).onExpand&&o(c).onExpand()}function C(){o(c).onShrink&&o(c).onShrink()}}function I(){function s(e,t,n){var r=function(e){return u(e).childNodes[0]}(e),o=E(t),i=S(n);r.style.width=o+"px",r.style.height=i+"px"}function a(r){var a=c.offsetWidth,u=c.offsetHeight;h("Storing current size",a,u),v(c,a,u),n.add(0,(function(){if(o(c))if(l()){if(e.debug){var n=c.offsetWidth,r=c.offsetHeight;n===a&&r===u||t.warn(i.get(c),"Scroll: Size changed before updating detector elements.")}s(c,a,u)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){o(c)?l()?C(c,a,u):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),r&&n.add(2,(function(){o(c)?l()?r():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function l(){return!!o(c).container}function p(){h("notifyListenersIfNeeded invoked");var e=o(c);return void 0===o(c).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(o(c).listeners,(function(e){e(c)})))}function f(){if(h("Scroll detected."),m(c))h("Scroll event fired while unrendered. Ignoring...");else{var e=c.offsetWidth,t=c.offsetHeight;e!==o(c).lastWidth||t!==o(c).lastHeight?(h("Element size changed."),a(p)):h("Element size has not changed ("+e+"x"+t+").")}}if(h("registerListenersAndPositionElements invoked."),o(c)){o(c).onRendered=function(){if(h("startanimation triggered."),m(c))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=u(c),t=d(c);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),a(p))}},o(c).onExpand=f,o(c).onShrink=f;var g=o(c).style;s(c,g.width,g.height)}else h("Aborting because element has been uninstalled")}function O(){if(h("finalizeDomMutation invoked."),o(c)){var e=o(c).style;v(c,e.width,e.height),C(c,e.width,e.height)}else h("Aborting because element has been uninstalled")}function T(){p(c)}function N(){var e;h("Installing..."),o(c).listeners=[],e=f(),o(c).startSize={width:e.width,height:e.height},h("Element start size",o(c).startSize),n.add(0,g),n.add(1,P),n.add(2,I),n.add(3,O),n.add(4,T)}p||(p=c,c=e,e=null),e=e||{},h("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===getComputedStyle(e)}(c)?N():(h("Element is detached"),w(),h("Waiting until element is attached..."),o(c).onRendered=function(){h("Element is now attached"),N()})},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&c(u(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&c(d(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&c(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}}}},200:(e,t,n)=>{"use strict";var r=n(67473).forEach,o=n(40987),i=n(38090),s=n(13992),a=n(80076),l=n(53183),c=n(72516),u=n(59083),d=n(86502),p=n(14281),h=n(66599);function m(e){return Array.isArray(e)||void 0!==e.length}function f(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function g(e){return e&&1===e.nodeType}function v(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=s(),y=a({idGenerator:n,stateHandler:d});t=y}var b=e.reporter;b||(b=l(!1===b));var E=v(e,"batchProcessor",u({reporter:b})),S={};S.callOnAdd=!!v(e,"callOnAdd",!0),S.debug=!!v(e,"debug",!1);var C,w=i(t),P=o({stateHandler:d}),I=v(e,"strategy","object"),O={reporter:b,batchProcessor:E,stateHandler:d,idHandler:t};if("scroll"===I&&(c.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),I="object"):c.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),I="object")),"scroll"===I)C=h(O);else{if("object"!==I)throw new Error("Invalid strategy name: "+I);C=p(O)}var T={};return{listenTo:function(e,n,o){function i(e){var t=w.get(e);r(t,(function(t){t(e)}))}function s(e,t,n){w.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(g(n))n=[n];else{if(!m(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=f(n)}var a=0,l=v(e,"callOnAdd",S.callOnAdd),c=v(e,"onReady",(function(){})),u=v(e,"debug",S.debug);r(n,(function(e){d.getState(e)||(d.initState(e),t.set(e));var p=t.get(e);if(u&&b.log("Attaching listener to element",p,e),!P.isDetectable(e))return u&&b.log(p,"Not detectable."),P.isBusy(e)?(u&&b.log(p,"System busy making it detectable"),s(l,e,o),T[p]=T[p]||[],void T[p].push((function(){++a===n.length&&c()}))):(u&&b.log(p,"Making detectable..."),P.markBusy(e,!0),C.makeDetectable({debug:u},e,(function(e){if(u&&b.log(p,"onElementDetectable"),d.getState(e)){P.markAsDetectable(e),P.markBusy(e,!1),C.addListener(e,i),s(l,e,o);var t=d.getState(e);if(t&&t.startSize){var h=e.offsetWidth,m=e.offsetHeight;t.startSize.width===h&&t.startSize.height===m||i(e)}T[p]&&r(T[p],(function(e){e()}))}else u&&b.log(p,"Element uninstalled before being detectable.");delete T[p],++a===n.length&&c()})));u&&b.log(p,"Already detecable, adding listener."),s(l,e,o),a++})),a===n.length&&c()},removeListener:w.removeListener,removeAllListeners:w.removeAllListeners,uninstall:function(e){if(!e)return b.error("At least one element is required.");if(g(e))e=[e];else{if(!m(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=f(e)}r(e,(function(e){w.removeAllListeners(e),C.uninstall(e),d.cleanState(e)}))}}}},40987:e=>{"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},13992:e=>{"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},80076:e=>{"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return r.id=o,o}}}},38090:e=>{"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,i=r.length;o<i;++o)if(r[o]===t){r.splice(o,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},53183:e=>{"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},86502:e=>{"use strict";var t="_erd";function n(e){return e[t]}e.exports={initState:function(e){return e[t]={},n(e)},getState:n,cleanState:function(e){delete e[t]}}},70999:(e,t,n)=>{"use strict";var r=n(67286)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},69654:e=>{"use strict";e.exports=EvalError},42321:e=>{"use strict";e.exports=Error},48205:e=>{"use strict";e.exports=RangeError},2976:e=>{"use strict";e.exports=ReferenceError},48342:e=>{"use strict";e.exports=SyntaxError},5408:e=>{"use strict";e.exports=TypeError},82885:e=>{"use strict";e.exports=URIError},10161:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new o(r,i||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,s=new Array(i);o<i;o++)s[o]=r[o].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,o,i,s){var a=n?n+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||r&&a.context!==r||s(this,i);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||o&&!a[l].once||r&&a[l].context!==r)&&c.push(a[l]);c.length?this._events[i]=1===c.length?c[0]:c:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},37795:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),a=n(0,o.length-s.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(s,arguments));return Object(t)===t?t:this}return o.apply(e,r(s,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},4090:(e,t,n)=>{"use strict";var r=n(37795);e.exports=Function.prototype.bind||r},8462:e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},67286:(e,t,n)=>{"use strict";var r,o=n(42321),i=n(69654),s=n(48205),a=n(2976),l=n(48342),c=n(5408),u=n(82885),d=Function,p=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var m=function(){throw new c},f=h?function(){try{return m}catch(e){try{return h(arguments,"callee").get}catch(e){return m}}}():m,g=n(32636)(),v=n(18486)(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},E="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,S={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":f,"%TypedArray%":E,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(e){var C=y(y(e));S["%Error.prototype%"]=C}var w=function e(t){var n;if("%AsyncFunction%"===t)n=p("async function () {}");else if("%GeneratorFunction%"===t)n=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=p("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return S[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=n(4090),O=n(72196),T=I.call(Function.call,Array.prototype.concat),N=I.call(Function.apply,Array.prototype.splice),A=I.call(Function.call,String.prototype.replace),x=I.call(Function.call,String.prototype.slice),_=I.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,k=function(e,t){var n,r=e;if(O(P,r)&&(r="%"+(n=P[r])[0]+"%"),O(S,r)){var o=S[r];if(o===b&&(o=w(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return A(e,L,(function(e,t,n,o){r[r.length]=n?A(o,R,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=k("%"+r+"%",t),i=o.name,s=o.value,a=!1,u=o.alias;u&&(r=u[0],N(n,T([0,1],u)));for(var d=1,p=!0;d<n.length;d+=1){var m=n[d],f=x(m,0,1),g=x(m,-1);if(('"'===f||"'"===f||"`"===f||'"'===g||"'"===g||"`"===g)&&f!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&p||(a=!0),O(S,i="%"+(r+="."+m)+"%"))s=S[i];else if(null!=s){if(!(m in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&d+1>=n.length){var v=h(s,m);s=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[m]}else p=O(s,m),s=s[m];p&&!a&&(S[i]=s)}}return s}},50326:(e,t,n)=>{"use strict";var r=n(67286)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},8051:(e,t,n)=>{"use strict";var r="__global_unique_id__";e.exports=function(){return n.g[r]=(n.g[r]||0)+1}},81181:(e,t,n)=>{"use strict";var r=n(70999),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},18486:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},32636:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(66679);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},66679:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},67226:(e,t,n)=>{"use strict";var r=n(66679);e.exports=function(){return r()&&!!Symbol.toStringTag}},72196:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(4090);e.exports=i.call(r,o)},70809:(e,t,n)=>{"use strict";n.d(t,{lX:()=>w,q_:()=>A,ob:()=>f,PP:()=>_,Ep:()=>m,Hp:()=>g});var r=n(7896);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const s=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],s=t&&t.split("/")||[],a=e&&o(e),l=t&&o(t),c=a||l;if(e&&o(e)?s=r:r.length&&(s.pop(),s=s.concat(r)),!s.length)return"/";if(s.length){var u=s[s.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=s.length;p>=0;p--){var h=s[p];"."===h?i(s,p):".."===h?(i(s,p),d++):d&&(i(s,p),d--)}if(!c)for(;d--;d)s.unshift("..");!c||""===s[0]||s[0]&&o(s[0])||s.unshift("");var m=s.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function a(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=a(t),o=a(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(10362);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function f(e,t,n,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,r.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=s(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var E="popstate",S="hashchange";function C(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),s=e,a=s.forceRefresh,l=void 0!==a&&a,d=s.getUserConfirmation,g=void 0===d?b:d,w=s.keyLength,P=void 0===w?6:w,I=e.basename?h(u(e.basename)):"";function O(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return I&&(i=p(i,I)),f(i,r,n)}function T(){return Math.random().toString(36).substr(2,P)}var N=v();function A(e){(0,r.Z)(j,e),j.length=n.length,N.notifyListeners(j.location,j.action)}function x(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(O(e.state))}function _(){R(O(C()))}var L=!1;function R(e){if(L)L=!1,A();else{N.confirmTransitionTo(e,"POP",g,(function(t){t?A({action:"POP",location:e}):function(e){var t=j.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(L=!0,M(o))}(e)}))}}var k=O(C()),D=[k.key];function V(e){return I+m(e)}function M(e){n.go(e)}var B=0;function F(e){1===(B+=e)&&1===e?(window.addEventListener(E,x),i&&window.addEventListener(S,_)):0===B&&(window.removeEventListener(E,x),i&&window.removeEventListener(S,_))}var U=!1;var j={length:n.length,action:"POP",location:k,createHref:V,push:function(e,t){var r="PUSH",i=f(e,t,T(),j.location);N.confirmTransitionTo(i,r,g,(function(e){if(e){var t=V(i),s=i.key,a=i.state;if(o)if(n.pushState({key:s,state:a},null,t),l)window.location.href=t;else{var c=D.indexOf(j.location.key),u=D.slice(0,c+1);u.push(i.key),D=u,A({action:r,location:i})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",i=f(e,t,T(),j.location);N.confirmTransitionTo(i,r,g,(function(e){if(e){var t=V(i),s=i.key,a=i.state;if(o)if(n.replaceState({key:s,state:a},null,t),l)window.location.replace(t);else{var c=D.indexOf(j.location.key);-1!==c&&(D[c]=i.key),A({action:r,location:i})}else window.location.replace(t)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=N.setPrompt(e);return U||(F(1),U=!0),function(){return U&&(U=!1,F(-1)),t()}},listen:function(e){var t=N.appendListener(e);return F(1),function(){F(-1),t()}}};return j}var P="hashchange",I={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function O(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function N(e){window.location.replace(O(window.location.href)+"#"+e)}function A(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?b:o,s=n.hashType,a=void 0===s?"slash":s,l=e.basename?h(u(e.basename)):"",d=I[a],g=d.encodePath,E=d.decodePath;function S(){var e=E(T());return l&&(e=p(e,l)),f(e)}var C=v();function w(e){(0,r.Z)(U,e),U.length=t.length,C.notifyListeners(U.location,U.action)}var A=!1,x=null;function _(){var e,t,n=T(),r=g(n);if(n!==r)N(r);else{var o=S(),s=U.location;if(!A&&(t=o,(e=s).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(x===m(o))return;x=null,function(e){if(A)A=!1,w();else{var t="POP";C.confirmTransitionTo(e,t,i,(function(n){n?w({action:t,location:e}):function(e){var t=U.location,n=D.lastIndexOf(m(t));-1===n&&(n=0);var r=D.lastIndexOf(m(e));-1===r&&(r=0);var o=n-r;o&&(A=!0,V(o))}(e)}))}}(o)}}var L=T(),R=g(L);L!==R&&N(R);var k=S(),D=[m(k)];function V(e){t.go(e)}var M=0;function B(e){1===(M+=e)&&1===e?window.addEventListener(P,_):0===M&&window.removeEventListener(P,_)}var F=!1;var U={length:t.length,action:"POP",location:k,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=O(window.location.href)),n+"#"+g(l+m(e))},push:function(e,t){var n="PUSH",r=f(e,void 0,void 0,U.location);C.confirmTransitionTo(r,n,i,(function(e){if(e){var t=m(r),o=g(l+t);if(T()!==o){x=t,function(e){window.location.hash=e}(o);var i=D.lastIndexOf(m(U.location)),s=D.slice(0,i+1);s.push(t),D=s,w({action:n,location:r})}else w()}}))},replace:function(e,t){var n="REPLACE",r=f(e,void 0,void 0,U.location);C.confirmTransitionTo(r,n,i,(function(e){if(e){var t=m(r),o=g(l+t);T()!==o&&(x=t,N(o));var i=D.indexOf(m(U.location));-1!==i&&(D[i]=t),w({action:n,location:r})}}))},go:V,goBack:function(){V(-1)},goForward:function(){V(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return F||(B(1),F=!0),function(){return F&&(F=!1,B(-1)),t()}},listen:function(e){var t=C.appendListener(e);return B(1),function(){B(-1),t()}}};return U}function x(e,t,n){return Math.min(Math.max(e,t),n)}function _(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,s=t.initialIndex,a=void 0===s?0:s,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.Z)(E,e),E.length=E.entries.length,u.notifyListeners(E.location,E.action)}function p(){return Math.random().toString(36).substr(2,c)}var h=x(a,0,i.length-1),g=i.map((function(e){return f(e,void 0,"string"==typeof e?p():e.key||p())})),y=m;function b(e){var t=x(E.index+e,0,E.entries.length-1),r=E.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var E={length:g.length,action:"POP",location:g[h],index:h,entries:g,createHref:y,push:function(e,t){var r="PUSH",o=f(e,t,p(),E.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=E.index+1,n=E.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=f(e,t,p(),E.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(E.entries[E.index]=o,d({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=E.index+e;return t>=0&&t<E.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return E}},73463:(e,t,n)=>{"use strict";var r=n(48570),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=h(n);o&&o!==m&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),f=l(n),g=0;g<s.length;++g){var v=s[g];if(!(i[v]||r&&r[v]||f&&f[v]||a&&a[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},47677:e=>{"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},52635:(e,t,n)=>{"use strict";var r=n(67226)(),o=n(62680)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,e.exports=a?i:s},54277:(e,t,n)=>{"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i=n(67226)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},58786:(e,t,n)=>{"use strict";var r,o,i,s,a=n(62680),l=n(67226)();if(l){r=a("Object.prototype.hasOwnProperty"),o=a("RegExp.prototype.exec"),i={};var c=function(){throw i};s={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(s[Symbol.toPrimitive]=c)}var u=a("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!=typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,s)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},32356:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={root:"Av1MB2","focus-within":"rY20bk",focusWithin:"rY20bk"}},6899:(e,t,n)=>{"use strict";function r(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 o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function i(){return i=Object.assign||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},i.apply(this,arguments)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){return!(!e||"function"!=typeof e.hasOwnProperty||!(e.hasOwnProperty("__ownerID")||e._map&&e._map.hasOwnProperty("__ownerID")))}function l(e,t,n){return Object.keys(e).reduce((function(t,r){var o=""+r;return t.has(o)?t.set(o,n(t.get(o),e[o])):t}),t)}n.d(t,{Fv:()=>w,cY:()=>O,fK:()=>C});var c=function(){function e(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!e||"string"!=typeof e)throw new Error("Expected a string key for Entity, but found "+e+".");var r=n,o=r.idAttribute,s=void 0===o?"id":o,l=r.mergeStrategy,c=void 0===l?function(e,t){return i({},e,t)}:l,u=r.processStrategy,d=void 0===u?function(e){return i({},e)}:u,p=r.fallbackStrategy,h=void 0===p?function(e,t){}:p;this._key=e,this._getId="function"==typeof s?s:function(e){return function(t){return a(t)?t.get(e):t[e]}}(s),this._idAttribute=s,this._mergeStrategy=c,this._processStrategy=d,this._fallbackStrategy=h,this.define(t)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce((function(t,n){var r,o=e[n];return i({},t,((r={})[n]=o,r))}),this.schema||{})},t.getId=function(e,t,n){return this._getId(e,t,n)},t.merge=function(e,t){return this._mergeStrategy(e,t)},t.fallback=function(e,t){return this._fallbackStrategy(e,t)},t.normalize=function(e,t,n,r,o,i){var s=this,a=this.getId(e,t,n),l=this.key;if(l in i||(i[l]={}),a in i[l]||(i[l][a]=[]),i[l][a].some((function(t){return t===e})))return a;i[l][a].push(e);var c=this._processStrategy(e,t,n);return Object.keys(this.schema).forEach((function(t){if(c.hasOwnProperty(t)&&"object"==typeof c[t]){var n=s.schema[t],a="function"==typeof n?n(e):n;c[t]=r(c[t],c,t,a,o,i)}})),o(this,c,e,t,n),a},t.denormalize=function(e,t){var n=this;return a(e)?l(this.schema,e,t):(Object.keys(this.schema).forEach((function(r){if(e.hasOwnProperty(r)){var o=n.schema[r];e[r]=t(e[r],o)}})),e)},o(e,[{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),e}(),u=function(){function e(e,t){t&&(this._schemaAttribute="string"==typeof t?function(e){return e[t]}:t),this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=e},t.getSchemaAttribute=function(e,t,n){return!this.isSingleSchema&&this._schemaAttribute(e,t,n)},t.inferSchema=function(e,t,n){if(this.isSingleSchema)return this.schema;var r=this.getSchemaAttribute(e,t,n);return this.schema[r]},t.normalizeValue=function(e,t,n,r,o,i){var s=this.inferSchema(e,t,n);if(!s)return e;var a=r(e,t,n,s,o,i);return this.isSingleSchema||null==a?a:{id:a,schema:this.getSchemaAttribute(e,t,n)}},t.denormalizeValue=function(e,t){var n=a(e)?e.get("schema"):e.schema;return this.isSingleSchema||n?t((this.isSingleSchema?void 0:a(e)?e.get("id"):e.id)||e,this.isSingleSchema?this.schema:this.schema[n]):e},o(e,[{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),e}(),d=function(e){function t(t,n){if(!n)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');return e.call(this,t,n)||this}s(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,o,i){return this.normalizeValue(e,t,n,r,o,i)},n.denormalize=function(e,t){return this.denormalizeValue(e,t)},t}(u),p=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,o,s){var a=this;return Object.keys(e).reduce((function(t,n,l){var c,u=e[n];return null!=u?i({},t,((c={})[n]=a.normalizeValue(u,e,n,r,o,s),c)):t}),{})},n.denormalize=function(e,t){var n=this;return Object.keys(e).reduce((function(r,o){var s,a=e[o];return i({},r,((s={})[o]=n.denormalizeValue(a,t),s))}),{})},t}(u),h=function(e){if(Array.isArray(e)&&e.length>1)throw new Error("Expected schema definition to be a single schema, but found "+e.length+".");return e[0]},m=function(e){return Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t]}))},f=function(e,t,n,r,o,i,s){return e=h(e),m(t).map((function(t,a){return o(t,n,r,e,i,s)}))},g=function(e,t,n){return e=h(e),t&&t.map?t.map((function(t){return n(t,e)})):t},v=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var n=t.prototype;return n.normalize=function(e,t,n,r,o,i){var s=this;return m(e).map((function(e,a){return s.normalizeValue(e,t,n,r,o,i)})).filter((function(e){return null!=e}))},n.denormalize=function(e,t){var n=this;return e&&e.map?e.map((function(e){return n.denormalizeValue(e,t)})):e},t}(u),y=function(e,t,n,r,o,s,a){var l=i({},t);return Object.keys(e).forEach((function(n){var r=e[n],i="function"==typeof r?r(t):r,c=o(t[n],t,n,i,s,a);null==c?delete l[n]:l[n]=c})),l},b=function(e,t,n){if(a(t))return l(e,t,n);var r=i({},t);return Object.keys(e).forEach((function(t){null!=r[t]&&(r[t]=n(r[t],e[t]))})),r},E=function(){function e(e){this.define(e)}var t=e.prototype;return t.define=function(e){this.schema=Object.keys(e).reduce((function(t,n){var r,o=e[n];return i({},t,((r={})[n]=o,r))}),this.schema||{})},t.normalize=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.apply(void 0,[this.schema].concat(t))},t.denormalize=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b.apply(void 0,[this.schema].concat(t))},e}(),S=function e(t,n,r,o,i,s){return"object"==typeof t&&t?"object"!=typeof o||o.normalize&&"function"==typeof o.normalize?o.normalize(t,n,r,e,i,s):(Array.isArray(o)?f:y)(o,t,n,r,e,i,s):t},C={Array:v,Entity:c,Object:E,Union:d,Values:p},w=function(e,t){if(!e||"object"!=typeof e)throw new Error('Unexpected input given to normalize. Expected type to be "object", found "'+(null===e?"null":typeof e)+'".');var n={},r=function(e){return function(t,n,r,o,i){var s=t.key,a=t.getId(r,o,i);s in e||(e[s]={});var l=e[s][a];e[s][a]=l?t.merge(l,n):n}}(n);return{entities:n,result:S(e,e,null,t,r,{})}},P=function(e){var t={},n=I(e);return function e(r,o){return"object"!=typeof o||o.denormalize&&"function"==typeof o.denormalize?null==r?r:o instanceof c?function(e,t,n,r,o){var s=r(e,t);if(void 0===s&&t instanceof c&&(s=t.fallback(e,t)),"object"!=typeof s||null===s)return s;if(o[t.key]||(o[t.key]={}),!o[t.key][e]){var l=a(s)?s:i({},s);o[t.key][e]=l,o[t.key][e]=t.denormalize(l,n)}return o[t.key][e]}(r,o,e,n,t):o.denormalize(r,e):(Array.isArray(o)?g:b)(o,r,e)}},I=function(e){var t=a(e);return function(n,r){var o=r.key;return"object"==typeof n?n:t?e.getIn([o,n.toString()]):e[o]&&e[o][n]}},O=function(e,t,n){if(void 0!==e)return P(n)(e,t)}},18169:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},34679:(e,t,n)=>{"use strict";var r=n(14926),o=n(89429),i=n(18169),s=n(68070),a=n(20191),l=o(s(),Object);r(l,{getPolyfill:s,implementation:i,shim:a}),e.exports=l},68070:(e,t,n)=>{"use strict";var r=n(18169);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},20191:(e,t,n)=>{"use strict";var r=n(68070),o=n(14926);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},75691:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=n(30801),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=s(e),a=t&&"[object String]"===i.call(e),p=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var m=c&&n;if(a&&e.length>0&&!o.call(e,0))for(var f=0;f<e.length;++f)p.push(String(f));if(r&&e.length>0)for(var g=0;g<e.length;++g)p.push(String(g));else for(var v in e)m&&"prototype"===v||!o.call(e,v)||p.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!h)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)y&&"constructor"===u[b]||!o.call(e,u[b])||p.push(u[b]);return p}}e.exports=r},33464:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(30801),i=Object.keys,s=i?function(e){return i(e)}:n(75691),a=Object.keys;s.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?a(r.call(e)):a(e)})}else Object.keys=s;return Object.keys||s},e.exports=s},30801:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},20099:(e,t,n)=>{var r=n(30243);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return a(i(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,s=0,a="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],h=n.index;if(a+=e.slice(s,h),s=h+d.length,p)a+=p[1];else{var m=e[s],f=n[2],g=n[3],v=n[4],y=n[5],b=n[6],E=n[7];a&&(r.push(a),a="");var S=null!=f&&null!=m&&m!==f,C="+"===b||"*"===b,w="?"===b||"*"===b,P=n[2]||u,I=v||y;r.push({name:g||i++,prefix:f||"",delimiter:P,optional:w,repeat:C,partial:S,asterisk:!!E,pattern:I?c(I):E?".*":"[^"+l(P)+"]+?"})}}return s<e.length&&(a+=e.substr(s)),a&&r.push(a),r}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function a(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",a=t||{},l=(o||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=a[u.name];if(null==p){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(d=l(p[h]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===h?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,s="",a=0;a<e.length;a++){var c=e[a];if("string"==typeof c)s+=l(c);else{var p=l(c.prefix),h="(?:"+c.pattern+")";t.push(c),c.repeat&&(h+="(?:"+p+h+")*"),s+=h=c.optional?c.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var m=l(n.delimiter||"/"),f=s.slice(-m.length)===m;return o||(s=(f?s.slice(0,-m.length):s)+"(?:"+m+"(?=$))?"),s+=i?"$":o&&f?"":"(?="+m+"|$)",u(new RegExp("^"+s,d(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(h(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(i(e,n),t,n)}(e,t,n)}},30243:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},42057:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.SRC_SET="engine-state/src-set",e.LOAD_STARTED="engine-state/load-started",e.METADATA_LOADED="engine-state/metadata-loaded",e.READY_TO_PLAY="engine-state/ready-to-play",e.SEEK_IN_PROGRESS="engine-state/seek-in-progress",e.PLAY_REQUESTED="engine-state/play-requested",e.WAITING="engine-state/waiting",e.PLAYING="engine-state/playing",e.PAUSED="engine-state/paused",e.ENDED="engine-state/ended"}(n||(n={})),t.default=n},7408:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.SRC_PARSE="error-src-parse",e.MANIFEST_LOAD="error-manifest-load",e.MANIFEST_PARSE="error-manifest-parse",e.MANIFEST_INCOMPATIBLE="error-manifest-incompatible",e.LEVEL_LOAD="error-level-load",e.CONTENT_LOAD="error-content-load",e.CONTENT_PARSE="error-content-parse",e.MEDIA="error-media",e.UNKNOWN="error-unknown"}(n||(n={})),t.default=n},55659:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.PLAY_CLICK="ui-events/play-click",e.PLAY_OVERLAY_CLICK="ui-events/play-overlay-click",e.PAUSE_CLICK="ui-events/pause-click",e.PROGRESS_CHANGE="ui-events/progress-change",e.PROGRESS_DRAG_STARTED="ui-events/progress-drag-started",e.PROGRESS_DRAG_ENDED="ui-events/progress-drag-ended",e.PROGRESS_SYNC_BUTTON_MOUSE_ENTER="ui-events/progress-sync-button-mouse-enter",e.PROGRESS_SYNC_BUTTON_MOUSE_LEAVE="ui-events/progress-sync-button-mouse-leave",e.PROGRESS_USER_PREVIEWING_FRAME="ui-events/progress-user-previewing-frame",e.VOLUME_CHANGE="ui-events/volume-change",e.MUTE_CLICK="ui-events/mute-click",e.UNMUTE_CLICK="ui-events/unmute-click",e.ENTER_FULL_SCREEN_CLICK="ui-events/enter-full-screen-click",e.EXIT_FULL_SCREEN_CLICK="ui-events/exit-full-screen-click",e.ENTER_PICTURE_IN_PICTURE_CLICK="ui-events/enter-picture-in-picture-click",e.EXIT_PICTURE_IN_PICTURE_CLICK="ui-events/exit-picture-in-picture-click",e.MOUSE_ENTER_ON_PLAYER="ui-events/mouse-enter-on-player",e.MOUSE_MOVE_ON_PLAYER="ui-events/mouse-move-on-player",e.MOUSE_LEAVE_ON_PLAYER="ui-events/mouse-leave-on-player",e.FOCUS_ENTER_ON_PLAYER="ui-events/focus-enter-on-player",e.FOCUS_LEAVE_ON_PLAYER="ui-events/focus-leave-on-player",e.MAIN_BLOCK_HIDE="ui-events/main-block-hide",e.MAIN_BLOCK_SHOW="ui-events/main-block-show",e.LOADER_SHOW="ui-events/loader-show",e.LOADER_HIDE="ui-events/loader-hide",e.LOADING_COVER_SHOW="ui-events/loading-cover-show",e.LOADING_COVER_HIDE="ui-events/loading-cover-hide",e.TOGGLE_PLAYBACK_WITH_KEYBOARD="ui-events/toggle-playback-with-keyboard",e.GO_BACKWARD_WITH_KEYBOARD="ui-events/go-backward-with-keyboard",e.GO_FORWARD_WITH_KEYBOARD="ui-events/go-forward-with-keyboard",e.INCREASE_VOLUME_WITH_KEYBOARD="ui-events/increase-volume-with-keyboard",e.DECREASE_VOLUME_WITH_KEYBOARD="ui-events/decrease-volume-with-keyboard",e.MUTE_WITH_KEYBOARD="ui-events/mute-with-keyboard",e.UNMUTE_WITH_KEYBOARD="ui-events/unmute-with-keyboard",e.HIDE_INTERACTION_INDICATOR="ui-events/hide-interaction-indicator",e.PLAY_WITH_SCREEN_CLICK="ui-events/play-with-screen-click",e.PAUSE_WITH_SCREEN_CLICK="ui-events/pause-with-screen-click",e.ENTER_FULL_SCREEN_WITH_SCREEN_CLICK="ui-events/enter-full-screen-with-screen-click",e.EXIT_FULL_SCREEN_WITH_SCREEN_CLICK="ui-events/exit-full-screen-with-screen-click",e.CONTROL_DRAG_START="ui-events/control-drag-start",e.CONTROL_DRAG_END="ui-events/control-drag-end",e.KEYBOARD_KEYDOWN_INTERCEPTED="ui-events/keyboard-keydown-intercepted",e.FULL_SCREEN_STATE_CHANGED="ui-events/full-screen-state-changed",e.PICTURE_IN_PICTURE_STATUS_CHANGE="ui-events/picture-in-picture-status-changed",e.RESIZE="ui-events/resize"}(n||(n={})),t.default=n},70008:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ERROR="video-events/error",e.STATE_CHANGED="video-events/state-changed",e.LIVE_STATE_CHANGED="video-events/live-state-changed",e.DYNAMIC_CONTENT_ENDED="video-events/dynamic-content-ended",e.CHUNK_LOADED="video-events/chunk-loaded",e.CURRENT_TIME_UPDATED="video-events/current-time-updated",e.DURATION_UPDATED="video-events/duration-updated",e.SOUND_STATE_CHANGED="video-events/sound-state-changed",e.VOLUME_CHANGED="video-events/volume-changed",e.MUTE_CHANGED="video-events/mute-changed",e.SEEK_IN_PROGRESS="video-events/seek-in-progress",e.UPLOAD_STALLED="video-events/upload-stalled",e.UPLOAD_SUSPEND="video-events/upload-suspend",e.PLAY_REQUEST="video-events/play-request",e.PLAY_ABORTED="video-events/play-aborted",e.RESET="video-events/reset-playback"}(n||(n={})),t.default=n},32313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIVE_STATES=t.LiveState=t.ENGINE_STATES=t.EngineState=t.ERRORS=t.Error=t.VIDEO_EVENTS=t.VideoEvent=t.UI_EVENTS=t.UIEvent=t.TEXT_LABELS=t.TextLabel=t.MEDIA_STREAM_DELIVERY_PRIORITY=t.MediaStreamDeliveryPriority=t.MimeToStreamTypeMap=t.MEDIA_STREAM_TYPES=t.MediaStreamType=void 0;var r=n(22970),o=n(28253);Object.defineProperty(t,"MediaStreamDeliveryPriority",{enumerable:!0,get:function(){return o.MediaStreamDeliveryPriority}}),Object.defineProperty(t,"MEDIA_STREAM_DELIVERY_PRIORITY",{enumerable:!0,get:function(){return o.MediaStreamDeliveryPriority}}),Object.defineProperty(t,"MediaStreamType",{enumerable:!0,get:function(){return o.MediaStreamType}}),Object.defineProperty(t,"MEDIA_STREAM_TYPES",{enumerable:!0,get:function(){return o.MediaStreamType}}),Object.defineProperty(t,"MimeToStreamTypeMap",{enumerable:!0,get:function(){return o.MimeToStreamTypeMap}});var i=(0,r.__importDefault)(n(55659));t.UIEvent=i.default,t.UI_EVENTS=i.default;var s=(0,r.__importDefault)(n(70008));t.VideoEvent=s.default,t.VIDEO_EVENTS=s.default;var a=(0,r.__importDefault)(n(7408));t.Error=a.default,t.ERRORS=a.default;var l=(0,r.__importDefault)(n(23663));t.TextLabel=l.default,t.TEXT_LABELS=l.default;var c=(0,r.__importDefault)(n(42057));t.EngineState=c.default,t.ENGINE_STATES=c.default;var u=(0,r.__importDefault)(n(67192));t.LiveState=u.default,t.LIVE_STATES=u.default},67192:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.NONE="live-state/none",e.INITIAL="live-state/initial",e.NOT_SYNC="live-state/not-sync",e.SYNC="live-state/sync",e.ENDED="live-state/ended"}(n||(n={})),t.default=n},28253:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MediaStreamDeliveryPriority=t.MimeToStreamTypeMap=t.MediaStreamType=void 0,function(e){e.MP4="MP4",e.WEBM="WEBM",e.HLS="HLS",e.DASH="DASH",e.OGG="OGG",e.MOV="MOV",e.MKV="MKV"}(n||(n={})),t.MediaStreamType=n;var r,o={"application/x-mpegURL":n.HLS,"application/vnd.apple.mpegURL":n.HLS,"application/dash+xml":n.DASH,"video/mp4":n.MP4,"video/x-mp4":n.MP4,"x-video/mp4":n.MP4,"video/webm":n.WEBM,"video/ogg":n.OGG,"video/quicktime":n.MOV,"video/x-matroska":n.MKV};t.MimeToStreamTypeMap=o,function(e){e[e.NATIVE_PROGRESSIVE=0]="NATIVE_PROGRESSIVE",e[e.ADAPTIVE_VIA_MSE=1]="ADAPTIVE_VIA_MSE",e[e.NATIVE_ADAPTIVE=2]="NATIVE_ADAPTIVE",e[e.FORCED=3]="FORCED"}(r||(r={})),t.MediaStreamDeliveryPriority=r},23663:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.LOGO_LABEL="logo-label",e.LOGO_TOOLTIP="logo-tooltip",e.LIVE_INDICATOR_TEXT="live-indicator-text",e.LIVE_SYNC_LABEL="live-sync-button-label",e.LIVE_SYNC_TOOLTIP="live-sync-button-tooltip",e.ENTER_FULL_SCREEN_LABEL="enter-full-screen-label",e.ENTER_FULL_SCREEN_TOOLTIP="enter-full-screen-tooltip",e.EXIT_FULL_SCREEN_LABEL="exit-full-screen-label",e.EXIT_FULL_SCREEN_TOOLTIP="exit-full-screen-tooltip",e.ENTER_PICTURE_IN_PICTURE_LABEL="enter-picture-in-picture-button-label",e.ENTER_PICTURE_IN_PICTURE_TOOLTIP="enter-picture-in-picture-button-tooltip",e.EXIT_PICTURE_IN_PICTURE_LABEL="exit-picture-in-picture-button-label",e.EXIT_PICTURE_IN_PICTURE_TOOLTIP="exit-picture-in-picture-button-tooltip",e.PLAY_CONTROL_LABEL="play-control-label",e.PAUSE_CONTROL_LABEL="pause-control-label",e.PROGRESS_CONTROL_LABEL="progress-control-label",e.PROGRESS_CONTROL_VALUE="progress-control-value",e.UNMUTE_CONTROL_LABEL="unmute-control-label",e.UNMUTE_CONTROL_TOOLTIP="unmute-control-label",e.MUTE_CONTROL_LABEL="mute-control-label",e.MUTE_CONTROL_TOOLTIP="mute-control-tooltip",e.VOLUME_CONTROL_LABEL="volume-control-label",e.VOLUME_CONTROL_VALUE="volume-control-value",e.DOWNLOAD_BUTTON_LABEL="download-button-label",e.DOWNLOAD_BUTTON_TOOLTIP="download-button-tooltip"}(n||(n={})),t.default=n},63232:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLAYER_API_PROPERTY=void 0,t.PLAYER_API_PROPERTY="___playerAPI";t.default=function(e){return function(n,r,o){var i,s,a=e||r;if(n[t.PLAYER_API_PROPERTY]||(n[t.PLAYER_API_PROPERTY]={}),n[t.PLAYER_API_PROPERTY][a]&&(i=n[t.PLAYER_API_PROPERTY][a],s=o,i.value!==s.value||i.get!==s.get||i.set!==s.set))throw new Error('Method "'.concat(a,'" for public API in ').concat(n.constructor.name," is already defined"));n[t.PLAYER_API_PROPERTY][a]=o}}},5775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var r=function(){function e(e,t){this._$elem=e,this._callback=t,this._fullscreenFn=function(){for(var e={},t=0;t<n.length;t+=1)if(n[t][1]in document){for(var r=0;r<n[t].length;r+=1)e[n[0][r]]=n[t][r];return e}return!1}(),this._bindEvents()}return Object.defineProperty(e.prototype,"isAPIExist",{get:function(){return Boolean(this._fullscreenFn)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInFullScreen",{get:function(){return"boolean"!=typeof this._fullscreenFn&&Boolean(document[this._fullscreenFn.fullscreenElement])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return"boolean"!=typeof this._fullscreenFn&&(this.isAPIExist&&document[this._fullscreenFn.fullscreenEnabled])},enumerable:!1,configurable:!0}),e.prototype._bindEvents=function(){if("boolean"==typeof this._fullscreenFn)return!1;document.addEventListener(this._fullscreenFn.fullscreenchange,this._callback)},e.prototype._unbindEvents=function(){if("boolean"==typeof this._fullscreenFn)return!1;document.removeEventListener(this._fullscreenFn.fullscreenchange,this._callback)},e.prototype.request=function(){if(this.isEnabled){var e=this._fullscreenFn.requestFullscreen;/5\.1[.\d]* Safari/.test(navigator.userAgent)?this._$elem[e]():this._$elem[e](Element.ALLOW_KEYBOARD_INPUT)}},e.prototype.exit=function(){this.isEnabled&&document[this._fullscreenFn.exitFullscreen]()},e.prototype.destroy=function(){this._unbindEvents(),this._$elem=null},e}();t.default=r},16022:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22970),o=n(4486),i=(0,r.__importDefault)(n(63232)),s=(0,r.__importDefault)(n(5775)),a=(0,r.__importDefault)(n(16898)),l=n(32313),c={exitFullScreenOnEnd:!0,enterFullScreenOnPlay:!1,exitFullScreenOnPause:!1,pauseVideoOnFullScreenExit:!1},u=function(){function e(e){var t=e.eventEmitter,n=e.engine,i=e.rootContainer,l=e.config;if(this._exitFullScreenOnEnd=!1,this._enterFullScreenOnPlay=!1,this._exitFullScreenOnPause=!1,this._pauseVideoOnFullScreenExit=!1,this._eventEmitter=t,this._engine=n,l.disableFullScreen)this._isEnabled=!1;else{this._isEnabled=!0;var u=(0,r.__assign)({},c);this._exitFullScreenOnEnd=u.exitFullScreenOnEnd,this._enterFullScreenOnPlay=u.enterFullScreenOnPlay,this._exitFullScreenOnPause=u.exitFullScreenOnPause,this._pauseVideoOnFullScreenExit=u.pauseVideoOnFullScreenExit}this._onChange=this._onChange.bind(this),(0,o.isIOS)()?(this._element=this._engine.getElement(),this._helper=new a.default(this._engine.getElement(),this._onChange)):(this._element=i.getElement(),this._helper=new s.default(i.getElement(),this._onChange)),this._bindEvents()}return e.prototype._onChange=function(e){e.target===this._element&&(!this._helper.isInFullScreen&&this._pauseVideoOnFullScreenExit&&this._engine.pause(),this._eventEmitter.emitAsync(l.UIEvent.FULL_SCREEN_STATE_CHANGED,this._helper.isInFullScreen))},e.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[l.VideoEvent.STATE_CHANGED,this._processNextStateFromEngine],[l.VideoEvent.PLAY_REQUEST,this._enterOnPlayRequested]],this)},e.prototype._exitOnEnd=function(){this._exitFullScreenOnEnd&&this.isInFullScreen&&this.exitFullScreen()},e.prototype._enterOnPlayRequested=function(){this._enterFullScreenOnPlay&&!this.isInFullScreen&&this.enterFullScreen()},e.prototype._exitOnPauseRequested=function(){this._exitFullScreenOnPause&&this.isInFullScreen&&this.exitFullScreen()},e.prototype._processNextStateFromEngine=function(e){switch(e.nextState){case l.EngineState.ENDED:this._exitOnEnd();break;case l.EngineState.PAUSED:this._exitOnPauseRequested()}},e.prototype.enableExitFullScreenOnPause=function(){this._exitFullScreenOnPause=!0},e.prototype.disableExitFullScreenOnPause=function(){this._exitFullScreenOnPause=!1},e.prototype.enableExitFullScreenOnEnd=function(){this._exitFullScreenOnEnd=!0},e.prototype.disableExitFullScreenOnEnd=function(){this._exitFullScreenOnPause=!1},e.prototype.enableEnterFullScreenOnPlay=function(){this._enterFullScreenOnPlay=!0},e.prototype.disableEnterFullScreenOnPlay=function(){this._enterFullScreenOnPlay=!1},e.prototype.enablePauseVideoOnFullScreenExit=function(){this._pauseVideoOnFullScreenExit=!0},e.prototype.disablePauseVideoOnFullScreenExit=function(){this._pauseVideoOnFullScreenExit=!1},e.prototype.enterFullScreen=function(){this.isEnabled&&this._helper.request()},e.prototype.exitFullScreen=function(){this.isEnabled&&this._helper.exit()},Object.defineProperty(e.prototype,"isInFullScreen",{get:function(){return!!this.isEnabled&&this._helper.isInFullScreen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._helper.isEnabled&&this._isEnabled},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._unbindEvents(),this._helper.destroy()},e.moduleName="fullScreenManager",e.dependencies=["eventEmitter","engine","rootContainer","config"],(0,r.__decorate)([(0,i.default)()],e.prototype,"enableExitFullScreenOnPause",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"disableExitFullScreenOnPause",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"enableExitFullScreenOnEnd",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"disableExitFullScreenOnEnd",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"enableEnterFullScreenOnPlay",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"disableEnterFullScreenOnPlay",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"enablePauseVideoOnFullScreenExit",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"disablePauseVideoOnFullScreenExit",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"enterFullScreen",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"exitFullScreen",null),(0,r.__decorate)([(0,i.default)()],e.prototype,"isInFullScreen",null),e}();t.default=u},16898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=!1,r=function(){function e(e,t){this._$elem=e,this._callback=t,this._bindEvents(),this._enterWhenHasMetaData=this._enterWhenHasMetaData.bind(this)}return Object.defineProperty(e.prototype,"isAPIExist",{get:function(){return Boolean(this._$elem&&this._$elem.webkitSupportsFullscreen)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInFullScreen",{get:function(){return Boolean(this._$elem&&this._$elem.webkitDisplayingFullscreen)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this.isAPIExist},enumerable:!1,configurable:!0}),e.prototype._bindEvents=function(){this._$elem.addEventListener("webkitbeginfullscreen",this._callback),this._$elem.addEventListener("webkitendfullscreen",this._callback)},e.prototype._unbindEvents=function(){this._$elem.removeEventListener("webkitbeginfullscreen",this._callback),this._$elem.removeEventListener("webkitendfullscreen",this._callback),this._$elem.removeEventListener("loadedmetadata",this._enterWhenHasMetaData)},e.prototype._enterWhenHasMetaData=function(){this._$elem.removeEventListener("loadedmetadata",this._enterWhenHasMetaData),n=!1,this.request()},e.prototype.request=function(){if(this.isEnabled&&!this.isInFullScreen&&!n)try{this._$elem.webkitEnterFullscreen()}catch(e){this._$elem.readyState<1&&(this._$elem.addEventListener("loadedmetadata",this._enterWhenHasMetaData),n=!0)}},e.prototype.exit=function(){this.isEnabled&&this.isInFullScreen&&this._$elem.webkitExitFullscreen()},e.prototype.destroy=function(){this._unbindEvents(),this._$elem=null},e}();t.default=r},4486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isDesktopSafari=t.isAndroid=t.isIOS=t.isIPad=t.isIPod=t.isIPhone=void 0;var n=/iphone/i,r=/ipod/i,o=/ipad/i,i=/(android)/i,s=/^((?!chrome|android).)*safari/i,a=/^((?!chrome|android|iphone|ipod|ipad).)*safari/i,l=function(){return!!window.MSStream},c=function(){return window.navigator&&window.navigator.userAgent},u=function(){return!l()&&n.test(c())};t.isIPhone=u;var d=function(){return!l()&&r.test(c())};t.isIPod=d;var p=function(){return!l()&&o.test(c())};t.isIPad=p;t.isIOS=function(){return u()||d()||p()};t.isAndroid=function(){return i.test(c())};t.isDesktopSafari=function(){return a.test(c())};t.isSafari=function(){return s.test(c())}},34406:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var a,l=[],c=!1,u=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},68262:(e,t,n)=>{"use strict";var r=n(23586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}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}},13980:(e,t,n)=>{e.exports=n(68262)()},23586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},43047:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(74530),o=n(35811),i=n(51031),s=function(){function e(e,t){var n=this;this.result={},this.animationFrameRequestId=null,this.rol=new r.default((function(r){n.animationFrameRequestId=window.requestAnimationFrame((function(){var s=o.default(e)(r);i.default(n.result,s)||(t(s),n.result=s)}))}))}return e.prototype.observe=function(e){this.rol.observe(e)},e.prototype.disconnect=function(){this.animationFrameRequestId&&window.cancelAnimationFrame(this.animationFrameRequestId),this.rol.disconnect()},e}();t.default=s},33625:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var s=n(27762),a=n(88677),l=n(35811),c=n(43047),u=n(51031);t.useContainerQuery=function(e,t){var n=s.useState((function(){return t?l.default(e)(t):{}})),r=n[0],o=n[1],i=s.useState(null),a=i[0],u=i[1],d=s.useCallback((function(e){u(e)}),[u]);return s.useEffect((function(){if(a){var t=new c.default(e,(function(e){o(e)}));return t.observe(a),function(){t.disconnect(),t=null}}}),[e,a,o]),[r,d]};var d=function(e){function t(t){var n=e.call(this,t)||this;return n.cqCore=null,n.state={params:t.initialSize?l.default(t.query)(t.initialSize):{}},n}return o(t,e),t.prototype.componentDidMount=function(){this._startObserving(this.props.query)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.cqCore&&!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!p.call(t,n[o])||!u.default(e[n[o]],t[n[o]]))return!1;return!0}(this.props.query,e.query)&&(this.cqCore.disconnect(),this.cqCore=null,this._startObserving(e.query))},t.prototype.componentDidUpdate=function(){this.cqCore.observe(a.findDOMNode(this))},t.prototype.componentWillUnmount=function(){this.cqCore.disconnect(),this.cqCore=null},t.prototype.render=function(){return this.props.children(this.state.params)},t.prototype._startObserving=function(e){var t=this;this.cqCore=new c.default(e,(function(e){t.setState({params:e})})),this.cqCore.observe(a.findDOMNode(this))},t}(s.Component);t.ContainerQuery=d,t.applyContainerQuery=function(e,t,n){return r=function(r){function u(e){var o=r.call(this,e)||this;return o.cqCore=null,o.state={params:n?l.default(t)(n):{}},o}return o(u,r),u.prototype.componentDidMount=function(){var e=this;this.cqCore=new c.default(t,(function(t){e.setState({params:t})})),this.cqCore.observe(a.findDOMNode(this))},u.prototype.componentDidUpdate=function(){this.cqCore.observe(a.findDOMNode(this))},u.prototype.componentWillUnmount=function(){this.cqCore.disconnect(),this.cqCore=null},u.prototype.render=function(){return s.createElement(e,i({},this.props,{containerQuery:this.state.params}))},u}(s.Component),r.displayName=e.displayName?"ContainerQuery("+e.displayName+")":"ContainerQuery",r;var r};var p=Object.prototype.hasOwnProperty},51031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.prototype.hasOwnProperty;t.default=function(e,t){var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(!n.call(t,r[i])||e[r[i]]!==t[r[i]])return!1;return!0}},66866:(e,t)=>{"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case o:return t}}}function C(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=f,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||S(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===f},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===a},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===E||e.$$typeof===v)},t.typeOf=S},48570:(e,t,n)=>{"use strict";e.exports=n(66866)},44714:(e,t,n)=>{"use strict";n.d(t,{zt:()=>Z,ET:()=>p,$j:()=>H,I0:()=>G,v9:()=>b});var r=n(43100),o=n(41110),i=n(88677);let s=function(e){e()};const a=()=>s;var l=n(27762);const c=Symbol.for("react-redux-context"),u="undefined"!=typeof globalThis?globalThis:{};function d(){var e;if(!l.createContext)return{};const t=null!=(e=u[c])?e:u[c]=new Map;let n=t.get(l.createContext);return n||(n=l.createContext(null),t.set(l.createContext,n)),n}const p=d();function h(e=p){return function(){return(0,l.useContext)(e)}}const m=h(),f=()=>{throw new Error("uSES not initialized!")};let g=f;const v=(e,t)=>e===t;function y(e=p){const t=e===p?m:h(e);return function(e,n={}){const{equalityFn:r=v,stabilityCheck:o,noopCheck:i}="function"==typeof n?{equalityFn:n}:n;const{store:s,subscription:a,getServerState:c,stabilityCheck:u,noopCheck:d}=t(),p=((0,l.useRef)(!0),(0,l.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,o])),h=g(a.addNestedSub,s.getState,c||s.getState,p,r);return(0,l.useDebugValue)(h),h}}const b=y();var E=n(7896),S=n(31461),C=n(73463),w=n.n(C),P=n(63920);const I=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function O(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:s}){let a,l,c,u,d,p=!1;function h(p,h){const m=!i(h,l),f=!o(p,a,h,l);return a=p,l=h,m&&f?(c=e(a,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?(e.dependsOnOwnProps&&(c=e(a,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):f?function(){const t=e(a,l),r=!s(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(o,i){return p?h(o,i):(a=o,l=i,c=e(a,l),u=t(r,l),d=n(c,u,l),p=!0,d)}}function T(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function N(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=N(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=N(o),o=r(t,n)),o},r}}function x(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function _(e,t,n){return(0,E.Z)({},n,e,t)}const L={notify(){},get:()=>[]};function R(e,t){let n,r=L,o=0,i=!1;function s(){u.onStateChange&&u.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=function(){const e=a();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=L)}const u={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:s,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}const k=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?l.useLayoutEffect:l.useEffect;function D(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function V(e,t){if(D(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!D(e[n[r]],t[n[r]]))return!1;return!0}const M=["reactReduxForwardedRef"];let B=f;const F=[null,null];function U(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function j(e,t){return e===t}const H=function(e,t,n,{pure:r,areStatesEqual:o=j,areOwnPropsEqual:i=V,areStatePropsEqual:s=V,areMergedPropsEqual:a=V,forwardRef:c=!1,context:u=p}={}){const d=u,h=function(e){return e?"function"==typeof e?A(e):x(e,"mapStateToProps"):T((()=>({})))}(e),m=function(e){return e&&"object"==typeof e?T((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?A(e):x(e,"mapDispatchToProps"):T((e=>({dispatch:e})))}(t),f=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,s){const a=e(t,n,s);return i?r(a,o)||(o=a):(i=!0,o=a),o}}}(e):x(e,"mergeProps"):()=>_}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:h,initMapDispatchToProps:m,initMergeProps:f,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:i,areMergedPropsEqual:a};function u(t){const[n,o,i]=l.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=(0,S.Z)(t,M);return[t.context,e,n]}),[t]),s=l.useMemo((()=>n&&n.Consumer&&(0,P.isContextConsumer)(l.createElement(n.Consumer,null))?n:d),[n,d]),a=l.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(a)&&Boolean(a.store);const p=c?t.store:a.store,h=u?a.getServerState:p.getState,m=l.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=(0,S.Z)(t,I);return O(n(e,i),r(e,i),o(e,i),e,i)}(p.dispatch,r)),[p]),[f,v]=l.useMemo((()=>{if(!g)return F;const e=R(p,c?void 0:a.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,a]),y=l.useMemo((()=>c?a:(0,E.Z)({},a,{subscription:f})),[c,a,f]),b=l.useRef(),C=l.useRef(i),w=l.useRef(),T=l.useRef(!1),N=(l.useRef(!1),l.useRef(!1)),A=l.useRef();k((()=>(N.current=!0,()=>{N.current=!1})),[]);const x=l.useMemo((()=>()=>w.current&&i===C.current?w.current:m(p.getState(),i)),[p,i]),_=l.useMemo((()=>e=>f?function(e,t,n,r,o,i,s,a,l,c,u){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!a.current)return;const e=t.getState();let n,h;try{n=r(e,o.current)}catch(e){h=e,p=e}h||(p=null),n===i.current?s.current||c():(i.current=n,l.current=n,s.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(g,p,f,m,C,b,T,N,w,v,e):()=>{}),[f]);var L,D,V;let j;L=U,D=[C,b,T,i,w,v],k((()=>L(...D)),V);try{j=B(_,x,h?()=>m(h(),i):x)}catch(e){throw A.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${A.current.stack}\n\n`),e}k((()=>{A.current=void 0,w.current=void 0,b.current=j}));const H=l.useMemo((()=>l.createElement(e,(0,E.Z)({},j,{ref:o}))),[o,e,j]);return l.useMemo((()=>g?l.createElement(s.Provider,{value:y},H):H),[s,H,y])}const p=l.memo(u);if(p.WrappedComponent=e,p.displayName=u.displayName=n,c){const t=l.forwardRef((function(e,t){return l.createElement(p,(0,E.Z)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,w()(t,e)}return w()(p,e)}};const Z=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const s=l.useMemo((()=>{const t=R(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}}),[e,r,o,i]),a=l.useMemo((()=>e.getState()),[e]);k((()=>{const{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),a!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[s,a]);const c=t||p;return l.createElement(c.Provider,{value:s},n)};function W(e=p){const t=e===p?m:h(e);return function(){const{store:e}=t();return e}}const z=W();function q(e=p){const t=e===p?z:W(e);return function(){return t().dispatch}}const G=q();var $,Y;$=o.useSyncExternalStoreWithSelector,g=$,(e=>{B=e})(r.useSyncExternalStore),Y=i.unstable_batchedUpdates,s=Y},98559:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");
/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case s:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case f:case m:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return v(e)===c}},63920:(e,t,n)=>{"use strict";e.exports=n(98559)},62515:(e,t,n)=>{"use strict";n.d(t,{NB:()=>te});var r=n(27762),o=n(88677),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=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},a.apply(this,arguments)};function l(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}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};var u=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),m=h,f=function(){return m.Date.now()},g=/\s/;var v=function(e){for(var t=e.length;t--&&g.test(e.charAt(t)););return t},y=/^\s+/;var b=function(e){return e?e.slice(0,v(e)+1).replace(y,""):e},E=h.Symbol,S=E,C=Object.prototype,w=C.hasOwnProperty,P=C.toString,I=S?S.toStringTag:void 0;var O=function(e){var t=w.call(e,I),n=e[I];try{e[I]=void 0;var r=!0}catch(e){}var o=P.call(e);return r&&(t?e[I]=n:delete e[I]),o},T=Object.prototype.toString;var N=O,A=function(e){return T.call(e)},x=E?E.toStringTag:void 0;var _=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":x&&x in Object(e)?N(e):A(e)},L=function(e){return null!=e&&"object"==typeof e};var R=b,k=u,D=function(e){return"symbol"==typeof e||L(e)&&"[object Symbol]"==_(e)},V=/^[-+]0x[0-9a-f]+$/i,M=/^0b[01]+$/i,B=/^0o[0-7]+$/i,F=parseInt;var U=u,j=f,H=function(e){if("number"==typeof e)return e;if(D(e))return NaN;if(k(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=k(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=R(e);var n=M.test(e);return n||B.test(e)?F(e.slice(2),n?2:8):V.test(e)?NaN:+e},Z=Math.max,W=Math.min;var z=function(e,t,n){var r,o,i,s,a,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,i=o;return r=o=void 0,c=t,s=e.apply(i,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function f(){var e=j();if(m(e))return g(e);a=setTimeout(f,function(e){var n=t-(e-l);return d?W(n,i-(e-c)):n}(e))}function g(e){return a=void 0,p&&r?h(e):(r=o=void 0,s)}function v(){var e=j(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(f,t),u?h(e):s}(l);if(d)return clearTimeout(a),a=setTimeout(f,t),h(l)}return void 0===a&&(a=setTimeout(f,t)),s}return t=H(t)||0,U(n)&&(u=!!n.leading,i=(d="maxWait"in n)?Z(H(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=o=a=void 0},v.flush=function(){return void 0===a?s:g(j())},v},q=z,G=u;var $=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return G(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),q(e,t,{leading:r,maxWait:t,trailing:o})},Y=function(e,t,n,r){switch(t){case"debounce":return z(e,n,r);case"throttle":return $(e,n,r);default:return e}},K=function(e){return"function"==typeof e},X=function(){return"undefined"==typeof window},Q=function(e){return e instanceof Element||e instanceof HTMLDocument},J=function(e,t,n,r){return function(o){var i=o.width,s=o.height;t((function(t){return t.width===i&&t.height===s||t.width===i&&!r||t.height===s&&!n?t:(e&&K(e)&&e(i,s),{width:i,height:s})}))}};!function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!X()){t&&t.current&&(n.targetRef.current=t.current);var o=n.getElement();o&&(n.observableElement&&n.observableElement===o||(n.observableElement=o,n.resizeObserver.observe(o,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(X())return null;if(t)return document.querySelector(t);if(r&&Q(r))return r;if(n.targetRef&&Q(n.targetRef.current))return n.targetRef.current;var i=(0,o.findDOMNode)(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,o=void 0===r||r,i=t.handleHeight,s=void 0===i||i,a=t.onResize;if(o||s){var l=J(a,n.setState.bind(n),o,s);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,o=t.height;!n.skipOnMount&&!X()&&l({width:r,height:o}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,o=e.children;return K(t)?"renderProp":K(o)?"childFunction":(0,r.isValidElement)(o)?"child":Array.isArray(o)?"childArray":"parent"};var i=t.skipOnMount,s=t.refreshMode,a=t.refreshRate,l=void 0===a?1e3:a,c=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=i,n.targetRef=(0,r.createRef)(),n.observableElement=null,X()||(n.resizeHandler=Y(n.createResizeHandler,s,l,c),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}s(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){X()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,o=t.children,i=t.nodeType,s=void 0===i?"div":i,a=this.state,c={width:a.width,height:a.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(c);case"childFunction":return(e=o)(c);case"child":if((e=o).type&&"string"==typeof e.type){var u=l(c,["targetRef"]);return(0,r.cloneElement)(e,u)}return(0,r.cloneElement)(e,c);case"childArray":return(e=o).map((function(e){return!!e&&(0,r.cloneElement)(e,c)}));default:return r.createElement(s,null)}}}(r.PureComponent);var ee=X()?r.useEffect:r.useLayoutEffect;function te(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,o=e.refreshMode,i=e.refreshRate,s=void 0===i?1e3:i,l=e.refreshOptions,c=e.handleWidth,u=void 0===c||c,d=e.handleHeight,p=void 0===d||d,h=e.targetRef,m=e.observerOptions,f=e.onResize,g=(0,r.useRef)(n),v=(0,r.useRef)(null),y=null!=h?h:v,b=(0,r.useRef)(),E=(0,r.useState)({width:void 0,height:void 0}),S=E[0],C=E[1];return ee((function(){if(!X()){var e=J(f,C,u,p);b.current=Y((function(t){(u||p)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,o=n.height;!g.current&&!X()&&e({width:r,height:o}),g.current=!1}))}),o,s,l);var t=new window.ResizeObserver(b.current);return y.current&&t.observe(y.current,m),function(){t.disconnect();var e=b.current;e&&e.cancel&&e.cancel()}}}),[o,s,l,u,p,f,m,y.current]),a({ref:y},S)}},7267:(e,t,n)=>{"use strict";n.d(t,{AW:()=>R,EN:()=>U,F0:()=>C,LX:()=>L,l_:()=>N,rs:()=>F,s6:()=>S});var r=n(81665),o=n(27762),i=n.n(o),s=n(13980),a=n.n(s),l=n(70809),c=n(10362),u=n(7896),d=n(20099),p=n.n(d),h=(n(48570),n(31461)),m=n(73463),f=n.n(m),g=1073741823,v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var y=i().createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return v[e]=(v[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(s=o)?0!==i||1/i==1/s:i!=i&&s!=s)?n=0:(n="function"==typeof t?t(r,o):g,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,s},o.render=function(){return this.props.children},n}(i().Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?g:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?g:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i().Component);return c.contextTypes=((o={})[s]=a().object,o),{Provider:l,Consumer:c}},b=function(e){var t=y();return t.displayName=e,t},E=b("Router-History"),S=b("Router"),C=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i().createElement(S.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i().createElement(E.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i().Component);i().Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i().Component);var P={},I=1e4,O=0;function T(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(P[e])return P[e];var t=p().compile(e);return O<I&&(P[e]=t,O++),t}(e)(t,{pretty:!0})}function N(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i().createElement(S.Consumer,null,(function(e){e||(0,c.Z)(!1);var r=e.history,s=e.staticContext,a=o?r.push:r.replace,d=(0,l.ob)(t?"string"==typeof n?T(n,t.params):(0,u.Z)({},n,{pathname:T(n.pathname,t.params)}):n);return s?(a(d),null):i().createElement(w,{onMount:function(){a(d)},onUpdate:function(e,t){var n=(0,l.ob)(t.to);(0,l.Hp)(n,(0,u.Z)({},d,{key:n.key}))||a(d)},to:n})}))}var A={},x=1e4,_=0;function L(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,s=n.strict,a=void 0!==s&&s,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=A[n]||(A[n]={});if(r[e])return r[e];var o=[],i={regexp:p()(e,o,t),keys:o};return _<x&&(r[e]=i,_++),i}(n,{end:i,strict:a,sensitive:c}),o=r.regexp,s=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),h=e===u;return i&&!h?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:h,params:s.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var R=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(S.Consumer,null,(function(t){t||(0,c.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?L(n.pathname,e.props):t.match,o=(0,u.Z)({},t,{location:n,match:r}),s=e.props,a=s.children,l=s.component,d=s.render;return Array.isArray(a)&&function(e){return 0===i().Children.count(e)}(a)&&(a=null),i().createElement(S.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:l?i().createElement(l,o):d?d(o):null:"function"==typeof a?a(o):null)}))},t}(i().Component);function k(e){return"/"===e.charAt(0)?e:"/"+e}function D(e,t){if(!e)return t;var n=k(e);return 0!==t.pathname.indexOf(n)?t:(0,u.Z)({},t,{pathname:t.pathname.substr(n.length)})}function V(e){return"string"==typeof e?e:(0,l.Ep)(e)}function M(e){return function(){(0,c.Z)(!1)}}function B(){}i().Component;var F=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(S.Consumer,null,(function(t){t||(0,c.Z)(!1);var n,r,o=e.props.location||t.location;return i().Children.forEach(e.props.children,(function(e){if(null==r&&i().isValidElement(e)){n=e;var s=e.props.path||e.props.from;r=s?L(o.pathname,(0,u.Z)({},e.props,{path:s})):t.match}})),r?i().cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i().Component);function U(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=(0,h.Z)(t,["wrappedComponentRef"]);return i().createElement(S.Consumer,null,(function(t){return t||(0,c.Z)(!1),i().createElement(e,(0,u.Z)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,f()(n,e)}i().useContext},21627:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(47677),o=n.n(r),i=n(81393),s=n(75952);const a=function(e){return null===e};function l(e,t,n){void 0===t&&(t=s.Z),o()((0,i.Z)(t)||a(t),"Expected payloadCreator to be a function, undefined or null");var r=a(t)||t===s.Z?s.Z:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},l=(0,i.Z)(n),c=e.toString(),u=function(){var t=r.apply(void 0,arguments),o={type:e};return t instanceof Error&&(o.error=!0),void 0!==t&&(o.payload=t),l&&(o.meta=n.apply(void 0,arguments)),o};return u.toString=function(){return c},u}},24220:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});const r=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="function"!=typeof t[t.length-1]&&t.pop(),o=t;if(void 0===r)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];var a=void 0===e,l=void 0===t;return a&&l&&r?r:o.reduce((function(e,n){return n.apply(void 0,[e,t].concat(i))}),a&&!l&&r?r:e)}};var o=n(47677),i=n.n(o);const s=function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},a=function(e){return"undefined"!=typeof Map&&e instanceof Map};function l(e){if(a(e))return Array.from(e.keys());if("undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}var c="||";function u(e,t){return a(t)?t.get(e):t[e]}const d=(p=function(e){return(s(e)||a(e))&&(t=l(e),n=t.every((function(e){return"next"===e||"throw"===e})),!(t.length&&t.length<=2&&n));var t,n},function e(t,n,r,o){var i=void 0===n?{}:n,s=i.namespace,a=void 0===s?"/":s,d=i.prefix;return void 0===r&&(r={}),void 0===o&&(o=""),l(t).forEach((function(n){var i=function(e){return o||!d||d&&new RegExp("^"+d+a).test(e)?e:""+d+a+e}(function(e){var t;if(!o)return e;var n=e.toString().split(c),r=o.split(c);return(t=[]).concat.apply(t,r.map((function(e){return n.map((function(t){return""+e+a+t}))}))).join(c)}(n)),s=u(n,t);p(s)?e(s,{namespace:a,prefix:d},r,i):r[i]=s})),r});var p,h=n(81393),m=n(75952);const f=function(e){return null==e},g=function(e){return void 0===e},v=function(e){return e.toString()};function y(e,t,n){void 0===n&&(n={}),i()(s(e)||a(e),"Expected handlers to be a plain object.");var o=d(e,n),p=l(o).map((function(e){return function(e,t,n){void 0===t&&(t=m.Z);var r=v(e).split(c);i()(!g(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),i()((0,h.Z)(t)||s(t),"Expected reducer to be a function or object with next and throw reducers");var o=(0,h.Z)(t)?[t,t]:[t.next,t.throw].map((function(e){return f(e)?m.Z:e})),a=o[0],l=o[1];return function(e,t){void 0===e&&(e=n);var o=t.type;return o&&-1!==r.indexOf(v(o))?(!0===t.error?l:a)(e,t):e}}(e,u(e,o),t)})),y=r.apply(void 0,p.concat([t]));return function(e,n){return void 0===e&&(e=t),y(e,n)}}},75952:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return e}},81393:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return"function"==typeof e}},74081:(e,t,n)=>{"use strict";n.d(t,{md:()=>m,UY:()=>p,qC:()=>h,MT:()=>d});var r=n(56666);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var a="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(d)(e,t)}if("function"!=typeof e)throw new Error(s(2));var o=e,i=t,l=[],p=l,h=!1;function m(){p===l&&(p=l.slice())}function f(){if(h)throw new Error(s(3));return i}function g(e){if("function"!=typeof e)throw new Error(s(4));if(h)throw new Error(s(5));var t=!0;return m(),p.push(e),function(){if(t){if(h)throw new Error(s(6));t=!1,m();var n=p.indexOf(e);p.splice(n,1),l=null}}}function v(e){if(!u(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(h)throw new Error(s(9));try{h=!0,i=o(i,e)}finally{h=!1}for(var t=l=p,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:c.INIT}),(r={dispatch:v,subscribe:g,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,v({type:c.REPLACE})}})[a]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[a]=function(){return this},e},r}function p(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:c.INIT}))throw new Error(s(12));if(void 0===n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(s(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<a.length;l++){var c=a[l],u=n[c],d=e[c],p=u(d,t);if(void 0===p){t&&t.type;throw new Error(s(14))}o[c]=p,r=r||p!==d}return(r=r||a.length!==Object.keys(e).length)?o:e}}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(s(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=h.apply(void 0,a)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},10961:(e,t,n)=>{"use strict";var r=n(20767),o=n(5408),i=Object;e.exports=r((function(){if(null==this||this!==i(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e}),"get flags",!0)},82201:(e,t,n)=>{"use strict";var r=n(14926),o=n(89429),i=n(10961),s=n(54366),a=n(60698),l=o(s());r(l,{getPolyfill:s,implementation:i,shim:a}),e.exports=l},54366:(e,t,n)=>{"use strict";var r=n(10961),o=n(14926).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},60698:(e,t,n)=>{"use strict";var r=n(14926).supportsDescriptors,o=n(54366),i=Object.getOwnPropertyDescriptor,s=Object.defineProperty,a=TypeError,l=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!l)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=l(c),n=i(t,"flags");return n&&n.get===e||s(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},97698:(e,t,n)=>{"use strict";n.d(t,{P1:()=>a});var r="NOT_FOUND";var o=function(e,t){return e===t};function i(e,t){var n,i,s="object"==typeof t?t:{equalityCheck:t},a=s.equalityCheck,l=void 0===a?o:a,c=s.maxSize,u=void 0===c?1:c,d=s.resultEqualityCheck,p=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(l),h=1===u?(n=p,{get:function(e){return i&&n(i.key,e)?i.value:r},put:function(e,t){i={key:e,value:t}},getEntries:function(){return i?[i]:[]},clear:function(){i=void 0}}):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(u,p);function m(){var t=h.get(arguments);if(t===r){if(t=e.apply(null,arguments),d){var n=h.getEntries().find((function(e){return d(e.value,t)}));n&&(t=n.value)}h.put(arguments,t)}return t}return m.clearCache=function(){return h.clear()},m}function s(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,s=0,a={memoizeOptions:void 0},l=r.pop();if("object"==typeof l&&(a=l,l=r.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=a.memoizeOptions,u=void 0===c?n:c,d=Array.isArray(u)?u:[u],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),h=e.apply(void 0,[function(){return s++,l.apply(null,arguments)}].concat(d)),m=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return i=h.apply(null,e)}));return Object.assign(m,{resultFunc:l,memoizedResultFunc:h,dependencies:p,lastResult:function(){return i},recomputations:function(){return s},resetRecomputations:function(){return s=0}}),m}}var a=s(i)},74530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(200),o=function(){function e(e){var t=this;this.handler=e,this.listenedElement=null,this.hasResizeObserver=void 0!==window.ResizeObserver,this.hasResizeObserver?this.rz=new ResizeObserver((function(e){t.handler(i(e[0].target))})):this.erd=r({strategy:"scroll"})}return e.prototype.observe=function(e){var t=this;this.listenedElement!==e&&(this.listenedElement&&this.disconnect(),e&&(this.hasResizeObserver?this.rz.observe(e):this.erd.listenTo(e,(function(e){t.handler(i(e))}))),this.listenedElement=e)},e.prototype.disconnect=function(){this.listenedElement&&(this.hasResizeObserver?this.rz.disconnect():this.erd.uninstall(this.listenedElement),this.listenedElement=null)},e}();function i(e){return{width:s(window.getComputedStyle(e).width),height:s(window.getComputedStyle(e).height)}}function s(e){var t=/^([0-9\.]+)px$/.exec(e);return t?parseFloat(t[1]):0}t.default=o},71911:e=>{"use strict";var t,n,r=["top","left","right","bottom"],o={};function i(){return n="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function s(){if(n="string"==typeof n?n:i()){var e=[],s=!1;try{var a=Object.defineProperty({},"passive",{get:function(){s={passive:!0}}});window.addEventListener("test",null,a)}catch(e){}var u=document.createElement("div");d(u,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),r.forEach((function(e){h(u,e)})),document.body.appendChild(u),p(),t=!0}else r.forEach((function(e){o[e]=0}));function d(e,t){var n=e.style;Object.keys(t).forEach((function(e){var r=t[e];n[e]=r}))}function p(t){t?e.push(t):e.forEach((function(e){e()}))}function h(e,t){var r=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div"),u=document.createElement("div"),h={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:n+"(safe-area-inset-"+t+")"};d(r,h),d(i,h),d(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),d(u,{transition:"0s",animation:"none",width:"250%",height:"250%"}),r.appendChild(a),i.appendChild(u),e.appendChild(r),e.appendChild(i),p((function(){r.scrollTop=i.scrollTop=1e4;var e=r.scrollTop,n=i.scrollTop;function a(){this.scrollTop!==(this===r?e:n)&&(r.scrollTop=i.scrollTop=1e4,e=r.scrollTop,n=i.scrollTop,function(e){l.length||setTimeout((function(){var e={};l.forEach((function(t){e[t]=o[t]})),l.length=0,c.forEach((function(t){t(e)}))}),0);l.push(e)}(t))}r.addEventListener("scroll",a,s),i.addEventListener("scroll",a,s)}));var m=getComputedStyle(r);Object.defineProperty(o,t,{configurable:!0,get:function(){return parseFloat(m.paddingBottom)}})}}function a(e){return t||s(),o[e]}var l=[];var c=[];var u={get support(){return 0!=("string"==typeof n?n:i()).length},get top(){return a("top")},get left(){return a("left")},get right(){return a("right")},get bottom(){return a("bottom")},onChange:function(e){i()&&(t||s(),"function"==typeof e&&c.push(e))},offChange:function(e){var t=c.indexOf(e);t>=0&&c.splice(t,1)}};e.exports=u},47669:(e,t,n)=>{"use strict";var r=n(67286),o=n(75195),i=n(81181)(),s=n(50326),a=n(5408),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},20767:(e,t,n)=>{"use strict";var r=n(75195),o=n(81181)(),i=n(8462).functionsHaveConfigurableNames(),s=TypeError;e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!i||(o?r(e,"name",t,!0,!0):r(e,"name",t)),e}},26047:(e,t,n)=>{"use strict";var r=n(30905),o=Array.prototype.concat,i=Array.prototype.slice,s=e.exports=function(e){for(var t=[],n=0,s=e.length;n<s;n++){var a=e[n];r(a)?t=o.call(t,i.call(a)):t.push(a)}return t};s.wrap=function(e){return function(){return e(s(arguments))}}},30905:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},20452:(e,t,n)=>{"use strict";
/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(27762);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),s((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},80402:(e,t,n)=>{"use strict";
/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(27762),o=n(43100);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,a=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return a=t}return a=e}if(t=a,i(s,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(s=e,a=n)}var s,a,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var h=s(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},43100:(e,t,n)=>{"use strict";e.exports=n(20452)},41110:(e,t,n)=>{"use strict";e.exports=n(80402)},45982:e=>{"use strict";var t=function(){};e.exports=t},72915:(e,t,n)=>{"use strict";n.d(t,{h:()=>f,m:()=>D});var r=n(22970),o=n(77225),i=n(32313),s=n(63232),a=n(17607);const l="Ar0qqi",c="f6o2be",u="B0TlqF",d="orientation-vertical",p="orientation-horizontal",h="direction-standard",m="direction-reverse";var f;!function(e){e.TOP_LEFT="anchor-top-left",e.TOP_RIGHT="anchor-top-right",e.BOTTOM_LEFT="anchor-bottom-left",e.BOTTOM_RIGHT="anchor-bottom-right"}(f||(f={}));const g="card-closed",v="card-shown",y="card-hidden",b="config-changed",E=()=>new Promise((e=>setTimeout(e,4)));class S{constructor({cardsConfig:e}){this.cardsConfig=e,this.initUI(),this.handleConfigChange(),this.cardsConfig.onChange(this.handleConfigChange,this)}initUI(){this.node=document.createElement("div"),this.node.classList.add(c),this.onControlsShown(),this.enableAnimation()}handleConfigChange(){const{isPreviewMode:e,anchorPoint:t}=this.cardsConfig;e?this.enablePreviewMode():this.disablePreviewMode(),this.setAnchorPoint(t)}hide(){this.node.classList.add(l)}show(){this.node.classList.remove(l)}enablePreviewMode(){this.node.classList.add("preview-mode")}disablePreviewMode(){this.node.classList.remove("preview-mode")}onControlsShown(){this.node.classList.add(u)}onControlsHidden(){this.node.classList.remove(u)}setAnchorPoint(e){this.node.setAttribute("data-anchor-point",e)}enableAnimation(){return this.node.classList.add("animated"),E()}disableAnimation(){return this.node.classList.remove("animated"),E()}addCardNodes(e){return e.forEach((e=>this.node.appendChild(e.node))),E()}removeCardNodes(e){e.forEach((e=>this.removeCardNode(e)))}removeCardNode(e){e.node.parentNode===this.node&&this.node.removeChild(e.node)}getSize(){const{orientation:e}=this.cardsConfig;return e===p?this.node.offsetWidth:this.node.offsetHeight}destroy(){this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.node}}var C=n(12524),w=n.n(C);const P="Snflsk",I="uG0u6r",O="yqC9OE",T="crx5If",N={[p]:{[h]:"left",[m]:"right"},[d]:{[h]:"top",[m]:"bottom"}};class A{constructor({eventEmitter:e,cardsConfig:t,contentNode:n,from:r,to:o,order:i,id:s,hasDynamicContent:a=!1}){this.eventEmitter=e,this.cardsConfig=t,this.contentNode=n,this.isActive=!1,this.isVisible=!1,this.isClosed=!1,this.from=r/1e3,this.to=o/1e3,this.order=i,this.id=s,this.hasDynamicContent=a,this.initContainer()}initContainer(){this.node=document.createElement("div"),this.node.className=w()(P,O,"action-card"),this.node.setAttribute("data-hook","action-card");const e=document.createElement("div");e.className=T,e.setAttribute("data-hook","card-close-button"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><path fill="#FFF" fill-rule="evenodd" d="m5.94 5 3.77-3.77-.94-.94L5 4.06 1.23.29l-.94.94L4.06 5 .29 8.77l.94.94L5 5.94l3.77 3.77.94-.94L5.94 5z"/></svg>',this.node.appendChild(this.contentNode),this.node.appendChild(e),e.addEventListener("click",this.close.bind(this))}show(){this.isVisible=!0,this.node.classList.remove(O),this.node.classList.add(I),this.eventEmitter.emit(v,this)}hide(){this.isVisible=!1,this.node.classList.remove(I),this.node.classList.add(O),this.eventEmitter.emit(y,this)}close(){this.isClosed=!0,this.eventEmitter.emit(g,this)}shouldBeActiveAt(e){return!this.isClosed&&e>=this.from&&e<=this.to}setInitialPosition(e=0){this.node.style.left="auto",this.node.style.right="auto",this.updatePosition(-1*(this.getSize()+e))}getSize(){const{orientation:e}=this.cardsConfig;return e===p?this.node.offsetWidth:this.node.offsetHeight}updatePosition(e){const{orientation:t,direction:n}=this.cardsConfig,r=N[t][n];this.node.style[r]=`${e}px`}addResizeHandler(e){!this.resizeSensor&&this.hasDynamicContent&&(this.resizeSensor=new o.ResizeSensor(this.node,e))}removeResizeHandler(e){this.resizeSensor&&this.resizeSensor.detach(e)}}const x=1e3;class _{constructor({eventEmitter:e,engine:t,cardsContainer:n,cardsConfig:r}){this.eventEmitter=e,this.engine=t,this.cardsContainer=n,this.cardsConfig=r,this.availableCards=[],this.activeCards=[],this.isAnimationEnabled=!0,this.timeouts=[],this.disableAnimationRequestsCount=0,this.previousSeekPosition=0,this._updateCardsState=this._updateCardsState.bind(this),this.updateCardsOnTimeChange=this.updateCardsOnTimeChange.bind(this),this.slideNextCard=this.slideNextCard.bind(this),this.handleCardSizeChange=this.handleCardSizeChange.bind(this),this.cardsConfig.onChange(this.handleConfigChange,this),this.isDestroyed=!1}async addCard(e){await this._disableAnimation(),this._createCard(e),this._clearActiveCards(),await this._updateCardsState(),this._enableAnimation()}async addCards(e){await this._disableAnimation(),e.forEach((e=>this._createCard(e))),this._clearActiveCards(),await this._updateCardsState(),this._enableAnimation()}async removeCard(e){await this._disableAnimation();const t=(0,a.find)(this.availableCards,{id:e});t?(this.availableCards.splice(this.availableCards.indexOf(t),1),await this._disableCards([t]),this._enableAnimation()):this._enableAnimation()}async updateCards(e){await this._disableAnimation(),e.forEach((e=>{const{id:t,from:n,to:r,order:o}=e,i=(0,a.find)(this.availableCards,{id:t});(0,a.merge)(i,{from:n/1e3,to:r/1e3,order:o})})),this._sortCards(),await this._clearActiveCards(),await this._updateCardsState(),this._enableAnimation()}clearCards(){this.cardsContainer.removeCardNodes(this.availableCards),this.availableCards=[],this.activeCards=[]}_createCard(e){const t=new A({...e,cardsConfig:this.cardsConfig,eventEmitter:this.eventEmitter});this.availableCards.push(t),this._sortCards()}_sortCards(){this.availableCards.sort(((e,t)=>e.from===t.from?e.order-t.order:e.from-t.from))}handleVideoPlayStart(){this.stopTracking(),this.startTracking(),this.startSlider()}handleVideoPlayPause(){this.stopTracking(),this.stopSlider()}updateCardsOnTimeChange(){return this._updateCardsState()}async handleSeekPositionChange(){const e=this.engine.getCurrentTime();e!==this.previousSeekPosition&&(this.previousSeekPosition=e,this._cancelDeferredUpdates(),await this._disableAnimation(),await this._updateCardsState(),this._enableAnimation())}handleCardClose(e){this.cardsConfig.isPreviewMode||this._closeCard(e)}async handlePlayerSizeChange(){this._cancelDeferredUpdates(),await this._disableAnimation(),this.resetSliderInterval(),this._hideNotFittingCards(),await this._checkIfMoreCardsCanBeShown(),await this._updateCardsPositions(),this._enableAnimation()}handleCardSizeChange(){this._hideNotFittingCards(),this._updateCardsPositions()}async handleConfigChange(){await this._disableAnimation(),this._clearActiveCards(),await this._updateCardsState(),this._enableAnimation()}async _updateCardsState(){const e=this.engine.getCurrentTime(),t=this.availableCards.filter((t=>t.isActive&&!t.shouldBeActiveAt(e)));await this._disableCards(t);const n=this.availableCards.filter((t=>!t.isActive&&t.shouldBeActiveAt(e)));await this._enableCards(n)}async _disableCards(e){if(!e.length)return Promise.resolve();this._removeCardsFromActive(e),this._defer((()=>this.cardsContainer.removeCardNodes(e)),x),await E(),await this._checkIfMoreCardsCanBeShown(),await this._updateCardsPositions()}async _enableCards(e){if(!e.length)return Promise.resolve();this._addCardsToActive(e),await this.cardsContainer.addCardNodes(e),await this._showCards(e)}_addCardsToActive(e){e.forEach((e=>e.isActive=!0));const t=(0,a.findLastIndex)(this.activeCards,"isVisible")+1;this.activeCards.splice(t,0,...e)}_removeCardsFromActive(e){e.forEach((e=>{this._hideCard(e),e.isActive=!1,this.activeCards.splice(this.activeCards.indexOf(e),1)}))}_clearActiveCards(){this._removeCardsFromActive([...this.activeCards])}startSlider(){this.sliderInterval||(this.sliderInterval=setInterval(this.slideNextCard,6e3))}stopSlider(){clearInterval(this.sliderInterval),this.sliderInterval=null}startTracking(){this.trackingInterval=setInterval(this.updateCardsOnTimeChange,100)}stopTracking(){clearInterval(this.trackingInterval),this.trackingInterval=null}resetSliderInterval(){this.sliderInterval&&(this.stopSlider(),this.startSlider())}slideNextCard(){return this._defer((()=>{this._checkIfMoreCardsCanBeShown()}),x),this._showNextCard()}async _showCards(e=[]){const t=this._limitToContainerSize(e);this._hideNotFittingCards(t),this._sortCardNodes(t),await E(),await this._prepareCardsToShow(t),t.forEach((e=>this._showCard(e))),await this._updateCardsPositions(),await E()}_showCard(e){e.show(),e.addResizeHandler(this.handleCardSizeChange),this.resetSliderInterval()}_hideCard(e){e.removeResizeHandler(this.handleCardSizeChange),e.hide(),this._defer((()=>e.setInitialPosition()),x)}_sortCardNodes(e){const t=this.activeCards.filter((t=>t.isVisible||-1!==e.indexOf(t)));this.cardsContainer.addCardNodes([...t].reverse())}_showNextCard(){if(!(0,a.filter)(this.activeCards,["isVisible",!1]).length)return;const e=(0,a.find)(this.activeCards,["isVisible",!1]);return this._showCards([e])}_closeCard(e){this._removeCardsFromActive([e]),this._defer((()=>this.cardsContainer.removeCardNode(e)),x),this._defer((()=>this._fillGaps()),500)}async _fillGaps(){await this._checkIfMoreCardsCanBeShown(),this._updateCardsPositions()}_limitToContainerSize(e){const t=[],n=this.cardsContainer.getSize();let r=0;return e.forEach((e=>{r+=e.getSize(),r<n&&t.push(e)})),t}_prepareCardsToShow(e){let t=0;return e.forEach((e=>{e.setInitialPosition(t),t+=e.getSize()})),E()}_hideNotFittingCards(e=[]){const t=this.cardsContainer.getSize();let n=[...(0,a.filter)(this.activeCards,"isVisible"),...e].reduce(((e,t)=>e+t.getSize()),0);for(;n>t;){const e=this.activeCards.shift();this._hideCard(e),this.activeCards.push(e),n-=e.getSize()}}_checkIfMoreCardsCanBeShown(){if(this.isDestroyed)return;const e=this.cardsContainer.getSize(),t=[];let n=0;return this.activeCards.forEach((r=>{n+=r.getSize(),n<e&&!r.isVisible&&t.push(r)})),t.length?this._showCards(t):Promise.resolve()}_updateCardsPositions(){this.activeCards.filter((e=>e.isVisible)).reduceRight(((e,t)=>(t.updatePosition(e),e+t.getSize())),0)}async showSelectedCard(e){await this._disableAnimation();const t=(0,a.find)(this.activeCards,{id:e});if(t&&!t.isVisible){for(;!t.isVisible;)await this._showNextCard();this._enableAnimation()}else this._enableAnimation()}async _enableAnimation(){this.disableAnimationRequestsCount-=1,0===this.disableAnimationRequestsCount&&(this.isAnimationEnabled=!0,await this.cardsContainer.enableAnimation())}async _disableAnimation(){this.disableAnimationRequestsCount+=1,this.isAnimationEnabled=!1,await this.cardsContainer.disableAnimation()}_defer(e,t){const n=this.isAnimationEnabled?t:0;this.timeouts.push(setTimeout(e,n))}_cancelDeferredUpdates(){this.timeouts.forEach((e=>clearTimeout(e)))}destroy(){this.isDestroyed=!0,this.stopTracking(),this.stopSlider(),this._cancelDeferredUpdates(),delete this.cardsContainer}}var L=n(10161);const R={[p]:{[f.TOP_LEFT]:h,[f.TOP_RIGHT]:m,[f.BOTTOM_LEFT]:h,[f.BOTTOM_RIGHT]:m},[d]:{[f.TOP_LEFT]:h,[f.TOP_RIGHT]:h,[f.BOTTOM_LEFT]:m,[f.BOTTOM_RIGHT]:m}};class k extends L.EventEmitter{constructor(){super(),this._orientation=p,this._anchorPoint=f.BOTTOM_LEFT,this._isPreviewMode=!1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this.emit(b)}get anchorPoint(){return this._anchorPoint}set anchorPoint(e){this._anchorPoint=e,this.emit(b)}get isPreviewMode(){return this._isPreviewMode}set isPreviewMode(e){this._isPreviewMode=e,this.emit(b)}get direction(){const{anchorPoint:e,orientation:t}=this;return R[t][e]}onChange(e,t){this.on(b,e,t)}destroy(){this.eventNames().forEach((e=>{this.removeAllListeners(e)}))}}class D{constructor({eventEmitter:e,rootContainer:t,engine:n}){this.eventEmitter=e,this.rootContainer=t,this.engine=n,this.cardsConfig=new k,this.isInitialized=!1,this.hide=a.noop,this.show=a.noop,this.handlePlayerSizeChange=this.handlePlayerSizeChange.bind(this)}initialize(){this.isInitialized||(this.initContainer(),this.initManager(),this.initEventListeners(),this.hide=()=>this.cardsContainer.hide(),this.show=()=>this.cardsContainer.show(),this.isInitialized=!0,setTimeout((()=>this.handlePlayerStateChange({nextState:this.engine.getCurrentState()})),0))}initContainer(){this.cardsContainer=new S({cardsConfig:this.cardsConfig}),this.rootContainer.appendComponentElement(this.cardsContainer.node)}initManager(){this.cardsManager=new _({cardsContainer:this.cardsContainer,eventEmitter:this.eventEmitter,cardsConfig:this.cardsConfig,engine:this.engine})}initEventListeners(){this.eventEmitter.on(i.VIDEO_EVENTS.STATE_CHANGED,this.handlePlayerStateChange,this),this.eventEmitter.on(i.UI_EVENTS.MAIN_BLOCK_HIDE,this.cardsContainer.onControlsHidden,this.cardsContainer),this.eventEmitter.on(i.UI_EVENTS.MAIN_BLOCK_SHOW,this.cardsContainer.onControlsShown,this.cardsContainer),E().then((()=>this.resizeSensor=new o.ResizeSensor(this.rootContainer.getElement(),this.handlePlayerSizeChange))),this.eventEmitter.on(g,this.cardsManager.handleCardClose,this.cardsManager)}addCard(e){return this.initialize(),this.cardsManager.addCard(e)}addCards(e){return this.initialize(),this.cardsManager.addCards(e)}removeCard(e){this.cardsManager.removeCard(e)}updateCards(e){return this.cardsManager.updateCards(e)}clearCards(){this.isInitialized&&this.cardsManager.clearCards()}setAnchorPoint(e){this.cardsConfig.anchorPoint!==e&&(this.cardsConfig.anchorPoint=e)}setOrientation(e){this.cardsConfig.orientation!==e&&(this.cardsConfig.orientation=e)}onCardClose(e){this.eventEmitter.on(g,e)}onCardShown(e){this.eventEmitter.on(v,e)}onCardHidden(e){this.eventEmitter.on(y,e)}setCardsClosable(e){const t=!e;this.cardsConfig.isPreviewMode!==t&&(this.cardsConfig.isPreviewMode=t)}setActiveCard(e){if(this.isInitialized)return this.cardsManager.showSelectedCard(e)}hideCardsContainer(){this.hide()}showCardsContainer(){this.show()}handlePlayerSizeChange(){this.cardsManager.handlePlayerSizeChange()}handlePlayerStateChange({nextState:e}){switch(e){case i.EngineState.PLAYING:this.cardsManager.handleVideoPlayStart();break;case i.EngineState.PAUSED:this.cardsManager.handleVideoPlayPause();break;case i.EngineState.SEEK_IN_PROGRESS:this.cardsManager.handleSeekPositionChange()}}unbindEvents(){this.eventEmitter.off(i.VIDEO_EVENTS.STATE_CHANGED,this.handlePlayerStateChange,this),this.eventEmitter.off(i.UI_EVENTS.MAIN_BLOCK_HIDE,this.cardsContainer.onControlsHidden,this.cardsContainer),this.eventEmitter.off(i.UI_EVENTS.MAIN_BLOCK_SHOW,this.cardsContainer.onControlsShown,this.cardsContainer),this.eventEmitter.off(g),this.eventEmitter.off(v),this.eventEmitter.off(y)}destroy(){this.isInitialized&&(this.unbindEvents(),this.cardsContainer.destroy(),this.cardsManager.destroy(),this.cardsConfig.destroy(),this.resizeSensor&&this.resizeSensor.detach(this.handlePlayerSizeChange),delete this.cardsContainer,delete this.cardsManager,delete this.cardsConfig)}}D.dependencies=["eventEmitter","rootContainer","engine"],(0,r.__decorate)([(0,s.default)()],D.prototype,"addCard",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"addCards",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"removeCard",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"updateCards",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"clearCards",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"setAnchorPoint",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"setOrientation",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"onCardClose",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"onCardShown",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"onCardHidden",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"setCardsClosable",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"setActiveCard",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"hideCardsContainer",null),(0,r.__decorate)([(0,s.default)()],D.prototype,"showCardsContainer",null)},82402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r,o=n(72788),i=n(99784);function s(){return("undefined"!=typeof window&&window.location.href.match(/editorx.com/)?r.EditorX:r.Editor)===r.EditorX}!function(e){e.ADI="onboarding",e.Editor="editor",e.EditorX="editor_x"}(r||(r={}));class a{constructor(e,t=""){this.httpClient=e,this.baseUrlPath=t}get defaultOptions(){const e={baseURL:this.getBaseUrl(),xsrfCookieName:"non-existing-cookie",withCredentials:!0},t=(0,i.O_)();return t&&(e.headers={...e.headers??{},Authorization:t}),e}get baseOrigin(){return s()?o.l.catalogEditorX:o.l.catalog}getBaseUrl(){return this.baseOrigin+this.baseUrlPath}getRelativeBasePath(){return this.getBaseUrl()??""}async request(e){return this.httpClient.request({baseURL:this.getBaseUrl(),...this.defaultOptions,...e})}async post(e,t,n){return this.httpClient.post(this.getRelativeBasePath()+e,t,{...this.defaultOptions,...n})}async patch(e,t,n){return this.httpClient.patch(this.getRelativeBasePath()+e,t,{...this.defaultOptions,...n})}async put(e,t,n){return this.httpClient.put(this.getRelativeBasePath()+e,t,{...this.defaultOptions,...n})}async get(e,t){return this.httpClient.get(this.getRelativeBasePath()+e,{...this.defaultOptions,...t})}async delete(e,t){return this.httpClient.delete(this.getRelativeBasePath()+e,{...this.defaultOptions,...t})}}class l extends a{constructor(e,t,n){super(e,n),this.baseUrl=t}getBaseUrl(){if(void 0===this.baseUrl)return super.getBaseUrl();try{return new URL(this.baseUrl).origin}catch(e){return}}getRelativeBasePath(){if(void 0===this.baseUrl)return super.getRelativeBasePath();try{return new URL(this.baseUrl).pathname}catch(e){return this.baseUrl}}}},71061:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(82402);class o extends r.Z{constructor(e,t){super(e,t,"/api/v2")}}},11501:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(55723);class o extends Error{constructor(e,t,n){super(),this.status=e,this.url=t,this.error=n,this.name=this.constructor.name}}function i(e){const t=e.response,{status:n,statusText:i,data:s={}}=t,a=e.config?.url,l=(0,r.hg)(s),{errorCode:c,errorDescription:u}=l;return Promise.reject(new o(n,a,{code:c,data:l,message:u||i}))}},4230:(e,t,n)=>{"use strict";var r;n.d(t,{q:()=>r}),function(e){e.Item="item",e.ItemScheduled="item-scheduled",e.ItemLive="item-live",e.ItemLiveFinalize="item-live-finalize"}(r||(r={}))},11442:(e,t,n)=>{"use strict";var r;n.d(t,{b:()=>r}),function(e){e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.ACTIVE="ACTIVE",e.DECLINED="DECLINED",e.EXPIRED="EXPIRED",e.CANCELED="CANCELED",e.REFUNDED="REFUNDED",e.SUSPENDED="SUSPENDED",e.FAILED="FAILED"}(r||(r={}))},15184:(e,t,n)=>{"use strict";var r;n.d(t,{u:()=>r}),function(e){e.SUBSCRIPTION="subscription",e.RENT="rent",e.PURCHASE="sale",e.MEMBER_ONLY="memberOnly",e.PLAN="plan"}(r||(r={}))},90655:(e,t,n)=>{"use strict";var r,o;n.d(t,{P:()=>r,g:()=>o}),function(e){e[e.CLASSIC=1]="CLASSIC",e[e.STRIP=2]="STRIP",e[e.COMPACT=3]="COMPACT",e[e.SLIDER_BIG=4]="SLIDER_BIG",e[e.SLIDER_SMALL=5]="SLIDER_SMALL",e[e.GRID=6]="GRID"}(r||(r={})),function(e){e[e.COMPACT=3]="COMPACT",e[e.VERTICAL=6]="VERTICAL"}(o||(o={}))},10550:(e,t,n)=>{"use strict";var r;n.d(t,{a:()=>r}),function(e){e[e.EXPAND_ON_CLICK=1]="EXPAND_ON_CLICK",e[e.ALWAYS_SHOW=2]="ALWAYS_SHOW",e[e.NEVER_SHOW=3]="NEVER_SHOW"}(r||(r={}))},67170:(e,t,n)=>{"use strict";var r;n.d(t,{y:()=>r}),function(e){e[e.IN_FRAME=1]="IN_FRAME",e[e.EXPANDED_VIEW=2]="EXPANDED_VIEW"}(r||(r={}))},90733:(e,t,n)=>{"use strict";var r;n.d(t,{b:()=>r}),function(e){e[e.EXPAND_ON_CLICK=1]="EXPAND_ON_CLICK",e[e.ALWAYS_SHOW=2]="ALWAYS_SHOW",e[e.NEVER_SHOW=3]="NEVER_SHOW"}(r||(r={}))},63582:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,C:()=>r});const r=2,o=2},81249:(e,t,n)=>{"use strict";var r;n.d(t,{S:()=>r}),function(e){e[e.DARK=1]="DARK",e[e.LIGHT=2]="LIGHT"}(r||(r={}))},41149:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>r}),function(e){e[e.ON_VIDEOS=1]="ON_VIDEOS",e[e.BELOW_VIDEOS=2]="BELOW_VIDEOS"}(r||(r={}))},2550:(e,t,n)=>{"use strict";var r;n.d(t,{e:()=>r}),function(e){e[e.SQUARE=1]="SQUARE",e[e.ROUND=2]="ROUND"}(r||(r={}))},6510:(e,t,n)=>{"use strict";var r;n.d(t,{p:()=>r}),function(e){e[e.TEXT=1]="TEXT",e[e.SHAPE=2]="SHAPE"}(r||(r={}))},98199:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>r}),function(e){e[e.ICON_WITH_TEXT=1]="ICON_WITH_TEXT",e[e.ICON=2]="ICON"}(r||(r={}))},39140:(e,t,n)=>{"use strict";var r;n.d(t,{H:()=>r}),function(e){e[e.FEATURED_VIDEO=1]="FEATURED_VIDEO",e[e.CHANNEL_COVER=2]="CHANNEL_COVER"}(r||(r={}))},14903:(e,t,n)=>{"use strict";var r;n.d(t,{U:()=>r}),function(e){e[e.ON_HOVER=0]="ON_HOVER",e[e.ALWAYS=1]="ALWAYS"}(r||(r={}))},18573:(e,t,n)=>{"use strict";var r;n.d(t,{G:()=>r}),function(e){e[e.OUTSIDE=0]="OUTSIDE",e[e.INSIDE=1]="INSIDE"}(r||(r={}))},75817:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>r}),function(e){e[e.NONE=0]="NONE",e[e.THUMBNAILS_HOVER=1]="THUMBNAILS_HOVER",e[e.MENU=2]="MENU",e[e.NAVIGATION_ARROWS=3]="NAVIGATION_ARROWS",e[e.ACTION_BAR=4]="ACTION_BAR"}(r||(r={}))},12313:(e,t,n)=>{"use strict";var r;n.d(t,{t:()=>r}),function(e){e[e.ON_MOUSE_OVER=1]="ON_MOUSE_OVER",e[e.ALWAYS=2]="ALWAYS"}(r||(r={}))},50882:(e,t,n)=>{"use strict";var r;n.d(t,{p5:()=>r}),function(e){e[e.ON_MOUSE_OVER=1]="ON_MOUSE_OVER",e[e.ALWAYS=2]="ALWAYS",e[e.NEVER=3]="NEVER"}(r||(r={}));r.ON_MOUSE_OVER,r.ALWAYS,r.ON_MOUSE_OVER,r.ALWAYS,r.NEVER,r.ON_MOUSE_OVER,r.ALWAYS,r.NEVER},2763:(e,t,n)=>{"use strict";var r;n.d(t,{X:()=>r}),function(e){e[e.VIDEO_PREVIEW=1]="VIDEO_PREVIEW",e[e.COVER_IMAGE=2]="COVER_IMAGE"}(r||(r={}))},53842:(e,t,n)=>{"use strict";n.d(t,{T4:()=>x});var r=n(27255),o=n(52834),i=n(17583),s=n(5570),a=n(90655),l=n(90733),c=n(81249),u=n(2550),d=n(6510),p=n(98199),h=n(81790),m=n(39140),f=n(14903),g=n(18573),v=n(67170),y=n(75817),b=n(36876),E=n(12313),S=n(50882),C=n(2763),w=n(20642),P=n(46796),I=n(57526),O=n(25839),T=n(41149),N=n(10550);const A=e=>{const t=e.getStyleParamValue(x.channelLayout),n=t===a.P.SLIDER_SMALL,r=t===a.P.SLIDER_BIG;return{layout:t,isClassic:t===a.P.CLASSIC,isCompact:t===a.P.COMPACT,isGrid:t===a.P.GRID,isSmallSlider:n,isBigSlider:r,isStrip:t===a.P.STRIP,isSlider:r||n}},x=(0,r.o)({backgroundColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-1")},textColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-5")},buttonsAndLinksColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-8")},mainButtonColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-8")},mainButtonTextColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-1")},mobileChannelLayout:{type:o.g.Number,getDefaultValue:()=>a.g.COMPACT},mobileMenuTextColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-1")},mobileMenuBackgroundColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-5")},thumbnailButtonsColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-1")},mobileButtonsTextColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-1")},mobileButtonsBackgroundColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-1")},dividersAndArrowsColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-3")},emptyPlayIconEditor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-4")},emptyPlayIconSite:{type:o.g.Color,getDefaultValue:(0,i.o)("color-1")},emptyPlayerBgEditor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-2")},emptyPlayerBgSite:{type:o.g.Color,getDefaultValue:(0,i.o)("color-2")},compactMenuBackgroundColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-5")},compactMenuActionsColor:{type:o.g.Color,getDefaultValue:(0,i.o)("color-1")},thumbnailOverlayColor:{type:o.g.Color,getDefaultValue:()=>({name:"thumbnailOverlayColor",value:"rgba(0, 0, 0, 0.4)",opacity:.4})},textFont:{type:o.g.Font,getDefaultValue:(0,s.jN)("Body-M")},titleFont:{type:o.g.Font,getDefaultValue:(0,s.jN)("Page-title")},videoInfoFont:{type:o.g.Font,getDefaultValue:(0,s.jN)("Heading-S")},channelId:{type:o.g.Font},videoId:{type:o.g.Font},channelLayout:{type:o.g.Number,getDefaultValue:({isEditorX:e})=>e?a.P.SLIDER_SMALL:a.P.CLASSIC},compactShowVideoListType:{type:o.g.Number,getDefaultValue:()=>l.b.EXPAND_ON_CLICK},containerMargins:{type:o.g.Number,getDefaultValue:e=>{const{isGrid:t}=A(e);return t?60:0}},expandedTheme:{type:o.g.Number,getDefaultValue:()=>c.S.DARK},layoutStyle:{type:o.g.Number,getDefaultValue:()=>u.e.SQUARE},loadMoreButtonType:{type:o.g.Number,getDefaultValue:()=>d.p.TEXT},mainActionStyleType:{type:o.g.Number,getDefaultValue:e=>{const{isSmallSlider:t}=A(e);return e.isEditorX?p.A.ICON_WITH_TEXT:t?p.A.ICON:p.A.ICON_WITH_TEXT}},mainItemOverlayOpacity:{type:o.g.Number,getDefaultValue:({isEditorX:e})=>e?40:35},mainItemTitlePosition:{type:o.g.Number,getDefaultValue:()=>h.s.CENTER},mainItemType:{type:o.g.Number,getDefaultValue:()=>m.H.CHANNEL_COVER},navigationArrowsBehavior:{type:o.g.Number,getDefaultValue:e=>{const{isSmallSlider:t}=A(e);return t?f.U.ALWAYS:f.U.ON_HOVER}},navigationArrowsPosition:{type:o.g.Number,getDefaultValue:e=>{const{isSmallSlider:t}=A(e);return e.isEditorX?g.G.INSIDE:t?g.G.OUTSIDE:g.G.INSIDE}},numberOfRows:{type:o.g.Number,getDefaultValue:e=>{const{isGrid:t}=A(e);return(({isGrid:e})=>e?3:1)({isGrid:t})}},playType:{type:o.g.Number,getDefaultValue:e=>{const{isClassic:t,isCompact:n}=A(e);return t||n?v.y.IN_FRAME:v.y.EXPANDED_VIEW}},previewType:{type:o.g.Number,getDefaultValue:()=>y.i.NONE},settingsVersion:{type:o.g.Number,getDefaultValue:()=>b.dE},showExpandedVideoListInfo:{type:o.g.Number,getDefaultValue:()=>E.t.ON_MOUSE_OVER},showInfoAction:{type:o.g.Number,getDefaultValue:()=>S.p5.ON_MOUSE_OVER},showMediaType:{type:o.g.Number,getDefaultValue:()=>C.X.COVER_IMAGE},sliderHeight:{type:o.g.Number,getDefaultValue:e=>{const{isSmallSlider:t}=A(e);return t?388:572}},textAlignment:{type:o.g.Number,getDefaultValue:e=>{const{isBigSlider:t}=A(e);return t?w.x.CENTER:w.x.LEFT}},thumbnailButtonsBehavior:{type:o.g.Number,getDefaultValue:e=>{const{isSmallSlider:t}=A(e);return e.isEditorX?P.g.ON_HOVER:t?P.g.ALWAYS:P.g.ON_HOVER}},thumbnailOverlayOpacity:{type:o.g.Number,getDefaultValue:()=>40},thumbnailSpacing:{type:o.g.Number,getDefaultValue:e=>{const{isBigSlider:t}=A(e);return e.isEditorX?I.H[I.p.NARROW]:t?30:0}},videoEndOption:{type:o.g.Number,getDefaultValue:()=>O.o.SHOW_VIDEO_COVER},videoInfoPosition:{type:o.g.Number,getDefaultValue:()=>T.i.ON_VIDEOS},videoListVisibility:{type:o.g.Number,getDefaultValue:()=>N.a.EXPAND_ON_CLICK},videosInRow:{type:o.g.Number,getDefaultValue:e=>{const{isGrid:t}=A(e);return(({isGrid:e})=>e?3:4)({isGrid:t})}},responsive:{type:o.g.Boolean,getDefaultValue:()=>!1},allowComments:{type:o.g.Boolean,getDefaultValue:()=>!1},allowCommentsLive:{type:o.g.Boolean,getDefaultValue:()=>!1},showTitleForMainItem:{type:o.g.Boolean,getDefaultValue:()=>!0},showPublisherForMainItem:{type:o.g.Boolean,getDefaultValue:()=>!0},showChannelTitle:{type:o.g.Boolean,getDefaultValue:()=>!0},showChannelShare:{type:o.g.Boolean,getDefaultValue:()=>!0},showChannelInfo:{type:o.g.Boolean,getDefaultValue:()=>!1},showChannelCategories:{type:o.g.Boolean,getDefaultValue:()=>!0},showSearch:{type:o.g.Boolean,getDefaultValue:()=>!0},showChannelTags:{type:o.g.Boolean,getDefaultValue:()=>!0},showVideoTitle:{type:o.g.Boolean,getDefaultValue:()=>!0},showFullInfo:{type:o.g.Boolean,getDefaultValue:()=>!0},enableVideosSharing:{type:o.g.Boolean,getDefaultValue:()=>!0},autoPlay:{type:o.g.Boolean,getDefaultValue:()=>!1},showSignIn:{type:o.g.Boolean,getDefaultValue:()=>!0},showVideoTitleInList:{type:o.g.Boolean,getDefaultValue:()=>!0},showVideoPublisherInList:{type:o.g.Boolean,getDefaultValue:()=>!1},showVideoDurationInList:{type:o.g.Boolean,getDefaultValue:()=>!0},showVideoDescriptionInList:{type:o.g.Boolean,getDefaultValue:()=>!0},showExpandedChannelTitle:{type:o.g.Boolean,getDefaultValue:()=>!1},showExpandedVideoInfo:{type:o.g.Boolean,getDefaultValue:()=>!0},showExpandedSignIn:{type:o.g.Boolean,getDefaultValue:()=>!1},stretchToFullWidth:{type:o.g.Boolean,getDefaultValue:e=>{const{isGrid:t,isSlider:n,isStrip:r}=A(e);return t||n||r}},enableExpandedVideosSharing:{type:o.g.Boolean,getDefaultValue:()=>!0},showExpandedVideoList:{type:o.g.Boolean,getDefaultValue:()=>!0},useOptimalFontSizes:{type:o.g.Boolean,getDefaultValue:()=>!1},showVideoQuality:{type:o.g.Boolean,getDefaultValue:()=>!0},showVideoPlaybackSpeed:{type:o.g.Boolean,getDefaultValue:()=>!0}})},20642:(e,t,n)=>{"use strict";var r;n.d(t,{x:()=>r}),function(e){e[e.LEFT=1]="LEFT",e[e.CENTER=2]="CENTER",e[e.RIGHT=3]="RIGHT"}(r||(r={}))},46796:(e,t,n)=>{"use strict";var r;n.d(t,{g:()=>r}),function(e){e[e.ON_HOVER=0]="ON_HOVER",e[e.ALWAYS=1]="ALWAYS"}(r||(r={}))},57526:(e,t,n)=>{"use strict";var r;n.d(t,{H:()=>o,p:()=>r}),function(e){e.NONE="NONE",e.NARROW="NARROW",e.WIDE="WIDE"}(r||(r={}));const o={[r.NONE]:0,[r.NARROW]:24,[r.WIDE]:52}},81790:(e,t,n)=>{"use strict";var r;n.d(t,{s:()=>r}),function(e){e[e.CENTER=1]="CENTER",e[e.BOTTOM=2]="BOTTOM"}(r||(r={}))},36876:(e,t,n)=>{"use strict";n.d(t,{dE:()=>r});const r=4},25839:(e,t,n)=>{"use strict";var r;n.d(t,{o:()=>r}),function(e){e[e.SHOW_VIDEO_COVER=1]="SHOW_VIDEO_COVER",e[e.PLAY_NEXT_VIDEO=2]="PLAY_NEXT_VIDEO",e[e.OPEN_ACTION_CARDS=3]="OPEN_ACTION_CARDS"}(r||(r={}))},5916:(e,t,n)=>{"use strict";var r;n.d(t,{X:()=>r}),function(e){e.CHANNEL="channel",e.YOUTUBE_FEED="youtube-feed"}(r||(r={}))},77944:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>r}),function(e){e.RENT="rent",e.SALE="sale",e.SUBSCRIPTION="subscription",e.PLAN="pricing_plan"}(r||(r={}))},28848:(e,t,n)=>{"use strict";var r,o;n.d(t,{X:()=>o}),function(e){e.READY="READY",e.PENDING="PENDING"}(r||(r={})),function(e){e.READY="IN_PROGRESS",e.PENDING="PENDING",e.IN_PROGRESS="IN_PROGRESS",e.SCHEDULED="SCHEDULED",e.FINISHED="FINISHED"}(o||(o={}))},91056:(e,t,n)=>{"use strict";var r;n.d(t,{w:()=>r}),function(e){e.SECURE_VIDEO="secure_video",e.PICTURE="picture",e.VIDEO="video"}(r||(r={}))},27711:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>r}),function(e){e.FIRST_20_SEC="first-20-sec",e.TRAILER="trailer",e.AUTOGENERATED="autogenerated",e.NONE="none"}(r||(r={}))},99968:(e,t,n)=>{"use strict";var r;n.d(t,{Y:()=>r}),function(e){e.IN_QUEUE="IN-QUEUE",e.PENDING="PENDING",e.INPROGRESS="INPROGRESS",e.PREVIEW_READY="PREVIEW_READY",e.READY="READY",e.FAILED="FAILED",e.NONE="NONE"}(r||(r={}))},59332:(e,t,n)=>{"use strict";var r;n.d(t,{VIDEO_PLAYBACK_STATUSES:()=>r}),function(e){e.INITIAL="initial",e.PLAY_REQUESTED="play-requested",e.PLAY_ABORTED="play-aborted",e.PLAYING="playing",e.PAUSE_REQUESTED="pause-requested",e.PAUSED="paused",e.ENDED="ended"}(r||(r={}))},77294:(e,t,n)=>{"use strict";var r;n.d(t,{V:()=>r}),function(e){e.COMPUTER="computer",e.DROPBOX="dropbox",e.GOOGLE_DRIVE="drive",e.YOUTUBE="youtube",e.VIMEO="vimeo",e.FACEBOOK="facebook",e.MIXED="mixed",e.LIVE="live"}(r||(r={}));r.YOUTUBE,r.VIMEO,r.FACEBOOK},71123:(e,t,n)=>{"use strict";var r;n.d(t,{n:()=>r}),function(e){e.SITE="site",e.EDITOR="editor",e.PREVIEW="preview",e.DASHBOARD="dashboard",e.STANDALONE="standalone"}(r||(r={}))},81330:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});const r="a1ca9dac7ee44d52a41868329471105b"},72788:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r={catalog:"https://vod.wix.com",catalogEditorX:"https://vod.editorx.com",editorWixApps:"https://editor.wixapps.net",files:"https://vod-meta.wix.com",filesEditorX:"https://vod-meta.editorx.com",image:"https://images-vod.wixmp.com",wixFiles:"https://files.wix.com/files",paypal:"https://dgs.wixapps.net",pixWix:"https://pix.wix.com/services",manage:"https://manage.wix.com",vodServer:"https://vod-server.wix.com"}},22060:(e,t,n)=>{"use strict";var r;n.d(t,{VIDEO_CARD_TYPES:()=>r}),function(e){e.CHANNEL="channel",e.VIDEO="video",e.RECENT_VIDEO="recent-video",e.PRODUCT="product",e.SOCIAL="social",e.CUSTOM="custom"}(r||(r={}))},6026:(e,t,n)=>{"use strict";var r,o;n.d(t,{g:()=>r,s:()=>o}),function(e){e.ON_SITE="on_site"}(r||(r={})),function(e){e.LIVE="live",e.SCHEDULED="scheduled"}(o||(o={}))},14111:(e,t,n)=>{"use strict";var r;n.d(t,{L:()=>r}),function(e){e.CHANNEL="channel",e.VIDEO="video"}(r||(r={}))},30592:(e,t,n)=>{"use strict";n.d(t,{Bf:()=>l,EI:()=>r,ES:()=>u,hU:()=>c,iN:()=>o,n3:()=>a,nE:()=>s,r3:()=>i});const r="wix-vod-state",o="wix-vod-comp-id",i="wix-vod-video-id",s="paymentType",a="purchase-complete",l="purchase",c="share",u="subscribe"},87077:(e,t,n)=>{"use strict";n.d(t,{js:()=>u});var r=n(17607),o=n(5916),i=n(23299);const s=e=>e.channelType===o.X.CHANNEL;function a(e){return e.channels.ids}function l(e,t){return e.entities.channels[t]}const c=(0,i.P1)([e=>e,a],((e,t)=>(0,r.map)(t,(0,r.partial)(l,e)))),u=((0,i.P1)(c,(e=>(0,r.filter)(e,s))),(0,i.P1)([e=>e.entities.channels,a],r.pick),(0,i.P1)([({channelInfo:e})=>(0,r.get)(e,"info"),({channelInfo:e})=>(0,r.get)(e,"paymentInfo")],((e,t)=>e||t?{...e,...t}:null)))},2654:(e,t,n)=>{"use strict";function r(e){const{coverUrl:t,customCoverUrl:n}=e;return n||t}n.d(t,{k:()=>r})},5452:(e,t,n)=>{"use strict";n.d(t,{NP:()=>i,R6:()=>l,_l:()=>s,jl:()=>c,vm:()=>a,wR:()=>u});var r=n(17607),o=n(46735);function i(e){return Boolean((0,r.get)(e,"dgsInfo.subscription"))}function s(e){return Boolean(o.il(e.dealInfo))}function a({dealInfo:e}){return Boolean(o.AZ(e))}function l(e){return(0,r.get)(e,"channelData.dealInfo")}function c(e){return e.hasAccessToChannelByPricingPlan}function u(e){return Boolean((0,r.get)(e,"dgsInfo.subscription.expirationTs"))}},14456:(e,t,n)=>{"use strict";function r(e){const{coverUrl:t,customCoverUrl:n}=e;return n||t}n.d(t,{d:()=>r})},86606:(e,t,n)=>{"use strict";n.d(t,{$C:()=>l,$Z:()=>i,eZ:()=>a,n_:()=>s});var r=n(4230),o=n(28848);const i=({itemType:e})=>e===r.q.ItemScheduled,s=({itemType:e})=>e===r.q.ItemLive,a=({liveVideoStatus:e})=>e===o.X.PENDING,l=({liveVideoStatus:e})=>e===o.X.IN_PROGRESS},56725:(e,t,n)=>{"use strict";n.d(t,{Fy:()=>s,bv:()=>i,qy:()=>o});var r=n(27711);const o=e=>Boolean(e.trailerFileName),i=e=>e.previewType||r.i.FIRST_20_SEC,s=e=>e.previewType!==r.i.NONE},97318:(e,t,n)=>{"use strict";n.d(t,{Hx:()=>l,Kn:()=>c,Ns:()=>u,RR:()=>s,VF:()=>a,qR:()=>i});var r=n(17607),o=n(46735);function i(e){return Boolean(e&&o.Tv(e.dealInfo||[]))}function s(e){return Boolean(e&&o.OQ(e.dealInfo||[]))}function a(e){return Boolean((0,r.get)(e,"dgsInfo.sale"))}function l(e){return Boolean((0,r.get)(e,"dgsInfo.rent"))}function c(e){return l(e)||a(e)}function u(e){return!i(e)&&!s(e)}},5952:(e,t,n)=>{"use strict";var r;n.d(t,{P:()=>o}),function(e){e.VISIBLE="visible",e.DRAFT="draft",e.OVER_QUOTA="over-quota",e.DELETED="deleted"}(r||(r={}));const o=e=>e&&e.state===r.OVER_QUOTA},6263:(e,t,n)=>{"use strict";n.d(t,{E8:()=>c,ME:()=>l,SH:()=>s,mY:()=>u,vf:()=>a});var r=n(77294),o=n(4230),i=n(17607);const s=e=>Boolean(e.mediaExternUrl),a=({videoSource:e})=>e===r.V.COMPUTER,l=({videoSource:e})=>e===r.V.LIVE,c=({videoSource:e})=>e===r.V.FACEBOOK,u=({itemType:e}={})=>(0,i.includes)([o.q.ItemLive,o.q.ItemScheduled,o.q.ItemLiveFinalize],e)},78951:(e,t,n)=>{"use strict";function r(e,t=!1){if(t){const t=window;if(t.define&&t.define.amd){const n=t;return new Promise((t=>{n.require([e],t)}))}}return new Promise((t=>{const{body:n}=document,r=document.createElement("script");r.src=e;let o=!1;r.onload=r.onreadystatechange=function(){o||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(o=!0,t(),r.onload=r.onreadystatechange=null,n&&r.parentNode&&n.removeChild(r))},n.appendChild(r)}))}n.d(t,{V:()=>r})},48321:(e,t,n)=>{"use strict";n.d(t,{c:()=>r,m:()=>o});const r={ONE_DAY:864e5,ONE_HOUR:36e5,ONE_MINUTE:6e4,ONE_SECOND:1e3},o=e=>`0${e}`.slice(-2)},46735:(e,t,n)=>{"use strict";n.d(t,{AZ:()=>u,OQ:()=>c,Tv:()=>l,_E:()=>i,dx:()=>d,il:()=>a});var r=n(77944),o=n(17607);function i(e){const t=(e||[]).filter((e=>e.enabled));return t.length?(0,o.minBy)(t,"price"):null}function s(e){return t=>(t||[]).find((t=>t.enabled&&t.type===e))||null}const a=s(r.i.SUBSCRIPTION),l=s(r.i.SALE),c=s(r.i.RENT),u=s(r.i.PLAN);function d(e,t){switch(t){case r.i.SALE:return l(e);case r.i.RENT:return c(e);case r.i.SUBSCRIPTION:return a(e);case r.i.PLAN:return u(e);default:return{}}}},99784:(e,t,n)=>{"use strict";n.d(t,{O_:()=>i,bw:()=>s});var r=n(63402);let o=n.g.Wix?r.H.Utils.getInstance:null;const i=()=>{const e=n.g.BusinessManagerAPI;return e&&Object.keys(e).length?e.getCurrentInstance(e.appDefIds.video):o?o():null};function s(e){o=e}},86344:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=()=>{const e=window;try{return e.commonConfig?e.commonConfig.bsi:e.Wix?e.Wix.Utils.commonConfig.get("bsi"):function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length&&t.pop()?.split(";").shift()}("bSession")}catch{return}}},16323:(e,t,n)=>{"use strict";n.d(t,{E:()=>d,N:()=>g});const r="wixmp-3dbd5cb16bb136182e099f78.wixmp.com",o=`https://${r}`,i=`https://images-${r}`,s=/^(?:https?:)?\/\/i\.ytimg\.com\/vi\/([^/]+)\/([^.]+)\.jpg$/,a=/^((?:https?:)?\/\/yt3\.ggpht\.com\/.*=s)(\d+)(.*)(-rj)$/;const l=[{name:"mqdefault",width:120,height:90},{name:"mqdefault",width:320,height:180},{name:"mqdefault",width:480,height:360}];var c=n(72788);const u={q:85,usm:"0.66_1.00_0.01",enc_auto:!0};var d;!function(e){e.fit="fit",e.fill="fill"}(d||(d={}));const p=(e,t)=>`${e}/${t}`,h=e=>/^gif$/i.test(e);const m=(e,t,n)=>[...e.split("/"),"v1",t,`w_${n.w},h_${n.h},enc_auto`,"file.jpeg"].join("/"),f=({url:e,width:t,height:n=t,params:f={},mode:g,imageHost:v=c.l.image})=>{if(!e)return"";t=Math.round(t),n=Math.round(n),g=g===d.fit?d.fit:d.fill,f={...f,w:t,h:n},e.startsWith(o)&&(e=e.replace(o,i));const y=e.split("/").pop(),b=e.replace(y,""),E=y.split("."),S=E.slice(0,-1).join("."),C=E[E.length-1];if(e.startsWith(c.l.image))return f.w&&f.h&&!h(C)?m([...e.split("/").slice(0,-1)].join("/"),g,f):e;if(e.includes(r)||e.startsWith("https://static.wixstatic.com"))return f.w&&f.h&&!h(C)?m(e,g,f):e;if(s.test(e))return function(e,t,n){const r=e.match(s);if(!r)return e;const o=r[2],i=l.find((e=>e.width>=t&&(!n||e.height>=n)));return i&&i.name!==o?e.replace(`${o}.jpg`,`${i.name}.jpg`):e}(e,t,n);if(a.test(e))return function(e,t,n){const r=e.match(a);if(!r)return e;const o=[88,240,800].find((e=>e>=t&&(!n||e>=n)));return[r[1],o??r[2],r[3],"-rw"].join("")}(e,t,n);if(/vimeocdn/.test(e))return e.replace(/(_\d+(x\d+)?)?\.jpg/,`_${t}x${n}.jpg`);if(/^(https?:)?\/\//.test(e))return e;if(/^media\//.test(e))return`https://static.wixstatic.com/media/${e.replace(/^media\//,"")}`;/^jpe?g$/i.test(C)&&(f={...f,...u});const w=Object.keys(f).reduce(((e,t)=>{const n=f[t];return"boolean"==typeof n?n&&e.push(t):e.push(`${t}_${n}`),e}),[]).join(",");if(h(C))return p(v,`${b}file`);return p(v,`${b}v1/${g}/${w}/${S}.${C}`)};function g(e){const t=f(e);return t.replace(/^http:\/\//,"https://")}},62051:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(1123);const o=({siteUrl:e,compId:t})=>(0,r.A)(e,t)},91747:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(1123);function o(e,t){const{siteUrl:n,compId:o}=t,i={"wix-vod-video-id":e.id};return(0,r.A)(n,o,i)}},1123:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(17607),o=n(81684);const i=(e,t,n={})=>(t&&(n["wix-vod-comp-id"]=t),((e,t={})=>{const[n,i=""]=e.split("?"),[s="",a=""]=i.split("#"),l=(0,o.Q)(s);return(0,r.forEach)(l,((e,t)=>{/wix-vod/.test(t)&&delete l[t]})),`${n}${(0,o.P)({...l,...t})}${a.length?`#${a}`:""}`})(e,n))},94188:(e,t,n)=>{"use strict";n.d(t,{M8:()=>i,dl:()=>s,n8:()=>o});var r=n(17607);function o(e){return e?e.replace(/-/g,""):e}const i=()=>"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));function s(e,t){return e&&t?(0,r.zip)(e.split(""),t.split("")).reduce(((e,[t,n])=>{const r=parseInt(t,16),o=parseInt(n,16);return isNaN(r)||isNaN(o)?`${e}-`:e+(r^o).toString(16)}),""):null}},29204:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});var r=n(17607),o=n.n(r);const i=(e,...t)=>{let n;return e._memoizeCache?n=e._memoizeCache.get(t):e._memoizeCache=new WeakMap,n||(n=o().partial(e,...t),e._memoizeCache.set(t,n)),n}},42493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(17607);const o=[90,120,180,320,360,480,540,768,1024,1280,1366,1440,1600,1680,1920,2560],i=(0,r.last)(o),s=e=>/.gif$/.test(e),a=(e,t)=>Math.round(e/t*100)/100,l={};function c(e,{containerWidth:t,containerHeight:n}){const c=a(t,n),u=(0,r.get)(l[c],[e]),d=(0,r.get)(u,"width",0),p=(0,r.get)(u,"height",0),h=o.find((e=>e>=t))||i,m=s(e)?i:Math.max(h,d),f=Math.round(m/c),g=Math.max(f,p);return l[c]||(l[c]={}),l[c][e]={width:m,height:g},[m,g]}},55723:(e,t,n)=>{"use strict";n.d(t,{KI:()=>s,Nq:()=>a,hg:()=>i});var r=n(17607);function o(e,t=r.identity){return(0,r.isArray)(e)?(0,r.map)(e,(e=>o(e,t))):(0,r.isPlainObject)(e)?(0,r.reduce)(e,((e,n,r)=>(e[t(r)]=o(n,t),e)),{}):e}function i(e){return o(e,r.camelCase)}function s(e){return o(e,r.snakeCase)}function a(e){return Object.entries(e).reduce(((e,[t,n])=>void 0===n?e:{...e,[t]:n}),{})}},90608:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(27478);const o={toolbar:!1,location:!1,directories:!1,status:!1,menubar:!1,scrollbars:!0,resizable:!0,copyhistory:!1};function i(e,t=980,n=600,i){const s=(window.screen.width-t)/2,a=(window.screen.height-n)/2,l={...o,width:t,height:n,top:a,left:s};(0,r.A)(e,l,"_blank",i)}},27478:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,_:()=>s});var r=n(17607);const o={toolbar:!0,location:!0,directories:!1,status:!1,menubar:!1,scrollbars:!0,resizable:!1,copyhistory:!1,width:0,height:0,top:0,left:0};function i(e,t={},n="_blank",i){const s={...o,...t},a=function(e){return(0,r.map)(e,((e,t)=>(!0===e?e="yes":!1===e&&(e="no"),`${t}=${e}`))).join(",")}(s),l=window.open(e,n,a);if(l){if(i){const e=setInterval((()=>{l.closed&&(clearInterval(e),i())}),300)}try{l.moveTo&&l.moveTo(s.left,s.top),l.focus()}catch(e){}}}function s(e){window.open(e,"_blank")}},94120:(e,t,n)=>{"use strict";n.d(t,{_S:()=>f,cL:()=>r,ie:()=>p,sH:()=>h,vu:()=>u,wg:()=>g,wo:()=>v,zu:()=>i});var r,o,i,s=n(17607),a=n(39140),l=n(46735),c=n(97318);function u({settings:e,videoItem:t,channelData:n,showChannelCover:o}){return o&&m(e)?r.NONE:p(n,t)}function d(e,t){return v(e)||(0,c.Hx)(t)||(0,c.VF)(t)}function p(e,t){return d(e,t)?r.NONE:function(e){const t=(0,c.RR)(e),n=(0,c.qR)(e);if(t&&n)return r.BUY_FROM;if(n)return r.BUY;if(t)return r.RENT;return r.NONE}(t)}function h({settings:e,videoItem:t,channelData:n,showChannelCover:r}){const o=v(n);return function(e){return!!e&&Boolean(l.il(e.dealInfo||[]))}(n)&&!o&&(!o&&f(e,r)||n.subscriptionOnly&&!(0,c.Ns)(t)&&!(0,c.Hx)(t)&&!(0,c.VF)(t))}function m(e){return e.numbers.mainItemType===a.H.CHANNEL_COVER}function f(e,t){return t&&m(e)}function g(e,t){return function(e,t){return(0,c.Ns)(t)||d(e,t)}(e,t)?i.PLAY:i.TRAILER_OR_PREVIEW}function v(e){return(0,s.has)(e,"dgsInfo.subscription")}!function(e){e.BUY="buy",e.RENT="rent",e.BUY_FROM="buyFrom",e.NONE="none"}(r||(r={})),function(e){e.PLAY_VIDEO="play-video",e.WATCH_NOW="watch-now",e.WATCH_TRAILER="watch-trailer",e.WATCH_PREVIEW="watch-preview",e.NONE="none"}(o||(o={})),function(e){e.PLAY="play",e.TRAILER_OR_PREVIEW="trailer_or_preview"}(i||(i={}))},81684:(e,t,n)=>{"use strict";function r(e){return e?e.split("&").reduce(((e,t)=>{const[n,r]=t.split("=");return e[n]=r,e}),{}):{}}function o(e){const t=Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&");return t?`?${t}`:t}n.d(t,{P:()=>o,Q:()=>r})},81575:e=>{"use strict";e.exports=function(e){if(!e)return()=>{};let t,n,r,o,i,s,a,l;const c=e.createElement.bind(e),u=e.createTextNode.bind(e),d=c("span");return Object.assign(d.style,{position:"absolute",whiteSpace:"pre",visibility:"hidden"}),function(p,h){if(!p||!p.ownerDocument||!p.ownerDocument===e)return;const m=(h=h||{}).lineClamp||2,f=h.truncateText||"",g=h.textAlign||"flex-start";for(r=i=0,o=1,l=!1,n=p.clientWidth,p.lineContainer&&p.truncSpan&&p.lineContainer.removeChild(p.truncSpan),t=(p.textContent||p.innerText).replace(/\n/g," ")+" ";null!==p.firstChild;)p.removeChild(p.firstChild);let v;p.appendChild(d),t.replace(/ /g,(function(e,h){o!==m&&(d.appendChild(u(t.substr(r,h-r))),n<d.clientWidth?(l?(a=t.substr(r,h+1-r),r=h+1):(a=t.substr(r,i-r),r=i),s=c("span"),s.appendChild(u(a)),p.appendChild(s),l=!0,o++):l=!1,i=h+1,d.removeChild(d.firstChild))})),p.removeChild(d),f&&(v=c("span"),v.appendChild(u(f)),Object.assign(v.style,{flex:"0 0 auto",whiteSpace:"pre"}),p.truncSpan=v);const y=c("span"),b={display:"flex",width:"100%"};v&&(b.justifyContent=g),Object.assign(y.style,b),p.lineContainer=y,s=c("span");const E={display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingRight:"1ch",marginRight:"-1ch"};v||(E.flex="1 1 auto"),Object.assign(s.style,E),s.appendChild(u(t.substr(r))),y.appendChild(s),v&&y.appendChild(v),p.appendChild(y)}}("undefined"==typeof document?void 0:document)},54550:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(17607),o=n.n(r);function i(e,t){if(!t)return e;const n=o()(t).map(((e,t)=>o().isNil(e)?"":(o().isDate(e)&&!isNaN(e.valueOf())?e=e.toISOString():o().isObject(e)&&(e=JSON.stringify(e)),`${s(t)}=${s(e)}`))).compact().value();return 0!==n.length&&(e+=(o().includes(e,"?")?"&":"?")+n.join("&")),e}function s(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%20/gi,"+")}},63402:(e,t,n)=>{"use strict";n.d(t,{H:()=>c,T:()=>l});var r=n(71123),o=n(94188),i=n(17607),s=n.n(i),a=n(34406);function l(e){const t="en",i=a.env.AVAILABLE_LOCALES||[t];function l(){return"badabada-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}let c;const u=!s().isEmpty(n.g.BusinessManagerAPI);e&&!u&&e.addEventListener(e.Events.INSTANCE_CHANGED,(function(e){c=e.instance}));const d=e?{...e,addEventListener:s().get(e,"addEventListener",s().noop),removeEventListener:e.removeEventListener||s().noop,closeWindow:e.closeWindow||s().noop,currentMember:()=>e.Utils.getViewMode()===r.n.SITE?new Promise(e.currentMember):Promise.resolve(null),getBoundingRectAndOffsets:()=>new Promise(e.getBoundingRectAndOffsets),getSiteUrl(){const t=e.Utils.getViewMode();return new Promise((n=>{if(t===r.n.STANDALONE||t===r.n.DASHBOARD)return e.Dashboard.getSiteViewUrl((e=>n(e.base)));e.Settings.getSiteInfo((e=>n(e.baseUrl)))}))},getCurrentPageId:()=>new Promise(e.getCurrentPageId),getComponentInfo:()=>new Promise(e.getComponentInfo),Dashboard:{...e.Dashboard,getEditorUrl(){const t=s().get(e,"Dashboard.getEditorUrl");return t?new Promise(t):Promise.resolve(null)}},Data:{...e.Data,Public:{...s().get(e,"Data.Public",{}),get:(t,n)=>new Promise(s().partial(e.Data.Public.get,t,n)),set:(t,n,r)=>new Promise(s().partial(e.Data.Public.set,t,n,r)),remove:(t,n)=>new Promise(s().partial(e.Data.Public.remove,t,n))}},PubSub:{...e.PubSub,subscribe:s().get(e,"PubSub.subscribe",s().noop),unsubscribe:s().get(e,"PubSub.unsubscribe",s().noop)},Settings:{...e.Settings,setExternalId:t=>new Promise(((n,r)=>e.Settings.setExternalId(t,n,r))),getSiteInfo(){const t=e.Utils.getViewMode();return t===r.n.STANDALONE||t===r.n.DASHBOARD?Promise.resolve({url:window.location.href}):new Promise(e.Settings.getSiteInfo)},getDashboardAppUrl:()=>new Promise(e.Settings.getDashboardAppUrl)},Styles:{...e.Styles,setFontParam:(t,n)=>new Promise(s().partial(e.Styles.setFontParam,t,{value:n})),setBooleanParam:(t,n)=>new Promise(s().partial(e.Styles.setBooleanParam,t,{value:n})),setStyleParams:t=>new Promise(s().partial(e.Styles.setStyleParams,t))},Utils:{...e.Utils,getCompId:s().get(e,"Utils.getCompId",s().noop),getOrigCompId:s().get(e,"Utils.getOrigCompId",s().noop),getDeviceType:s().get(e,"Utils.getDeviceType",s().constant("desktop")),getBiToken:function(){return e.Utils.getInstanceValue("biToken")||l()},getLocale(){try{const n=s().get(e,"Utils.getLocale",s().noop)();return!n||n.length>2?t:s().includes(i,n)?n:t}catch(e){return t}},getInstance(){if(c)return c;try{return location.search.match(/(?:\?|&)instance=([^&]+)/)[1]}catch(e){return null}},getInstanceId:function(){return d.Utils.getInstanceValue("instanceId")||l()},getInstanceValue:function(e,t=null){return function(){try{return e.apply(this,arguments)}catch(e){return t}}}((function(t){if("biToken"===t)return this.getBiToken();if("appDefId"===t&&d.Utils.getViewMode()===r.n.STANDALONE)return"143314e1-0660-f409-9aa7-6ed544ff1957";const n=e.Utils.getInstanceValue(t);return"siteOwnerId"!==t||n?n:e.Utils.getInstanceValue("uid")})),getMetaSiteIdFromBiToken(){let e,t;try{e=this.getInstanceValue("biToken"),t=this.getInstanceId()}catch(e){}if(e&&t)return(0,o.dl)(e,t)},getMetaSiteId(){const e=this.getMetaSiteIdFromBiToken();if(e)return Promise.resolve(e);const t=d.Utils.getViewMode();return t===r.n.STANDALONE?Promise.reject("Unable to get metaSiteId in standalone view mode"):t===r.n.EDITOR?d.Settings.getDashboardAppUrl().then((e=>e.match(/\/sites\/([^/]+)/)[1])):d.Dashboard.getEditorUrl().then((e=>e.match(/metaSiteId=([^&]+)/)[1]))},getUid(){try{return e.Utils.getUid()}catch(e){}try{return document.cookie.match(/wixClient=([^;]+)/)[1].split("|")[6]}catch(e){}return null},getViewMode:s().get(e,"Utils.getViewMode",s().noop)}}:null;return d}const c=l(n.g.Wix)},27010:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var r=n(27762),o=n.n(r),i=n(12524),s=n.n(i);const a={"fade-in":"FpIJW0",fadeIn:"FpIJW0",active:"uQl_w3","fade-in-out":"YCB0OI",fadeInOut:"YCB0OI"};class l extends o().Component{render(){const{type:e="fade-in",children:t,when:n,className:r,activeClassName:i="",dataHook:l}=this.props;if(!t)return null;const c=s()(r,{[i]:n},a[e],{[a.active]:n});return o().createElement("div",{...l&&n&&{"data-hook":l},className:c,"aria-hidden":!n},t)}}},84582:(e,t,n)=>{"use strict";n.d(t,{v:()=>f});var r=n(27762),o=n.n(r),i=n(12524),s=n.n(i),a=n(17607);const l=(0,a.has)(n.g,"CSS.supports"),c={display:"-webkit-box","-webkit-line-clamp":2,"-webkit-box-orient":"vertical"};const u=new class{constructor(){this.isRuleSetAvailable=(0,a.memoize)(this._isRuleSetAvailable,JSON.stringify),this.isMultilineClampAvailable=()=>this.isRuleSetAvailable(c),this.isRuleSetAvailable.cache=new Map}_isRuleSetAvailable(e){if(l)return(0,a.every)(e,((e,t)=>n.g.CSS.supports(t,e)));const t=document.createElement("div");t.style.position="absolute",t.style.zIndex="-1",document.body.appendChild(t),(0,a.forEach)(e,(e=>t.style.rule=e));const r=getComputedStyle(t),o=(0,a.every)(e,((e,t)=>r[t]===e));return document.body.removeChild(t),o}};var d=n(81575),p=n.n(d);const h="KgMm7T",m="MpIlbv";class f extends o().PureComponent{constructor(e){super(e),this.clamp=()=>{const{clampOptions:e}=this.props;e.disabled||this.isUsingCSSClamp||this.title&&p()(this.title,e)},this.saveRef=e=>{this.title=e};const t="undefined"==typeof document;this.isUsingCSSClamp=t||u.isMultilineClampAvailable()&&!e.enforceJSClamp}componentDidMount(){(0,a.defer)(this.clamp)}componentDidUpdate(){this.clamp()}render(){const{text:e,dataHook:t,clampOptions:n,wrapperTag:r,className:i}=this.props,a=!n.disabled&&this.isUsingCSSClamp,l={ref:this.saveRef,className:s()(h,{[m]:a},i),"data-hook":t,title:e,style:{WebkitLineClamp:a?n.lineClamp:void 0}};return o().createElement(r,l,e)}}f.defaultProps={clampOptions:{lineClamp:2,disabled:!1},wrapperTag:"div",enforceJSClamp:!1}},87939:(e,t,n)=>{"use strict";n.d(t,{P:()=>d});var r=n(12524),o=n.n(r),i=n(27762),s=n.n(i);const a={light:"inHFz5",dark:"DWioAG",icon:"xqvK9r"},l=({size:e,...t})=>i.createElement("svg",{viewBox:"0 0 22 22",fill:"currentColor",width:e||"1em",height:e||"1em",...t},i.createElement("path",{stroke:"currentColor",fill:"currentColor",d:"M9.996 9.29L.707 0 0 .707l9.29 9.29L0 19.285l.707.707 9.29-9.29 9.289 9.29.707-.707-9.29-9.29 9.29-9.289L19.286 0l-9.29 9.29z",transform:"translate(1 1)",strokeLinecap:"round",fillRule:"evenodd"}));l.displayName="CloseTickIcon";const c=l;var u=n(84470);const d=({className:e,ariaLabel:t,dataHook:n,theme:r="light",onClick:i})=>s().createElement("button",{onClick:i,className:o()(a[r],e),tabIndex:0,"aria-label":t,"data-hook":n},s().createElement(u.W,{icon:s().createElement(c,null),className:a.icon}))},11063:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(27762),o=n.n(r),i=n(48321);class s extends o().Component{constructor(e){super(e),this.state={current:this.getCurrent()}}componentDidMount(){this.update()}componentWillUnmount(){clearTimeout(this.timeout)}update(){const{step:e}=this.props,t=this.getCurrent();this.setState({current:t}),t>0&&(this.timeout=setTimeout((()=>this.update()),e))}getCurrent(){const{until:e}=this.props;return e-Date.now()}render(){const{isFocusable:e,titlePrefix:t,className:n}=this.props,{current:r}=this.state,s=(e=>{let t="00",n="00",r="00";return e>0&&(t=Math.floor(e/i.c.ONE_HOUR),n=Math.floor(e%i.c.ONE_HOUR/i.c.ONE_MINUTE),r=Math.floor(e%i.c.ONE_MINUTE/i.c.ONE_SECOND)),`${(0,i.m)(t)} : ${(0,i.m)(n)} : ${(0,i.m)(r)}`})(r);return o().createElement("span",{className:n,role:"timer","aria-label":`${t} ${s}`,tabIndex:e?0:-1,dir:"auto"},s)}}s.defaultProps={step:i.c.ONE_SECOND,titlePrefix:""}},84470:(e,t,n)=>{"use strict";n.d(t,{W:()=>u});var r=n(27762),o=n.n(r),i=n(13980),s=n.n(i),a=n(12524),l=n.n(a);const c="sRIzV9",u=({className:e,icon:t,...n})=>o().createElement("div",{className:l()(e,c),role:"presentation",...n},t);u.propTypes={className:s().string,icon:s().node}},83452:(e,t,n)=>{"use strict";n.d(t,{$:()=>u});var r=n(27762),o=n.n(r),i=n(13980),s=n.n(i),a=n(12524),l=n.n(a);const c="zhSndI",u=({className:e})=>o().createElement("div",{"data-hook":"loading-spinner-circle",className:l()(e,c)});u.propTypes={className:s().string}},23040:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var r=n(27762),o=n.n(r),i=n(12524),s=n.n(i),a=n(84470),l=n(75621);const c="uq8gRU",u=({onClick:e,arrowIcon:t,className:n,ariaLabel:r,dataHook:i,tabIndex:a,style:l})=>o().createElement("button",{onClick:e,style:l,type:"button",className:s()(n,c),tabIndex:a,"aria-label":r,"data-hook":i},t);u.defaultProps={arrowIcon:o().createElement(a.W,{icon:o().createElement(l.Z,null)}),tabIndex:0}},88137:(e,t,n)=>{"use strict";n.d(t,{t:()=>C});var r=n(27762),o=n.n(r),i=n(13980),s=n.n(i);var a=n(17607),l=n(16323),c=n(12524),u=n.n(c);const d="QvTl1N",p="h0XP_C",h="o4ZdW9",m="zjXfm9",f="IXKZdA",g="ROhna4",v="kqZzZy",y="DvSZkM",b="pDXbHA",E="hGtbEW";var S=n(35457);class C extends o().Component{constructor(e){super(e),this.getSrc=(e,t,n)=>{if(!e)return"";const r="undefined"!=typeof window?window.devicePixelRatio??1:1,o=Array.from(new Set([1,2,3,r]));return Array.from(o.reduce(((r,o)=>{const i=(0,l.N)({url:e,width:t*o,height:n*o}),s=r.get(i);return s?s.push(o):r.set(i,[o]),r}),new Map).entries()).map((([e,t],n,r)=>r.length>1?`${e} ${t[0]}x`:e)).join(", ")},this.getBreakpointSource=(e=>{const t=(0,a.memoize)(e,(({url:e,min:t,max:n,width:r,height:o})=>[e,t,n,r,o].join("-")));return t.cache=new Map,t})((({url:e,min:t,max:n,width:r,height:o})=>{const i=this.getSrc(e,r,o);let s="";return(0,a.isNumber)(t)&&(s+=`(min-width: ${t}px)`),(0,a.isNumber)(n)&&(s&&(s+=" and "),s+=`(max-width: ${n}px)`),{media:s,src:i}})),this.state={isIE:!1,isClient:!1}}componentDidMount(){this.setState({isIE:window.navigator.userAgent.indexOf("MSIE ")>0,isClient:!0})}getDefaultBackgroundStyle({fallbackToBackgroundImage:e,sources:t}){const n=e?t[t.length-1].src:t[0].src,r=n.split(", ").map((e=>{const t=e.match(/^(.+?)(?: (\d(?:\.\d+)?)x)?$/);if(!t)return`url("${e}")`;const[,n,r="1"]=t;return`url("${n}") ${r}x`})).join(", ");return{style:{backgroundImage:n.includes(", ")?`-webkit-image-set(${r})`:`url("${n}")`},defaultSrc:n}}render(){const{src:e,breakpoints:t,dataHook:n,children:r,className:i,alt:s,mode:l,withFallbackColor:c}=this.props,{isIE:C,isClient:w}=this.state,P=(0,a.orderBy)(t,(({width:e,height:t})=>e*t)).map((t=>this.getBreakpointSource({url:e,...t}))),I=C&&l===S.h.COVER,{style:O,defaultSrc:T}=this.getDefaultBackgroundStyle({fallbackToBackgroundImage:I,sources:P});return o().createElement("div",{className:u()(d,i,{[v]:l===S.h.CONTAIN,[y]:l===S.h.COVER,[b]:l===S.h.FIT_TO_WIDTH,[E]:l===S.h.FIT_TO_HEIGHT,[p]:c}),"data-hook":n,style:O},o().createElement("picture",{className:h,key:w?"client":void 0},P.filter((e=>e.src)).map((e=>o().createElement("source",{media:e.media,srcSet:e.src,key:e.src}))),T&&o().createElement("img",{alt:s,className:f,src:T})),I&&o().createElement("div",{className:m,style:O,"data-hook":"picture-background-image"}),o().createElement("div",{className:g},r))}}C.propTypes={alt:s().string,breakpoints:s().array,children:s().node,className:s().string,dataHook:s().string,src:s().string.isRequired,mode:s().oneOf([S.h.CONTAIN,S.h.COVER,S.h.FIT_TO_HEIGHT,S.h.FIT_TO_WIDTH]),withFallbackColor:s().bool},C.defaultProps={mode:S.h.COVER,breakpoints:[{min:0,width:320,height:180}]}},35457:(e,t,n)=>{"use strict";var r;n.d(t,{h:()=>r}),function(e){e.FIT_TO_HEIGHT="FIT_TO_HEIGHT",e.FIT_TO_WIDTH="FIT_TO_WIDTH",e.COVER="COVER",e.CONTAIN="CONTAIN"}(r||(r={}))},94405:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var r=n(12524),o=n.n(r),i=n(27762),s=n.n(i);const a="toWGxm",l=({className:e,dataHook:t,children:n})=>s().createElement("div",{"data-hook":t,className:o()(a,e)},n)},3805:(e,t,n)=>{"use strict";n.d(t,{s:()=>he});var r=n(27762),o=n.n(r),i=n(12524),s=n.n(i),a=n(33625),l=n(87939),c=n(7896),u=n(81665),d=n(80753),p=n(56666);var h="data-focus-lock",m="data-focus-lock-disabled",f=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},g=function e(t){var n=t.length,r=void 0,o=void 0;for(r=0;r<n;r+=1)for(o=0;o<n;o+=1)if(r!==o&&t[r].contains(t[o]))return e(t.filter((function(e){return e!==t[o]})));return t},v=function e(t){return t.parentNode?e(t.parentNode):t};const y=function(e){var t=e.getAttribute(h);return t?g(f(v(e).querySelectorAll("["+h+'="'+t+'"]:not(['+m+'="disabled"])'))):[e]};var b=function(e){return e===document.activeElement};const E=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&y(e).reduce((function(n,r){return n||r.contains(t)||function(e){return y(e).reduce((function(e,t){return e||(n=f(t.querySelectorAll("iframe")),r=b,!!n.filter((function(e){return e===r}))[0]);var n,r}),!1)}(e)}),!1)};const S=function(){return document&&f(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))};var C=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},w=function(e,t){return f(e).map((function(e,t){return{node:e,index:t,tabIndex:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(C)};const P=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"];var I=function(e){return e.reduce((function(e,t){return e.concat(f(t.querySelectorAll(P.join(","))))}),[])},O=function e(t){return!t||t===document||!((n=window.getComputedStyle(t,null))&&n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility")))&&e(t.parentNode);var n},T=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.push(t),t.parentNode&&e(t.parentNode,n),n},N=function(e,t){for(var n=T(e),r=T(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},A=function(e){return f(e).filter((function(e){return O(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},x=function(e){return w(A(I(e)),!0)},_=function(e){return A((t=e.querySelectorAll("[data-autofocus-inside]"),f(t).map((function(e){return I([e])})).reduce((function(e,t){return e.concat(t)}),[])));var t},L=function(e){return"INPUT"===e.tagName&&"radio"===e.type};const R=function(e){return e[0]&&e.length>1&&L(e[0])&&e[0].name?function(e,t){return t.filter(L).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e[0],e):e[0]};var k=function(e){return!(e.dataset&&e.dataset.focusGuard)};const D=function(e,t){var n=document&&document.activeElement,r=y(e).filter(k),o=function(e,t,n){var r=t;return n.forEach((function(t){var n=N(e,t);n&&(r=n.contains(r)?n:N(n,r))})),r}(n||e,e,r),i=x(r).filter((function(e){var t=e.node;return k(t)}));if(i[0]||(i=(s=r,w(A(I(s)),!1)).filter((function(e){var t=e.node;return k(t)})))[0]){var s,a,l=i.map((function(e){return e.node})),c=function(e,t,n,r,o){var i=e.length,s=e[0],a=e[i-1];if(!(e.indexOf(n)>=0)){var l=t.indexOf(n),c=t.indexOf(r||l),u=e.indexOf(r),d=l-c,p=t.indexOf(s),h=t.indexOf(a);return-1===l||-1===u?e.indexOf(o.length?R(o):R(e)):!d&&u>=0||d&&Math.abs(d)>1?u:l<=p?i-1:l>h?0:d?Math.abs(d)>1?u:(i+u+d)%i:void 0}}(l,x([o]).map((function(e){return e.node})),n,t,l.filter((a=function(e){return e.reduce((function(e,t){return e.concat(_(t))}),[])}(r),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||a.indexOf(e)>=0})));return void 0===c?c:i[c]}};var V=0;const M=function(e,t){var n,r=D(e,t);if(r){if(V>2)return void 0;V++,(n=r.node).focus(),n.contentWindow&&n.contentWindow.focus(),V--}};const B=function(e,t){return function(n){var i,s=[];function a(){i=e(s.map((function(e){return e.props}))),t(i)}var l=function(e){function t(){return e.apply(this,arguments)||this}(0,u.Z)(t,e),t.peek=function(){return i};var r=t.prototype;return r.componentDidMount=function(){s.push(this),a()},r.componentDidUpdate=function(){a()},r.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),a()},r.render=function(){return o().createElement(n,this.props)},t}(r.PureComponent);return(0,p.Z)(l,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),l}};function F(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var U=function(){return document&&document.activeElement===document.body||S()},j=null,H=null,Z=null,W=function(){return!0},z=function(){var e,t=!1;if(j){var n=j,r=n.observed,o=n.persistentFocus,i=n.autoFocus,s=r||Z&&Z.portaledElement,a=document&&document.activeElement;a&&!function(e){return(j.whiteList||W)(e)}(a)||(o||!U()||!H&&i)&&(!s||E(s)||(e=a,Z&&Z.portaledElement===e)||(document&&!H&&a&&!i?(a.blur(),document.body.focus()):(t=M(s,H),Z={})),H=document&&document.activeElement)}return t},q=function(e){z()&&e&&(e.stopPropagation(),e.preventDefault())},G=function(){return F(z)},$=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Z={observerNode:n,portaledElement:t})};const Y=B((function(e){return e.filter((function(e){return!e.disabled})).slice(-1)[0]}),(function(e){e&&!j&&(document.addEventListener("focusin",q,!0),document.addEventListener("focusout",G));var t=j,n=t&&e&&e.onActivation===t.onActivation;j=e,t&&!n&&t.onDeactivation(),e?(H=null,n&&t.observed===e.observed||e.onActivation(),z(),F(z)):(document.removeEventListener("focusin",q,!0),document.removeEventListener("focusout",G),H=null)}))((function(){return null}));var K=function(e){var t=e.children;return o().createElement("div",null,t)};K.propTypes={};var X=o().Fragment?o().Fragment:K,Q={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},J=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,(0,p.Z)((0,d.Z)((0,d.Z)(t)),"state",{observed:void 0}),(0,p.Z)((0,d.Z)((0,d.Z)(t)),"onActivation",(function(){t.originalFocusedElement=t.originalFocusedElement||document&&document.activeElement,t.state.observed&&t.props.onActivation&&t.props.onActivation(t.state.observed),t.isActive=!0})),(0,p.Z)((0,d.Z)((0,d.Z)(t)),"onDeactivation",(function(){t.isActive=!1,t.props.returnFocus&&t.originalFocusedElement&&t.originalFocusedElement.focus&&(t.originalFocusedElement.focus(),t.originalFocusedElement=null),t.props.onDeactivation&&t.props.onDeactivation(t.state.observed)})),(0,p.Z)((0,d.Z)((0,d.Z)(t)),"onFocus",(function(e){t.isActive&&$(e)})),(0,p.Z)((0,d.Z)((0,d.Z)(t)),"onBlur",G),(0,p.Z)((0,d.Z)((0,d.Z)(t)),"setObserveNode",(function(e){return t.setState({observed:e})})),(0,p.Z)((0,d.Z)((0,d.Z)(t)),"isActive",!1),(0,p.Z)((0,d.Z)((0,d.Z)(t)),"update",(function(){return t.setState((function(e){return{escapeAttempts:e.escapeAttempts+1}}))})),(0,p.Z)((0,d.Z)((0,d.Z)(t)),"originalFocusedElement",null),t}return(0,u.Z)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,r=t.disabled,i=t.noFocusGuards,s=t.persistentFocus,a=t.autoFocus,l=(t.allowTextSelection,t.group),u=t.className,d=t.whiteList,p=t.as,f=void 0===p?"div":p,g=t.lockProps,v=void 0===g?{}:g,y=this.state.observed;var b=(0,c.Z)(((e={})[m]=r&&"disabled",e[h]=l,e),v);return o().createElement(X,null,!i&&[o().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:r?-1:0,style:Q}),o().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:r?-1:1,style:Q})],o().createElement(f,(0,c.Z)({ref:this.setObserveNode},b,{className:u,onBlur:this.onBlur,onFocus:this.onFocus}),o().createElement(Y,{observed:y,disabled:r,persistentFocus:s,autoFocus:a,whiteList:d,onActivation:this.onActivation,onDeactivation:this.onDeactivation}),n),!i&&o().createElement("div",{"data-focus-guard":!0,tabIndex:r?-1:0,style:Q}))},t}(r.Component);J.propTypes={},J.defaultProps={disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const ee=J,te="ZJcAAw";var ne=n(72632);class re extends o().Component{constructor(e){super(e),this.handleClickOutside=e=>{const t=e.target;this.ref&&!this.ref.contains(t)&&this.disableFocusLock((()=>{(0,ne.T)(t)}))},this.saveRef=e=>this.ref=e,this.lastFocusedElement=null,this.state={isFocusLockEnabled:!1}}componentDidUpdate(e){const{isEnabled:t}=this.props;t&&!e.isEnabled&&(this.lastFocusedElement=document.activeElement,setTimeout((()=>this.enableFocusLock()),200)),!t&&e.isEnabled&&this.disableFocusLock()}enableFocusLock(){this.setState({isFocusLockEnabled:!0}),document.addEventListener("mousedown",this.handleClickOutside,!0)}disableFocusLock(e){this.setState({isFocusLockEnabled:!1},e),document.removeEventListener("mousedown",this.handleClickOutside,!0),(0,ne.T)(this.lastFocusedElement)}render(){const{children:e}=this.props,{isFocusLockEnabled:t}=this.state;return o().createElement("div",{ref:this.saveRef,className:te},o().createElement(ee,{disabled:!t},e))}}const oe="SQVYz0",ie="CA6Fe2",se="_6ZWBmQ",ae="nvqHbh",le="qSJqji",ce="iOsXKO",ue="JZpQlq",de="exfrPz",pe={["KS2bus"]:{minWidth:250,maxWidth:499},["Z8tFkr"]:{minWidth:500,maxWidth:979},["imIODM"]:{minWidth:980}};class he extends o().Component{constructor(){super(...arguments),this.closeOnEsc=e=>{27===e.keyCode&&this.props.onClose()},this.closeOnBodyClick=()=>{const{closeOnBodyClick:e,onClose:t}=this.props;e&&t()},this.handleCloseButtonClick=e=>{e.stopPropagation(),this.props.onClose(e)},this.renderOverlay=e=>{const{children:t,isFullWidth:n,isFullWidthForced:r,isInFullScreen:i,posterUrl:a,contentClassName:l,isVisible:c,ariaLabel:u,isRTL:d}=this.props,p=s()(oe,{[de]:n,...e}),h=s()(le,l,{[ue]:i&&!r,[ce]:!n&&!a});return o().createElement(re,{isEnabled:c},o().createElement("div",{className:p,"data-hook":this.props.dataHook,role:"dialog","aria-label":u,onClick:this.closeOnBodyClick,dir:d?"rtl":"ltr"},o().createElement("div",{className:h},t),this.getCloseButton()))}}componentDidMount(){window.addEventListener("keyup",this.closeOnEsc)}componentWillUnmount(){window.removeEventListener("keyup",this.closeOnEsc)}getCloseButton(){const{isRTL:e}=this.props,t=s()(ie,{[ae]:e,[se]:!e});return o().createElement(l.P,{className:t,theme:"dark",dataHook:"close-overlay",onClick:this.handleCloseButtonClick,ariaLabel:this.props.closeButtonAriaLabel})}render(){return o().createElement(a.ContainerQuery,{query:pe},this.renderOverlay)}}he.propTypes={}},62328:(e,t,n)=>{"use strict";n.d(t,{c:()=>_});var r=n(27762),o=n.n(r),i=n(13980),s=n.n(i),a=n(12524),l=n.n(a),c=n(17607),u=n(22060),d=n(84470);const p={card:"cUH8lA",active:"OHV_10",inactive:"goqfuo",link:"j1Bl1U",thumbnail:"HsSmzP",image:"gnj9Wu","text-content":"J_Ehvh",textContent:"J_Ehvh",cta:"DPs5Sl","without-thumbnail":"dGQJgC",withoutThumbnail:"dGQJgC",container:"lC3NoY",scheduled:"A5S7vj","without-cta":"PyuDg_",withoutCta:"PyuDg_","without-text":"I0duM8",withoutText:"I0duM8","link-mobile":"WdCiPj",linkMobile:"WdCiPj",text:"FVvutz","cta-label":"_AdVm2",ctaLabel:"_AdVm2","cta-icon-container":"OsvFnq",ctaIconContainer:"OsvFnq","cta-play-container":"tyraK7",ctaPlayContainer:"tyraK7","icon-play":"Vz6tq8",iconPlay:"Vz6tq8","icon-arrow":"zNjEO0",iconArrow:"zNjEO0","card-type-social":"KLhPjJ",cardTypeSocial:"KLhPjJ",social:"jcaFnV",twitter:"PnTu80",youtube:"DzxWQB",facebook:"mfsloT",live:"dANsDC"},h="SoQHH0",m="IKTCgz",f="QetUnp",g="seafnR",v="uaJDhr",y="x7muWP",b="mdndQH",E="wfNGcl";var S=n(13154),C=n(38798),w=n(4230);class P extends o().Component{isLiveVideo(){const{itemType:e}=this.props.cardData;return e===w.q.ItemLive}isScheduledVideo(){const{itemType:e}=this.props.cardData;return e===w.q.ItemScheduled}renderThumbnail(){const{cardData:e}=this.props,{thumbnailUrl:t}=e;return t?o().createElement("div",{className:p.thumbnail},o().createElement("div",{className:p.image,style:{backgroundImage:`url(${t})`}}),this.renderThumbnailIcon()):this.isScheduledVideo()?this.renderScheduledPlaceholder():null}renderThumbnailIcon(){return this.isLiveVideo()?o().createElement("div",{className:m}):o().createElement(d.W,{icon:o().createElement(C.Z,null),className:f})}renderScheduledPlaceholder(){return o().createElement("div",{className:p.thumbnail},o().createElement("div",{className:g},o().createElement(d.W,{icon:o().createElement(S.Z,null),className:v})))}renderText(){const{cardData:e}=this.props,{text:t}=e;return o().createElement("div",{className:p.text},o().createElement("div",{className:p["text-content"],"data-hook":"action-card-title"},t))}renderScheduledText(){const{cardData:e}=this.props,{text:t,liveLabel:n}=e;return o().createElement("div",{className:b},o().createElement("span",{className:y},n),o().createElement("div",{className:E,"data-hook":"action-card-title"},t))}renderCtaIcon(){return this.isLiveVideo()?o().createElement("div",{className:h}):o().createElement("span",{className:l()(p["cta-icon-container"],p["cta-play-container"])},o().createElement(d.W,{icon:o().createElement(C.Z,null),className:p["icon-play"]}))}renderCta(){const{cardData:e}=this.props,{buttonLabel:t}=e;return o().createElement("div",{className:p.cta},this.renderCtaIcon(),o().createElement("div",{className:p["cta-label"],"data-hook":"action-card-action-text"},t))}render(){const{className:e,isAriaHidden:t}=this.props,n=this.isScheduledVideo(),r=l()(e,{[p.live]:this.isLiveVideo(),[p.scheduled]:n});return o().createElement("div",{className:r,"aria-hidden":t},this.renderThumbnail(),o().createElement("div",{className:p.container},n?this.renderScheduledText():this.renderText(),!n&&this.renderCta()))}}P.propTypes={cardData:s().object,className:s().string,isAriaHidden:s().bool};var I=n(86307);class O extends o().Component{renderThumbnail(){const{cardData:e}=this.props,{thumbnailUrl:t}=e;return t?o().createElement("div",{className:p.thumbnail},o().createElement("div",{className:p.image,style:{backgroundImage:`url(${t})`}})):null}renderText(){const{cardData:e}=this.props,{text:t}=e;return o().createElement("div",{className:p.text},o().createElement("div",{className:p["text-content"],"data-hook":"action-card-title"},t))}renderCta(){const{cardData:e}=this.props,{buttonLabel:t}=e;return o().createElement("div",{className:p.cta},o().createElement("div",{className:p["cta-label"],"data-hook":"action-card-action-text"},t),o().createElement("span",{className:p["cta-icon-container"]},o().createElement(d.W,{icon:o().createElement(I.Z,null),className:p["icon-arrow"]})))}render(){const{className:e,isAriaHidden:t}=this.props;return o().createElement("div",{className:e,"aria-hidden":t},this.renderThumbnail(),o().createElement("div",{className:p.container},this.renderText(),this.renderCta()))}}O.propTypes={cardData:s().object,className:s().string,isAriaHidden:s().bool};var T=n(8384),N=n(27617),A=n(84892);class x extends o().Component{renderThumbnail(){const{cardData:e}=this.props,{thumbnailUrl:t}=e;return t?o().createElement("div",{className:p.thumbnail},o().createElement("div",{className:p.image,style:{backgroundImage:`url(${t})`}})):null}renderText(){const{cardData:e}=this.props,{text:t}=e;return o().createElement("div",{className:p.text},o().createElement("div",{className:p["text-content"],"data-hook":"action-card-title"},t))}renderCta(){const{cardData:e}=this.props;return o().createElement("div",{className:l()(p.social,p[e.network]),"data-hook":"action-card-action-text"},this.renderSocialButton())}renderSocialButton(){const{cardData:e,labels:t,isAccessible:n}=this.props,{facebookButtonTitle:r,youtubeButtonTitle:i,twitterButtonTitle:s}=t;switch(e.network){case"twitter":return o().createElement(T.f,{isAccessible:n,twitterButtonTitle:s,cardData:e});case"youtube":return o().createElement(N.j,{isAccessible:n,youtubeButtonTitle:i,cardData:e});case"facebook":return o().createElement(A.E,{isAccessible:n,facebookButtonTitle:r,cardData:e});default:return null}}render(){const{className:e,isAriaHidden:t}=this.props;return o().createElement("div",{className:e,"aria-hidden":t},this.renderThumbnail(),o().createElement("div",{className:p.container},this.renderText(),this.renderCta()))}}x.propTypes={cardData:s().object,className:s().string,isAriaHidden:s().bool,labels:s().object,isAccessible:s().bool};class _ extends o().Component{constructor(){super(...arguments),this.onCardClick=()=>{const{cardData:e,onCardClick:t}=this.props;t(e)}}getCardAriaLabel(){const{cardData:e,labels:t}=this.props;switch(e.network){case"twitter":return`${e.text} ${t.twitterButtonTitle}`;case"youtube":return`${e.text} ${t.youtubeButtonTitle}`;case"facebook":return`${e.text} ${t.facebookButtonTitle}`;default:return}}getContentComponent(e){const{CHANNEL:t,VIDEO:n,RECENT_VIDEO:r,CUSTOM:o,PRODUCT:i,SOCIAL:s}=u.VIDEO_CARD_TYPES;switch(e){case t:case n:case r:return P;case o:case i:return O;case s:return x;default:return O}}renderCardContent(){const{cardData:e,isMobile:t,isAccessible:n,labels:r}=this.props,{type:i,text:s,thumbnailUrl:a,buttonLabel:c}=e,u=p[`card-type-${i}`],d={[p["without-text"]]:!s,[p["without-thumbnail"]]:!a,[p["without-cta"]]:!c},h=l()(p.card,u,d),m=this.getContentComponent(e.type);return o().createElement(m,{className:h,cardData:e,isAriaHidden:t,isAccessible:n,labels:r})}renderMobileCard(){const{cardData:e}=this.props;return o().createElement("a",{className:l()(p.link,p["link-mobile"]),href:e.url,tabIndex:0,role:"option","aria-selected":"true","aria-label":this.getCardAriaLabel(),rel:"noopener noreferrer",onClick:this.onCardClick,target:"_blank"},this.renderCardContent())}renderPlayerCard(){const{isAccessible:e,cardData:t}=this.props;return o().createElement("a",{className:p.link,href:t.url,"aria-hidden":!e,tabIndex:e?0:-1,rel:"noopener noreferrer",onClick:this.onCardClick,"data-hook":"card-button",target:"_blank"},this.renderCardContent())}render(){const{isMobile:e}=this.props;return e?this.renderMobileCard():this.renderPlayerCard()}}_.propTypes={cardData:s().object,onCardClick:s().func,isAccessible:s().bool,isMobile:s().bool,labels:s().object},_.defaultProps={onCardClick:c.noop,labels:{}}},99290:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var r=n(27762),o=n.n(r),i=n(13980),s=n.n(i),a=n(35163);class l extends o().Component{constructor(e){super(e),this.setAccessibilityStatus=e=>{this.iframeNode&&(this.iframeNode.setAttribute("tabindex",e?0:-1),e?this.iframeNode.removeAttribute("aria-hidden"):this.iframeNode.setAttribute("aria-hidden",!0))},this.saveContainerNode=e=>{this.containerNode=e},this.attachScriptPromise=null}componentDidMount(){const{attachScript:e,initButton:t,title:n}=this.props;this.attachScriptPromise=(0,a.B)(e()),this.attachScriptPromise.promise.then((()=>t(this.containerNode))).then((()=>{this.iframeNode=this.containerNode.querySelector("iframe"),this.setAccessibilityStatus(this.props.isAccessible),n&&this.iframeNode.setAttribute("title",n)}))}componentWillUnmount(){this.attachScriptPromise.cancel()}UNSAFE_componentWillReceiveProps({isAccessible:e}){e!==this.props.isAccessible&&this.iframeNode&&this.setAccessibilityStatus(e)}render(){const{children:e}=this.props;return o().createElement("div",{ref:this.saveContainerNode},e)}}l.propTypes={isAccessible:s().bool,attachScript:s().func,initButton:s().func,children:s().node,title:s().string}},84892:(e,t,n)=>{"use strict";n.d(t,{E:()=>c});var r=n(27762),o=n.n(r),i=n(13980),s=n.n(i),a=n(78951),l=n(99290);class c extends o().Component{constructor(){super(...arguments),this.init=e=>(FB.init({xfbml:!0,version:"v2.5"}),new Promise((t=>{FB.XFBML.parse(e,t)})))}attachScript(){return window.FB?Promise.resolve():(0,a.V)("https://connect.facebook.net/en_US/sdk.js")}render(){const{cardData:e,isAccessible:t,facebookButtonTitle:n}=this.props;return o().createElement(l.$,{isAccessible:t,attachScript:this.attachScript,title:n,initButton:this.init},o().createElement("div",{className:"fb-like","data-href":e.url,"data-layout":"button","data-action":"like"}))}}c.propTypes={cardData:s().object,isAccessible:s().bool,facebookButtonTitle:s().string}},8384:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var r=n(27762),o=n.n(r),i=n(13980),s=n.n(i),a=n(78951),l=n(99290);const c={showScreenName:!1,showCount:!1,size:"small"};class u extends o().Component{constructor(){super(...arguments),this.init=e=>twttr.widgets.createFollowButton(this.props.cardData.id,e,c)}attachScript(){return window.twttr?Promise.resolve():(0,a.V)("https://platform.twitter.com/widgets.js")}render(){const{isAccessible:e,twitterButtonTitle:t}=this.props;return o().createElement(l.$,{isAccessible:e,title:t,attachScript:this.attachScript,initButton:this.init})}}u.propTypes={cardData:s().object,isAccessible:s().bool,twitterButtonTitle:s().string}},27617:(e,t,n)=>{"use strict";n.d(t,{j:()=>c});var r=n(27762),o=n.n(r),i=n(13980),s=n.n(i),a=n(78951),l=n(99290);class c extends o().Component{constructor(){super(...arguments),this.init=e=>(gapi.ytsubscribe.render(e,{channelid:this.props.cardData.id,count:"hidden"}),new Promise((e=>{setTimeout(e)})))}attachScript(){return window.gapi?Promise.resolve():(0,a.V)("https://apis.google.com/js/platform.js")}render(){const{isAccessible:e,youtubeButtonTitle:t}=this.props;return o().createElement(l.$,{isAccessible:e,attachScript:this.attachScript,title:t,initButton:this.init})}}c.propTypes={cardData:s().object,isAccessible:s().bool,youtubeButtonTitle:s().string}},5142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(27762);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 10 6",fill:"currentColor",width:e||"1em",height:e||"1em",...t},r.createElement("path",{fill:"currentColor",id:"a",d:"M4.9,4.2L0.8,0.1L0.1,0.8l4.1,4.1L4.1,5.1l0.7,0.7l0.1-0.1l0.1,0.1l0.7-0.7L5.7,4.9l4.1-4.1L9.1,0.1L4.9,4.2z"}));o.displayName="ArrowDownIcon";const i=o},75621:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(27762);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 53 100",fill:"currentColor",width:e||"1em",height:e||"1em",...t},r.createElement("path",{fill:"currentColor",d:"M5.16 99.14L2.15 96.13 48.6 50.11 2.15 4.3 5.16 1.29 54.62 50.11"}));o.displayName="ArrowRightIcon";const i=o},86307:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(27762);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 13 10",fill:"currentColor",width:e||"13",height:e||"10",...t},r.createElement("path",{fill:"currentColor",d:"M11.862 5.856l.003-.003a.499.499 0 0 0 .001-.708l-4.013-4.01a.5.5 0 0 0-.707.707L10.304 5H.462c-.255 0-.462.224-.462.5s.207.5.462.5h9.84L7.147 9.145a.5.5 0 1 0 .706.709l3.987-3.976a.48.48 0 0 0 .022-.022z",fillRule:"evenodd"}));o.displayName="ArrowRightLongIcon";const i=o},61863:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(27762);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 10 18",fill:"currentColor",width:e||"10",height:e||"18",...t},r.createElement("path",{fill:"currentColor",d:"M5.82 18c.083 0 .163-.077.163-.152v-1.593c0-.077.083-.152.164-.152 1.148-.152 2.13-.532 2.788-1.139.738-.683 1.065-1.518 1.065-2.657s-.327-1.974-1.065-2.583c-.738-.607-1.803-1.215-3.362-1.747-.82-.304-1.393-.607-1.64-.912-.327-.304-.49-.684-.49-1.216 0-.532.163-.912.41-1.216.247-.303.738-.455 1.312-.455.574 0 .984.229 1.312.607.327.38.491.912.491 1.519 0 .077.083.229.247.229h2.46c.164 0 .247-.077.247-.229v-.077c0-1.139-.328-2.05-.985-2.734-.655-.76-1.559-1.216-2.624-1.367-.083 0-.164-.077-.164-.152L6.147.152C6.147.075 6.064 0 5.983 0H4.671c-.083 0-.163.077-.163.152v1.747c0 .077-.083.152-.164.152-1.148.151-2.13.532-2.788 1.215C.82 3.95.491 4.786.491 5.85c0 1.139.328 2.05 1.065 2.658.738.606 1.887 1.215 3.362 1.67.738.303 1.312.607 1.64.912.327.304.49.76.49 1.216 0 .532-.163.912-.49 1.215-.328.304-.821.455-1.393.455-.655 0-1.148-.151-1.559-.532-.41-.38-.574-.912-.655-1.67 0-.077-.083-.152-.163-.152H.164c-.083 0-.164.077-.164.152v.38c.083 1.139.491 2.05 1.229 2.658.82.683 1.803 1.138 3.034 1.215.083 0 .164.077.164.152v1.596c-.083.151 0 .226.08.226H5.82z",fillRule:"evenodd"}));o.displayName="DollarIcon";const i=o},21994:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(27762);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 22 21",fill:"currentColor",width:e||"1em",height:e||"1em",...t},r.createElement("path",{id:"a",fill:"currentColor",d:"M3.7,8l2.6,2.3c0.4,0.4,0.4,1,0.1,1.4c0,0,0,0-0.1,0.1l-0.6,0.6c-0.4,0.4-1,0.4-1.4,0L1.8,9.9 C0.6,8.8,0,7.3,0,5.8c0-1.5,0.6-3,1.8-4.1C2.9,0.6,4.4,0,6,0c1.6,0,3.1,0.6,4.2,1.7l2.6,2.4l0,0c0.4,0.4,0.4,1,0,1.4l-0.6,0.6 c-0.4,0.4-1,0.4-1.4,0L8.2,3.7C7.6,3.1,6.8,2.8,6,2.8c-0.9,0-1.6,0.3-2.2,0.9C3.1,4.3,2.8,5,2.8,5.8S3.1,7.4,3.7,8L3.7,8z M18.3,13 l-2.6-2.3c-0.4-0.4-0.4-1-0.1-1.4c0,0,0,0,0.1-0.1l0.6-0.6c0.4-0.4,1-0.4,1.4,0l2.7,2.5c1.1,1.1,1.8,2.5,1.8,4.1 c0,1.5-0.6,3-1.8,4.1C19.1,20.4,17.6,21,16,21c-1.6,0-3.1-0.6-4.2-1.7l-2.6-2.4c-0.4-0.4-0.4-1-0.1-1.4c0,0,0,0,0,0l0.6-0.6 c0.4-0.4,1-0.4,1.4,0l2.7,2.5c0.6,0.6,1.4,0.9,2.2,0.9c0.9,0,1.6-0.3,2.2-0.9c0.6-0.6,0.9-1.3,0.9-2.2S18.9,13.6,18.3,13L18.3,13z M6.9,7.1l0.7-0.7C8,6,8.6,6,9,6.4c0,0,0,0,0,0l6,6c0.4,0.4,0.4,1,0,1.4l-0.7,0.7c-0.4,0.4-1,0.4-1.4,0l-6-6 C6.5,8.1,6.5,7.5,6.9,7.1z"}));o.displayName="LinkIcon";const i=o},13154:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(27762);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 12 12",fill:"currentColor",width:e||"12",height:e||"12",...t},r.createElement("path",{fill:"currentColor",d:"M1 2h10a1 1 0 0 1 1 1v1H0V3a1 1 0 0 1 1-1zm10 10H1a1 1 0 0 1-1-1V5h12v6a1 1 0 0 1-1 1zM2 7v2h2V7H2zm0-7h1v2H2V0zm7 0h1v2H9V0z",fillRule:"evenodd"}));o.displayName="ScheduledIcon";const i=o},38798:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(27762);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 6 9",fill:"currentColor",width:e||"6",height:e||"9",...t},r.createElement("path",{fill:"currentColor",d:"M6 4.5L0 9V0z",fillRule:"evenodd"}));o.displayName="TriangleIcon";const i=o},4612:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,l:()=>o});const r={FACEBOOK:"facebook",TWITTER:"twitter",PINTEREST:"pinterest",TUMBLR:"tumblr",LINK:"link"},o="_api/media-share-server-for-video"},79259:(e,t,n)=>{"use strict";n.d(t,{ZD:()=>s,jo:()=>i,o5:()=>a,sA:()=>o});var r=n(5452);function o(e){return(0,r._l)(e)&&(0,r.NP)(e)}function i(e){return(0,r._l)(e)&&!(0,r.NP)(e)}function s(e){return(0,r.vm)(e)&&!(0,r.jl)(e)}function a(e){return(0,r.vm)(e)&&(0,r.jl)(e)}},31048:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(96918),o=n(6263);const i=({videoUrls:e,channelData:t={},videoItem:n={},currentSiteUser:i})=>!e&&!(0,o.SH)(n)&&(0,r.$4)(t,n,i)},14190:(e,t,n)=>{"use strict";n.d(t,{hg:()=>a,sq:()=>s});var r=n(23299),o=n(17607),i=n(87077);const s=(0,r.P1)([i.js],(e=>(0,o.get)(e,"featuredItem"))),a=(0,r.P1)([e=>e.selectedVideoId,s,e=>e.firstChannelVideoId],((e,t,n)=>e||t||n))},96918:(e,t,n)=>{"use strict";n.d(t,{$4:()=>w,D$:()=>b,FE:()=>y,H_:()=>g,TK:()=>C,ds:()=>E,fy:()=>I,g6:()=>P,n2:()=>f,o8:()=>S,yi:()=>v});var r=n(17607),o=n(97318),i=n(5452),s=n(27711),a=n(56725),l=n(79259),c=n(86606),u=n(6263),d=n(46735);function p(e){return!(0,r.isEmpty)(e)}function h(e){return Boolean(e.memberOnly)}function m(e){return!(0,c.$Z)(e)&&!(0,c.eZ)(e)}function f(e,t,n){return(0,o.Ns)(t)?(0,i._l)(e)&&!(0,u.SH)(t)?(0,i.NP)(e):(0,i.vm)(e)&&!(0,u.SH)(t)?(0,i.jl)(e):!h(t)||p(n):(0,o.Hx)(t)||(0,o.VF)(t)||(0,l.sA)(e)||(0,l.o5)(e)}function g(e,t,n){return!!m(t)&&((0,o.Ns)(t)?!h(t)||p(n):(0,o.VF)(t)||(0,l.sA)(e)||(0,l.o5)(e))}function v(e,t,n){return m(t)&&f(e,t,n)}const y={SIGN_IN:"needs-sign-in",SUBSCRIBE:"needs-subscription",BUY:"need-to-buy",RENT:"need-to-rent",BUY_OR_RENT:"need-to-buy-or-rent",PRICING_PLAN:"pricing-plan-enabled"};function b(e,t,n){if(v(e,t,n))return null;if(f(e,t,n)&&((0,c.$Z)(t)||(0,c.eZ)(t)))return null;if((0,i.vm)(e)){const n=(0,d.AZ)(e.dealInfo);if((0,o.Ns)(t)||e.subscriptionOnly||n?.required)return y.PRICING_PLAN}if((0,o.Ns)(t)&&(0,i._l)(e))return(0,i.NP)(e)?null:y.SUBSCRIBE;if((0,o.Ns)(t)&&h(t))return y.SIGN_IN;if((0,i._l)(e)){const t=(0,d.il)(e.dealInfo);if(e.subscriptionOnly||t?.required)return y.SUBSCRIBE}return(0,o.RR)(t)&&(0,o.qR)(t)?y.BUY_OR_RENT:(0,o.RR)(t)?y.RENT:(0,o.qR)(t)?y.BUY:void 0}var E,S;function C(e,t,n){if(v(e,t,n))return(0,c.$C)(t)?E.LIVE_STREAMING:E.FULL;if((0,o.Ns)(t)&&h(t))return;const r=(0,a.bv)(t);return(0,a.qy)(t)&&r===s.i.TRAILER?E.TRAILER:r===s.i.FIRST_20_SEC?E.FIRST_20_SEC:void 0}function w(e,t,n){return Boolean(C(e,t,n))}!function(e){e.FULL="full-video",e.TRAILER="trailer",e.FIRST_20_SEC="preview",e.LIVE_STREAMING="live-streaming"}(E||(E={})),function(e){e.YOU_BOUGHT_THIS="user-bought-video",e.YOU_RENTED_THIS="user-rented-video"}(S||(S={}));const P=e=>(0,o.VF)(e)?S.YOU_BOUGHT_THIS:(0,o.Hx)(e)?S.YOU_RENTED_THIS:void 0,I=({channelData:e,videoItem:t,currentSiteUser:n})=>P(t)||b(e,t,n)},72632:(e,t,n)=>{"use strict";var r;n.d(t,{T:()=>s}),function(e){e.KEYBOARD="keyboard",e.MOUSE="mouse",e.MOBILE="mobile"}(r||(r={}));let o=null;const i=(e,t)=>{document.addEventListener(e,(()=>o=t))};function s(e){if("undefined"==typeof document)return;if(!document.hasFocus())return;const t=Boolean(o);!e||t&&o!==r.KEYBOARD||function(e){const t=e.getAttribute("tabindex");function n(){e.removeEventListener("blur",n),e.removeAttribute("focused-with-source"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}e.setAttribute("tabindex","0"),o&&e.setAttribute("focused-with-source",o);if(e.addEventListener("blur",n),e.getAttribute("aria-label"))return void e.focus();e.setAttribute("aria-live","polite"),e.setAttribute("aria-relevant","text"),e.setAttribute("aria-atomic","true");const r=document.createElement("div"),i=document.createElement("span");r.style.position="relative",r.style.overflow="hidden",i.style.position="absolute",i.style.right="-10000%",i.innerHTML="&nbsp;",setTimeout((()=>{r.appendChild(i),e.appendChild(r),setTimeout((()=>{e.removeAttribute("aria-live"),e.removeAttribute("aria-relevant"),e.removeAttribute("aria-atomic")}),10)}),10),e.focus()}(e)}"undefined"!=typeof document&&(i("keydown",r.KEYBOARD),i("keyup",r.KEYBOARD),i("mousedown",r.MOUSE),i("mouseup",r.MOUSE),i("touchstart",r.MOBILE),i("touchend",r.MOBILE))},35163:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});const r=e=>{let t=!1;return{promise:new Promise(((n,r)=>{e.then((e=>t?r({isCanceled:!0}):n(e)),(e=>r(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}}},4600:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(17607);function o(e){return(0,r.isNumber)(e)&&(0,r.isFinite)(e)?(0,r.ceil)(1e3*e):null}},23299:(e,t)=>{"use strict";function n(e,t){return e===t}function r(e){var t=arguments.length<=1||void 0===arguments[1]?n:arguments[1],r=null,o=null;return function(){for(var n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return null!==r&&r.length===i.length&&i.every((function(e,n){return t(e,r[n])}))||(o=e.apply(void 0,i)),r=i,o}}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,s=r.pop(),a=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(r),l=e.apply(void 0,[function(){return i++,s.apply(void 0,arguments)}].concat(n)),c=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=a.map((function(n){return n.apply(void 0,[e,t].concat(r))}));return l.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(i))};return c.resultFunc=s,c.recomputations=function(){return i},c.resetRecomputations=function(){return i=0},c}}var i=t.P1=o(r)},60042:(e,t)=>{var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},11512:(e,t,n)=>{"use strict";n.d(t,{J6:()=>i,O6:()=>o,nk:()=>r});var r="@@router/LOCATION_CHANGE",o=function(e,t){return{type:r,payload:{location:e,action:t,isFirstRendering:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}}},i="@@router/CALL_HISTORY_METHOD",s=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{type:i,payload:{method:e,args:n}}}};s("push"),s("replace"),s("go"),s("goBack"),s("goForward")},23282:(e,t,n)=>{"use strict";n.d(t,{xI:()=>_,iz:()=>L});var r=n(27762),o=n.n(r),i=n(13980),s=n.n(i),a=n(44714),l=n(7267),c=n(53634),u=n.n(c),d=n(11512);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}const h=function(e){var t=e.getIn,n=e.toJS,r=function(e){var r,o=n(t(e,["router"]));if(null==(r=o)||"object"!==p(r)||!t(r,["location"])||!t(r,["action"]))throw'Could not find router reducer in state tree, it must be mounted under "router"';return o},o=function(e){return n(t(r(e),["location"]))};return{getLocation:o,getAction:function(e){return n(t(r(e),["action"]))},getRouter:r,getSearch:function(e){return n(t(r(e),["location","search"]))},getHash:function(e){return n(t(r(e),["location","hash"]))},createMatchSelector:function(e){var t=null,n=null;return function(r){var i=(o(r)||{}).pathname;if(i===t)return n;t=i;var s=(0,l.LX)(i,e);return s&&n&&s.url===n.url&&s.isExact===n.isExact||(n=s),n}}}};function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function f(){return f=Object.assign||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},f.apply(this,arguments)}function g(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 v(e){return function(){var t,n=y(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=y(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}const E=function(e){var t=h(e).getLocation,n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(a,e);var n,r,i,s=v(a);function a(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),n=s.call(this,e);var r=e.store,o=e.history,i=e.onLocationChanged,l=e.stateCompareFunction;n.inTimeTravelling=!1,n.unsubscribe=r.subscribe((function(){var i=!e.noTimeTravelDebugging,s=t(r.getState()),a=s.pathname,c=s.search,d=s.hash,p=s.state,h=o.location,m=h.pathname,f=h.search,g=h.hash,v=h.state;!i||"PUSH"!==e.history.action||m===a&&f===c&&g===d&&u()(p,v,l)||(n.inTimeTravelling=!0,o.push({pathname:a,search:c,hash:d,state:p}))}));var c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.inTimeTravelling?n.inTimeTravelling=!1:i(e,t,r)};return n.unlisten=o.listen(c),e.noInitialPop||c(o.location,o.action,!0),n}return n=a,(r=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.omitRouter,n=e.history,r=e.children;return t?o().createElement(o().Fragment,null,r):o().createElement(l.F0,{history:n},r)}}])&&g(n.prototype,r),i&&g(n,i),a}(r.PureComponent);n.propTypes={store:s().shape({getState:s().func.isRequired,subscribe:s().func.isRequired}).isRequired,history:s().shape({action:s().string.isRequired,listen:s().func.isRequired,location:s().object.isRequired,push:s().func.isRequired}).isRequired,basename:s().string,children:s().oneOfType([s().func,s().node]),onLocationChanged:s().func.isRequired,noInitialPop:s().bool,noTimeTravelDebugging:s().bool,stateCompareFunction:s().func,omitRouter:s().bool};var i=function(e){var t=e.context||a.ET;if(null==t)throw"Please upgrade to react-redux v6";return o().createElement(t.Consumer,null,(function(t){var r=t.store;return o().createElement(n,f({store:r},e))}))};return i.propTypes={context:s().object},(0,a.$j)(null,(function(e){return{onLocationChanged:function(t,n,r){return e((0,d.O6)(t,n,r))}}}))(i)};function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){if(e&&e.query)return e;var t=e&&e.search;if("string"!=typeof t||0===t.length)return P({},e,{query:{}});var n=t.substring(1).split("&").reduce((function(e,t){var n=S(t.split("="),2);return P({},e,I({},n[0],n[1]))}),{});return P({},e,{query:n})};const T=function(e){var t=e.fromJS,n=e.merge;return function(e){var r=t({location:O(e.location),action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.type,s=o.payload;if(i===d.nk){var a=s.location,l=s.action;return s.isFirstRendering?e:n(e,{location:t(O(a)),action:l})}return e}}};function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}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}const x={fromJS:function(e){return e},getIn:function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,o=0;o<n&&r;++o)r=r[t[o]];return r}},merge:function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},toJS:function(e){return e}};var _=E(x),L=T(x),R=h(x);R.getLocation,R.getAction,R.getHash,R.getRouter,R.getSearch,R.createMatchSelector},27762:t=>{"use strict";t.exports=e},88677:e=>{"use strict";e.exports=t},17607:e=>{"use strict";e.exports=n},85297:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},26290:(e,t,n)=>{var r=n(47739);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},77028:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},36531:(e,t,n)=>{var r=n(78560);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},15538:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},78560:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},68064:(e,t,n)=>{var r=n(67425).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},47739:(e,t,n)=>{var r=n(67425).default,o=n(68064);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},67425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},82327:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=r(n(27762)),i=r(n(15538)),s=r(n(77028)),a=r(n(85297)),l=r(n(36531)),c=r(n(73463));function u(e,t){if(!e){var n=new Error("loadable: "+t);throw n.framesToPop=1,n.name="Invariant Violation",n}}function d(e){console.warn("loadable: "+e)}var p=o.createContext(),h="__LOADABLE_REQUIRED_CHUNKS__";function m(e){return""+e+h}var f=Object.freeze({__proto__:null,getRequiredChunkKey:m,invariant:u,Context:p}),g={initialChunks:{}},v="PENDING",y="REJECTED";var b=function(e){return e};function E(e){var t=e.defaultResolveComponent,n=void 0===t?b:t,r=e.render,d=e.onLoad;function h(e,t){void 0===t&&(t={});var h=function(e){return"function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),m={};function f(e){return t.cacheKey?t.cacheKey(e):h.resolve?h.resolve(e):"static"}function b(e,r,o){var i=t.resolveComponent?t.resolveComponent(e,r):n(e);return c(o,i,{preload:!0}),i}var E=function(e){var t=f(e),n=m[t];return n&&n.status!==y||((n=h.requireAsync(e)).status=v,m[t]=n,n.then((function(){n.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:h.resolve(e),chunkName:h.chunkName(e),error:t?t.message:t}),n.status=y}))),n},S=function(e){var t=function(t){return o.createElement(p.Consumer,null,(function(n){return o.createElement(e,Object.assign({__chunkExtractor:n},t))}))};return e.displayName&&(t.displayName=e.displayName+"WithChunkExtractor"),t}(function(e){function n(n){var r;return(r=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:f(n)},u(!n.__chunkExtractor||h.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===t.ssr||(h.requireAsync(n).catch((function(){return null})),r.loadSync(),n.__chunkExtractor.addChunk(h.chunkName(n))),a(r)):(!1!==t.ssr&&(h.isReady&&h.isReady(n)||h.chunkName&&g.initialChunks[h.chunkName(n)])&&r.loadSync(),r)}l(n,e),n.getDerivedStateFromProps=function(e,t){var n=f(e);return s({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var o=n.prototype;return o.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===y&&this.setCache(),this.state.loading&&this.loadAsync()},o.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},o.componentWillUnmount=function(){this.mounted=!1},o.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},o.getCacheKey=function(){return f(this.props)},o.getCache=function(){return m[this.getCacheKey()]},o.setCache=function(e){void 0===e&&(e=void 0),m[this.getCacheKey()]=e},o.triggerOnLoad=function(){var e=this;d&&setTimeout((function(){d(e.state.result,e.props)}))},o.loadSync=function(){if(this.state.loading)try{var e=b(h.requireSync(this.props),this.props,C);this.state.result=e,this.state.loading=!1}catch(e){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:h.resolve(this.props),chunkName:h.chunkName(this.props),error:e?e.message:e}),this.state.error=e}},o.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var n=b(t,e.props,C);e.safeSetState({result:n,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},o.resolveAsync=function(){var e=this.props,t=(e.__chunkExtractor,e.forwardedRef,i(e,["__chunkExtractor","forwardedRef"]));return E(t)},o.render=function(){var e=this.props,n=e.forwardedRef,o=e.fallback,a=(e.__chunkExtractor,i(e,["forwardedRef","fallback","__chunkExtractor"])),l=this.state,c=l.error,u=l.loading,d=l.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===v)throw this.loadAsync();if(c)throw c;var p=o||t.fallback||null;return u?p:r({fallback:p,result:d,options:t,props:s({},a,{ref:n})})},n}(o.Component)),C=o.forwardRef((function(e,t){return o.createElement(S,Object.assign({forwardedRef:t},e))}));return C.displayName="Loadable",C.preload=function(e){C.load(e)},C.load=function(e){return E(e)},C}return{loadable:h,lazy:function(e,t){return h(e,s({},t,{suspense:!0}))}}}var S=E({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return o.createElement(t,n)}}),C=S.loadable,w=S.lazy,P=E({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),I=P.loadable,O=P.lazy,T="undefined"!=typeof window;var N=C;N.lib=I;var A=w;A.lib=O,t.loadableReady=function(e,t){void 0===e&&(e=function(){});var n=void 0===t?{}:t,r=n.namespace,o=void 0===r?"":r,i=n.chunkLoadingGlobal,s=void 0===i?"__LOADABLE_LOADED_CHUNKS__":i;if(!T)return d("`loadableReady()` must be called in browser only"),e(),Promise.resolve();var a=null;if(T){var l=m(o),c=document.getElementById(l);if(c){a=JSON.parse(c.textContent);var u=document.getElementById(l+"_ext");if(!u)throw new Error("loadable-component: @loadable/server does not match @loadable/component");JSON.parse(u.textContent).namedChunks.forEach((function(e){g.initialChunks[e]=!0}))}}if(!a)return d("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var p=!1;return new Promise((function(e){window[s]=window[s]||[];var t=window[s],n=t.push.bind(t);function r(){a.every((function(e){return t.some((function(t){return t[0].indexOf(e)>-1}))}))&&(p||(p=!0,e()))}t.push=function(){n.apply(void 0,arguments),r()},r()})).then(e)}},12524:(e,t)=>{var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},80753:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},9249:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},87371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(45850);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},56666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(45850);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7896:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{Z:()=>r})},81665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88960);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},31461:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{Z:()=>r})},88960:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},89790:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||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.")}()}n.d(t,{Z:()=>o})},45850:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(86522);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},86522:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},10362:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t,i=n?"".concat(o,": ").concat(n):o;throw new Error(i)}}},22970:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>k,__assign:()=>i,__asyncDelegator:()=>I,__asyncGenerator:()=>P,__asyncValues:()=>O,__await:()=>w,__awaiter:()=>m,__classPrivateFieldGet:()=>_,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>L,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>V,__esDecorate:()=>c,__exportStar:()=>v,__extends:()=>o,__generator:()=>f,__importDefault:()=>x,__importStar:()=>A,__makeTemplateObject:()=>T,__metadata:()=>h,__param:()=>l,__propKey:()=>d,__read:()=>b,__rest:()=>s,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>E,__spreadArray:()=>C,__spreadArrays:()=>S,__values:()=>y,default:()=>M});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};function s(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}function a(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,o,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),p=!1,h=n.length-1;h>=0;h--){var m={};for(var f in r)m[f]="access"===f?{}:r[f];for(var f in r.access)m.access[f]=r.access[f];m.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var g=(0,n[h])("accessor"===l?{get:d.get,set:d.set}:d[c],m);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=s(g.get))&&(d.get=a),(a=s(g.set))&&(d.set=a),(a=s(g.init))&&o.unshift(a)}else(a=s(g))&&("field"===l?o.unshift(a):d[c]=a)}u&&Object.defineProperty(u,r.name,d),p=!0}function u(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function v(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function E(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}function C(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))}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function P(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",(function(e){return function(t){return Promise.resolve(t).then(e,c)}})),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))},t&&(r[e]=t(r[e])))}function a(e,t){try{(n=o[e](t)).value instanceof w?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function I(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:w(e[r](t)),done:!1}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return N(t,e),t}function x(e){return e&&e.__esModule?e:{default:e}}function _(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function L(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function k(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var D="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function V(e){function t(t){e.error=e.hasError?new D(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,(function(e){return t(e),o()}))}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}const M={__extends:o,__assign:i,__rest:s,__decorate:a,__param:l,__metadata:h,__awaiter:m,__generator:f,__createBinding:g,__exportStar:v,__values:y,__read:b,__spread:E,__spreadArrays:S,__spreadArray:C,__await:w,__asyncGenerator:P,__asyncDelegator:I,__asyncValues:O,__makeTemplateObject:T,__importStar:A,__importDefault:x,__classPrivateFieldGet:_,__classPrivateFieldSet:L,__classPrivateFieldIn:R,__addDisposableResource:k,__disposeResources:V}}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}return a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>"client-viewer/"+({17:"mobile/playback",39:"mobile-overlay",366:"mobile/share-popup-content",397:"widget/vod-player"}[e]||e)+".chunk.min.js",a.miniCssF=e=>"client-viewer/"+{39:"mobile-overlay",366:"mobile/share-popup-content",397:"widget/vod-player"}[e]+".chunk.min.css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="_wix_wix_vod_widget:",a.l=(e,t,n,i)=>{if(r[e])r[e].push(t);else{var s,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+n){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",o+n),s.src=e,0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous")),r[e]=[t];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),function(e){var t="-",n="--",r="---";function o(e,o,i){return!1===i||null==i||i!=i?"":!0===i?function(e,t){return e+n+t}(e,o):function(e,n,o){return e+r+n+t+o.length+t+o.replace(/\s/gm,"_")}(e,o,i.toString())}(e=e||{}).sts=function(e){for(var t=[],n=1;n<arguments.length;n++){var r=arguments[n];if(r)if("string"==typeof r)t[t.length]=r;else if(2===n)for(var i in r){var s=o(e,i,r[i]);s&&(t[t.length]=s)}}return t.join(" ")},e.stc=function(e,t){var n=[];for(var r in t){var i=o(e,r,t[r]);i&&n.push(i)}return n.join(" ")}}(a),a.p="https://static.parastorage.com/services/wix-vod-widget/2c3786b476318f085ae3d28fc093ae68ff9d42c2b86db2258cd08541/",(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,n)=>{var r=a.miniCssF(e),o=a.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(s=n[r]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(o===e||o===t))return s}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var s;if((o=(s=i[r]).getAttribute("data-href"))===e||o===t)return s}})(r,o))return t();((e,t,n,r,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var s=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,0!==i.href.indexOf(window.location.origin+"/")&&(i.crossOrigin="anonymous"),n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i)})(e,o,null,t,n)})),t={763:0};a.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{39:1,366:1,397:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={763:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)l(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=("undefined"!=typeof self?self:this).webpackJsonp__wix_wix_vod_widget=("undefined"!=typeof self?self:this).webpackJsonp__wix_wix_vod_widget||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a(63414)})()));
//# sourceMappingURL=WixVideoViewerWidgetNoCss.bundle.min.js.map