Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ekolabs/eko-react-sdk

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ekolabs/eko-react-sdk - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

6

bundles/bundle.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);function _typeof(e){return(_typeof="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)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(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 _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);function _typeof(e){return(_typeof="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)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(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 _nonIterableSpread(){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 _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports
/** @license React v16.13.1

@@ -9,3 +9,3 @@ * react-is.production.min.js

* LICENSE file in the root directory of this source tree.
*/}var b="function"==typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(o){if("object"==typeof o&&null!==o){var a=o.$$typeof;switch(a){case c:switch(o=o.type){case l:case m:case e:case g:case f:case p:return o;default:switch(o=o&&o.$$typeof){case k:case n:case t:case r:case h:return o;default:return a}}case d:return a}}}function A(e){return z(e)===m}var AsyncMode=l,ConcurrentMode=m,ContextConsumer=k,ContextProvider=h,Element=c,ForwardRef=n,Fragment=e,Lazy=t,Memo=r,Portal=d,Profiler=g,StrictMode=f,Suspense=p,isAsyncMode=function(e){return A(e)||z(e)===l},isConcurrentMode=A,isContextConsumer=function(e){return z(e)===k},isContextProvider=function(e){return z(e)===h},isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},isForwardRef=function(e){return z(e)===n},isFragment=function(t){return z(t)===e},isLazy=function(e){return z(e)===t},isMemo=function(e){return z(e)===r},isPortal=function(e){return z(e)===d},isProfiler=function(e){return z(e)===g},isStrictMode=function(e){return z(e)===f},isSuspense=function(e){return z(e)===p},isValidElementType=function(o){return"string"==typeof o||"function"==typeof o||o===e||o===m||o===g||o===f||o===p||o===q||"object"==typeof o&&null!==o&&(o.$$typeof===t||o.$$typeof===r||o.$$typeof===h||o.$$typeof===k||o.$$typeof===n||o.$$typeof===w||o.$$typeof===x||o.$$typeof===y||o.$$typeof===v)},typeOf=z,reactIs_production_min={AsyncMode:AsyncMode,ConcurrentMode:ConcurrentMode,ContextConsumer:ContextConsumer,ContextProvider:ContextProvider,Element:Element,ForwardRef:ForwardRef,Fragment:Fragment,Lazy:Lazy,Memo:Memo,Portal:Portal,Profiler:Profiler,StrictMode:StrictMode,Suspense:Suspense,isAsyncMode:isAsyncMode,isConcurrentMode:isConcurrentMode,isContextConsumer:isContextConsumer,isContextProvider:isContextProvider,isElement:isElement,isForwardRef:isForwardRef,isFragment:isFragment,isLazy:isLazy,isMemo:isMemo,isPortal:isPortal,isProfiler:isProfiler,isStrictMode:isStrictMode,isSuspense:isSuspense,isValidElementType:isValidElementType,typeOf:typeOf},reactIs_development=createCommonjsModule((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function $(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var d=e.type;switch(d){case u:case l:case o:case i:case a:case p:return d;default:var v=d&&d.$$typeof;switch(v){case c:case f:case m:case y:case s:return v;default:return t}}case r:return t}}}var g=u,w=l,S=c,E=s,I=n,x=f,k=o,P=m,O=y,T=r,C=i,j=a,A=p,R=!1;function M(e){return $(e)===l}t.AsyncMode=g,t.ConcurrentMode=w,t.ContextConsumer=S,t.ContextProvider=E,t.Element=I,t.ForwardRef=x,t.Fragment=k,t.Lazy=P,t.Memo=O,t.Portal=T,t.Profiler=C,t.StrictMode=j,t.Suspense=A,t.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||$(e)===u},t.isConcurrentMode=M,t.isContextConsumer=function(e){return $(e)===c},t.isContextProvider=function(e){return $(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return $(e)===f},t.isFragment=function(e){return $(e)===o},t.isLazy=function(e){return $(e)===m},t.isMemo=function(e){return $(e)===y},t.isPortal=function(e){return $(e)===r},t.isProfiler=function(e){return $(e)===i},t.isStrictMode=function(e){return $(e)===a},t.isSuspense=function(e){return $(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===i||e===a||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===h||e.$$typeof===_||e.$$typeof===v)},t.typeOf=$}()})),reactIs_development_1=reactIs_development.AsyncMode,reactIs_development_2=reactIs_development.ConcurrentMode,reactIs_development_3=reactIs_development.ContextConsumer,reactIs_development_4=reactIs_development.ContextProvider,reactIs_development_5=reactIs_development.Element,reactIs_development_6=reactIs_development.ForwardRef,reactIs_development_7=reactIs_development.Fragment,reactIs_development_8=reactIs_development.Lazy,reactIs_development_9=reactIs_development.Memo,reactIs_development_10=reactIs_development.Portal,reactIs_development_11=reactIs_development.Profiler,reactIs_development_12=reactIs_development.StrictMode,reactIs_development_13=reactIs_development.Suspense,reactIs_development_14=reactIs_development.isAsyncMode,reactIs_development_15=reactIs_development.isConcurrentMode,reactIs_development_16=reactIs_development.isContextConsumer,reactIs_development_17=reactIs_development.isContextProvider,reactIs_development_18=reactIs_development.isElement,reactIs_development_19=reactIs_development.isForwardRef,reactIs_development_20=reactIs_development.isFragment,reactIs_development_21=reactIs_development.isLazy,reactIs_development_22=reactIs_development.isMemo,reactIs_development_23=reactIs_development.isPortal,reactIs_development_24=reactIs_development.isProfiler,reactIs_development_25=reactIs_development.isStrictMode,reactIs_development_26=reactIs_development.isSuspense,reactIs_development_27=reactIs_development.isValidElementType,reactIs_development_28=reactIs_development.typeOf,reactIs=createCommonjsModule((function(e){"production"===process.env.NODE_ENV?e.exports=reactIs_production_min:e.exports=reactIs_development})),getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var objectAssign=shouldUseNative()?Object.assign:function(e,t){for(var n,r,o=toObject(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))hasOwnProperty.call(n,i)&&(o[i]=n[i]);if(getOwnPropertySymbols){r=getOwnPropertySymbols(n);for(var s=0;s<r.length;s++)propIsEnumerable.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o},ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret,printWarning=function(){};if("production"!==process.env.NODE_ENV){var ReactPropTypesSecret$1=ReactPropTypesSecret_1,loggedTypeFailures={},has=Function.call.bind(Object.prototype.hasOwnProperty);printWarning=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function checkPropTypes(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var a in e)if(has(e,a)){var i;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw s.name="Invariant Violation",s}i=e[a](t,a,r,n,null,ReactPropTypesSecret$1)}catch(e){i=e}if(!i||i instanceof Error||printWarning((r||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in loggedTypeFailures)){loggedTypeFailures[i.message]=!0;var c=o?o():"";printWarning("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}checkPropTypes.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(loggedTypeFailures={})};var checkPropTypes_1=checkPropTypes,has$1=Function.call.bind(Object.prototype.hasOwnProperty),printWarning$1=function(){};function emptyFunctionThatReturnsNull(){return null}"production"!==process.env.NODE_ENV&&(printWarning$1=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});var factoryWithTypeCheckers=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",o={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:s(emptyFunctionThatReturnsNull),arrayOf:function(e){return s((function(t,n,r,o,a){if("function"!=typeof e)return new i("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new i("Invalid "+o+" `"+a+"` of type `"+l(s)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<s.length;c++){var u=e(s,c,r,o,a+"["+c+"]",ReactPropTypesSecret_1);if(u instanceof Error)return u}return null}))},element:s((function(t,n,r,o,a){var s=t[n];return e(s)?null:new i("Invalid "+o+" `"+a+"` of type `"+l(s)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:s((function(e,t,n,r,o){var a=e[t];return reactIs.isValidElementType(a)?null:new i("Invalid "+r+" `"+o+"` of type `"+l(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,n,o,a,s){if(!(t[n]instanceof e)){var c=e.name||r;return new i("Invalid "+a+" `"+s+"` of type `"+(((u=t[n]).constructor&&u.constructor.name?u.constructor.name:r)+"` supplied to `")+o+"`, expected instance of `"+c+"`.")}var u;return null}))},node:s((function(e,t,n,r,o){return u(e[t])?null:new i("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,n,r,o,a){if("function"!=typeof e)return new i("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],c=l(s);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in s)if(has$1(s,u)){var f=e(s,u,r,o,a+"."+u,ReactPropTypesSecret_1);if(f instanceof Error)return f}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&printWarning$1(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),emptyFunctionThatReturnsNull;function t(t,n,r,o,s){for(var c=t[n],u=0;u<e.length;u++)if(a(c,e[u]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===f(t)?String(t):t}));return new i("Invalid "+o+" `"+s+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+l+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&printWarning$1("Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunctionThatReturnsNull;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return printWarning$1("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+t+"."),emptyFunctionThatReturnsNull}return s((function(t,n,r,o,a){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,o,a,ReactPropTypesSecret_1))return null;return new i("Invalid "+o+" `"+a+"` supplied to `"+r+"`.")}))},shape:function(e){return s((function(t,n,r,o,a){var s=t[n],c=l(s);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var f=e[u];if(f){var p=f(s,u,r,o,a+"."+u,ReactPropTypesSecret_1);if(p)return p}}return null}))},exact:function(e){return s((function(t,n,r,o,a){var s=t[n],c=l(s);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var u=objectAssign({},t[n],e);for(var f in u){var p=e[f];if(!p)return new i("Invalid "+o+" `"+a+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=p(s,f,r,o,a+"."+f,ReactPropTypesSecret_1);if(d)return d}return null}))}};function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function i(e){this.message=e,this.stack=""}function s(e){if("production"!==process.env.NODE_ENV)var n={},o=0;function a(a,s,c,u,l,f,p){if(u=u||r,f=f||c,p!==ReactPropTypesSecret_1){if(t){var d=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 d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=u+":"+c;!n[y]&&o<3&&(printWarning$1("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[y]=!0,o++)}}return null==s[c]?a?null===s[c]?new i("The "+l+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new i("The "+l+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,c,u,l,f)}var s=a.bind(null,!1);return s.isRequired=a.bind(null,!0),s}function c(e){return s((function(t,n,r,o,a,s){var c=t[n];return l(c)!==e?new i("Invalid "+o+" `"+a+"` of type `"+f(c)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!r)return!1;var o,a=r.call(t);if(r!==t.entries){for(;!(o=a.next()).done;)if(!u(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function l(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function f(e){if(null==e)return""+e;var t=l(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function p(e){var t=f(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return i.prototype=Error.prototype,o.checkPropTypes=checkPropTypes_1,o.resetWarningCache=checkPropTypes_1.resetWarningCache,o.PropTypes=o,o};function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function e(e,t,n,r,o,a){if(a!==ReactPropTypesSecret_1){var i=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 i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array: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:emptyFunctionWithReset,resetWarningCache:emptyFunction};return n.PropTypes=n,n},propTypes=createCommonjsModule((function(e){if("production"!==process.env.NODE_ENV){var t=reactIs;e.exports=factoryWithTypeCheckers(t.isElement,!0)}else e.exports=factoryWithThrowingShims()})),EkoPlayer_min=createCommonjsModule((function(module,exports){!function(e,t){module.exports=t()}(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){var r=Object.prototype.hasOwnProperty,o="~";function a(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,r||e,a),c=o?o+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function u(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(o=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,a=n.length,i=new Array(a);r<a;r++)i[r]=n[r].fn;return i},u.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,r,a,i){var s=o?o+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,a),!0;case 6:return l.fn.call(l.context,t,n,r,a,i),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,r);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},u.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,r){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return c(this,a),this;var i=this._events[a];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||c(this,a);else{for(var s=0,u=[],l=i.length;s<l;s++)(i[s].fn!==t||r&&!i[s].once||n&&i[s].context!==n)&&u.push(i[s]);u.length?this._events[a]=1===u.length?u[0]:u:c(this,a)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&c(this,t)):(this._events=new a,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=o,u.EventEmitter=u,e.exports=u},function(e,t,n){var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||i,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=a;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=a(e[t],n)})),s(t).forEach((function(o){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(c(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(o,n)(e[o],t[o],n):r[o]=a(t[o],n))})),r}(e,t,n):a(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var l=u;e.exports=l},function(module,exports,__webpack_require__){var arrayify=__webpack_require__(3);function evaluates(statement){try{return eval(statement),!0}catch(e){return!1}}exports.class=function(){return evaluates("class Something {}")},exports.arrowFunction=function(){return evaluates("var f = x => 1")},exports.let=function(){return evaluates("let a = 1")},exports.const=function(){return evaluates("const a = 1")},exports.newArrayFeatures=function(){return void 0!==Array.prototype.find&&void 0!==Array.prototype.findIndex&&void 0!==Array.from&&void 0!==Array.of&&void 0!==Array.prototype.entries&&void 0!==Array.prototype.keys&&void 0!==Array.prototype.copyWithin&&void 0!==Array.prototype.fill},exports.newObjectFeatures=function(){return void 0!==Object.assign&&void 0!==Object.setPrototypeOf&&void 0!==Object.getOwnPropertySymbols&&void 0!==Object.is},exports.collections=function(){return"undefined"!=typeof Map&&"undefined"!=typeof WeakMap&&"undefined"!=typeof Set&&"undefined"!=typeof WeakSet},exports.generators=function(){return evaluates("function* test() {}")},exports.promises=function(){return"undefined"!=typeof Promise},exports.templateStrings=function(){return evaluates("var a = `a`")},exports.symbols=function(){return"undefined"!=typeof Symbol&&"function"==typeof Symbol.for},exports.destructuring=function(){return evaluates("var { first: f, last: l } = { first: 'Jane', last: 'Doe' }")},exports.spread=function(){return evaluates("Math.max(...[ 5, 10 ])")},exports.defaultParamValues=function(){return evaluates("function test (one = 1) {}")},exports.asyncFunctions=function(){return evaluates("async function test () {}")},exports.all=function(){return arrayify(arguments).every((function(e){var t=exports[e];if(t&&"function"==typeof t)return t();throw new Error("no detection available by this name: "+e)}))}},function(e,t,n){var r=n(4);e.exports=function(e){return void 0===e?[]:r.isArrayLike(e)?Array.prototype.slice.call(e):Array.isArray(e)?e:[e]}},function(e,t,n){function r(e){return"object"==typeof e&&null!==e}function o(e){return void 0!==e}function a(e){return"function"==typeof e}t.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},t.isString=function(e){return"string"==typeof e},t.isBoolean=function(e){return"boolean"==typeof e},t.isPlainObject=function(e){return null!==e&&"object"==typeof e&&e.constructor===Object},t.isArrayLike=function(e){return r(e)&&"number"==typeof e.length},t.isObject=r,t.isDefined=o,t.isFunction=a,t.isClass=function(e){return!!a(e)&&/^class /.test(Function.prototype.toString.call(e))},t.isPrimitive=function(e){if(null===e)return!0;switch(typeof e){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}},t.isPromise=function(e){if(e){var t=o(Promise)&&e instanceof Promise,n=e.then&&"function"==typeof e.then;return!(!t&&!n)}return!1},t.isIterable=function(e){return!(null===e||!o(e))&&"function"==typeof e[Symbol.iterator]}},function(e,t,n){n.r(t);var r=n(0),o=n.n(r),a=function(e){return/https?:\/\/(.*?\.)?eko.com/.test(e)};function i(e){var t=new URLSearchParams;return Object.keys(e).forEach((function(n){t.set(n,e[n])})),t.toString()}function s(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 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 u(e){return(u="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)}var l={"1.0":function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.iframe=t,this.eventEmitter=new o.a,this.addIframeListeners(),{load:this.load.bind(this),invoke:this.invoke.bind(this),on:this.on.bind(this),off:this.off.bind(this),once:this.once.bind(this)}}var t;return(t=[{key:"load",value:function(e,t){var n=t.params||{};n.embedapi="1.0",n.embedid=this.iframe.id,n.events=t.events.join(","),t.cover&&!n.hasOwnProperty("cover")&&(n.cover=!1);var r=t.env?"".concat(t.env,"."):"",o=i(n);this.iframe.setAttribute("src","https://".concat(r,"eko.com/v/").concat(e,"/embed?").concat(o))}},{key:"invoke",value:function(e,t){if("string"!=typeof e)throw new Error("Expected required argument method to have type string");var n={type:"eko.".concat(e),args:t};this.iframe.contentWindow.postMessage(n,"*")}},{key:"on",value:function(e,t){this.eventEmitter.on(e,t)}},{key:"off",value:function(e,t){this.eventEmitter.off(e,t)}},{key:"once",value:function(e,t){this.eventEmitter.once(e,t)}},{key:"addIframeListeners",value:function(){window.addEventListener("message",this.onEkoEventFired.bind(this))}},{key:"onEkoEventFired",value:function(e){if(a(e.origin)){var t=e.data;t.type&&t.embedId===this.iframe.id&&this.trigger.apply(this,[t.type.replace(/^eko./,"")].concat(function(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.args)))}}},{key:"trigger",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).emit.apply(t,[e].concat(r))}}])&&function(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)}}(e.prototype,t),e}(),"2.0":function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.iframe=t,this.eventEmitter=new o.a,this.addIframeListeners(),{load:this.load.bind(this),invoke:this.invoke.bind(this),on:this.on.bind(this),off:this.off.bind(this),once:this.once.bind(this)}}var t;return(t=[{key:"load",value:function(e,t){var n=this,r=t.params||{};r.id=e,r.embedapi="2.0",r.embedid=this.iframe.id,r.events=t.events.join(",");var o=t.clientSideParams;o&&"object"===u(o)&&(r.csp=!0,this.once("loader.csp.ready",(function(){n.iframe.contentWindow.postMessage({target:"loader",csp:o},"*")}))),this.iframe.setAttribute("src","https://".concat(t.env||"","embed.eko.com/?").concat(i(r)))}},{key:"invoke",value:function(e,t){if("string"!=typeof e)throw new Error("Expected required argument method to have type string");var n={target:"embedapi",playerProperty:"".concat(e),args:t};this.iframe.contentWindow.postMessage(n,"*")}},{key:"on",value:function(e,t){this.eventEmitter.on(e,t)}},{key:"off",value:function(e,t){this.eventEmitter.off(e,t)}},{key:"once",value:function(e,t){this.eventEmitter.once(e,t)}},{key:"addIframeListeners",value:function(){window.addEventListener("message",this.onEkoEventFired.bind(this))}},{key:"onEkoEventFired",value:function(e){var t;if(a(e.origin)){var n=e.data;n.event&&n.embedid===this.iframe.id&&"2.0"===n.embedapi&&(t=this.eventEmitter).emit.apply(t,[n.event].concat(function(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){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n.args)))}}}])&&function(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)}}(e.prototype,t),e}()},f=function(e,t){var n=l[t];if(!n)throw new Error("Invalid Embed API version");return new n(e)};var p=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cover=t,{setState:this.setState.bind(this)}}var t;return(t=[{key:"setState",value:function(e,t){1===arguments.length?this.cover(e):arguments.length>1&&this.cover(e,t)}}])&&function(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)}}(e.prototype,t),e}(),d=n(2),y=n.n(d);function m(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 v(e){return(v="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)}var b=function(e,t){return t.reduce((function(t,n){return n instanceof RegExp?Object.keys(e).forEach((function(e){n.test(e)&&delete t[e]})):e&&e.hasOwnProperty(n)&&delete t[n],t}),Object.assign({},e))},h=function(e){if(!Array.isArray(e))throw new TypeError("[uniq] Expected array, instead got ".concat(v(e)));return function(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(new Set(e))},_=function(e){var t=null;if(!e)throw new Error("Expecting an element (or selector) as first argument.");if("string"==typeof e){try{t=document.querySelector(e)}catch(e){}if(!t)throw new Error("Could not successfully resolve selector: ".concat(e))}else t=e;if(!t||"function"!=typeof t.appendChild)throw new Error("Could not resolve DOM element.");return t},$=function(){return y.a.all("class","arrowFunction","let","const","newArrayFeatures","newObjectFeatures","collections","promises","templateStrings","destructuring","spread","defaultParamValues")},g=function(){return!(!window.AudioContext&&!window.webkitAudioContext)},w=function(e,t){Object.keys(t).forEach((function(n){var r=t[n];if("string"!=typeof r)throw new Error("".concat(e," attribute: ").concat(n,",\n Received type ").concat(v(r),". Expected string."));e.setAttribute(n,r)}))};var S={loading:"eko-player-loading",loaded:"eko-player-loaded",started:"eko-player-started"},E=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cover=_(t),{setState:this.setState.bind(this)}}var t;return(t=[{key:"setState",value:function(e){var t=this;Object.values(S).forEach((function(e){t.cover.classList.remove(e)})),this.cover.classList.add(S[e])}}])&&function(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)}}(e.prototype,t),e}();var I=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"setState",value:function(){}}])&&function(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)}}(e.prototype,t),e}();function x(e){return(x="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)}var k=function(e){switch(x(e)){case"function":return new p(e);case"object":case"string":return new E(e);default:return new I}},P=0,O=function(){var e=document.createElement("iframe");return e.setAttribute("id","ekoembed-".concat(++P)),e},T=n(1),C=n.n(T);function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var A={env:"",iframeAttributes:{title:"Eko Player",style:"position: absolute; width: 100%; height: 100%; border: 0;",allowfullscreen:"",allow:"autoplay *; fullscreen *",importance:"high",loading:"eager"},params:{autoplay:!0},excludePropagatedParams:[],events:["canplay","playing"]},R={"urls.intent":{urlsmode:"proxy"},"share.intent":{sharemode:"proxy"}},M=null,F=function(){function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("Constructor must get an element (or selector) as first argument.");if(!e.isSupported())throw new Error("Cannot initialize EkoPlayer instance as Eko videos are not supported on current environment.");return this.iframe=O(),this.ekoEmbed=f(this.iframe,n||"1.0"),_(t).appendChild(this.iframe),{play:this.play.bind(this),pause:this.pause.bind(this),load:this.load.bind(this),invoke:this.invoke.bind(this),on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this)}}var t,n,r;return t=e,r=[{key:"isSupported",value:function(){return null===M&&(M="undefined"!=typeof window&&$()&&g()),M}}],(n=[{key:"load",value:function(e,t){if(!e||"string"!=typeof e)throw new Error("Invalid id arg passed to load() method, expected a non-empty string");t=this.prepareLoadingOptions(t);var n=k(t.cover);n.setState("loading"),this.once("canplay",(function(e,t){n.setState("loaded",{buffered:e,isAutoplayExpected:t})})),this.once("playing",(function(){n.setState("started")})),w(this.iframe,t.iframeAttributes),this.ekoEmbed.load(e,t)}},{key:"play",value:function(){this.invoke("play",[])}},{key:"pause",value:function(){this.invoke("pause",[])}},{key:"invoke",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.ekoEmbed.invoke(e,n)}},{key:"on",value:function(e,t){this.ekoEmbed.on(e,t)}},{key:"off",value:function(e,t){this.ekoEmbed.off(e,t)}},{key:"once",value:function(e,t){this.ekoEmbed.once(e,t)}},{key:"prepareLoadingOptions",value:function(e){(e=C.a.all([A,e||{}])).events=h(e.events),e.excludePropagatedParams=h(e.excludePropagatedParams),Object.keys(R).forEach((function(t){e.events.includes(t)&&(e.params=Object.assign(e.params,R[t]))})),window.EkoAnalytics&&(window.EkoAnalytics("getUid")&&(e.params.eauid=window.EkoAnalytics("getUid")),window.EkoAnalytics("getSid")&&(e.params.easid=window.EkoAnalytics("getSid")));var t,n,r=b((t=window.location.search,n={},new URLSearchParams(t).forEach((function(e,t){n[t]=e})),n),e.excludePropagatedParams);return e.params=C.a.all([e.params,r]),e}}])&&j(t.prototype,n),r&&j(t,r),e}();t.default=F}]).default}))})),EkoPlayer=unwrapExports(EkoPlayer_min),EkoPlayer_min_1=EkoPlayer_min.EkoPlayer;function styleInject(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var css_248z=".eko_unsupportedMessage {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: black;\n color: white;\n text-align: center;\n font-size: 30px;\n user-select: none;\n}";function DefaultUnsupportedMessage(){return React__default.default.createElement("div",{className:"eko_unsupportedMessage"},"Video is not supported on current browser")}styleInject(css_248z);var css_248z$1='.eko_video_container {\n width: 100%;\n height: 100%;\n position: relative;\n}\n\n.eko_component_container.intrinsicSize {\n position: relative;\n}\n.eko_component_container.intrinsicSize:before {\n display: block;\n content: "";\n width: 100%;\n padding-top: 56.25%;\n}\n.eko_component_container.intrinsicSize > div {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.eko_component_container.expand {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n\n.eko_cover {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}';styleInject(css_248z$1);
*/}var b="function"==typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(o){if("object"==typeof o&&null!==o){var a=o.$$typeof;switch(a){case c:switch(o=o.type){case l:case m:case e:case g:case f:case p:return o;default:switch(o=o&&o.$$typeof){case k:case n:case t:case r:case h:return o;default:return a}}case d:return a}}}function A(e){return z(e)===m}var AsyncMode=l,ConcurrentMode=m,ContextConsumer=k,ContextProvider=h,Element=c,ForwardRef=n,Fragment=e,Lazy=t,Memo=r,Portal=d,Profiler=g,StrictMode=f,Suspense=p,isAsyncMode=function(e){return A(e)||z(e)===l},isConcurrentMode=A,isContextConsumer=function(e){return z(e)===k},isContextProvider=function(e){return z(e)===h},isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},isForwardRef=function(e){return z(e)===n},isFragment=function(t){return z(t)===e},isLazy=function(e){return z(e)===t},isMemo=function(e){return z(e)===r},isPortal=function(e){return z(e)===d},isProfiler=function(e){return z(e)===g},isStrictMode=function(e){return z(e)===f},isSuspense=function(e){return z(e)===p},isValidElementType=function(o){return"string"==typeof o||"function"==typeof o||o===e||o===m||o===g||o===f||o===p||o===q||"object"==typeof o&&null!==o&&(o.$$typeof===t||o.$$typeof===r||o.$$typeof===h||o.$$typeof===k||o.$$typeof===n||o.$$typeof===w||o.$$typeof===x||o.$$typeof===y||o.$$typeof===v)},typeOf=z,reactIs_production_min={AsyncMode:AsyncMode,ConcurrentMode:ConcurrentMode,ContextConsumer:ContextConsumer,ContextProvider:ContextProvider,Element:Element,ForwardRef:ForwardRef,Fragment:Fragment,Lazy:Lazy,Memo:Memo,Portal:Portal,Profiler:Profiler,StrictMode:StrictMode,Suspense:Suspense,isAsyncMode:isAsyncMode,isConcurrentMode:isConcurrentMode,isContextConsumer:isContextConsumer,isContextProvider:isContextProvider,isElement:isElement,isForwardRef:isForwardRef,isFragment:isFragment,isLazy:isLazy,isMemo:isMemo,isPortal:isPortal,isProfiler:isProfiler,isStrictMode:isStrictMode,isSuspense:isSuspense,isValidElementType:isValidElementType,typeOf:typeOf},reactIs_development=createCommonjsModule((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var y=e.type;switch(y){case u:case l:case o:case i:case a:case p:return y;default:var v=y&&y.$$typeof;switch(v){case c:case f:case m:case d:case s:return v;default:return t}}case r:return t}}}var $=u,w=l,S=c,E=s,x=n,I=f,k=o,P=m,T=d,O=r,A=i,C=a,j=p,R=!1;function M(e){return g(e)===l}t.AsyncMode=$,t.ConcurrentMode=w,t.ContextConsumer=S,t.ContextProvider=E,t.Element=x,t.ForwardRef=I,t.Fragment=k,t.Lazy=P,t.Memo=T,t.Portal=O,t.Profiler=A,t.StrictMode=C,t.Suspense=j,t.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||g(e)===u},t.isConcurrentMode=M,t.isContextConsumer=function(e){return g(e)===c},t.isContextProvider=function(e){return g(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return g(e)===f},t.isFragment=function(e){return g(e)===o},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===d},t.isPortal=function(e){return g(e)===r},t.isProfiler=function(e){return g(e)===i},t.isStrictMode=function(e){return g(e)===a},t.isSuspense=function(e){return g(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===i||e===a||e===p||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===d||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===h||e.$$typeof===_||e.$$typeof===v)},t.typeOf=g}()})),reactIs_development_1=reactIs_development.AsyncMode,reactIs_development_2=reactIs_development.ConcurrentMode,reactIs_development_3=reactIs_development.ContextConsumer,reactIs_development_4=reactIs_development.ContextProvider,reactIs_development_5=reactIs_development.Element,reactIs_development_6=reactIs_development.ForwardRef,reactIs_development_7=reactIs_development.Fragment,reactIs_development_8=reactIs_development.Lazy,reactIs_development_9=reactIs_development.Memo,reactIs_development_10=reactIs_development.Portal,reactIs_development_11=reactIs_development.Profiler,reactIs_development_12=reactIs_development.StrictMode,reactIs_development_13=reactIs_development.Suspense,reactIs_development_14=reactIs_development.isAsyncMode,reactIs_development_15=reactIs_development.isConcurrentMode,reactIs_development_16=reactIs_development.isContextConsumer,reactIs_development_17=reactIs_development.isContextProvider,reactIs_development_18=reactIs_development.isElement,reactIs_development_19=reactIs_development.isForwardRef,reactIs_development_20=reactIs_development.isFragment,reactIs_development_21=reactIs_development.isLazy,reactIs_development_22=reactIs_development.isMemo,reactIs_development_23=reactIs_development.isPortal,reactIs_development_24=reactIs_development.isProfiler,reactIs_development_25=reactIs_development.isStrictMode,reactIs_development_26=reactIs_development.isSuspense,reactIs_development_27=reactIs_development.isValidElementType,reactIs_development_28=reactIs_development.typeOf,reactIs=createCommonjsModule((function(e){"production"===process.env.NODE_ENV?e.exports=reactIs_production_min:e.exports=reactIs_development})),getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var objectAssign=shouldUseNative()?Object.assign:function(e,t){for(var n,r,o=toObject(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))hasOwnProperty.call(n,i)&&(o[i]=n[i]);if(getOwnPropertySymbols){r=getOwnPropertySymbols(n);for(var s=0;s<r.length;s++)propIsEnumerable.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o},ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret,printWarning=function(){};if("production"!==process.env.NODE_ENV){var ReactPropTypesSecret$1=ReactPropTypesSecret_1,loggedTypeFailures={},has=Function.call.bind(Object.prototype.hasOwnProperty);printWarning=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function checkPropTypes(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var a in e)if(has(e,a)){var i;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw s.name="Invariant Violation",s}i=e[a](t,a,r,n,null,ReactPropTypesSecret$1)}catch(e){i=e}if(!i||i instanceof Error||printWarning((r||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in loggedTypeFailures)){loggedTypeFailures[i.message]=!0;var c=o?o():"";printWarning("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}checkPropTypes.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(loggedTypeFailures={})};var checkPropTypes_1=checkPropTypes,has$1=Function.call.bind(Object.prototype.hasOwnProperty),printWarning$1=function(){};function emptyFunctionThatReturnsNull(){return null}"production"!==process.env.NODE_ENV&&(printWarning$1=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});var factoryWithTypeCheckers=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",o={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:s(emptyFunctionThatReturnsNull),arrayOf:function(e){return s((function(t,n,r,o,a){if("function"!=typeof e)return new i("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new i("Invalid "+o+" `"+a+"` of type `"+l(s)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<s.length;c++){var u=e(s,c,r,o,a+"["+c+"]",ReactPropTypesSecret_1);if(u instanceof Error)return u}return null}))},element:s((function(t,n,r,o,a){var s=t[n];return e(s)?null:new i("Invalid "+o+" `"+a+"` of type `"+l(s)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:s((function(e,t,n,r,o){var a=e[t];return reactIs.isValidElementType(a)?null:new i("Invalid "+r+" `"+o+"` of type `"+l(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,n,o,a,s){if(!(t[n]instanceof e)){var c=e.name||r;return new i("Invalid "+a+" `"+s+"` of type `"+(((u=t[n]).constructor&&u.constructor.name?u.constructor.name:r)+"` supplied to `")+o+"`, expected instance of `"+c+"`.")}var u;return null}))},node:s((function(e,t,n,r,o){return u(e[t])?null:new i("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,n,r,o,a){if("function"!=typeof e)return new i("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],c=l(s);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in s)if(has$1(s,u)){var f=e(s,u,r,o,a+"."+u,ReactPropTypesSecret_1);if(f instanceof Error)return f}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&printWarning$1(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),emptyFunctionThatReturnsNull;function t(t,n,r,o,s){for(var c=t[n],u=0;u<e.length;u++)if(a(c,e[u]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===f(t)?String(t):t}));return new i("Invalid "+o+" `"+s+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+l+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&printWarning$1("Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunctionThatReturnsNull;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return printWarning$1("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+t+"."),emptyFunctionThatReturnsNull}return s((function(t,n,r,o,a){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,o,a,ReactPropTypesSecret_1))return null;return new i("Invalid "+o+" `"+a+"` supplied to `"+r+"`.")}))},shape:function(e){return s((function(t,n,r,o,a){var s=t[n],c=l(s);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var f=e[u];if(f){var p=f(s,u,r,o,a+"."+u,ReactPropTypesSecret_1);if(p)return p}}return null}))},exact:function(e){return s((function(t,n,r,o,a){var s=t[n],c=l(s);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var u=objectAssign({},t[n],e);for(var f in u){var p=e[f];if(!p)return new i("Invalid "+o+" `"+a+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=p(s,f,r,o,a+"."+f,ReactPropTypesSecret_1);if(y)return y}return null}))}};function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function i(e){this.message=e,this.stack=""}function s(e){if("production"!==process.env.NODE_ENV)var n={},o=0;function a(a,s,c,u,l,f,p){if(u=u||r,f=f||c,p!==ReactPropTypesSecret_1){if(t){var y=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 y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var d=u+":"+c;!n[d]&&o<3&&(printWarning$1("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[d]=!0,o++)}}return null==s[c]?a?null===s[c]?new i("The "+l+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new i("The "+l+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,c,u,l,f)}var s=a.bind(null,!1);return s.isRequired=a.bind(null,!0),s}function c(e){return s((function(t,n,r,o,a,s){var c=t[n];return l(c)!==e?new i("Invalid "+o+" `"+a+"` of type `"+f(c)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!r)return!1;var o,a=r.call(t);if(r!==t.entries){for(;!(o=a.next()).done;)if(!u(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function l(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function f(e){if(null==e)return""+e;var t=l(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function p(e){var t=f(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return i.prototype=Error.prototype,o.checkPropTypes=checkPropTypes_1,o.resetWarningCache=checkPropTypes_1.resetWarningCache,o.PropTypes=o,o};function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function e(e,t,n,r,o,a){if(a!==ReactPropTypesSecret_1){var i=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 i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array: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:emptyFunctionWithReset,resetWarningCache:emptyFunction};return n.PropTypes=n,n},propTypes=createCommonjsModule((function(e){if("production"!==process.env.NODE_ENV){var t=reactIs;e.exports=factoryWithTypeCheckers(t.isElement,!0)}else e.exports=factoryWithThrowingShims()})),EkoPlayer_min=createCommonjsModule((function(module,exports){!function(e,t){module.exports=t()}(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){var r=Object.prototype.hasOwnProperty,o="~";function a(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,r||e,a),c=o?o+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function u(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(o=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,a=n.length,i=new Array(a);r<a;r++)i[r]=n[r].fn;return i},u.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,r,a,i){var s=o?o+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,a),!0;case 6:return l.fn.call(l.context,t,n,r,a,i),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,y=l.length;for(u=0;u<y;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,r);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},u.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,r){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return c(this,a),this;var i=this._events[a];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||c(this,a);else{for(var s=0,u=[],l=i.length;s<l;s++)(i[s].fn!==t||r&&!i[s].once||n&&i[s].context!==n)&&u.push(i[s]);u.length?this._events[a]=1===u.length?u[0]:u:c(this,a)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&c(this,t)):(this._events=new a,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=o,u.EventEmitter=u,e.exports=u},function(e,t,n){var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||i,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=a;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=a(e[t],n)})),s(t).forEach((function(o){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(c(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(o,n)(e[o],t[o],n):r[o]=a(t[o],n))})),r}(e,t,n):a(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var l=u;e.exports=l},function(module,exports,__webpack_require__){var arrayify=__webpack_require__(3);function evaluates(statement){try{return eval(statement),!0}catch(e){return!1}}exports.class=function(){return evaluates("class Something {}")},exports.arrowFunction=function(){return evaluates("var f = x => 1")},exports.let=function(){return evaluates("let a = 1")},exports.const=function(){return evaluates("const a = 1")},exports.newArrayFeatures=function(){return void 0!==Array.prototype.find&&void 0!==Array.prototype.findIndex&&void 0!==Array.from&&void 0!==Array.of&&void 0!==Array.prototype.entries&&void 0!==Array.prototype.keys&&void 0!==Array.prototype.copyWithin&&void 0!==Array.prototype.fill},exports.newObjectFeatures=function(){return void 0!==Object.assign&&void 0!==Object.setPrototypeOf&&void 0!==Object.getOwnPropertySymbols&&void 0!==Object.is},exports.collections=function(){return"undefined"!=typeof Map&&"undefined"!=typeof WeakMap&&"undefined"!=typeof Set&&"undefined"!=typeof WeakSet},exports.generators=function(){return evaluates("function* test() {}")},exports.promises=function(){return"undefined"!=typeof Promise},exports.templateStrings=function(){return evaluates("var a = `a`")},exports.symbols=function(){return"undefined"!=typeof Symbol&&"function"==typeof Symbol.for},exports.destructuring=function(){return evaluates("var { first: f, last: l } = { first: 'Jane', last: 'Doe' }")},exports.spread=function(){return evaluates("Math.max(...[ 5, 10 ])")},exports.defaultParamValues=function(){return evaluates("function test (one = 1) {}")},exports.asyncFunctions=function(){return evaluates("async function test () {}")},exports.all=function(){return arrayify(arguments).every((function(e){var t=exports[e];if(t&&"function"==typeof t)return t();throw new Error("no detection available by this name: "+e)}))}},function(e,t,n){var r=n(4);e.exports=function(e){return void 0===e?[]:r.isArrayLike(e)?Array.prototype.slice.call(e):Array.isArray(e)?e:[e]}},function(e,t,n){function r(e){return"object"==typeof e&&null!==e}function o(e){return void 0!==e}function a(e){return"function"==typeof e}t.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},t.isString=function(e){return"string"==typeof e},t.isBoolean=function(e){return"boolean"==typeof e},t.isPlainObject=function(e){return null!==e&&"object"==typeof e&&e.constructor===Object},t.isArrayLike=function(e){return r(e)&&"number"==typeof e.length},t.isObject=r,t.isDefined=o,t.isFunction=a,t.isClass=function(e){return!!a(e)&&/^class /.test(Function.prototype.toString.call(e))},t.isPrimitive=function(e){if(null===e)return!0;switch(typeof e){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}},t.isPromise=function(e){if(e){var t=o(Promise)&&e instanceof Promise,n=e.then&&"function"==typeof e.then;return!(!t&&!n)}return!1},t.isIterable=function(e){return!(null===e||!o(e))&&"function"==typeof e[Symbol.iterator]}},function(e,t,n){n.r(t);var r=n(0),o=n.n(r),a=function(e){return/https?:\/\/(.*?\.)?eko.com/.test(e)};function i(e){var t=new URLSearchParams;return Object.keys(e).forEach((function(n){t.set(n,e[n])})),t.toString()}function s(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 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 u(e){return(u="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)}var l={"1.0":function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.iframe=t,this.eventEmitter=new o.a,this.addIframeListeners(),{load:this.load.bind(this),invoke:this.invoke.bind(this),on:this.on.bind(this),off:this.off.bind(this),once:this.once.bind(this)}}var t;return(t=[{key:"load",value:function(e,t){var n=t.params||{};n.embedapi="1.0",n.embedid=this.iframe.id,n.events=t.events.join(","),t.cover&&!n.hasOwnProperty("cover")&&(n.cover=!1);var r=t.env?"".concat(t.env,"."):"",o=i(n);this.iframe.setAttribute("src","https://".concat(r,"eko.com/v/").concat(e,"/embed?").concat(o))}},{key:"invoke",value:function(e,t){if("string"!=typeof e)throw new Error("Expected required argument method to have type string");var n={type:"eko.".concat(e),args:t};this.iframe.contentWindow.postMessage(n,"*")}},{key:"on",value:function(e,t){this.eventEmitter.on(e,t)}},{key:"off",value:function(e,t){this.eventEmitter.off(e,t)}},{key:"once",value:function(e,t){this.eventEmitter.once(e,t)}},{key:"addIframeListeners",value:function(){window.addEventListener("message",this.onEkoEventFired.bind(this))}},{key:"onEkoEventFired",value:function(e){if(a(e.origin)){var t=e.data;t.type&&t.embedId===this.iframe.id&&this.trigger.apply(this,[t.type.replace(/^eko./,"")].concat(function(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.args)))}}},{key:"trigger",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).emit.apply(t,[e].concat(r))}}])&&function(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)}}(e.prototype,t),e}(),"2.0":function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.iframe=t,this.eventEmitter=new o.a,this.addIframeListeners(),{load:this.load.bind(this),invoke:this.invoke.bind(this),on:this.on.bind(this),off:this.off.bind(this),once:this.once.bind(this)}}var t;return(t=[{key:"load",value:function(e,t){var n=this,r=t.params||{};r.id=e,r.embedapi="2.0",r.embedid=this.iframe.id,r.events=t.events.join(",");var o=t.clientSideParams;o&&"object"===u(o)&&(r.csp=!0,this.once("loader.csp.ready",(function(){n.iframe.contentWindow.postMessage({target:"loader",csp:o},"*")}))),this.iframe.setAttribute("src","https://".concat(t.env||"","embed.eko.com/?").concat(i(r)))}},{key:"invoke",value:function(e,t){if("string"!=typeof e)throw new Error("Expected required argument method to have type string");var n={target:"embedapi",playerProperty:"".concat(e),args:t};this.iframe.contentWindow.postMessage(n,"*")}},{key:"on",value:function(e,t){this.eventEmitter.on(e,t)}},{key:"off",value:function(e,t){this.eventEmitter.off(e,t)}},{key:"once",value:function(e,t){this.eventEmitter.once(e,t)}},{key:"addIframeListeners",value:function(){window.addEventListener("message",this.onEkoEventFired.bind(this))}},{key:"onEkoEventFired",value:function(e){var t;if(a(e.origin)){var n=e.data;n.event&&n.embedid===this.iframe.id&&"2.0"===n.embedapi&&(t=this.eventEmitter).emit.apply(t,[n.event].concat(function(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){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n.args)))}}}])&&function(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)}}(e.prototype,t),e}()},f=function(e,t){var n=l[t];if(!n)throw new Error("Invalid Embed API version");return new n(e)};var p=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cover=t,{setState:this.setState.bind(this)}}var t;return(t=[{key:"setState",value:function(e,t){1===arguments.length?this.cover(e):arguments.length>1&&this.cover(e,t)}}])&&function(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)}}(e.prototype,t),e}(),y=n(2),d=n.n(y);function m(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 v(e){return(v="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)}var b=function(e,t){return t.reduce((function(t,n){return n instanceof RegExp?Object.keys(e).forEach((function(e){n.test(e)&&delete t[e]})):e&&e.hasOwnProperty(n)&&delete t[n],t}),Object.assign({},e))},h=function(e){if(!Array.isArray(e))throw new TypeError("[uniq] Expected array, instead got ".concat(v(e)));return function(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(new Set(e))},_=function(e){var t=null;if(!e)throw new Error("Expecting an element (or selector) as first argument.");if("string"==typeof e){try{t=document.querySelector(e)}catch(e){}if(!t)throw new Error("Could not successfully resolve selector: ".concat(e))}else t=e;if(!t||"function"!=typeof t.appendChild)throw new Error("Could not resolve DOM element.");return t},g=function(){return d.a.all("class","arrowFunction","let","const","newArrayFeatures","newObjectFeatures","collections","promises","templateStrings","destructuring","spread","defaultParamValues")},$=function(){return!(!window.AudioContext&&!window.webkitAudioContext)},w=function(e,t){Object.keys(t).forEach((function(n){var r=t[n];if("string"!=typeof r)throw new Error("".concat(e," attribute: ").concat(n,",\n Received type ").concat(v(r),". Expected string."));e.setAttribute(n,r)}))};var S={loading:"eko-player-loading",loaded:"eko-player-loaded",started:"eko-player-started"},E=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cover=_(t),{setState:this.setState.bind(this)}}var t;return(t=[{key:"setState",value:function(e){var t=this;Object.values(S).forEach((function(e){t.cover.classList.remove(e)})),this.cover.classList.add(S[e])}}])&&function(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)}}(e.prototype,t),e}();var x=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"setState",value:function(){}}])&&function(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)}}(e.prototype,t),e}();function I(e){return(I="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)}var k=function(e){switch(I(e)){case"function":return new p(e);case"object":case"string":return new E(e);default:return new x}},P=0,T=function(){var e=document.createElement("iframe");return e.setAttribute("id","ekoembed-".concat(++P)),e},O=n(1),A=n.n(O);function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j={env:"",iframeAttributes:{title:"Eko Player",style:"position: absolute; width: 100%; height: 100%; border: 0;",allowfullscreen:"",allow:"autoplay *; fullscreen *",importance:"high",loading:"eager"},params:{autoplay:!0},excludePropagatedParams:[],events:["canplay","playing"]},R={"urls.intent":{urlsmode:"proxy"},"share.intent":{sharemode:"proxy"}},M=null,F=function(){function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("Constructor must get an element (or selector) as first argument.");if(!e.isSupported())throw new Error("Cannot initialize EkoPlayer instance as Eko videos are not supported on current environment.");return this.iframe=T(),this.ekoEmbed=f(this.iframe,n||"1.0"),_(t).appendChild(this.iframe),{play:this.play.bind(this),pause:this.pause.bind(this),load:this.load.bind(this),invoke:this.invoke.bind(this),on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this)}}var t,n,r;return t=e,r=[{key:"isSupported",value:function(){return null===M&&(M="undefined"!=typeof window&&g()&&$()),M}}],(n=[{key:"load",value:function(e,t){if(!e||"string"!=typeof e)throw new Error("Invalid id arg passed to load() method, expected a non-empty string");t=this.prepareLoadingOptions(t);var n=k(t.cover);n.setState("loading"),this.once("canplay",(function(e,t){n.setState("loaded",{buffered:e,isAutoplayExpected:t})})),this.once("playing",(function(){n.setState("started")})),w(this.iframe,t.iframeAttributes),this.ekoEmbed.load(e,t)}},{key:"play",value:function(){this.invoke("play",[])}},{key:"pause",value:function(){this.invoke("pause",[])}},{key:"invoke",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.ekoEmbed.invoke(e,n)}},{key:"on",value:function(e,t){this.ekoEmbed.on(e,t)}},{key:"off",value:function(e,t){this.ekoEmbed.off(e,t)}},{key:"once",value:function(e,t){this.ekoEmbed.once(e,t)}},{key:"prepareLoadingOptions",value:function(e){(e=A.a.all([j,e||{}])).events=h(e.events),e.excludePropagatedParams=h(e.excludePropagatedParams),Object.keys(R).forEach((function(t){e.events.includes(t)&&(e.params=Object.assign(e.params,R[t]))})),window.EkoAnalytics&&(window.EkoAnalytics("getUid")&&(e.params.eauid=window.EkoAnalytics("getUid")),window.EkoAnalytics("getSid")&&(e.params.easid=window.EkoAnalytics("getSid")));var t,n,r=b((t=window.location.search,n={},new URLSearchParams(t).forEach((function(e,t){n[t]=e})),n),e.excludePropagatedParams);return e.params=A.a.all([e.params,r]),e}}])&&C(t.prototype,n),r&&C(t,r),e}();t.default=F}]).default}))})),EkoPlayer=unwrapExports(EkoPlayer_min),EkoPlayer_min_1=EkoPlayer_min.EkoPlayer;function styleInject(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var css_248z=".eko_unsupportedMessage {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: black;\n color: white;\n text-align: center;\n font-size: 30px;\n user-select: none;\n}";function DefaultUnsupportedMessage(){return React__default.default.createElement("div",{className:"eko_unsupportedMessage"},"Video is not supported on current browser")}styleInject(css_248z);var css_248z$1='.eko_video_container {\n width: 100%;\n height: 100%;\n position: relative;\n}\n\n.eko_component_container.intrinsicSize {\n position: relative;\n}\n.eko_component_container.intrinsicSize:before {\n display: block;\n content: "";\n width: 100%;\n padding-top: 56.25%;\n}\n.eko_component_container.intrinsicSize > div {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.eko_component_container.expand {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n\n.eko_cover {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}';styleInject(css_248z$1);
/** @license React v17.0.1

@@ -19,2 +19,2 @@ * react-is.production.min.js

*/
var b$1=60103,c$1=60106,d$1=60107,e$1=60108,f$1=60114,g$1=60109,h$1=60110,k$1=60112,l$1=60113,m$1=60120,n$1=60115,p$1=60116,q$1=60121,r$1=60122,u=60117,v$1=60129,w$1=60131;if("function"==typeof Symbol&&Symbol.for){var x$1=Symbol.for;b$1=x$1("react.element"),c$1=x$1("react.portal"),d$1=x$1("react.fragment"),e$1=x$1("react.strict_mode"),f$1=x$1("react.profiler"),g$1=x$1("react.provider"),h$1=x$1("react.context"),k$1=x$1("react.forward_ref"),l$1=x$1("react.suspense"),m$1=x$1("react.suspense_list"),n$1=x$1("react.memo"),p$1=x$1("react.lazy"),q$1=x$1("react.block"),r$1=x$1("react.server.block"),u=x$1("react.fundamental"),v$1=x$1("react.debug_trace_mode"),w$1=x$1("react.legacy_hidden")}function y$1(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case b$1:switch(e=e.type){case d$1:case f$1:case e$1:case l$1:case m$1:return e;default:switch(e=e&&e.$$typeof){case h$1:case k$1:case p$1:case n$1:case g$1:return e;default:return t}}case c$1:return t}}}var z$1=g$1,A$1=b$1,B=k$1,C=d$1,D=p$1,E=n$1,F=c$1,G=f$1,H=e$1,I=l$1,ContextConsumer$1=h$1,ContextProvider$1=z$1,Element$1=A$1,ForwardRef$1=B,Fragment$1=C,Lazy$1=D,Memo$1=E,Portal$1=F,Profiler$1=G,StrictMode$1=H,Suspense$1=I,isAsyncMode$1=function(){return!1},isConcurrentMode$1=function(){return!1},isContextConsumer$1=function(e){return y$1(e)===h$1},isContextProvider$1=function(e){return y$1(e)===g$1},isElement$1=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b$1},isForwardRef$1=function(e){return y$1(e)===k$1},isFragment$1=function(e){return y$1(e)===d$1},isLazy$1=function(e){return y$1(e)===p$1},isMemo$1=function(e){return y$1(e)===n$1},isPortal$1=function(e){return y$1(e)===c$1},isProfiler$1=function(e){return y$1(e)===f$1},isStrictMode$1=function(e){return y$1(e)===e$1},isSuspense$1=function(e){return y$1(e)===l$1},isValidElementType$1=function(e){return"string"==typeof e||"function"==typeof e||e===d$1||e===f$1||e===v$1||e===e$1||e===l$1||e===m$1||e===w$1||"object"==typeof e&&null!==e&&(e.$$typeof===p$1||e.$$typeof===n$1||e.$$typeof===g$1||e.$$typeof===h$1||e.$$typeof===k$1||e.$$typeof===u||e.$$typeof===q$1||e[0]===r$1)},typeOf$1=y$1,reactIs_production_min$1={ContextConsumer:ContextConsumer$1,ContextProvider:ContextProvider$1,Element:Element$1,ForwardRef:ForwardRef$1,Fragment:Fragment$1,Lazy:Lazy$1,Memo:Memo$1,Portal:Portal$1,Profiler:Profiler$1,StrictMode:StrictMode$1,Suspense:Suspense$1,isAsyncMode:isAsyncMode$1,isConcurrentMode:isConcurrentMode$1,isContextConsumer:isContextConsumer$1,isContextProvider:isContextProvider$1,isElement:isElement$1,isForwardRef:isForwardRef$1,isFragment:isFragment$1,isLazy:isLazy$1,isMemo:isMemo$1,isPortal:isPortal$1,isProfiler:isProfiler$1,isStrictMode:isStrictMode$1,isSuspense:isSuspense$1,isValidElementType:isValidElementType$1,typeOf:typeOf$1},reactIs_development$1=createCommonjsModule((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e=60103,n=60106,r=60107,o=60108,a=60114,i=60109,s=60110,c=60112,u=60113,l=60120,f=60115,p=60116,d=60121,y=60122,m=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;e=h("react.element"),n=h("react.portal"),r=h("react.fragment"),o=h("react.strict_mode"),a=h("react.profiler"),i=h("react.provider"),s=h("react.context"),c=h("react.forward_ref"),u=h("react.suspense"),l=h("react.suspense_list"),f=h("react.memo"),p=h("react.lazy"),d=h("react.block"),y=h("react.server.block"),m=h("react.fundamental"),h("react.scope"),h("react.opaque.id"),v=h("react.debug_trace_mode"),h("react.offscreen"),b=h("react.legacy_hidden")}function _(t){if("object"==typeof t&&null!==t){var d=t.$$typeof;switch(d){case e:var y=t.type;switch(y){case r:case a:case o:case u:case l:return y;default:var m=y&&y.$$typeof;switch(m){case s:case c:case p:case f:case i:return m;default:return d}}case n:return d}}}var $=s,g=i,w=e,S=c,E=r,I=p,x=f,k=n,P=a,O=o,T=u,C=!1,j=!1;t.ContextConsumer=$,t.ContextProvider=g,t.Element=w,t.ForwardRef=S,t.Fragment=E,t.Lazy=I,t.Memo=x,t.Portal=k,t.Profiler=P,t.StrictMode=O,t.Suspense=T,t.isAsyncMode=function(e){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},t.isConcurrentMode=function(e){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},t.isContextConsumer=function(e){return _(e)===s},t.isContextProvider=function(e){return _(e)===i},t.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},t.isForwardRef=function(e){return _(e)===c},t.isFragment=function(e){return _(e)===r},t.isLazy=function(e){return _(e)===p},t.isMemo=function(e){return _(e)===f},t.isPortal=function(e){return _(e)===n},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===u},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||(e===r||e===a||e===v||e===o||e===u||e===l||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===d||e[0]===y))},t.typeOf=_}()})),reactIs_development_1$1=reactIs_development$1.ContextConsumer,reactIs_development_2$1=reactIs_development$1.ContextProvider,reactIs_development_3$1=reactIs_development$1.Element,reactIs_development_4$1=reactIs_development$1.ForwardRef,reactIs_development_5$1=reactIs_development$1.Fragment,reactIs_development_6$1=reactIs_development$1.Lazy,reactIs_development_7$1=reactIs_development$1.Memo,reactIs_development_8$1=reactIs_development$1.Portal,reactIs_development_9$1=reactIs_development$1.Profiler,reactIs_development_10$1=reactIs_development$1.StrictMode,reactIs_development_11$1=reactIs_development$1.Suspense,reactIs_development_12$1=reactIs_development$1.isAsyncMode,reactIs_development_13$1=reactIs_development$1.isConcurrentMode,reactIs_development_14$1=reactIs_development$1.isContextConsumer,reactIs_development_15$1=reactIs_development$1.isContextProvider,reactIs_development_16$1=reactIs_development$1.isElement,reactIs_development_17$1=reactIs_development$1.isForwardRef,reactIs_development_18$1=reactIs_development$1.isFragment,reactIs_development_19$1=reactIs_development$1.isLazy,reactIs_development_20$1=reactIs_development$1.isMemo,reactIs_development_21$1=reactIs_development$1.isPortal,reactIs_development_22$1=reactIs_development$1.isProfiler,reactIs_development_23$1=reactIs_development$1.isStrictMode,reactIs_development_24$1=reactIs_development$1.isSuspense,reactIs_development_25$1=reactIs_development$1.isValidElementType,reactIs_development_26$1=reactIs_development$1.typeOf,reactIs$1=createCommonjsModule((function(e){"production"===process.env.NODE_ENV?e.exports=reactIs_production_min$1:e.exports=reactIs_development$1})),reactIs_1=reactIs$1.isValidElementType,reactIs_2=reactIs$1.isElement;function getRenderable(e,t){return reactIs_1(e)?React__default.default.createElement(e,t):reactIs_2(e)?e:null}var css_248z$2=".eko_playCover {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n background: black;\n}\n\n.eko_playCover_playButton {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n margin: auto;\n font-size: 2em;\n width: 6vw;\n min-width: 140px;\n pointer-events: none;\n}";function DefaultPlayCover(){return React__default.default.createElement("div",{className:"eko_playCover"},React__default.default.createElement("div",{className:"eko_playCover_playButton"},React__default.default.createElement("svg",{viewBox:"0 0 100 100"},React__default.default.createElement("circle",{cx:"50",cy:"50",r:"46",stroke:"#7420b9",strokeWidth:"3"}),React__default.default.createElement("circle",{fill:"#111111",cx:"50",cy:"50",r:"46"}),React__default.default.createElement("path",{fill:"#7420b9",d:"M70.8,49.7c0,1-1,1.8-1,1.8L41.6,70.1c-2,1.4-3.7,0.4-3.7-2.3V31.6c0-2.7,1.7-3.8,3.7-2.4l28.1,18.6C69.7,47.9,70.8,48.6,70.8,49.7z"}))))}function useCovers(e){var t=e.loadingCover,n=e.playCover,r=void 0===n?DefaultPlayCover:n,o=e.waitForAutoplayTimeout,a=void 0===o?1.5:o,i=e.playerLoadingState,s=_slicedToArray(React.useState(!0),2),c=s[0],u=s[1],l=_slicedToArray(React.useState(!1),2),f=l[0],p=l[1],d=React.useRef({transitionFunction:null,isRunning:!1,hasEnded:!1}),y=_slicedToArray(React.useState(!1),2),m=y[0],v=y[1],b=React.useCallback((function(){var e=d.current;if(e.transitionFunction){if(!e.isRunning){e.isRunning=!0,e.transitionFunction((function(){e.isRunning=!1,e.hasEnded=!0,u(!1)}))}}else u(!1)}));React.useEffect((function(){if("loading"===i.state)u(!0),p(!1);else if("loaded"===i.state){!(!i.params||!i.params.isAutoplayExpected)?setTimeout((function(){v(!0)}),1e3*a):(b(),p(!0))}else"started"===i.state&&(b(),p(!1))}),[i]),React.useEffect((function(){m&&(v(!1),"started"!==i.state&&(b(),p(!0)))}),[m]);var h=f&&React__default.default.createElement("div",{className:"eko_cover"},getRenderable(r)),_=t&&c&&React__default.default.createElement("div",{className:"eko_cover"},getRenderable(t,{registerTransitionOut:function(e){d.current.isRunning||(d.current.transitionFunction=e)}}));return React__default.default.createElement(React__default.default.Fragment,null,h,_)}function EkoVideo(e){var t=e.id,n=e.embedAPI,r=void 0===n?"1.0":n,o=e.env,a=e.clientSideParams,i=e.params,s=void 0===i?{}:i,c=e.excludePropagatedParams,u=e.events,l=e.expandToFillContainer,f=e.loadingCover,p=e.playCover,d=e.unsupportedCover,y=void 0===d?DefaultUnsupportedMessage:d,m=e.waitForAutoplayTimeout,v=e.onPlayerInit,b=React.useRef(),h=_slicedToArray(React.useState(!0),2),_=h[0],$=h[1],g=_slicedToArray(React.useState({state:null,params:{}}),2),w=g[0],S=g[1],E=useCovers({loadingCover:f,playCover:p,playerLoadingState:w,waitForAutoplayTimeout:m}),I=React.useRef(null),x=function(e,t){S({state:e,params:t})};if(React.useEffect((function(){EkoPlayer.isSupported()?($(!0),b.current=new EkoPlayer(I.current,r),v&&v(b.current)):$(!1)}),[]),React.useEffect((function(){if(b.current){var e=u||[],n={};return"object"!==_typeof(u)||Array.isArray(u)||(Object.keys(u).forEach((function(e){var t=u[e].bind(b.current);n[e]=n[e]||[],n[e].push(t),b.current.on(e,t)})),e=Object.keys(u)),S({state:"loading"}),b.current.load(t,{cover:f?x:void 0,clientSideParams:a,env:o,params:s,events:e,excludePropagatedParams:c||[]}),function(){"object"!==_typeof(u)||Array.isArray(u)||Object.keys(n).forEach((function(e){n[e].forEach((function(t){return b.current.off(e,t)}))}))}}}),[b.current,t]),!1===_)return getRenderable(y);var k=["eko_component_container"];return k.push(l?"expand":"intrinsicSize"),React__default.default.createElement("div",{className:k.join(" ")},React__default.default.createElement("div",{className:"eko_video_container",ref:I}),E)}styleInject(css_248z$2),EkoVideo.propTypes={id:propTypes.string.isRequired,embedAPI:propTypes.string,env:propTypes.string,clientSideParams:propTypes.object,params:propTypes.objectOf(propTypes.oneOfType([propTypes.string,propTypes.bool,propTypes.number])),excludePropagatedParams:propTypes.arrayOf(propTypes.oneOfType([propTypes.string,propTypes.instanceOf(RegExp)])),events:propTypes.oneOfType([propTypes.arrayOf(propTypes.string),propTypes.object]),expandToFillContainer:propTypes.bool,loadingCover:propTypes.oneOfType([propTypes.elementType,propTypes.element]),playCover:propTypes.oneOfType([propTypes.elementType,propTypes.element]),unsupportedCover:propTypes.oneOfType([propTypes.elementType,propTypes.element]),waitForAutoplayTimeout:propTypes.number,onPlayerInit:propTypes.func},exports.EkoVideo=EkoVideo;
var b$1=60103,c$1=60106,d$1=60107,e$1=60108,f$1=60114,g$1=60109,h$1=60110,k$1=60112,l$1=60113,m$1=60120,n$1=60115,p$1=60116,q$1=60121,r$1=60122,u=60117,v$1=60129,w$1=60131;if("function"==typeof Symbol&&Symbol.for){var x$1=Symbol.for;b$1=x$1("react.element"),c$1=x$1("react.portal"),d$1=x$1("react.fragment"),e$1=x$1("react.strict_mode"),f$1=x$1("react.profiler"),g$1=x$1("react.provider"),h$1=x$1("react.context"),k$1=x$1("react.forward_ref"),l$1=x$1("react.suspense"),m$1=x$1("react.suspense_list"),n$1=x$1("react.memo"),p$1=x$1("react.lazy"),q$1=x$1("react.block"),r$1=x$1("react.server.block"),u=x$1("react.fundamental"),v$1=x$1("react.debug_trace_mode"),w$1=x$1("react.legacy_hidden")}function y$1(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case b$1:switch(e=e.type){case d$1:case f$1:case e$1:case l$1:case m$1:return e;default:switch(e=e&&e.$$typeof){case h$1:case k$1:case p$1:case n$1:case g$1:return e;default:return t}}case c$1:return t}}}var z$1=g$1,A$1=b$1,B=k$1,C=d$1,D=p$1,E=n$1,F=c$1,G=f$1,H=e$1,I=l$1,ContextConsumer$1=h$1,ContextProvider$1=z$1,Element$1=A$1,ForwardRef$1=B,Fragment$1=C,Lazy$1=D,Memo$1=E,Portal$1=F,Profiler$1=G,StrictMode$1=H,Suspense$1=I,isAsyncMode$1=function(){return!1},isConcurrentMode$1=function(){return!1},isContextConsumer$1=function(e){return y$1(e)===h$1},isContextProvider$1=function(e){return y$1(e)===g$1},isElement$1=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b$1},isForwardRef$1=function(e){return y$1(e)===k$1},isFragment$1=function(e){return y$1(e)===d$1},isLazy$1=function(e){return y$1(e)===p$1},isMemo$1=function(e){return y$1(e)===n$1},isPortal$1=function(e){return y$1(e)===c$1},isProfiler$1=function(e){return y$1(e)===f$1},isStrictMode$1=function(e){return y$1(e)===e$1},isSuspense$1=function(e){return y$1(e)===l$1},isValidElementType$1=function(e){return"string"==typeof e||"function"==typeof e||e===d$1||e===f$1||e===v$1||e===e$1||e===l$1||e===m$1||e===w$1||"object"==typeof e&&null!==e&&(e.$$typeof===p$1||e.$$typeof===n$1||e.$$typeof===g$1||e.$$typeof===h$1||e.$$typeof===k$1||e.$$typeof===u||e.$$typeof===q$1||e[0]===r$1)},typeOf$1=y$1,reactIs_production_min$1={ContextConsumer:ContextConsumer$1,ContextProvider:ContextProvider$1,Element:Element$1,ForwardRef:ForwardRef$1,Fragment:Fragment$1,Lazy:Lazy$1,Memo:Memo$1,Portal:Portal$1,Profiler:Profiler$1,StrictMode:StrictMode$1,Suspense:Suspense$1,isAsyncMode:isAsyncMode$1,isConcurrentMode:isConcurrentMode$1,isContextConsumer:isContextConsumer$1,isContextProvider:isContextProvider$1,isElement:isElement$1,isForwardRef:isForwardRef$1,isFragment:isFragment$1,isLazy:isLazy$1,isMemo:isMemo$1,isPortal:isPortal$1,isProfiler:isProfiler$1,isStrictMode:isStrictMode$1,isSuspense:isSuspense$1,isValidElementType:isValidElementType$1,typeOf:typeOf$1},reactIs_development$1=createCommonjsModule((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e=60103,n=60106,r=60107,o=60108,a=60114,i=60109,s=60110,c=60112,u=60113,l=60120,f=60115,p=60116,y=60121,d=60122,m=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;e=h("react.element"),n=h("react.portal"),r=h("react.fragment"),o=h("react.strict_mode"),a=h("react.profiler"),i=h("react.provider"),s=h("react.context"),c=h("react.forward_ref"),u=h("react.suspense"),l=h("react.suspense_list"),f=h("react.memo"),p=h("react.lazy"),y=h("react.block"),d=h("react.server.block"),m=h("react.fundamental"),h("react.scope"),h("react.opaque.id"),v=h("react.debug_trace_mode"),h("react.offscreen"),b=h("react.legacy_hidden")}function _(t){if("object"==typeof t&&null!==t){var y=t.$$typeof;switch(y){case e:var d=t.type;switch(d){case r:case a:case o:case u:case l:return d;default:var m=d&&d.$$typeof;switch(m){case s:case c:case p:case f:case i:return m;default:return y}}case n:return y}}}var g=s,$=i,w=e,S=c,E=r,x=p,I=f,k=n,P=a,T=o,O=u,A=!1,C=!1;t.ContextConsumer=g,t.ContextProvider=$,t.Element=w,t.ForwardRef=S,t.Fragment=E,t.Lazy=x,t.Memo=I,t.Portal=k,t.Profiler=P,t.StrictMode=T,t.Suspense=O,t.isAsyncMode=function(e){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},t.isConcurrentMode=function(e){return C||(C=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},t.isContextConsumer=function(e){return _(e)===s},t.isContextProvider=function(e){return _(e)===i},t.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},t.isForwardRef=function(e){return _(e)===c},t.isFragment=function(e){return _(e)===r},t.isLazy=function(e){return _(e)===p},t.isMemo=function(e){return _(e)===f},t.isPortal=function(e){return _(e)===n},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===u},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||(e===r||e===a||e===v||e===o||e===u||e===l||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===y||e[0]===d))},t.typeOf=_}()})),reactIs_development_1$1=reactIs_development$1.ContextConsumer,reactIs_development_2$1=reactIs_development$1.ContextProvider,reactIs_development_3$1=reactIs_development$1.Element,reactIs_development_4$1=reactIs_development$1.ForwardRef,reactIs_development_5$1=reactIs_development$1.Fragment,reactIs_development_6$1=reactIs_development$1.Lazy,reactIs_development_7$1=reactIs_development$1.Memo,reactIs_development_8$1=reactIs_development$1.Portal,reactIs_development_9$1=reactIs_development$1.Profiler,reactIs_development_10$1=reactIs_development$1.StrictMode,reactIs_development_11$1=reactIs_development$1.Suspense,reactIs_development_12$1=reactIs_development$1.isAsyncMode,reactIs_development_13$1=reactIs_development$1.isConcurrentMode,reactIs_development_14$1=reactIs_development$1.isContextConsumer,reactIs_development_15$1=reactIs_development$1.isContextProvider,reactIs_development_16$1=reactIs_development$1.isElement,reactIs_development_17$1=reactIs_development$1.isForwardRef,reactIs_development_18$1=reactIs_development$1.isFragment,reactIs_development_19$1=reactIs_development$1.isLazy,reactIs_development_20$1=reactIs_development$1.isMemo,reactIs_development_21$1=reactIs_development$1.isPortal,reactIs_development_22$1=reactIs_development$1.isProfiler,reactIs_development_23$1=reactIs_development$1.isStrictMode,reactIs_development_24$1=reactIs_development$1.isSuspense,reactIs_development_25$1=reactIs_development$1.isValidElementType,reactIs_development_26$1=reactIs_development$1.typeOf,reactIs$1=createCommonjsModule((function(e){"production"===process.env.NODE_ENV?e.exports=reactIs_production_min$1:e.exports=reactIs_development$1})),reactIs_1=reactIs$1.isValidElementType,reactIs_2=reactIs$1.isElement;function getRenderable(e,t){return reactIs_1(e)?React__default.default.createElement(e,t):reactIs_2(e)?e:null}var css_248z$2=".eko_playCover {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n background: black;\n}\n\n.eko_playCover_playButton {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n margin: auto;\n font-size: 2em;\n width: 6vw;\n min-width: 140px;\n pointer-events: none;\n}";function DefaultPlayCover(){return React__default.default.createElement("div",{className:"eko_playCover"},React__default.default.createElement("div",{className:"eko_playCover_playButton"},React__default.default.createElement("svg",{viewBox:"0 0 100 100"},React__default.default.createElement("circle",{cx:"50",cy:"50",r:"46",stroke:"#7420b9",strokeWidth:"3"}),React__default.default.createElement("circle",{fill:"#111111",cx:"50",cy:"50",r:"46"}),React__default.default.createElement("path",{fill:"#7420b9",d:"M70.8,49.7c0,1-1,1.8-1,1.8L41.6,70.1c-2,1.4-3.7,0.4-3.7-2.3V31.6c0-2.7,1.7-3.8,3.7-2.4l28.1,18.6C69.7,47.9,70.8,48.6,70.8,49.7z"}))))}function useCovers(e){var t=e.loadingCover,n=e.playCover,r=void 0===n?DefaultPlayCover:n,o=e.waitForAutoplayTimeout,a=void 0===o?1.5:o,i=e.playerLoadingState,s=_slicedToArray(React.useState(!0),2),c=s[0],u=s[1],l=_slicedToArray(React.useState(!1),2),f=l[0],p=l[1],y=React.useRef({transitionFunction:null,isRunning:!1,hasEnded:!1}),d=_slicedToArray(React.useState(!1),2),m=d[0],v=d[1],b=React.useCallback((function(){var e=y.current;if(e.transitionFunction){if(!e.isRunning){e.isRunning=!0,e.transitionFunction((function(){e.isRunning=!1,e.hasEnded=!0,u(!1)}))}}else u(!1)}));React.useEffect((function(){if("loading"===i.state)u(!0),p(!1);else if("loaded"===i.state){!(!i.params||!i.params.isAutoplayExpected)?setTimeout((function(){v(!0)}),1e3*a):(b(),p(!0))}else"started"===i.state&&(b(),p(!1))}),[i]),React.useEffect((function(){m&&(v(!1),"started"!==i.state&&(b(),p(!0)))}),[m]);var h=f&&React__default.default.createElement("div",{className:"eko_cover"},getRenderable(r)),_=t&&c&&React__default.default.createElement("div",{className:"eko_cover"},getRenderable(t,{registerTransitionOut:function(e){y.current.isRunning||(y.current.transitionFunction=e)}}));return React__default.default.createElement(React__default.default.Fragment,null,h,_)}styleInject(css_248z$2);var EkoPlayerContext=React.createContext();function EkoPlayerProvider(e){var t=_slicedToArray(React.useState({}),2),n=t[0],r=t[1];return React__default.default.createElement(EkoPlayerContext.Provider,{value:{playerState:n,setPlayerState:r}},e.children)}var DEFAULT_EVENTS=["subtitles.visibilitychange","subtitles.substart","subtitles.subend","subtitles.effectivelanguagechange","plugininitsubtitles"];function EkoVideo(e){var t=e.id,n=e.embedAPI,r=void 0===n?"1.0":n,o=e.env,a=e.clientSideParams,i=e.params,s=void 0===i?{}:i,c=e.excludePropagatedParams,u=e.events,l=e.expandToFillContainer,f=e.loadingCover,p=e.playCover,y=e.unsupportedCover,d=void 0===y?DefaultUnsupportedMessage:y,m=e.waitForAutoplayTimeout,v=e.onPlayerInit,b=React.useRef(),h=_slicedToArray(React.useState(!0),2),_=h[0],g=h[1],$=_slicedToArray(React.useState({state:null,params:{}}),2),w=$[0],S=$[1],E=useCovers({loadingCover:f,playCover:p,playerLoadingState:w,waitForAutoplayTimeout:m}),x=React.useContext(EkoPlayerContext),I=React.useRef(null),k=function(e,t){S({state:e,params:t})};if(React.useEffect((function(){EkoPlayer.isSupported()?(g(!0),b.current=new EkoPlayer(I.current,r),v&&v(b.current),x&&x.setPlayerState&&x.setPlayerState({player:b.current})):g(!1)}),[]),React.useEffect((function(){if(b.current){var e=u||[],n={};return"object"!==_typeof(u)||Array.isArray(u)||(Object.keys(u).forEach((function(e){var t=u[e].bind(b.current);n[e]=n[e]||[],n[e].push(t),b.current.on(e,t)})),e=Object.keys(u)),S({state:"loading"}),b.current.load(t,{cover:f?k:void 0,clientSideParams:a,env:o,params:s,events:[].concat(_toConsumableArray(e),DEFAULT_EVENTS),excludePropagatedParams:c||[]}),function(){"object"!==_typeof(u)||Array.isArray(u)||Object.keys(n).forEach((function(e){n[e].forEach((function(t){return b.current.off(e,t)}))}))}}}),[b.current,t]),!1===_)return getRenderable(d);var P=["eko_component_container"];return P.push(l?"expand":"intrinsicSize"),React__default.default.createElement("div",{className:P.join(" ")},React__default.default.createElement("div",{className:"eko_video_container",ref:I}),E)}EkoVideo.propTypes={id:propTypes.string.isRequired,embedAPI:propTypes.string,env:propTypes.string,clientSideParams:propTypes.object,params:propTypes.objectOf(propTypes.oneOfType([propTypes.string,propTypes.bool,propTypes.number])),excludePropagatedParams:propTypes.arrayOf(propTypes.oneOfType([propTypes.string,propTypes.instanceOf(RegExp)])),events:propTypes.oneOfType([propTypes.arrayOf(propTypes.string),propTypes.object]),expandToFillContainer:propTypes.bool,loadingCover:propTypes.oneOfType([propTypes.elementType,propTypes.element]),playCover:propTypes.oneOfType([propTypes.elementType,propTypes.element]),unsupportedCover:propTypes.oneOfType([propTypes.elementType,propTypes.element]),waitForAutoplayTimeout:propTypes.number,onPlayerInit:propTypes.func};var css_248z$3=".eko_subtitles_container.rtl {\n direction: rtl;\n}";styleInject(css_248z$3);var RTL_LANGUAGES=["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","ur","yi"],AD_LANGUAGES=["en-US-AD"];function EkoSubtitles(e){var t=e.style,n=_slicedToArray(React.useState(!1),2),r=n[0],o=n[1],a=_slicedToArray(React.useState(""),2),i=a[0],s=a[1],c=_slicedToArray(React.useState(""),2),u=c[0],l=c[1],f=React.useContext(EkoPlayerContext);if(!f)throw new Error("This component needs to be wrapped in a player context, but one was not found");var p=f&&f.playerState&&f.playerState.player;React.useEffect((function(){if(p){var e=function(){return p.invoke("subtitles.mode","proxy")},t=function(e){return o(e)},n=function(e){return s(e.text)},r=function(e){return s("")},a=function(e){return l(e)};return p.on("plugininitsubtitles",e),p.on("subtitles.visibilitychange",t),p.on("subtitles.substart",n),p.on("subtitles.subend",r),p.on("subtitles.effectivelanguagechange",a),function(){p.off("plugininitsubtitles",e),p.off("subtitles.visibilitychange",t),p.off("subtitles.substart",n),p.off("subtitles.subend",r),p.off("subtitles.effectivelanguagechange",a)}}}),[p]);var y=RTL_LANGUAGES.includes(u)?"rtl":"",d=AD_LANGUAGES.includes(u)?"polite":null;return React__default.default.createElement("div",{role:"Subtitles",style:t},r&&i&&React__default.default.createElement("div",{className:"eko_subtitles_container ".concat(y),"aria-live":d},React__default.default.createElement("span",null,i)))}EkoSubtitles.propTypes={style:propTypes.object},exports.EkoPlayerContext=EkoPlayerContext,exports.EkoPlayerProvider=EkoPlayerProvider,exports.EkoSubtitles=EkoSubtitles,exports.EkoVideo=EkoVideo;
{
"name": "@ekolabs/eko-react-sdk",
"main": "bundles/bundle.js",
"version": "0.0.12",
"version": "0.0.13",
"description": "A react component that embeds eko videos",

@@ -6,0 +6,0 @@ "homepage": "https://ekolabs.github.io/eko-react-sdk/",

@@ -88,3 +88,3 @@ # eko-react-sdk

To get a reference to the underlying [`EkoPlayer`](https://github.com/EkoLabs/eko-js-sdk#ekoplayerel) that's exposed by the `eko-js-sdk`, use `onPlayerInit`:
To get a reference to the underlying [`EkoPlayer`](https://github.com/EkoLabs/eko-js-sdk#ekoplayerel) that's exposed by the `eko-js-sdk`, use `onPlayerInit` or use the `EkoPlayerContext`.

@@ -110,2 +110,32 @@ Example implementation saving a reference to the EkoPlayer using the useRef hook:

Example implementation using the `EkoPlayerContext` to access the player from different components:
```jsx
// MyPlayButton.jsx
import { useContext } from "react";
import { EkoPlayerContext } from "@ekolabs/eko-react-sdk";
function MyPlayButton() {
const {playerState} = useContext(EkoPlayerContext);
return (
<button onClick={() => playerState.player.play()}>play</button>
);
}
```
```jsx
// MyEkoVideo.jsx
import MyPlayButton from './PlayButton';
import { EkoPlayerProvider, EkoVideo } from "@ekolabs/eko-react-sdk";
function MyEkoVideo() {
return (
<div>
<EkoPlayerProvider>
<EkoVideo id="AWLLK1"/>
<MyPlayButton />
</EkoPlayerProvider>
</div>
);
}
```
### Listening to player events

@@ -126,1 +156,22 @@

```
## External subtitles
If necessary, you can render the subtitles outside of the player using the `EkoSubtitles` component.
### Props
| Prop | Type | Description |
| :-------------: |:--------------:| :------------|
| style | `object` | Used to style the subtitles element. |
**Note:** If you are using the `EkoSubtitles` component, you **must** also use `EkoPlayerProvider` so the subtitles component can access the player. See below for example usage.
Example:
```jsx
<EkoPlayerProvider>
<EkoVideo id="AWLLK1"/>
<EkoSubtitles style = {{color: 'white', background: 'black'}}/>
</EkoPlayerProvider>
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc