@tivio/sdk-react 3.6.0 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("@sentry/browser"),require("mobx"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):"function"==typeof define&&define.amd?define("@tivio/sdk-react",["react","@sentry/browser","mobx","@material-ui/core","@material-ui/icons","firebase/app","firebase/auth","firebase/firestore","formik","i18next","mobx-react","react-dom","react-i18next","react-router-dom","react-spring","react-virtualized","styled-components","yup"],n):"object"==typeof exports?exports["@tivio/sdk-react"]=n(require("react"),require("@sentry/browser"),require("mobx"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):e["@tivio/sdk-react"]=n(e.react,e["@sentry/browser"],e.mobx,e["@material-ui/core"],e["@material-ui/icons"],e["firebase/app"],e["firebase/auth"],e["firebase/firestore"],e.formik,e.i18next,e["mobx-react"],e["react-dom"],e["react-i18next"],e["react-router-dom"],e["react-spring"],e["react-virtualized"],e["styled-components"],e.yup)}(this,(function(__WEBPACK_EXTERNAL_MODULE__8156__,__WEBPACK_EXTERNAL_MODULE__7356__,__WEBPACK_EXTERNAL_MODULE__259__,__WEBPACK_EXTERNAL_MODULE__670__,__WEBPACK_EXTERNAL_MODULE__6741__,__WEBPACK_EXTERNAL_MODULE__2937__,__WEBPACK_EXTERNAL_MODULE__6703__,__WEBPACK_EXTERNAL_MODULE__6462__,__WEBPACK_EXTERNAL_MODULE__7661__,__WEBPACK_EXTERNAL_MODULE__8661__,__WEBPACK_EXTERNAL_MODULE__5264__,__WEBPACK_EXTERNAL_MODULE__7111__,__WEBPACK_EXTERNAL_MODULE__3238__,__WEBPACK_EXTERNAL_MODULE__6128__,__WEBPACK_EXTERNAL_MODULE__5412__,__WEBPACK_EXTERNAL_MODULE__1296__,__WEBPACK_EXTERNAL_MODULE__1608__,__WEBPACK_EXTERNAL_MODULE__7589__){return function(){var __webpack_modules__={194:function(module,__unused_webpack_exports,__webpack_require__){var n;n=function(__WEBPACK_EXTERNAL_MODULE__259__,__WEBPACK_EXTERNAL_MODULE__156__){return function(){var __webpack_modules__={631:function(e,n,t){"use strict";t.r(n),t.d(n,{BrowserInfo:function(){return r},NodeInfo:function(){return o},SearchBotDeviceInfo:function(){return c},BotInfo:function(){return a},ReactNativeInfo:function(){return l},detect:function(){return b},browserName:function(){return I},parseUserAgent:function(){return p},detectOS:function(){return m},getNodeVersion:function(){return B}});var i=function(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))},r=function(e,n,t){this.name=e,this.version=n,this.os=t,this.type="browser"},o=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},c=function(e,n,t,i){this.name=e,this.version=n,this.os=t,this.bot=i,this.type="bot-device"},a=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},l=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},s=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],d=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function b(e){return e?p(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!=typeof navigator?p(navigator.userAgent):B()}function g(e){return""!==e&&u.reduce((function(n,t){var i=t[0],r=t[1];if(n)return n;var o=r.exec(e);return!!o&&[i,o]}),!1)}function I(e){var n=g(e);return n?n[0]:null}function p(e){var n=g(e);if(!n)return null;var t=n[0],o=n[1];if("searchbot"===t)return new a;var l=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);l?l.length<3&&(l=i(i([],l,!0),function(e){for(var n=[],t=0;t<e;t++)n.push("0");return n}(3-l.length),!0)):l=[];var u=l.join("."),d=m(e),b=s.exec(e);return b&&b[1]?new c(t,u,d,b[1]):new r(t,u,d)}function m(e){for(var n=0,t=d.length;n<t;n++){var i=d[n],r=i[0];if(i[1].exec(e))return r}return null}function B(){return"undefined"!=typeof process&&process.version?new o(process.version.slice(1)):null}},146:function(module){var factory;factory=function(){return function(){var __webpack_modules__={"./node_modules/loglevel/lib/loglevel.js":function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n "use strict";\n if (true) {\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (definition),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n}(this, function () {\n "use strict";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = "undefined";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n "trace",\n "debug",\n "info",\n "warn",\n "error"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === \'function\') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn\'t print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don\'t have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === \'debug\') {\n methodName = \'log\';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === \'trace\' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, \'log\');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn\'t present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n defaultLevel = defaultLevel == null ? "WARN" : defaultLevel;\n\n var storageKey = "loglevel";\n if (typeof name === "string") {\n storageKey += ":" + name;\n } else if (typeof name === "symbol") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || \'silent\').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + "=" + levelName + ";";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + "=");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n function clearPersistedLevel() {\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage.removeItem(storageKey);\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";\n } catch (ignore) {}\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,\n "ERROR": 4, "SILENT": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return "No console available for logging";\n }\n } else {\n throw "log.setLevel() called with invalid level: " + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n defaultLevel = level;\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.resetLevel = function () {\n self.setLevel(defaultLevel, false);\n clearPersistedLevel();\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {\n throw new TypeError("You must supply a name when creating a logger.");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger[\'default\'] = defaultLogger;\n\n return defaultLogger;\n}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbG9nbGV2ZWwvbGliL2xvZ2xldmVsLmpzLmpzIiwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUtBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0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4gICAgZnVuY3Rpb24gYmluZE1ldGhvZChvYmosIG1ldGhvZE5hbWUpIHtcbiAgICAgICAgdmFyIG1ldGhvZCA9IG9ialttZXRob2ROYW1lXTtcbiAgICAgICAgaWYgKHR5cGVvZiBtZXRob2QuYmluZCA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgICAgcmV0dXJuIG1ldGhvZC5iaW5kKG9iaik7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgIHJldHVybiBGdW5jdGlvbi5wcm90b3R5cGUuYmluZC5jYWxsKG1ldGhvZCwgb2JqKTtcbiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgICAgICAgICAvLyBNaXNzaW5nIGJpbmQgc2hpbSBvciBJRTggKyBNb2Rlcm5penIsIGZhbGxiYWNrIHRvIHdyYXBwaW5nXG4gICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gRnVuY3Rpb24ucHJvdG90eXBlLmFwcGx5LmFwcGx5KG1ldGhvZCwgW29iaiwgYXJndW1lbnRzXSk7XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vIFRyYWNlKCkgZG9lc24ndCBwcmludCB0aGUgbWVzc2FnZSBpbiBJRSwgc28gZm9yIHRoYXQgY2FzZSB3ZSBuZWVkIHRvIHdyYXAgaXRcbiAgICBmdW5jdGlvbiB0cmFjZUZvcklFKCkge1xuICAgICAgICBpZiAoY29uc29sZS5sb2cpIHtcbiAgICAgICAgICAgIGlmIChjb25zb2xlLmxvZy5hcHBseSkge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nLmFwcGx5KGNvbnNvbGUsIGFyZ3VtZW50cyk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIC8vIEluIG9sZCBJRSwgb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AgICB9IGNhdGNoIChpZ25vcmUpIHt9XG4gICAgICB9XG5cbiAgICAgIGZ1bmN0aW9uIGdldFBlcnNpc3RlZExldmVsKCkge1xuICAgICAgICAgIHZhciBzdG9yZWRMZXZlbDtcblxuICAgICAgICAgIGlmICh0eXBlb2Ygd2luZG93ID09PSB1bmRlZmluZWRUeXBlIHx8ICFzdG9yYWdlS2V5KSByZXR1cm47XG5cbiAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICBzdG9yZWRMZXZlbCA9IHdpbmRvdy5sb2NhbFN0b3JhZ2Vbc3RvcmFnZUtleV07XG4gICAgICAgICAgfSBjYXRjaCAoaWdub3JlKSB7fVxuXG4gICAgICAgICAgLy8gRmFsbGJhY2sgdG8gY29va2llcyBpZiBsb2NhbCBzdG9yYWdlIGdpdmVzIHVzIG5vdGhpbmdcbiAgICAgICAgICBpZiAodHlwZW9mIHN0b3JlZExldmVsID09PSB1bmRlZmluZWRUeXBlKSB7XG4gICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICB2YXIgY29va2llID0gd2luZG93LmRvY3VtZW50LmNvb2tpZTtcbiAgICAgICAgICAgICAgICAgIHZhciBsb2NhdGlvbiA9IGNvb2tpZS5pbmRleE9mKFxuICAgICAgICAgICAgICAgICAgICAgIGVuY29kZVVSSUNvbXBvbmVudChzdG9yYWdlS2V5KSArIFwiPVwiKTtcbiAgICAgICAgICAgICAgICAgIGlmIChsb2NhdGlvbiAhPT0gLTEpIHtcbiAgICAgICAgICAgICAgICAgICAgICBzdG9yZWRMZXZlbCA9IC9eKFteO10rKS8uZXhlYyhjb29raWUuc2xpY2UobG9jYXRpb24pKVsxXTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfSBjYXRjaCAoaWdub3JlKSB7fVxuICAgICAgICAgIH1cblxuICAgICAgICAgIC8vIElmIHRoZSBzdG9yZWQgbGV2ZWwgaXMgbm90IHZhbGlkLCB0cmVhdCBpdCBhcyBpZiBub3RoaW5nIHdhcyBzdG9yZWQuXG4gICAgICAgICAgaWYgKHNlbGYubGV2ZWxzW3N0b3JlZExldmVsXSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgIHN0b3JlZExldmVsID0gdW5kZWZpbmVkO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIHJldHVybiBzdG9yZWRMZXZlbDtcbiAgICAgIH1cblxuICAgICAgZnVuY3Rpb24gY2xlYXJQZXJzaXN0ZWRMZXZlbCgpIHtcbiAgICAgICAgICBpZiAodHlwZW9mIHdpbmRvdyA9PT0gdW5kZWZpbmVkVHlwZSB8fCAhc3RvcmFnZUtleSkgcmV0dXJuO1xuXG4gICAgICAgICAgLy8gVXNlIGxvY2FsU3RvcmFnZSBpZiBhdmFpbGFibGVcbiAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICB3aW5kb3cubG9jYWxTdG9yYWdlLnJlbW92ZUl0ZW0oc3RvcmFnZUtleSk7XG4gICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICB9IGNhdGNoIChpZ25vcmUpIHt9XG5cbiAgICAgICAgICAvLyBVc2Ugc2Vzc2lvbiBjb29raWUgYXMgZmFsbGJhY2tcbiAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICB3aW5kb3cuZG9jdW1lbnQuY29va2llID1cbiAgICAgICAgICAgICAgICBlbmNvZGVVUklDb21wb25lbnQoc3RvcmFnZUtleSkgKyBcIj07IGV4cGlyZXM9VGh1LCAwMSBKYW4gMTk3MCAwMDowMDowMCBVVENcIjtcbiAgICAgICAgICB9IGNhdGNoIChpZ25vcmUpIHt9XG4gICAgICB9XG5cbiAgICAgIC8qXG4gICAgICAgKlxuICAgICAgICogUHVibGljIGxvZ2dlciBBUEkgLSBzZWUgaHR0cHM6Ly9naXRodWIuY29tL3BpbXRlcnJ5L2xvZ2xldmVsIGZvciBkZXRhaWxzXG4gICAgICAgKlxuICAgICAgICovXG5cbiAgICAgIHNlbGYubmFtZSA9IG5h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XBlb2YgY29uc29sZSA9PT0gdW5kZWZpbmVkVHlwZSAmJiBsZXZlbCA8IHNlbGYubGV2ZWxzLlNJTEVOVCkge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIFwiTm8gY29uc29sZSBhdmFpbGFibGUgZm9yIGxvZ2dpbmdcIjtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIHRocm93IFwibG9nLnNldExldmVsKCkgY2FsbGVkIHdpdGggaW52YWxpZCBsZXZlbDogXCIgKyBsZXZlbDtcbiAgICAgICAgICB9XG4gICAgICB9O1xuXG4gICAgICBzZWxmLnNldERlZmF1bHRMZXZlbCA9IGZ1bmN0aW9uIChsZXZlbCkge1xuICAgICAgICAgIGRlZmF1bHRMZXZlbCA9IGxldmVsO1xuICAgICAgICAgIGlmICghZ2V0UGVyc2lzdGVkTGV2ZWwoKSkge1xuICAgICAgICAgICAgICBzZWxmLnNldExldmVsKGxldmVsLCBmYWxzZSk7XG4gICAgICAgICAgfVxuICAgICAgfTtcblxuICAgICAgc2VsZi5yZXNldExldmVsID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAgIHNlbGYuc2V0TGV2ZWwoZGVmYXVsdExldmVsLCBmYWxzZSk7XG4gICAgICAgICAgY2xlYXJQZXJzaXN0ZWRMZXZlbCgpO1xuICAgICAgfTtcblxuICAgICAgc2VsZi5lbmFibGVBbGwgPSBmdW5jdGlvbihwZXJzaXN0KSB7XG4gICAgICAgICAgc2VsZi5zZXRMZXZlbChzZWxmLmxldmVscy5UUkFDRSwgcGVyc2lzdCk7XG4gICAgICB9O1xuXG4gICAgICBzZWxmLmRpc2FibGVBbGwgPSBmdW5jdGlvbihwZXJzaXN0KSB7XG4gICAgICAgICAgc2VsZi5zZXRMZXZlbChzZWxmLmxldmVscy5TSUxFTlQsIHBlcnNpc3QpO1xuICAgICAgfTtcblxuICAgICAgLy8gSW5pdGlhbGl6ZSB3aXRoIHRoZSByaWdodCBsZ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2xvYmFsIGxvZyB2YXJpYWJsZSBpbiBjYXNlIG9mIG92ZXJ3cml0ZVxuICAgIHZhciBfbG9nID0gKHR5cGVvZiB3aW5kb3cgIT09IHVuZGVmaW5lZFR5cGUpID8gd2luZG93LmxvZyA6IHVuZGVmaW5lZDtcbiAgICBkZWZhdWx0TG9nZ2VyLm5vQ29uZmxpY3QgPSBmdW5jdGlvbigpIHtcbiAgICAgICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09IHVuZGVmaW5lZFR5cGUgJiZcbiAgICAgICAgICAgICAgIHdpbmRvdy5sb2cgPT09IGRlZmF1bHRMb2dnZXIpIHtcbiAgICAgICAgICAgIHdpbmRvdy5sb2cgPSBfbG9nO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGRlZmF1bHRMb2dnZXI7XG4gICAgfTtcblxuICAgIGRlZmF1bHRMb2dnZXIuZ2V0TG9nZ2VycyA9IGZ1bmN0aW9uIGdldExvZ2dlcnMoKSB7XG4gICAgICAgIHJldHVybiBfbG9nZ2Vyc0J5TmFtZTtcbiAgICB9O1xuXG4gICAgLy8gRVM2IGRlZmF1bHQgZXhwb3J0LCBmb3IgY29tcGF0aWJpbGl0eVxuICAgIGRlZmF1bHRMb2dnZXJbJ2RlZmF1bHQnXSA9IGRlZmF1bHRMb2dnZXI7XG5cbiAgICByZXR1cm4gZGVmYXVsdExvZ2dlcjtcbn0pKTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/loglevel/lib/loglevel.js\n')},"../types/dist/index.js":function(module){eval('/*\n * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").\n * This devtool is neither made for production nor for readable output files.\n * It uses "eval()" calls to create a separate source file in the browser devtools.\n * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)\n * or disable the default devtool with "devtool: false".\n * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\t\tmodule.exports = factory();\n\telse { var i, a; }\n})(this, function() {\nreturn /******/ (function() { // webpackBootstrap\n/******/ \t"use strict";\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ "./src/constants/index.ts":\n/*!********************************!*\\\n !*** ./src/constants/index.ts ***!\n \\********************************/\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\neval("\\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\\n}) : (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n o[k2] = m[k];\\n}));\\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\\n for (var p in m) if (p !== \\"default\\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\\n};\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n__exportStar(__webpack_require__(/*! ./vast */ \\"./src/constants/vast.ts\\"), exports);\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/constants/index.ts?");\n\n/***/ }),\n\n/***/ "./src/constants/vast.ts":\n/*!*******************************!*\\\n !*** ./src/constants/vast.ts ***!\n \\*******************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\nexports.VAST_PROVIDERS = exports.VastProvider = void 0;\\nvar VastProvider;\\n(function (VastProvider) {\\n VastProvider[\\"ETARGET_PREBID\\"] = \\"etarget-prebid\\";\\n VastProvider[\\"MALL_TV_PREBID\\"] = \\"malltv-prebid\\";\\n VastProvider[\\"IMPRESSION_MEDIA_PREBID\\"] = \\"impressionMedia-prebid\\";\\n VastProvider[\\"MALL_TV\\"] = \\"malltv\\";\\n VastProvider[\\"FALLBACK_MP4\\"] = \\"fallback\\";\\n VastProvider[\\"FALLBACK_HLS\\"] = \\"fallback-hls\\";\\n VastProvider[\\"JOJ\\"] = \\"joj\\";\\n VastProvider[\\"PRIMA\\"] = \\"prima\\";\\n VastProvider[\\"GARAZ_TV\\"] = \\"garaz.tv\\";\\n VastProvider[\\"GARAZ_TV_DEV\\"] = \\"garaz.tv.dev\\";\\n})(VastProvider = exports.VastProvider || (exports.VastProvider = {}));\\nexports.VAST_PROVIDERS = [\\n {\\n id: VastProvider.ETARGET_PREBID,\\n name: \'Etarget Prebid\',\\n },\\n {\\n id: VastProvider.MALL_TV_PREBID,\\n name: \'MALL.TV Prebid\',\\n },\\n {\\n id: VastProvider.IMPRESSION_MEDIA_PREBID,\\n name: \'Impression Media Prebid\',\\n },\\n {\\n id: VastProvider.MALL_TV,\\n name: \'MALL.TV\',\\n },\\n {\\n id: VastProvider.JOJ,\\n name: \'JOJ\',\\n },\\n {\\n id: VastProvider.PRIMA,\\n name: \'Prima\',\\n },\\n {\\n id: VastProvider.GARAZ_TV,\\n name: \'Garaz TV\',\\n },\\n {\\n id: VastProvider.GARAZ_TV_DEV,\\n name: \'Garaz TV dev\',\\n },\\n {\\n id: VastProvider.FALLBACK_MP4,\\n name: \'Fallback (MP4)\',\\n development: true,\\n },\\n {\\n id: VastProvider.FALLBACK_HLS,\\n name: \'Fallback (HLS)\',\\n development: true,\\n },\\n];\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/constants/vast.ts?");\n\n/***/ }),\n\n/***/ "./src/index.ts":\n/*!**********************!*\\\n !*** ./src/index.ts ***!\n \\**********************/\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\neval("\\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\\n}) : (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n o[k2] = m[k];\\n}));\\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\\n for (var p in m) if (p !== \\"default\\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\\n};\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n__exportStar(__webpack_require__(/*! ./search */ \\"./src/search.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./types */ \\"./src/types/index.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./pagination */ \\"./src/pagination.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./constants */ \\"./src/constants/index.ts\\"), exports);\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/index.ts?");\n\n/***/ }),\n\n/***/ "./src/pagination.ts":\n/*!***************************!*\\\n !*** ./src/pagination.ts ***!\n \\***************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/pagination.ts?");\n\n/***/ }),\n\n/***/ "./src/search.ts":\n/*!***********************!*\\\n !*** ./src/search.ts ***!\n \\***********************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\nexports.ALGOLIA_INDEX_NAME = void 0;\\n/**\\n * Index names in Algolia search engine.\\n *\\n * @public\\n */\\nvar ALGOLIA_INDEX_NAME;\\n(function (ALGOLIA_INDEX_NAME) {\\n ALGOLIA_INDEX_NAME[\\"VIDEOS\\"] = \\"videos\\";\\n ALGOLIA_INDEX_NAME[\\"VIDEOSDESC\\"] = \\"videos_created_desc\\";\\n ALGOLIA_INDEX_NAME[\\"TAGS\\"] = \\"tags\\";\\n ALGOLIA_INDEX_NAME[\\"TV_CHANNELS\\"] = \\"tvChannels\\";\\n ALGOLIA_INDEX_NAME[\\"USERS\\"] = \\"users\\";\\n})(ALGOLIA_INDEX_NAME = exports.ALGOLIA_INDEX_NAME || (exports.ALGOLIA_INDEX_NAME = {}));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/search.ts?");\n\n/***/ }),\n\n/***/ "./src/types/bundle/auth.ts":\n/*!**********************************!*\\\n !*** ./src/types/bundle/auth.ts ***!\n \\**********************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/bundle/auth.ts?");\n\n/***/ }),\n\n/***/ "./src/types/bundle/components.ts":\n/*!****************************************!*\\\n !*** ./src/types/bundle/components.ts ***!\n \\****************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\nexports.PLATFORM = exports.CUSTOMER_BUILD = void 0;\\nvar CUSTOMER_BUILD;\\n(function (CUSTOMER_BUILD) {\\n CUSTOMER_BUILD[\\"OKTAGON\\"] = \\"OKTAGON\\";\\n CUSTOMER_BUILD[\\"JOJ\\"] = \\"JOJ\\";\\n CUSTOMER_BUILD[\\"MALL\\"] = \\"MALL\\";\\n CUSTOMER_BUILD[\\"GARAZ\\"] = \\"GARAZ\\";\\n CUSTOMER_BUILD[\\"U_KULATEHO_STOLU\\"] = \\"U_KULATEHO_STOLU\\";\\n CUSTOMER_BUILD[\\"INVESTOREES\\"] = \\"INVESTOREES\\";\\n})(CUSTOMER_BUILD || (CUSTOMER_BUILD = {}));\\nexports.CUSTOMER_BUILD = CUSTOMER_BUILD;\\nvar PLATFORM;\\n(function (PLATFORM) {\\n PLATFORM[\\"MOBILE\\"] = \\"MOBILE\\";\\n PLATFORM[\\"WEB\\"] = \\"WEB\\";\\n PLATFORM[\\"TV\\"] = \\"TV\\";\\n})(PLATFORM || (PLATFORM = {}));\\nexports.PLATFORM = PLATFORM;\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/bundle/components.ts?");\n\n/***/ }),\n\n/***/ "./src/types/bundle/context.ts":\n/*!*************************************!*\\\n !*** ./src/types/bundle/context.ts ***!\n \\*************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/bundle/context.ts?");\n\n/***/ }),\n\n/***/ "./src/types/bundle/index.ts":\n/*!***********************************!*\\\n !*** ./src/types/bundle/index.ts ***!\n \\***********************************/\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\neval("\\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\\n}) : (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n o[k2] = m[k];\\n}));\\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\\n for (var p in m) if (p !== \\"default\\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\\n};\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n__exportStar(__webpack_require__(/*! ./auth */ \\"./src/types/bundle/auth.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./components */ \\"./src/types/bundle/components.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./context */ \\"./src/types/bundle/context.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./subscriptions */ \\"./src/types/bundle/subscriptions.ts\\"), exports);\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/bundle/index.ts?");\n\n/***/ }),\n\n/***/ "./src/types/bundle/subscriptions.ts":\n/*!*******************************************!*\\\n !*** ./src/types/bundle/subscriptions.ts ***!\n \\*******************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/bundle/subscriptions.ts?");\n\n/***/ }),\n\n/***/ "./src/types/common.ts":\n/*!*****************************!*\\\n !*** ./src/types/common.ts ***!\n \\*****************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\nexports.DEFAULT_ORDER_BY = exports.CURRENCIES = exports.languages = exports.LangCode = void 0;\\n/**\\n * Enum of all supported languages codes as in ISO 639-1\\n */\\nvar LangCode;\\n(function (LangCode) {\\n LangCode[\\"CS\\"] = \\"cs\\";\\n LangCode[\\"DE\\"] = \\"de\\";\\n LangCode[\\"EN\\"] = \\"en\\";\\n LangCode[\\"FR\\"] = \\"fr\\";\\n LangCode[\\"PL\\"] = \\"pl\\";\\n LangCode[\\"SK\\"] = \\"sk\\";\\n LangCode[\\"SP\\"] = \\"sp\\";\\n})(LangCode = exports.LangCode || (exports.LangCode = {}));\\n/**\\n * All supported languages codes as in ISO 639-1\\n */\\nexports.languages = Object.values(LangCode);\\n// TODO move to @tivio/types\\nexports.CURRENCIES = [\'CZK\', \'EUR\', \'USD\'];\\n// TODO move to @tivio/firebase after moving DefaultOrderByField to @tivio/types\\nexports.DEFAULT_ORDER_BY = [\\n {\\n field: \'created\',\\n directionStr: \'desc\',\\n },\\n];\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/common.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/ad.ts":\n/*!***************************************!*\\\n !*** ./src/types/externalTypes/ad.ts ***!\n \\***************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/ad.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/channel.ts":\n/*!********************************************!*\\\n !*** ./src/types/externalTypes/channel.ts ***!\n \\********************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/channel.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/config.ts":\n/*!*******************************************!*\\\n !*** ./src/types/externalTypes/config.ts ***!\n \\*******************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/config.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/index.ts":\n/*!******************************************!*\\\n !*** ./src/types/externalTypes/index.ts ***!\n \\******************************************/\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\neval("\\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\\n}) : (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n o[k2] = m[k];\\n}));\\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\\n for (var p in m) if (p !== \\"default\\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\\n};\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n__exportStar(__webpack_require__(/*! ./user */ \\"./src/types/externalTypes/user.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./widget */ \\"./src/types/externalTypes/widget.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./channel */ \\"./src/types/externalTypes/channel.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./organization */ \\"./src/types/externalTypes/organization.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./tvChannel */ \\"./src/types/externalTypes/tvChannel.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./video */ \\"./src/types/externalTypes/video.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./row */ \\"./src/types/externalTypes/row.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./screen */ \\"./src/types/externalTypes/screen.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./tag */ \\"./src/types/externalTypes/tag.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./subscriptions */ \\"./src/types/externalTypes/subscriptions.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./ad */ \\"./src/types/externalTypes/ad.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./qerko */ \\"./src/types/externalTypes/qerko.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./config */ \\"./src/types/externalTypes/config.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./monetization */ \\"./src/types/externalTypes/monetization.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./search */ \\"./src/types/externalTypes/search.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./section */ \\"./src/types/externalTypes/section.ts\\"), exports);\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/index.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/monetization.ts":\n/*!*************************************************!*\\\n !*** ./src/types/externalTypes/monetization.ts ***!\n \\*************************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\nexports.MONETIZATION_FREQUENCY = void 0;\\nvar MONETIZATION_FREQUENCY;\\n(function (MONETIZATION_FREQUENCY) {\\n MONETIZATION_FREQUENCY[\\"ONE_TIME_PAYMENT\\"] = \\"ONE_TIME_PAYMENT\\";\\n MONETIZATION_FREQUENCY[\\"DAILY\\"] = \\"DAILY\\";\\n MONETIZATION_FREQUENCY[\\"WEEKLY\\"] = \\"WEEKLY\\";\\n MONETIZATION_FREQUENCY[\\"MONTHLY\\"] = \\"MONTHLY\\";\\n MONETIZATION_FREQUENCY[\\"ANNUALLY\\"] = \\"ANNUALLY\\";\\n})(MONETIZATION_FREQUENCY = exports.MONETIZATION_FREQUENCY || (exports.MONETIZATION_FREQUENCY = {}));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/monetization.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/organization.ts":\n/*!*************************************************!*\\\n !*** ./src/types/externalTypes/organization.ts ***!\n \\*************************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/organization.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/qerko.ts":\n/*!******************************************!*\\\n !*** ./src/types/externalTypes/qerko.ts ***!\n \\******************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/qerko.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/row.ts":\n/*!****************************************!*\\\n !*** ./src/types/externalTypes/row.ts ***!\n \\****************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\nexports.ROW_ITEM_TYPES = exports.RowItemComponent = exports.RowComponent = void 0;\\nvar RowComponent;\\n(function (RowComponent) {\\n RowComponent[\\"ROW\\"] = \\"ROW\\";\\n RowComponent[\\"BANNER\\"] = \\"BANNER\\";\\n})(RowComponent = exports.RowComponent || (exports.RowComponent = {}));\\nvar RowItemComponent;\\n(function (RowItemComponent) {\\n RowItemComponent[\\"ROW_ITEM_PORTRAIT\\"] = \\"ROW_ITEM_PORTRAIT\\";\\n RowItemComponent[\\"ROW_ITEM_LANDSCAPE\\"] = \\"ROW_ITEM_LANDSCAPE\\";\\n RowItemComponent[\\"ROW_ITEM_CIRCLED\\"] = \\"ROW_ITEM_CIRCLED\\";\\n})(RowItemComponent = exports.RowItemComponent || (exports.RowItemComponent = {}));\\nvar ROW_ITEM_TYPES;\\n(function (ROW_ITEM_TYPES) {\\n ROW_ITEM_TYPES[\\"VIDEO\\"] = \\"VIDEO\\";\\n ROW_ITEM_TYPES[\\"TAG\\"] = \\"TAG\\";\\n ROW_ITEM_TYPES[\\"TV_CHANNEL\\"] = \\"TV_CHANNEL\\";\\n})(ROW_ITEM_TYPES = exports.ROW_ITEM_TYPES || (exports.ROW_ITEM_TYPES = {}));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/row.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/screen.ts":\n/*!*******************************************!*\\\n !*** ./src/types/externalTypes/screen.ts ***!\n \\*******************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/screen.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/search.ts":\n/*!*******************************************!*\\\n !*** ./src/types/externalTypes/search.ts ***!\n \\*******************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/search.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/section.ts":\n/*!********************************************!*\\\n !*** ./src/types/externalTypes/section.ts ***!\n \\********************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/section.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/subscriptions.ts":\n/*!**************************************************!*\\\n !*** ./src/types/externalTypes/subscriptions.ts ***!\n \\**************************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/subscriptions.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/tag.ts":\n/*!****************************************!*\\\n !*** ./src/types/externalTypes/tag.ts ***!\n \\****************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/tag.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/tvChannel.ts":\n/*!**********************************************!*\\\n !*** ./src/types/externalTypes/tvChannel.ts ***!\n \\**********************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/tvChannel.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/user.ts":\n/*!*****************************************!*\\\n !*** ./src/types/externalTypes/user.ts ***!\n \\*****************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\nexports.PurchaseStatus = exports.UserType = void 0;\\nvar UserType;\\n(function (UserType) {\\n UserType[\\"ORGANIZATION_USER\\"] = \\"ORGANIZATION_USER\\";\\n UserType[\\"TIVIO_USER\\"] = \\"TIVIO_USER\\";\\n})(UserType = exports.UserType || (exports.UserType = {}));\\nvar PurchaseStatus;\\n(function (PurchaseStatus) {\\n PurchaseStatus[\\"NEW\\"] = \\"NEW\\";\\n PurchaseStatus[\\"PAID\\"] = \\"PAID\\";\\n PurchaseStatus[\\"CANCELLED\\"] = \\"CANCELLED\\";\\n PurchaseStatus[\\"ERROR\\"] = \\"ERROR\\";\\n})(PurchaseStatus = exports.PurchaseStatus || (exports.PurchaseStatus = {}));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/user.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/video.ts":\n/*!******************************************!*\\\n !*** ./src/types/externalTypes/video.ts ***!\n \\******************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\nexports.VideoType = exports.VideoContentType = void 0;\\nvar VideoContentType;\\n(function (VideoContentType) {\\n /**\\n * Default video content type\\n */\\n VideoContentType[\\"VIDEO\\"] = \\"VIDEO\\";\\n VideoContentType[\\"FILM\\"] = \\"FILM\\";\\n VideoContentType[\\"SERIES\\"] = \\"SERIES\\";\\n})(VideoContentType = exports.VideoContentType || (exports.VideoContentType = {}));\\n/**\\n * Video type.\\n */\\nvar VideoType;\\n(function (VideoType) {\\n /**\\n * Video is composed of several other videos.\\n */\\n VideoType[\\"PLAYLIST\\"] = \\"PLAYLIST\\";\\n /**\\n * Video is a standard single video.\\n */\\n VideoType[\\"VIDEO\\"] = \\"VIDEO\\";\\n VideoType[\\"TV_PROGRAM\\"] = \\"TV_PROGRAM\\";\\n})(VideoType = exports.VideoType || (exports.VideoType = {}));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/video.ts?");\n\n/***/ }),\n\n/***/ "./src/types/externalTypes/widget.ts":\n/*!*******************************************!*\\\n !*** ./src/types/externalTypes/widget.ts ***!\n \\*******************************************/\n/***/ (function(__unused_webpack_module, exports) {\n\neval("\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/externalTypes/widget.ts?");\n\n/***/ }),\n\n/***/ "./src/types/index.ts":\n/*!****************************!*\\\n !*** ./src/types/index.ts ***!\n \\****************************/\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\neval("\\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\\n}) : (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n o[k2] = m[k];\\n}));\\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\\n for (var p in m) if (p !== \\"default\\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\\n};\\nObject.defineProperty(exports, \\"__esModule\\", ({ value: true }));\\n__exportStar(__webpack_require__(/*! ./externalTypes */ \\"./src/types/externalTypes/index.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./bundle */ \\"./src/types/bundle/index.ts\\"), exports);\\n__exportStar(__webpack_require__(/*! ./common */ \\"./src/types/common.ts\\"), exports);\\n\\n\\n//# sourceURL=webpack://@tivio/types/./src/types/index.ts?");\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __nested_webpack_require_24594__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \t\tif (cachedModule !== undefined) {\n/******/ \t\t\treturn cachedModule.exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_24594__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \t// This entry module is referenced by other modules so it can\'t be inlined\n/******/ \tvar __webpack_exports__ = __nested_webpack_require_24594__("./src/index.ts");\n/******/ \t\n/******/ \treturn __webpack_exports__;\n/******/ })()\n;\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vdHlwZXMvZGlzdC9pbmRleC5qcy5qcyIsIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFD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ioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKioqLyAoZnVuY3Rpb24oX191bnVzZWRfd2VicGFja19tb2R1bGUsIGV4cG9ydHMpIHtcblxuZXZhbChcIlxcbk9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBcXFwiX19lc01vZHVsZVxcXCIsICh7IHZhbHVlOiB0cnVlIH0pKTtcXG5cXG5cXG4vLyMgc291cmNlVVJMPXdlYnBhY2s6Ly9AdGl2aW8vdHlwZXMvLi9zcmMvdHlwZXMvZXh0ZXJuYWxUeXBlcy9zY3JlZW4udHM/XCIpO1xuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL3NyYy90eXBlcy9leHRlcm5hbFR5cGVzL3NlYXJjaC50c1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL3NyYy90eXBlcy9leHRlcm5hbFR5cGVzL3NlYXJjaC50cyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qKiovIChmdW5jdGlvbihfX3VudXNlZF93ZWJwYWNrX21vZHVsZSwgZXhwb3J0cykge1xuXG5ldmFsKFwiXFxuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFxcXCJfX2VzTW9kdWxlXFxcIiwgKHsgdmFsdWU6IHRydWUgfSkpO1xcblxcblxcbi8vIyBzb3VyY2VVUkw9d2VicGFjazovL0B0aXZpby90eXBlcy8uL3NyYy90eXBlcy9leHRlcm5hbFR5cGVzL3NlYXJjaC50cz9cIik7XG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vc3JjL3R5cGVzL2V4dGVybmFsVHlwZXMvc2VjdGlvbi50c1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9zcmMvdHlwZXMvZXh0ZXJuYWxUeXBlcy9zZWN0aW9uLnRzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qKiovIChmdW5jdGlvbihfX3VudXNlZF93ZWJwYWNrX21vZHVsZSwgZXhwb3J0cykge1xuXG5ldmFsKFwiXFxuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFxcXCJfX2VzTW9kdWxlXFxcIiwgKHsgdmFsdWU6IHRydWUgfSkpO1xcblxcblxcbi8vIyBzb3VyY2VVUkw9d2VicGFjazovL0B0aXZpby90eXBlcy8uL3NyYy90eXBlcy9leHRlcm5hbFR5cGVzL3NlY3Rpb24udHM/XCIpO1xuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL3NyYy90eXBlcy9leHRlcm5hbFR5cGVzL3N1YnNjcmlwdGlvbnMudHNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vc3JjL3R5cGVzL2V4dGVybmFsVHlwZXMvc3Vic2NyaXB0aW9ucy50cyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKioqLyAoZnVuY3Rpb24oX191bnVzZWRfd2VicGFja19tb2R1bGUsIGV4cG9ydHMpIHtcblxuZXZhbChcIlxcbk9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBcXFwiX19lc01vZHVsZVxcXCIsICh7IHZhbHVlOiB0cnVlIH0pKTtcXG5cXG5cXG4vLyMgc291cmNlVVJMPXdlYnBhY2s6Ly9AdGl2aW8vdHlwZXMvLi9zcmMvdHlwZXMvZXh0ZXJuYWxUeXBlcy9zdWJzY3JpcHRpb25zLnRzP1wiKTtcblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9zcmMvdHlwZXMvZXh0ZXJuYWxUeXBlcy90YWcudHNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9zcmMvdHlwZXMvZXh0ZXJuYWxUeXBlcy90YWcudHMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKioqLyAoZnVuY3Rpb24oX191bnVzZWRfd2VicGFja19tb2R1bGUsIGV4cG9ydHMpIHtcblxuZXZhbChcIlxcbk9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBcXFwiX19lc01vZHVsZVxcXCIsICh7IHZhbHVlOiB0cnVlIH0pKTtcXG5cXG5cXG4vLyMgc291cmNlVVJMPXdlYnBhY2s6Ly9AdGl2aW8vdHlwZXMvLi9zcmMvdHlwZXMvZXh0ZXJuYWxUeXBlcy90YWcudHM/XCIpO1xuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL3NyYy90eXBlcy9leHRlcm5hbFR5cGVzL3R2Q2hhbm5lbC50c1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL3NyYy90eXBlcy9leHRlcm5hbFR5cGVzL3R2Q2hhbm5lbC50cyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qKiovIChmdW5jdGlvbihfX3VudXNlZF93ZWJwYWNrX21vZHVsZSwgZXhwb3J0cykge1xuXG5ldmFsKFwiXFxuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFxcXCJfX2VzTW9kdWxlXFxcIiwgKHsgdmFsdWU6IHRydWUgfSkpO1xcblxcblxcbi8vIyBzb3VyY2VVUkw9d2VicGFjazovL0B0aXZpby90eXBlcy8uL3NyYy90eXBlcy9leHRlcm5hbFR5cGVzL3R2Q2hhbm5lbC50cz9cIik7XG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vc3JjL3R5cGVzL2V4dGVybmFsVHlwZXMvdXNlci50c1wi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wb3J0cyBvZiB0aGUgbW9kdWxlXG4vKioqKioqLyBcdFx0cmV0dXJuIG1vZHVsZS5leHBvcnRzO1xuLyoqKioqKi8gXHR9XG4vKioqKioqLyBcdFxuLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qKioqKiovIFx0XG4vKioqKioqLyBcdC8vIHN0YXJ0dXBcbi8qKioqKiovIFx0Ly8gTG9hZCBlbnRyeSBtb2R1bGUgYW5kIHJldHVybiBleHBvcnRzXG4vKioqKioqLyBcdC8vIFRoaXMgZW50cnkgbW9kdWxlIGlzIHJlZmVyZW5jZWQgYnkgb3RoZXIgbW9kdWxlcyBzbyBpdCBjYW4ndCBiZSBpbmxpbmVkXG4vKioqKioqLyBcdHZhciBfX3dlYnBhY2tfZXhwb3J0c19fID0gX193ZWJwYWNrX3JlcXVpcmVfXyhcIi4vc3JjL2luZGV4LnRzXCIpO1xuLyoqKioqKi8gXHRcbi8qKioqKiovIFx0cmV0dXJuIF9fd2VicGFja19leHBvcnRzX187XG4vKioqKioqLyB9KSgpXG47XG59KTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../types/dist/index.js\n')},"../../node_modules/lodash.isequal/index.js":function(module,exports,__webpack_require__){eval("/* module decorator */ module = __webpack_require__.nmd(module);\n/**\n * Lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors <https://js.foundation/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = true && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && \"object\" == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\n/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeKeys = overArg(Object.keys, Object);\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView'),\n Map = getNative(root, 'Map'),\n Promise = getNative(root, 'Promise'),\n Set = getNative(root, 'Set'),\n WeakMap = getNative(root, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\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0aCkge1xuICAgIHZhciBhcnJWYWx1ZSA9IGFycmF5W2luZGV4XSxcbiAgICAgICAgb3RoVmFsdWUgPSBvdGhlcltpbmRleF07XG5cbiAgICBpZiAoY3VzdG9taXplcikge1xuICAgICAgdmFyIGNvbXBhcmVkID0gaXNQYXJ0aWFsXG4gICAgICAgID8gY3VzdG9taXplcihvdGhWYWx1ZSwgYXJyVmFsdWUsIGluZGV4LCBvdGhlciwgYXJyYXksIHN0YWNrKVxuICAgICAgICA6IGN1c3RvbWl6ZXIoYXJyVmFsdWUsIG90aFZhbHVlLCBpbmRleCwgYXJyYXksIG90aGVyLCBzdGFjayk7XG4gICAgfVxuICAgIGlmIChjb21wYXJlZCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICBpZiAoY29tcGFyZWQpIHtcbiAgICAgICAgY29udGludWU7XG4gICAgICB9XG4gICAgICByZXN1bHQgPSBmYWxzZTtcbiAgICAgIGJyZWFrO1xuICAgIH1cbiAgICAvLyBSZWN1cnNpdmVseSBjb21wYXJlIGFycmF5cyAoc3VzY2VwdGlibGUgdG8gY2FsbCBzdGFjayBsaW1pdHMpLlxuICAgIGlmIChzZWVuKSB7XG4gICAgICBpZiAoIWFycmF5U29tZShvdGhlciwgZnVuY3Rpb24ob3RoVmFsdWUsIG90aEluZGV4KSB7XG4gICAgICAgICAgICBpZiAoIWNhY2hlSGFzKHNlZW4sIG90aEluZGV4KSAmJlxuICAgICAgICAgICAgICAgIChhcnJWYWx1ZSA9PT0gb3RoVmFsdWUgfHwgZXF1YWxGdW5jKGFyclZhbHVlLCBvdGhWYWx1ZSwgYml0bWFzaywgY3VzdG9taXplciwgc3RhY2spKSkge1xuICAgICAgICAgICAgICByZXR1cm4gc2Vlbi5wdXNoKG90aEluZGV4KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KSkge1xuICAgICAgICByZXN1bHQgPSBmYWxzZTtcbiAgICAgICAgYnJlYWs7XG4gICAgICB9XG4gICAgfSBlbHNlIGlmICghK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GV4YW1wbGVcbiAqXG4gKiB2YXIgYXJyYXlzID0gXy50aW1lcygyLCBfLnN0dWJBcnJheSk7XG4gKlxuICogY29uc29sZS5sb2coYXJyYXlzKTtcbiAqIC8vID0+IFtbXSwgW11dXG4gKlxuICogY29uc29sZS5sb2coYXJyYXlzWzBdID09PSBhcnJheXNbMV0pO1xuICogLy8gPT4gZmFsc2VcbiAqL1xuZnVuY3Rpb24gc3R1YkFycmF5KCkge1xuICByZXR1cm4gW107XG59XG5cbi8qKlxuICogVGhpcyBtZXRob2QgcmV0dXJucyBgZmFsc2VgLlxuICpcbiAqIEBzdGF0aWNcbiAqIEBtZW1iZXJPZiBfXG4gKiBAc2luY2UgNC4xMy4wXG4gKiBAY2F0ZWdvcnkgVXRpbFxuICogQHJldHVybnMge2Jvb2xlYW59IFJldHVybnMgYGZhbHNlYC5cbiAqIEBleGFtcGxlXG4gKlxuICogXy50aW1lcygyLCBfLnN0dWJGYWxzZSk7XG4gKiAvLyA9PiBbZmFsc2UsIGZhbHNlXVxuICovXG5mdW5jdGlvbiBzdHViRmFsc2UoKSB7XG4gIHJldHVybiBmYWxzZTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBpc0VxdWFsO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../node_modules/lodash.isequal/index.js\n")},"../../node_modules/object-hash/dist/object_hash.js":function(module){eval('!function(e){var t; true?module.exports=e():0}(function(){return function o(i,u,a){function s(n,e){if(!u[n]){if(!i[n]){var t=undefined;if(!e&&t)return require(n,!0);if(f)return f(n,!0);throw new Error("Cannot find module \'"+n+"\'")}var r=u[n]={exports:{}};i[n][0].call(r.exports,function(e){var t=i[n][1][e];return s(t||e)},r,r.exports,o,i,u,a)}return u[n].exports}for(var f=undefined,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(w,b,m){(function(e,t,f,n,r,o,i,u,a){"use strict";var s=w("crypto");function c(e,t){return function(e,t){var n;n="passthrough"!==t.algorithm?s.createHash(t.algorithm):new y;void 0===n.write&&(n.write=n.update,n.end=n.update);g(t,n).dispatch(e),n.update||n.end("");if(n.digest)return n.digest("buffer"===t.encoding?void 0:t.encoding);var r=n.read();return"buffer"!==t.encoding?r.toString(t.encoding):r}(e,t=h(e,t))}(m=b.exports=c).sha1=function(e){return c(e)},m.keys=function(e){return c(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},m.MD5=function(e){return c(e,{algorithm:"md5",encoding:"hex"})},m.keysMD5=function(e){return c(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var l=s.getHashes?s.getHashes().slice():["sha1","md5"];l.push("passthrough");var d=["buffer","hex","binary","base64"];function h(e,t){t=t||{};var n={};if(n.algorithm=t.algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<l.length;++r)l[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=l[r]);if(-1===l.indexOf(n.algorithm))throw new Error(\'Algorithm "\'+n.algorithm+\'" not supported. supported values: \'+l.join(", "));if(-1===d.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error(\'Encoding "\'+n.encoding+\'" not supported. supported values: \'+d.join(", "));return n}function p(e){if("function"==typeof e){return null!=/^function\\s+\\w*\\s*\\(\\s*\\)\\s*{\\s+\\[native code\\]\\s+}$/i.exec(Function.prototype.toString.call(e))}}function g(u,t,a){a=a||[];function s(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return{dispatch:function(e){return u.replacer&&(e=u.replacer(e)),this["_"+(null===e?"null":typeof e)](e)},_object:function(t){var e=Object.prototype.toString.call(t),n=/\\[object (.*)\\]/i.exec(e);n=(n=n?n[1]:"unknown:["+e+"]").toLowerCase();var r;if(0<=(r=a.indexOf(t)))return this.dispatch("[CIRCULAR:"+r+"]");if(a.push(t),void 0!==f&&f.isBuffer&&f.isBuffer(t))return s("buffer:"),s(t);if("object"===n||"function"===n||"asyncfunction"===n){var o=Object.keys(t);u.unorderedObjects&&(o=o.sort()),!1===u.respectType||p(t)||o.splice(0,0,"prototype","__proto__","constructor"),u.excludeKeys&&(o=o.filter(function(e){return!u.excludeKeys(e)})),s("object:"+o.length+":");var i=this;return o.forEach(function(e){i.dispatch(e),s(":"),u.excludeValues||i.dispatch(t[e]),s(",")})}if(!this["_"+n]){if(u.ignoreUnknown)return s("["+n+"]");throw new Error(\'Unknown object type "\'+n+\'"\')}this["_"+n](t)},_array:function(e,t){t=void 0!==t?t:!1!==u.unorderedArrays;var n=this;if(s("array:"+e.length+":"),!t||e.length<=1)return e.forEach(function(e){return n.dispatch(e)});var r=[],o=e.map(function(e){var t=new y,n=a.slice();return g(u,t,n).dispatch(e),r=r.concat(n.slice(a.length)),t.read().toString()});return a=a.concat(r),o.sort(),this._array(o,!1)},_date:function(e){return s("date:"+e.toJSON())},_symbol:function(e){return s("symbol:"+e.toString())},_error:function(e){return s("error:"+e.toString())},_boolean:function(e){return s("bool:"+e.toString())},_string:function(e){s("string:"+e.length+":"),s(e.toString())},_function:function(e){s("fn:"),p(e)?this.dispatch("[native]"):this.dispatch(e.toString()),!1!==u.respectFunctionNames&&this.dispatch("function-name:"+String(e.name)),u.respectFunctionProperties&&this._object(e)},_number:function(e){return s("number:"+e.toString())},_xml:function(e){return s("xml:"+e.toString())},_null:function(){return s("Null")},_undefined:function(){return s("Undefined")},_regexp:function(e){return s("regex:"+e.toString())},_uint8array:function(e){return s("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return s("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return s("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return s("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return s("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return s("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return s("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return s("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return s("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return s("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return s("url:"+e.toString())},_map:function(e){s("map:");var t=Array.from(e);return this._array(t,!1!==u.unorderedSets)},_set:function(e){s("set:");var t=Array.from(e);return this._array(t,!1!==u.unorderedSets)},_file:function(e){return s("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(u.ignoreUnknown)return s("[blob]");throw Error(\'Hashing Blob objects is currently not supported\\n(see https://github.com/puleos/object-hash/issues/26)\\nUse "options.replacer" or "options.ignoreUnknown"\\n\')},_domwindow:function(){return s("domwindow")},_bigint:function(e){return s("bigint:"+e.toString())},_process:function(){return s("process")},_timer:function(){return s("timer")},_pipe:function(){return s("pipe")},_tcp:function(){return s("tcp")},_udp:function(){return s("udp")},_tty:function(){return s("tty")},_statwatcher:function(){return s("statwatcher")},_securecontext:function(){return s("securecontext")},_connection:function(){return s("connection")},_zlib:function(){return s("zlib")},_context:function(){return s("context")},_nodescript:function(){return s("nodescript")},_httpparser:function(){return s("httpparser")},_dataview:function(){return s("dataview")},_signal:function(){return s("signal")},_fsevent:function(){return s("fsevent")},_tlswrap:function(){return s("tlswrap")}}}function y(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}m.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),g(t=h(e,t),n).dispatch(e)}}).call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,f){(function(e,t,n,r,o,i,u,a,s){!function(e){"use strict";var f="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),u="A".charCodeAt(0),a="-".charCodeAt(0),s="_".charCodeAt(0);function c(e){var t=e.charCodeAt(0);return t===n||t===a?62:t===r||t===s?63:t<o?-1:t<o+10?t-o+26+26:t<u+26?t-u:t<i+26?t-i+26:void 0}e.toByteArray=function(e){var t,n;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.length,o="="===e.charAt(r-2)?2:"="===e.charAt(r-1)?1:0,i=new f(3*e.length/4-o),u=0<o?e.length-4:e.length,a=0;function s(e){i[a++]=e}for(t=0;t<u;t+=4,0)s((16711680&(n=c(e.charAt(t))<<18|c(e.charAt(t+1))<<12|c(e.charAt(t+2))<<6|c(e.charAt(t+3))))>>16),s((65280&n)>>8),s(255&n);return 2==o?s(255&(n=c(e.charAt(t))<<2|c(e.charAt(t+1))>>4)):1==o&&(s((n=c(e.charAt(t))<<10|c(e.charAt(t+1))<<4|c(e.charAt(t+2))>>2)>>8&255),s(255&n)),i},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,u="";function a(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],u+=a((o=n)>>18&63)+a(o>>12&63)+a(o>>6&63)+a(63&o);switch(i){case 1:u+=a((n=e[e.length-1])>>2),u+=a(n<<4&63),u+="==";break;case 2:u+=a((n=(e[e.length-2]<<8)+e[e.length-1])>>10),u+=a(n>>4&63),u+=a(n<<2&63),u+="="}return u}}(void 0===f?this.base64js={}:f)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(O,e,H){(function(e,t,g,n,r,o,i,u,a){var s=O("base64-js"),f=O("ieee754");function g(e,t,n){if(!(this instanceof g))return new g(e,t,n);var r,o,i,u,a,s=typeof e;if("base64"===t&&"string"==s)for(e=(r=e).trim?r.trim():r.replace(/^\\s+|\\s+$/g,"");e.length%4!=0;)e+="=";if("number"==s)o=x(e);else if("string"==s)o=g.byteLength(e,t);else{if("object"!=s)throw new Error("First argument needs to be a number, array or string.");o=x(e.length)}if(g._useTypedArrays?i=g._augment(new Uint8Array(o)):((i=this).length=o,i._isBuffer=!0),g._useTypedArrays&&"number"==typeof e.byteLength)i._set(e);else if(S(a=e)||g.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length)for(u=0;u<o;u++)g.isBuffer(e)?i[u]=e.readUInt8(u):i[u]=e[u];else if("string"==s)i.write(e,0,t);else if("number"==s&&!g._useTypedArrays&&!n)for(u=0;u<o;u++)i[u]=0;return i}function y(e,t,n,r){return g._charsWritten=T(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return g._charsWritten=T(function(e){for(var t,n,r,o=[],i=0;i<e.length;i++)t=e.charCodeAt(i),n=t>>8,r=t%256,o.push(r),o.push(n);return o}(t),e,n,r)}function c(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}function l(e,t,n,r){r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+1<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(o=e[t],t+1<i&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<i&&(o|=e[t+1])),o}function d(e,t,n,r){r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+3<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(t+2<i&&(o=e[t+2]<<16),t+1<i&&(o|=e[t+1]<<8),o|=e[t],t+3<i&&(o+=e[t+3]<<24>>>0)):(t+1<i&&(o=e[t+1]<<16),t+2<i&&(o|=e[t+2]<<8),t+3<i&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function h(e,t,n,r){if(r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=l(e,t,n,!0);return 32768&o?-1*(65535-o+1):o}}function p(e,t,n,r){if(r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=d(e,t,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function b(e,t,n,r){return r||(D("boolean"==typeof n,"missing or invalid endian"),D(t+3<e.length,"Trying to read beyond buffer length")),f.read(e,t,n,23,4)}function m(e,t,n,r){return r||(D("boolean"==typeof n,"missing or invalid endian"),D(t+7<e.length,"Trying to read beyond buffer length")),f.read(e,t,n,52,8)}function v(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+1<e.length,"trying to write beyond buffer length"),N(t,65535));var i=e.length;if(!(i<=n))for(var u=0,a=Math.min(i-n,2);u<a;u++)e[n+u]=(t&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function _(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3<e.length,"trying to write beyond buffer length"),N(t,4294967295));var i=e.length;if(!(i<=n))for(var u=0,a=Math.min(i-n,4);u<a;u++)e[n+u]=t>>>8*(r?u:3-u)&255}function E(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+1<e.length,"Trying to write beyond buffer length"),Y(t,32767,-32768)),e.length<=n||v(e,0<=t?t:65535+t+1,n,r,o)}function I(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3<e.length,"Trying to write beyond buffer length"),Y(t,2147483647,-2147483648)),e.length<=n||_(e,0<=t?t:4294967295+t+1,n,r,o)}function A(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3<e.length,"Trying to write beyond buffer length"),F(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||f.write(e,t,n,r,23,4)}function B(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+7<e.length,"Trying to write beyond buffer length"),F(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||f.write(e,t,n,r,52,8)}H.Buffer=g,H.SlowBuffer=g,H.INSPECT_MAX_BYTES=50,g.poolSize=8192,g._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.isBuffer=function(e){return!(null==e||!e._isBuffer)},g.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=C(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=k(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},g.concat=function(e,t){if(D(S(e),"Usage: Buffer.concat(list, [totalLength])\\nlist should be an Array."),0===e.length)return new g(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new g(t),r=0,o=0;o<e.length;o++){var i=e[o];i.copy(n,r),r+=i.length}return n},g.prototype.write=function(e,t,n,r){var o;isFinite(t)?isFinite(n)||(r=n,n=void 0):(o=r,r=t,t=n,n=o),t=Number(t)||0;var i,u,a,s,f,c,l,d,h,p=this.length-t;switch((!n||p<(n=Number(n)))&&(n=p),r=String(r||"utf8").toLowerCase()){case"hex":i=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o);var i=t.length;D(i%2==0,"Invalid hex string"),i/2<r&&(r=i/2);for(var u=0;u<r;u++){var a=parseInt(t.substr(2*u,2),16);D(!isNaN(a),"Invalid hex string"),e[n+u]=a}return g._charsWritten=2*u,u}(this,e,t,n);break;case"utf8":case"utf-8":c=this,l=e,d=t,h=n,i=g._charsWritten=T(C(l),c,d,h);break;case"ascii":case"binary":i=y(this,e,t,n);break;case"base64":u=this,a=e,s=t,f=n,i=g._charsWritten=T(k(a),u,s,f);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=w(this,e,t,n);break;default:throw new Error("Unknown encoding")}return i},g.prototype.toString=function(e,t,n){var r,o,i,u,a=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):n=a.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0);(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;i++)o+=j(e[i]);return o}(a,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=M(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+M(o)}(a,t,n);break;case"ascii":case"binary":r=c(a,t,n);break;case"base64":o=a,u=n,r=0===(i=t)&&u===o.length?s.fromByteArray(o):s.fromByteArray(o.slice(i,u));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(a,t,n);break;default:throw new Error("Unknown encoding")}return r},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t=t||0,r!==n&&0!==e.length&&0!==this.length){D(n<=r,"sourceEnd < sourceStart"),D(0<=t&&t<e.length,"targetStart out of bounds"),D(0<=n&&n<this.length,"sourceStart out of bounds"),D(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;if(o<100||!g._useTypedArrays)for(var i=0;i<o;i++)e[i+t]=this[i+n];else e._set(this.subarray(n,n+o),t)}},g.prototype.slice=function(e,t){var n=this.length;if(e=U(e,n,0),t=U(t,n,n),g._useTypedArrays)return g._augment(this.subarray(e,t));for(var r=t-e,o=new g(r,void 0,!0),i=0;i<r;i++)o[i]=this[i+e];return o},g.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},g.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},g.prototype.readUInt8=function(e,t){if(t||(D(null!=e,"missing offset"),D(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},g.prototype.readUInt16LE=function(e,t){return l(this,e,!0,t)},g.prototype.readUInt16BE=function(e,t){return l(this,e,!1,t)},g.prototype.readUInt32LE=function(e,t){return d(this,e,!0,t)},g.prototype.readUInt32BE=function(e,t){return d(this,e,!1,t)},g.prototype.readInt8=function(e,t){if(t||(D(null!=e,"missing offset"),D(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,t){return h(this,e,!0,t)},g.prototype.readInt16BE=function(e,t){return h(this,e,!1,t)},g.prototype.readInt32LE=function(e,t){return p(this,e,!0,t)},g.prototype.readInt32BE=function(e,t){return p(this,e,!1,t)},g.prototype.readFloatLE=function(e,t){return b(this,e,!0,t)},g.prototype.readFloatBE=function(e,t){return b(this,e,!1,t)},g.prototype.readDoubleLE=function(e,t){return m(this,e,!0,t)},g.prototype.readDoubleBE=function(e,t){return m(this,e,!1,t)},g.prototype.writeUInt8=function(e,t,n){n||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t<this.length,"trying to write beyond buffer length"),N(e,255)),t>=this.length||(this[t]=e)},g.prototype.writeUInt16LE=function(e,t,n){v(this,e,t,!0,n)},g.prototype.writeUInt16BE=function(e,t,n){v(this,e,t,!1,n)},g.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},g.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},g.prototype.writeInt8=function(e,t,n){n||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t<this.length,"Trying to write beyond buffer length"),Y(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},g.prototype.writeInt16LE=function(e,t,n){E(this,e,t,!0,n)},g.prototype.writeInt16BE=function(e,t,n){E(this,e,t,!1,n)},g.prototype.writeInt32LE=function(e,t,n){I(this,e,t,!0,n)},g.prototype.writeInt32BE=function(e,t,n){I(this,e,t,!1,n)},g.prototype.writeFloatLE=function(e,t,n){A(this,e,t,!0,n)},g.prototype.writeFloatBE=function(e,t,n){A(this,e,t,!1,n)},g.prototype.writeDoubleLE=function(e,t,n){B(this,e,t,!0,n)},g.prototype.writeDoubleBE=function(e,t,n){B(this,e,t,!1,n)},g.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),D("number"==typeof e&&!isNaN(e),"value is not a number"),D(t<=n,"end < start"),n!==t&&0!==this.length){D(0<=t&&t<this.length,"start out of bounds"),D(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},g.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=j(this[n]),n===H.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},g.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(g._useTypedArrays)return new g(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var L=g.prototype;function U(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function x(e){return(e=~~Math.ceil(+e))<0?0:e}function S(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function C(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else{var o=n;55296<=r&&r<=57343&&n++;for(var i=encodeURIComponent(e.slice(o,n+1)).substr(1).split("%"),u=0;u<i.length;u++)t.push(parseInt(i[u],16))}}return t}function k(e){return s.toByteArray(e)}function T(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function M(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function N(e,t){D("number"==typeof e,"cannot write a non-number as a number"),D(0<=e,"specified a negative value for writing an unsigned value"),D(e<=t,"value is larger than maximum value for type"),D(Math.floor(e)===e,"value has a fractional component")}function Y(e,t,n){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(n<=e,"value smaller than minimum allowed value"),D(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(n<=e,"value smaller than minimum allowed value")}function D(e,t){if(!e)throw new Error(t||"Failed assertion")}g._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=L.get,e.set=L.set,e.write=L.write,e.toString=L.toString,e.toLocaleString=L.toString,e.toJSON=L.toJSON,e.copy=L.copy,e.slice=L.slice,e.readUInt8=L.readUInt8,e.readUInt16LE=L.readUInt16LE,e.readUInt16BE=L.readUInt16BE,e.readUInt32LE=L.readUInt32LE,e.readUInt32BE=L.readUInt32BE,e.readInt8=L.readInt8,e.readInt16LE=L.readInt16LE,e.readInt16BE=L.readInt16BE,e.readInt32LE=L.readInt32LE,e.readInt32BE=L.readInt32BE,e.readFloatLE=L.readFloatLE,e.readFloatBE=L.readFloatBE,e.readDoubleLE=L.readDoubleLE,e.readDoubleBE=L.readDoubleBE,e.writeUInt8=L.writeUInt8,e.writeUInt16LE=L.writeUInt16LE,e.writeUInt16BE=L.writeUInt16BE,e.writeUInt32LE=L.writeUInt32LE,e.writeUInt32BE=L.writeUInt32BE,e.writeInt8=L.writeInt8,e.writeInt16LE=L.writeInt16LE,e.writeInt16BE=L.writeInt16BE,e.writeInt32LE=L.writeInt32LE,e.writeInt32BE=L.writeInt32BE,e.writeFloatLE=L.writeFloatLE,e.writeFloatBE=L.writeFloatBE,e.writeDoubleLE=L.writeDoubleLE,e.writeDoubleBE=L.writeDoubleBE,e.fill=L.fill,e.inspect=L.inspect,e.toArrayBuffer=L.toArrayBuffer,e}}).call(this,O("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(l,d,e){(function(e,t,u,n,r,o,i,a,s){var u=l("buffer").Buffer,f=4,c=new u(f);c.fill(0);d.exports={hash:function(e,t,n,r){return u.isBuffer(e)||(e=new u(e)),function(e,t,n){for(var r=new u(t),o=n?r.writeInt32BE:r.writeInt32LE,i=0;i<e.length;i++)o.call(r,e[i],4*i,!0);return r}(t(function(e,t){var n;e.length%f!=0&&(n=e.length+(f-e.length%f),e=u.concat([e,c],n));for(var r=[],o=t?e.readInt32BE:e.readInt32LE,i=0;i<e.length;i+=f)r.push(o.call(e,i));return r}(e,r),8*e.length),n,r)}}}).call(this,l("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(w,e,b){(function(e,t,a,n,r,o,i,u,s){var a=w("buffer").Buffer,f=w("./sha"),c=w("./sha256"),l=w("./rng"),d={sha1:f,sha256:c,md5:w("./md5")},h=64,p=new a(h);function g(e,r){var o=d[e=e||"sha1"],i=[];return o||y("algorithm:",e,"is not yet supported"),{update:function(e){return a.isBuffer(e)||(e=new a(e)),i.push(e),e.length,this},digest:function(e){var t=a.concat(i),n=r?function(e,t,n){a.isBuffer(t)||(t=new a(t)),a.isBuffer(n)||(n=new a(n)),t.length>h?t=e(t):t.length<h&&(t=a.concat([t,p],h));for(var r=new a(h),o=new a(h),i=0;i<h;i++)r[i]=54^t[i],o[i]=92^t[i];var u=e(a.concat([r,n]));return e(a.concat([o,u]))}(o,r,t):o(t);return i=null,e?n.toString(e):n}}}function y(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\\n"))}p.fill(0),b.createHash=function(e){return g(e)},b.createHmac=g,b.randomBytes=function(e,t){if(!t||!t.call)return new a(l(e));try{t.call(this,void 0,new a(l(e)))}catch(e){t(e)}},function(e,t){for(var n in e)t(e[n],n)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){b[e]=function(){y("sorry,",e,"is not implemented yet")}})}).call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(w,b,e){(function(e,t,n,r,o,i,u,a,s){var f=w("./helpers");function c(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<e.length;u+=16){var a=n,s=r,f=o,c=i,n=d(n,r,o,i,e[u+0],7,-680876936),i=d(i,n,r,o,e[u+1],12,-389564586),o=d(o,i,n,r,e[u+2],17,606105819),r=d(r,o,i,n,e[u+3],22,-1044525330);n=d(n,r,o,i,e[u+4],7,-176418897),i=d(i,n,r,o,e[u+5],12,1200080426),o=d(o,i,n,r,e[u+6],17,-1473231341),r=d(r,o,i,n,e[u+7],22,-45705983),n=d(n,r,o,i,e[u+8],7,1770035416),i=d(i,n,r,o,e[u+9],12,-1958414417),o=d(o,i,n,r,e[u+10],17,-42063),r=d(r,o,i,n,e[u+11],22,-1990404162),n=d(n,r,o,i,e[u+12],7,1804603682),i=d(i,n,r,o,e[u+13],12,-40341101),o=d(o,i,n,r,e[u+14],17,-1502002290),n=h(n,r=d(r,o,i,n,e[u+15],22,1236535329),o,i,e[u+1],5,-165796510),i=h(i,n,r,o,e[u+6],9,-1069501632),o=h(o,i,n,r,e[u+11],14,643717713),r=h(r,o,i,n,e[u+0],20,-373897302),n=h(n,r,o,i,e[u+5],5,-701558691),i=h(i,n,r,o,e[u+10],9,38016083),o=h(o,i,n,r,e[u+15],14,-660478335),r=h(r,o,i,n,e[u+4],20,-405537848),n=h(n,r,o,i,e[u+9],5,568446438),i=h(i,n,r,o,e[u+14],9,-1019803690),o=h(o,i,n,r,e[u+3],14,-187363961),r=h(r,o,i,n,e[u+8],20,1163531501),n=h(n,r,o,i,e[u+13],5,-1444681467),i=h(i,n,r,o,e[u+2],9,-51403784),o=h(o,i,n,r,e[u+7],14,1735328473),n=p(n,r=h(r,o,i,n,e[u+12],20,-1926607734),o,i,e[u+5],4,-378558),i=p(i,n,r,o,e[u+8],11,-2022574463),o=p(o,i,n,r,e[u+11],16,1839030562),r=p(r,o,i,n,e[u+14],23,-35309556),n=p(n,r,o,i,e[u+1],4,-1530992060),i=p(i,n,r,o,e[u+4],11,1272893353),o=p(o,i,n,r,e[u+7],16,-155497632),r=p(r,o,i,n,e[u+10],23,-1094730640),n=p(n,r,o,i,e[u+13],4,681279174),i=p(i,n,r,o,e[u+0],11,-358537222),o=p(o,i,n,r,e[u+3],16,-722521979),r=p(r,o,i,n,e[u+6],23,76029189),n=p(n,r,o,i,e[u+9],4,-640364487),i=p(i,n,r,o,e[u+12],11,-421815835),o=p(o,i,n,r,e[u+15],16,530742520),n=g(n,r=p(r,o,i,n,e[u+2],23,-995338651),o,i,e[u+0],6,-198630844),i=g(i,n,r,o,e[u+7],10,1126891415),o=g(o,i,n,r,e[u+14],15,-1416354905),r=g(r,o,i,n,e[u+5],21,-57434055),n=g(n,r,o,i,e[u+12],6,1700485571),i=g(i,n,r,o,e[u+3],10,-1894986606),o=g(o,i,n,r,e[u+10],15,-1051523),r=g(r,o,i,n,e[u+1],21,-2054922799),n=g(n,r,o,i,e[u+8],6,1873313359),i=g(i,n,r,o,e[u+15],10,-30611744),o=g(o,i,n,r,e[u+6],15,-1560198380),r=g(r,o,i,n,e[u+13],21,1309151649),n=g(n,r,o,i,e[u+4],6,-145523070),i=g(i,n,r,o,e[u+11],10,-1120210379),o=g(o,i,n,r,e[u+2],15,718787259),r=g(r,o,i,n,e[u+9],21,-343485551),n=y(n,a),r=y(r,s),o=y(o,f),i=y(i,c)}return Array(n,r,o,i)}function l(e,t,n,r,o,i){return y((u=y(y(t,e),y(r,i)))<<(a=o)|u>>>32-a,n);var u,a}function d(e,t,n,r,o,i,u){return l(t&n|~t&r,e,t,o,i,u)}function h(e,t,n,r,o,i,u){return l(t&r|n&~r,e,t,o,i,u)}function p(e,t,n,r,o,i,u){return l(t^n^r,e,t,o,i,u)}function g(e,t,n,r,o,i,u){return l(n^(t|~r),e,t,o,i,u)}function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}b.exports=function(e){return f.hash(e,c,16)}}).call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,l,t){(function(e,t,n,r,o,i,u,a,s){var f,c;c=function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n},l.exports=f||c}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(l,d,e){(function(e,t,n,r,o,i,u,a,s){var f=l("./helpers");function c(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,o,i,u,a=Array(80),s=1732584193,f=-271733879,c=-1732584194,l=271733878,d=-1009589776,h=0;h<e.length;h+=16){for(var p=s,g=f,y=c,w=l,b=d,m=0;m<80;m++){a[m]=m<16?e[h+m]:E(a[m-3]^a[m-8]^a[m-14]^a[m-16],1);var v=_(_(E(s,5),(o=f,i=c,u=l,(r=m)<20?o&i|~o&u:!(r<40)&&r<60?o&i|o&u|i&u:o^i^u)),_(_(d,a[m]),(n=m)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514)),d=l,l=c,c=E(f,30),f=s,s=v}s=_(s,p),f=_(f,g),c=_(c,y),l=_(l,w),d=_(d,b)}return Array(s,f,c,l,d)}function _(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function E(e,t){return e<<t|e>>>32-t}d.exports=function(e){return f.hash(e,c,20,!0)}}).call(this,l("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(l,d,e){(function(e,t,n,r,o,i,u,a,s){function B(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function L(e,t){return e>>>t|e<<32-t}function f(e,t){var n,r,o,i,u,a,s,f,c,l,d=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),h=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),p=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var g,y,w,b,m,v,_,E,I=0;I<e.length;I+=16){n=h[0],r=h[1],o=h[2],i=h[3],u=h[4],a=h[5],s=h[6],f=h[7];for(var A=0;A<64;A++)p[A]=A<16?e[A+I]:B(B(B((E=p[A-2],L(E,17)^L(E,19)^E>>>10),p[A-7]),(_=p[A-15],L(_,7)^L(_,18)^_>>>3)),p[A-16]),c=B(B(B(B(f,L(v=u,6)^L(v,11)^L(v,25)),(m=u)&a^~m&s),d[A]),p[A]),l=B(L(b=n,2)^L(b,13)^L(b,22),(g=n)&(y=r)^g&(w=o)^y&w),f=s,s=a,a=u,u=B(i,c),i=o,o=r,r=n,n=B(c,l);h[0]=B(n,h[0]),h[1]=B(r,h[1]),h[2]=B(o,h[2]),h[3]=B(i,h[3]),h[4]=B(u,h[4]),h[5]=B(a,h[5]),h[6]=B(s,h[6]),h[7]=B(f,h[7])}return h}var c=l("./helpers");d.exports=function(e){return c.hash(e,f,32,!0)}}).call(this,l("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,c,t){(function(e,t,n,r,o,i,u,a,s){function f(){}(e=c.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<n.length&&n.shift()())},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=f,e.addListener=f,e.once=f,e.off=f,e.removeListener=f,e.removeAllListeners=f,e.emit=f,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,f){(function(e,t,n,r,o,i,u,a,s){f.read=function(e,t,n,r,o){var i,u,a=8*o-r-1,s=(1<<a)-1,f=s>>1,c=-7,l=n?o-1:0,d=n?-1:1,h=e[t+l];for(l+=d,i=h&(1<<-c)-1,h>>=-c,c+=a;0<c;i=256*i+e[t+l],l+=d,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=r;0<c;u=256*u+e[t+l],l+=d,c-=8);if(0===i)i=1-f;else{if(i===s)return u?NaN:1/0*(h?-1:1);u+=Math.pow(2,r),i-=f}return(h?-1:1)*u*Math.pow(2,i-r)},f.write=function(e,t,n,r,o,i){var u,a,s,f=8*i-o-1,c=(1<<f)-1,l=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,u=c):(u=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-u))<1&&(u--,s*=2),2<=(t+=1<=u+l?d/s:d*Math.pow(2,1-l))*s&&(u++,s/=2),c<=u+l?(a=0,u=c):1<=u+l?(a=(t*s-1)*Math.pow(2,o),u+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,o),u=0));8<=o;e[n+h]=255&a,h+=p,a/=256,o-=8);for(u=u<<o|a,f+=o;0<f;e[n+h]=255&u,h+=p,u/=256,f-=8);e[n+h-p]|=128*g}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)});//# sourceURL=[module]\n//# sourceMappingURL=data:application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IsLTI0KS1NYXRoLnBvdygyLC03Nyk6MCxoPXI/MDppLTEscD1yPzE6LTEsZz10PDB8fDA9PT10JiYxL3Q8MD8xOjA7Zm9yKHQ9TWF0aC5hYnModCksaXNOYU4odCl8fHQ9PT0xLzA/KGE9aXNOYU4odCk/MTowLHU9Yyk6KHU9TWF0aC5mbG9vcihNYXRoLmxvZyh0KS9NYXRoLkxOMiksdCoocz1NYXRoLnBvdygyLC11KSk8MSYmKHUtLSxzKj0yKSwyPD0odCs9MTw9dStsP2QvczpkKk1hdGgucG93KDIsMS1sKSkqcyYmKHUrKyxzLz0yKSxjPD11K2w/KGE9MCx1PWMpOjE8PXUrbD8oYT0odCpzLTEpKk1hdGgucG93KDIsbyksdSs9bCk6KGE9dCpNYXRoLnBvdygyLGwtMSkqTWF0aC5wb3coMixvKSx1PTApKTs4PD1vO2VbbitoXT0yNTUmYSxoKz1wLGEvPTI1NixvLT04KTtmb3IodT11PDxvfGEsZis9bzswPGY7ZVtuK2hdPTI1NSZ1LGgrPXAsdS89MjU2LGYtPTgpO2VbbitoLXBdfD0xMjgqZ319KS5jYWxsKHRoaXMsZShcImxZcG9JMlwiKSxcInVuZGVmaW5lZFwiIT10eXBlb2Ygc2VsZj9zZWxmOlwidW5kZWZpbmVkXCIhPXR5cGVvZiB3aW5kb3c/d2luZG93Ont9LGUoXCJidWZmZXJcIikuQnVmZmVyLGFyZ3VtZW50c1szXSxhcmd1bWVudHNbNF0sYXJndW1lbnRzWzVdLGFyZ3VtZW50c1s2XSxcIi9ub2RlX21vZHVsZXMvaWVlZTc1NC9pbmRleC5qc1wiLFwiL25vZGVfbW9kdWxlcy9pZWVlNzU0XCIpfSx7YnVmZmVyOjMsbFlwb0kyOjEwfV19LHt9LFsxXSkoMSl9KTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../node_modules/object-hash/dist/object_hash.js\n')},"./src/auth/auth.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n}) : function(o, v) {\n o["default"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.signUp = exports.signOut = exports.signInWithTenant = exports.signInWithEmailAndPassword = exports.signInWithCustomToken = exports.setTenantId = exports.resetPassword = exports.isUserInitialized = exports.onUserChange = void 0;\nvar environment_1 = __webpack_require__(/*! ../environment */ "./src/environment/index.ts");\nvar firestore_1 = __webpack_require__(/*! ../firestore */ "./src/firestore/index.ts");\nvar functions = __importStar(__webpack_require__(/*! ../functions */ "./src/functions/index.ts"));\nvar calls_1 = __webpack_require__(/*! ../utils/calls */ "./src/utils/calls.ts");\nvar tenants_1 = __webpack_require__(/*! ./tenants */ "./src/auth/tenants.ts");\nvar pendingFnName = null;\nvar pendingGuard = function (callback, name) {\n if (typeof callback !== \'function\') {\n throw new Error(\'bug: pendingGuard got arg which is not a function\');\n }\n // @ts-ignore\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return __awaiter(void 0, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (pendingFnName) {\n throw new Error("Function \\"" + pendingFnName + "\\" is pending, other auth functions "\n + \'should not be used until it finishes\');\n }\n result = undefined;\n _a.label = 1;\n case 1:\n _a.trys.push([1, , 3, 4]);\n pendingFnName = name;\n return [4 /*yield*/, callback.apply(void 0, args)];\n case 2:\n result = _a.sent();\n return [3 /*break*/, 4];\n case 3:\n pendingFnName = null;\n return [7 /*endfinally*/];\n case 4: return [2 /*return*/, result];\n }\n });\n });\n };\n};\nvar _a = (function () {\n var promiseResolution;\n return [\n new Promise(function (resolve) {\n promiseResolution = resolve;\n }), function (tenantId) {\n environment_1.FirebaseEnvironment.auth.tenantId = tenantId;\n promiseResolution(tenantId);\n },\n ];\n})(), tenantIsSet = _a[0], setTenant = _a[1];\nvar getUserRef = function () { return __awaiter(void 0, void 0, Promise, function () {\n var userDocument;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!environment_1.FirebaseEnvironment.auth.currentUser) return [3 /*break*/, 2];\n return [4 /*yield*/, (0, firestore_1.getCollectionWithPath)(\'users\')\n .getDocuments([{ field: \'authUserId\', operator: \'==\', value: environment_1.FirebaseEnvironment.auth.currentUser.uid }], undefined, 1)];\n case 1:\n userDocument = _a.sent();\n return [2 /*return*/, (userDocument.data.length && userDocument.data[0].ref) || null];\n case 2: return [2 /*return*/, null];\n }\n });\n}); };\n/**\n * @param callback gets called after cca 2s regardless whether user is logged-in or not\n * (according to https://stackoverflow.com/questions/37873608/how-do-i-detect-if-a-user-is-already-logged-in-firebase)\n */\nvar onUserChange = function (callback) {\n environment_1.FirebaseEnvironment.auth.onAuthStateChanged(function () { return __awaiter(void 0, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = callback;\n return [4 /*yield*/, getUserRef()];\n case 1:\n _a.apply(void 0, [_b.sent()]);\n return [2 /*return*/];\n }\n });\n }); });\n};\nexports.onUserChange = onUserChange;\n/**\n * @returns promise which resolves when user is initialized\n */\nexports.isUserInitialized = (0, calls_1.once)(function () {\n return new Promise(function (resolve) {\n (0, exports.onUserChange)(resolve);\n });\n});\nvar resetPassword = function (email) { return __awaiter(void 0, void 0, void 0, function () {\n var tenantId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tenantIsSet];\n case 1:\n tenantId = _a.sent();\n return [4 /*yield*/, functions.resetPassword({\n email: email,\n tenantId: tenantId,\n })];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n}); };\nexports.resetPassword = resetPassword;\nvar setTenantId = function (tenantId) {\n if (environment_1.FirebaseEnvironment.auth.tenantId != null) {\n throw new Error(\'setTenantId() can be called only one time.\');\n }\n setTenant(tenantId);\n};\nexports.setTenantId = setTenantId;\nvar _signInWithCustomToken = function (token) { return __awaiter(void 0, void 0, Promise, function () {\n var user;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, environment_1.FirebaseEnvironment.auth.signInWithCustomToken(token)];\n case 1:\n user = (_a.sent()).user;\n if (!user) {\n throw new Error("signInWithCustomToken failed for tenant " + environment_1.FirebaseEnvironment.auth.tenantId);\n }\n return [2 /*return*/, user.uid];\n }\n });\n}); };\n/**\n * signInWithEmailAndPassword is used in Tivio applications and can be used as well in the 3rd party applications developed by our partner.\n *\n * Sometimes it should use firebase directly, it is the case when we are managing the user accounts (garaz.tv).\n * If the user accounts are managed by partner (oktagon), we have to sign in by signInWithTenant cloud function,\n * which will handle communication with partner\'s backend and return customToken.\n *\n * @throws if already signed in\n */\nvar _signInWithEmailAndPassword = function (email, password) { return __awaiter(void 0, void 0, Promise, function () {\n var tenantId, _a, user;\n var _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, tenantIsSet];\n case 1:\n tenantId = _c.sent();\n return [4 /*yield*/, (0, exports.isUserInitialized)()];\n case 2:\n _c.sent();\n if (environment_1.FirebaseEnvironment.auth.currentUser) {\n throw new Error(\'Already signed in\');\n }\n _a = (_b = (0, tenants_1.getTenantInfo)(tenantId)) === null || _b === void 0 ? void 0 : _b.name;\n switch (_a) {\n case tenants_1.TenantName.oktagon: return [3 /*break*/, 3];\n }\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, _signInWithTenant({ email: email, password: password, tenantId: tenantId })];\n case 4: return [2 /*return*/, _c.sent()];\n case 5: return [4 /*yield*/, environment_1.FirebaseEnvironment.auth.signInWithEmailAndPassword(email, password)];\n case 6:\n user = (_c.sent()).user;\n if (!user) {\n throw new Error("signInWithEmailAndPassword failed for user " + email + " and tenant " + tenantId);\n }\n return [2 /*return*/, user.uid];\n }\n });\n}); };\n/**\n * @throws if already signed in\n */\nvar _signInWithTenant = function (payload) { return __awaiter(void 0, void 0, Promise, function () {\n var tenantId, token;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tenantIsSet];\n case 1:\n tenantId = _a.sent();\n return [4 /*yield*/, (0, exports.isUserInitialized)()];\n case 2:\n _a.sent();\n if (environment_1.FirebaseEnvironment.auth.currentUser) {\n throw new Error(\'Already signed in\');\n }\n return [4 /*yield*/, functions.signInWithTenant(__assign(__assign({}, payload), { tenantId: tenantId }))];\n case 3:\n token = _a.sent();\n return [2 /*return*/, _signInWithCustomToken(token)];\n }\n });\n}); };\n/**\n * @throws if already signed out\n */\nvar _signOut = function () { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tenantIsSet];\n case 1:\n _a.sent();\n return [4 /*yield*/, (0, exports.isUserInitialized)()];\n case 2:\n _a.sent();\n return [4 /*yield*/, environment_1.FirebaseEnvironment.auth.signOut()];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n}); };\n/**\n * signUp is used in Tivio applications and can be used as well in the 3rd party applications developed by our partner.\n *\n * Currently, it will always call cloud function, which will register user and create document in users collection.\n * The signUp function has to automatically sign the user in by calling singInWithEmailAndPassword method.\n */\nvar _signUp = function (email, password, username, referralToken) { return __awaiter(void 0, void 0, void 0, function () {\n var tenantId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, tenantIsSet];\n case 1:\n tenantId = _a.sent();\n return [4 /*yield*/, functions.signUpWithTenant({\n email: email,\n password: password,\n referralToken: referralToken,\n tenantId: tenantId,\n username: username,\n })];\n case 2:\n _a.sent();\n return [2 /*return*/, _signInWithEmailAndPassword(email, password)];\n }\n });\n}); };\nexports.signInWithCustomToken = pendingGuard(_signInWithCustomToken, \'signInWithCustomToken\');\nexports.signInWithEmailAndPassword = pendingGuard(_signInWithEmailAndPassword, \'signInWithEmailAndPassword\');\nexports.signInWithTenant = pendingGuard(_signInWithTenant, \'signInWithTenant\');\nexports.signOut = pendingGuard(_signOut, \'signOut\');\nexports.signUp = pendingGuard(_signUp, \'signUp\');\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXV0aC9hdXRoLnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFHQTtBQUNBO0FBRUE7QUFFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFBQTs7Ozs7OztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7Ozs7QUFHQTtBQUNBOztBQUFBOzs7QUFFQTs7QUFHQTs7OztBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBSUE7Ozs7O0FBQ0E7QU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AgIHVzZXJuYW1lLFxuICAgIH0pXG5cbiAgICByZXR1cm4gX3NpZ25JbldpdGhFbWFpbEFuZFBhc3N3b3JkKGVtYWlsLCBwYXNzd29yZClcbn1cblxuZXhwb3J0IGNvbnN0IHNpZ25JbldpdGhDdXN0b21Ub2tlbiA9IHBlbmRpbmdHdWFyZChfc2lnbkluV2l0aEN1c3RvbVRva2VuLCAnc2lnbkluV2l0aEN1c3RvbVRva2VuJylcbmV4cG9ydCBjb25zdCBzaWduSW5XaXRoRW1haWxBbmRQYXNzd29yZCA9IHBlbmRpbmdHdWFyZChfc2lnbkluV2l0aEVtYWlsQW5kUGFzc3dvcmQsICdzaWduSW5XaXRoRW1haWxBbmRQYXNzd29yZCcpXG5leHBvcnQgY29uc3Qgc2lnbkluV2l0aFRlbmFudCA9IHBlbmRpbmdHdWFyZChfc2lnbkluV2l0aFRlbmFudCwgJ3NpZ25JbldpdGhUZW5hbnQnKVxuZXhwb3J0IGNvbnN0IHNpZ25PdXQgPSBwZW5kaW5nR3VhcmQoX3NpZ25PdXQsICdzaWduT3V0JylcbmV4cG9ydCBjb25zdCBzaWduVXAgPSBwZW5kaW5nR3VhcmQoX3NpZ25VcCwgJ3NpZ25VcCcpXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/auth/auth.ts\n')},"./src/auth/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./auth */ "./src/auth/auth.ts"), exports);\n__exportStar(__webpack_require__(/*! ./tenants */ "./src/auth/tenants.ts"), exports);\n__exportStar(__webpack_require__(/*! ./types */ "./src/auth/types.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXV0aC9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2F1dGgvaW5kZXgudHM/Y2FhNCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2F1dGgnXG5leHBvcnQgKiBmcm9tICcuL3RlbmFudHMnXG5leHBvcnQgKiBmcm9tICcuL3R5cGVzJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/auth/index.ts\n')},"./src/auth/tenants.ts":function(__unused_webpack_module,exports){"use strict";eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.getTenantInfo = exports.TenantName = void 0;\nvar TenantName;\n(function (TenantName) {\n TenantName[\"grape\"] = \"grape\";\n TenantName[\"oktagon\"] = \"oktagon\";\n TenantName[\"o2Demo\"] = \"o2_demo\";\n})(TenantName = exports.TenantName || (exports.TenantName = {}));\nvar tenantInfos = [\n {\n id: 'Xz3t0GHDgmPwjHRKt1Ga-4vicx',\n name: TenantName.grape,\n stage: 'production',\n },\n {\n id: 'XhkAHxcqCBfqOXFcqe8s-mi6aw',\n name: TenantName.grape,\n stage: 'dev',\n },\n {\n id: 'XA6ZOtuDD90uHsRkXNyj-e2xvz',\n name: TenantName.oktagon,\n stage: 'production',\n },\n {\n id: 'Xo6dD3w9EPgPBsyclQaG-xdlns',\n name: TenantName.oktagon,\n stage: 'dev',\n },\n {\n id: 'X0Q4o9TigUUTNe6TYAqR-j5sg1',\n name: TenantName.o2Demo,\n stage: 'production',\n },\n {\n id: 'XQVQisSMOXeDswNOFwwk-kw39b',\n name: TenantName.o2Demo,\n stage: 'dev',\n },\n];\nvar getTenantInfo = function (tenantId) {\n var _a;\n return (_a = tenantInfos.find(function (_a) {\n var id = _a.id;\n return id === tenantId;\n })) !== null && _a !== void 0 ? _a : null;\n};\nexports.getTenantInfo = getTenantInfo;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXV0aC90ZW5hbnRzLnRzLmpzIiwibWFwcGluZ3MiOiI7OztBQU1BO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTs7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBRkEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2F1dGgvdGVuYW50cy50cz84MjhjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgVGVuYW50SW5mbyB7XG4gICAgaWQ6IHN0cmluZyxcbiAgICBuYW1lOiBUZW5hbnROYW1lLFxuICAgIHN0YWdlOiAnZGV2JyB8ICdwcm9kdWN0aW9uJ1xufVxuXG5leHBvcnQgZW51bSBUZW5hbnROYW1lIHtcbiAgICBncmFwZSA9ICdncmFwZScsXG4gICAgb2t0YWdvbiA9ICdva3RhZ29uJyxcbiAgICBvMkRlbW8gPSAnbzJfZGVtbycsX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VsbCA9PiB7XG4gICAgcmV0dXJuIHRlbmFudEluZm9zLmZpbmQoKHsgaWQgfSkgPT4gaWQgPT09IHRlbmFudElkKSA/PyBudWxsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/auth/tenants.ts\n")},"./src/auth/types.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/environment/apps/firebaseApps.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.registerAppInstance = exports.setAppInstance = exports.getCurrentFirebaseAppInstance = exports.getFirebaseAppInstance = void 0;\nvar appInstances = {};\nvar currentAppInstance = null;\n/**\n * Returns current firebase app instance\n *\n * @throws If firebase app has not yet been initialized for specified\n */\nvar getCurrentFirebaseAppInstance = function () {\n if (!currentAppInstance) {\n throw new Error(\'Firebase app has not been initialized yet. First call registerAppInstance()\');\n }\n return currentAppInstance;\n};\nexports.getCurrentFirebaseAppInstance = getCurrentFirebaseAppInstance;\n/**\n * Returns firebase app instance of a specific environment\n *\n * @returns firebase app instance based on environment name\n */\nvar getFirebaseAppInstance = function (environmentName) {\n var _a;\n return (_a = appInstances[environmentName]) !== null && _a !== void 0 ? _a : null;\n};\nexports.getFirebaseAppInstance = getFirebaseAppInstance;\n/**\n * Registers a new initialized firebase app as an environment\n */\nvar registerAppInstance = function (environmentName, app) {\n appInstances[environmentName] = app;\n if (!currentAppInstance) {\n setAppInstance(environmentName);\n }\n};\nexports.registerAppInstance = registerAppInstance;\n/**\n * Sets/changes firebase environment\n *\n * @throws If app instance for this environment name does not exist\n */\nvar setAppInstance = function (environmentName) {\n var environment = appInstances[environmentName];\n if (!environment) {\n throw new Error("Firebase environment (" + environmentName + ") doesn\'t exist");\n }\n currentAppInstance = environment;\n};\nexports.setAppInstance = setAppInstance;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjoz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bnRcbiAqXG4gKiBAdGhyb3dzIElmIGFwcCBpbnN0YW5jZSBmb3IgdGhpcyBlbnZpcm9ubWVudCBuYW1lIGRvZXMgbm90IGV4aXN0XG4gKi9cbmNvbnN0IHNldEFwcEluc3RhbmNlID0gKGVudmlyb25tZW50TmFtZTogRW52aXJvbm1lbnQpID0+IHtcbiAgICBjb25zdCBlbnZpcm9ubWVudCA9IGFwcEluc3RhbmNlc1tlbnZpcm9ubWVudE5hbWVdXG5cbiAgICBpZiAoIWVudmlyb25tZW50KSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcihgRmlyZWJhc2UgZW52aXJvbm1lbnQgKCR7ZW52aXJvbm1lbnROYW1lfSkgZG9lc24ndCBleGlzdGApXG4gICAgfVxuXG4gICAgY3VycmVudEFwcEluc3RhbmNlID0gZW52aXJvbm1lbnRcbn1cblxuZXhwb3J0IHtcbiAgICBnZXRGaXJlYmFzZUFwcEluc3RhbmNlLFxuICAgIGdldEN1cnJlbnRGaXJlYmFzZUFwcEluc3RhbmNlLFxuICAgIHNldEFwcEluc3RhbmNlLFxuICAgIHJlZ2lzdGVyQXBwSW5zdGFuY2UsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/environment/apps/firebaseApps.ts\n')},"./src/environment/apps/types.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.Environment = void 0;\nvar Environment;\n(function (Environment) {\n Environment["default"] = "default";\n Environment["development"] = "development";\n Environment["production"] = "production";\n Environment["test"] = "test";\n})(Environment || (Environment = {}));\nexports.Environment = Environment;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZW52aXJvbm1lbnQvYXBwcy90eXBlcy50cy5qcyIsIm1hcHBpbmdzIjoiOzs7QUFZQTtBQUFBO0FBQ0E7QUFDQTtBQUNB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src/environment/apps/types.ts\n')},"./src/environment/firebaseEnvironments.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.getCurrentEnvironment = exports.setFirebaseEnvironment = exports.initFirebaseEnvironment = exports.FirebaseEnvironment = void 0;\nvar loglevel_1 = __webpack_require__(/*! loglevel */ "./node_modules/loglevel/lib/loglevel.js");\nvar document_1 = __webpack_require__(/*! ../firestore/document */ "./src/firestore/document.ts");\nvar query_1 = __webpack_require__(/*! ../firestore/query */ "./src/firestore/query.ts");\nvar firebaseApps_1 = __webpack_require__(/*! ./apps/firebaseApps */ "./src/environment/apps/firebaseApps.ts");\nvar types_1 = __webpack_require__(/*! ./apps/types */ "./src/environment/apps/types.ts");\n(0, loglevel_1.setDefaultLevel)(\'error\');\nvar environments = {};\nvar currentEnvironment = null;\n/**\n * Firebase Environment - represents an initialized firebase app and a client-side document cache\n */\nvar FirebaseEnvironment = /** @class */ (function () {\n /**\n * Do not call constructor directly! use initFirebaseEnvironment() instead\n */\n function FirebaseEnvironment(environmentName) {\n this.environmentName = environmentName;\n this.cachedDocuments = {};\n this.cachedQueries = {};\n environments[environmentName] = this;\n if (!currentEnvironment) {\n setFirebaseEnvironment(environmentName);\n }\n }\n /**\n * Returns current firebase environment\n */\n FirebaseEnvironment.getCurrentEnvironment = function () {\n return getCurrentEnvironment();\n };\n /**\n * Returns a document fetcher proxy, it will either request the document from DB or load it from cache\n *\n * @throws if environment has not been initialized yet\n */\n FirebaseEnvironment.getDocumentWithPath = function (path, data) {\n return getCurrentEnvironment().getDocumentWithPath(path, data);\n };\n /**\n * Returns firebase environment by name\n */\n FirebaseEnvironment.getEnvironment = function (environmentName) {\n return getEnvironment(environmentName);\n };\n /**\n * Returns a query fetcher, it will either request documents from DB or load them from cache\n *\n * @throws if environment has not been initialized yet\n */\n FirebaseEnvironment.getQueryWithParams = function (params) {\n return getCurrentEnvironment().getQueryWithParams(params);\n };\n /**\n * Sets/changes environment. Optionally the cache of the previous environment can be cleared\n *\n * @param environmentName - name of the new firebase environment to use\n * @param clearCache - true to clear cache of the previous environment\n *\n * @throws If environment does not exist\n */\n FirebaseEnvironment.setEnvironment = function (environmentName, clearCache) {\n if (clearCache === void 0) { clearCache = false; }\n var previousEnvironment = currentEnvironment;\n setFirebaseEnvironment(environmentName);\n if (clearCache) {\n previousEnvironment === null || previousEnvironment === void 0 ? void 0 : previousEnvironment.clearCache();\n }\n };\n Object.defineProperty(FirebaseEnvironment, "auth", {\n /**\n * Returns auth client of current firebase environment\n *\n * @throws If environment has not been initialized yet\n */\n get: function () {\n return getCurrentEnvironment().auth;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment, "firestore", {\n /**\n * Returns firestore client of current firebase environment\n *\n * @throws If environment has not been initialized yet\n */\n get: function () {\n return getCurrentEnvironment().firestore;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment, "functions", {\n /**\n * Returns functions client of current firebase environment\n *\n * @throws If environment has not been initialized yet\n */\n get: function () {\n return getCurrentEnvironment().functions;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment, "installations", {\n /**\n * Returns installations client of current firebase environment\n *\n * @throws If environment has not been initialized yet\n */\n get: function () {\n return getCurrentEnvironment().installations;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment, "environmentName", {\n /**\n * Returns name of current firebase environment\n *\n * @throws If environment has not been initialized yet\n */\n get: function () {\n return getCurrentEnvironment().name;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment.prototype, "appInstance", {\n /**\n * Firebase app instance that makes up this environment\n */\n get: function () {\n var app = (0, firebaseApps_1.getFirebaseAppInstance)(this.environmentName);\n if (!app) {\n throw new Error(\'Firebase app instance does not exist\');\n }\n return app;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment.prototype, "auth", {\n get: function () {\n return this.appInstance.auth();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment.prototype, "firestore", {\n get: function () {\n return this.appInstance.firestore();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment.prototype, "functions", {\n get: function () {\n return this.appInstance.functions(\'europe-west3\');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment.prototype, "installations", {\n // TODO not supported on Arris etc. devices without indexedDB\n get: function () {\n return this.appInstance.installations();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(FirebaseEnvironment.prototype, "name", {\n get: function () {\n return this.environmentName;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Clears cached documents and queries\n */\n FirebaseEnvironment.prototype.clearCache = function () {\n this.cachedDocuments = {};\n this.cachedQueries = {};\n };\n /**\n * Returns a document fetcher proxy, it will either request the document from DB or load it from cache\n */\n FirebaseEnvironment.prototype.getDocumentWithPath = function (path, data) {\n if (!this.cachedDocuments[path]) {\n this.cachedDocuments[path] = new document_1.Document(this, path, data);\n }\n return this.cachedDocuments[path];\n };\n /**\n * Returns a query fetcher, it will either request documents from DB or load them from cache\n */\n FirebaseEnvironment.prototype.getQueryWithParams = function (params) {\n var hash = query_1.PaginatedQuery.hashParams(params);\n if (!this.cachedQueries[hash]) {\n this.cachedQueries[hash] = new query_1.PaginatedQuery(this, params);\n }\n return this.cachedQueries[hash];\n };\n return FirebaseEnvironment;\n}());\nexports.FirebaseEnvironment = FirebaseEnvironment;\n/**\n * Gets firebase environment by name\n */\nvar getEnvironment = function (environmentName) {\n var _a;\n return (_a = environments[environmentName]) !== null && _a !== void 0 ? _a : null;\n};\n/**\n * Checks if firebase environment exists by name\n */\nvar exists = function (environmentName) {\n return getEnvironment(environmentName) != null;\n};\n/**\n * Initializes a new firebase environment\n *\n * @throws If environment already exists\n */\nvar initFirebaseEnvironment = function (app, environmentName) {\n if (environmentName === void 0) { environmentName = types_1.Environment.default; }\n if (exists(environmentName)) {\n throw new Error("Environment \\"" + environmentName + "\\" already exists");\n }\n (0, firebaseApps_1.registerAppInstance)(environmentName, app);\n var environment = new FirebaseEnvironment(environmentName);\n environments[environmentName] = environment;\n};\nexports.initFirebaseEnvironment = initFirebaseEnvironment;\n/**\n * Sets/changes current firebase environment\n *\n * @throws If environment does not exist\n */\nvar setFirebaseEnvironment = function (environmentName) {\n var environment = getEnvironment(environmentName);\n if (!environment) {\n throw new Error("Environment \\"" + environmentName + "\\" does not exist");\n }\n currentEnvironment = environment;\n (0, firebaseApps_1.setAppInstance)(environmentName);\n};\nexports.setFirebaseEnvironment = setFirebaseEnvironment;\n/**\n * Returns current firebase environment\n *\n * @throws If environment has not been initialized yet\n */\nvar getCurrentEnvironment = function () {\n if (!currentEnvironment) {\n throw new Error(\'Environment not been initialized yet. First call initFirebaseEnvironment()\');\n }\n return currentEnvironment;\n};\nexports.getCurrentEnvironment = getCurrentEnvironment;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZW52aXJvbm1lbnQvZmlyZWJhc2VFbnZpcm9ubWVudHMudHMuanMiLCJtYXBwaW5ncyI6Ijs7O0FBSUE7QUFFQTtBQUNBO0FBRUE7QUFLQTtBQWtCQTtBQUVBO0FBQ0E7QUFFQTs7QUFFQTtBQUNBO0FBcUlBOztBQUVBO0FBQ0E7QUFDQTtBQXhJQTtBQUNBO0FBeUlBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUE1SUE7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTs7OztBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTs7OztBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7Ozs7Ozs7QUFPQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFPQTtBQ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AgICBjb25zdCBlbnZpcm9ubWVudCA9IGdldEVudmlyb25tZW50KGVudmlyb25tZW50TmFtZSlcblxuICAgIGlmICghZW52aXJvbm1lbnQpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBFbnZpcm9ubWVudCBcIiR7ZW52aXJvbm1lbnROYW1lfVwiIGRvZXMgbm90IGV4aXN0YClcbiAgICB9XG5cbiAgICBjdXJyZW50RW52aXJvbm1lbnQgPSBlbnZpcm9ubWVudFxuXG4gICAgc2V0QXBwSW5zdGFuY2UoZW52aXJvbm1lbnROYW1lKVxufVxuXG4vKipcbiAqIFJldHVybnMgY3VycmVudCBmaXJlYmFzZSBlbnZpcm9ubWVudFxuICpcbiAqIEB0aHJvd3MgSWYgZW52aXJvbm1lbnQgaGFzIG5vdCBiZWVuIGluaXRpYWxpemVkIHlldFxuICovXG5jb25zdCBnZXRDdXJyZW50RW52aXJvbm1lbnQgPSAoKTogRmlyZWJhc2VFbnZpcm9ubWVudCA9PiB7XG4gICAgaWYgKCFjdXJyZW50RW52aXJvbm1lbnQpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdFbnZpcm9ubWVudCBub3QgYmVlbiBpbml0aWFsaXplZCB5ZXQuIEZpcnN0IGNhbGwgaW5pdEZpcmViYXNlRW52aXJvbm1lbnQoKScpXG4gICAgfVxuXG4gICAgcmV0dXJuIGN1cnJlbnRFbnZpcm9ubWVudFxufVxuXG5leHBvcnQge1xuICAgIGluaXRGaXJlYmFzZUVudmlyb25tZW50LFxuICAgIHNldEZpcmViYXNlRW52aXJvbm1lbnQsXG4gICAgZ2V0Q3VycmVudEVudmlyb25tZW50LFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/environment/firebaseEnvironments.ts\n')},"./src/environment/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.FirebaseEnvironment = void 0;\nvar firebaseEnvironments_1 = __webpack_require__(/*! ./firebaseEnvironments */ "./src/environment/firebaseEnvironments.ts");\nObject.defineProperty(exports, "FirebaseEnvironment", ({ enumerable: true, get: function () { return firebaseEnvironments_1.FirebaseEnvironment; } }));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZW52aXJvbm1lbnQvaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7O0FBQUE7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZW52aXJvbm1lbnQvaW5kZXgudHM/NzEzMyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBGaXJlYmFzZUVudmlyb25tZW50IH0gZnJvbSAnLi9maXJlYmFzZUVudmlyb25tZW50cydcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/environment/index.ts\n')},"./src/firestore/api/collection.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.getCollectionWithPath = void 0;\nvar collection_1 = __webpack_require__(/*! ../collection */ "./src/firestore/collection.ts");\n/**\n * @deprecated use {@link getQueryWithParams} instead\n */\nvar getCollectionWithPath = function (path) { return new collection_1.Collection(path); };\nexports.getCollectionWithPath = getCollectionWithPath;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL2FwaS9jb2xsZWN0aW9uLnRzLmpzIiwibWFwcGluZ3MiOiI7OztBQUFBO0FBR0E7O0FBRUE7QUFDQTtBQUdBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvYXBpL2NvbGxlY3Rpb24udHM/M2NjZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb2xsZWN0aW9uIH0gZnJvbSAnLi4vY29sbGVjdGlvbidcblxuXG4vKipcbiAqIEBkZXByZWNhdGVkIHVzZSB7QGxpbmsgZ2V0UXVlcnlXaXRoUGFyYW1zfSBpbnN0ZWFkXG4gKi9cbmNvbnN0IGdldENvbGxlY3Rpb25XaXRoUGF0aCA9IDxUPihwYXRoOiBzdHJpbmcpID0+IG5ldyBDb2xsZWN0aW9uPFQ+KHBhdGgpXG5cbmV4cG9ydCB7XG4gICAgZ2V0Q29sbGVjdGlvbldpdGhQYXRoLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/api/collection.ts\n')},"./src/firestore/api/document.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.getDocumentWithPath = exports.getDocumentWithCollectionPath = exports.getDocumentWithCollection = void 0;\nvar firebaseEnvironments_1 = __webpack_require__(/*! ../../environment/firebaseEnvironments */ "./src/environment/firebaseEnvironments.ts");\nvar getDocumentWithCollection = function (collectionPath, documentPath) {\n var path = (0, firebaseEnvironments_1.getCurrentEnvironment)()\n .firestore\n .collection(collectionPath)\n .doc(documentPath).path;\n return getDocumentWithPath(path);\n};\nexports.getDocumentWithCollection = getDocumentWithCollection;\nvar getDocumentWithPath = function (path, data) {\n return (0, firebaseEnvironments_1.getCurrentEnvironment)().getDocumentWithPath(path, data);\n};\nexports.getDocumentWithPath = getDocumentWithPath;\nvar getDocumentWithCollectionPath = function (pathString, data) {\n var path = (0, firebaseEnvironments_1.getCurrentEnvironment)()\n .firestore\n .collection(pathString).doc().path;\n return (0, firebaseEnvironments_1.getCurrentEnvironment)().getDocumentWithPath(path, data);\n};\nexports.getDocumentWithCollectionPath = getDocumentWithCollectionPath;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9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FQpID0+IHtcbiAgICBjb25zdCBwYXRoID0gZ2V0Q3VycmVudEVudmlyb25tZW50KClcbiAgICAgICAgLmZpcmVzdG9yZVxuICAgICAgICAuY29sbGVjdGlvbihwYXRoU3RyaW5nKS5kb2MoKS5wYXRoXG5cbiAgICByZXR1cm4gZ2V0Q3VycmVudEVudmlyb25tZW50KCkuZ2V0RG9jdW1lbnRXaXRoUGF0aDxUPihwYXRoLCBkYXRhKVxufVxuXG5leHBvcnQge1xuICAgIGdldERvY3VtZW50V2l0aENvbGxlY3Rpb24sXG4gICAgZ2V0RG9jdW1lbnRXaXRoQ29sbGVjdGlvblBhdGgsXG4gICAgZ2V0RG9jdW1lbnRXaXRoUGF0aCxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/api/document.ts\n')},"./src/firestore/api/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./collection */ "./src/firestore/api/collection.ts"), exports);\n__exportStar(__webpack_require__(/*! ./document */ "./src/firestore/api/document.ts"), exports);\n__exportStar(__webpack_require__(/*! ./query */ "./src/firestore/api/query.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL2FwaS9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9hcGkvaW5kZXgudHM/YjE5NyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbGxlY3Rpb24nXG5leHBvcnQgKiBmcm9tICcuL2RvY3VtZW50J1xuZXhwb3J0ICogZnJvbSAnLi9xdWVyeSdcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/api/index.ts\n')},"./src/firestore/api/query.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.getQueryWithOrderBy = exports.convertRowWhereFilterToWhereFilter = exports.convertRowFilterToFilter = exports.getQueryByFilter = exports.getQueryWithWhereFilters = exports.getQueryWithParams = void 0;\nvar firebaseEnvironments_1 = __webpack_require__(/*! ../../environment/firebaseEnvironments */ "./src/environment/firebaseEnvironments.ts");\nvar getQueryWithParams = function (params) {\n return (0, firebaseEnvironments_1.getCurrentEnvironment)().getQueryWithParams(params);\n};\nexports.getQueryWithParams = getQueryWithParams;\n/**\n * NOTE: the next functions was migrated from @tivio/common. We need to join it with {@link Query}\n */\nvar getQueryWithWhereFilters = function (filters, query) {\n if (!(filters === null || filters === void 0 ? void 0 : filters.length)) {\n return query;\n }\n return filters.reduce(function (resultQuery, filter) {\n return (Array.isArray(filter.value) && filter.value.length === 0)\n ? resultQuery\n : resultQuery.where(filter.field, filter.operator, filter.value);\n }, query);\n};\nexports.getQueryWithWhereFilters = getQueryWithWhereFilters;\nvar getQueryByFilter = function (filter, query) {\n var resultQuery = getQueryWithWhereFilters(filter.where, query);\n resultQuery = getQueryWithOrderBy(filter.orderBy, resultQuery);\n return resultQuery;\n};\nexports.getQueryByFilter = getQueryByFilter;\nvar convertRowFilterToFilter = function (rowFilter) {\n var _a, _b;\n return {\n where: (_b = (_a = rowFilter.where) === null || _a === void 0 ? void 0 : _a.map(convertRowWhereFilterToWhereFilter)) !== null && _b !== void 0 ? _b : [],\n orderBy: rowFilter.orderBy ? [{ field: rowFilter.orderBy.fieldPath, directionStr: rowFilter.orderBy.directionStr }] : [],\n limit: rowFilter.limit,\n };\n};\nexports.convertRowFilterToFilter = convertRowFilterToFilter;\nvar convertRowWhereFilterToWhereFilter = function (filter) {\n return { field: filter.fieldPath, operator: filter.opStr, value: filter.value };\n};\nexports.convertRowWhereFilterToWhereFilter = convertRowWhereFilterToWhereFilter;\nvar getQueryWithOrderBy = function (orderBy, query) {\n if (!(orderBy === null || orderBy === void 0 ? void 0 : orderBy.length)) {\n return query;\n }\n return orderBy.reduce(function (resultQuery, orderBy) {\n return resultQuery.orderBy(orderBy.field, orderBy.directionStr);\n }, query);\n};\nexports.getQueryWithOrderBy = getQueryWithOrderBy;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL2FwaS9xdWVyeS50cy5qcyIsIm1hcHBpbmdzIjoiOzs7QUFBQTtBQU9BO0FBQ0E7QUFDQTtBQXNEQTtBQXBEQTs7QUFFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUdBO0FBcUNBO0FBbkNBO0FBQ0E7QUFFQTtBQUVBO0FBQ0E7QUE4QkE7QUE1QkE7O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBdUJBO0FBckJBO0FBQ0E7QUFDQTtBQW9CQTtBQWpCQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUdBO0FBUUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9hcGkvcXVlcnkudHM/M2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JkZXJCeSxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/api/query.ts\n')},"./src/firestore/collection.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.Collection = void 0;\nvar firebaseApps_1 = __webpack_require__(/*! ../environment/apps/firebaseApps */ "./src/environment/apps/firebaseApps.ts");\nvar document_1 = __webpack_require__(/*! ./api/document */ "./src/firestore/api/document.ts");\nvar Collection = /** @class */ (function () {\n function Collection(path) {\n var _this = this;\n this.createDocument = function (documentPath) {\n var documentRef = documentPath ? _this._ref.doc(documentPath) : _this._ref.doc();\n return (0, document_1.getDocumentWithPath)(documentRef.path);\n };\n this.getDocumentFromSnapshot = function (documentSnapshot) { return __awaiter(_this, void 0, Promise, function () {\n var document;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n document = (0, document_1.getDocumentWithPath)(documentSnapshot.ref.path);\n return [4 /*yield*/, document.updateCache(documentSnapshot.data())];\n case 1:\n _a.sent();\n return [2 /*return*/, document];\n }\n });\n }); };\n this.getDocumentsFromQuerySnapshot = function (snapshot) { return __awaiter(_this, void 0, Promise, function () {\n var _a;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = {};\n return [4 /*yield*/, Promise.all(snapshot.docs.map(function (documentSnapshot) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.getDocumentFromSnapshot(documentSnapshot)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }))];\n case 1: return [2 /*return*/, (_a.data = _b.sent(),\n _a.lastCursor = (snapshot.size && snapshot.docs[snapshot.size - 1]) || null,\n _a)];\n }\n });\n }); };\n this.getDocumentsQuery = function (filters, orderBy, limit) {\n if (filters === void 0) { filters = []; }\n var query = filters.reduce(function (query, filter) {\n return query.where(filter.field, filter.operator, filter.value);\n }, _this._ref);\n orderBy && (query = query.orderBy(orderBy.field, orderBy.directionStr));\n return _this.getDocumentsQueryAfter(query, limit);\n };\n this.getDocumentsQueryAfter = function (query, limit, after) {\n return ((after && query.startAfter(after)) || query).limit(Math.min(Math.max(limit || 10, 1), 10));\n };\n this.getDocuments = function (filters, orderBy, limit) {\n if (filters === void 0) { filters = []; }\n return __awaiter(_this, void 0, Promise, function () {\n var query, queryDocuments, _a;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n query = this.getDocumentsQuery(filters, orderBy, limit);\n _a = this.getDocumentsFromQuerySnapshot;\n return [4 /*yield*/, query.get()];\n case 1: return [4 /*yield*/, _a.apply(this, [_b.sent()])];\n case 2:\n queryDocuments = _b.sent();\n return [2 /*return*/, {\n data: queryDocuments.data,\n getNext: function (nextLimit) { return __awaiter(_this, void 0, void 0, function () {\n var _a, data, lastCursor, _b;\n var _c;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n if (!queryDocuments.lastCursor) {\n return [2 /*return*/, []];\n }\n _b = this.getDocumentsFromQuerySnapshot;\n return [4 /*yield*/, this.getDocumentsQueryAfter(query, nextLimit || limit, queryDocuments.lastCursor).get()];\n case 1: return [4 /*yield*/, _b.apply(this, [_d.sent()])];\n case 2:\n _a = _d.sent(), data = _a.data, lastCursor = _a.lastCursor;\n (_c = queryDocuments.data).push.apply(_c, data);\n queryDocuments.lastCursor = lastCursor;\n return [2 /*return*/, data];\n }\n });\n }); },\n }];\n }\n });\n });\n };\n this._ref = (0, firebaseApps_1.getCurrentFirebaseAppInstance)().firestore().collection(path);\n }\n return Collection;\n}());\nexports.Collection = Collection;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL2NvbGxlY3Rpb24udHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7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IGF3YWl0IHRoaXMuZ2V0RG9jdW1lbnRzRnJvbVF1ZXJ5U25hcHNob3QoXG4gICAgICAgICAgICAgICAgICAgIGF3YWl0IHRoaXMuZ2V0RG9jdW1lbnRzUXVlcnlBZnRlcihcbiAgICAgICAgICAgICAgICAgICAgICAgIHF1ZXJ5LCBuZXh0TGltaXQgfHwgbGltaXQsIHF1ZXJ5RG9jdW1lbnRzLmxhc3RDdXJzb3IgYXMgRG9jdW1lbnRTbmFwc2hvdCxcbiAgICAgICAgICAgICAgICAgICAgKS5nZXQoKSBhcyBRdWVyeVNuYXBzaG90PFQ+LFxuICAgICAgICAgICAgICAgIClcblxuICAgICAgICAgICAgICAgIHF1ZXJ5RG9jdW1lbnRzLmRhdGEucHVzaCguLi5kYXRhKVxuICAgICAgICAgICAgICAgIHF1ZXJ5RG9jdW1lbnRzLmxhc3RDdXJzb3IgPSBsYXN0Q3Vyc29yXG5cbiAgICAgICAgICAgICAgICByZXR1cm4gZGF0YVxuICAgICAgICAgICAgfSxcbiAgICAgICAgfVxuICAgIH1cblxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/collection.ts\n')},"./src/firestore/document.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.Document = void 0;\nvar logger_1 = __webpack_require__(/*! ../utils/logger */ "./src/utils/logger.ts");\nvar logger = new logger_1.Logger(\'document\');\n/**\n * Loads document data from firestore to itself\n */\nvar Document = /** @class */ (function () {\n function Document(\n /**\n * Firebase environment in which this document was instantiated\n */\n firebaseEnvironment, path, data) {\n var _this = this;\n this.firebaseEnvironment = firebaseEnvironment;\n this._data = null;\n this._fetchPromise = null;\n this.cancelSubscription = null;\n this.delete = function () { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.ref.delete()];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * TODO what is the difference between fetch() and get()? nothing right now\n */\n this.fetch = function (force) {\n if (force === void 0) { force = false; }\n return __awaiter(_this, void 0, Promise, function () {\n var _a;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!this._fetchPromise && (!this.data || force)) {\n this._fetchPromise = new Promise(function (resolve, reject) {\n _this.ref.get().then(function (snapshot) {\n _this.updateCache(snapshot.data());\n resolve(_this.data);\n }).catch(reject);\n });\n }\n _a = this._fetchPromise;\n if (!_a) return [3 /*break*/, 2];\n return [4 /*yield*/, this._fetchPromise];\n case 1:\n _a = (_b.sent());\n _b.label = 2;\n case 2: return [2 /*return*/, (_a) || this.data];\n }\n });\n });\n };\n this.get = function (force) {\n if (force === void 0) { force = false; }\n return __awaiter(_this, void 0, Promise, function () {\n var _a;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!this._fetchPromise && (!this.data || force)) {\n this._fetchPromise = new Promise(function (resolve, reject) {\n _this.ref.get().then(function (snapshot) {\n _this.updateCache(snapshot.data());\n resolve(_this.data);\n }).catch(reject);\n });\n }\n _a = this._fetchPromise;\n if (!_a) return [3 /*break*/, 2];\n return [4 /*yield*/, this._fetchPromise];\n case 1:\n _a = (_b.sent());\n _b.label = 2;\n case 2: return [2 /*return*/, (_a) || this.data];\n }\n });\n });\n };\n this.subscribe = function () { return __awaiter(_this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n if (this.isSubscribing) {\n return [2 /*return*/];\n }\n logger.info("Started subscribing to document changes (" + this.ref.path + ")");\n this.cancelSubscription = this.ref.onSnapshot(({\n next: function (snapshot) {\n _this.updateCache(snapshot.data());\n },\n }));\n return [2 /*return*/];\n });\n }); };\n this.unsubscribe = function () {\n if (_this.cancelSubscription) {\n _this.cancelSubscription();\n _this.cancelSubscription = null;\n logger.info("Stopped subscribing to document changes (" + _this.ref.path + ")");\n }\n };\n this.update = function (data, options) {\n if (options === void 0) { options = null; }\n return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!data) return [3 /*break*/, 2];\n this.updateCache(data, options);\n return [4 /*yield*/, this.ref.set(data, options || {})];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n });\n };\n this.updateCache = function (data, options) {\n if (options === void 0) { options = null; }\n if (data) {\n if (!options) {\n _this._data = data;\n }\n else {\n if (options.merge) {\n _this._data = __assign(__assign({}, _this._data), data);\n }\n // TODO: accept mergeFields as well\n }\n }\n };\n this.ref = firebaseEnvironment.firestore.doc(path);\n this.updateCache(data);\n }\n Object.defineProperty(Document.prototype, "id", {\n get: function () {\n return this.ref.id;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Document.prototype, "isSubscribing", {\n get: function () {\n return this.cancelSubscription !== null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Document.prototype, "data", {\n get: function () {\n return this._data;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Document.prototype, "isLoaded", {\n /**\n * true if document is loaded, false if document is not loaded yet, or does not exist\n */\n get: function () {\n return this._data != null;\n },\n enumerable: false,\n configurable: true\n });\n return Document;\n}());\nexports.Document = Document;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL2RvY3VtZW50LnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs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gICB0aGlzLnJlZi5nZXQoKS50aGVuKHNuYXBzaG90ID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy51cGRhdGVDYWNoZShzbmFwc2hvdC5kYXRhKCkpXG4gICAgICAgICAgICAgICAgICAgIHJlc29sdmUodGhpcy5kYXRhKVxuICAgICAgICAgICAgICAgIH0pLmNhdGNoKHJlamVjdClcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gKHRoaXMuX2ZldGNoUHJvbWlzZSAmJiBhd2FpdCB0aGlzLl9mZXRjaFByb21pc2UpIHx8IHRoaXMuZGF0YVxuICAgIH1cblxuICAgIGdldCA9IGFzeW5jIChmb3JjZSA9IGZhbHNlKTogUHJvbWlzZTxUIHwgbnVsbD4gPT4ge1xuICAgICAgICBpZiAoIXRoaXMuX2ZldGNoUHJvbWlzZSAmJiAoIXRoaXMuZGF0YSB8fCBmb3JjZSkpIHtcbiAgICAgICAgICAgIHRoaXMuX2ZldGNoUHJvbWlzZSA9IG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLnJlZi5nZXQoKS50aGVuKHNuYXBzaG90ID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy51cGRhdGVDYWNoZShzbmFwc2hvdC5kYXRhKCkpXG4gICAgICAgICAgICAgICAgICAgIHJlc29sdmUodGhpcy5kYXRhKVxuICAgICAgICAgICAgICAgIH0pLmNhdGNoKHJlamVjdClcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gKHRoaXMuX2ZldGNoUHJvbWlzZSAmJiBhd2FpdCB0aGlzLl9mZXRjaFByb21pc2UpIHx8IHRoaXMuZGF0YVxuICAgIH1cblxuICAgIHN1YnNjcmliZSA9IGFzeW5jICgpID0+IHtcbiAgICAgICAgaWYgKHRoaXMuaXNTdWJzY3JpYmluZykge1xuICAgICAgICAgICAgcmV0dXJuXG4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wgdW5kZWZpbmVkLCBvcHRpb25zOiBTZXRPcHRpb25zIHwgbnVsbCA9IG51bGwpID0+IHtcbiAgICAgICAgaWYgKGRhdGEpIHtcbiAgICAgICAgICAgIGlmICghb3B0aW9ucykge1xuICAgICAgICAgICAgICAgIHRoaXMuX2RhdGEgPSBkYXRhIGFzIFRcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgaWYgKG9wdGlvbnMubWVyZ2UpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fZGF0YSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLnRoaXMuX2RhdGEsXG4gICAgICAgICAgICAgICAgICAgICAgICAuLi5kYXRhIGFzIFQsXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAvLyBUT0RPOiBhY2NlcHQgbWVyZ2VGaWVsZHMgYXMgd2VsbFxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/document.ts\n')},"./src/firestore/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.runTransaction = exports.Document = exports.Collection = exports.batch = exports.admin = void 0;\nvar collection_1 = __webpack_require__(/*! ./collection */ "./src/firestore/collection.ts");\nObject.defineProperty(exports, "Collection", ({ enumerable: true, get: function () { return collection_1.Collection; } }));\nvar document_1 = __webpack_require__(/*! ./document */ "./src/firestore/document.ts");\nObject.defineProperty(exports, "Document", ({ enumerable: true, get: function () { return document_1.Document; } }));\nvar transaction_1 = __webpack_require__(/*! ./transaction */ "./src/firestore/transaction.ts");\nObject.defineProperty(exports, "batch", ({ enumerable: true, get: function () { return transaction_1.batch; } }));\nObject.defineProperty(exports, "runTransaction", ({ enumerable: true, get: function () { return transaction_1.runTransaction; } }));\nvar admin = {\n batch: transaction_1.batchAdmin,\n runTransaction: transaction_1.runTransactionAdmin,\n collection: transaction_1.collectionAdmin,\n};\nexports.admin = admin;\n__exportStar(__webpack_require__(/*! ./api */ "./src/firestore/api/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./query */ "./src/firestore/query.ts"), exports);\n__exportStar(__webpack_require__(/*! ./types */ "./src/firestore/types.ts"), exports);\n__exportStar(__webpack_require__(/*! ./model */ "./src/firestore/model/index.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL2luZGV4LnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQXdCQTtBQXZCQTtBQXdCQTtBQXZCQTtBQXFCQTtBQUdBO0FBZkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQU9BO0FBTEE7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9pbmRleC50cz9jYzA5Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbGxlY3Rpb24gfSBmcm9tICcuL2NvbGxlY3Rpb24nXG5pbXBvcnQgeyBEb2N1bWVudCB9IGZyb20gJy4vZG9jdW1lbnQnXG5pbXBvcnQge1xuICAgIGJhdGNoLFxuICAgIHJ1blRyYW5zYWN0aW9uLFxuICAgIGJhdGNoQWRtaW4sXG4gICAgcnVuVHJhbnNhY3Rpb25BZG1pbixcbiAgICBjb2xsZWN0aW9uQWRtaW4sXG59IGZyb20gJy4vdHJhbnNhY3Rpb24nXG5cblxuY29uc3QgYWRtaW4gPSB7XG4gICAgYmF0Y2g6IGJhdGNoQWRtaW4sXG4gICAgcnVuVHJhbnNhY3Rpb246IHJ1blRyYW5zYWN0aW9uQWRtaW4sXG4gICAgY29sbGVjdGlvbjogY29sbGVjdGlvbkFkbWluLFxufVxuXG5leHBvcnQgKiBmcm9tICcuL2FwaSdcbmV4cG9ydCAqIGZyb20gJy4vcXVlcnknXG5leHBvcnQgKiBmcm9tICcuL3R5cGVzJ1xuZXhwb3J0ICogZnJvbSAnLi9tb2RlbCdcbmV4cG9ydCB7XG4gICAgYWRtaW4sXG4gICAgYmF0Y2gsXG4gICAgQ29sbGVjdGlvbixcbiAgICBEb2N1bWVudCxcbiAgICBydW5UcmFuc2FjdGlvbixcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/index.ts\n')},"./src/firestore/model/adProfile/adProfileDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/adProfile/adProfileEnums.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.AdProfileType = exports.OnlineSkippability = exports.StreamSkippability = void 0;\nvar StreamSkippability;\n(function (StreamSkippability) {\n StreamSkippability["SKIPPABLE"] = "SKIPPABLE";\n StreamSkippability["NOT_SKIPPABLE"] = "NOT_SKIPPABLE";\n StreamSkippability["AUTO_SKIP"] = "AUTO_SKIP";\n})(StreamSkippability = exports.StreamSkippability || (exports.StreamSkippability = {}));\nvar OnlineSkippability;\n(function (OnlineSkippability) {\n OnlineSkippability["SKIPPABLE"] = "SKIPPABLE";\n OnlineSkippability["NOT_SKIPPABLE"] = "NOT_SKIPPABLE";\n OnlineSkippability["VAST_BASED"] = "VAST_BASED";\n})(OnlineSkippability = exports.OnlineSkippability || (exports.OnlineSkippability = {}));\nvar AdProfileType;\n(function (AdProfileType) {\n AdProfileType["ONLINE"] = "ONLINE";\n AdProfileType["STREAM"] = "STREAM";\n})(AdProfileType = exports.AdProfileType || (exports.AdProfileType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL2FkUHJvZmlsZS9hZFByb2ZpbGVFbnVtcy50cy5qcyIsIm1hcHBpbmdzIjoiOzs7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvYWRQcm9maWxlL2FkUHJvZmlsZUVudW1zLnRzPzU5YmQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gU3RyZWFtU2tpcHBhYmlsaXR5IHtcbiAgICBTS0lQUEFCTEUgPSAnU0tJUFBBQkxFJyxcbiAgICBOT1RfU0tJUFBBQkxFID0gJ05PVF9TS0lQUEFCTEUnLFxuICAgIEFVVE9fU0tJUCA9ICdBVVRPX1NLSVAnXG59XG5cbmV4cG9ydCBlbnVtIE9ubGluZVNraXBwYWJpbGl0eSB7XG4gICAgU0tJUFBBQkxFID0gJ1NLSVBQQUJMRScsXG4gICAgTk9UX1NLSVBQQUJMRSA9ICdOT1RfU0tJUFBBQkxFJyxcbiAgICBWQVNUX0JBU0VEID0gJ1ZBU1RfQkFTRUQnXG59XG5cbmV4cG9ydCBlbnVtIEFkUHJvZmlsZVR5cGUge1xuICAgIE9OTElORSA9ICdPTkxJTkUnLFxuICAgIFNUUkVBTSA9ICdTVFJFQU0nLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/adProfile/adProfileEnums.ts\n')},"./src/firestore/model/adProfile/adProfileFields.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/adProfile/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./adProfileDocument */ "./src/firestore/model/adProfile/adProfileDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./adProfileFields */ "./src/firestore/model/adProfile/adProfileFields.ts"), exports);\n__exportStar(__webpack_require__(/*! ./adProfileEnums */ "./src/firestore/model/adProfile/adProfileEnums.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL2FkUHJvZmlsZS9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC9hZFByb2ZpbGUvaW5kZXgudHM/NjM0YSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2FkUHJvZmlsZURvY3VtZW50J1xuZXhwb3J0ICogZnJvbSAnLi9hZFByb2ZpbGVGaWVsZHMnXG5leHBvcnQgKiBmcm9tICcuL2FkUHJvZmlsZUVudW1zJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/adProfile/index.ts\n')},"./src/firestore/model/assetPreset/assetPresetDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/assetPreset/assetPresetEnums.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.ASSET_PRESET_PLACEMENTS = exports.AssetPresetPlacement = void 0;\nvar AssetPresetPlacement;\n(function (AssetPresetPlacement) {\n AssetPresetPlacement["TV_CHANNEL"] = "tvChannel";\n AssetPresetPlacement["CHANNEL"] = "channel";\n AssetPresetPlacement["SECTION"] = "section";\n AssetPresetPlacement["VIDEO"] = "video";\n AssetPresetPlacement["TAG"] = "tag";\n})(AssetPresetPlacement = exports.AssetPresetPlacement || (exports.AssetPresetPlacement = {}));\nexports.ASSET_PRESET_PLACEMENTS = Object.values(AssetPresetPlacement);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL2Fzc2V0UHJlc2V0L2Fzc2V0UHJlc2V0RW51bXMudHMuanMiLCJtYXBwaW5ncyI6Ijs7O0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvYXNzZXRQcmVzZXQvYXNzZXRQcmVzZXRFbnVtcy50cz84YmI5Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEFzc2V0UHJlc2V0UGxhY2VtZW50IHtcbiAgICBUVl9DSEFOTkVMID0gJ3R2Q2hhbm5lbCcsXG4gICAgQ0hBTk5FTCA9ICdjaGFubmVsJyxcbiAgICBTRUNUSU9OID0gJ3NlY3Rpb24nLFxuICAgIFZJREVPID0gJ3ZpZGVvJyxcbiAgICBUQUcgPSAndGFnJyxcbn1cblxuZXhwb3J0IGNvbnN0IEFTU0VUX1BSRVNFVF9QTEFDRU1FTlRTID0gT2JqZWN0LnZhbHVlcyhBc3NldFByZXNldFBsYWNlbWVudClcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/model/assetPreset/assetPresetEnums.ts\n')},"./src/firestore/model/assetPreset/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./assetPresetDocument */ "./src/firestore/model/assetPreset/assetPresetDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./assetPresetEnums */ "./src/firestore/model/assetPreset/assetPresetEnums.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL2Fzc2V0UHJlc2V0L2luZGV4LnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC9hc3NldFByZXNldC9pbmRleC50cz83YjVjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYXNzZXRQcmVzZXREb2N1bWVudCdcbmV4cG9ydCAqIGZyb20gJy4vYXNzZXRQcmVzZXRFbnVtcydcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/model/assetPreset/index.ts\n')},"./src/firestore/model/channel/channelDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/channel/channelFields.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/channel/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./channelDocument */ "./src/firestore/model/channel/channelDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./channelFields */ "./src/firestore/model/channel/channelFields.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL2NoYW5uZWwvaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL2NoYW5uZWwvaW5kZXgudHM/MjBmNiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NoYW5uZWxEb2N1bWVudCdcbmV4cG9ydCAqIGZyb20gJy4vY2hhbm5lbEZpZWxkcydcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/model/channel/index.ts\n')},"./src/firestore/model/common/commonFields.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/common/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n//export * from \'./commonEnums\'\n__exportStar(__webpack_require__(/*! ./commonFields */ "./src/firestore/model/common/commonFields.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL2NvbW1vbi9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvY29tbW9uL2luZGV4LnRzPzhkNGIiXSwic291cmNlc0NvbnRlbnQiOlsiLy9leHBvcnQgKiBmcm9tICcuL2NvbW1vbkVudW1zJ1xuZXhwb3J0ICogZnJvbSAnLi9jb21tb25GaWVsZHMnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/common/index.ts\n')},"./src/firestore/model/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./adProfile */ "./src/firestore/model/adProfile/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./assetPreset */ "./src/firestore/model/assetPreset/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./common */ "./src/firestore/model/common/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./channel */ "./src/firestore/model/channel/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./invite */ "./src/firestore/model/invite/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./markers */ "./src/firestore/model/markers/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./membership */ "./src/firestore/model/membership/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./monetization */ "./src/firestore/model/monetization/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./organization */ "./src/firestore/model/organization/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./promotion */ "./src/firestore/model/promotion/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./purchase */ "./src/firestore/model/purchase/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./referral */ "./src/firestore/model/referral/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./row */ "./src/firestore/model/row/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./screen */ "./src/firestore/model/screen/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./section */ "./src/firestore/model/section/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./shame */ "./src/firestore/model/shame.ts"), exports);\n__exportStar(__webpack_require__(/*! ./tag */ "./src/firestore/model/tag/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./tagType */ "./src/firestore/model/tagType/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./tvChannel */ "./src/firestore/model/tvChannel/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./user */ "./src/firestore/model/user/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./video */ "./src/firestore/model/video/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./voucher */ "./src/firestore/model/voucher/index.ts"), exports);\n__exportStar(__webpack_require__(/*! ./widget */ "./src/firestore/model/widget/index.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL2luZGV4LnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC9pbmRleC50cz8zODFlIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWRQcm9maWxlJ1xuZXhwb3J0ICogZnJvbSAnLi9hc3NldFByZXNldCdcbmV4cG9ydCAqIGZyb20gJy4vY29tbW9uJ1xuZXhwb3J0ICogZnJvbSAnLi9jaGFubmVsJ1xuZXhwb3J0ICogZnJvbSAnLi9pbnZpdGUnXG5leHBvcnQgKiBmcm9tICcuL21hcmtlcnMnXG5leHBvcnQgKiBmcm9tICcuL21lbWJlcnNoaXAnXG5leHBvcnQgKiBmcm9tICcuL21vbmV0aXphdGlvbidcbmV4cG9ydCAqIGZyb20gJy4vb3JnYW5pemF0aW9uJ1xuZXhwb3J0ICogZnJvbSAnLi9wcm9tb3Rpb24nXG5leHBvcnQgKiBmcm9tICcuL3B1cmNoYXNlJ1xuZXhwb3J0ICogZnJvbSAnLi9yZWZlcnJhbCdcbmV4cG9ydCAqIGZyb20gJy4vcm93J1xuZXhwb3J0ICogZnJvbSAnLi9zY3JlZW4nXG5leHBvcnQgKiBmcm9tICcuL3NlY3Rpb24nXG5leHBvcnQgKiBmcm9tICcuL3NoYW1lJ1xuZXhwb3J0ICogZnJvbSAnLi90YWcnXG5leHBvcnQgKiBmcm9tICcuL3RhZ1R5cGUnXG5leHBvcnQgKiBmcm9tICcuL3R2Q2hhbm5lbCdcbmV4cG9ydCAqIGZyb20gJy4vdXNlcidcbmV4cG9ydCAqIGZyb20gJy4vdmlkZW8nXG5leHBvcnQgKiBmcm9tICcuL3ZvdWNoZXInXG5leHBvcnQgKiBmcm9tICcuL3dpZGdldCdcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/model/index.ts\n')},"./src/firestore/model/invite/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./inviteDocument */ "./src/firestore/model/invite/inviteDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./inviteEnums */ "./src/firestore/model/invite/inviteEnums.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL2ludml0ZS9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvaW52aXRlL2luZGV4LnRzPzFkNTUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnZpdGVEb2N1bWVudCdcbmV4cG9ydCAqIGZyb20gJy4vaW52aXRlRW51bXMnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/invite/index.ts\n')},"./src/firestore/model/invite/inviteDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/invite/inviteEnums.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.InviteType = exports.InviteState = void 0;\nvar InviteState;\n(function (InviteState) {\n InviteState["CANCELLED"] = "CANCELLED";\n InviteState["CLOSED"] = "CLOSED";\n InviteState["EXPIRED"] = "EXPIRED";\n InviteState["NEW"] = "NEW";\n})(InviteState = exports.InviteState || (exports.InviteState = {}));\nvar InviteType;\n(function (InviteType) {\n InviteType["ADMIN"] = "ADMIN";\n InviteType["PAIR_ACCOUNTS"] = "PAIR_ACCOUNTS";\n InviteType["SINGLE_SIGN_ON"] = "SINGLE_SIGN_ON";\n})(InviteType = exports.InviteType || (exports.InviteType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL2ludml0ZS9pbnZpdGVFbnVtcy50cy5qcyIsIm1hcHBpbmdzIjoiOzs7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL2ludml0ZS9pbnZpdGVFbnVtcy50cz82YzU1Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEludml0ZVN0YXRlIHtcbiAgICBDQU5DRUxMRUQgPSAnQ0FOQ0VMTEVEJyxcbiAgICBDTE9TRUQgPSAnQ0xPU0VEJyxcbiAgICBFWFBJUkVEID0gJ0VYUElSRUQnLFxuICAgIE5FVyA9ICdORVcnLFxufVxuXG5leHBvcnQgZW51bSBJbnZpdGVUeXBlIHtcbiAgICBBRE1JTiA9ICdBRE1JTicsXG4gICAgUEFJUl9BQ0NPVU5UUyA9ICdQQUlSX0FDQ09VTlRTJyxcbiAgICBTSU5HTEVfU0lHTl9PTiA9ICdTSU5HTEVfU0lHTl9PTicsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/invite/inviteEnums.ts\n')},"./src/firestore/model/markers/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./markers */ "./src/firestore/model/markers/markers.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL21hcmtlcnMvaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC9tYXJrZXJzL2luZGV4LnRzPzhjZTciXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tYXJrZXJzJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/markers/index.ts\n')},"./src/firestore/model/markers/markers.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.MarkerType = void 0;\nvar MarkerType;\n(function (MarkerType) {\n MarkerType["AD"] = "AD";\n MarkerType["AD_SEGMENT"] = "AD_SEGMENT";\n MarkerType["CHAPTER"] = "CHAPTER";\n MarkerType["CREDITS"] = "CREDITS";\n MarkerType["INTRO"] = "INTRO";\n})(MarkerType = exports.MarkerType || (exports.MarkerType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL21hcmtlcnMvbWFya2Vycy50cy5qcyIsIm1hcHBpbmdzIjoiOzs7QUF1QkE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGV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zogbnVtYmVyXG4gICAgaWQ/OiBzdHJpbmdcbiAgICBuYW1lOiBzdHJpbmdcbn1cblxuZXhwb3J0IGludGVyZmFjZSBQcm9ncmFtTWFya2VyIHtcbiAgICAvKipcbiAgICAgKiBUaW1lc3RhbXAgd2hpY2ggbWFya3MgYmVnaW5uaW5nIG9mIHRoZSBwcm9ncmFtXG4gICAgICovXG4gICAgZnJvbTogVGltZXN0YW1wXG4gICAgLyoqXG4gICAgICogTGlzdCBvZiByZWxhdGl2ZSBtYXJrZXJzIGluc2lkZSBvZiBvbmUgcHJvZ3JhbVxuICAgICAqL1xuICAgIG1hcmtlcnM6IE1hcmtlcltdXG4gICAgLyoqXG4gICAgICogSW5mbyBhYm91dCB0aGUgcHJvZ3JhbVxuICAgICAqL1xuICAgIHByb2dyYW06IFByb2dyYW1JbmZvXG4gICAgLyoqXG4gICAgICogVGltZXN0YW1wIHdoaWNoIG1hcmtzIGVuZCBvZiB0aGUgcHJvZ3JhbS4gSXQgaXMgbnVsbGFibGUsIGJlY2F1c2UgdW50aWwgdGhlIHByb2dyYW0gaXMgZmluaXNoZWQsIHdlIGRvbid0IGtub3cgdGhlIHZhbHVlXG4gICAgICovXG4gICAgdG86IFRpbWVzdGFtcCB8IG51bGxcbn1cblxuZXhwb3J0IGludGVyZmFjZSBSYXdNYXJrZXIge1xuICAgIHByb2dyYW06IFByb2dyYW1JbmZvXG4gICAgdGltZXN0YW1wOiBudW1iZXJcbiAgICB0eXBlOiBNYXJrZXJUeXBlIHwgJ1BST0dSQU0nIHwgJ1NFTEZfUFJPTU8nIHwgJ1NQT05TT1InXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/markers/markers.ts\n')},"./src/firestore/model/membership/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./membershipDocument */ "./src/firestore/model/membership/membershipDocument.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL21lbWJlcnNoaXAvaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC9tZW1iZXJzaGlwL2luZGV4LnRzP2VmYTEiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tZW1iZXJzaGlwRG9jdW1lbnQnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/membership/index.ts\n')},"./src/firestore/model/membership/membershipDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/monetization/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./monetizationDocument */ "./src/firestore/model/monetization/monetizationDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./monetizationEnums */ "./src/firestore/model/monetization/monetizationEnums.ts"), exports);\n__exportStar(__webpack_require__(/*! ./monetizationFields */ "./src/firestore/model/monetization/monetizationFields.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL21vbmV0aXphdGlvbi9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC9tb25ldGl6YXRpb24vaW5kZXgudHM/Y2MwOSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL21vbmV0aXphdGlvbkRvY3VtZW50J1xuZXhwb3J0ICogZnJvbSAnLi9tb25ldGl6YXRpb25FbnVtcydcbmV4cG9ydCAqIGZyb20gJy4vbW9uZXRpemF0aW9uRmllbGRzJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/monetization/index.ts\n')},"./src/firestore/model/monetization/monetizationDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/monetization/monetizationEnums.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.MONETIZATION_FREQUENCY = exports.MonetizationPlacementType = void 0;\nvar types_1 = __webpack_require__(/*! @tivio/types */ "../types/dist/index.js");\nObject.defineProperty(exports, "MONETIZATION_FREQUENCY", ({ enumerable: true, get: function () { return types_1.MONETIZATION_FREQUENCY; } }));\n// TODO rename to MonetizationPlacementType\nvar MonetizationPlacementType;\n(function (MonetizationPlacementType) {\n MonetizationPlacementType["VIDEO"] = "video";\n MonetizationPlacementType["SECTION"] = "section";\n MonetizationPlacementType["CHANNEL"] = "channel";\n MonetizationPlacementType["CONDITION"] = "condition";\n MonetizationPlacementType["TV_CHANNEL"] = "tvChannel";\n})(MonetizationPlacementType = exports.MonetizationPlacementType || (exports.MonetizationPlacementType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL21vbmV0aXphdGlvbi9tb25ldGl6YXRpb25FbnVtcy50cy5qcyIsIm1hcHBpbmdzIjoiOzs7QUFBQTtBQWVBO0FBYkE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvbW9uZXRpemF0aW9uL21vbmV0aXphdGlvbkVudW1zLnRzPzFkZjYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTU9ORVRJWkFUSU9OX0ZSRVFVRU5DWSwgTW9uZXRpemF0aW9uVHlwZSB9IGZyb20gJ0B0aXZpby90eXBlcydcblxuLy8gVE9ETyByZW5hbWUgdG8gTW9uZXRpemF0aW9uUGxhY2VtZW50VHlwZVxuZXhwb3J0IGVudW0gTW9uZXRpemF0aW9uUGxhY2VtZW50VHlwZSB7XG4gICAgVklERU8gPSAndmlkZW8nLFxuICAgIFNFQ1RJT04gPSAnc2VjdGlvbicsXG4gICAgQ0hBTk5FTCA9ICdjaGFubmVsJyxcbiAgICBDT05ESVRJT04gPSAnY29uZGl0aW9uJyxcbiAgICBUVl9DSEFOTkVMID0gJ3R2Q2hhbm5lbCcsXG59XG5cbmV4cG9ydCB7XG4gICAgLyoqXG4gICAgICogQGRlcHJlY2F0ZWQgdXNlIE1PTkVUSVpBVElPTl9GUkVRVUVOQ1kgZnJvbSBAdGl2aW8vdHlwZXMgaW5zdGVhZFxuICAgICAqL1xuICAgIE1PTkVUSVpBVElPTl9GUkVRVUVOQ1ksXG59XG5leHBvcnQgdHlwZSB7XG4gICAgLyoqXG4gICAgICogQGRlcHJlY2F0ZWQgdXNlIE1vbmV0aXphdGlvblR5cGUgZnJvbSBAdGl2aW8vdHlwZXMgaW5zdGVhZCAvLyBUT0RPIFRJVi0xNjM3XG4gICAgICovXG4gICAgTW9uZXRpemF0aW9uVHlwZSxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/model/monetization/monetizationEnums.ts\n')},"./src/firestore/model/monetization/monetizationFields.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/organization/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./organizationDocument */ "./src/firestore/model/organization/organizationDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./organizationFields */ "./src/firestore/model/organization/organizationFields.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL29yZ2FuaXphdGlvbi9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvb3JnYW5pemF0aW9uL2luZGV4LnRzPzMxZmUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9vcmdhbml6YXRpb25Eb2N1bWVudCdcbmV4cG9ydCAqIGZyb20gJy4vb3JnYW5pemF0aW9uRmllbGRzJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/organization/index.ts\n')},"./src/firestore/model/organization/organizationDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/organization/organizationFields.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/promotion/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./promotionDocument */ "./src/firestore/model/promotion/promotionDocument.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3Byb21vdGlvbi9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL3Byb21vdGlvbi9pbmRleC50cz9lZTNmIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcHJvbW90aW9uRG9jdW1lbnQnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/promotion/index.ts\n')},"./src/firestore/model/promotion/promotionDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/purchase/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./purchaseDocument */ "./src/firestore/model/purchase/purchaseDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./purchaseFields */ "./src/firestore/model/purchase/purchaseFields.ts"), exports);\n__exportStar(__webpack_require__(/*! ./purchaseEnums */ "./src/firestore/model/purchase/purchaseEnums.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3B1cmNoYXNlL2luZGV4LnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL3B1cmNoYXNlL2luZGV4LnRzPzJiM2EiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wdXJjaGFzZURvY3VtZW50J1xuZXhwb3J0ICogZnJvbSAnLi9wdXJjaGFzZUZpZWxkcydcbmV4cG9ydCAqIGZyb20gJy4vcHVyY2hhc2VFbnVtcydcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/model/purchase/index.ts\n')},"./src/firestore/model/purchase/purchaseDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/purchase/purchaseEnums.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.PurchaseStatus = void 0;\nvar types_1 = __webpack_require__(/*! @tivio/types */ "../types/dist/index.js");\nObject.defineProperty(exports, "PurchaseStatus", ({ enumerable: true, get: function () { return types_1.PurchaseStatus; } }));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3B1cmNoYXNlL3B1cmNoYXNlRW51bXMudHMuanMiLCJtYXBwaW5ncyI6Ijs7O0FBQUE7QUFNQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL3B1cmNoYXNlL3B1cmNoYXNlRW51bXMudHM/MTRlNiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQdXJjaGFzZVN0YXR1cyB9IGZyb20gJ0B0aXZpby90eXBlcydcblxuZXhwb3J0IHtcbiAgICAvKipcbiAgICAgKiBAZGVwcmVjYXRlZCB1c2UgUHVyY2hhc2VTdGF0dXMgZnJvbSBAdGl2aW8vdHlwZXMgaW5zdGVhZCAvLyBUT0RPIFRJVi0xNjM3XG4gICAgICovXG4gICAgUHVyY2hhc2VTdGF0dXMsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/purchase/purchaseEnums.ts\n')},"./src/firestore/model/purchase/purchaseFields.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/referral/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./referralDocument */ "./src/firestore/model/referral/referralDocument.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3JlZmVycmFsL2luZGV4LnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvcmVmZXJyYWwvaW5kZXgudHM/ODk1MCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3JlZmVycmFsRG9jdW1lbnQnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/referral/index.ts\n')},"./src/firestore/model/referral/referralDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/row/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./rowDocument */ "./src/firestore/model/row/rowDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./rowEnums */ "./src/firestore/model/row/rowEnums.ts"), exports);\n__exportStar(__webpack_require__(/*! ./rowFields */ "./src/firestore/model/row/rowFields.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3Jvdy9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC9yb3cvaW5kZXgudHM/NzhiMSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3Jvd0RvY3VtZW50J1xuZXhwb3J0ICogZnJvbSAnLi9yb3dFbnVtcydcbmV4cG9ydCAqIGZyb20gJy4vcm93RmllbGRzJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/row/index.ts\n')},"./src/firestore/model/row/rowDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/row/rowEnums.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.RowItemComponent = exports.RowComponent = exports.RowOrderByFieldPath = exports.RowWhereFilterFieldPath = exports.RowFilterCollection = void 0;\nvar types_1 = __webpack_require__(/*! @tivio/types */ "../types/dist/index.js");\nObject.defineProperty(exports, "RowComponent", ({ enumerable: true, get: function () { return types_1.RowComponent; } }));\nObject.defineProperty(exports, "RowItemComponent", ({ enumerable: true, get: function () { return types_1.RowItemComponent; } }));\nvar RowFilterCollection;\n(function (RowFilterCollection) {\n RowFilterCollection["VIDEOS"] = "videos";\n /**\n * This is not real collection path. Path always should be ${organizationId}/tags\n */\n RowFilterCollection["TAGS"] = "tags";\n RowFilterCollection["TV_CHANNELS"] = "tvChannels";\n})(RowFilterCollection = exports.RowFilterCollection || (exports.RowFilterCollection = {}));\nvar RowWhereFilterFieldPath;\n(function (RowWhereFilterFieldPath) {\n RowWhereFilterFieldPath["CREATED"] = "created";\n RowWhereFilterFieldPath["TAGS"] = "tags";\n RowWhereFilterFieldPath["TAG_TYPE_REF"] = "tagTypeRef";\n RowWhereFilterFieldPath["TYPE"] = "type";\n RowWhereFilterFieldPath["CONTENT_TYPE"] = "contentType";\n})(RowWhereFilterFieldPath = exports.RowWhereFilterFieldPath || (exports.RowWhereFilterFieldPath = {}));\nvar RowOrderByFieldPath;\n(function (RowOrderByFieldPath) {\n RowOrderByFieldPath["CREATED"] = "created";\n})(RowOrderByFieldPath = exports.RowOrderByFieldPath || (exports.RowOrderByFieldPath = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3Jvdy9yb3dFbnVtcy50cy5qcyIsIm1hcHBpbmdzIjoiOzs7QUFBQTtBQTRCQTtBQUlBO0FBN0JBO0FBQUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUN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FxuICAgIC8qKlxuICAgICAqIEBkZXByZWNhdGVkIHVzZSBSb3dJdGVtQ29tcG9uZW50IGZyb20gQHRpdmlvL3R5cGVzIGluc3RlYWQgLy8gVE9ETyBUSVYtMTYzN1xuICAgICAqL1xuICAgIFJvd0l0ZW1Db21wb25lbnQsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/row/rowEnums.ts\n')},"./src/firestore/model/row/rowFields.ts":function(__unused_webpack_module,exports){"use strict";eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.ORDER_BY_DIRECTIONS = exports.WHERE_FILTER_OPERATORS = exports.SCREEN_ROW_TYPES = void 0;\n// TODO it's not possible to simply get all values from string literal type (ScreenRowType),\n// so ScreenRowType should be changed to enum.\nexports.SCREEN_ROW_TYPES = [\n /**\n * Items are selected by filter settings\n */\n 'filter',\n /**\n * Items are manually selected by user\n */\n 'custom',\n /**\n * Items that user started to watch but didn't finished\n */\n 'continueToWatch',\n /**\n * Favourite items\n */\n 'favourites',\n];\n/**\n * All values from ${@link firebase.firestore.WhereFilterOp}\n */\nexports.WHERE_FILTER_OPERATORS = [\n '<',\n '<=',\n '==',\n '!=',\n '>=',\n '>',\n 'array-contains',\n 'in',\n 'array-contains-any',\n 'not-in',\n];\n/**\n * All values from ${@link firebase.firestore.OrderByDirection}\n */\nexports.ORDER_BY_DIRECTIONS = ['desc', 'asc'];\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3Jvdy9yb3dGaWVsZHMudHMuanMiLCJtYXBwaW5ncyI6Ijs7O0FBNEJBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUVB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JFX0ZJTFRFUl9PUEVSQVRPUlMgPSBbXG4gICAgJzwnLFxuICAgICc8PScsXG4gICAgJz09JyxcbiAgICAnIT0nLFxuICAgICc+PScsXG4gICAgJz4nLFxuICAgICdhcnJheS1jb250YWlucycsXG4gICAgJ2luJyxcbiAgICAnYXJyYXktY29udGFpbnMtYW55JyxcbiAgICAnbm90LWluJyxcbl1cblxuLyoqXG4gKiBBbGwgdmFsdWVzIGZyb20gJHtAbGluayBmaXJlYmFzZS5maXJlc3RvcmUuT3JkZXJCeURpcmVjdGlvbn1cbiAqL1xuZXhwb3J0IGNvbnN0IE9SREVSX0JZX0RJUkVDVElPTlMgPSBbICdkZXNjJywgJ2FzYycgXVxuXG5leHBvcnQgdHlwZSBJdGVtc0luUm93RmlyZXN0b3JlID0gVGFnRG9jdW1lbnQgfCBWaWRlb0RvY3VtZW50IHwgVHZDaGFubmVsRG9jdW1lbnRcblxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/row/rowFields.ts\n")},"./src/firestore/model/screen/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./screenDocument */ "./src/firestore/model/screen/screenDocument.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3NjcmVlbi9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL3NjcmVlbi9pbmRleC50cz81MjJmIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc2NyZWVuRG9jdW1lbnQnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/screen/index.ts\n')},"./src/firestore/model/screen/screenDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/section/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./sectionDocument */ "./src/firestore/model/section/sectionDocument.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3NlY3Rpb24vaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC9zZWN0aW9uL2luZGV4LnRzPzUzOTUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zZWN0aW9uRG9jdW1lbnQnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/section/index.ts\n')},"./src/firestore/model/section/sectionDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/shame.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.ContentType = exports.DurationUnits = void 0;\n/**\n * TODO move to @tivio/types\n */\nvar DurationUnits;\n(function (DurationUnits) {\n DurationUnits["DAY"] = "day";\n DurationUnits["MONTH"] = "month";\n})(DurationUnits = exports.DurationUnits || (exports.DurationUnits = {}));\nvar ContentType;\n(function (ContentType) {\n ContentType["CHANNEL"] = "channel";\n ContentType["EPISODE"] = "episode";\n ContentType["MOVIE"] = "movie";\n ContentType["MAGAZINE"] = "magazine";\n ContentType["PLAYLIST"] = "playlist";\n ContentType["SHOW"] = "show";\n ContentType["TRAILER"] = "trailer";\n})(ContentType = exports.ContentType || (exports.ContentType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3NoYW1lLnRzLmpzIiwibWFwcGluZ3MiOiI7OztBQThCQTs7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL3NoYW1lLnRzPzg0MjUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUaGlzIGZpbGUgc2hvdWxkIGJlIGVtcHR5IVxuICpcbiAqIFB1dCBoZXJlIGV2ZXJ5dGhpbmcgeW91IGRvbid0IG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U9WSUUgPSAnbW92aWUnLFxuICAgIE1BR0FaSU5FID0gJ21hZ2F6aW5lJyxcbiAgICBQTEFZTElTVCA9ICdwbGF5bGlzdCcsXG4gICAgU0hPVyA9ICdzaG93JyxcbiAgICBUUkFJTEVSID0gJ3RyYWlsZXInLFxufVxuXG5leHBvcnQgaW50ZXJmYWNlIENvbnRlbnQge1xuICAgIHR5cGU6IENvbnRlbnRUeXBlXG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgTW92aWUgZXh0ZW5kcyBDb250ZW50IHtcblxufVxuXG5leHBvcnQgaW50ZXJmYWNlIEVwaXNvZGUgZXh0ZW5kcyBNb3ZpZSB7XG5cbn1cblxuZXhwb3J0IGludGVyZmFjZSBTaG93IGV4dGVuZHMgQ29udGVudCB7XG5cbn1cblxuZXhwb3J0IGludGVyZmFjZSBNYWdhemluZSBleHRlbmRzIENvbnRlbnQge1xuXG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgVHJhaWxlciBleHRlbmRzIENvbnRlbnQge1xuXG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgUGxheWxpc3QgZXh0ZW5kcyBDb250ZW50IHtcblxufVxuXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/shame.ts\n')},"./src/firestore/model/tag/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./tagDocument */ "./src/firestore/model/tag/tagDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./tagEnums */ "./src/firestore/model/tag/tagEnums.ts"), exports);\n__exportStar(__webpack_require__(/*! ./tagFields */ "./src/firestore/model/tag/tagFields.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3RhZy9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC90YWcvaW5kZXgudHM/NThkYSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3RhZ0RvY3VtZW50J1xuZXhwb3J0ICogZnJvbSAnLi90YWdFbnVtcydcbmV4cG9ydCAqIGZyb20gJy4vdGFnRmllbGRzJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/tag/index.ts\n')},"./src/firestore/model/tag/tagDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/tag/tagEnums.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.TagSimplicityType = exports.TagMetadataFieldType = void 0;\nvar TagMetadataFieldType;\n(function (TagMetadataFieldType) {\n TagMetadataFieldType["STRING"] = "STRING";\n TagMetadataFieldType["TRANSLATION"] = "TRANSLATION";\n TagMetadataFieldType["NUMBER"] = "NUMBER";\n TagMetadataFieldType["BOOLEAN"] = "BOOLEAN";\n TagMetadataFieldType["AVAILABLE_SEASONS"] = "AVAILABLE_SEASONS";\n})(TagMetadataFieldType = exports.TagMetadataFieldType || (exports.TagMetadataFieldType = {}));\nvar TagSimplicityType;\n(function (TagSimplicityType) {\n /**\n * Simple tags\n */\n TagSimplicityType["SIMPLE"] = "SIMPLE";\n /**\n * Composed from simple tags. Used for filtering by tagA AND tagB using one composed tag tagA__tagB\n */\n TagSimplicityType["COMPOSED"] = "COMPOSED";\n})(TagSimplicityType = exports.TagSimplicityType || (exports.TagSimplicityType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3RhZy90YWdFbnVtcy50cy5qcyIsIm1hcHBpbmdzIjoiOzs7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC90YWcvdGFnRW51bXMudHM/OTMwNSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBUYWdNZXRhZGF0YUZpZWxkVHlwZSB7XG4gICAgU1RSSU5HID0gJ1NUUklORycsXG4gICAgVFJBTlNMQVRJT04gPSAnVFJBTlNMQVRJT04nLFxuICAgIE5VTUJFUiA9ICdOVU1CRVInLFxuICAgIEJPT0xFQU4gPSAnQk9PTEVBTicsXG4gICAgQVZBSUxBQkxFX1NFQVNPTlMgPSAnQVZBSUxBQkxFX1NFQVNPTlMnLFxufVxuXG5leHBvcnQgZW51bSBUYWdTaW1wbGljaXR5VHlwZSB7XG4gICAgLyoqXG4gICAgICogU2ltcGxlIHRhZ3NcbiAgICAgKi9cbiAgICBTSU1QTEUgPSAnU0lNUExFJyxcbiAgICAvKipcbiAgICAgKiBDb21wb3NlZCBmcm9tIHNpbXBsZSB0YWdzLiBVc2VkIGZvciBmaWx0ZXJpbmcgYnkgdGFnQSBBTkQgdGFnQiB1c2luZyBvbmUgY29tcG9zZWQgdGFnIHRhZ0FfX3RhZ0JcbiAgICAgKi9cbiAgICBDT01QT1NFRCA9ICdDT01QT1NFRCdcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/model/tag/tagEnums.ts\n')},"./src/firestore/model/tag/tagFields.ts":function(__unused_webpack_module,exports){"use strict";eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.TAG_LANDSCAPE_COVER_ASSET_NAME = exports.TAG_PORTRAIT_COVER_ASSET_NAME = exports.TAG_COVER_ASSET_NAME = exports.TAG_DETAIL_BANNER_ASSET_NAME = exports.TAG_BANNER_ASSET_NAME = void 0;\nexports.TAG_BANNER_ASSET_NAME = 'tag_banner';\nexports.TAG_DETAIL_BANNER_ASSET_NAME = 'tag_detail';\nexports.TAG_COVER_ASSET_NAME = 'tag_cover';\nexports.TAG_PORTRAIT_COVER_ASSET_NAME = 'tag_portrait_cover';\nexports.TAG_LANDSCAPE_COVER_ASSET_NAME = 'tag_landscape_cover';\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3RhZy90YWdGaWVsZHMudHMuanMiLCJtYXBwaW5ncyI6Ijs7O0FBb0NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC90YWcvdGFnRmllbGRzLnRzPzgwNGUiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHJhbnNsYXRpb25GaWVsZCB9IGZyb20gJy4uL2NvbW1vbi9jb21tb25GaWVsZHMnXG5pbXBvcnQgeyBUYWdNZXRhZGF0YUZpZWxkRGVmaW5pdGlvbiB9IGZyb20gJy4uL3RhZ1R5cGUnXG5c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agFields.ts\n")},"./src/firestore/model/tagType/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./tagTypeDocument */ "./src/firestore/model/tagType/tagTypeDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./tagTypeEnums */ "./src/firestore/model/tagType/tagTypeEnums.ts"), exports);\n__exportStar(__webpack_require__(/*! ./tagTypeFields */ "./src/firestore/model/tagType/tagTypeFields.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3RhZ1R5cGUvaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvdGFnVHlwZS9pbmRleC50cz80YmZiIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdGFnVHlwZURvY3VtZW50J1xuZXhwb3J0ICogZnJvbSAnLi90YWdUeXBlRW51bXMnXG5leHBvcnQgKiBmcm9tICcuL3RhZ1R5cGVGaWVsZHMnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/tagType/index.ts\n')},"./src/firestore/model/tagType/tagTypeDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/tagType/tagTypeEnums.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.GlobalTagTypeId = void 0;\n/**\n * These are current values of attribute `tagTypeId` from the DB collection `globalTagTypes`\n * (11.2.2022 both dev and prod)\n */\nvar GlobalTagTypeId;\n(function (GlobalTagTypeId) {\n GlobalTagTypeId["Actor"] = "actor";\n GlobalTagTypeId["Genre"] = "genre";\n GlobalTagTypeId["Series"] = "series";\n})(GlobalTagTypeId = exports.GlobalTagTypeId || (exports.GlobalTagTypeId = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3RhZ1R5cGUvdGFnVHlwZUVudW1zLnRzLmpzIiwibWFwcGluZ3MiOiI7OztBQUFBOzs7QUFHQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL3RhZ1R5cGUvdGFnVHlwZUVudW1zLnRzPzUwOGUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUaGVzZSBhcmUgY3VycmVudCB2YWx1ZXMgb2YgYXR0cmlidXRlIGB0YWdUeXBlSWRgIGZyb20gdGhlIERCIGNvbGxlY3Rpb24gYGdsb2JhbFRhZ1R5cGVzYFxuICogKDExLjIuMjAyMiBib3RoIGRldiBhbmQgcHJvZClcbiAqL1xuZXhwb3J0IGVudW0gR2xvYmFsVGFnVHlwZUlkIHtcbiAgICBBY3RvciA9ICdhY3RvcicsXG4gICAgR2VucmUgPSAnZ2VucmUnLFxuICAgIFNlcmllcyA9ICdzZXJpZXMnLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/tagType/tagTypeEnums.ts\n')},"./src/firestore/model/tagType/tagTypeFields.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/tvChannel/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./tvChannelDocument */ "./src/firestore/model/tvChannel/tvChannelDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./tvChannelEnums */ "./src/firestore/model/tvChannel/tvChannelEnums.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3R2Q2hhbm5lbC9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvdHZDaGFubmVsL2luZGV4LnRzP2YwZjQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi90dkNoYW5uZWxEb2N1bWVudCdcbmV4cG9ydCAqIGZyb20gJy4vdHZDaGFubmVsRW51bXMnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/tvChannel/index.ts\n')},"./src/firestore/model/tvChannel/tvChannelDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/tvChannel/tvChannelEnums.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.TvStreamType = void 0;\nvar TvStreamType;\n(function (TvStreamType) {\n TvStreamType["STARTOVER"] = "startover";\n TvStreamType["TIMESHIFT"] = "timeshift";\n TvStreamType["LIVE"] = "live";\n TvStreamType["ALL"] = "all";\n})(TvStreamType = exports.TvStreamType || (exports.TvStreamType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3R2Q2hhbm5lbC90dkNoYW5uZWxFbnVtcy50cy5qcyIsIm1hcHBpbmdzIjoiOzs7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL3R2Q2hhbm5lbC90dkNoYW5uZWxFbnVtcy50cz9mNGVjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFR2U3RyZWFtVHlwZSB7XG4gICAgU1RBUlRPVkVSID0gJ3N0YXJ0b3ZlcicsXG4gICAgVElNRVNISUZUID0gJ3RpbWVzaGlmdCcsXG4gICAgTElWRSA9ICdsaXZlJyxcbiAgICBBTEwgPSAnYWxsJyxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/model/tvChannel/tvChannelEnums.ts\n')},"./src/firestore/model/user/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./userDocument */ "./src/firestore/model/user/userDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./userEnums */ "./src/firestore/model/user/userEnums.ts"), exports);\n__exportStar(__webpack_require__(/*! ./userFields */ "./src/firestore/model/user/userFields.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3VzZXIvaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvdXNlci9pbmRleC50cz9lODYzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdXNlckRvY3VtZW50J1xuZXhwb3J0ICogZnJvbSAnLi91c2VyRW51bXMnXG5leHBvcnQgKiBmcm9tICcuL3VzZXJGaWVsZHMnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/user/index.ts\n')},"./src/firestore/model/user/userDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/user/userEnums.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.UserType = exports.UserDataType = void 0;\nvar types_1 = __webpack_require__(/*! @tivio/types */ "../types/dist/index.js");\nObject.defineProperty(exports, "UserType", ({ enumerable: true, get: function () { return types_1.UserType; } }));\nvar UserDataType;\n(function (UserDataType) {\n UserDataType["FAVORITE"] = "favorite";\n UserDataType["PURCHASE"] = "purchase";\n UserDataType["WATCH_POSITION"] = "watchPosition";\n})(UserDataType = exports.UserDataType || (exports.UserDataType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3VzZXIvdXNlckVudW1zLnRzLmpzIiwibWFwcGluZ3MiOiI7OztBQUFBO0FBWUE7QUFWQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC91c2VyL3VzZXJFbnVtcy50cz82NzcwIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFVzZXJUeXBlIH0gZnJvbSAnQHRpdmlvL3R5cGVzJ1xuXG5leHBvcnQgZW51bSBVc2VyRGF0YVR5cGUge1xuICAgIEZBVk9SSVRFID0gJ2Zhdm9yaXRlJyxcbiAgICBQVVJDSEFTRSA9ICdwdXJjaGFzZScsXG4gICAgV0FUQ0hfUE9TSVRJT04gPSAnd2F0Y2hQb3NpdGlvbicsXG59XG5cbmV4cG9ydCB7XG4gICAgLyoqXG4gICAgICogQGRlcHJlY2F0ZWQgdXNlIFVzZXJUeXBlIGZyb20gQHRpdmlvL3R5cGVzIGluc3RlYWQgLy8gVE9ETyBUSVYtMTYzN1xuICAgICAqL1xuICAgIFVzZXJUeXBlLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/user/userEnums.ts\n')},"./src/firestore/model/user/userFields.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/video/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./videoAnalyticsDocument */ "./src/firestore/model/video/videoAnalyticsDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./videoDocument */ "./src/firestore/model/video/videoDocument.ts"), exports);\n__exportStar(__webpack_require__(/*! ./videoEnums */ "./src/firestore/model/video/videoEnums.ts"), exports);\n__exportStar(__webpack_require__(/*! ./videoFields */ "./src/firestore/model/video/videoFields.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3ZpZGVvL2luZGV4LnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvdmlkZW8vaW5kZXgudHM/ZjYwNiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3ZpZGVvQW5hbHl0aWNzRG9jdW1lbnQnXG5leHBvcnQgKiBmcm9tICcuL3ZpZGVvRG9jdW1lbnQnXG5leHBvcnQgKiBmcm9tICcuL3ZpZGVvRW51bXMnXG5leHBvcnQgKiBmcm9tICcuL3ZpZGVvRmllbGRzJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/video/index.ts\n')},"./src/firestore/model/video/videoAnalyticsDocument.ts":function(__unused_webpack_module,exports){"use strict";eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.VideoAnalyticsHistogramPercentages = void 0;\n/**\n * Percentage of video watched e.g. 0, 5, 10, 15, ..., 100.\n */\nexports.VideoAnalyticsHistogramPercentages = [\n '0',\n '5',\n '10',\n '15',\n '20',\n '25',\n '30',\n '35',\n '40',\n '45',\n '50',\n '55',\n '60',\n '65',\n '70',\n '75',\n '80',\n '85',\n '90',\n '95',\n '100',\n];\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3ZpZGVvL3ZpZGVvQW5hbHl0aWNzRG9jdW1lbnQudHMuanMiLCJtYXBwaW5ncyI6Ijs7O0FBR0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvdmlkZW8vdmlkZW9BbmFseXRpY3NEb2N1bWVudC50cz8xZGFiIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBmaXJlYmFzZSBmcm9tICdmaXJlYmFzZSdcblxuXG4vKipcbiAqIFBlcmNlbnRhZ2Ugb2YgdmlkZW8gd2F0Y2hlZCBlLmcuIDAsIDUsIDEwLCAxNSwgLi4uLCAxMDAuXG4gKi9cbmV4cG9ydCBjb25zdCBWaWRlb0FuYWx5dGljc0hpc3RvZ3JhbVBlcmNlbnRhZ2VzOiByZWFkb25seSBzdHJpb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dlbmVyYXRlZC5cbiAgICAgKi9cbiAgICBwZXJpb2Q6ICdkYXknIHwgJ21vbnRoJyB8ICd5ZWFyJ1xuXG4gICAgLyoqXG4gICAgICogSG93IG1hbnkgbWlsbGlzZWNvbmRzIG9mIHRoaXMgdmlkZW8gd2FzIHdhdGNoZWQgaW4gdG90YWwuXG4gICAgICovXG4gICAgd2F0Y2hNc0NvdW50OiBudW1iZXJcblxuICAgIC8qKlxuICAgICAqIE51bWJlciBvZiB1bmlxdWUgdXNlcnMgdGhhdCB3YXRjaGVkIGF0IGxlYXN0IDEgc2Vjb25kIG9mIHRoaXMgdmlkZW8uXG4gICAgICovXG4gICAgdXNlckNvdW50OiBudW1iZXJcblxuICAgIC8qKlxuICAgICAqIE51bWJlciBvZiBub24tdW5pcXVlIHZpZXdzIChlLmcuIHdpbGwgYmUgPj0gdW5pcXVlVXNlcnMpXG4gICAgICovXG4gICAgdmlld0NvdW50OiBudW1iZXJcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/model/video/videoAnalyticsDocument.ts\n")},"./src/firestore/model/video/videoDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/video/videoEnums.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.VideoContentType = exports.VideoType = exports.VideoTranscodingStatus = exports.VideoDataSource = exports.VideoSourceCodec = exports.VideoSourceEncryption = exports.VideoSourceProtocol = exports.VideoStatus = void 0;\nvar types_1 = __webpack_require__(/*! @tivio/types */ "../types/dist/index.js");\nObject.defineProperty(exports, "VideoType", ({ enumerable: true, get: function () { return types_1.VideoType; } }));\nObject.defineProperty(exports, "VideoContentType", ({ enumerable: true, get: function () { return types_1.VideoContentType; } }));\n/**\n * Video published status.\n */\nvar VideoStatus;\n(function (VideoStatus) {\n /**\n * Video is a draft, it\'s not published yet.\n */\n VideoStatus["DRAFT"] = "DRAFT";\n /**\n * Video has been published.\n */\n VideoStatus["PUBLISHED"] = "PUBLISHED";\n})(VideoStatus = exports.VideoStatus || (exports.VideoStatus = {}));\nvar VideoSourceProtocol;\n(function (VideoSourceProtocol) {\n VideoSourceProtocol["HLS"] = "hls";\n VideoSourceProtocol["DASH"] = "dash";\n VideoSourceProtocol["MP4"] = "mp4";\n})(VideoSourceProtocol = exports.VideoSourceProtocol || (exports.VideoSourceProtocol = {}));\nvar VideoSourceEncryption;\n(function (VideoSourceEncryption) {\n VideoSourceEncryption["NONE"] = "none";\n VideoSourceEncryption["WIDEVINE"] = "widevine";\n VideoSourceEncryption["FAIRPLAY"] = "fairplay";\n VideoSourceEncryption["PLAYREADY"] = "playready";\n})(VideoSourceEncryption = exports.VideoSourceEncryption || (exports.VideoSourceEncryption = {}));\nvar VideoSourceCodec;\n(function (VideoSourceCodec) {\n VideoSourceCodec["H264"] = "h264";\n VideoSourceCodec["H265"] = "h265";\n})(VideoSourceCodec = exports.VideoSourceCodec || (exports.VideoSourceCodec = {}));\n/**\n * Video origin.\n */\nvar VideoDataSource;\n(function (VideoDataSource) {\n /**\n * Video imported via EPG.\n */\n VideoDataSource["EPG_IMPORT"] = "EPG_IMPORT";\n VideoDataSource["MALL_TV"] = "MALL_TV";\n /**\n * Video created in Tivio Admin.\n */\n VideoDataSource["TIVIO_ADMIN"] = "TIVIO_ADMIN";\n})(VideoDataSource = exports.VideoDataSource || (exports.VideoDataSource = {}));\n/**\n * Transcoding status of uploaded video.\n */\nvar VideoTranscodingStatus;\n(function (VideoTranscodingStatus) {\n /**\n * Video is not transcoded yet. It\'s in the queue, though.\n */\n VideoTranscodingStatus["ON_HOLD"] = "CREATED";\n /**\n * Video is being transcoded.\n */\n VideoTranscodingStatus["IN_PROGRESS"] = "ENCODING";\n /**\n * Video has been transcoded.\n */\n VideoTranscodingStatus["DONE"] = "ENCODING_DONE";\n /**\n * An error occured during transcoding.\n */\n VideoTranscodingStatus["ERROR"] = "ERROR";\n})(VideoTranscodingStatus = exports.VideoTranscodingStatus || (exports.VideoTranscodingStatus = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3ZpZGVvL3ZpZGVvRW51bXMudHMuanMiLCJtYXBwaW5ncyI6Ijs7O0FBQUE7QUE0RUE7QUFJQTtBQTlFQTs7QUFFQTtBQUNBO0FBQUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBR0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7O0FBRUE7QUFDQTtBQUFBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBRUE7O0FBRUE7QUFDQTtBQUFBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvbW9kZWwvdmlkZW8vdmlkZW9FbnVtcy50cz9lYjc5Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFZpZGVvVHlwZSwgVmlkZW9Db250ZW50VHlwZSB9IGZyb20gJ0B0aXZpby90eXBlcydcblxuLyoqXG4gKiBWaWRlbyBwdWJsaXNoZWQgc3RhdHVzLlxuICovXG5leHBvcnQgZW51bSBWaWRlb1N0YXR1cyB7XG4gICAgLyoqXG4gICAgICogVmlkZW8gaXMgYSBkcmFmdCwgaXQncyBub3QgcHVibGlzaGVkIHlldC5cbiAgICAgKi9cbiAgICBEUkFGV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IHRoZSBxdWV1ZSwgdGhvdWdoLlxuICAgICAqL1xuICAgIE9OX0hPTEQgPSAnQ1JFQVRFRCcsXG4gICAgLyoqXG4gICAgICogVmlkZW8gaXMgYmVpbmcgdHJhbnNjb2RlZC5cbiAgICAgKi9cbiAgICBJTl9QUk9HUkVTUyA9ICdFTkNPRElORycsXG4gICAgLyoqXG4gICAgICogVmlkZW8gaGFzIGJlZW4gdHJhbnNjb2RlZC5cbiAgICAgKi9cbiAgICBET05FID0gJ0VOQ09ESU5HX0RPTkUnLFxuICAgIC8qKlxuICAgICAqIEFuIGVycm9yIG9jY3VyZWQgZHVyaW5nIHRyYW5zY29kaW5nLlxuICAgICAqL1xuICAgIEVSUk9SID0gJ0VSUk9SJyxcbn1cblxuZXhwb3J0IHtcbiAgICAvKipcbiAgICAgKiBAZGVwcmVjYXRlZCB1c2UgVmlkZW9UeXBlIGZyb20gQHRpdmlvL3R5cGVzIGluc3RlYWQgLy8gVE9ETyBUSVYtMTYzN1xuICAgICAqL1xuICAgIFZpZGVvVHlwZSxcbiAgICAvKipcbiAgICAgKiBAZGVwcmVjYXRlZCB1c2UgVmlkZW9Db250ZW50VHlwZSBmcm9tIEB0aXZpby90eXBlcyBpbnN0ZWFkIC8vIFRPRE8gVElWLTE2MzdcbiAgICAgKi9cbiAgICBWaWRlb0NvbnRlbnRUeXBlLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/video/videoEnums.ts\n')},"./src/firestore/model/video/videoFields.ts":function(__unused_webpack_module,exports){"use strict";eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.VIDEO_DETAIL_ASSET_NAME = void 0;\nexports.VIDEO_DETAIL_ASSET_NAME = 'video_detail';\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3ZpZG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MiB8IDMgfCA0IHwgNVxuXG5leHBvcnQgdHlwZSBWaWRlb0F2YWlsYWJpbGl0eUZpZWxkID0ge1xuICAgIGZyb206IFRpbWVzdGFtcFxuICAgIHRvOiBUaW1lc3RhbXAgfCBudWxsXG4gICAgbWFudWFsOiBib29sZWFuXG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgVmlkZW9Nb25ldGl6YXRpb25zRmllbGQgZXh0ZW5kcyBNb25ldGl6YXRpb25GaWVsZCB7XG4gICAgZXhwaXJhdGlvbkRheXNTaW5jZVB1Ymxpc2hlZD86IG51bWJlclxuICAgIHByaWNlcz86IFByaWNlc0ZpZWxkXG59XG5cbmV4cG9ydCBjb25zdCBWSURFT19ERVRBSUxfQVNTRVRfTkFNRSA9ICd2aWRlb19kZXRhaWwnXG5cbmV4cG9ydCB0eXBlIFZpZGVvRXh0ZXJuYWxzRmllbGQgPSBWaWRlb0V4dGVybmFsc1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/model/video/videoFields.ts\n")},"./src/firestore/model/voucher/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./voucherDocument */ "./src/firestore/model/voucher/voucherDocument.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3ZvdWNoZXIvaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2ZpcmVzdG9yZS9tb2RlbC92b3VjaGVyL2luZGV4LnRzPzg3MjAiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi92b3VjaGVyRG9jdW1lbnQnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/voucher/index.ts\n')},"./src/firestore/model/voucher/voucherDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/model/widget/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./widgetDocument */ "./src/firestore/model/widget/widgetDocument.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL21vZGVsL3dpZGdldC9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZmlyZXN0b3JlL21vZGVsL3dpZGdldC9pbmRleC50cz81YzQ1Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vd2lkZ2V0RG9jdW1lbnQnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/firestore/model/widget/index.ts\n')},"./src/firestore/model/widget/widgetDocument.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/firestore/query.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.PaginatedQuery = void 0;\nvar lodash_isequal_1 = __importDefault(__webpack_require__(/*! lodash.isequal */ "../../node_modules/lodash.isequal/index.js"));\nvar object_hash_1 = __importDefault(__webpack_require__(/*! object-hash */ "../../node_modules/object-hash/dist/object_hash.js"));\nvar firebaseApps_1 = __webpack_require__(/*! ../environment/apps/firebaseApps */ "./src/environment/apps/firebaseApps.ts");\nvar convertFirestoreValue = function (value) {\n // if the value is firestore.DocumentReference object, it can\'t be hashed\n if (!value) {\n return \'\';\n }\n if (value.path) {\n return value.path;\n }\n return value;\n};\n/**\n * Database query with pagination\n */\nvar PaginatedQuery = /** @class */ (function () {\n function PaginatedQuery(\n /**\n * Firebase environment in which this query was instantiated\n */\n firebaseEnvironment, params) {\n var _this = this;\n this.firebaseEnvironment = firebaseEnvironment;\n this.params = params;\n this._isSubscribing = false;\n /**\n * @mobx this is converted to mobx observable in @tivio/core-js\n */\n this.pages = [];\n /**\n * Discard all pages of data that have been loaded so far\n *\n * @mobx this is converted to mobx action in @tivio/core-js\n */\n this.clearCache = function () {\n _this.unsubscribe();\n _this.pages = [];\n };\n this.get = function () { return __awaiter(_this, void 0, Promise, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n if (this.data.length > 0) {\n return [2 /*return*/, this.data];\n }\n if (this.pages.length > 0) {\n return [2 /*return*/, (_b = (_a = this.pages[0]) === null || _a === void 0 ? void 0 : _a.dataPromise) !== null && _b !== void 0 ? _b : []];\n }\n return [2 /*return*/, this.getNext()];\n });\n }); };\n this.getNext = function () {\n var _a;\n if ((_a = _this.lastPage) === null || _a === void 0 ? void 0 : _a.dataPromise) {\n return _this.lastPage.dataPromise;\n }\n var dataResolve = undefined;\n var dataPromise = new Promise(function (resolve) { return dataResolve = resolve; });\n _this._pushToPages({\n data: [],\n dataPromise: dataPromise,\n dataResolve: dataResolve,\n });\n return _this.getPage(_this.pages.length - 1);\n };\n /**\n * @mobx this is converted to mobx action in @tivio/core-js\n */\n this._pushToPages = function (data) {\n _this.pages.push(data);\n };\n /**\n * Subscribe to data changes in the database\n *\n * Data will be accessible in getter for "data"\n */\n this.subscribe = function () {\n if (_this.isSubscribing) {\n return;\n }\n _this._isSubscribing = true;\n if (_this.pages.length > 0) {\n _this.pages.forEach(function (_, pageIndex) { return _this.getPage(pageIndex); });\n }\n else {\n _this.getNext();\n }\n };\n /**\n * Stop subscribing to data in the database (releases resources)\n */\n this.unsubscribe = function () {\n _this._isSubscribing = false;\n _this.pages.forEach(function (page) {\n if (page.unsubscribe) {\n page.unsubscribe();\n page.unsubscribe = undefined;\n }\n });\n };\n /**\n * @mobx this is converted to mobx action in @tivio/core-js\n */\n this._handlePageSnapshot = function (pageIndex, snapshot) {\n var _a, _b;\n var page = _this.pages[pageIndex];\n page.data = snapshot.docs.map(function (queryDocumentSnapshot) {\n var document = _this.firebaseEnvironment.getDocumentWithPath(queryDocumentSnapshot.ref.path);\n document.updateCache(queryDocumentSnapshot.data());\n return document;\n });\n page.endSnapshot = (_a = snapshot.docs[snapshot.size - 1]) !== null && _a !== void 0 ? _a : undefined;\n page.startSnapshot = (_b = snapshot.docs[0]) !== null && _b !== void 0 ? _b : undefined;\n page.dataResolve && page.dataResolve(page.data);\n page.dataResolve = undefined;\n var promise = page.dataPromise;\n page.dataPromise = undefined;\n return promise;\n };\n /**\n * @throws If page does not exist\n */\n this.getPage = function (pageIndex) { return __awaiter(_this, void 0, Promise, function () {\n var page, previousPage, pageQuery, snapshot, dataPromise;\n var _this = this;\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (pageIndex < 0 || pageIndex >= this.pages.length) {\n throw new Error("Query.getPage can not get page with index (" + pageIndex + "}) which "\n + ("is not in pages range (" + this.pages.length + ")"));\n }\n page = this.pages[pageIndex];\n previousPage = (_a = this.pages[pageIndex - 1]) !== null && _a !== void 0 ? _a : null;\n pageQuery = this.buildPageQuery(previousPage, page);\n if (!this.isSubscribing) return [3 /*break*/, 1];\n page.unsubscribe = pageQuery.onSnapshot(({\n next: function (snapshot) { return _this._handlePageSnapshot(pageIndex, snapshot); },\n }));\n return [3 /*break*/, 3];\n case 1: return [4 /*yield*/, pageQuery.get()];\n case 2:\n snapshot = _b.sent();\n dataPromise = this._handlePageSnapshot(pageIndex, snapshot);\n if (dataPromise) {\n return [2 /*return*/, dataPromise];\n }\n _b.label = 3;\n case 3: return [2 /*return*/, []];\n }\n });\n }); };\n }\n PaginatedQuery.isEqual = function (queryA, queryB) {\n return (0, lodash_isequal_1.default)(queryA.params, queryB.params);\n };\n PaginatedQuery.hashParams = function (params) {\n return (0, object_hash_1.default)(__assign(__assign({}, params), { filters: params.filters.map(function (filter) { return (__assign(__assign({}, filter), { value: convertFirestoreValue(filter.value) })); }) }));\n };\n Object.defineProperty(PaginatedQuery.prototype, "data", {\n /**\n * Concatenate data from all pages to a single array\n *\n * @mobx this is converted to mobx computed in @tivio/core-js\n */\n get: function () {\n // With mobx configured to `useProxies: false` concatenating observable arrays doesn\'t work as expected,\n // so .slice() them first. (This getter is converted to observable in @tivio/core-js)\n // https://mobx.js.org/configuration.html#limitations-without-proxy-support\n return this.pages.map(function (page) { return page.data.slice(); }).flat();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(PaginatedQuery.prototype, "hash", {\n /**\n * Query is unique by its params, which hash is used as a cache key in FirebaseEnvironment\n */\n get: function () {\n return PaginatedQuery.hashParams(this.params);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(PaginatedQuery.prototype, "isSubscribing", {\n get: function () {\n return this._isSubscribing;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(PaginatedQuery.prototype, "lastPage", {\n get: function () {\n if (this.pages.length === 0) {\n return null;\n }\n return this.pages[this.pages.length - 1];\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Build query for a specific page\n */\n PaginatedQuery.prototype.buildPageQuery = function (previousPage, page) {\n var pageQuery = this.buildQuery();\n // set the top of the query\n if (previousPage && page.startSnapshot) {\n pageQuery = pageQuery.startAt(page.startSnapshot);\n }\n else if (previousPage && previousPage.endSnapshot) {\n pageQuery = pageQuery.startAfter(previousPage.endSnapshot);\n }\n // set the bottom of the query\n if (page.endSnapshot) {\n pageQuery = pageQuery.endAt(page.endSnapshot);\n }\n else if (this.params.limit) {\n pageQuery = pageQuery.limit(this.params.limit);\n }\n return pageQuery;\n };\n /**\n * Build query based on query params\n */\n PaginatedQuery.prototype.buildQuery = function () {\n var firestore = (0, firebaseApps_1.getCurrentFirebaseAppInstance)().firestore();\n var baseQuery = this.params.isCollectionGroup ?\n firestore.collectionGroup(this.params.collection) :\n firestore.collection(this.params.collection);\n var query = this.params.filters.reduce(function (query, filter) {\n return query.where(filter.field, filter.operator, filter.value);\n }, baseQuery);\n if (this.params.orderBy) {\n query = query.orderBy(this.params.orderBy.field, this.params.orderBy.directionStr);\n }\n return query;\n };\n return PaginatedQuery;\n}());\nexports.PaginatedQuery = PaginatedQuery;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmM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MucGFnZXNbdGhpcy5wYWdlcy5sZW5ndGggLSAxXVxuICAgIH1cblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICAvKipcbiAgICAgICAgICogRmlyZWJhc2UgZW52aXJvbm1lbnQgaW4gd2hpY2ggdGhpcyBxdWVyeSB3YXMgaW5zdGFudGlhdGVkXG4gICAgICAgICAqL1xuICAgICAgICBwcml2YXRlIGZpcmViYXNlRW52aXJvbm1lbnQ6IElGaXJlYmFzZUVudmlyb25tZW50LFxuICAgICAgICByZWFkb25seSBwYXJhbXM6IFF1ZXJ5UGFyYW1zLFxuICAgICkgeyB9XG5cbiAgICAvKipcbiAgICAgKiBEaXNjYXJkIGFsbCBwYWdlcyBvZiBkYXRhIHRoYXQgaGF2ZSBiZWVuIGxvYWRlZCBzbyBmYXJcbiAgICAgKlxuICAgICAqIEBtb2J4IHRoaXMgaXMgY29udmVydGVkIHRvIG1vYnggYWN0aW9uIGluIEB0aXZpby9jb3JlLWpzXG4gICAgICovXG4gICAgY2xlYXJDYWNoZSA9ICgpID0+IHtcbiAgICAgICAgdGhpcy51bnN1YnNjcmliZSgpXG4gICAgICAgIHRoaXMucGFnZXMgPSBbXVxuICAgIH1cblxuICAgIGdldCA9IGFzeW5jICgpOiBQcm9taXNlPERvY3VtZW50PFQ+W10+ID0+IHtcbiAgICAgICAgaWYgKHRoaXMuZGF0YS5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5kYXRhXG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5wYWdlcy5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5wYWdlc1swXT8uZGF0YVByb21pc2UgPz8gW11cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLmdldE5leHQoKVxuICAgIH1cblxuICAgIGdldE5leHQgPSAoKTogUHJvbWlzZTxEb2N1bWVudDxUPltdPiA9PiB7XG4gICAgICAgIGlmICh0aGlzLmxhc3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dXJyZW50RmlyZWJhc2VBcHBJbnN0YW5jZSgpLmZpcmVzdG9yZSgpXG5cbiAgICAgICAgY29uc3QgYmFzZVF1ZXJ5ID0gdGhpcy5wYXJhbXMuaXNDb2xsZWN0aW9uR3JvdXAgP1xuICAgICAgICAgICAgZmlyZXN0b3JlLmNvbGxlY3Rpb25Hcm91cCh0aGlzLnBhcmFtcy5jb2xsZWN0aW9uKSA6XG4gICAgICAgICAgICBmaXJlc3RvcmUuY29sbGVjdGlvbih0aGlzLnBhcmFtcy5jb2xsZWN0aW9uKVxuXG4gICAgICAgIGxldCBxdWVyeSA9IHRoaXMucGFyYW1zLmZpbHRlcnMucmVkdWNlKChxdWVyeSwgZmlsdGVyKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gcXVlcnkud2hlcmUoZmlsdGVyLmZpZWxkLCBmaWx0ZXIub3BlcmF0b3IsIGZpbHRlci52YWx1ZSlcbiAgICAgICAgfSwgYmFzZVF1ZXJ5KVxuXG4gICAgICAgIGlmICh0aGlzLnBhcmFtcy5vcmRlckJ5KSB7XG4gICAgICAgICAgICBxdWVyeSA9IHF1ZXJ5Lm9yZGVyQnkodGhpcy5wYXJhbXMub3JkZXJCeS5maWVsZCwgdGhpcy5wYXJhbXMub3JkZXJCeS5kaXJlY3Rpb25TdHIpXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcXVlcnlcbiAgICB9XG59XG5cbmV4cG9ydCB7XG4gICAgUXVlcnlQYWdlLFxuICAgIFF1ZXJ5UGFyYW1zLFxuICAgIFBhZ2luYXRlZFF1ZXJ5LFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/firestore/query.ts\n')},"./src/firestore/transaction.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.collectionAdmin = exports.runTransactionAdmin = exports.batchAdmin = exports.runTransaction = exports.batch = void 0;\nvar firebaseApps_1 = __webpack_require__(/*! ../environment/apps/firebaseApps */ "./src/environment/apps/firebaseApps.ts");\nvar batch = function () { return (0, firebaseApps_1.getCurrentFirebaseAppInstance)().firestore().batch(); };\nexports.batch = batch;\nvar runTransaction = function (updateFunction) {\n return (0, firebaseApps_1.getCurrentFirebaseAppInstance)().firestore().runTransaction(updateFunction);\n};\nexports.runTransaction = runTransaction;\nvar batchAdmin = function () {\n var batchFunction = (0, firebaseApps_1.getCurrentFirebaseAppInstance)().firestore().batch;\n return batchFunction();\n};\nexports.batchAdmin = batchAdmin;\nvar runTransactionAdmin = function (updateFunction, transactionOptions) {\n var runTransactionFunction = (0, firebaseApps_1.getCurrentFirebaseAppInstance)().firestore().runTransaction;\n return runTransactionFunction(updateFunction, transactionOptions);\n};\nexports.runTransactionAdmin = runTransactionAdmin;\nvar collectionAdmin = function (collectionPath) {\n var collectionFunction = (0, firebaseApps_1.getCurrentFirebaseAppInstance)().firestore().collection;\n return collectionFunction(collectionPath);\n};\nexports.collectionAdmin = collectionAdmin;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZmlyZXN0b3JlL3RyYW5zYWN0aW9uLnRzLmpzIiwibWFwcGluZ3MiOiI7OztBQUdBO0FBSUE7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFIQTtBQUtBO0FBSUE7QUFDQTtBQUNBO0FBTkE7QUFRQTtBQUNBO0FBQ0E7QUFDQTtBQUhBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9maXJlc3RvcmUvdHJhbnNhY3Rpb24udHM/MGY4YSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBUcmFuc2FjdGlvbiB9IGZyb20gJ0BmaXJlYmFzZS9maXJlc3RvcmUtdHlwZXMnXG5pbXBvcnQgeyBUcmFuc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uQWRtaW4pID0+IFByb21pc2U8VD4sXG4gICAgdHJhbnNhY3Rpb25PcHRpb25zPzogUmVhZFdyaXRlVHJhbnNhY3Rpb25PcHRpb25zIHwgUmVhZE9ubHlUcmFuc2FjdGlvbk9wdGlvbnMsXG4pID0+IHtcbiAgICBjb25zdCBydW5UcmFuc2FjdGlvbkZ1bmN0aW9uID0gZ2V0Q3VycmVudEZpcmViYXNlQXBwSW5zdGFuY2UoKS5maXJlc3RvcmUoKS5ydW5UcmFuc2FjdGlvbiBhcyBhbnkgYXMgZmlyZXN0b3JlLkZpcmVzdG9yZVsncnVuVHJhbnNhY3Rpb24nXVxuICAgIHJldHVybiBydW5UcmFuc2FjdGlvbkZ1bmN0aW9uKHVwZGF0ZUZ1bmN0aW9uLCB0cmFuc2FjdGlvbk9wdGlvbnMpXG59XG5cbmV4cG9ydCBjb25zdCBjb2xsZWN0aW9uQWRtaW4gPSAoY29sbGVjdGlvblBhdGg6IHN0cmluZykgPT4ge1xuICAgIGNvbnN0IGNvbGxlY3Rpb25GdW5jdGlvbiA9IGdldEN1cnJlbnRGaXJlYmFzZUFwcEluc3RhbmNlKCkuZmlyZXN0b3JlKCkuY29sbGVjdGlvbiBhcyBhbnkgYXMgZmlyZXN0b3JlLkZpcmVzdG9yZVsnY29sbGVjdGlvbiddXG4gICAgcmV0dXJuIGNvbGxlY3Rpb25GdW5jdGlvbihjb2xsZWN0aW9uUGF0aClcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/firestore/transaction.ts\n')},"./src/firestore/types.ts":function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},"./src/functions/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./invitation */ "./src/functions/invitation.ts"), exports);\n__exportStar(__webpack_require__(/*! ./logRequestBody */ "./src/functions/logRequestBody.ts"), exports);\n__exportStar(__webpack_require__(/*! ./purchase */ "./src/functions/purchase.ts"), exports);\n__exportStar(__webpack_require__(/*! ./referrals */ "./src/functions/referrals.ts"), exports);\n__exportStar(__webpack_require__(/*! ./user */ "./src/functions/user.ts"), exports);\n__exportStar(__webpack_require__(/*! ./video */ "./src/functions/video.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZnVuY3Rpb25zL2luZGV4LnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvZnVuY3Rpb25zL2luZGV4LnRzPzdmOGQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnZpdGF0aW9uJ1xuZXhwb3J0ICogZnJvbSAnLi9sb2dSZXF1ZXN0Qm9keSdcbmV4cG9ydCAqIGZyb20gJy4vcHVyY2hhc2UnXG5leHBvcnQgKiBmcm9tICcuL3JlZmVycmFscydcbmV4cG9ydCAqIGZyb20gJy4vdXNlcidcbmV4cG9ydCAqIGZyb20gJy4vdmlkZW8nXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/functions/index.ts\n')},"./src/functions/invitation.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.applyInviteCode = void 0;\nvar environment_1 = __webpack_require__(/*! ../environment */ "./src/environment/index.ts");\nvar applyInviteCode = function (code) { return __awaiter(void 0, void 0, Promise, function () {\n var applyInviteCode, codeApplied;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n applyInviteCode = environment_1.FirebaseEnvironment.functions.httpsCallable(\'applyInviteCode\');\n return [4 /*yield*/, applyInviteCode(code)];\n case 1:\n codeApplied = (_a.sent()).data;\n return [2 /*return*/, codeApplied];\n }\n });\n}); };\nexports.applyInviteCode = applyInviteCode;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZnVuY3Rpb25zL2ludml0YXRpb24udHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFFQTs7Ozs7QUFDQTtBQUNBOztBQUFBO0FBRUE7OztBQUNBO0FBTEEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2Z1bmN0aW9ucy9pbnZpdGF0aW9uLnRzP2Q2MTIiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRmlyZWJhc2VFbnZpcm9ubWVudCB9IGZyb20gJy4uL2Vudmlyb25tZW50J1xuXG5leHBvcnQgY29uc3QgYXBwbHlJbnZpdGVDb2RlID0gYXN5bmMgKGNvZGU6IHN0cmluZyk6IFByb21pc2U8Ym9vbGVhbj4gPT4ge1xuICAgIGNvbnN0IGFwcGx5SW52aXRlQ29kZSA9IEZpcmViYXNlRW52aXJvbm1lbnQuZnVuY3Rpb25zLmh0dHBzQ2FsbGFibGUoJ2FwcGx5SW52aXRlQ29kZScpXG4gICAgY29uc3QgeyBkYXRhOiBjb2RlQXBwbGllZCB9OiB7IGRhdGE6IGJvb2xlYW4gfSA9IGF3YWl0IGFwcGx5SW52aXRlQ29kZShjb2RlKVxuXG4gICAgcmV0dXJuIGNvZGVBcHBsaWVkXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/functions/invitation.ts\n')},"./src/functions/logRequestBody.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.logRequestBody = void 0;\nvar environment_1 = __webpack_require__(/*! ../environment */ "./src/environment/index.ts");\nvar logRequestBody = function (body) { return __awaiter(void 0, void 0, void 0, function () {\n var logRequestBody;\n return __generator(this, function (_a) {\n logRequestBody = environment_1.FirebaseEnvironment.functions.httpsCallable(\'logRequestBody\');\n logRequestBody(body);\n return [2 /*return*/];\n });\n}); };\nexports.logRequestBody = logRequestBody;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZnVuY3Rpb25zL2xvZ1JlcXVlc3RCb2R5LnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBRUE7OztBQUNBO0FBQ0E7OztBQUNBO0FBSEEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2Z1bmN0aW9ucy9sb2dSZXF1ZXN0Qm9keS50cz9hNjJmIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEZpcmViYXNlRW52aXJvbm1lbnQgfSBmcm9tICcuLi9lbnZpcm9ubWVudCdcblxuZXhwb3J0IGNvbnN0IGxvZ1JlcXVlc3RCb2R5ID0gYXN5bmMgKGJvZHk6IGFueSkgPT4ge1xuICAgIGNvbnN0IGxvZ1JlcXVlc3RCb2R5ID0gRmlyZWJhc2VFbnZpcm9ubWVudC5mdW5jdGlvbnMuaHR0cHNDYWxsYWJsZSgnbG9nUmVxdWVzdEJvZHknKVxuICAgIGxvZ1JlcXVlc3RCb2R5KGJvZHkpXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/functions/logRequestBody.ts\n')},"./src/functions/purchase.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.purchaseRecovery = void 0;\nvar environment_1 = __webpack_require__(/*! ../environment */ "./src/environment/index.ts");\nvar purchaseRecovery = function (monetizationId) { return __awaiter(void 0, void 0, Promise, function () {\n var purchaseRecovery, data;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n purchaseRecovery = environment_1.FirebaseEnvironment.functions.httpsCallable(\'purchaseRecovery\');\n return [4 /*yield*/, purchaseRecovery(monetizationId)];\n case 1:\n data = (_a.sent()).data;\n return [2 /*return*/, data];\n }\n });\n}); };\nexports.purchaseRecovery = purchaseRecovery;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZnVuY3Rpb25zL3B1cmNoYXNlLnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBRUE7Ozs7O0FBQ0E7QUFDQTs7QUFBQTtBQUNBOzs7QUFDQTtBQUpBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy9mdW5jdGlvbnMvcHVyY2hhc2UudHM/MGYzOCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGaXJlYmFzZUVudmlyb25tZW50IH0gZnJvbSAnLi4vZW52aXJvbm1lbnQnXG5cbmV4cG9ydCBjb25zdCBwdXJjaGFzZVJlY292ZXJ5ID0gYXN5bmMgKG1vbmV0aXphdGlvbklkOiBzdHJpbmcpOiBQcm9taXNlPHN0cmluZz4gPT4ge1xuICAgIGNvbnN0IHB1cmNoYXNlUmVjb3ZlcnkgPSBGaXJlYmFzZUVudmlyb25tZW50LmZ1bmN0aW9ucy5odHRwc0NhbGxhYmxlKCdwdXJjaGFzZVJlY292ZXJ5JylcbiAgICBjb25zdCB7IGRhdGEgfTogeyBkYXRhOiBzdHJpbmcgfSA9IGF3YWl0IHB1cmNoYXNlUmVjb3ZlcnkobW9uZXRpemF0aW9uSWQpXG4gICAgcmV0dXJuIGRhdGFcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/functions/purchase.ts\n')},"./src/functions/referrals.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.getReferralInfo = void 0;\nvar environment_1 = __webpack_require__(/*! ../environment */ "./src/environment/index.ts");\nvar getReferralInfo = function (organizationId, token) { return __awaiter(void 0, void 0, Promise, function () {\n var getReferralInfo, data;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n getReferralInfo = environment_1.FirebaseEnvironment.functions.httpsCallable(\'getReferralInfo\');\n return [4 /*yield*/, getReferralInfo({\n organizationId: organizationId,\n token: token,\n })];\n case 1:\n data = (_a.sent()).data;\n return [2 /*return*/, data];\n }\n });\n}); };\nexports.getReferralInfo = getReferralInfo;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZnVuY3Rpb25zL3JlZmVycmFscy50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQWNBOzs7OztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBSEE7Q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# sourceURL=webpack-internal:///./src/functions/referrals.ts\n')},"./src/functions/user.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.signUpWithTenant = exports.signInWithTenant = exports.resetPassword = void 0;\nvar environment_1 = __webpack_require__(/*! ../environment */ "./src/environment/index.ts");\nvar resetPassword = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var resetPassword;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n resetPassword = environment_1.FirebaseEnvironment.functions.httpsCallable(\'resetPassword\');\n return [4 /*yield*/, resetPassword(payload)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n}); };\nexports.resetPassword = resetPassword;\nvar signInWithTenant = function (payload) { return __awaiter(void 0, void 0, Promise, function () {\n var signInWithTenant, data;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n signInWithTenant = environment_1.FirebaseEnvironment.functions.httpsCallable(\'signInWithTenant\');\n return [4 /*yield*/, signInWithTenant(payload)];\n case 1:\n data = (_a.sent()).data;\n return [2 /*return*/, data];\n }\n });\n}); };\nexports.signInWithTenant = signInWithTenant;\nvar signUpWithTenant = function (payload) { return __awaiter(void 0, void 0, Promise, function () {\n var signUpWithTenant, data;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n signUpWithTenant = environment_1.FirebaseEnvironment.functions.httpsCallable(\'signUpWithTenant\');\n return [4 /*yield*/, signUpWithTenant(payload)];\n case 1:\n data = (_a.sent()).data;\n return [2 /*return*/, data];\n }\n });\n}); };\nexports.signUpWithTenant = signUpWithTenant;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZnVuY3Rpb25zL3VzZXIudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FB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bldpdGhUZW5hbnQocGF5bG9hZClcblxuICAgIHJldHVybiBkYXRhXG59XG5cbmV4cG9ydCBjb25zdCBzaWduVXBXaXRoVGVuYW50ID0gYXN5bmMgKHBheWxvYWQ6IEZpcmViYXNlU2lnblVwUGF5bG9hZCk6IFByb21pc2U8c3RyaW5nPiA9PiB7XG4gICAgY29uc3Qgc2lnblVwV2l0aFRlbmFudCA9IEZpcmViYXNlRW52aXJvbm1lbnQuZnVuY3Rpb25zLmh0dHBzQ2FsbGFibGUoJ3NpZ25VcFdpdGhUZW5hbnQnKVxuICAgIGNvbnN0IHsgZGF0YSB9ID0gYXdhaXQgc2lnblVwV2l0aFRlbmFudChwYXlsb2FkKVxuXG4gICAgcmV0dXJuIGRhdGFcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/functions/user.ts\n')},"./src/functions/video.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.getDrmLicense = void 0;\nvar environment_1 = __webpack_require__(/*! ../environment */ "./src/environment/index.ts");\n// TODO TIV-1296 should this be in core-js?\nvar getDrmLicense = function (videoId) { return __awaiter(void 0, void 0, Promise, function () {\n var generateDrmLicense, licenseData, _a, statusCode, xmlLicense;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n generateDrmLicense = environment_1.FirebaseEnvironment.functions.httpsCallable(\'generateDrmLicense\');\n return [4 /*yield*/, generateDrmLicense({ videoId: videoId })];\n case 1:\n licenseData = _b.sent();\n _a = licenseData.data // [1,XML] or [0, null]\n , statusCode = _a[0], xmlLicense = _a[1];\n if (statusCode === 1) {\n return [2 /*return*/, xmlLicense];\n }\n else {\n return [2 /*return*/, null];\n }\n return [2 /*return*/];\n }\n });\n}); };\nexports.getDrmLicense = getDrmLicense;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9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Im5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/functions/video.ts\n')},"./src/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n}) : function(o, v) {\n o["default"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.utils = exports.migration = exports.installations = exports.functions = exports.firestore = exports.auth = exports.Environment = exports.setFirebaseEnvironment = exports.initFirebaseEnvironment = exports.FirebaseEnvironment = void 0;\nvar firebaseEnvironments_1 = __webpack_require__(/*! ./environment/firebaseEnvironments */ "./src/environment/firebaseEnvironments.ts");\nObject.defineProperty(exports, "FirebaseEnvironment", ({ enumerable: true, get: function () { return firebaseEnvironments_1.FirebaseEnvironment; } }));\nObject.defineProperty(exports, "initFirebaseEnvironment", ({ enumerable: true, get: function () { return firebaseEnvironments_1.initFirebaseEnvironment; } }));\nObject.defineProperty(exports, "setFirebaseEnvironment", ({ enumerable: true, get: function () { return firebaseEnvironments_1.setFirebaseEnvironment; } }));\nvar types_1 = __webpack_require__(/*! ./environment/apps/types */ "./src/environment/apps/types.ts");\nObject.defineProperty(exports, "Environment", ({ enumerable: true, get: function () { return types_1.Environment; } }));\n// @TODO: All named exports will be removed\nexports.auth = __importStar(__webpack_require__(/*! ./auth */ "./src/auth/index.ts"));\nexports.firestore = __importStar(__webpack_require__(/*! ./firestore */ "./src/firestore/index.ts"));\nexports.functions = __importStar(__webpack_require__(/*! ./functions */ "./src/functions/index.ts"));\nexports.installations = __importStar(__webpack_require__(/*! ./installations */ "./src/installations/index.ts"));\nexports.migration = __importStar(__webpack_require__(/*! ./migration */ "./src/migration/index.ts"));\nexports.utils = __importStar(__webpack_require__(/*! ./utils */ "./src/utils/index.ts"));\n__exportStar(__webpack_require__(/*! ./firestore */ "./src/firestore/index.ts"), exports);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2luZGV4LnRzP2ZmYjQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHtcbiAgICBGaXJlYmFzZUVudmlyb25tZW50LFxuICAgIGluaXRGaXJlYmFzZUVudmlyb25tZW50LFxuICAgIHNldEZpcmViYXNlRW52aXJvbm1lbnQsXG59IGZyb20gJy4vZW52aXJvbm1lbnQvZmlyZWJhc2VFbnZpcm9ubWVudHMnXG5leHBvcnQgeyBFbnZpcm9ubWVudCB9IGZyb20gJy4vZW52aXJvbm1lbnQvYXBwcy90eXBlcydcbmV4cG9ydCB0eXBlIHsgSUZpcmViYXNlQXBwLCBJRmlyZWJhc2VBcHAgYXMgRmlyZWJhc2VBcHAgfSBmcm9tICcuL2Vudmlyb25tZW50L2FwcHMvdHlwZXMnXG4vLyBAVE9ETzogQWxsIG5hbWVkIGV4cG9ydHMgd2lsbCBiZSByZW1vdmVkXG5leHBvcnQgKiBhcyBhdXRoIGZyb20gJy4vYXV0aCdcbmV4cG9ydCAqIGFzIGZpcmVzdG9yZSBmcm9tICcuL2ZpcmVzdG9yZSdcbmV4cG9ydCAqIGFzIGZ1bmN0aW9ucyBmcm9tICcuL2Z1bmN0aW9ucydcbmV4cG9ydCAqIGFzIGluc3RhbGxhdGlvbnMgZnJvbSAnLi9pbnN0YWxsYXRpb25zJ1xuZXhwb3J0ICogYXMgbWlncmF0aW9uIGZyb20gJy4vbWlncmF0aW9uJ1xuZXhwb3J0ICogYXMgdXRpbHMgZnJvbSAnLi91dGlscydcbmV4cG9ydCAqIGZyb20gJy4vZmlyZXN0b3JlJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/index.ts\n')},"./src/installations/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.getId = void 0;\nvar uuid_random_1 = __importDefault(__webpack_require__(/*! uuid-random */ "../../node_modules/uuid-random/index.js"));\nvar deviceId = (0, uuid_random_1.default)();\nvar getId = function () {\n return deviceId;\n};\nexports.getId = getId;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaW5zdGFsbGF0aW9ucy9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBRkEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL2luc3RhbGxhdGlvbnMvaW5kZXgudHM/MTgyMiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdXVpZCBmcm9tICd1dWlkLXJhbmRvbSdcblxuY29uc3QgZGV2aWNlSWQgPSB1dWlkKClcblxuZXhwb3J0IGNvbnN0IGdldElkID0gKCk6IHN0cmluZyA9PiB7XG4gICAgcmV0dXJuIGRldmljZUlkXG59Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/installations/index.ts\n')},"./src/migration/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.Migration = exports.DocumentMigrationResponse = void 0;\nvar migration_1 = __webpack_require__(/*! ./migration */ "./src/migration/migration.ts");\nObject.defineProperty(exports, "DocumentMigrationResponse", ({ enumerable: true, get: function () { return migration_1.DocumentMigrationResponse; } }));\nObject.defineProperty(exports, "Migration", ({ enumerable: true, get: function () { return migration_1.Migration; } }));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbWlncmF0aW9uL2luZGV4LnRzLmpzIiwibWFwcGluZ3MiOiI7OztBQUFBO0FBQUE7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvbWlncmF0aW9uL2luZGV4LnRzP2MzMGUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRG9jdW1lbnRNaWdyYXRpb25SZXNwb25zZSwgTWlncmF0aW9uIH0gZnJvbSAnLi9taWdyYXRpb24nIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/migration/index.ts\n')},"./src/migration/migration.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.Migration = exports.migrationLogger = void 0;\nvar loglevel_1 = __webpack_require__(/*! loglevel */ "./node_modules/loglevel/lib/loglevel.js");\nvar environment_1 = __webpack_require__(/*! ../environment */ "./src/environment/index.ts");\nexports.migrationLogger = (0, loglevel_1.getLogger)(\'migration\');\nvar Migration = /** @class */ (function () {\n function Migration(toEnvironmentName, fromEnvironmentName) {\n this.migratedDocuments = [];\n exports.migrationLogger.info("Migration from " + (fromEnvironmentName !== null && fromEnvironmentName !== void 0 ? fromEnvironmentName : environment_1.FirebaseEnvironment.environmentName) + " -> to " + toEnvironmentName);\n var fromEnvironment = environment_1.FirebaseEnvironment.getEnvironment(fromEnvironmentName !== null && fromEnvironmentName !== void 0 ? fromEnvironmentName : environment_1.FirebaseEnvironment.environmentName);\n var toEnvironment = environment_1.FirebaseEnvironment.getEnvironment(toEnvironmentName);\n if (!fromEnvironment || !toEnvironment) {\n throw new Error(\'Migration failed, one of the environments doesn\\\'t exist\');\n }\n this.fromEnvironment = fromEnvironment;\n this.toEnvironment = toEnvironment;\n }\n Migration.prototype.defaultDocumentMigration = function (document, path) {\n return __awaiter(this, void 0, Promise, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, document.fetch()];\n case 1:\n _a.sent();\n if (!document.data) {\n throw new Error("Document (" + document.ref.path + ") migration failed");\n }\n return [2 /*return*/, {\n data: document.data,\n path: path ? path : document.ref.path,\n }];\n }\n });\n });\n };\n Migration.prototype.migrateDocument = function (document, documentMigration) {\n if (documentMigration === void 0) { documentMigration = this.defaultDocumentMigration; }\n return __awaiter(this, void 0, Promise, function () {\n var _a, data, path, migratedDocument;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, documentMigration(document)];\n case 1:\n _a = _b.sent(), data = _a.data, path = _a.path;\n migratedDocument = this.toEnvironment.getDocumentWithPath(path);\n return [4 /*yield*/, migratedDocument.update(data)];\n case 2:\n _b.sent();\n this.migratedDocuments.push(migratedDocument);\n return [2 /*return*/, migratedDocument];\n }\n });\n });\n };\n Migration.prototype.migrateQuery = function (query, documentMigration) {\n if (documentMigration === void 0) { documentMigration = this.defaultDocumentMigration; }\n return __awaiter(this, void 0, Promise, function () {\n var documents;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, query.get()];\n case 1:\n documents = _a.sent();\n return [4 /*yield*/, Promise.all(documents.map(function (document) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.migrateDocument(document, documentMigration)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }))];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n Migration.prototype.revertMigration = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this.fromEnvironment.name === this.toEnvironment.name) {\n throw new Error(\'Can not revert documents from the same environemtns\');\n }\n return [4 /*yield*/, Promise.all(this.migratedDocuments.map(function (document) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, document.delete()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }))];\n case 1:\n _a.sent();\n this.migratedDocuments = [];\n return [2 /*return*/];\n }\n });\n });\n };\n return Migration;\n}());\nexports.Migration = Migration;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbWlncmF0aW9uL21pZ3JhdGlvbi50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUdBO0FBVUE7QUFFQTtBQU9BO0FBRkE7QUFHQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUFBOzs7QUFDQTs7QUFBQTtBQUVBO0FBQUE7QUFBQTt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migration/migration.ts\n')},"./src/utils/calls.ts":function(__unused_webpack_module,exports){"use strict";eval('\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.once = void 0;\nvar once = function (callback) {\n var isCalled = false;\n var returnValue = null;\n return function () {\n if (isCalled) {\n return returnValue;\n }\n returnValue = callback();\n isCalled = true;\n return returnValue;\n };\n};\nexports.once = once;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvY2FsbHMudHMuanMiLCJtYXBwaW5ncyI6Ijs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBZEEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL3V0aWxzL2NhbGxzLnRzPzQyOTgiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IG9uY2UgPSA8VD4oY2FsbGJhY2s6ICgpID0+IFQpID0+IHtcbiAgICBsZXQgaXNDYWxsZWQgPSBmYWxzZVxuICAgIGxldCByZXR1cm5WYWx1ZTogVCB8IG51bGwgPSBudWxsXG5cbiAgICByZXR1cm4gKCkgPT4ge1xuICAgICAgICBpZiAoaXNDYWxsZWQpIHtcbiAgICAgICAgICAgIHJldHVybiByZXR1cm5WYWx1ZVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuVmFsdWUgPSBjYWxsYmFjaygpXG4gICAgICAgIGlzQ2FsbGVkID0gdHJ1ZVxuXG4gICAgICAgIHJldHVybiByZXR1cm5WYWx1ZVxuICAgIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utils/calls.ts\n')},"./src/utils/generators/base.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.BaseGenerator = void 0;\nvar firestore_1 = __webpack_require__(/*! ../../firestore */ "./src/firestore/index.ts");\nvar BaseGenerator = /** @class */ (function () {\n function BaseGenerator(collectionPath) {\n var _this = this;\n this.documents = [];\n this.generateDocuments = function (count, template) { return __awaiter(_this, void 0, Promise, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, Promise.all(Array(count).fill(null).map(function (_, index) { return __awaiter(_this, void 0, void 0, function () {\n var document;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n document = this.collection.createDocument();\n return [4 /*yield*/, document.update(Object.entries(template).reduce(function (newTemplate, _a) {\n var _b;\n var key = _a[0], value = _a[1];\n return __assign(__assign({}, newTemplate), (_b = {}, _b[key] = _this.replaceTemplateValue(value, index), _b));\n }, {}))];\n case 1:\n _a.sent();\n this.documents.push(document);\n return [2 /*return*/, document];\n }\n });\n }); }))];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n }); };\n /**\n * Generates documents with provided data and id (if not present, then id is auto-generated)\n *\n * @param documents documents to generate\n */\n this.generateDocumentsWithData = function (documents) { return __awaiter(_this, void 0, Promise, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, Promise.all(documents.map(function (doc) { return __awaiter(_this, void 0, void 0, function () {\n var id, data, document;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n id = doc.id, data = __rest(doc, ["id"]);\n document = this.collection.createDocument(id);\n return [4 /*yield*/, document.update(data)];\n case 1:\n _a.sent();\n this.documents.push(document);\n return [2 /*return*/, document];\n }\n });\n }); }))];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n }); };\n this.collection = (0, firestore_1.getCollectionWithPath)(collectionPath);\n }\n Object.defineProperty(BaseGenerator.prototype, "sortedDocuments", {\n /**\n * Returns documents alphabetically sorted by id\n */\n get: function () {\n return this.documents.sort(function (a, b) { return a.id < b.id ? -1 : 1; });\n },\n enumerable: false,\n configurable: true\n });\n BaseGenerator.prototype.clean = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, Promise.all(this.documents.map(function (document) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, document.ref.delete()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }))];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n BaseGenerator.prototype.replaceTemplateValue = function (value, index) {\n if (index === void 0) { index = 0; }\n if (typeof value === \'string\')\n return value.replace(\'$index\', "" + (this.documents.length + index));\n return value;\n };\n return BaseGenerator;\n}());\nexports.BaseGenerator = BaseGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy9iYXNlLnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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AgcmV0dXJuIGRvY3VtZW50XG4gICAgICAgIH0pKVxuICAgIH1cblxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/utils/generators/base.ts\n')},"./src/utils/generators/channel.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.ChannelGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar section_1 = __webpack_require__(/*! ./section */ "./src/utils/generators/section.ts");\nvar ChannelGenerator = /** @class */ (function (_super) {\n __extends(ChannelGenerator, _super);\n function ChannelGenerator() {\n var _this = _super.call(this, \'channels\') || this;\n _this.sectionGenerators = {};\n return _this;\n }\n ChannelGenerator.prototype.clean = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, _super.prototype.clean.call(this)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all(Object.values(this.sectionGenerators).map(function (sectionGenerator) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, sectionGenerator.clean()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n }); }); }))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n ChannelGenerator.prototype.getSectionGenerator = function (channel) {\n if (!this.sectionGenerators[channel.ref.path]) {\n this.sectionGenerators[channel.ref.path] = new section_1.SectionGenerator(channel);\n }\n return this.sectionGenerators[channel.ref.path];\n };\n ChannelGenerator.prototype.generateSections = function (channel, count, template) {\n return __awaiter(this, void 0, Promise, function () {\n var sectionGenerator;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n sectionGenerator = this.getSectionGenerator(channel);\n return [4 /*yield*/, sectionGenerator.generateDocuments(count, template)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n return ChannelGenerator;\n}(base_1.BaseGenerator));\nexports.ChannelGenerator = ChannelGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy9jaGFubmVsLnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUdBO0FBQ0E7QUFHQTtBQUFBO0FBSUE7QUFBQTtBQUZBOztBQUlBO0FBRUE7Ozs7O0FBQ0E7O0FBQUE7QUFDQTs7QUFDQTtBQUFBOztBQUFBOztBQURBOzs7OztBQUdBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFFQTtBQUNBO0FBRUE7QUFJQTs7Ozs7QUFDQTtBQUNBO0FBQUE7Ozs7QUFDQTtBQUVBO0FBQUE7QUEvQkEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL3V0aWxzL2dlbmVyYXRvcnMvY2hhbm5lbC50cz9iZDNiIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERvY3VtZW50IH0gZnJvbSAnLi4vLi4vZmlyZXN0b3JlJ1xuaW1wb3J0IHsgRmlyZWJhc2VDaGF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Rpb25HZW5lcmF0b3JzW2NoYW5uZWwucmVmLnBhdGhdXG4gICAgfVxuXG4gICAgYXN5bmMgZ2VuZXJhdGVTZWN0aW9ucyhcbiAgICAgICAgY2hhbm5lbDogRG9jdW1lbnQ8RmlyZWJhc2VDaGFubmVsPixcbiAgICAgICAgY291bnQ6IG51bWJlcixcbiAgICAgICAgdGVtcGxhdGU6IE9taXQ8U2VjdGlvbkRvY3VtZW50LCAnY2hhbm5lbFJlZic+LFxuICAgICk6IFByb21pc2U8QXJyYXk8RG9jdW1lbnQ8U2VjdGlvbkRvY3VtZW50Pj4+IHtcbiAgICAgICAgY29uc3Qgc2VjdGlvbkdlbmVyYXRvciA9IHRoaXMuZ2V0U2VjdGlvbkdlbmVyYXRvcihjaGFubmVsKVxuICAgICAgICByZXR1cm4gYXdhaXQgc2VjdGlvbkdlbmVyYXRvci5nZW5lcmF0ZURvY3VtZW50cyhjb3VudCwgdGVtcGxhdGUpXG4gICAgfVxuXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utils/generators/channel.ts\n')},"./src/utils/generators/globalAssetPreset.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.GlobalAssetPresetGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar GlobalAssetPresetGenerator = /** @class */ (function (_super) {\n __extends(GlobalAssetPresetGenerator, _super);\n function GlobalAssetPresetGenerator() {\n return _super.call(this, \'globalAssetPresets\') || this;\n }\n return GlobalAssetPresetGenerator;\n}(base_1.BaseGenerator));\nexports.GlobalAssetPresetGenerator = GlobalAssetPresetGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy9nbG9iYWxBc3NldFByZXNldC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFHQTtBQUVBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBTEEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL3V0aWxzL2dlbmVyYXRvcnMvZ2xvYmFsQXNzZXRQcmVzZXQudHM/ZTg1OCJdLCJzb3VyY2VzQ29udGVudCI6WyJcbmltcG9ydCB7IEFzc2V0UHJlc2V0RG9jdW1lbnQgfSBmcm9tICcuLi8uLi9maXJlc3RvcmUvbW9kZWwvYXNzZXRQcmVzZXQvYXNzZXRQcmVzZXREb2N1bWVudCdcblxuaW1wb3J0IHsgQmFzZUdlbmVyYXRvciB9IGZyb20gJy4vYmFzZSdcblxuZXhwb3J0IGNsYXNzIEdsb2JhbEFzc2V0UHJlc2V0R2VuZXJhdG9yIGV4dGVuZHMgQmFzZUdlbmVyYXRvcjxBc3NldFByZXNldERvY3VtZW50PiB7XG5cbiAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgc3VwZXIoJ2dsb2JhbEFzc2V0UHJlc2V0cycpXG4gICAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/utils/generators/globalAssetPreset.ts\n')},"./src/utils/generators/globalTagType.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.GlobalTagTypeGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar GlobalTagTypeGenerator = /** @class */ (function (_super) {\n __extends(GlobalTagTypeGenerator, _super);\n function GlobalTagTypeGenerator() {\n return _super.call(this, \'globalTagTypes\') || this;\n }\n return GlobalTagTypeGenerator;\n}(base_1.BaseGenerator));\nexports.GlobalTagTypeGenerator = GlobalTagTypeGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy9nbG9iYWxUYWdUeXBlLnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBO0FBRUE7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFMQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy9nbG9iYWxUYWdUeXBlLnRzPzFkMTciXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGFnVHlwZURvY3VtZW50IH0gZnJvbSAnLi4vLi4vZmlyZXN0b3JlL21vZGVsL3RhZ1R5cGUvdGFnVHlwZURvY3VtZW50J1xuXG5pbXBvcnQgeyBCYXNlR2VuZXJhdG9yIH0gZnJvbSAnLi9iYXNlJ1xuXG5leHBvcnQgY2xhc3MgR2xvYmFsVGFnVHlwZUdlbmVyYXRvciBleHRlbmRzIEJhc2VHZW5lcmF0b3I8VGFnVHlwZURvY3VtZW50PiB7XG5cbiAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgc3VwZXIoJ2dsb2JhbFRhZ1R5cGVzJylcbiAgICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utils/generators/globalTagType.ts\n')},"./src/utils/generators/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.WatchPositionGenerator = exports.PurchaseGenerator = exports.GlobalTagTypeGenerator = exports.GlobalAssetPresetGenerator = exports.TvChannelGenerator = exports.MonetizationGenerator = exports.WidgetGenerator = exports.SectionGenerator = exports.ChannelGenerator = void 0;\nvar channel_1 = __webpack_require__(/*! ./channel */ "./src/utils/generators/channel.ts");\nObject.defineProperty(exports, "ChannelGenerator", ({ enumerable: true, get: function () { return channel_1.ChannelGenerator; } }));\nvar section_1 = __webpack_require__(/*! ./section */ "./src/utils/generators/section.ts");\nObject.defineProperty(exports, "SectionGenerator", ({ enumerable: true, get: function () { return section_1.SectionGenerator; } }));\n__exportStar(__webpack_require__(/*! ./video */ "./src/utils/generators/video.ts"), exports);\nvar widget_1 = __webpack_require__(/*! ./widget */ "./src/utils/generators/widget.ts");\nObject.defineProperty(exports, "WidgetGenerator", ({ enumerable: true, get: function () { return widget_1.WidgetGenerator; } }));\nvar monetization_1 = __webpack_require__(/*! ./monetization */ "./src/utils/generators/monetization.ts");\nObject.defineProperty(exports, "MonetizationGenerator", ({ enumerable: true, get: function () { return monetization_1.MonetizationGenerator; } }));\n__exportStar(__webpack_require__(/*! ./tag */ "./src/utils/generators/tag.ts"), exports);\n__exportStar(__webpack_require__(/*! ./organization */ "./src/utils/generators/organization.ts"), exports);\nvar tvChannel_1 = __webpack_require__(/*! ./tvChannel */ "./src/utils/generators/tvChannel.ts");\nObject.defineProperty(exports, "TvChannelGenerator", ({ enumerable: true, get: function () { return tvChannel_1.TvChannelGenerator; } }));\nvar globalAssetPreset_1 = __webpack_require__(/*! ./globalAssetPreset */ "./src/utils/generators/globalAssetPreset.ts");\nObject.defineProperty(exports, "GlobalAssetPresetGenerator", ({ enumerable: true, get: function () { return globalAssetPreset_1.GlobalAssetPresetGenerator; } }));\nvar globalTagType_1 = __webpack_require__(/*! ./globalTagType */ "./src/utils/generators/globalTagType.ts");\nObject.defineProperty(exports, "GlobalTagTypeGenerator", ({ enumerable: true, get: function () { return globalTagType_1.GlobalTagTypeGenerator; } }));\nvar purchase_1 = __webpack_require__(/*! ./purchase */ "./src/utils/generators/purchase.ts");\nObject.defineProperty(exports, "PurchaseGenerator", ({ enumerable: true, get: function () { return purchase_1.PurchaseGenerator; } }));\nvar watchPosition_1 = __webpack_require__(/*! ./watchPosition */ "./src/utils/generators/watchPosition.ts");\nObject.defineProperty(exports, "WatchPositionGenerator", ({ enumerable: true, get: function () { return watchPosition_1.WatchPositionGenerator; } }));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy9pbmRleC50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Oz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# sourceURL=webpack-internal:///./src/utils/generators/index.ts\n')},"./src/utils/generators/monetization.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.MonetizationGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar MonetizationGenerator = /** @class */ (function (_super) {\n __extends(MonetizationGenerator, _super);\n function MonetizationGenerator() {\n return _super.call(this, \'monetizations\') || this;\n }\n return MonetizationGenerator;\n}(base_1.BaseGenerator));\nexports.MonetizationGenerator = MonetizationGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy9tb25ldGl6YXRpb24udHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFLQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUxBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy91dGlscy9nZW5lcmF0b3JzL21vbmV0aXphdGlvbi50cz84OWY0Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VHZW5lcmF0b3IgfSBmcm9tICcuL2Jhc2UnXG5cbmltcG9ydCB0eXBlIHsgTW9uZXRpemF0aW9uRG9jdW1lbnQgfSBmcm9tICcuLi8uLi9maXJlc3RvcmUvbW9kZWwnXG5cblxuZXhwb3J0IGNsYXNzIE1vbmV0aXphdGlvbkdlbmVyYXRvciBleHRlbmRzIEJhc2VHZW5lcmF0b3I8TW9uZXRpemF0aW9uRG9jdW1lbnQ+IHtcblxuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICBzdXBlcignbW9uZXRpemF0aW9ucycpXG4gICAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/utils/generators/monetization.ts\n')},"./src/utils/generators/organization.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.OrganizationGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar OrganizationGenerator = /** @class */ (function (_super) {\n __extends(OrganizationGenerator, _super);\n function OrganizationGenerator() {\n return _super.call(this, \'organizations\') || this;\n }\n return OrganizationGenerator;\n}(base_1.BaseGenerator));\nexports.OrganizationGenerator = OrganizationGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy9vcmdhbml6YXRpb24udHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFJQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUxBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy91dGlscy9nZW5lcmF0b3JzL29yZ2FuaXphdGlvbi50cz8yMmQwIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VHZW5lcmF0b3IgfSBmcm9tICcuL2Jhc2UnXG5cbmltcG9ydCB0eXBlIHsgT3JnYW5pemF0aW9uRG9jdW1lbnQgfSBmcm9tICcuLi8uLi9maXJlc3RvcmUvbW9kZWwnXG5cbmV4cG9ydCBjbGFzcyBPcmdhbml6YXRpb25HZW5lcmF0b3IgZXh0ZW5kcyBCYXNlR2VuZXJhdG9yPE9yZ2FuaXphdGlvbkRvY3VtZW50PiB7XG5cbiAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgc3VwZXIoJ29yZ2FuaXphdGlvbnMnKVxuICAgIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utils/generators/organization.ts\n')},"./src/utils/generators/purchase.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.PurchaseGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar PurchaseGenerator = /** @class */ (function (_super) {\n __extends(PurchaseGenerator, _super);\n function PurchaseGenerator(userId) {\n return _super.call(this, "users/" + userId + "/purchases") || this;\n }\n return PurchaseGenerator;\n}(base_1.BaseGenerator));\nexports.PurchaseGenerator = PurchaseGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy9wdXJjaGFzZS50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQTtBQUdBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBTkEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL3V0aWxzL2dlbmVyYXRvcnMvcHVyY2hhc2UudHM/Njk3YiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQdXJjaGFzZURvY3VtZW50IH0gZnJvbSAnLi4vLi4vZmlyZXN0b3JlL21vZGVsJ1xuXG5pbXBvcnQgeyBCYXNlR2VuZXJhdG9yIH0gZnJvbSAnLi9iYXNlJ1xuXG5cbmV4cG9ydCBjbGFzcyBQdXJjaGFzZUdlbmVyYXRvciBleHRlbmRzIEJhc2VHZW5lcmF0b3I8UHVyY2hhc2VEb2N1bWVudD4ge1xuXG4gICAgY29uc3RydWN0b3IodXNlcklkOiBzdHJpbmcpIHtcbiAgICAgICAgc3VwZXIoYHVzZXJzLyR7dXNlcklkfS9wdXJjaGFzZXNgKVxuICAgIH1cblxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/utils/generators/purchase.ts\n')},"./src/utils/generators/section.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.SectionGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar video_1 = __webpack_require__(/*! ./video */ "./src/utils/generators/video.ts");\nvar SectionGenerator = /** @class */ (function (_super) {\n __extends(SectionGenerator, _super);\n function SectionGenerator(channel) {\n var _this = _super.call(this, channel.ref.path + "/sections") || this;\n _this.videoGenerator = new video_1.VideoGenerator();\n _this.channel = channel;\n return _this;\n }\n SectionGenerator.prototype.clean = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, _super.prototype.clean.call(this)];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.videoGenerator.clean()];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n SectionGenerator.prototype.generateVideos = function (section, count, template) {\n return __awaiter(this, void 0, Promise, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.videoGenerator.generateDocuments(count, __assign(__assign({}, template), { channelRef: this.channel.ref, sectionRef: section.ref }))];\n });\n });\n };\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XG4gICAgcmVhZG9ubHkgdmlkZW9HZW5lcmF0b3IgPSBuZXcgVmlkZW9HZW5lcmF0b3IoKVxuXG4gICAgY29uc3RydWN0b3IoY2hhbm5lbDogRG9jdW1lbnQ8RmlyZWJhc2VDaGFubmVsPikge1xuICAgICAgICBzdXBlcihgJHtjaGFubmVsLnJlZi5wYXRofS9zZWN0aW9uc2ApXG5cbiAgICAgICAgdGhpcy5jaGFubmVsID0gY2hhbm5lbFxuICAgIH1cblxuICAgIGFzeW5jIGNsZWFuKCkge1xuICAgICAgICBhd2FpdCBzdXBlci5jbGVhbigpXG4gICAgICAgIGF3YWl0IHRoaXMudmlkZW9HZW5lcmF0b3IuY2xlYW4oKVxuICAgIH1cblxuICAgIGFzeW5jIGdlbmVyYXRlVmlkZW9zKFxuICAgICAgICBzZWN0aW9uOiBEb2N1bWVudDxTZWN0aW9uRG9jdW1lbnQ+LFxuICAgICAgICBjb3VudDogbnVtYmVyLFxuICAgICAgICB0ZW1wbGF0ZTogT21pdDxWaWRlb0RvY3VtZW50LCAnY2hhbm5lbFJlZicgfCAnc2VjdGlvblJlZic+LFxuICAgICk6IFByb21pc2U8QXJyYXk8RG9jdW1lbnQ8VmlkZW9Eb2N1bWVudD4+PiB7XG4gICAgICAgIHJldHVybiB0aGlzLnZpZGVvR2VuZXJhdG9yLmdlbmVyYXRlRG9jdW1lbnRzKGNvdW50LCB7XG4gICAgICAgICAgICAuLi50ZW1wbGF0ZSxcbiAgICAgICAgICAgIGNoYW5uZWxSZWY6IHRoaXMuY2hhbm5lbC5yZWYsXG4gICAgICAgICAgICBzZWN0aW9uUmVmOiBzZWN0aW9uLnJlZixcbiAgICAgICAgfSlcbiAgICB9XG5cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utils/generators/section.ts\n')},"./src/utils/generators/tag.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.TagGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar TagGenerator = /** @class */ (function (_super) {\n __extends(TagGenerator, _super);\n function TagGenerator(organizationId) {\n return _super.call(this, organizationId ? "organizations/" + organizationId + "/tags" : \'tags\') || this;\n }\n return TagGenerator;\n}(base_1.BaseGenerator));\nexports.TagGenerator = TagGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy90YWcudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRUE7QUFFQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUxBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy91dGlscy9nZW5lcmF0b3JzL3RhZy50cz82MzdhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFRhZ0RvY3VtZW50IH0gZnJvbSAnLi4vLi4vZmlyZXN0b3JlL21vZGVsJ1xuXG5pbXBvcnQgeyBCYXNlR2VuZXJhdG9yIH0gZnJvbSAnLi9iYXNlJ1xuXG5leHBvcnQgY2xhc3MgVGFnR2VuZXJhdG9yIGV4dGVuZHMgQmFzZUdlbmVyYXRvcjxUYWdEb2N1bWVudD4ge1xuICAgIGNvbnN0cnVjdG9yKG9yZ2FuaXphdGlvbklkPzogc3RyaW5nKSB7XG4gICAgICAgIHN1cGVyKG9yZ2FuaXphdGlvbklkID8gYG9yZ2FuaXphdGlvbnMvJHtvcmdhbml6YXRpb25JZH0vdGFnc2A6ICd0YWdzJylcbiAgICB9XG5cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utils/generators/tag.ts\n')},"./src/utils/generators/tvChannel.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.TvChannelGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar TvChannelGenerator = /** @class */ (function (_super) {\n __extends(TvChannelGenerator, _super);\n function TvChannelGenerator() {\n return _super.call(this, \'tvChannels\') || this;\n }\n return TvChannelGenerator;\n}(base_1.BaseGenerator));\nexports.TvChannelGenerator = TvChannelGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy90dkNoYW5uZWwudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRUE7QUFHQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUxBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy91dGlscy9nZW5lcmF0b3JzL3R2Q2hhbm5lbC50cz83MjUxIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFR2Q2hhbm5lbERvY3VtZW50IH0gZnJvbSAnLi4vLi4vZmlyZXN0b3JlL21vZGVsL3R2Q2hhbm5lbC90dkNoYW5uZWxEb2N1bWVudCdcblxuaW1wb3J0IHsgQmFzZUdlbmVyYXRvciB9IGZyb20gJy4vYmFzZSdcblxuXG5leHBvcnQgY2xhc3MgVHZDaGFubmVsR2VuZXJhdG9yIGV4dGVuZHMgQmFzZUdlbmVyYXRvcjxUdkNoYW5uZWxEb2N1bWVudD4ge1xuXG4gICAgY29uc3RydWN0b3IoKSB7XG4gICAgICAgIHN1cGVyKCd0dkNoYW5uZWxzJylcbiAgICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utils/generators/tvChannel.ts\n')},"./src/utils/generators/video.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.GlobalVideoGenerator = exports.VideoGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar VideoGenerator = /** @class */ (function (_super) {\n __extends(VideoGenerator, _super);\n function VideoGenerator() {\n return _super.call(this, \'videos\') || this;\n }\n return VideoGenerator;\n}(base_1.BaseGenerator));\nexports.VideoGenerator = VideoGenerator;\nvar GlobalVideoGenerator = /** @class */ (function (_super) {\n __extends(GlobalVideoGenerator, _super);\n function GlobalVideoGenerator() {\n return _super.call(this, \'videos\') || this;\n }\n return GlobalVideoGenerator;\n}(base_1.BaseGenerator));\nexports.GlobalVideoGenerator = GlobalVideoGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy92aWRlby50cy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUlBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBTkE7QUFRQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUxBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy91dGlscy9nZW5lcmF0b3JzL3ZpZGVvLnRzP2ZhZmQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZUdlbmVyYXRvciB9IGZyb20gJy4vYmFzZSdcblxuaW1wb3J0IHR5cGUgeyBWaWRlb0RvY3VtZW50IH0gZnJvbSAnLi4vLi4vZmlyZXN0b3JlL21vZGVsJ1xuXG5leHBvcnQgY2xhc3MgVmlkZW9HZW5lcmF0b3IgZXh0ZW5kcyBCYXNlR2VuZXJhdG9yPFZpZGVvRG9jdW1lbnQ+IHtcblxuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICBzdXBlcigndmlkZW9zJylcbiAgICB9XG5cbn1cblxuZXhwb3J0IGNsYXNzIEdsb2JhbFZpZGVvR2VuZXJhdG9yIGV4dGVuZHMgQmFzZUdlbmVyYXRvcjxWaWRlb0RvY3VtZW50PiB7XG5cbiAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgc3VwZXIoJ3ZpZGVvcycpXG4gICAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/utils/generators/video.ts\n')},"./src/utils/generators/watchPosition.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.WatchPositionGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar WatchPositionGenerator = /** @class */ (function (_super) {\n __extends(WatchPositionGenerator, _super);\n function WatchPositionGenerator(userId) {\n return _super.call(this, "users/" + userId + "/watchPositions") || this;\n }\n return WatchPositionGenerator;\n}(base_1.BaseGenerator));\nexports.WatchPositionGenerator = WatchPositionGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy93YXRjaFBvc2l0aW9uLnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBO0FBR0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFKQSIsInNvdXJjZXMiOlsid2VicGFjazovL2xpYnJhcnkvLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy93YXRjaFBvc2l0aW9uLnRzP2FhMzEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVXNlckRhdGFXYXRjaFBvc2l0aW9ucyB9IGZyb20gJy4uLy4uL2ZpcmVzdG9yZS9tb2RlbCdcblxuaW1wb3J0IHsgQmFzZUdlbmVyYXRvciB9IGZyb20gJy4vYmFzZSdcblxuXG5leHBvcnQgY2xhc3MgV2F0Y2hQb3NpdGlvbkdlbmVyYXRvciBleHRlbmRzIEJhc2VHZW5lcmF0b3I8VXNlckRhdGFXYXRjaFBvc2l0aW9ucz4ge1xuICAgIGNvbnN0cnVjdG9yKHVzZXJJZDogc3RyaW5nKSB7XG4gICAgICAgIHN1cGVyKGB1c2Vycy8ke3VzZXJJZH0vd2F0Y2hQb3NpdGlvbnNgKVxuICAgIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utils/generators/watchPosition.ts\n')},"./src/utils/generators/widget.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.WidgetGenerator = void 0;\nvar base_1 = __webpack_require__(/*! ./base */ "./src/utils/generators/base.ts");\nvar WidgetGenerator = /** @class */ (function (_super) {\n __extends(WidgetGenerator, _super);\n function WidgetGenerator() {\n return _super.call(this, \'widgets\') || this;\n }\n WidgetGenerator.prototype.generateWidgets = function (channels, count, template) {\n return __awaiter(this, void 0, Promise, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.generateDocuments(count, __assign(__assign({}, template), { channelsOrder: channels.map(function (channel) { return channel.ref; }) }))];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n return WidgetGenerator;\n}(base_1.BaseGenerator));\nexports.WidgetGenerator = WidgetGenerator;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvZ2VuZXJhdG9ycy93aWRnZXQudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFHQTtBQUlBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUlBOzs7QUFDQTtBQUFBOzs7O0FBQ0E7QUFFQTtBQUFBO0FBZEEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9saWJyYXJ5Ly4vc3JjL3V0aWxzL2dlbmVyYXRvcnMvd2lkZ2V0LnRzP2E4ZGQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRG9jdW1lbnQgfSBmcm9tICcuLi8uLi9maXJlc3RvcmUnXG5pbXBvcnQgeyBXaWRnZXREb2N1bWVudCB9IGZyb20gJy4uLy4uL2ZpcmVzdG9yZS9tb2RlbC93aWRnZXQvd2lkZ2V0RG9jdW1lbnQnXG5cbmltcG9ydCB7IEJhc2VHZW5lcmF0b3IgfSBmcm9tICcuL2Jhc2UnXG5cbmltcG9ydCB0eXBlIHsgRmlyZWJhc2VDaGFubmVsIH0gZnJvbSAnLi4vLi4vZmlyZXN0b3JlL21vZGVsJ1xuXG5leHBvcnQgY2xhc3MgV2lkZ2V0R2VuZXJhdG9yIGV4dGVuZHMgQmFzZUdlbmVyYXRvcjxXaWRnZXREb2N1bWVudD4ge1xuXG4gICAgY29uc3RydWN0b3IoKSB7XG4gICAgICAgIHN1cGVyKCd3aWRnZXRzJylcbiAgICB9XG5cbiAgICBhc3luYyBnZW5lcmF0ZVdpZGdldHMoXG4gICAgICAgIGNoYW5uZWxzOiBBcnJheTxEb2N1bWVudDxGaXJlYmFzZUNoYW5uZWw+PixcbiAgICAgICAgY291bnQ6IG51bWJlcixcbiAgICAgICAgdGVtcGxhdGU6IE9taXQ8V2lkZ2V0RG9jdW1lbnQsICdjaGFubmVsc09yZGVyJz4sXG4gICAgKTogUHJvbWlzZTxBcnJheTxEb2N1bWVudDxXaWRnZXREb2N1bWVudD4+PiB7XG4gICAgICAgIHJldHVybiBhd2FpdCB0aGlzLmdlbmVyYXRlRG9jdW1lbnRzKGNvdW50LCB7IC4uLnRlbXBsYXRlLCBjaGFubmVsc09yZGVyOiBjaGFubmVscy5tYXAoY2hhbm5lbCA9PiBjaGFubmVsLnJlZikgfSlcbiAgICB9XG5cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utils/generators/widget.ts\n')},"./src/utils/index.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";eval('\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n}) : function(o, v) {\n o["default"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, "__esModule", ({ value: true }));\nexports.generators = void 0;\nexports.generators = __importStar(__webpack_require__(/*! ./generators */ "./src/utils/generators/index.ts"));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvaW5kZXgudHMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbGlicmFyeS8uL3NyYy91dGlscy9pbmRleC50cz9kMjU3Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGFzIGdlbmVyYXRvcnMgZnJvbSAnLi9nZW5lcmF0b3JzJ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/utils/index.ts\n')},"./src/utils/logger.ts":function(__unused_webpack_module,exports){"use strict";eval("\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.createLogger = exports.Logger = void 0;\n// TODO TIV-1355 this logger should be imported for common.\n// Not it's temporary solution needed for types refactoring (we need import some types from firebase to common,\n// so now we can't import this logger from common because it will cause dependency cycle)\nvar Logger = /** @class */ (function () {\n function Logger(name) {\n this.name = name;\n this.isEnabled = true;\n }\n Logger.prototype.error = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n this.log.apply(this, __spreadArray(['error'], args, false));\n };\n Logger.prototype.info = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n this.log.apply(this, __spreadArray(['info'], args, false));\n };\n Logger.prototype.off = function () {\n this.isEnabled = false;\n };\n Logger.prototype.on = function () {\n this.isEnabled = true;\n };\n Logger.prototype.warn = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n this.log.apply(this, __spreadArray(['warn'], args, false));\n };\n Logger.prototype.forceInfo = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n console.info.apply(console, __spreadArray([Logger.prefix + \":\" + this.name], args, false));\n };\n Logger.prototype.log = function (level) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n if (Logger.enabled && this.isEnabled) {\n console[level].apply(console, __spreadArray([Logger.prefix + \":\" + this.name], args, false));\n // Arris STB supports only one argument for console logging so this can be handy for that case.\n // let index = 1\n // let message = args[0]\n // while (typeof args[index] !== 'undefined') {\n // message += ' ' + args[index]\n // index++\n // }\n // console[level](`${Logger.prefix}:${this.name} ${message}`)\n }\n };\n Logger.enabled = true;\n Logger.prefix = 'tivio';\n return Logger;\n}());\nexports.Logger = Logger;\nvar createLogger = function (name) { return new Logger(name); };\nexports.createLogger = createLogger;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvbG9nZ2VyLnRzLmpzIiwibWFwcGluZ3MiOiI7Ozs7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ICAgICAgIC8vIGxldCBtZXNzYWdlID0gYXJnc1swXVxuXG4gICAgICAgICAgICAvLyB3aGlsZSAodHlwZW9mIGFyZ3NbaW5kZXhdICE9PSAndW5kZWZpbmVkJykge1xuICAgICAgICAgICAgLy8gICAgIG1lc3NhZ2UgKz0gJyAnICsgYXJnc1tpbmRleF1cbiAgICAgICAgICAgIC8vICAgICBpbmRleCsrXG4gICAgICAgICAgICAvLyB9XG5cbiAgICAgICAgICAgIC8vIGNvbnNvbGVbbGV2ZWxdKGAke0xvZ2dlci5wcmVmaXh9OiR7dGhpcy5uYW1lfSAke21lc3NhZ2V9YClcbiAgICAgICAgfVxuICAgIH1cbn1cblxuY29uc3QgY3JlYXRlTG9nZ2VyID0gKG5hbWU6IHN0cmluZykgPT4gbmV3IExvZ2dlcihuYW1lKVxuXG5leHBvcnQge1xuICAgIGNyZWF0ZUxvZ2dlcixcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utils/logger.ts\n")},"../../node_modules/uuid-random/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";eval("\n\n(function(){\n\n var\n buf,\n bufIdx = 0,\n hexBytes = [],\n i\n ;\n\n // Pre-calculate toString(16) for speed\n for (i = 0; i < 256; i++) {\n hexBytes[i] = (i + 0x100).toString(16).substr(1);\n }\n\n // Buffer random numbers for speed\n // Reduce memory usage by decreasing this number (min 16)\n // or improve speed by increasing this number (try 16384)\n uuid.BUFFER_SIZE = 4096;\n\n // Binary uuids\n uuid.bin = uuidBin;\n\n // Clear buffer\n uuid.clearBuffer = function() {\n buf = null;\n bufIdx = 0;\n };\n\n // Test for uuid\n uuid.test = function(uuid) {\n if (typeof uuid === 'string') {\n return /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(uuid);\n }\n return false;\n };\n\n // Node & Browser support\n var crypt0;\n if (typeof crypto !== 'undefined') {\n crypt0 = crypto;\n } else if( (typeof window !== 'undefined') && (typeof window.msCrypto !== 'undefined')) {\n crypt0 = window.msCrypto; // IE11\n }\n\n if (true) {\n crypt0 = crypt0 || __webpack_require__(/*! crypto */ \"?278c\");\n module.exports = uuid;\n } else {}\n\n // Use best available PRNG\n // Also expose this so you can override it.\n uuid.randomBytes = (function(){\n if (crypt0) {\n if (crypt0.randomBytes) {\n return crypt0.randomBytes;\n }\n if (crypt0.getRandomValues) {\n if (typeof Uint8Array.prototype.slice !== 'function') {\n return function(n) {\n var bytes = new Uint8Array(n);\n crypt0.getRandomValues(bytes);\n return Array.from(bytes);\n };\n }\n return function(n) {\n var bytes = new Uint8Array(n);\n crypt0.getRandomValues(bytes);\n return bytes;\n };\n }\n }\n return function(n) {\n var i, r = [];\n for (i = 0; i < n; i++) {\n r.push(Math.floor(Math.random() * 256));\n }\n return r;\n };\n })();\n\n // Buffer some random bytes for speed\n function randomBytesBuffered(n) {\n if (!buf || ((bufIdx + n) > uuid.BUFFER_SIZE)) {\n bufIdx = 0;\n buf = uuid.randomBytes(uuid.BUFFER_SIZE);\n }\n return buf.slice(bufIdx, bufIdx += n);\n }\n\n // uuid.bin\n function uuidBin() {\n var b = randomBytesBuffered(16);\n b[6] = (b[6] & 0x0f) | 0x40;\n b[8] = (b[8] & 0x3f) | 0x80;\n return b;\n }\n\n // String UUIDv4 (Random)\n function uuid() {\n var b = uuidBin();\n return hexBytes[b[0]] + hexBytes[b[1]] +\n hexBytes[b[2]] + hexBytes[b[3]] + '-' +\n hexBytes[b[4]] + hexBytes[b[5]] + '-' +\n hexBytes[b[6]] + hexBytes[b[7]] + '-' +\n hexBytes[b[8]] + hexBytes[b[9]] + '-' +\n hexBytes[b[10]] + hexBytes[b[11]] +\n hexBytes[b[12]] + hexBytes[b[13]] +\n hexBytes[b[14]] + hexBytes[b[15]]\n ;\n }\n\n})();\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJz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HwgMHg0MDtcbiAgICBiWzhdID0gKGJbOF0gJiAweDNmKSB8IDB4ODA7XG4gICAgcmV0dXJuIGI7XG4gIH1cblxuICAvLyBTdHJpbmcgVVVJRHY0IChSYW5kb20pXG4gIGZ1bmN0aW9uIHV1aWQoKSB7XG4gICAgdmFyIGIgPSB1dWlkQmluKCk7XG4gICAgcmV0dXJuIGhleEJ5dGVzW2JbMF1dICsgaGV4Qnl0ZXNbYlsxXV0gK1xuICAgICAgaGV4Qnl0ZXNbYlsyXV0gKyBoZXhCeXRlc1tiWzNdXSArICctJyArXG4gICAgICBoZXhCeXRlc1tiWzRdXSArIGhleEJ5dGVzW2JbNV1dICsgJy0nICtcbiAgICAgIGhleEJ5dGVzW2JbNl1dICsgaGV4Qnl0ZXNbYls3XV0gKyAnLScgK1xuICAgICAgaGV4Qnl0ZXNbYls4XV0gKyBoZXhCeXRlc1tiWzldXSArICctJyArXG4gICAgICBoZXhCeXRlc1tiWzEwXV0gKyBoZXhCeXRlc1tiWzExXV0gK1xuICAgICAgaGV4Qnl0ZXNbYlsxMl1dICsgaGV4Qnl0ZXNbYlsxM11dICtcbiAgICAgIGhleEJ5dGVzW2JbMTRdXSArIGhleEJ5dGVzW2JbMTVdXVxuICAgIDtcbiAgfVxuXG59KSgpO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../node_modules/uuid-random/index.js\n")},"?278c":function(){}},__webpack_module_cache__={};function __nested_webpack_require_688649__(e){var n=__webpack_module_cache__[e];if(void 0!==n)return n.exports;var t=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__nested_webpack_require_688649__),t.loaded=!0,t.exports}__nested_webpack_require_688649__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_688649__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __webpack_exports__=__nested_webpack_require_688649__("./src/index.ts");return __webpack_exports__}()},module.exports=factory()},718:function(e){e.exports=function(){"use strict";var e={723:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(902),n)},902:function(e,n){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.VAST_PROVIDERS=n.VastProvider=void 0,function(e){e.ETARGET_PREBID="etarget-prebid",e.MALL_TV_PREBID="malltv-prebid",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.MALL_TV="malltv",e.FALLBACK_MP4="fallback",e.FALLBACK_HLS="fallback-hls",e.JOJ="joj",e.PRIMA="prima",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev"}(t=n.VastProvider||(n.VastProvider={})),n.VAST_PROVIDERS=[{id:t.ETARGET_PREBID,name:"Etarget Prebid"},{id:t.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:t.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:t.MALL_TV,name:"MALL.TV"},{id:t.JOJ,name:"JOJ"},{id:t.PRIMA,name:"Prima"},{id:t.GARAZ_TV,name:"Garaz TV"},{id:t.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:t.FALLBACK_MP4,name:"Fallback (MP4)",development:!0},{id:t.FALLBACK_HLS,name:"Fallback (HLS)",development:!0}]},920:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(375),n),r(t(895),n),r(t(216),n),r(t(723),n)},216:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},375:function(e,n){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.ALGOLIA_INDEX_NAME=void 0,(t=n.ALGOLIA_INDEX_NAME||(n.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",t.VIDEOSDESC="videos_created_desc",t.TAGS="tags",t.TV_CHANNELS="tvChannels",t.USERS="users"},489:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},690:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.PLATFORM=n.CUSTOMER_BUILD=void 0,function(e){e.OKTAGON="OKTAGON",e.JOJ="JOJ",e.MALL="MALL",e.GARAZ="GARAZ",e.U_KULATEHO_STOLU="U_KULATEHO_STOLU",e.INVESTOREES="INVESTOREES"}(t||(t={})),n.CUSTOMER_BUILD=t,function(e){e.MOBILE="MOBILE",e.WEB="WEB",e.TV="TV"}(i||(i={})),n.PLATFORM=i},423:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},352:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(489),n),r(t(690),n),r(t(423),n),r(t(757),n)},757:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},255:function(e,n){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.DEFAULT_ORDER_BY=n.CURRENCIES=n.languages=n.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.PL="pl",e.SK="sk",e.SP="sp"}(t=n.LangCode||(n.LangCode={})),n.languages=Object.values(t),n.CURRENCIES=["CZK","EUR","USD"],n.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}]},396:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},202:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},129:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},786:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(363),n),r(t(635),n),r(t(202),n),r(t(910),n),r(t(906),n),r(t(948),n),r(t(535),n),r(t(161),n),r(t(656),n),r(t(614),n),r(t(396),n),r(t(738),n),r(t(129),n),r(t(959),n),r(t(605),n),r(t(190),n)},959:function(e,n){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.MONETIZATION_FREQUENCY=void 0,(t=n.MONETIZATION_FREQUENCY||(n.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",t.DAILY="DAILY",t.WEEKLY="WEEKLY",t.MONTHLY="MONTHLY",t.ANNUALLY="ANNUALLY"},910:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},738:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},535:function(e,n){var t,i,r;Object.defineProperty(n,"__esModule",{value:!0}),n.ROW_ITEM_TYPES=n.RowItemComponent=n.RowComponent=void 0,(r=n.RowComponent||(n.RowComponent={})).ROW="ROW",r.BANNER="BANNER",(i=n.RowItemComponent||(n.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",i.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",i.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(t=n.ROW_ITEM_TYPES||(n.ROW_ITEM_TYPES={})).VIDEO="VIDEO",t.TAG="TAG",t.TV_CHANNEL="TV_CHANNEL"},161:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},605:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},190:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},614:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},656:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},906:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},363:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.PurchaseStatus=n.UserType=void 0,(i=n.UserType||(n.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",i.TIVIO_USER="TIVIO_USER",(t=n.PurchaseStatus||(n.PurchaseStatus={})).NEW="NEW",t.PAID="PAID",t.CANCELLED="CANCELLED",t.ERROR="ERROR"},948:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.VideoType=n.VideoContentType=void 0,(i=n.VideoContentType||(n.VideoContentType={})).VIDEO="VIDEO",i.FILM="FILM",i.SERIES="SERIES",(t=n.VideoType||(n.VideoType={})).PLAYLIST="PLAYLIST",t.VIDEO="VIDEO",t.TV_PROGRAM="TV_PROGRAM"},635:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},895:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(786),n),r(t(352),n),r(t(255),n)}},n={};return function t(i){var r=n[i];if(void 0!==r)return r.exports;var o=n[i]={exports:{}};return e[i].call(o.exports,o,o.exports,t),o.exports}(920)}()},96:function(e){"use strict";function n(e,n){for(var t=e.toString();t.length<n;)t="0"+t;return t}function t(e){return n(e,2)}function i(i,r){"string"!=typeof i&&(r=i,i=e.exports.ISO8601_FORMAT),r||(r=e.exports.now());var o,c,a,l,s=t(r.getDate()),u=t(r.getMonth()+1),d=t(r.getFullYear()),b=t(d.substring(2,4)),g=i.indexOf("yyyy")>-1?d:b,I=t(r.getHours()),p=t(r.getMinutes()),m=t(r.getSeconds()),B=n(r.getMilliseconds(),3),y=(o=r.getTimezoneOffset(),c=Math.abs(o),a=String(Math.floor(c/60)),l=String(c%60),1===a.length&&(a="0"+a),1===l.length&&(l="0"+l),o<0?"+"+a+l:"-"+a+l);return i.replace(/dd/g,s).replace(/MM/g,u).replace(/y{1,4}/g,g).replace(/hh/g,I).replace(/mm/g,p).replace(/ss/g,m).replace(/SSS/g,B).replace(/O/g,y)}function r(e,n,t,i){e["set"+(i?"":"UTC")+n](t)}e.exports=i,e.exports.asString=i,e.exports.parse=function(n,t,i){if(!n)throw new Error("pattern must be supplied");return function(n,t,i){var o=n.indexOf("O")<0,c=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,n){r(e,"FullYear",n,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,n){r(e,"Month",n-1,o)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,n){r(e,"Date",n,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,n){r(e,"Hours",n,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,n){r(e,"Minutes",n,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,n){r(e,"Seconds",n,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,n){r(e,"Milliseconds",n,o)}},{pattern:/O/,regexp:"[+-]\\d{3,4}|Z",fn:function(e,n){"Z"===n&&(n=0);var t=Math.abs(n),i=(n>0?-1:1)*(t%100+60*Math.floor(t/100));e.setUTCMinutes(e.getUTCMinutes()+i)}}],a=c.reduce((function(e,n){return n.pattern.test(e.regexp)?(n.index=e.regexp.match(n.pattern).index,e.regexp=e.regexp.replace(n.pattern,"("+n.regexp+")")):n.index=-1,e}),{regexp:n,index:[]}),l=c.filter((function(e){return e.index>-1}));l.sort((function(e,n){return e.index-n.index}));var s=new RegExp(a.regexp).exec(t);if(s){var u=i||e.exports.now();return l.forEach((function(e,n){e.fn(u,s[n+1])})),u}throw new Error("String '"+t+"' could not be parsed as '"+n+"'")}(n,t,i)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"},187:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.gtag=n.install=void 0,n.install=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i="ga-gtag";if(!document.getElementById(i)){var r=document,o=r.head,c=document.createElement("script");c.id=i,c.type="text/javascript",c.async=!0,c.src="https://www.googletagmanager.com/gtag/js?id=".concat(e),o.insertBefore(c,o.firstChild),window.dataLayer=window.dataLayer||[],t("js",new Date),t("config",e,n)}};var t=function(){window.dataLayer.push(arguments)};n.gtag=t;var i=t;n.default=i},421:function(e,n,t){"use strict";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},i(e)}function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?Object(arguments[n]):{},i=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.forEach((function(n){r(e,n,t[n])}))}return e}function c(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function a(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,n,t){return n&&a(e.prototype,n),t&&a(e,t),e}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,n){if(n&&("object"===i(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function b(e,n){return b=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},b(e,n)}function g(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&b(e,n)}t.r(n),t.d(n,{default:function(){return z}});var I={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},p=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.init(n,t)}return l(e,[{key:"init",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||I,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,t,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(t).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(n){return new e(this.logger,o({},{prefix:"".concat(this.prefix,":").concat(n,":")},this.options))}}]),e}(),m=new p,B=function(){function e(){c(this,e),this.observers={}}return l(e,[{key:"on",value:function(e,n){var t=this;return e.split(" ").forEach((function(e){t.observers[e]=t.observers[e]||[],t.observers[e].push(n)})),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter((function(e){return e!==n})):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];if(this.observers[e]){var r=[].concat(this.observers[e]);r.forEach((function(e){e.apply(void 0,t)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(n){n.apply(n,[e].concat(t))}))}}}]),e}();function y(){var e,n,t=new Promise((function(t,i){e=t,n=i}));return t.resolve=e,t.reject=n,t}function h(e){return null==e?"":""+e}function G(e,n,t){e.forEach((function(e){n[e]&&(t[e]=n[e])}))}function Z(e,n,t){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var o="string"!=typeof n?[].concat(n):n.split(".");o.length>1;){if(r())return{};var c=i(o.shift());!e[c]&&t&&(e[c]=new t),e=Object.prototype.hasOwnProperty.call(e,c)?e[c]:{}}return r()?{}:{obj:e,k:i(o.shift())}}function X(e,n,t){var i=Z(e,n,Object);i.obj[i.k]=t}function v(e,n){var t=Z(e,n),i=t.obj,r=t.k;if(i)return i[r]}function f(e,n,t){var i=v(e,t);return void 0!==i?i:v(n,t)}function C(e,n,t){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?t&&(e[i]=n[i]):C(e[i],n[i],t):e[i]=n[i]);return e}function F(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Q(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return V[e]})):e}var W="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function n(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return c(this,n),t=u(this,d(n).call(this)),W&&B.call(s(t)),t.data=e||{},t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t}return g(n,e),l(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=[e,n];return t&&"string"!=typeof t&&(o=o.concat(t)),t&&"string"==typeof t&&(o=o.concat(r?t.split(r):t)),e.indexOf(".")>-1&&(o=e.split(".")),v(this.data,o)}},{key:"addResource",value:function(e,n,t,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var c=[e,n];t&&(c=c.concat(o?t.split(o):t)),e.indexOf(".")>-1&&(i=n,n=(c=e.split("."))[1]),this.addNamespaces(n),X(this.data,c,i),r.silent||this.emit("added",e,n,t,i)}},{key:"addResources",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in t)"string"!=typeof t[r]&&"[object Array]"!==Object.prototype.toString.apply(t[r])||this.addResource(e,n,r,t[r],{silent:!0});i.silent||this.emit("added",e,n,t)}},{key:"addResourceBundle",value:function(e,n,t,i,r){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,n];e.indexOf(".")>-1&&(i=t,t=n,n=(a=e.split("."))[1]),this.addNamespaces(n);var l=v(this.data,a)||{};i?C(l,t,r):l=o({},l,t),X(this.data,a,l),c.silent||this.emit("added",e,n,t)}},{key:"removeResourceBundle",value:function(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}},{key:"hasResourceBundle",value:function(e,n){return void 0!==this.getResource(e,n)}},{key:"getResourceBundle",value:function(e,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?o({},{},this.getResource(e,n)):this.getResource(e,n)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),n}(B),x={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,t,i,r){var o=this;return e.forEach((function(e){o.processors[e]&&(n=o.processors[e].process(n,t,i,r))})),n}},U={},_=function(e){function n(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,n),t=u(this,d(n).call(this)),W&&B.call(s(t)),G(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,s(t)),t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=m.create("translator"),t}return g(n,e),l(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},t=this.resolve(e,n);return t&&void 0!==t.res}},{key:"extractFromKey",value:function(e,n){var t=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,r=n.ns||this.options.defaultNS;if(t&&e.indexOf(t)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:r};var c=e.split(t);(t!==i||t===i&&this.options.ns.indexOf(c[0])>-1)&&(r=c.shift()),e=c.join(i)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,r){var c=this;if("object"!==i(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],t),s=l.key,u=l.namespaces,d=u[u.length-1],b=t.lng||this.language,g=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b&&"cimode"===b.toLowerCase()){if(g){var I=t.nsSeparator||this.options.nsSeparator;return d+I+s}return s}var p=this.resolve(e,t),m=p&&p.res,B=p&&p.usedKey||s,y=p&&p.exactUsedKey||s,h=Object.prototype.toString.apply(m),G=["[object Number]","[object Function]","[object RegExp]"],Z=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(X&&m&&v&&G.indexOf(h)<0&&("string"!=typeof Z||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(B,m,t):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var f="[object Array]"===h,C=f?[]:{},F=f?y:B;for(var V in m)if(Object.prototype.hasOwnProperty.call(m,V)){var Q="".concat(F).concat(a).concat(V);C[V]=this.translate(Q,o({},t,{joinArrays:!1,ns:u})),C[V]===Q&&(C[V]=m[V])}m=C}}else if(X&&"string"==typeof Z&&"[object Array]"===h)(m=m.join(Z))&&(m=this.extendTranslation(m,e,t,r));else{var W=!1,A=!1,x=void 0!==t.count&&"string"!=typeof t.count,U=n.hasDefaultValue(t),_=x?this.pluralResolver.getSuffix(b,t.count):"",R=t["defaultValue".concat(_)]||t.defaultValue;!this.isValidLookup(m)&&U&&(W=!0,m=R),this.isValidLookup(m)||(A=!0,m=s);var N=U&&R!==m&&this.options.updateMissing;if(A||W||N){if(this.logger.log(N?"updateKey":"missingKey",b,d,s,N?R:m),a){var Y=this.resolve(s,o({},t,{keySeparator:!1}));Y&&Y.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var J=[],w=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&w&&w[0])for(var S=0;S<w.length;S++)J.push(w[S]);else"all"===this.options.saveMissingTo?J=this.languageUtils.toResolveHierarchy(t.lng||this.language):J.push(t.lng||this.language);var L=function(e,n,i){c.options.missingKeyHandler?c.options.missingKeyHandler(e,d,n,N?i:m,N,t):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(e,d,n,N?i:m,N,t),c.emit("missingKey",e,d,n,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?J.forEach((function(e){c.pluralResolver.getSuffixes(e).forEach((function(n){L([e],s+n,t["defaultValue".concat(n)]||R)}))})):L(J,s,R))}m=this.extendTranslation(m,e,t,p,r),A&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(d,":").concat(s)),A&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,n,t,i,r){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,t,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init(o({},t,{interpolation:o({},this.options.interpolation,t.interpolation)}));var a,l=t.interpolation&&t.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var u=t.replace&&"string"!=typeof t.replace?t.replace:t;if(this.options.interpolation.defaultVariables&&(u=o({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,t.lng||this.language,t),l){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(t.nest=!1)}!1!==t.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!t.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(n[0])),null):c.translate.apply(c,i.concat([n]))}),t)),t.interpolation&&this.interpolator.reset()}var b=t.postProcess||this.options.postProcess,g="string"==typeof b?[b]:b;return null!=e&&g&&g.length&&!1!==t.applyPostProcessor&&(e=x.handle(g,e,n,this.options&&this.options.postProcessPassResolved?o({i18nResolved:i},t):t,this)),e}},{key:"resolve",value:function(e){var n,t,i,r,o,c=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!c.isValidLookup(n)){var l=c.extractFromKey(e,a),s=l.key;t=s;var u=l.namespaces;c.options.fallbackNS&&(u=u.concat(c.options.fallbackNS));var d=void 0!==a.count&&"string"!=typeof a.count,b=void 0!==a.context&&"string"==typeof a.context&&""!==a.context,g=a.lngs?a.lngs:c.languageUtils.toResolveHierarchy(a.lng||c.language,a.fallbackLng);u.forEach((function(e){c.isValidLookup(n)||(o=e,!U["".concat(g[0],"-").concat(e)]&&c.utils&&c.utils.hasLoadedNamespace&&!c.utils.hasLoadedNamespace(o)&&(U["".concat(g[0],"-").concat(e)]=!0,c.logger.warn('key "'.concat(t,'" for languages "').concat(g.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach((function(t){if(!c.isValidLookup(n)){r=t;var o,l,u=s,g=[u];for(c.i18nFormat&&c.i18nFormat.addLookupKeys?c.i18nFormat.addLookupKeys(g,s,t,e,a):(d&&(o=c.pluralResolver.getSuffix(t,a.count)),d&&b&&g.push(u+o),b&&g.push(u+="".concat(c.options.contextSeparator).concat(a.context)),d&&g.push(u+=o));l=g.pop();)c.isValidLookup(n)||(i=l,n=c.getResource(t,e,l,a))}})))}))}})),{res:n,usedKey:t,exactUsedKey:i,usedLng:r,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,t,i):this.resourceStore.getResource(e,n,t,i)}}],[{key:"hasDefaultValue",value:function(e){var n="defaultValue";for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n===t.substring(0,n.length)&&void 0!==e[t])return!0;return!1}}]),n}(B);function R(e){return e.charAt(0).toUpperCase()+e.slice(1)}var N=function(){function e(n){c(this,e),this.options=n,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=m.create("languageUtils")}return l(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],t=e.split("-");return this.options.lowerCaseLng?t=t.map((function(e){return e.toLowerCase()})):2===t.length?(t[0]=t[0].toLowerCase(),t[1]=t[1].toUpperCase(),n.indexOf(t[1].toLowerCase())>-1&&(t[1]=R(t[1].toLowerCase()))):3===t.length&&(t[0]=t[0].toLowerCase(),2===t[1].length&&(t[1]=t[1].toUpperCase()),"sgn"!==t[0]&&2===t[2].length&&(t[2]=t[2].toUpperCase()),n.indexOf(t[1].toLowerCase())>-1&&(t[1]=R(t[1].toLowerCase())),n.indexOf(t[2].toLowerCase())>-1&&(t[2]=R(t[2].toLowerCase()))),t.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,t=this;return e?(e.forEach((function(e){if(!n){var i=t.formatLanguageCode(e);t.options.supportedLngs&&!t.isSupportedCode(i)||(n=i)}})),!n&&this.options.supportedLngs&&e.forEach((function(e){if(!n){var i=t.getLanguagePartFromCode(e);if(t.isSupportedCode(i))return n=i;n=t.options.supportedLngs.find((function(e){if(0===e.indexOf(i))return e}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!n)return e.default||[];var t=e[n];return t||(t=e[this.getScriptPartFromCode(n)]),t||(t=e[this.formatLanguageCode(n)]),t||(t=e[this.getLanguagePartFromCode(n)]),t||(t=e.default),t||[]}},{key:"toResolveHierarchy",value:function(e,n){var t=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],o=function(e){e&&(t.isSupportedCode(e)?r.push(e):t.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach((function(e){r.indexOf(e)<0&&o(t.formatLanguageCode(e))})),r}}]),e}(),Y=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],J={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function w(){var e={};return Y.forEach((function(n){n.lngs.forEach((function(t){e[t]={numbers:n.nr,plurals:J[n.fc]}}))})),e}var S=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.languageUtils=n,this.options=t,this.logger=m.create("pluralResolver"),this.rules=w()}return l(e,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map((function(e){return n+e}))}},{key:"getSuffixes",value:function(e){var n=this,t=this.getRule(e);return t?t.numbers.map((function(t){return n.getSuffix(e,t)})):[]}},{key:"getSuffix",value:function(e,n){var t=this,i=this.getRule(e);if(i){var r=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),o=i.numbers[r];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var c=function(){return t.options.prepend&&o.toString()?t.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):c():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?c():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),L=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=m.create("interpolator"),this.options=n,this.format=n.interpolation&&n.interpolation.format||function(e){return e},this.init(n)}return l(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=void 0!==n.escape?n.escape:Q,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?F(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?F(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?F(n.nestingPrefix):n.nestingPrefixEscaped||F("$t("),this.nestingSuffix=n.nestingSuffix?F(n.nestingSuffix):n.nestingSuffixEscaped||F(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var t="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(t,"g")}},{key:"interpolate",value:function(e,n,t,i){var r,o,c,a=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(a.formatSeparator)<0){var r=f(n,l,e);return a.alwaysFormat?a.format(r,void 0,t):r}var o=e.split(a.formatSeparator),c=o.shift().trim(),s=o.join(a.formatSeparator).trim();return a.format(f(n,l,c),s,t,i)};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,b=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return a.escapeValue?s(a.escape(e)):s(e)}}].forEach((function(n){for(c=0;r=n.regex.exec(e);){if(void 0===(o=u(r[1].trim())))if("function"==typeof d){var t=d(e,r,i);o="string"==typeof t?t:""}else{if(b){o=r[0];continue}a.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||a.useRawValueToEscape||(o=h(o));if(e=e.replace(r[0],n.safeValue(o)),n.regex.lastIndex=0,++c>=a.maxReplaces)break}})),e}},{key:"nest",value:function(e,n){var t,i,r=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o({},c);function l(e,n){var t=this.nestingOptionsSeparator;if(e.indexOf(t)<0)return e;var i=e.split(new RegExp("".concat(t,"[ ]*{"))),r="{".concat(i[1]);e=i[0],r=(r=this.interpolate(r,a)).replace(/'/g,'"');try{a=JSON.parse(r),n&&(a=o({},n,a))}catch(n){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),n),"".concat(e).concat(t).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;t=this.nestingRegexp.exec(e);){var s=[],u=!1;if(t[0].includes(this.formatSeparator)&&!/{.*}/.test(t[1])){var d=t[1].split(this.formatSeparator).map((function(e){return e.trim()}));t[1]=d.shift(),s=d,u=!0}if((i=n(l.call(this,t[1].trim(),a),a))&&t[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=h(i)),i||(this.logger.warn("missed to resolve ".concat(t[1]," for nesting ").concat(e)),i=""),u&&(i=s.reduce((function(e,n){return r.format(e,n,c.lng,c)}),i.trim())),e=e.replace(t[0],i),this.regexp.lastIndex=0}return e}}]),e}(),T=function(e){function n(e,t,i){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c(this,n),r=u(this,d(n).call(this)),W&&B.call(s(r)),r.backend=e,r.store=t,r.services=i,r.languageUtils=i.languageUtils,r.options=o,r.logger=m.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(i,o.backend,o),r}return g(n,e),l(n,[{key:"queueLoad",value:function(e,n,t,i){var r=this,o=[],c=[],a=[],l=[];return e.forEach((function(e){var i=!0;n.forEach((function(n){var a="".concat(e,"|").concat(n);!t.reload&&r.store.hasResourceBundle(e,n)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?c.indexOf(a)<0&&c.push(a):(r.state[a]=1,i=!1,c.indexOf(a)<0&&c.push(a),o.indexOf(a)<0&&o.push(a),l.indexOf(n)<0&&l.push(n)))})),i||a.push(e)})),(o.length||c.length)&&this.queue.push({pending:c,loaded:{},errors:[],callback:i}),{toLoad:o,pending:c,toLoadLanguages:a,toLoadNamespaces:l}}},{key:"loaded",value:function(e,n,t){var i=e.split("|"),r=i[0],o=i[1];n&&this.emit("failedLoading",r,o,n),t&&this.store.addResourceBundle(r,o,t),this.state[e]=n?-1:2;var c={};this.queue.forEach((function(t){var i,a,l,s,u;i=t.loaded,a=o,(s=(l=Z(i,[r],Object)).obj)[u=l.k]=s[u]||[],s[u].push(a),function(e,n){for(var t=e.indexOf(n);-1!==t;)e.splice(t,1),t=e.indexOf(n)}(t.pending,e),n&&t.errors.push(n),0!==t.pending.length||t.done||(Object.keys(t.loaded).forEach((function(e){c[e]||(c[e]=[]),t.loaded[e].length&&t.loaded[e].forEach((function(n){c[e].indexOf(n)<0&&c[e].push(n)}))})),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())})),this.emit("loaded",c),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,n,t){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,c=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[t](e,n,(function(a,l){a&&l&&r<5?setTimeout((function(){i.read.call(i,e,n,t,r+1,2*o,c)}),o):c(a,l)})):c(null,{})}},{key:"prepareLoading",value:function(e,n){var t=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof n&&(n=[n]);var o=this.queueLoad(e,n,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((function(e){t.loadOne(e)}))}},{key:"load",value:function(e,n,t){this.prepareLoading(e,n,{},t)}},{key:"reload",value:function(e,n,t){this.prepareLoading(e,n,{reload:!0},t)}},{key:"loadOne",value:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(function(i,c){i&&n.logger.warn("".concat(t,"loading namespace ").concat(o," for language ").concat(r," failed"),i),!i&&c&&n.logger.log("".concat(t,"loaded namespace ").concat(o," for language ").concat(r),c),n.loaded(e,i,c)}))}},{key:"saveMissing",value:function(e,n,t,i,r){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(t,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=t&&""!==t&&(this.backend&&this.backend.create&&this.backend.create(e,n,t,i,null,o({},c,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],n,t,i))}}]),n}(B);function O(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if("object"===i(e[1])&&(n=e[1]),"string"==typeof e[1]&&(n.defaultValue=e[1]),"string"==typeof e[2]&&(n.tDescription=e[2]),"object"===i(e[2])||"object"===i(e[3])){var t=e[3]||e[2];Object.keys(t).forEach((function(e){n[e]=t[e]}))}return n},interpolation:{escapeValue:!0,format:function(e,n,t,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function k(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function E(){}var H=function(e){function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(c(this,n),e=u(this,d(n).call(this)),W&&B.call(s(e)),e.options=k(t),e.services={},e.logger=m,e.modules={external:[]},i&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,i),u(e,s(e));setTimeout((function(){e.init(t,i)}),0)}return e}return g(n,e),l(n,[{key:"init",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(t=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=o({},O(),this.options,k(n)),this.format=this.options.interpolation.format,t||(t=E),!this.options.isClone){this.modules.logger?m.init(i(this.modules.logger),this.options):m.init(null,this.options);var r=new N(this.options);this.store=new A(this.options.resources,this.options);var c=this.services;c.logger=m,c.resourceStore=this.store,c.languageUtils=r,c.pluralResolver=new S(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c.interpolator=new L(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new T(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(function(n){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];e.emit.apply(e,[n].concat(i))})),this.modules.languageDetector&&(c.languageDetector=i(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=i(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new _(this.services,this.options),this.translator.on("*",(function(n){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];e.emit.apply(e,[n].concat(i))})),this.modules.external.forEach((function(n){n.init&&n.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(n){e[n]=function(){var t;return(t=e.store)[n].apply(t,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(n){e[n]=function(){var t;return(t=e.store)[n].apply(t,arguments),e}}));var u=y(),d=function(){var n=function(n,i){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(i),t(n,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return n(null,e.t.bind(e));e.changeLanguage(e.options.lng,n)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),u}},{key:"loadResources",value:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E,i=t,r="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return i();var o=[],c=function(e){e&&n.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)c(r);else{var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.forEach((function(e){return c(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return c(e)})),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(e,n,t){var i=y();return e||(e=this.languages),n||(n=this.options.ns),t||(t=E),this.services.backendConnector.reload(e,n,(function(e){i.resolve(),t(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&x.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,n){var t=this;this.isLanguageChangingTo=e;var i=y();this.emit("languageChanging",e);var r=function(e){var r="string"==typeof e?e:t.services.languageUtils.getBestMatchFromCodes(e);r&&(t.language||(t.language=r,t.languages=t.services.languageUtils.toResolveHierarchy(r)),t.translator.language||t.translator.changeLanguage(r),t.services.languageDetector&&t.services.languageDetector.cacheUserLanguage(r)),t.loadResources(r,(function(e){!function(e,r){r?(t.language=r,t.languages=t.services.languageUtils.toResolveHierarchy(r),t.translator.changeLanguage(r),t.isLanguageChangingTo=void 0,t.emit("languageChanged",r),t.logger.log("languageChanged",r)):t.isLanguageChangingTo=void 0,i.resolve((function(){return t.t.apply(t,arguments)})),n&&n(e,(function(){return t.t.apply(t,arguments)}))}(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,n){var t=this,r=function e(n,r){var c;if("object"!==i(r)){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];c=t.options.overloadTranslationOptionHandler([n,r].concat(l))}else c=o({},r);return c.lng=c.lng||e.lng,c.lngs=c.lngs||e.lngs,c.ns=c.ns||e.ns,t.t(n,c)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=n,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var c=function(e,t){var i=n.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===i||2===i};if(t.precheck){var a=t.precheck(this,c);if(void 0!==a)return a}return!!this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||!(!c(i,e)||r&&!c(o,e))}},{key:"loadNamespaces",value:function(e,n){var t=this,i=y();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){t.options.ns.indexOf(e)<0&&t.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(e,n){var t=y();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],r=e.filter((function(e){return i.indexOf(e)<0}));return r.length?(this.options.preload=i.concat(r),this.loadResources((function(e){t.resolve(),n&&n(e)})),t):(n&&n(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new n(e,t)}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E,r=o({},this.options,t,{isClone:!0}),c=new n(r),a=["store","services","language"];return a.forEach((function(n){c[n]=e[n]})),c.services=o({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new _(c.services,c.options),c.translator.on("*",(function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];c.emit.apply(c,[e].concat(t))})),c.init(r,i),c.translator.options=c.options,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}}]),n}(B),z=new H},160:function(e,n,t){e=t.nmd(e);var i,r,o,c="[object Map]",a="[object Promise]",l="[object Set]",s="[object WeakMap]",u="[object DataView]",d=/^\[object .+?Constructor\]$/,b="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g,g="object"==typeof self&&self&&self.Object===Object&&self,I=b||g||Function("return this")(),p=n&&!n.nodeType&&n,m=p&&e&&!e.nodeType&&e,B=m&&m.exports===p,y=Function.prototype,h=Object.prototype,G=I["__core-js_shared__"],Z=(i=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",X=y.toString,v=h.hasOwnProperty,f=h.toString,C=RegExp("^"+X.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=B?I.Buffer:void 0,V=h.propertyIsEnumerable,Q=F?F.isBuffer:void 0,W=(r=Object.keys,o=Object,function(e){return r(o(e))}),A=T(I,"DataView"),x=T(I,"Map"),U=T(I,"Promise"),_=T(I,"Set"),R=T(I,"WeakMap"),N=!V.call({valueOf:1},"valueOf"),Y=k(A),J=k(x),w=k(U),S=k(_),L=k(R);function T(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return function(e){if(!K(e)||function(e){return!!Z&&Z in e}(e))return!1;var n=j(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?C:d;return n.test(k(e))}(t)?t:void 0}var O=function(e){return f.call(e)};function k(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(A&&O(new A(new ArrayBuffer(1)))!=u||x&&O(new x)!=c||U&&O(U.resolve())!=a||_&&O(new _)!=l||R&&O(new R)!=s)&&(O=function(e){var n=f.call(e),t="[object Object]"==n?e.constructor:void 0,i=t?k(t):void 0;if(i)switch(i){case Y:return u;case J:return c;case w:return a;case S:return l;case L:return s}return n});var E=Array.isArray;function H(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!j(e)}var z=Q||function(){return!1};function j(e){var n=K(e)?f.call(e):"";return"[object Function]"==n||"[object GeneratorFunction]"==n}function K(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}e.exports=function(e){if(H(e)&&(E(e)||"string"==typeof e||"function"==typeof e.splice||z(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&H(e)}(e)&&v.call(e,"callee")&&(!V.call(e,"callee")||"[object Arguments]"==f.call(e))}(e)))return!e.length;var n=O(e);if(n==c||n==l)return!e.size;if(N||function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||h)}(e))return!W(e).length;for(var t in e)if(v.call(e,t))return!1;return!0}},302:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(934),n),r(t(875),n),r(t(209),n)},934:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getOsInfo=void 0;var i=t(405),r=t(875);n.getOsInfo=function(){var e,n;return(0,i.isTizen)()?{os:"Tizen",version:null!==(n=null===(e=(0,r.getTizenVersion)())||void 0===e?void 0:e.version)&&void 0!==n?n:""}:(0,i.isWebos)()?{os:"webOS",version:""}:{os:"browser",version:""}}},209:function(e,n){"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.trackedKeys=n.TizenRcKey=void 0,function(e){e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Enter="Enter",e.Back="Back",e.VolumeUp="VolumeUp",e.VolumeDown="VolumeDown",e.VolumeMute="VolumeMute",e.ChannelUp="ChannelUp",e.ChannelDown="ChannelDown",e.ChannelList="ChannelList",e.ColorF0Red="ColorF0Red",e.ColorF1Green="ColorF1Green",e.ColorF2Yellow="ColorF2Yellow",e.ColorF3Blue="ColorF3Blue",e.MediaPlayPause="MediaPlayPause",e.MediaRewind="MediaRewind",e.MediaFastForward="MediaFastForward",e.MediaPlay="MediaPlay",e.MediaPause="MediaPause",e.MediaStop="MediaStop",e.MediaRecord="MediaRecord",e.MediaTrackPrevious="MediaTrackPrevious",e.MediaTrackNext="MediaTrackNext",e.Num0="0",e.Num1="1",e.Num2="2",e.Num3="3",e.Num4="4",e.Num5="5",e.Num6="6",e.Num7="7",e.Num8="8",e.Num9="9",e.Minus="Minus",e.PreviousChannel="PreviousChannel",e.Menu="Menu",e.Tools="Tools",e.Info="Info",e.Source="Source",e.Exit="Exit",e.Caption="Caption",e["E-Manual"]="E-Manual",e["3D"]="3D",e.Extra="Extra",e.PictureSize="PictureSize",e.Soccer="Soccer",e.Teletext="Teletext",e.MTS="MTS",e.Search="Search",e.Guide="Guide"}(t||(t={})),n.TizenRcKey=t;var i=new Set(["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Enter","Back","MediaPlayPause","MediaRewind","MediaFastForward","MediaPlay","MediaPause","MediaStop","0","1","2","3","4","5","6","7","8","9"]);n.trackedKeys=i},875:function(e,n,t){"use strict";var i=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.initializeTizen=n.isTizenVersionGreaterThan=n.getTizenVersion=n.getTizenApi=n.getKeyCode=void 0;var o=t(405),c=t(209),a=new o.Logger("tizen"),l=function(){return"undefined"==typeof tizen?null:tizen};n.getTizenApi=l;var s=function(e,n){return void 0===n&&(n=0),parseInt(null!=e?e:n)},u=function(){if(!l())return null;var e=l().systeminfo.getCapability("http://tizen.org/feature/platform.version"),n=e.split("."),t=n[0],i=n[1];return{version:e,major:s(t),minor:s(i)}};n.getTizenVersion=u,n.isTizenVersionGreaterThan=function(e){var n=u();return Boolean(n&&n.major>e)};var d=new Map,b=function(e){return i(void 0,void 0,void 0,(function(){var n,t;return r(this,(function(i){switch(i.label){case 0:n=new Promise((function(n,t){var i=e.tvinputdevice.getSupportedKeys().map((function(e){return e.name})).filter((function(e){return c.trackedKeys.has(e)}));e.tvinputdevice.registerKeyBatch(i,n,t)})),i.label=1;case 1:return i.trys.push([1,3,,4]),a.info("Initializing RC keys..."),[4,n];case 2:return i.sent(),a.info("RC keys are ready."),[3,4];case 3:return t=i.sent(),a.error("Failed to initialize listening to RC keys. This may be caused by a missing privilege http://tizen.org/privilege/tv.inputdevice.",t.message),[3,4];case 4:return[2]}}))}))};n.getKeyCode=function(e){var n;return null!==(n=d.get(e))&&void 0!==n?n:null},n.initializeTizen=function(){return i(void 0,void 0,void 0,(function(){var e;return r(this,(function(n){switch(n.label){case 0:return(e=l())?(function(e){var n=e.tvinputdevice.getSupportedKeys();n.forEach((function(e){d.set(e.name,e.code)})),a.info("Keycode map has been initialized",n)}(e),[4,b(e)]):[2];case 1:return n.sent(),[2]}}))}))}},586:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(869),n)},869:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.firestoreJavascriptFilters=n.firestoreArrayFilters=n.firestoreObjectFilters=void 0;var i=t(146);n.firestoreObjectFilters={isTranscoded:{field:"transcodingStatus",operator:"==",value:i.VideoTranscodingStatus.DONE},isPublished:{field:"publishedStatus",operator:"==",value:i.VideoStatus.PUBLISHED}},n.firestoreArrayFilters={isTranscoded:Object.values(n.firestoreObjectFilters.isTranscoded),isPublished:Object.values(n.firestoreObjectFilters.isPublished)},n.firestoreJavascriptFilters={isTranscoded:function(e){return e===i.VideoTranscodingStatus.DONE},isPublished:function(e){return e===i.VideoStatus.PUBLISHED}}},945:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(554),n),r(t(961),n),r(t(480),n)},961:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useImageLoader=void 0;var i=t(156);n.useImageLoader=function(e,n){var t=(0,i.useState)(e),r=t[0],o=t[1],c=(0,i.useState)(!1),a=c[0],l=c[1];return(0,i.useEffect)((function(){if(n){var e=new Image;e.src=n,e.onload=function(){o(n),l(!0)}}}),[n]),{loadedImageSrc:r,imageIsLoaded:a}}},554:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useLoading=void 0;var i=t(156);n.useLoading=function(e){void 0===e&&(e=!1);var n=(0,i.useState)(e),t=n[0],r=n[1],o=(0,i.useRef)(t),c=function(e){r(e),o.current=e};return{loading:t,startLoading:function(){o.current||c(!0)},stopLoading:function(){o.current&&c(!1)}}}},480:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useOnChange=n.usePrevious=void 0;var i=t(156);function r(e){var n,t=(0,i.useState)([]),r=t[0],o=t[1];return(0,i.useEffect)((function(){o(r.concat(e).slice(-2))}),[e]),null!==(n=r[r.length-2])&&void 0!==n?n:null}n.usePrevious=r,n.useOnChange=function(e,n){var t=r(e);t!==e&&n(t,e)}},322:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&i(n,e,t);return r(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.LanguagePicker=void 0;var c=o(t(156)),a=t(877);n.LanguagePicker=function(){var e=(0,a.useLanguageOptions)(),n=e.language,t=e.languages,i=e.selectLanguage,r=(0,c.useCallback)((function(e){i(e.target.value)}),[i]);return c.default.createElement("select",{name:"tivio-language-select","data-e2e":"tivio-language-select",value:n,onChange:r},t.map((function(e){return c.default.createElement("option",{key:e,value:e},e)})))}},877:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.useLanguage=n.useLanguageOptions=n.useT=n.useI18n=void 0;var r=t(156),o=t(718),c=t(799),a=t(71);n.useI18n=function(){return(0,r.useContext)(c.I18nContext).i18n},n.useT=function(){var e=(0,n.useI18n)();return e?e.t.bind(e):function(e){return e}},n.useLanguageOptions=function(){var e=(0,r.useContext)(a.LanguageContext);return i(i({},e),{languages:o.languages})},n.useLanguage=function(){return(0,r.useContext)(a.LanguageContext).language}},799:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&i(n,e,t);return r(n,e),n},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.I18nContextProvider=n.I18nContext=void 0;var a=c(t(421)),l=o(t(156)),s=t(405),u=t(71),d=new s.Logger("language");n.I18nContext=(0,l.createContext)({i18n:null}),n.I18nContextProvider=function(e){var t=e.children,i=e.translations,r=(0,l.useState)({i18n:null}),o=r[0],c=r[1],s=(0,l.useContext)(u.LanguageContext).language;return(0,l.useLayoutEffect)((function(){d.info("initializing language",s),function(e,n){return new Promise((function(t,i){t(a.default.createInstance({lng:n,resources:e},(function(e){e&&i(e)})))}))}(i,s).then((function(e){c({i18n:e})}))}),[]),(0,l.useLayoutEffect)((function(){o.i18n&&(d.info("changing language",s),o.i18n.changeLanguage(s),c({i18n:o.i18n}))}),[s]),l.default.createElement(n.I18nContext.Provider,{value:o},t)}},250:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(877),n),r(t(799),n),r(t(71),n),r(t(164),n),r(t(322),n)},71:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&i(n,e,t);return r(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.LanguageContextProvider=n.LanguageContext=void 0;var c=t(718),a=o(t(156)),l=t(405),s=t(116),u=new l.Logger("language");n.LanguageContext=(0,a.createContext)({language:c.LangCode.EN,selectLanguage:function(){}}),n.LanguageContextProvider=function(e){var t=e.language,i=e.children,r=(0,a.useState)((0,s.normalizeLanguage)(t)),o=r[0],c=r[1];(0,a.useLayoutEffect)((function(){var e=(0,s.normalizeLanguage)(t);c(e),u.info("Setting language (passed as prop): "+e+" (before normalization: "+t+")")}),[t]);var l=(0,a.useCallback)((function(e){u.info("Setting language: "+e),c(e)}),[]);return a.default.createElement(n.LanguageContext.Provider,{value:{language:o,selectLanguage:l}},i)}},164:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},116:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.normalizeLanguage=void 0;var i=t(718),r=new(t(405).Logger)("i18n");n.normalizeLanguage=function(e){if(null==e)return i.LangCode.EN;var n=e.toLocaleLowerCase();return"cs"===n||"cz"===n||"cze"===n||"ces"===n?i.LangCode.CS:"sk"===n||"slk"===n||"slo"===n?i.LangCode.SK:("en"===n||"eng"===n||r.warn("Unrecognized language (input: "+e+"). Falling back to ENG"),i.LangCode.EN)}},368:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),n.LanguagePicker=n.useLanguageOptions=n.I18nContextProvider=n.LanguageContextProvider=n.useT=n.firestoreObjectFilters=n.firestoreJavascriptFilters=n.firestoreArrayFilters=n.PaginationInterface=n.PaginationOptions=n.Pagination=n.RefsPagination=void 0;var o=t(21),c=t(118);Object.defineProperty(n,"RefsPagination",{enumerable:!0,get:function(){return c.RefsPagination}}),Object.defineProperty(n,"Pagination",{enumerable:!0,get:function(){return c.Pagination}}),Object.defineProperty(n,"PaginationOptions",{enumerable:!0,get:function(){return c.PaginationOptions}}),Object.defineProperty(n,"PaginationInterface",{enumerable:!0,get:function(){return c.PaginationInterface}}),r(t(945),n),r(t(405),n);var a=t(586);Object.defineProperty(n,"firestoreArrayFilters",{enumerable:!0,get:function(){return a.firestoreArrayFilters}}),Object.defineProperty(n,"firestoreJavascriptFilters",{enumerable:!0,get:function(){return a.firestoreJavascriptFilters}}),Object.defineProperty(n,"firestoreObjectFilters",{enumerable:!0,get:function(){return a.firestoreObjectFilters}});var l=t(250);Object.defineProperty(n,"useT",{enumerable:!0,get:function(){return l.useT}}),Object.defineProperty(n,"LanguageContextProvider",{enumerable:!0,get:function(){return l.LanguageContextProvider}}),Object.defineProperty(n,"I18nContextProvider",{enumerable:!0,get:function(){return l.I18nContextProvider}}),Object.defineProperty(n,"useLanguageOptions",{enumerable:!0,get:function(){return l.useLanguageOptions}}),Object.defineProperty(n,"LanguagePicker",{enumerable:!0,get:function(){return l.LanguagePicker}}),r(t(302),n),(0,o.polyfill)()},507:function(e,n,t){"use strict";var i=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.Pagination=void 0;var o=t(259),c=(0,t(405).createLogger)("Pagination");n.Pagination=function(e,n,t){var a,l,s=this;this.query=e,this.creator=n,this.options=t,this.lastDocumentSnapshot=null,this.items=[],this.hasNextPage=!0,this.loading=!1,this.fetchMore=function(){s.loading?c.info("loading ..."):s.hasNextPage?(c.info("fetch more"),s.fetchData()):c.info("no more data")},this.fetchData=function(){return i(s,void 0,void 0,(function(){var e,n,t,i,o;return r(this,(function(r){switch(r.label){case 0:c.info("fetch data"),r.label=1;case 1:return r.trys.push([1,3,4,5]),this.startLoading(),[4,this.makeQuery()];case 2:return e=r.sent(),c.info("fetched "+e.size+" docs, going to create entities"),this.lastDocumentSnapshot=this.getLastSnapshotFromQuerySnapshot(e),n=this.getQuerySnapshotDocs(e),t=this.querySnapshotToEntities(n),i=this.items.concat(t),this.setItems(i),[3,5];case 3:return o=r.sent(),c.error(o),[3,5];case 4:return this.stopLoading(),[7];case 5:return[2]}}))}))},this.querySnapshotToEntities=function(e){return e.map((function(e){return s.creator(e.ref,e.data())}))},this.makeQuery=function(){return i(s,void 0,void 0,(function(){var e,n;return r(this,(function(t){return e=this.query,(null===(n=this.options)||void 0===n?void 0:n.noLimit)?(c.info("fetch all documents without pagination"),this.setHasNextPage(!1)):this.lastDocumentSnapshot?(c.info("making query with limit",this.extraLimit),e=e.limit(this.extraLimit).startAfter(this.lastDocumentSnapshot)):(c.info("making first query with limit",this.extraLimit),e=e.limit(this.extraLimit)),[2,e.get()]}))}))},this.getLastSnapshotFromQuerySnapshot=function(e){var n=e.size;if(s.setHasNextPage(n>s.limit),s.hasNextPage){var t=s.getQuerySnapshotDocs(e);return t[t.length-1]}return null},this.getQuerySnapshotDocs=function(e){var n=e.docs;return s.hasNextPage&&n.pop(),n},this.startLoading=function(){s.loading=!0},this.stopLoading=function(){s.loading=!1},this.addItemToEnd=function(e){s.hasNextPage?c.info("ignoring of adding an item to pagination locally because not all items are loaded"):(c.info("add item to end"),s.setItems(s.items.concat([e])))},this.addItemToStart=function(e){c.info("add item to start"),s.setItems([e].concat(s.items))},this.setItems=function(e){s.items=e},this.setHasNextPage=function(e){s.hasNextPage=e},(0,o.makeObservable)(this,{items:o.observable,loading:o.observable,hasNextPage:o.observable,setItems:o.action,setHasNextPage:o.action,startLoading:o.action,stopLoading:o.action}),this.limit=null!==(l=null===(a=this.options)||void 0===a?void 0:a.limit)&&void 0!==l?l:10,this.extraLimit=this.limit+1,this.fetchData()}},118:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(177),n),r(t(507),n)},177:function(e,n,t){"use strict";var i=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.RefsPagination=void 0;var o=t(259),c=t(405),a=(0,c.createLogger)("RefsPagination"),l=function(){function e(e,n,t,l,s){var u=this;if(void 0===t&&(t=!0),void 0===l&&(l=10),void 0===s&&(s=!0),this.refs=e,this.creator=n,this.initialized=t,this.limit=l,this.items=[],this.currentItems=[],this.currentPage=0,this.hasNextPage=!0,this.loading=!1,this.error=null,this.fetchMore=function(){return i(u,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return this.isLoading?[2]:(this.currentPage++,[4,this.fetchData()]);case 1:return e.sent(),[2]}}))}))},this.fetchData=function(){return i(u,void 0,void 0,(function(){var e,n,t,o,l,s,u=this;return r(this,(function(d){switch(d.label){case 0:if(this.isLoading||!this.hasNextPage)return[2];d.label=1;case 1:return d.trys.push([1,4,5,6]),a.info("fetchData"),e=this.currentPage*this.limit,n=e+this.limit,0!==this.items.slice(e,n).length?[3,3]:(t=this.refs.slice(e,n),n>=this.refs.length&&(this.hasNextPage=!1),this.startLoading(),[4,Promise.all(t.map((function(e){return i(u,void 0,void 0,(function(){var n,t;return r(this,(function(i){switch(i.label){case 0:return[4,e.get()];case 1:return n=i.sent(),(t=n.data())?[2,this.creator(e,t)]:[2,null]}}))}))})))]);case 2:return o=d.sent(),l=o.filter(c.notEmptyFilter),a.info("fetched "+l.length+" items of "+t.length+" refs"),this.endLoading(),this.setCurrentItems=l,this.setItems=this.items.concat(l),[3,3];case 3:return[3,6];case 4:return s=d.sent(),a.error(s),this.setError=s,[3,6];case 5:return this.endLoading(),[7];case 6:return[2]}}))}))},this.addItemToStart=function(e,n){u.refs=u.refs.concat([n]),u.getItems.unshift(e)},this.addItem=function(e,n){u.refs.length===u.items.length&&(u.setItems=u.items.concat([e])),u.refs=u.refs.concat([n])},this.getItem=function(e){return i(u,void 0,void 0,(function(){var n,t,i;return r(this,(function(r){switch(r.label){case 0:return(n=this.refs.find((function(n){return n.id===e})))?[4,n.get()]:[3,2];case 1:return t=r.sent(),(i=t.data())?[2,this.creator(t.ref,i)]:[3,3];case 2:throw new Error("ref-not-found");case 3:return[2]}}))}))},this.limit>1e3)throw new Error("Limit cannot be greater than 1000");s&&this.fetchData(),(0,o.makeObservable)(this,{items:o.observable,refs:o.observable,loading:o.observable,error:o.observable,hasNextPage:o.observable})}return e.prototype.startLoading=function(){this.setLoading=!0},e.prototype.endLoading=function(){this.setLoading=!1},Object.defineProperty(e.prototype,"getError",{get:function(){return this.error},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getCurrentItems",{get:function(){return this.currentItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getItems",{get:function(){return this.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getRefs",{get:function(){return this.refs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getHasNextPage",{get:function(){return this.hasNextPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getItemsCount",{get:function(){return this.refs.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setItems",{set:function(e){this.items=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setLoading",{set:function(e){this.loading=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setCurrentItems",{set:function(e){this.currentItems=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setIsInitialized",{set:function(e){this.initialized=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setError",{set:function(e){this.error=e},enumerable:!1,configurable:!0}),e}();n.RefsPagination=l},21:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.polyfill=void 0,n.polyfill=function(){"object"==typeof window&&"object"==typeof document&&window.addEventListener("load",(function(){var e=document.createElement("script");e.src="https://polyfill.io/v3/polyfill.min.js?features=String.prototype.normalize",e.id="tivio-polyfill-string-prototype-normalize",document.head.appendChild(e)}))}},704:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Analytics=void 0;var r=t(187),o=new(t(783).Logger)("analytics"),c=function(){function e(){this.eventNames=null,this.gaMeasurementId=null}return e.prototype.init=function(e,n){this.gaMeasurementId=e,this.eventNames=n,(0,r.install)(e)},e.prototype.trackAnalytic=function(e,n,t){if(this.isInitialized()){var i=this.eventNames[e];i&&(o.info("Tracking analytic "+e+" under "+i,n,t),this.trackEvent(i,n,t))}},e.prototype.isInitialized=function(){return null!=this.eventNames&&null!=this.gaMeasurementId},e.prototype.trackEvent=function(e,n,t){var o=i(i({},null!=n?n:{}),{send_to:this.gaMeasurementId});t?(0,r.gtag)("event",e,o,t):(0,r.gtag)("event",e,o)},e}();n.Analytics=c},122:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.replaceWithoutOverwritingValues=n.chunkArray=n.uniqueFilter=n.notEmptyFilter=void 0,n.notEmptyFilter=function(e){return!!e},n.uniqueFilter=function(e,n,t){return t.indexOf(e)===n},n.chunkArray=function(e,n){var t,i=e.length,r=[];for(t=0;t<i;t+=n){var o=e.slice(t,t+n);r.push(o)}return r},n.replaceWithoutOverwritingValues=function(e,n,t){var i=[];return n.forEach((function(n){var r=e.find((function(e){return t(n,e)}));i.push(null!=r?r:n)})),i}},741:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Cache=void 0;var t=function(){function e(e){var n,t;this.enabled=!0,this.map=new Map,this.max=null!==(n=null==e?void 0:e.max)&&void 0!==n?n:1e3,this.convertKey=null!==(t=null==e?void 0:e.convertKey)&&void 0!==t?t:function(e){return e}}return e.prototype.set=function(e,n){this.enabled&&(this.map.size>this.max&&this.map.clear(),this.map.set(this.convertKey(e),n))},e.prototype.get=function(e){var n;return null!==(n=this.map.get(this.convertKey(e)))&&void 0!==n?n:null},e.prototype.has=function(e){return!!this.enabled&&this.map.has(this.convertKey(e))},e.prototype.getSize=function(){return this.map.size},e.prototype.disable=function(){this.enabled=!1},e}();n.Cache=t},530:function(e,n){"use strict";var t=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.onceAsync=n.once=void 0,n.once=function(e){var n=!1,t=null;return function(){return n||(t=e(),n=!0),t}},n.onceAsync=function(e){var n=!1,r=null;return function(){return t(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return n?[2,r]:(n=!0,[4,e()]);case 1:return[2,r=t.sent()]}}))}))}}},742:function(e,n){"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.stringComparator=n.booleanComparator=n.numberComparator=n.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(t=n.SortDirection||(n.SortDirection={})),n.numberComparator=function(e,n,i){return void 0===i&&(i=t.ASC),i===t.ASC?e-n:n-e},n.booleanComparator=function(e,n){return e&&n?0:e&&!n?-1:!e&&n?1:0},n.stringComparator=function(e,n){return e<n?-1:1}},569:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(742),n),r(t(900),n),r(t(482),n)},900:function(e,n,t){"use strict";var i,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.strategiesComparator=n.expirationComparator=n.placementTypeComparator=n.PLACEMENT_TYPE_PRIORITIES=void 0;var o=t(742),c=r(t(160)),a=t(146);n.PLACEMENT_TYPE_PRIORITIES=((i={})[a.MonetizationPlacementType.TV_CHANNEL]=4,i[a.MonetizationPlacementType.VIDEO]=3,i[a.MonetizationPlacementType.CONDITION]=2,i[a.MonetizationPlacementType.SECTION]=1,i[a.MonetizationPlacementType.CHANNEL]=0,i),n.placementTypeComparator=function(e,t,i){return void 0===i&&(i=o.SortDirection.DESC),(0,o.numberComparator)(n.PLACEMENT_TYPE_PRIORITIES[e.placementType],n.PLACEMENT_TYPE_PRIORITIES[t.placementType],i)},n.expirationComparator=function(e,n,t){var i,r;return void 0===t&&(t=o.SortDirection.ASC),(0,o.numberComparator)(null!==(i=e.expirationDaysSincePublished)&&void 0!==i?i:Number.MAX_VALUE,null!==(r=n.expirationDaysSincePublished)&&void 0!==r?r:Number.MAX_VALUE,t)},n.strategiesComparator=function(e,n){return(0,o.numberComparator)((0,c.default)(e.strategies)?0:1,(0,c.default)(n.strategies)?0:1,o.SortDirection.ASC)}},482:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.globalsFirstRestAlphabeticallyComparator=n.alphabeticComparator=n.sortAlphabetically=void 0;var i=t(742);n.sortAlphabetically=function(e){return e.sort((function(e,n){return(0,i.stringComparator)(e.name,n.name)}))},n.alphabeticComparator=function(e,n){return(0,i.stringComparator)(e.name,n.name)},n.globalsFirstRestAlphabeticallyComparator=function(e,n){var t,r;return(0,i.booleanComparator)(null!==(t=e.isGlobal)&&void 0!==t&&t,null!==(r=n.isGlobal)&&void 0!==r&&r)||(0,i.stringComparator)(e.name,n.name)}},484:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.overrideDeviceType=n.isWebsite=n.isWebos=n.isTizen=n.isSmartTv=n.isSafari=n.isReactNative=n.isMobileBrowser=n.isIos=n.isIndexedDbSupported=n.isCookiesEnabled=n.isBrowserCompatible=n.isArris=void 0;var i=t(631),r="undefined",o=function(){return typeof window!==r&&typeof document!==r};n.isBrowserCompatible=o,n.isMobileBrowser=function(){var e,n=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(n=!0),n},n.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},n.isCookiesEnabled=function(){if(!o()||"string"!=typeof document.cookie)return!1;document.cookie="tiviocookietest=1";var e=-1!=document.cookie.indexOf("tiviocookietest=");return document.cookie="tiviocookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e};var c=function(){return o()&&typeof window.tizen!==r};n.isTizen=c;var a=function(){return o()&&typeof window.webOS!==r};n.isWebos=a;var l=function(){return"arris"===u.type||o()&&typeof window.toi!==r};n.isArris=l;var s=function(){return c()||a()||l()};n.isSmartTv=s,n.isWebsite=function(){return!!o()&&(window.tivioDeviceOverride?"web"===window.tivioDeviceOverride:!s())},n.isIndexedDbSupported=function(){return window&&null!=window.indexedDB&&null!=window.IDBCursor&&null!=window.IDBCursorWithValue&&null!=window.IDBDatabase&&null!=window.IDBFactory&&null!=window.IDBIndex&&null!=window.IDBKeyRange&&null!=window.IDBObjectStore&&null!=window.IDBOpenDBRequest&&null!=window.IDBRequest&&null!=window.IDBTransaction&&null!=window.IDBVersionChangeEvent},n.isSafari=function(){var e=(0,i.detect)();return"safari"==(null==e?void 0:e.name)},n.isIos=function(){var e=(0,i.detect)();return"iOS"==(null==e?void 0:e.os)};var u={type:null};n.overrideDeviceType=function(e){u.type=e}},174:function(e,n){"use strict";var t=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.injectScriptToHead=n.injectScriptsToHead=void 0;var r=function(e){return new Promise((function(n,t){var i=document.createElement("script");i.type="text/javascript",i.src=e,i.onload=function(){return n()},i.onabort=function(){return t()},document.getElementsByTagName("head")[0].appendChild(i)}))};n.injectScriptToHead=r,n.injectScriptsToHead=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t(void 0,void 0,Promise,(function(){return i(this,(function(n){return[2,Promise.all(e.map(r))]}))}))}},447:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.executeAsNewEventLoopJob=void 0,n.executeAsNewEventLoopJob=function(e){setTimeout(e)}},479:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.formatCurrency=n.formatEpisode=n.toTwoPlaces=n.msToMMSS=n.msToMinutesString=void 0;var t=function(e){return e<10?"0"+e:""+e};n.toTwoPlaces=t,n.formatEpisode=function(e,n){return"S"+t(e)+"E"+t(n)},n.formatCurrency=function(e){switch(e){case"CZK":return"Kč";case"EUR":return"€";case"USD":return"$"}};var i=function(e){var n=Math.floor(e/1e3);return{minutes:Math.floor(n/60),seconds:n%60}};n.msToMinutesString=function(e){return i(e).minutes+" min"},n.msToMMSS=function(e){var n=i(e),r=n.minutes,o=n.seconds;return r+":"+t(o)}},513:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.preloadImages=n.preloadImage=void 0,n.preloadImage=function(e){return new Promise((function(n,t){var i=new Image;i.src=e,i.onload=n,i.onerror=function(){t("image failed to load (uri:"+e+")")}}))},n.preloadImages=function(e){return Promise.all(e.map(n.preloadImage))}},405:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(122),n),r(t(704),n),r(t(783),n),r(t(40),n),r(t(741),n),r(t(569),n),r(t(513),n),r(t(479),n),r(t(647),n),r(t(447),n),r(t(530),n),r(t(484),n),r(t(893),n),r(t(174),n)},783:function(e,n,t){"use strict";var i=this&&this.__spreadArray||function(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.Logger=n.createLogger=void 0;var r=t(484),o=function(){function e(e){this.name=e,this.isEnabled=!0,this.legacy=!1}return e.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.log.apply(this,i(["error"],e,!1))},e.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.log.apply(this,i(["info"],e,!1))},e.prototype.off=function(){this.isEnabled=!1},e.prototype.on=function(){this.isEnabled=!0},e.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.log.apply(this,i(["warn"],e,!1))},e.prototype.forceInfo=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];console.info.apply(console,i([e.prefix+":"+this.name],n,!1))},e.prototype.log=function(n){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];e.enabled&&this.isEnabled&&((0,r.isArris)()?this.logArris(n,t):console[n].apply(console,i([e.prefix+":"+this.name],t,!1)))},e.prototype.logArris=function(n,t){var i=t;this.legacy&&(i=i.map((function(e){return JSON.stringify(e)})));var r=i.filter((function(e){return"function"==typeof e.toString})).map((function(e){return e.toString()})).join(", ");console[n](e.prefix+":"+this.name+" "+r)},e.enabled=!0,e.prefix="tivio",e}();n.Logger=o,n.createLogger=function(e){return new o(e)}},893:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.keepNonNegative=n.getPercentOf=n.isClose=n.toPercent=n.safeParseInt=n.round=n.random=n.intervalContainsPoint=n.intervalContains=n.clampPercent=n.clamp=void 0,n.random=function(e){return Math.round(Math.random()*e)},n.safeParseInt=function(e,n){return void 0===n&&(n=0),parseInt(null!=e?e:n)};var t=function(e,n,t){return Math.min(Math.max(e,n),t)};n.clamp=t;var i=function(e){return t(e,0,100)};n.clampPercent=i,n.toPercent=function(e){return i(Math.round(100*e))},n.round=function(e,n){var t=Math.pow(10,n);return Math.round(e*t)/t},n.intervalContains=function(e,n){return e.from<n.from&&n.to<e.to},n.intervalContainsPoint=function(e,n){return e.from<=n&&n<=e.to},n.isClose=function(e,n,t){return Math.abs(e-n)<=t},n.getPercentOf=function(e,n){var t=Math.round(e/n*100);return isFinite(t)?i(t):null},n.keepNonNegative=function(e){return Math.max(0,e)}},647:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.toSnakeCase=n.toKebabCase=n.removeAccents=n.normalizeText=n.capitalizeText=void 0;var t=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")};n.removeAccents=t;var i=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"_").replace("-","_")};n.toSnakeCase=i;var r=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"-").replace("_","-")};n.toKebabCase=r,n.normalizeText=function(e,n){void 0===n&&(n="snake-case");var o=t(e);return"snake-case"===n?i(o):r(o)},n.capitalizeText=function(e){return(null==e?void 0:e.length)?e.charAt(0).toUpperCase()+e.substr(1).toLowerCase():""}},40:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&i(n,e,t);return r(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.getRelativeTime=n.getDuration=n.getMinsSecsHours=n.getMinsSecs=n.twoPlaces=n.getHours=n.getMins=n.getSecs=n.parseCzechDate=n.isInThePast=n.addSeconds=n.addMs=n.addMinutes=n.addHours=n.addDays=void 0;var c=o(t(96));function a(e,n){return l(e,60*n)}function l(e,n){return u(e,60*n)}function s(e,n){return new Date(e.getTime()+n)}function u(e,n){return s(e,1e3*n)}function d(e,n){var t=null!=e?Math.floor(e/1e3):0;return n?t%60:t}function b(e,n){var t=null!=e?Math.floor(d(e)/60):0;return n?t%60:t}function g(e,n){var t=null!=e?Math.floor(b(e)/60):0;return n?t%24:t}function I(e){return e>=10?e:"0"+e}n.addDays=function(e,n){return a(e,24*n)},n.addHours=a,n.addMinutes=l,n.addMs=s,n.addSeconds=u,n.isInThePast=function(e){return e<new Date},n.parseCzechDate=function(e){var n=c.parse("dd.MM.yyyy hh:mm",e),t=1e3*n.getSeconds()+n.getMilliseconds();return new Date(n.getTime()-t)},n.getSecs=d,n.getMins=b,n.getHours=g,n.twoPlaces=I,n.getMinsSecs=function(e){if(e<0)return{mins:0,secs:0,text:"",textWordy:""};var n=b(e),t=d(e,!0),i="";return t&&(i=t+" s"),n&&(i=n+" min"+(i.length>0?" "+i:"")),{mins:n,secs:t,text:n+":"+I(t),textWordy:i}},n.getMinsSecsHours=function(e){var n=g(e),t=b(e,!0),i=d(e,!0),r=t+":"+I(i);return n>0&&(4===r.length&&(r="0"+r),r=n+":"+r),{hours:n,mins:t,secs:i,text:r}},n.getDuration=function(e){return null==e||e<0?null:Math.round(e/60)+" MIN"},n.getRelativeTime=function(e){if(null==e)return"";var n=((new Date).getTime()-e.getTime())/36e5,t=Math.floor(n);if(t<1)return"";if(t<24)return t+" HOURS AGO";var i=n/24,r=Math.floor(i);if(r<7)return r+" DAYS AGO";var o=i/7,c=Math.floor(o);if(c<5)return c+" WEEKS AGO";var a=i/30,l=Math.floor(a);if(l<12)return l+" MONTHS AGO";var s=i/365;return Math.ceil(s)+" YEARS AGO"}},259:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__259__},156:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__156__}},__webpack_module_cache__={};function __nested_webpack_require_767861__(e){var n=__webpack_module_cache__[e];if(void 0!==n)return n.exports;var t=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__nested_webpack_require_767861__),t.loaded=!0,t.exports}__nested_webpack_require_767861__.d=function(e,n){for(var t in n)__nested_webpack_require_767861__.o(n,t)&&!__nested_webpack_require_767861__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},__nested_webpack_require_767861__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_767861__.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},__nested_webpack_require_767861__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__nested_webpack_require_767861__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __webpack_exports__=__nested_webpack_require_767861__(368);return __webpack_exports__}()},module.exports=n(__webpack_require__(259),__webpack_require__(8156))},8741:function(e){e.exports=function(){"use strict";var e={723:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(902),n)},902:function(e,n){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.VAST_PROVIDERS=n.VastProvider=void 0,function(e){e.ETARGET_PREBID="etarget-prebid",e.MALL_TV_PREBID="malltv-prebid",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.MALL_TV="malltv",e.FALLBACK_MP4="fallback",e.FALLBACK_HLS="fallback-hls",e.JOJ="joj",e.PRIMA="prima",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev"}(t=n.VastProvider||(n.VastProvider={})),n.VAST_PROVIDERS=[{id:t.ETARGET_PREBID,name:"Etarget Prebid"},{id:t.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:t.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:t.MALL_TV,name:"MALL.TV"},{id:t.JOJ,name:"JOJ"},{id:t.PRIMA,name:"Prima"},{id:t.GARAZ_TV,name:"Garaz TV"},{id:t.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:t.FALLBACK_MP4,name:"Fallback (MP4)",development:!0},{id:t.FALLBACK_HLS,name:"Fallback (HLS)",development:!0}]},920:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(375),n),r(t(895),n),r(t(216),n),r(t(723),n)},216:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},375:function(e,n){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.ALGOLIA_INDEX_NAME=void 0,(t=n.ALGOLIA_INDEX_NAME||(n.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",t.VIDEOSDESC="videos_created_desc",t.TAGS="tags",t.TV_CHANNELS="tvChannels",t.USERS="users"},489:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},690:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.PLATFORM=n.CUSTOMER_BUILD=void 0,function(e){e.OKTAGON="OKTAGON",e.JOJ="JOJ",e.MALL="MALL",e.GARAZ="GARAZ",e.U_KULATEHO_STOLU="U_KULATEHO_STOLU",e.INVESTOREES="INVESTOREES"}(t||(t={})),n.CUSTOMER_BUILD=t,function(e){e.MOBILE="MOBILE",e.WEB="WEB",e.TV="TV"}(i||(i={})),n.PLATFORM=i},423:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},352:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(489),n),r(t(690),n),r(t(423),n),r(t(757),n)},757:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},255:function(e,n){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.DEFAULT_ORDER_BY=n.CURRENCIES=n.languages=n.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.PL="pl",e.SK="sk",e.SP="sp"}(t=n.LangCode||(n.LangCode={})),n.languages=Object.values(t),n.CURRENCIES=["CZK","EUR","USD"],n.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}]},396:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},202:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},129:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},786:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(363),n),r(t(635),n),r(t(202),n),r(t(910),n),r(t(906),n),r(t(948),n),r(t(535),n),r(t(161),n),r(t(656),n),r(t(614),n),r(t(396),n),r(t(738),n),r(t(129),n),r(t(959),n),r(t(605),n),r(t(190),n)},959:function(e,n){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.MONETIZATION_FREQUENCY=void 0,(t=n.MONETIZATION_FREQUENCY||(n.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",t.DAILY="DAILY",t.WEEKLY="WEEKLY",t.MONTHLY="MONTHLY",t.ANNUALLY="ANNUALLY"},910:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},738:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},535:function(e,n){var t,i,r;Object.defineProperty(n,"__esModule",{value:!0}),n.ROW_ITEM_TYPES=n.RowItemComponent=n.RowComponent=void 0,(r=n.RowComponent||(n.RowComponent={})).ROW="ROW",r.BANNER="BANNER",(i=n.RowItemComponent||(n.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",i.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",i.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(t=n.ROW_ITEM_TYPES||(n.ROW_ITEM_TYPES={})).VIDEO="VIDEO",t.TAG="TAG",t.TV_CHANNEL="TV_CHANNEL"},161:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},605:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},190:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},614:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},656:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},906:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},363:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.PurchaseStatus=n.UserType=void 0,(i=n.UserType||(n.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",i.TIVIO_USER="TIVIO_USER",(t=n.PurchaseStatus||(n.PurchaseStatus={})).NEW="NEW",t.PAID="PAID",t.CANCELLED="CANCELLED",t.ERROR="ERROR"},948:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.VideoType=n.VideoContentType=void 0,(i=n.VideoContentType||(n.VideoContentType={})).VIDEO="VIDEO",i.FILM="FILM",i.SERIES="SERIES",(t=n.VideoType||(n.VideoType={})).PLAYLIST="PLAYLIST",t.VIDEO="VIDEO",t.TV_PROGRAM="TV_PROGRAM"},635:function(e,n){Object.defineProperty(n,"__esModule",{value:!0})},895:function(e,n,t){var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(786),n),r(t(352),n),r(t(255),n)}},n={};return function t(i){var r=n[i];if(void 0!==r)return r.exports;var o=n[i]={exports:{}};return e[i].call(o.exports,o,o.exports,t),o.exports}(920)}()},8879:function(e){e.exports=function(){"use strict";var e=6e4,n=36e5,t="millisecond",i="second",r="minute",o="hour",c="day",a="week",l="month",s="quarter",u="year",d="date",b="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(e,n,t){var i=String(e);return!i||i.length>=n?e:""+Array(n+1-i.length).join(t)+e},B={s:m,z:function(e){var n=-e.utcOffset(),t=Math.abs(n),i=Math.floor(t/60),r=t%60;return(n<=0?"+":"-")+m(i,2,"0")+":"+m(r,2,"0")},m:function e(n,t){if(n.date()<t.date())return-e(t,n);var i=12*(t.year()-n.year())+(t.month()-n.month()),r=n.clone().add(i,l),o=t-r<0,c=n.clone().add(i+(o?-1:1),l);return+(-(i+(t-r)/(o?r-c:c-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:a,d:c,D:d,h:o,m:r,s:i,ms:t,Q:s}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",h={};h[y]=p;var G=function(e){return e instanceof f},Z=function e(n,t,i){var r;if(!n)return y;if("string"==typeof n){var o=n.toLowerCase();h[o]&&(r=o),t&&(h[o]=t,r=o);var c=n.split("-");if(!r&&c.length>1)return e(c[0])}else{var a=n.name;h[a]=n,r=a}return!i&&r&&(y=r),r||!i&&y},X=function(e,n){if(G(e))return e.clone();var t="object"==typeof n?n:{};return t.date=e,t.args=arguments,new f(t)},v=B;v.l=Z,v.i=G,v.w=function(e,n){return X(e,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var f=function(){function p(e){this.$L=Z(e.locale,null,!0),this.parse(e)}var m=p.prototype;return m.parse=function(e){this.$d=function(e){var n=e.date,t=e.utc;if(null===n)return new Date(NaN);if(v.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var i=n.match(g);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return t?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(n)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return v},m.isValid=function(){return!(this.$d.toString()===b)},m.isSame=function(e,n){var t=X(e);return this.startOf(n)<=t&&t<=this.endOf(n)},m.isAfter=function(e,n){return X(e)<this.startOf(n)},m.isBefore=function(e,n){return this.endOf(n)<X(e)},m.$g=function(e,n,t){return v.u(e)?this[n]:this.set(t,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,n){var t=this,s=!!v.u(n)||n,b=v.p(e),g=function(e,n){var i=v.w(t.$u?Date.UTC(t.$y,n,e):new Date(t.$y,n,e),t);return s?i:i.endOf(c)},I=function(e,n){return v.w(t.toDate()[e].apply(t.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(n)),t)},p=this.$W,m=this.$M,B=this.$D,y="set"+(this.$u?"UTC":"");switch(b){case u:return s?g(1,0):g(31,11);case l:return s?g(1,m):g(0,m+1);case a:var h=this.$locale().weekStart||0,G=(p<h?p+7:p)-h;return g(s?B-G:B+(6-G),m);case c:case d:return I(y+"Hours",0);case o:return I(y+"Minutes",1);case r:return I(y+"Seconds",2);case i:return I(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,n){var a,s=v.p(e),b="set"+(this.$u?"UTC":""),g=(a={},a[c]=b+"Date",a[d]=b+"Date",a[l]=b+"Month",a[u]=b+"FullYear",a[o]=b+"Hours",a[r]=b+"Minutes",a[i]=b+"Seconds",a[t]=b+"Milliseconds",a)[s],I=s===c?this.$D+(n-this.$W):n;if(s===l||s===u){var p=this.clone().set(d,1);p.$d[g](I),p.init(),this.$d=p.set(d,Math.min(this.$D,p.daysInMonth())).$d}else g&&this.$d[g](I);return this.init(),this},m.set=function(e,n){return this.clone().$set(e,n)},m.get=function(e){return this[v.p(e)]()},m.add=function(t,s){var d,b=this;t=Number(t);var g=v.p(s),I=function(e){var n=X(b);return v.w(n.date(n.date()+Math.round(e*t)),b)};if(g===l)return this.set(l,this.$M+t);if(g===u)return this.set(u,this.$y+t);if(g===c)return I(1);if(g===a)return I(7);var p=(d={},d[r]=e,d[o]=n,d[i]=1e3,d)[g]||1,m=this.$d.getTime()+t*p;return v.w(m,this)},m.subtract=function(e,n){return this.add(-1*e,n)},m.format=function(e){var n=this,t=this.$locale();if(!this.isValid())return t.invalidDate||b;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=v.z(this),o=this.$H,c=this.$m,a=this.$M,l=t.weekdays,s=t.months,u=function(e,t,r,o){return e&&(e[t]||e(n,i))||r[t].substr(0,o)},d=function(e){return v.s(o%12||12,e,"0")},g=t.meridiem||function(e,n,t){var i=e<12?"AM":"PM";return t?i.toLowerCase():i},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:v.s(a+1,2,"0"),MMM:u(t.monthsShort,a,s,3),MMMM:u(s,a),D:this.$D,DD:v.s(this.$D,2,"0"),d:String(this.$W),dd:u(t.weekdaysMin,this.$W,l,2),ddd:u(t.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:v.s(o,2,"0"),h:d(1),hh:d(2),a:g(o,c,!0),A:g(o,c,!1),m:String(c),mm:v.s(c,2,"0"),s:String(this.$s),ss:v.s(this.$s,2,"0"),SSS:v.s(this.$ms,3,"0"),Z:r};return i.replace(I,(function(e,n){return n||p[e]||r.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(t,d,b){var g,I=v.p(d),p=X(t),m=(p.utcOffset()-this.utcOffset())*e,B=this-p,y=v.m(this,p);return y=(g={},g[u]=y/12,g[l]=y,g[s]=y/3,g[a]=(B-m)/6048e5,g[c]=(B-m)/864e5,g[o]=B/n,g[r]=B/e,g[i]=B/1e3,g)[I]||B,b?y:v.a(y)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return h[this.$L]},m.locale=function(e,n){if(!e)return this.$L;var t=this.clone(),i=Z(e,n,!0);return i&&(t.$L=i),t},m.clone=function(){return v.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},p}(),C=f.prototype;return X.prototype=C,[["$ms",t],["$s",i],["$m",r],["$H",o],["$W",c],["$M",l],["$y",u],["$D",d]].forEach((function(e){C[e[1]]=function(n){return this.$g(n,e[0],e[1])}})),X.extend=function(e,n){return e.$i||(e(n,f,X),e.$i=!0),X},X.locale=Z,X.isDayjs=G,X.unix=function(e){return X(1e3*e)},X.en=h[y],X.Ls=h,X.p={},X}()},6916:function(e,n,t){e.exports=function(){"use strict";var e=t(1350),n=Function.bind.call(Function.call,Array.prototype.reduce),i=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat);return Object.values||(Object.values=function(t){return n(e(t),(function(e,n){return r(e,"string"==typeof n&&i(t,n)?[t[n]]:[])}),[])}),Object.entries||(Object.entries=function(t){return n(e(t),(function(e,n){return r(e,"string"==typeof n&&i(t,n)?[[n,t[n]]]:[])}),[])}),Object}()},1350:function(e){"object"==typeof Reflect&&"function"==typeof Reflect.ownKeys?e.exports=Reflect.ownKeys:"function"==typeof Object.getOwnPropertySymbols?e.exports=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:e.exports=Object.getOwnPropertyNames},3996:function(e,n,t){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ContextProvider=void 0;var r=i(t(8156)),o=t(7400);n.ContextProvider=function(e){var n=e.bundleState,t=e.children,i=n.internal;return(null==i?void 0:i.providers)?r.default.createElement(i.providers.UserContextProvider,null,r.default.createElement(i.providers.OrganizationSubscriptionsContextProvider,null,r.default.createElement(i.providers.PurchasesWithVideosContextProvider,null,r.default.createElement(o.ScreensContextProvider,null,r.default.createElement(o.RowItemsContextProvider,null,t))))):r.default.createElement(r.default.Fragment,null,t)}},8074:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),o=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return o(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.withPlayerContext=n.PlayerProvider=n.PlayerContext=void 0;var a=c(t(8156)),l=t(7968);n.PlayerContext=a.default.createContext(void 0),n.PlayerProvider=function(e){var t=e.children,i=e.playerWrapperId,r=s(void 0===i?"default":i),o=u(),c=a.default.createElement(n.PlayerContext.Provider,{value:r},t);return o&&(c=a.default.createElement(o.Provider,{value:{player:r}},c)),c};var s=function(e){var n,t=(0,a.useState)(null!==(n=null===l.tivioBundle||void 0===l.tivioBundle?void 0:l.tivioBundle.getters.getPlayerWrapper({playerWrapperId:e}))&&void 0!==n?n:null),i=t[0],r=t[1];return(0,a.useEffect)((function(){l.tivioBundle||l.bundlePromise.then((function(n){var t=n.getters.getPlayerWrapper({playerWrapperId:e});r(t)})).catch((function(){}))}),[e]),i},u=function(){var e=(0,a.useState)(null),n=e[0],t=e[1];return(0,a.useEffect)((function(){l.bundlePromise.then((function(e){var n,i=null===(n=e.components)||void 0===n?void 0:n.PlayerDataContext;t(i)})).catch((function(){}))}),[]),n};n.withPlayerContext=function(e){return function(t){return function(r){return a.default.createElement(n.PlayerProvider,{playerWrapperId:e},a.default.createElement(t,i({},r)))}}}},8185:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&i(n,e,t);return r(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.TivioContext=n.TivioProvider=void 0;var c=o(t(8156)),a=t(952),l=t(6111),s=t(6435),u=t(3996),d=(0,l.createUseRemoteBundle)(),b=c.default.createContext(null);n.TivioContext=b,n.TivioProvider=function(e){var n,t=e.children,i=e.conf,r=(0,c.useMemo)((function(){return(0,a.createInternalConf)(i)}),[]),o=d(r);if((0,c.useEffect)((function(){!1===(null==r?void 0:r.enable)||!1===(null==r?void 0:r.enableSentry)?(0,s.disableSentry)():(0,s.initSentry)()}),[]),(null==i?void 0:i.runFeatureSupportCheck)&&"ready"===o.state&&(null===(n=o.components)||void 0===n?void 0:n.FeatureSupportCheck))return c.default.createElement(o.components.FeatureSupportCheck,null);var l="ready"===(null==o?void 0:o.state)&&o.components?c.default.createElement(o.components.Provider,{language:r.language,disableUnmounting:r.disableUnmounting},t):t;return c.default.createElement(u.ContextProvider,{bundleState:o},c.default.createElement(b.Provider,{value:o},l))}},5111:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&i(n,e,t);return r(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.TivioWidget=void 0;var c=o(t(8156)),a=t(1012),l=t(3366);n.TivioWidget=c.default.forwardRef((function(e,n){var t=e.id,i=e.onBlur,r=e.onEnabled;if("string"!=typeof t||!t.length)return c.default.createElement(l.TivioWidgetError,{error:"TivioWidget must have a mandatory property 'id'."});var o=(0,a.useTivioData)(),s=o.state,u=o.error,d=o.components,b=o.config,g=b.ErrorComponent,I=b.LoaderComponent;switch((0,c.useEffect)((function(){"error"===s&&(null==r||r(!1))}),[s]),s){case"error":return c.default.createElement(g,{error:u});case"loading":return c.default.createElement(I,null);case"ready":return d?c.default.createElement(d.Widget,{id:t,ref:n,onEnabled:r,onBlur:i}):null}}))},3366:function(e,n,t){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.TivioWidgetError=void 0;var r=i(t(8156));n.TivioWidgetError=function(e){var n=e.error;return r.default.createElement("div",{style:{backgroundColor:"#d84f92",color:"#fff",padding:"1rem"}},n)}},8491:function(e,n,t){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.TivioWidgetLoader=void 0;var r=i(t(8156));n.TivioWidgetLoader=function(){return r.default.createElement("div",null,"loading...")}},467:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&i(n,e,t);return r(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.TvTivioProvider=void 0;var c=o(t(8156)),a=t(952),l=t(6111),s=t(6435),u=t(3996),d=t(8185),b=(0,l.createUseRemoteBundle)();n.TvTivioProvider=function(e){var n,t=e.children,i=e.conf,r=(0,a.createInternalConf)(null!=i?i:null),o=b(r);return(0,c.useEffect)((function(){!1===(null==r?void 0:r.enable)||!1===(null==r?void 0:r.enableSentry)?(0,s.disableSentry)():(0,s.initSentry)()}),[]),(null==i?void 0:i.runFeatureSupportCheck)&&"ready"===o.state&&(null===(n=o.components)||void 0===n?void 0:n.FeatureSupportCheck)?c.default.createElement(o.components.FeatureSupportCheck,null):c.default.createElement(u.ContextProvider,{bundleState:o},c.default.createElement(d.TivioContext.Provider,{value:o},t))}},9357:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),o=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return o(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.ChannelsContextProvider=n.ChannelsContext=void 0;var a=c(t(8156)),l=(0,a.createContext)({data:{},setData:function(){return null}});n.ChannelsContext=l,n.ChannelsContextProvider=function(e){var n=(0,a.useState)({}),t=n[0],r=n[1],o=(0,a.useRef)(t);return a.default.createElement(l.Provider,{value:{data:t,setData:function(e,n){var t,c=i(i({},o.current),((t={})[e]=n,t));o.current=c,r(c)}}},e.children)}},5941:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),o=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return o(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.RowItemsContextProvider=n.RowItemsContext=void 0;var a=c(t(8156)),l=(0,a.createContext)(null);n.RowItemsContext=l,n.RowItemsContextProvider=function(e){var n=(0,a.useState)({}),t=n[0],r=n[1],o=(0,a.useCallback)((function(e,n){r((function(t){var r;return i(i({},t),((r={})[e]=n,r))}))}),[t]);return a.default.createElement(l.Provider,{value:{data:t,setData:o}},e.children)}},7285:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),o=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return o(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.ScreensContextProvider=n.ScreensContext=void 0;var a=c(t(8156)),l=(0,a.createContext)(null);n.ScreensContext=l,n.ScreensContextProvider=function(e){var n=(0,a.useState)({}),t=n[0],r=n[1],o=(0,a.useCallback)((function(e,n){var o,c=i(i({},t),((o={})[e]=n,o));r(c)}),[t]);return a.default.createElement(l.Provider,{value:{data:t,setData:o}},e.children)}},4116:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),o=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return o(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.SectionsContextProvider=n.SectionsContext=void 0;var a=c(t(8156)),l=(0,a.createContext)({data:{},setData:function(){return null}});n.SectionsContext=l,n.SectionsContextProvider=function(e){var n=(0,a.useState)({}),t=n[0],r=n[1],o=(0,a.useRef)(t);return a.default.createElement(l.Provider,{value:{data:t,setData:function(e,n){var t,c=i(i({},o.current),((t={})[e]=n,t));o.current=c,r(c)}}},e.children)}},5905:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),o=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return o(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.VideosContextProvider=n.VideosContext=void 0;var a=c(t(8156)),l=(0,a.createContext)({data:{},setData:function(){return null}});n.VideosContext=l,n.VideosContextProvider=function(e){var n=(0,a.useState)({}),t=n[0],r=n[1],o=(0,a.useRef)(t);return a.default.createElement(l.Provider,{value:{data:t,setData:function(e,n){var t,c=i(i({},o.current),((t={})[e]=n,t));o.current=c,r(c)}}},e.children)}},7400:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(9357),n),r(t(7285),n),r(t(4116),n),r(t(5905),n),r(t(5941),n)},4439:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ChannelsContext=n.SectionsContext=n.VideosContext=n.useChannelsInWidget=n.useSectionsInChannel=n.useVideosInSection=n.useVideo=n.useSection=n.useIsLoaded=n.useChannel=n.useWidget=void 0;var i=t(8156),r=t(3368),o=t(5167),c=t(7400);Object.defineProperty(n,"ChannelsContext",{enumerable:!0,get:function(){return c.ChannelsContext}}),Object.defineProperty(n,"SectionsContext",{enumerable:!0,get:function(){return c.SectionsContext}}),Object.defineProperty(n,"VideosContext",{enumerable:!0,get:function(){return c.VideosContext}});var a=(0,o.createLogger)({isConsoleEnabled:!0,isSentryEnabled:!1});n.useWidget=function(e){var n=(0,r.useTivioData)().subscriptions,t=(0,i.useState)(""),o=t[0],c=t[1],a=(0,i.useState)(null),l=a[0],s=a[1],u=(0,i.useRef)(void 0);return(0,i.useEffect)((function(){return n&&n.subscribeToWidget(e,(function(e,n,t){var i,r,o;e&&c(e.message),n&&(null===(i=n.lastVideo)||void 0===i||i.transaction,null===(r=n.lastVideo)||void 0===r||r.subscriptions,null===(o=n.lastVideo)||void 0===o||o.monetizations,s(n)),t&&(u.current=t)})),function(){var e;null===(e=u.current)||void 0===e||e.call(u)}}),[n]),{error:o,widget:l}},n.useChannel=function(e){var n=(0,r.useTivioData)().subscriptions,t=(0,i.useState)(null),o=t[0],c=t[1],l=(0,i.useState)(null),s=l[0],u=l[1];return(0,i.useEffect)((function(){n&&(a.info("subscribe to channel with id "+e),n.subscribeToChannel(e,(function(e,n){e&&(a.error("failed to subscribe to channel: ",e),c(e.message)),n&&(a.error("channel data received"),u(n))})))}),[n]),{error:o,data:s}},n.useSection=function(e){var n=(0,r.useTivioData)().subscriptions,t=(0,i.useState)(null),o=t[0],c=t[1],l=(0,i.useState)(null),s=l[0],u=l[1];return(0,i.useEffect)((function(){n&&(a.info("subscribe to section with id "+e),n.subscribeToSection(e,(function(e,n){e&&(a.error("failed to subscribe to section: ",e),c(e.message)),n&&(a.info("section data received"),u(n))})))}),[n]),{error:o,data:s}},n.useVideo=function(e){var n,t=(0,r.useTivioData)().hooks;return null!==(n=null==t?void 0:t.useVideo(null!=e?e:""))&&void 0!==n?n:{error:null,data:null}},n.useVideosInSection=function(e,n){void 0===n&&(n=10);var t=(0,r.useTivioData)().subscriptions,o=(0,i.useContext)(c.VideosContext),l=o.data[null!=e?e:""];return(0,i.useEffect)((function(){t&&e&&(l||(a.info("subscribe to videos in section "+e),t.subscribeToVideosInSection(e,(function(n,t,i,r){n&&(a.error("failed to subscribe to videos in section: ",n),o.setData(e,{error:n,data:null,isLoading:r})),t&&(a.info("videos data received"),t.videos.forEach((function(e){return e.monetization})),t.videos.forEach((function(e){return e.subscriptions.map((function(e){return e.price}))})),t.videos.forEach((function(e){var n;return null===(n=e.transaction)||void 0===n?void 0:n.price})),o.setData(e,{data:{items:t.videos,hasNextPage:t.hasNextPage,fetchMore:function(){return null==i?void 0:i()}},error:n,isLoading:r}))}),n)))}),[t,e,o]),{error:l?l.error:null,data:l?l.data:null,isLoading:!!l&&l.isLoading}},n.useSectionsInChannel=function(e,n){void 0===n&&(n=10);var t=(0,r.useTivioData)().subscriptions,o=(0,i.useContext)(c.SectionsContext),l=o.data[e];return(0,i.useEffect)((function(){t&&(l||(a.info("subscribe to sections in channel with id "+e),t.subscribeToSectionsInChannel(e,(function(n,t,i,r){n&&(a.error("failed to subscribe to sections in channel: ",n),o.setData(e,{error:n,data:null,isLoading:r})),t&&(a.info("sections data received"),o.setData(e,{error:n,data:{items:t.sections,hasNextPage:t.hasNextPage,fetchMore:function(){return null==i?void 0:i()}},isLoading:r}))}),n)))}),[t]),{error:l?l.error:null,data:l?l.data:null,isLoading:!!l&&l.isLoading}},n.useChannelsInWidget=function(e,n){void 0===n&&(n=10);var t=(0,r.useTivioData)().subscriptions,o=(0,i.useContext)(c.ChannelsContext),l=o.data[e];return(0,i.useEffect)((function(){t&&(l||(a.info("subscribe to channels in widget with id: "+e),t.subscribeToChannelsInWidget(e,(function(n,t,i,r){n&&(a.error("failed to subscribe to channels in widget: ",n),o.setData(e,{error:n,data:null,isLoading:r})),t&&(a.info("channels data received"),o.setData(e,{error:n,data:{items:t.channels,hasNextPage:t.hasNextPage,fetchMore:function(){return null==i?void 0:i()}},isLoading:r}))}),n)))}),[t]),{error:l?l.error:null,data:l?l.data:null,isLoading:!!l&&l.isLoading}},n.useIsLoaded=function(){var e=(0,i.useState)(!1),n=e[0],t=e[1],o=(0,r.useTivioData)();return(0,i.useEffect)((function(){o.getters&&o.getters.isTivioLoaded(t)}),[o]),{isTivioLoaded:n}}},1012:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(5545),n),r(t(8919),n),r(t(3284),n),r(t(9325),n),r(t(4588),n),r(t(2045),n),r(t(1530),n),r(t(8186),n),r(t(3991),n),r(t(9735),n),r(t(4439),n),r(t(6621),n),r(t(3533),n),r(t(2997),n),r(t(360),n),r(t(506),n),r(t(563),n),r(t(2700),n),r(t(2484),n),r(t(2771),n),r(t(7337),n),r(t(8918),n)},6621:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useAdSegment=n.useSeekState=n.useCurrentMarker=n.useAd=n.useIntro=n.useBetOffer=n.useMarkers=n.usePlayerEvent=void 0;var i=t(8156),r=t(8074),o=t(2484);n.usePlayerEvent=function(e){var n=(0,i.useContext)(r.PlayerContext);if(void 0===n)throw new Error("usePlayerEvent must be inside PlayerContext");var t=(0,i.useState)(null),o=t[0],c=t[1];return(0,i.useEffect)((function(){if(null==n?void 0:n.events)return n.events.addListener(e,c),function(){return n.events.removeListener(e,c)}}),[null==n?void 0:n.events]),o},n.useMarkers=function(){var e=(0,i.useContext)(r.PlayerContext);if(void 0===e)throw new Error("useMarkers must be inside PlayerContext");var n=(0,i.useState)(null),t=n[0],o=n[1];return(0,i.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("markers",o),function(){return e.events.removeListener("markers",o)}}),[null==e?void 0:e.events]),t},n.useBetOffer=function(){var e=(0,i.useContext)(r.PlayerContext);if(void 0===e)throw new Error("useBetOffer must be inside PlayerContext");var n=(0,i.useState)(null),t=n[0],o=n[1];return(0,i.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("bet-offer",o),function(){return e.events.removeListener("bet-offer",o)}}),[null==e?void 0:e.events]),t},n.useIntro=function(){var e=(0,i.useContext)(r.PlayerContext);if(void 0===e)throw new Error("useIntro must be inside PlayerContext");var n=(0,i.useState)(null),t=n[0],o=n[1];return(0,i.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("intro",o),function(){return e.events.removeListener("intro",o)}}),[null==e?void 0:e.events]),t},n.useAd=function(){var e,n,t=(0,o.useTivioReadyData)();return(null!==(n=null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.useAd())&&void 0!==n?n:[null])[0]},n.useCurrentMarker=function(){var e=(0,i.useContext)(r.PlayerContext);if(void 0===e)throw new Error("useCurrentMarker must be inside PlayerContext");var n=(0,i.useState)(null),t=n[0],o=n[1];return(0,i.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("current-marker",o),function(){return e.events.removeListener("current-marker",o)}}),[null==e?void 0:e.events]),t},n.useSeekState=function(){var e=(0,i.useContext)(r.PlayerContext);if(void 0===e)throw new Error("useSeekState must be inside PlayerContext");var n=(0,i.useState)(null),t=n[0],o=n[1];return(0,i.useEffect)((function(){if(null==e?void 0:e.events){var n=function(){return o(!1)},t=function(){return o(!0)};return e.events.addListener("disable-seek",n),e.events.addListener("enable-seek",t),function(){e.events.removeListener("disable-seek",n),e.events.removeListener("enable-seek",t)}}}),[null==e?void 0:e.events]),t},n.useAdSegment=function(){var e,n,t=(0,o.useTivioReadyData)();return null!==(n=null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.useAdSegment())&&void 0!==n?n:null}},8918:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useApplyInviteCode=void 0;var i=t(2484);n.useApplyInviteCode=function(){var e,n,t=(0,i.useTivioData)().hooks;return null!==(n=null===(e=null==t?void 0:t.useApplyInviteCode)||void 0===e?void 0:e.call(t))&&void 0!==n?n:{applyInviteCodeResult:void 0,loading:!0,error:void 0,applyInviteCode:function(){},inviteCodeReset:function(){}}}},1530:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useCancelSubscription=void 0;var i=t(2484);n.useCancelSubscription=function(e){var n,t,r=(0,i.useTivioData)().hooks,o=null!==(t=null===(n=null==r?void 0:r.useCancelSubscription)||void 0===n?void 0:n.call(r,e))&&void 0!==t?t:{},c=o.cancelSubscription,a=o.cancellationInfo;return{cancelSubscription:null!=c?c:function(){return Promise.resolve()},cancellationInfo:null!=a?a:null,error:o.error}}},506:function(e,n,t){"use strict";var i=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.useFreePurchase=void 0;var o=t(2484);n.useFreePurchase=function(){var e=(0,o.useTivioData)().auth;return{purchase:function(n){return i(void 0,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return e?[4,e.createFreePurchase(n)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}}}},2997:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useIsMonetizationPurchased=void 0;var i=t(2484);n.useIsMonetizationPurchased=function(){var e,n=(0,i.useTivioData)().internal;return null!==(e=null==n?void 0:n.hooks.useIsMonetizationPurchased())&&void 0!==e?e:{isOneOfSubscriptionPurchased:function(){return!1}}}},2045:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useItemsInRow=void 0;var i=t(2484);n.useItemsInRow=function(e,n){var t,r;void 0===n&&(n={noLimit:!1,limit:3});var o=(0,i.useTivioData)().hooks;return null!==(r=null===(t=null==o?void 0:o.useItemsInRow)||void 0===t?void 0:t.call(o,e,n))&&void 0!==r?r:{pagination:null,error:null}}},2771:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useLastVideoByWidgetId=void 0,n.useLastVideoByWidgetId=function(e){return null}},3533:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useOrganizationSubscriptions=void 0;var i=t(2484);n.useOrganizationSubscriptions=function(){var e,n,t=(0,i.useTivioData)().internal;return null!==(n=null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.useOrganizationSubscriptions())&&void 0!==n?n:{subscriptions:[]}}},3991:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.usePurchaseRecovery=void 0;var i=t(2484);n.usePurchaseRecovery=function(){var e,n,t=(0,i.useTivioData)().hooks;return null!==(n=null===(e=null==t?void 0:t.usePurchaseRecovery)||void 0===e?void 0:e.call(t))&&void 0!==n?n:{purchaseRecoveryResult:void 0,loading:!0,error:void 0,purchaseRecovery:function(){}}}},9735:function(e,n,t){"use strict";var i=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.usePurchaseSubscription=void 0;var o=t(5264),c=t(8156),a=t(2484),l=t(5545);n.usePurchaseSubscription=function(e,n){var t=(0,c.useState)(null),s=t[0],u=t[1],d=(0,c.useState)(""),b=d[0],g=d[1],I=(0,a.useTivioData)().purchaseSubscriptionWithQerko,p=(0,l.useUser)().user,m=(0,c.useCallback)((function(){return i(void 0,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:g(""),r.label=1;case 1:if(r.trys.push([1,3,,4]),!I)throw new Error("purchaseSubscriptionWithQerko not in bundle");if(n)if(n.expirationDate instanceof Date&&!isNaN(n.expirationDate.getTime()))n.expirationDate=n.expirationDate.getTime();else if(isNaN(Number(n.expirationDate)))throw new Error("Invalid voucher expiration date. Must be Date or number (date in miliseconds).");return[4,I(e,n)];case 2:return t=r.sent(),u(t),[3,4];case 3:return(i=r.sent())instanceof Error&&g(i.message),[3,4];case 4:return[2]}}))}))}),[I]),B=(0,c.useCallback)((function(){return null==p?void 0:p.purchases.find((function(e){return e.id===(null==s?void 0:s.purchaseId)}))}),[p,e,s]),y=(0,o.useObserver)((function(){if(p){var e=B();if(e)return e.status}return"NEW"})),h=(0,o.useObserver)((function(){if(s&&p){var e=B();if(e)return e.voucherId}}));return(0,c.useEffect)((function(){m()}),[m]),{paymentError:b,paymentInfo:s,paymentStatus:y,getPaymentInfo:m,voucherId:h}}},360:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.usePurchasesWithVideos=void 0;var i=t(2484);n.usePurchasesWithVideos=function(){var e,n,t=(0,i.useTivioData)().internal;return null!==(n=null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.usePurchasesWithVideos())&&void 0!==n?n:{purchases:[]}}},563:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useRowsInScreen=void 0;var i=t(2484);n.useRowsInScreen=function(e,n){var t,r;void 0===n&&(n={noLimit:!1,limit:3});var o=(0,i.useTivioData)().hooks;return null!==(r=null===(t=null==o?void 0:o.useRowsInScreen)||void 0===t?void 0:t.call(o,e,n))&&void 0!==r?r:{pagination:null,error:null}}},9325:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useScreen=void 0,n.useScreen=function(e,n){throw new Error("deprecated")}},3284:function(e,n,t){"use strict";var i=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.useScreens=void 0;var o=t(8156),c=t(2484);n.useScreens=function(){var e=(0,c.useTivioData)().getters,n=(0,o.useState)([]),t=n[0],a=n[1];return(0,o.useEffect)((function(){e&&i(void 0,void 0,void 0,(function(){var n;return r(this,(function(t){switch(t.label){case 0:return[4,e.getOrganizationScreens()];case 1:return n=t.sent(),a(n),[2]}}))}))}),[e]),{screens:t}}},4588:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ALGOLIA_INDEX_NAME=n.useSearch=void 0;var i=t(8741);Object.defineProperty(n,"ALGOLIA_INDEX_NAME",{enumerable:!0,get:function(){return i.ALGOLIA_INDEX_NAME}});var r=t(2484);n.useSearch=function(e,n){var t,i,o=(0,r.useTivioData)().hooks,c=null!==(i=null===(t=null==o?void 0:o.useSearch)||void 0===t?void 0:t.call(o,e,n))&&void 0!==i?i:{},a=c.search,l=c.pagination,s=c.isLoading,u=c.error,d=c.lastQuery;return{search:null!=a?a:function(){return Promise.resolve()},pagination:(null==l?void 0:l.items)?{items:l.items,fetchMore:l.fetchMore}:null,isLoading:null==s||s,error:null!=u?u:null,lastQuery:null!=d?d:""}}},8919:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useTaggedVideos=void 0;var i=t(2484);n.useTaggedVideos=function(e,n){var t,r;void 0===n&&(n={noLimit:!1,limit:3});var o=(0,i.useTivioData)().hooks;return null!==(r=null===(t=null==o?void 0:o.useTaggedVideos)||void 0===t?void 0:t.call(o,e,n))&&void 0!==r?r:{pagination:null,error:null}}},2484:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useTivioReadyData=n.useTivioData=void 0;var i=t(8156),r=t(8185),o=function(){var e=(0,i.useContext)(r.TivioContext);if(null===e)throw new Error("Make sure to wrap your app in TivioProvider");return e};n.useTivioData=o,n.useTivioReadyData=function(){var e=o();return"ready"===e.state?e:null}},8186:function(e,n,t){"use strict";var i=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.useTransactionPayment=void 0;var o=t(5264),c=t(8156),a=t(3368);t(3551),n.useTransactionPayment=function(e,n,t){var l=(0,c.useState)(null),s=l[0],u=l[1],d=(0,c.useState)(""),b=d[0],g=d[1],I=(0,a.useTivioData)().purchaseVideoWithQerko,p=(0,a.useUser)().user,m=(0,c.useCallback)((function(){return i(void 0,void 0,void 0,(function(){var i,o;return r(this,(function(r){switch(r.label){case 0:g(""),r.label=1;case 1:if(r.trys.push([1,3,,4]),!I)throw new Error("purchaseVideoWithQerko not in bundle");if(t)if(t.expirationDate instanceof Date&&!isNaN(t.expirationDate.getTime()))t.expirationDate=t.expirationDate.getTime();else if(isNaN(Number(t.expirationDate)))throw new Error("Invalid voucher expiration date. Must be Date or number (date in miliseconds).");return[4,I(e,n,t)];case 2:return i=r.sent(),u(i),[3,4];case 3:return o=r.sent(),g(o.message),[3,4];case 4:return[2]}}))}))}),[I]);(0,c.useEffect)((function(){m()}),[m]);var B=(0,c.useCallback)((function(e){var n;return void 0===e&&(e=!1),(null!==(n=e?null==p?void 0:p.allPurchases:null==p?void 0:p.purchases)&&void 0!==n?n:[]).find((function(e){return e.id===(null==s?void 0:s.purchaseId)}))}),[p,n,e,s]),y=(0,o.useObserver)((function(){if(s&&p){var e=B(!0);if(e)return e.status}return"NEW"})),h=(0,o.useObserver)((function(){if(s&&p){var e=B();if(e)return e.voucherId}}));return{paymentInfo:s,paymentError:b,paymentStatus:y,voucherId:h,getPaymentInfo:m}}},5545:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useUser=void 0;var i=t(2484);n.useUser=function(){var e,n,t=(0,i.useTivioData)().internal;return null!==(n=null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.useUser())&&void 0!==n?n:{user:null,error:null,isInitialized:!1}}},2700:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useVoucher=void 0;var i=t(3368);n.useVoucher=function(e){var n=(0,i.useTivioData)().hooks,t=null==n?void 0:n.useVoucher(e);return{activate:t?t.activate:null,voucher:t?t.voucher:null,error:t?t.error:null,activationSuccess:!!t&&t.activationSuccess}}},7337:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useWatchWithoutAdsOffer=void 0;var i=t(2484);n.useWatchWithoutAdsOffer=function(){var e,n,t=(0,i.useTivioReadyData)();return null!==(n=null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.useWatchWithoutAdsOffer())&&void 0!==n?n:{canPurchaseWatchWithoutAds:!1,showPurchaseDialog:function(){}}}},952:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.createInternalConf=n.defaultConf=void 0;var r=t(3366),o=t(8491),c=t(5167),a=t(8323),l=t(5883);n.defaultConf={secret:null,resolverUrl:"https://tivio-resolver-production.tiv.io/serveBundle/resolver2.js",currency:"CZK",disableUnmounting:!1,fetchPackage:a.fetchPackage,pubSub:(0,l.getPubSub)(),LoaderComponent:o.TivioWidgetLoader,ErrorComponent:r.TivioWidgetError},n.createInternalConf=function(e){var t,r;if(e){if(null==e.currency)throw new Error(".currency is missing in Tivio config");if(null==e.deviceCapabilities)throw new Error(".deviceCapabilities is missing in Tivio config")}return r="auto"===(null==e?void 0:e.deviceCapabilities)?[]:null!==(t=null==e?void 0:e.deviceCapabilities)&&void 0!==t?t:[],i(i(i(i({},n.defaultConf),null!=e?e:{}),null==(null==e?void 0:e.secret)?{enable:!1}:{}),{logger:void 0!==(null==e?void 0:e.logger)?e.logger:(0,c.createLogger)({isConsoleEnabled:!0}),sdkVersion:"3.6.0",deviceCapabilities:r})}},3368:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),n.showGdprConsentPreferences=n.setUser=n.Nullable=n.Empty=n.Disposer=n.bundlePromise=n.withPlayerContext=n.PlayerProvider=void 0,t(6168),t(6916);var o=t(8074);Object.defineProperty(n,"PlayerProvider",{enumerable:!0,get:function(){return o.PlayerProvider}}),Object.defineProperty(n,"withPlayerContext",{enumerable:!0,get:function(){return o.withPlayerContext}});var c=t(7968);Object.defineProperty(n,"bundlePromise",{enumerable:!0,get:function(){return c.bundlePromise}}),r(t(1012),n),r(t(8185),n),r(t(5111),n),r(t(3366),n),r(t(467),n),r(t(8491),n),r(t(7023),n),r(t(6111),n),r(t(5883),n),r(t(4952),n);var a=t(1649);Object.defineProperty(n,"Disposer",{enumerable:!0,get:function(){return a.Disposer}});var l=t(1649);Object.defineProperty(n,"Empty",{enumerable:!0,get:function(){return l.Empty}});var s=t(1649);Object.defineProperty(n,"Nullable",{enumerable:!0,get:function(){return s.Nullable}}),r(t(3551),n);var u=t(6732);Object.defineProperty(n,"setUser",{enumerable:!0,get:function(){return u.setUser}});var d=t(4207);Object.defineProperty(n,"showGdprConsentPreferences",{enumerable:!0,get:function(){return d.showGdprConsentPreferences}}),(0,t(5936).logInfo)()},5936:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.logInfo=void 0;var i=t(194),r=new i.Logger("tivio");n.logInfo=function(){var e=(0,i.getTizenVersion)();e&&r.info("Device: Tizen, version: "+e.version)}},6111:function(e,n,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)},r=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},o=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.createUseRemoteBundle=n.createRemotePackageLoader=n.fetchBundle=void 0,t(3258);var c=t(194),a=t(8156),l=t(6457),s=t(1480),u=new c.Logger("bundleLoader"),d=function(e){var n=e.resolverUrl;return(0,e.fetchPackage)(n)},b=function(e){return r(void 0,void 0,void 0,(function(){var n;return o(this,(function(t){switch(t.label){case 0:return u.info("Fetching bundle by url",e),[4,fetch(e)];case 1:if(!((i=(n=t.sent()).status)>=200&&i<=400))throw new Error("Failed to fetch bundleUrlOverride "+e+", HTTP error status code: "+n.status);return[4,n.text()];case 2:return[2,t.sent()]}var i}))}))},g=function(e){return r(void 0,void 0,void 0,(function(){var n;return o(this,(function(t){switch(t.label){case 0:return[4,fetch("https://europe-west3-tivio-production.cloudfunctions.net/getRemoteBundle",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({secret:e})})];case 1:return[4,t.sent().json()];case 2:return n=t.sent(),[2,b(n.bundleUrl)]}}))}))},I=function(e,n){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){return u.info("Fetching bundle via resolver"),[2,d(n).then((function(t){var i,r={},o={exports:r};try{new Function("require","module","exports",t)(l.resolveShared,o,r)}catch(e){return Promise.reject("Cannot load Tivio Resolver "+e)}return"function"!=typeof(null===(i=o.exports.tivio)||void 0===i?void 0:i.fetch)?Promise.reject("Invalid Tivio Resolver export"):o.exports.tivio.fetch(e,n.sdkVersion)}))]}))}))},p=function(e,n){return r(void 0,void 0,Promise,(function(){var t;return o(this,(function(i){switch(i.label){case 0:return t="",n.forceCloudFnResolver?(u.info("Fetching bundle via cloudfn (forced by config)"),[4,g(e)]):[3,2];case 1:return t=i.sent(),[3,10];case 2:return n.bundleUrlOverride?(u.info("Fetching bundle directly based on config.bundleUrlOverride",n.bundleUrlOverride),[4,b(n.bundleUrlOverride)]):[3,4];case 3:return t=i.sent(),[3,10];case 4:return(0,c.isIndexedDbSupported)()?[3,6]:(u.info("Fetching bundle via cloudfn, because indexedDB is not supported"),[4,g(e)]);case 5:return t=i.sent(),[3,10];case 6:return(0,c.isTizenVersionGreaterThan)(5)?(u.info("Fetching bundle via cloudfn, because Tizen version is > 5"),[4,g(e)]):[3,8];case 7:return t=i.sent(),[3,10];case 8:return[4,I(e,n)];case 9:t=i.sent(),i.label=10;case 10:return function(e,n){if(e.length<5e4){var t="Invalid bundle, the loaded bundle has extremely small char count (only "+e.length+") chars";throw u.error(t,e),new Error(t)}}(t),[2,t]}}))}))};n.fetchBundle=p;var m=function(){return function(e,n){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){return[2,p(e,n).then((function(e){var n={},t={exports:n};try{new Function("require","module","exports",e)(l.resolveShared,t,n)}catch(e){return Promise.reject("Cannot load module "+e)}return"object"!=typeof t.exports.Tivio?Promise.reject('Tivio package does not export "Tivio" namespace'):"object"!=typeof t.exports.Tivio.components?Promise.reject('Tivio namespace does not export "components" member'):"function"!=typeof t.exports.Tivio.setUser?Promise.reject('Tivio namespace does not export "setUser" member'):"function"!=typeof t.exports.Tivio.init?Promise.reject('Tivio namespace does not export "init" member'):t.exports.Tivio}))]}))}))}};n.createRemotePackageLoader=m,n.createUseRemoteBundle=function(){var e=m(),n=!1;return function(t){var c=(0,s.createSettings)(),l=(0,a.useState)({auth:null,components:null,config:t,error:null,getters:null,init:null,purchaseSubscriptionWithQerko:null,purchaseVideoWithQerko:null,cancelSubscriptionWithQerko:null,setLanguage:null,showConsentPreferences:null,settings:c,setUser:null,sources:null,hooks:null,state:"loading",subscriptions:null,internal:null}),u=l[0],d=l[1];return(0,a.useEffect)((function(){null!=t.secret&&!1!==t.enable&&e(t.secret,t).then((function(e){return r(void 0,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return n?[3,2]:[4,e.init(t)];case 1:o.sent(),n=!0,o.label=2;case 2:return r=i(i({},e),{config:t,error:null,settings:c,state:"ready"}),d(r),t.pubSub.publish("on-ready",r),[2]}}))}))})).catch((function(e){var n;null===(n=t.logger)||void 0===n||n.exception(e),d(i(i({},u),{config:t,error:""+e,settings:c,state:"error"})),t.pubSub.publish("on-error",e)}))}),[]),u}}},7968:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.bundlePromise=n.tivioBundle=void 0;var i=t(5883);n.tivioBundle=null,n.bundlePromise=new Promise((function(e,t){(0,i.getPubSub)().subscribe("on-ready",(function(t){n.tivioBundle=t,e(t)})),(0,i.getPubSub)().subscribe("on-error",(function(e){t(e)}))})).catch((function(e){throw console.error("@tivio/sdk-react failed to load. Reason:",e),e})).then((function(e){return console.info("@tivio/sdk-react loaded successfully."),e}))},6457:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&i(n,e,t);return r(n,e),n},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.resolveShared=void 0;var a=o(t(670)),l=o(t(6741)),s=o(t(8879)),u=c(t(2937));t(6703),t(6462);var d=o(t(7661)),b=o(t(8661)),g=o(t(259)),I=o(t(5264)),p=o(t(8156)),m=o(t(7111)),B=o(t(3238)),y=o(t(6128)),h=o(t(5412)),G=o(t(1296)),Z=o(t(1608)),X=o(t(7589)),v={mobx:g,"mobx-react":I,firebase:u.default,"firebase/app":u.default,"firebase/auth":null,"firebase/firestore":null,react:p,React:p,"react-dom":m,"styled-components":Z,"@material-ui/core":a,"@material-ui/icons":l,formik:d,i18next:b,"react-i18next":B,"react-router-dom":y,"react-virtualized":G,"react-spring":h,yup:X,dayjs:s};n.resolveShared=function(e){if(!(e in v))throw new Error("Could not resolve shared dependency "+e);return v[e]}},4207:function(e,n,t){"use strict";var i=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.showGdprConsentPreferences=void 0;var o=t(7968);n.showGdprConsentPreferences=function(){return i(void 0,void 0,void 0,(function(){var e,n;return r(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,o.bundlePromise];case 1:return e=t.sent(),null===(n=e.showConsentPreferences)||void 0===n||n.call(e),[3,3];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))}},3258:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.loadBundleFromDist=void 0,n.loadBundleFromDist=function(){}},5167:function(e,n,t){"use strict";var i=this&&this.__spreadArray||function(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.createLogger=void 0;var r=t(6435);n.createLogger=function(e){var n=!1!==e.isSentryEnabled,t=function(t,o){e.isConsoleEnabled&&console[t].apply(console,i(["Tivio SDK "],o,!1)),n&&(null===r.Sentry||void 0===r.Sentry||r.Sentry.captureMessage(""+o,r.Sentry.Severity.fromString(t)))};return{error:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t("error",e)},info:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t("info",e)},warn:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t("warn",e)},debug:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t("debug",e)},exception:function(t){e.isConsoleEnabled&&console.error(t),n&&(null===r.Sentry||void 0===r.Sentry||r.Sentry.captureException(t))}}}},6732:function(e,n,t){"use strict";var i=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.setUser=void 0;var o=t(7968);n.setUser=function(e,n){return i(void 0,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,o.bundlePromise];case 1:return t=r.sent(),[4,null===(i=t.setUser)||void 0===i?void 0:i.call(t,e,n)];case 2:case 3:return r.sent(),[3,4];case 4:return[2]}}))}))}},8323:function(e,n){"use strict";var t=this&&this.__awaiter||function(e,n,t,i){return new(t||(t=Promise))((function(r,o){function c(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((i=i.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,i,r,o,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,i=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((r=(r=c.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){c.label=o[1];break}if(6===o[0]&&c.label<r[1]){c.label=r[1],r=o;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(o);break}r[2]&&c.ops.pop(),c.trys.pop();continue}o=n.call(e,c)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.fetchPackage=void 0;var r={cache:"no-store"},o=function(e){var n=e.headers.get("content-type");return 200!==e.status?Promise.reject('Incorrect status "'+e.status+'" was obtained while fetching the module.'):n&&(n.includes("application/javascript")||n.includes("text/javascript"))?e.text():Promise.reject('Incorrect content "'+n+'" was obtained while fetching the module.')},c=function(e){return Promise.reject("Network failure: "+e)};n.fetchPackage=function(e){return t(void 0,void 0,Promise,(function(){return i(this,(function(n){return[2,fetch(e,r).then(o).catch(c)]}))}))}},5883:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPubSub=n.createPubSub=void 0,n.createPubSub=function(){var e=new Map;return{publish:function(n,t){var i;null===(i=e.get(n))||void 0===i||i.forEach((function(e){(0,e.onMessage)(t)}))},subscribe:function(n,t){var i=(new Date).getTime();return e.has(n)||e.set(n,[]),e.get(n).push({id:i,onMessage:t}),function(){var t,r=null!==(t=e.get(n))&&void 0!==t?t:[],o=r.findIndex((function(e){return e.id===i}));-1!==o&&r.splice(o,1)}}}};var t=null;n.getPubSub=function(){return null===t&&(t=(0,n.createPubSub)()),t}},6435:function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&i(n,e,t);return r(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.initSentry=n.disableSentry=n.Sentry=void 0;var c=o(t(7356)),a="true"===process.env.DISABLE_SENTRY;n.Sentry=a?null:c,n.disableSentry=function(){n.Sentry=null,console.info("@tivio: Sentry disabled")},n.initSentry=function(){n.Sentry&&(n.Sentry.init({dsn:"https://8b9d489695004b0da95481f939b0455d@o507550.ingest.sentry.io/5600271",release:"@tivio/sdk-react@3.6.0",tracesSampleRate:1}),console.info("@tivio: Sentry enabled"),l())};var l=function(){window.sentry=n.Sentry,console.info("@tivio: Sentry added to window")}},1480:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createSettings=void 0;var i=t(6732);n.createSettings=function(){return{setUser:function(e,n){return(0,i.setUser)(e,n)}}}},3551:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Translation=n.PLATFORM=n.ROW_ITEM_TYPES=n.CUSTOMER_BUILD=n.ExternalTvConfig=n.QerkoCancellationInfo=n.Currency=void 0;var i=t(8741);Object.defineProperty(n,"Currency",{enumerable:!0,get:function(){return i.Currency}}),Object.defineProperty(n,"QerkoCancellationInfo",{enumerable:!0,get:function(){return i.QerkoCancellationInfo}}),Object.defineProperty(n,"CUSTOMER_BUILD",{enumerable:!0,get:function(){return i.CUSTOMER_BUILD}}),Object.defineProperty(n,"PLATFORM",{enumerable:!0,get:function(){return i.PLATFORM}}),Object.defineProperty(n,"ExternalTvConfig",{enumerable:!0,get:function(){return i.ExternalTvConfig}}),Object.defineProperty(n,"ROW_ITEM_TYPES",{enumerable:!0,get:function(){return i.ROW_ITEM_TYPES}}),Object.defineProperty(n,"Translation",{enumerable:!0,get:function(){return i.Translation}})},1649:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},7023:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},4952:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LangCode=void 0;var i=t(8741);Object.defineProperty(n,"LangCode",{enumerable:!0,get:function(){return i.LangCode}})},6168:function(e,n,t){"use strict";t.r(n),t.d(n,{Headers:function(){return I},Request:function(){return Z},Response:function(){return v},DOMException:function(){return C},fetch:function(){return F}});var i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==i&&i,r="URLSearchParams"in i,o="Symbol"in i&&"iterator"in Symbol,c="FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in i,l="ArrayBuffer"in i;if(l)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function b(e){return"string"!=typeof e&&(e=String(e)),e}function g(e){var n={next:function(){var n=e.shift();return{done:void 0===n,value:n}}};return o&&(n[Symbol.iterator]=function(){return n}),n}function I(e){this.map={},e instanceof I?e.forEach((function(e,n){this.append(n,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(n){this.append(n,e[n])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(n,t){e.onload=function(){n(e.result)},e.onerror=function(){t(e.error)}}))}function B(e){var n=new FileReader,t=m(n);return n.readAsArrayBuffer(e),t}function y(e){if(e.slice)return e.slice(0);var n=new Uint8Array(e.byteLength);return n.set(new Uint8Array(e)),n.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:c&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&c&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(B)}),this.text=function(){var e,n,t,i=p(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=m(n=new FileReader),n.readAsText(e),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var n=new Uint8Array(e),t=new Array(n.length),i=0;i<n.length;i++)t[i]=String.fromCharCode(n[i]);return t.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(X)}),this.json=function(){return this.text().then(JSON.parse)},this}I.prototype.append=function(e,n){e=d(e),n=b(n);var t=this.map[e];this.map[e]=t?t+", "+n:n},I.prototype.delete=function(e){delete this.map[d(e)]},I.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},I.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},I.prototype.set=function(e,n){this.map[d(e)]=b(n)},I.prototype.forEach=function(e,n){for(var t in this.map)this.map.hasOwnProperty(t)&&e.call(n,this.map[t],t,this)},I.prototype.keys=function(){var e=[];return this.forEach((function(n,t){e.push(t)})),g(e)},I.prototype.values=function(){var e=[];return this.forEach((function(n){e.push(n)})),g(e)},I.prototype.entries=function(){var e=[];return this.forEach((function(n,t){e.push([t,n])})),g(e)},o&&(I.prototype[Symbol.iterator]=I.prototype.entries);var G=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Z(e,n){if(!(this instanceof Z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var t,i,r=(n=n||{}).body;if(e instanceof Z){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new I(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new I(n.headers)),this.method=(i=(t=n.method||this.method||"GET").toUpperCase(),G.indexOf(i)>-1?i:t),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function X(e){var n=new FormData;return e.trim().split("&").forEach((function(e){if(e){var t=e.split("="),i=t.shift().replace(/\+/g," "),r=t.join("=").replace(/\+/g," ");n.append(decodeURIComponent(i),decodeURIComponent(r))}})),n}function v(e,n){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===n.statusText?"":""+n.statusText,this.headers=new I(n.headers),this.url=n.url||"",this._initBody(e)}Z.prototype.clone=function(){return new Z(this,{body:this._bodyInit})},h.call(Z.prototype),h.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var f=[301,302,303,307,308];v.redirect=function(e,n){if(-1===f.indexOf(n))throw new RangeError("Invalid status code");return new v(null,{status:n,headers:{location:e}})};var C=i.DOMException;try{new C}catch(e){(C=function(e,n){this.message=e,this.name=n;var t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),C.prototype.constructor=C}function F(e,n){return new Promise((function(t,r){var o=new Z(e,n);if(o.signal&&o.signal.aborted)return r(new C("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,n,i={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",n=new I,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var t=e.split(":"),i=t.shift().trim();if(i){var r=t.join(":").trim();n.append(i,r)}})),n)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;setTimeout((function(){t(new v(r,i))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new C("Aborted","AbortError"))}),0)},a.open(o.method,function(e){try{return""===e&&i.location.href?i.location.href:e}catch(n){return e}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(c?a.responseType="blob":l&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof I?o.headers.forEach((function(e,n){a.setRequestHeader(n,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){a.setRequestHeader(e,b(n.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",s)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}F.polyfill=!0,i.fetch||(i.fetch=F,i.Headers=I,i.Request=Z,i.Response=v)},670:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__670__},6741:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__6741__},7356:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__7356__},2937:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__2937__},6703:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__6703__},6462:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__6462__},7661:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__7661__},8661:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__8661__},259:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__259__},5264:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__5264__},8156:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__8156__},7111:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__7111__},3238:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__3238__},6128:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__6128__},5412:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__5412__},1296:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__1296__},1608:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__1608__},7589:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__7589__}},__webpack_module_cache__={};function __webpack_require__(e){var n=__webpack_module_cache__[e];if(void 0!==n)return n.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.d=function(e,n){for(var t in n)__webpack_require__.o(n,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},__webpack_require__.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(3368);return __webpack_exports__}()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@sentry/browser"),require("mobx"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):"function"==typeof define&&define.amd?define("@tivio/sdk-react",["react","@sentry/browser","mobx","@material-ui/core","@material-ui/icons","firebase/app","firebase/auth","firebase/firestore","formik","i18next","mobx-react","react-dom","react-i18next","react-router-dom","react-spring","react-virtualized","styled-components","yup"],t):"object"==typeof exports?exports["@tivio/sdk-react"]=t(require("react"),require("@sentry/browser"),require("mobx"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):e["@tivio/sdk-react"]=t(e.react,e["@sentry/browser"],e.mobx,e["@material-ui/core"],e["@material-ui/icons"],e["firebase/app"],e["firebase/auth"],e["firebase/firestore"],e.formik,e.i18next,e["mobx-react"],e["react-dom"],e["react-i18next"],e["react-router-dom"],e["react-spring"],e["react-virtualized"],e["styled-components"],e.yup)}(this,(function(e,t,n,r,o,i,a,u,s,c,l,f,d,p,h,v,y,g){return function(){var b={194:function(e,t,n){var r,o;e.exports=(r=n(259),o=n(8156),function(){var e={631:function(e,t,n){"use strict";n.r(t),n.d(t,{BrowserInfo:function(){return o},NodeInfo:function(){return i},SearchBotDeviceInfo:function(){return a},BotInfo:function(){return u},ReactNativeInfo:function(){return s},detect:function(){return d},browserName:function(){return h},parseUserAgent:function(){return v},detectOS:function(){return y},getNodeVersion:function(){return g}});var r=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},i=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},a=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(e){return e?v(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?v(navigator.userAgent):g()}function p(e){return""!==e&&l.reduce((function(t,n){var r=n[0],o=n[1];if(t)return t;var i=o.exec(e);return!!i&&[r,i]}),!1)}function h(e){var t=p(e);return t?t[0]:null}function v(e){var t=p(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new u;var s=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);s?s.length<3&&(s=r(r([],s,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-s.length),!0)):s=[];var l=s.join("."),f=y(e),d=c.exec(e);return d&&d[1]?new a(n,l,f,d[1]):new o(n,l,f)}function y(e){for(var t=0,n=f.length;t<n;t++){var r=f[t],o=r[0];if(r[1].exec(e))return o}return null}function g(){return"undefined"!=typeof process&&process.version?new i(process.version.slice(1)):null}},146:function(e){e.exports=function(){var e={2043:function(e,t,n){var r,o;!function(i,a){"use strict";r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function o(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?i:void 0!==console[r]?o(console,r):void 0!==console.log?o(console,"log"):e)}function u(t,n){for(var o=0;o<r.length;o++){var i=r[o];this[i]=o<t?e:this.methodFactory(i,t,n)}this.log=this.debug}function s(e,n,r){return function(){typeof console!==t&&(u.call(this,n,r),this[e].apply(this,arguments))}}function c(e,t,n){return a(e)||s.apply(this,arguments)}function l(e,n,o){var i,a=this;n=null==n?"WARN":n;var s="loglevel";function l(){var e;if(typeof window!==t&&s){try{e=window.localStorage[s]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=n.indexOf(encodeURIComponent(s)+"=");-1!==r&&(e=/^([^;]+)/.exec(n.slice(r))[1])}catch(e){}return void 0===a.levels[e]&&(e=void 0),e}}"string"==typeof e?s+=":"+e:"symbol"==typeof e&&(s=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=o||c,a.getLevel=function(){return i},a.setLevel=function(n,o){if("string"==typeof n&&void 0!==a.levels[n.toUpperCase()]&&(n=a.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(i=n,!1!==o&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&s){try{return void(window.localStorage[s]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"="+n+";"}catch(e){}}}(n),u.call(a,n,e),typeof console===t&&n<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){n=e,l()||a.setLevel(e,!1)},a.resetLevel=function(){a.setLevel(n,!1),function(){if(typeof window!==t&&s){try{return void window.localStorage.removeItem(s)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var f=l();null==f&&(f=n),a.setLevel(f,!1)}var f=new l,d={};f.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=d[e];return t||(t=d[e]=new l(e,f.getLevel(),f.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return f.noConflict=function(){return typeof window!==t&&window.log===f&&(window.log=p),f},f.getLoggers=function(){return d},f.default=f,f},void 0===(o=r.call(t,n,t,e))||(e.exports=o)}()},8741:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.ETARGET_PREBID="etarget-prebid",e.MALL_TV_PREBID="malltv-prebid",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.MALL_TV="malltv",e.FALLBACK_MP4="fallback",e.FALLBACK_HLS="fallback-hls",e.JOJ="joj",e.PRIMA="prima",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Fallback (MP4)",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0}]},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(375),t),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},375:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},690:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=t.CUSTOMER_BUILD=void 0,function(e){e.OKTAGON="OKTAGON",e.JOJ="JOJ",e.MALL="MALL",e.GARAZ="GARAZ",e.U_KULATEHO_STOLU="U_KULATEHO_STOLU",e.INVESTOREES="INVESTOREES"}(n||(n={})),t.CUSTOMER_BUILD=n,function(e){e.MOBILE="MOBILE",e.WEB="WEB",e.TV="TV"}(r||(r={})),t.PLATFORM=r},423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(690),t),o(n(423),t),o(n(757),t)},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.PL="pl",e.SK="sk",e.SP="sp"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}]},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(363),t),o(n(635),t),o(n(202),t),o(n(910),t),o(n(906),t),o(n(948),t),o(n(535),t),o(n(161),t),o(n(656),t),o(n(614),t),o(n(396),t),o(n(738),t),o(n(129),t),o(n(959),t),o(n(605),t),o(n(190),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.ANNUALLY="ANNUALLY"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.RowComponent=void 0,(o=t.RowComponent||(t.RowComponent={})).ROW="ROW",o.BANNER="BANNER",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.TV_PROGRAM="TV_PROGRAM"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t)}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},3958:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",w=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[i]=P[a]=P[m]=P[u]=P[_]=P[s]=P[c]=P[l]=P[f]=P[d]=P[p]=P[v]=P[y]=P[g]=P[b]=!1;var E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,j=E||S||Function("return this")(),T=t&&!t.nodeType&&t,x=T&&e&&!e.nodeType&&e,M=x&&x.exports===T,A=M&&E.process,I=function(){try{return A&&A.binding&&A.binding("util")}catch(e){}}(),C=I&&I.isTypedArray;function L(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function R(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function k(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var D,N,B,F=Array.prototype,U=Function.prototype,V=Object.prototype,W=j["__core-js_shared__"],G=U.toString,z=V.hasOwnProperty,H=(D=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",Y=V.toString,$=RegExp("^"+G.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=M?j.Buffer:void 0,q=j.Symbol,Q=j.Uint8Array,J=V.propertyIsEnumerable,Z=F.splice,X=q?q.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=K?K.isBuffer:void 0,ne=(N=Object.keys,B=Object,function(e){return N(B(e))}),re=xe(j,"DataView"),oe=xe(j,"Map"),ie=xe(j,"Promise"),ae=xe(j,"Set"),ue=xe(j,"WeakMap"),se=xe(Object,"create"),ce=Ce(re),le=Ce(oe),fe=Ce(ie),de=Ce(ae),pe=Ce(ue),he=q?q.prototype:void 0,ve=he?he.valueOf:void 0;function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new be;++t<n;)this.add(e[t])}function _e(e){var t=this.__data__=new ge(e);this.size=t.size}function we(e,t){for(var n=e.length;n--;)if(Le(e[n][0],t))return n;return-1}function Oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=Y.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return Y.call(e)}(e)}function Pe(e){return Ue(e)&&Oe(e)==i}function Ee(e,t,n,r,o){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var h=ke(e),b=ke(t),w=h?a:Ae(e),O=b?a:Ae(t),P=(w=w==i?p:w)==p,E=(O=O==i?p:O)==p,S=w==O;if(S&&De(e)){if(!De(t))return!1;h=!0,P=!1}if(S&&!P)return l||(l=new _e),h||Ve(e)?Se(e,t,n,r,o,l):function(e,t,n,r,o,i,a){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new Q(e),new Q(t)));case u:case s:case d:return Le(+e,+t);case c:return e.name==t.name&&e.message==t.message;case v:case g:return e==t+"";case f:var l=R;case y:var p=1&r;if(l||(l=k),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Se(l(e),l(t),r,o,i,a);return a.delete(e),b;case"[object Symbol]":if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,w,n,r,o,l);if(!(1&n)){var j=P&&z.call(e,"__wrapped__"),T=E&&z.call(t,"__wrapped__");if(j||T){var x=j?e.value():e,M=T?t.value():t;return l||(l=new _e),o(x,M,n,r,l)}}return!!S&&(l||(l=new _e),function(e,t,n,r,o,i){var a=1&n,u=je(e),s=u.length;if(s!=je(t).length&&!a)return!1;for(var c=s;c--;){var l=u[c];if(!(a?l in t:z.call(t,l)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<s;){var h=e[l=u[c]],v=t[l];if(r)var y=a?r(v,h,l,t,e,i):r(h,v,l,e,t,i);if(!(void 0===y?h===v||o(h,v,n,r,i):y)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,l))}(e,t,n,r,Ee,o))}function Se(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,d=2&n?new me:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var p=e[l],h=t[l];if(r)var v=a?r(h,p,l,t,e,i):r(p,h,l,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!L(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function je(e){return function(e,t,n){var r=t(e);return ke(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,We,Me)}function Te(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function xe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Fe(e)||function(e){return!!H&&H in e}(e))&&(Ne(e)?$:w).test(Ce(e))}(n)?n:void 0}ye.prototype.clear=function(){this.__data__=se?se(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(se){var n=t[e];return n===r?void 0:n}return z.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:z.call(t,e)},ye.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=se&&void 0===t?r:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0||(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,0))},ge.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return we(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(oe||ge),string:new ye}},be.prototype.delete=function(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Te(this,e).get(e)},be.prototype.has=function(e){return Te(this,e).has(e)},be.prototype.set=function(e,t){var n=Te(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},me.prototype.add=me.prototype.push=function(e){return this.__data__.set(e,r),this},me.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new ge,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var Me=ee?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,o=null==t?0:t.length,i=0,a=[];++r<o;){var u=t[r];s=u,J.call(e,s)&&(a[i++]=u)}var s;return a}(ee(e)))}:function(){return[]},Ae=Oe;function Ie(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Ce(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Le(e,t){return e===t||e!=e&&t!=t}(re&&Ae(new re(new ArrayBuffer(1)))!=_||oe&&Ae(new oe)!=f||ie&&Ae(ie.resolve())!=h||ae&&Ae(new ae)!=y||ue&&Ae(new ue)!=b)&&(Ae=function(e){var t=Oe(e),n=t==p?e.constructor:void 0,r=n?Ce(n):"";if(r)switch(r){case ce:return _;case le:return f;case fe:return h;case de:return y;case pe:return b}return t});var Re=Pe(function(){return arguments}())?Pe:function(e){return Ue(e)&&z.call(e,"callee")&&!J.call(e,"callee")},ke=Array.isArray,De=te||function(){return!1};function Ne(e){if(!Fe(e))return!1;var t=Oe(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ue(e){return null!=e&&"object"==typeof e}var Ve=C?function(e){return function(t){return e(t)}}(C):function(e){return Ue(e)&&Be(e.length)&&!!P[Oe(e)]};function We(e){return null!=(t=e)&&Be(t.length)&&!Ne(t)?function(e,t){var n=ke(e),r=!n&&Re(e),o=!n&&!r&&De(e),i=!n&&!r&&!o&&Ve(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var c in e)!z.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ie(c,s))||u.push(c);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||V))return ne(e);var t,n,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Ee(e,t)}},3096:function(e){e.exports=function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var s=n[a]={exports:{}};t[a][0].call(s.exports,(function(e){return o(t[a][1][e]||e)}),s,s.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(r,o,i,a,u,s,c,l,f){"use strict";var d=e("crypto");function p(e,t){return function(e,t){var n;if(void 0===(n="passthrough"!==t.algorithm?d.createHash(t.algorithm):new m).write&&(n.write=n.update,n.end=n.update),b(t,n).dispatch(e),n.update||n.end(""),n.digest)return n.digest("buffer"===t.encoding?void 0:t.encoding);var r=n.read();return"buffer"!==t.encoding?r.toString(t.encoding):r}(e,t=y(e,t))}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=d.getHashes?d.getHashes().slice():["sha1","md5"];h.push("passthrough");var v=["buffer","hex","binary","base64"];function y(e,t){t=t||{};var n={};if(n.algorithm=t.algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<h.length;++r)h[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=h[r]);if(-1===h.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+h.join(", "));if(-1===v.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+v.join(", "));return n}function g(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function b(e,t,n){function r(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var o,a=Object.prototype.toString.call(t),u=/\[object (.*)\]/i.exec(a);if(u=(u=u?u[1]:"unknown:["+a+"]").toLowerCase(),0<=(o=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+o+"]");if(n.push(t),void 0!==i&&i.isBuffer&&i.isBuffer(t))return r("buffer:"),r(t);if("object"===u||"function"===u||"asyncfunction"===u){var s=Object.keys(t);e.unorderedObjects&&(s=s.sort()),!1===e.respectType||g(t)||s.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(s=s.filter((function(t){return!e.excludeKeys(t)}))),r("object:"+s.length+":");var c=this;return s.forEach((function(n){c.dispatch(n),r(":"),e.excludeValues||c.dispatch(t[n]),r(",")}))}if(!this["_"+u]){if(e.ignoreUnknown)return r("["+u+"]");throw new Error('Unknown object type "'+u+'"')}this["_"+u](t)},_array:function(t,o){o=void 0!==o?o:!1!==e.unorderedArrays;var i=this;if(r("array:"+t.length+":"),!o||t.length<=1)return t.forEach((function(e){return i.dispatch(e)}));var a=[],u=t.map((function(t){var r=new m,o=n.slice();return b(e,r,o).dispatch(t),a=a.concat(o.slice(n.length)),r.read().toString()}));return n=n.concat(a),u.sort(),this._array(u,!1)},_date:function(e){return r("date:"+e.toJSON())},_symbol:function(e){return r("symbol:"+e.toString())},_error:function(e){return r("error:"+e.toString())},_boolean:function(e){return r("bool:"+e.toString())},_string:function(e){r("string:"+e.length+":"),r(e.toString())},_function:function(t){r("fn:"),g(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r("number:"+e.toString())},_xml:function(e){return r("xml:"+e.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(e){return r("regex:"+e.toString())},_uint8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return r("url:"+e.toString())},_map:function(t){r("map:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_set:function(t){r("set:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_file:function(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_bigint:function(e){return r("bigint:"+e.toString())},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function m(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),b(t=y(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,n){(function(e,t,r,o,i,a,u,s,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),a="A".charCodeAt(0),u="-".charCodeAt(0),s="_".charCodeAt(0);function c(e){var t=e.charCodeAt(0);return t===n||t===u?62:t===r||t===s?63:t<o?-1:t<o+10?t-o+26+26:t<a+26?t-a:t<i+26?t-i+26:void 0}e.toByteArray=function(e){var n,r;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.length,i="="===e.charAt(o-2)?2:"="===e.charAt(o-1)?1:0,a=new t(3*e.length/4-i),u=0<i?e.length-4:e.length,s=0;function l(e){a[s++]=e}for(n=0;n<u;n+=4,0)l((16711680&(r=c(e.charAt(n))<<18|c(e.charAt(n+1))<<12|c(e.charAt(n+2))<<6|c(e.charAt(n+3))))>>16),l((65280&r)>>8),l(255&r);return 2==i?l(255&(r=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==i&&(l((r=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),l(255&r)),a},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,a="";function u(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)a+=u((o=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+u(o>>12&63)+u(o>>6&63)+u(63&o);switch(i){case 1:a+=u((n=e[e.length-1])>>2),a+=u(n<<4&63),a+="==";break;case 2:a+=u((n=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=u(n>>4&63),a+=u(n<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,n){(function(t,r,o,i,a,u,s,c,l){var f=e("base64-js"),d=e("ieee754");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);var r,i,a,u,s,c=typeof e;if("base64"===t&&"string"==c)for(e=(r=e).trim?r.trim():r.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==c)i=T(e);else if("string"==c)i=o.byteLength(e,t);else{if("object"!=c)throw new Error("First argument needs to be a number, array or string.");i=T(e.length)}if(o._useTypedArrays?a=o._augment(new Uint8Array(i)):((a=this).length=i,a._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(x(s=e)||o.isBuffer(s)||s&&"object"==typeof s&&"number"==typeof s.length)for(u=0;u<i;u++)o.isBuffer(e)?a[u]=e.readUInt8(u):a[u]=e[u];else if("string"==c)a.write(e,0,t);else if("number"==c&&!o._useTypedArrays&&!n)for(u=0;u<i;u++)a[u]=0;return a}function p(e,t,n,r){r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+1<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(o=e[t],t+1<i&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<i&&(o|=e[t+1])),o}function h(e,t,n,r){r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+3<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(t+2<i&&(o=e[t+2]<<16),t+1<i&&(o|=e[t+1]<<8),o|=e[t],t+3<i&&(o+=e[t+3]<<24>>>0)):(t+1<i&&(o=e[t+1]<<16),t+2<i&&(o|=e[t+2]<<8),t+3<i&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function v(e,t,n,r){if(r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=p(e,t,n,!0);return 32768&o?-1*(65535-o+1):o}}function y(e,t,n,r){if(r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=h(e,t,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function g(e,t,n,r){return r||(N("boolean"==typeof n,"missing or invalid endian"),N(t+3<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,23,4)}function b(e,t,n,r){return r||(N("boolean"==typeof n,"missing or invalid endian"),N(t+7<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,52,8)}function m(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+1<e.length,"trying to write beyond buffer length"),R(t,65535));var i=e.length;if(!(i<=n))for(var a=0,u=Math.min(i-n,2);a<u;a++)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function _(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"trying to write beyond buffer length"),R(t,4294967295));var i=e.length;if(!(i<=n))for(var a=0,u=Math.min(i-n,4);a<u;a++)e[n+a]=t>>>8*(r?a:3-a)&255}function w(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+1<e.length,"Trying to write beyond buffer length"),k(t,32767,-32768)),e.length<=n||m(e,0<=t?t:65535+t+1,n,r,o)}function O(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"Trying to write beyond buffer length"),k(t,2147483647,-2147483648)),e.length<=n||_(e,0<=t?t:4294967295+t+1,n,r,o)}function P(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"Trying to write beyond buffer length"),D(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||d.write(e,t,n,r,23,4)}function E(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+7<e.length,"Trying to write beyond buffer length"),D(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||d.write(e,t,n,r,52,8)}n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=A(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=I(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(e,t){if(N(x(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new o(0);if(1===e.length)return e[0];if("number"!=typeof t)for(i=t=0;i<e.length;i++)t+=e[i].length;for(var n=new o(t),r=0,i=0;i<e.length;i++){var a=e[i];a.copy(n,r),r+=a.length}return n},o.prototype.write=function(e,t,n,r){var i;isFinite(t)?isFinite(n)||(r=n,n=void 0):(i=r,r=t,t=n,n=i),t=Number(t)||0;var a,u,s,c,l,f,d,p=this.length-t;switch((!n||p<(n=Number(n)))&&(n=p),r=String(r||"utf8").toLowerCase()){case"hex":a=function(e,t,n,r){n=Number(n)||0;var i=e.length-n;(!r||i<(r=Number(r)))&&(r=i);var a=t.length;N(a%2==0,"Invalid hex string"),a/2<r&&(r=a/2);for(var u=0;u<r;u++){var s=parseInt(t.substr(2*u,2),16);N(!isNaN(s),"Invalid hex string"),e[n+u]=s}return o._charsWritten=2*u,u}(this,e,t,n);break;case"utf8":case"utf-8":l=e,f=t,d=n,a=o._charsWritten=C(A(l),this,f,d);break;case"ascii":case"binary":a=function(e,t,n,r){return o._charsWritten=C(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}(this,e,t,n);break;case"base64":u=e,s=t,c=n,a=o._charsWritten=C(I(u),this,s,c);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=function(e,t,n,r){return o._charsWritten=C(function(e){for(var t,n,r,o=[],i=0;i<e.length;i++)n=(t=e.charCodeAt(i))>>8,r=t%256,o.push(r),o.push(n);return o}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return a},o.prototype.toString=function(e,t,n){var r,o,i,a,u=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):n=u.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;i++)o+=M(e[i]);return o}(u,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=L(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+L(o)}(u,t,n);break;case"ascii":case"binary":r=function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}(u,t,n);break;case"base64":o=u,a=n,r=0===(i=t)&&a===o.length?f.fromByteArray(o):f.fromByteArray(o.slice(i,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(u,t,n);break;default:throw new Error("Unknown encoding")}return r},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t=t||0,r!==n&&0!==e.length&&0!==this.length){N(n<=r,"sourceEnd < sourceStart"),N(0<=t&&t<e.length,"targetStart out of bounds"),N(0<=n&&n<this.length,"sourceStart out of bounds"),N(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(i<100||!o._useTypedArrays)for(var a=0;a<i;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+i),t)}},o.prototype.slice=function(e,t){var n=this.length;if(e=j(e,n,0),t=j(t,n,n),o._useTypedArrays)return o._augment(this.subarray(e,t));for(var r=t-e,i=new o(r,void 0,!0),a=0;a<r;a++)i[a]=this[a+e];return i},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.readUInt8=function(e,t){if(t||(N(null!=e,"missing offset"),N(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return h(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return h(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(N(null!=e,"missing offset"),N(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return v(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return v(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return g(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return g(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,n){n||(N(null!=e,"missing value"),N(null!=t,"missing offset"),N(t<this.length,"trying to write beyond buffer length"),R(e,255)),t>=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,n){m(this,e,t,!0,n)},o.prototype.writeUInt16BE=function(e,t,n){m(this,e,t,!1,n)},o.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},o.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},o.prototype.writeInt8=function(e,t,n){n||(N(null!=e,"missing value"),N(null!=t,"missing offset"),N(t<this.length,"Trying to write beyond buffer length"),k(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},o.prototype.writeInt16LE=function(e,t,n){w(this,e,t,!0,n)},o.prototype.writeInt16BE=function(e,t,n){w(this,e,t,!1,n)},o.prototype.writeInt32LE=function(e,t,n){O(this,e,t,!0,n)},o.prototype.writeInt32BE=function(e,t,n){O(this,e,t,!1,n)},o.prototype.writeFloatLE=function(e,t,n){P(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){P(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){E(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){E(this,e,t,!1,n)},o.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),N("number"==typeof e&&!isNaN(e),"value is not a number"),N(t<=n,"end < start"),n!==t&&0!==this.length){N(0<=t&&t<this.length,"start out of bounds"),N(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},o.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=M(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var S=o.prototype;function j(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function T(e){return(e=~~Math.ceil(+e))<0?0:e}function x(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function A(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else{var o=n;55296<=r&&r<=57343&&n++;for(var i=encodeURIComponent(e.slice(o,n+1)).substr(1).split("%"),a=0;a<i.length;a++)t.push(parseInt(i[a],16))}}return t}function I(e){return f.toByteArray(e)}function C(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function L(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function R(e,t){N("number"==typeof e,"cannot write a non-number as a number"),N(0<=e,"specified a negative value for writing an unsigned value"),N(e<=t,"value is larger than maximum value for type"),N(Math.floor(e)===e,"value has a fractional component")}function k(e,t,n){N("number"==typeof e,"cannot write a non-number as a number"),N(e<=t,"value larger than maximum allowed value"),N(n<=e,"value smaller than minimum allowed value"),N(Math.floor(e)===e,"value has a fractional component")}function D(e,t,n){N("number"==typeof e,"cannot write a non-number as a number"),N(e<=t,"value larger than maximum allowed value"),N(n<=e,"value smaller than minimum allowed value")}function N(e,t){if(!e)throw new Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=S.get,e.set=S.set,e.write=S.write,e.toString=S.toString,e.toLocaleString=S.toString,e.toJSON=S.toJSON,e.copy=S.copy,e.slice=S.slice,e.readUInt8=S.readUInt8,e.readUInt16LE=S.readUInt16LE,e.readUInt16BE=S.readUInt16BE,e.readUInt32LE=S.readUInt32LE,e.readUInt32BE=S.readUInt32BE,e.readInt8=S.readInt8,e.readInt16LE=S.readInt16LE,e.readInt16BE=S.readInt16BE,e.readInt32LE=S.readInt32LE,e.readInt32BE=S.readInt32BE,e.readFloatLE=S.readFloatLE,e.readFloatBE=S.readFloatBE,e.readDoubleLE=S.readDoubleLE,e.readDoubleBE=S.readDoubleBE,e.writeUInt8=S.writeUInt8,e.writeUInt16LE=S.writeUInt16LE,e.writeUInt16BE=S.writeUInt16BE,e.writeUInt32LE=S.writeUInt32LE,e.writeUInt32BE=S.writeUInt32BE,e.writeInt8=S.writeInt8,e.writeInt16LE=S.writeInt16LE,e.writeInt16BE=S.writeInt16BE,e.writeInt32LE=S.writeInt32LE,e.writeInt32BE=S.writeInt32BE,e.writeFloatLE=S.writeFloatLE,e.writeFloatBE=S.writeFloatBE,e.writeDoubleLE=S.writeDoubleLE,e.writeDoubleBE=S.writeDoubleBE,e.fill=S.fill,e.inspect=S.inspect,e.toArrayBuffer=S.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=new(o=e("buffer").Buffer)(4);f.fill(0),t.exports={hash:function(e,t,n,r){return o.isBuffer(e)||(e=new o(e)),function(e,t,n){for(var r=new o(t),i=n?r.writeInt32BE:r.writeInt32LE,a=0;a<e.length;a++)i.call(r,e[a],4*a,!0);return r}(t(function(e,t){var n;e.length%4!=0&&(n=e.length+(4-e.length%4),e=o.concat([e,f],n));for(var r=[],i=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=4)r.push(i.call(e,a));return r}(e,r),8*e.length),n,r)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,n){(function(t,r,o,i,a,u,s,c,l){o=e("buffer").Buffer;var f=e("./sha"),d=e("./sha256"),p=e("./rng"),h={sha1:f,sha256:d,md5:e("./md5")},v=64,y=new o(v);function g(e,t){var n=h[e=e||"sha1"],r=[];return n||b("algorithm:",e,"is not yet supported"),{update:function(e){return o.isBuffer(e)||(e=new o(e)),r.push(e),e.length,this},digest:function(e){var i=o.concat(r),a=t?function(e,t,n){o.isBuffer(t)||(t=new o(t)),o.isBuffer(n)||(n=new o(n)),t.length>v?t=e(t):t.length<v&&(t=o.concat([t,y],v));for(var r=new o(v),i=new o(v),a=0;a<v;a++)r[a]=54^t[a],i[a]=92^t[a];var u=e(o.concat([r,n]));return e(o.concat([i,u]))}(n,t,i):n(i);return r=null,e?a.toString(e):a}}}function b(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}y.fill(0),n.createHash=function(e){return g(e)},n.createHmac=g,n.randomBytes=function(e,t){if(!t||!t.call)return new o(p(e));try{t.call(this,void 0,new o(p(e)))}catch(e){t(e)}},function(e,t){for(var n in e)t(e[n])}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],(function(e){n[e]=function(){b("sorry,",e,"is not implemented yet")}}))}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var u=n,s=r,c=o,l=i;n=h(n,r,o,i,e[a+0],7,-680876936),i=h(i,n,r,o,e[a+1],12,-389564586),o=h(o,i,n,r,e[a+2],17,606105819),r=h(r,o,i,n,e[a+3],22,-1044525330),n=h(n,r,o,i,e[a+4],7,-176418897),i=h(i,n,r,o,e[a+5],12,1200080426),o=h(o,i,n,r,e[a+6],17,-1473231341),r=h(r,o,i,n,e[a+7],22,-45705983),n=h(n,r,o,i,e[a+8],7,1770035416),i=h(i,n,r,o,e[a+9],12,-1958414417),o=h(o,i,n,r,e[a+10],17,-42063),r=h(r,o,i,n,e[a+11],22,-1990404162),n=h(n,r,o,i,e[a+12],7,1804603682),i=h(i,n,r,o,e[a+13],12,-40341101),o=h(o,i,n,r,e[a+14],17,-1502002290),n=v(n,r=h(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=v(i,n,r,o,e[a+6],9,-1069501632),o=v(o,i,n,r,e[a+11],14,643717713),r=v(r,o,i,n,e[a+0],20,-373897302),n=v(n,r,o,i,e[a+5],5,-701558691),i=v(i,n,r,o,e[a+10],9,38016083),o=v(o,i,n,r,e[a+15],14,-660478335),r=v(r,o,i,n,e[a+4],20,-405537848),n=v(n,r,o,i,e[a+9],5,568446438),i=v(i,n,r,o,e[a+14],9,-1019803690),o=v(o,i,n,r,e[a+3],14,-187363961),r=v(r,o,i,n,e[a+8],20,1163531501),n=v(n,r,o,i,e[a+13],5,-1444681467),i=v(i,n,r,o,e[a+2],9,-51403784),o=v(o,i,n,r,e[a+7],14,1735328473),n=y(n,r=v(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=y(i,n,r,o,e[a+8],11,-2022574463),o=y(o,i,n,r,e[a+11],16,1839030562),r=y(r,o,i,n,e[a+14],23,-35309556),n=y(n,r,o,i,e[a+1],4,-1530992060),i=y(i,n,r,o,e[a+4],11,1272893353),o=y(o,i,n,r,e[a+7],16,-155497632),r=y(r,o,i,n,e[a+10],23,-1094730640),n=y(n,r,o,i,e[a+13],4,681279174),i=y(i,n,r,o,e[a+0],11,-358537222),o=y(o,i,n,r,e[a+3],16,-722521979),r=y(r,o,i,n,e[a+6],23,76029189),n=y(n,r,o,i,e[a+9],4,-640364487),i=y(i,n,r,o,e[a+12],11,-421815835),o=y(o,i,n,r,e[a+15],16,530742520),n=g(n,r=y(r,o,i,n,e[a+2],23,-995338651),o,i,e[a+0],6,-198630844),i=g(i,n,r,o,e[a+7],10,1126891415),o=g(o,i,n,r,e[a+14],15,-1416354905),r=g(r,o,i,n,e[a+5],21,-57434055),n=g(n,r,o,i,e[a+12],6,1700485571),i=g(i,n,r,o,e[a+3],10,-1894986606),o=g(o,i,n,r,e[a+10],15,-1051523),r=g(r,o,i,n,e[a+1],21,-2054922799),n=g(n,r,o,i,e[a+8],6,1873313359),i=g(i,n,r,o,e[a+15],10,-30611744),o=g(o,i,n,r,e[a+6],15,-1560198380),r=g(r,o,i,n,e[a+13],21,1309151649),n=g(n,r,o,i,e[a+4],6,-145523070),i=g(i,n,r,o,e[a+11],10,-1120210379),o=g(o,i,n,r,e[a+2],15,718787259),r=g(r,o,i,n,e[a+9],21,-343485551),n=b(n,u),r=b(r,s),o=b(o,c),i=b(i,l)}return Array(n,r,o,i)}function p(e,t,n,r,o,i){return b((a=b(b(t,e),b(r,i)))<<(u=o)|a>>>32-u,n);var a,u}function h(e,t,n,r,o,i,a){return p(t&n|~t&r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return p(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return p(t^n^r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return p(n^(t|~r),e,t,o,i,a)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return f.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,n){(function(e,n,r,o,i,a,u,s,c){var l;l=function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n},t.exports=l}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,o,i,a,u=Array(80),s=1732584193,c=-271733879,l=-1732584194,f=271733878,d=-1009589776,v=0;v<e.length;v+=16){for(var y=s,g=c,b=l,m=f,_=d,w=0;w<80;w++){u[w]=w<16?e[v+w]:h(u[w-3]^u[w-8]^u[w-14]^u[w-16],1);var O=p(p(h(s,5),(o=c,i=l,a=f,(r=w)<20?o&i|~o&a:!(r<40)&&r<60?o&i|o&a|i&a:o^i^a)),p(p(d,u[w]),(n=w)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));d=f,f=l,l=h(c,30),c=s,s=O}s=p(s,y),c=p(c,g),l=p(l,b),f=p(f,m),d=p(d,_)}return Array(s,c,l,f,d)}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){return e<<t|e>>>32-t}t.exports=function(e){return f.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function d(e,t){return e>>>t|e<<32-t}function p(e,t){var n,r,o,i,a,u,s,c,l,p,h=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),v=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),y=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var g,b,m,_,w,O,P,E,S=0;S<e.length;S+=16){n=v[0],r=v[1],o=v[2],i=v[3],a=v[4],u=v[5],s=v[6],c=v[7];for(var j=0;j<64;j++)y[j]=j<16?e[j+S]:f(f(f(d(E=y[j-2],17)^d(E,19)^E>>>10,y[j-7]),d(P=y[j-15],7)^d(P,18)^P>>>3),y[j-16]),l=f(f(f(f(c,d(O=a,6)^d(O,11)^d(O,25)),(w=a)&u^~w&s),h[j]),y[j]),p=f(d(_=n,2)^d(_,13)^d(_,22),(g=n)&(b=r)^g&(m=o)^b&m),c=s,s=u,u=a,a=f(i,l),i=o,o=r,r=n,n=f(l,p);v[0]=f(n,v[0]),v[1]=f(r,v[1]),v[2]=f(o,v[2]),v[3]=f(i,v[3]),v[4]=f(a,v[4]),v[5]=f(u,v[5]),v[6]=f(s,v[6]),v[7]=f(c,v[7])}return v}var h=e("./helpers");t.exports=function(e){return h.hash(e,p,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,n){(function(e,n,r,o,i,a,u,s,c){function l(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<n.length&&n.shift()())}),!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=l,e.addListener=l,e.once=l,e.off=l,e.removeListener=l,e.removeAllListeners=l,e.emit=l,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,n){(function(e,t,r,o,i,a,u,s,c){n.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,c=s>>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=u;0<l;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;0<l;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,u,s,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),2<=(t+=1<=a+f?d/s:d*Math.pow(2,1-f))*s&&(a++,s/=2),l<=a+f?(u=0,a=l):1<=a+f?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<<o|u,c+=o;0<c;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*v}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},6672:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.signUp=t.signOut=t.signInWithTenant=t.signInWithEmailAndPassword=t.signInWithCustomToken=t.setTenantId=t.resetPassword=t.isUserInitialized=t.onUserChange=void 0;var c,l=n(1741),f=n(5474),d=a(n(6256)),p=n(9449),h=n(2799),v=null,y=function(e,t){if("function"!=typeof e)throw new Error("bug: pendingGuard got arg which is not a function");return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return u(void 0,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:if(v)throw new Error('Function "'+v+'" is pending, other auth functions should not be used until it finishes');r=void 0,o.label=1;case 1:return o.trys.push([1,,3,4]),v=t,[4,e.apply(void 0,n)];case 2:return r=o.sent(),[3,4];case 3:return v=null,[7];case 4:return[2,r]}}))}))}},g=[new Promise((function(e){c=e})),function(e){l.FirebaseEnvironment.auth.tenantId=e,c(e)}],b=g[0],m=g[1];t.onUserChange=function(e){l.FirebaseEnvironment.auth.onAuthStateChanged((function(){return u(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return t=e,[4,u(void 0,void 0,Promise,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return l.FirebaseEnvironment.auth.currentUser?[4,(0,f.getCollectionWithPath)("users").getDocuments([{field:"authUserId",operator:"==",value:l.FirebaseEnvironment.auth.currentUser.uid}],void 0,1)]:[3,2];case 1:return[2,(e=t.sent()).data.length&&e.data[0].ref||null];case 2:return[2,null]}}))}))];case 1:return t.apply(void 0,[n.sent()]),[2]}}))}))}))},t.isUserInitialized=(0,p.once)((function(){return new Promise((function(e){(0,t.onUserChange)(e)}))})),t.resetPassword=function(e){return u(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,b];case 1:return t=n.sent(),[4,d.resetPassword({email:e,tenantId:t})];case 2:return n.sent(),[2]}}))}))},t.setTenantId=function(e){if(null!=l.FirebaseEnvironment.auth.tenantId)throw new Error("setTenantId() can be called only one time.");m(e)};var _=function(e){return u(void 0,void 0,Promise,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,l.FirebaseEnvironment.auth.signInWithCustomToken(e)];case 1:if(!(t=n.sent().user))throw new Error("signInWithCustomToken failed for tenant "+l.FirebaseEnvironment.auth.tenantId);return[2,t.uid]}}))}))},w=function(e,n){return u(void 0,void 0,Promise,(function(){var r,o,i;return s(this,(function(a){switch(a.label){case 0:return[4,b];case 1:return r=a.sent(),[4,(0,t.isUserInitialized)()];case 2:if(a.sent(),l.FirebaseEnvironment.auth.currentUser)throw new Error("Already signed in");return(null===(i=(0,h.getTenantInfo)(r))||void 0===i?void 0:i.name)===h.TenantName.oktagon?[3,3]:[3,5];case 3:return[4,O({email:e,password:n,tenantId:r})];case 4:return[2,a.sent()];case 5:return[4,l.FirebaseEnvironment.auth.signInWithEmailAndPassword(e,n)];case 6:if(!(o=a.sent().user))throw new Error("signInWithEmailAndPassword failed for user "+e+" and tenant "+r);return[2,o.uid]}}))}))},O=function(e){return u(void 0,void 0,Promise,(function(){var n,o;return s(this,(function(i){switch(i.label){case 0:return[4,b];case 1:return n=i.sent(),[4,(0,t.isUserInitialized)()];case 2:if(i.sent(),l.FirebaseEnvironment.auth.currentUser)throw new Error("Already signed in");return[4,d.signInWithTenant(r(r({},e),{tenantId:n}))];case 3:return o=i.sent(),[2,_(o)]}}))}))};t.signInWithCustomToken=y(_,"signInWithCustomToken"),t.signInWithEmailAndPassword=y(w,"signInWithEmailAndPassword"),t.signInWithTenant=y(O,"signInWithTenant"),t.signOut=y((function(){return u(void 0,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,b];case 1:return e.sent(),[4,(0,t.isUserInitialized)()];case 2:return e.sent(),[4,l.FirebaseEnvironment.auth.signOut()];case 3:return e.sent(),[2]}}))}))}),"signOut"),t.signUp=y((function(e,t,n,r){return u(void 0,void 0,void 0,(function(){var o;return s(this,(function(i){switch(i.label){case 0:return[4,b];case 1:return o=i.sent(),[4,d.signUpWithTenant({email:e,password:t,referralToken:r,tenantId:o,username:n})];case 2:return i.sent(),[2,w(e,t)]}}))}))}),"signUp")},2773:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6672),t),o(n(2799),t),o(n(9418),t)},2799:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.getTenantInfo=t.TenantName=void 0,function(e){e.grape="grape",e.oktagon="oktagon",e.o2Demo="o2_demo"}(n=t.TenantName||(t.TenantName={}));var r=[{id:"Xz3t0GHDgmPwjHRKt1Ga-4vicx",name:n.grape,stage:"production"},{id:"XhkAHxcqCBfqOXFcqe8s-mi6aw",name:n.grape,stage:"dev"},{id:"XA6ZOtuDD90uHsRkXNyj-e2xvz",name:n.oktagon,stage:"production"},{id:"Xo6dD3w9EPgPBsyclQaG-xdlns",name:n.oktagon,stage:"dev"},{id:"X0Q4o9TigUUTNe6TYAqR-j5sg1",name:n.o2Demo,stage:"production"},{id:"XQVQisSMOXeDswNOFwwk-kw39b",name:n.o2Demo,stage:"dev"}];t.getTenantInfo=function(e){var t;return null!==(t=r.find((function(t){return t.id===e})))&&void 0!==t?t:null}},9418:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerAppInstance=t.setAppInstance=t.getCurrentFirebaseAppInstance=t.getFirebaseAppInstance=void 0;var n={},r=null;t.getCurrentFirebaseAppInstance=function(){if(!r)throw new Error("Firebase app has not been initialized yet. First call registerAppInstance()");return r},t.getFirebaseAppInstance=function(e){var t;return null!==(t=n[e])&&void 0!==t?t:null},t.registerAppInstance=function(e,t){n[e]=t,r||o(e)};var o=function(e){var t=n[e];if(!t)throw new Error("Firebase environment ("+e+") doesn't exist");r=t};t.setAppInstance=o},5280:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0,function(e){e.default="default",e.development="development",e.production="production",e.test="test"}(n||(n={})),t.Environment=n},9896:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentEnvironment=t.setFirebaseEnvironment=t.initFirebaseEnvironment=t.FirebaseEnvironment=void 0;var r=n(2043),o=n(534),i=n(5055),a=n(44),u=n(5280);(0,r.setDefaultLevel)("error");var s={},c=null,l=function(){function e(e){this.environmentName=e,this.cachedDocuments={},this.cachedQueries={},s[e]=this,c||d(e)}return e.getCurrentEnvironment=function(){return p()},e.getDocumentWithPath=function(e,t){return p().getDocumentWithPath(e,t)},e.getEnvironment=function(e){return f(e)},e.getQueryWithParams=function(e){return p().getQueryWithParams(e)},e.setEnvironment=function(e,t){void 0===t&&(t=!1);var n=c;d(e),t&&(null==n||n.clearCache())},Object.defineProperty(e,"auth",{get:function(){return p().auth},enumerable:!1,configurable:!0}),Object.defineProperty(e,"firestore",{get:function(){return p().firestore},enumerable:!1,configurable:!0}),Object.defineProperty(e,"functions",{get:function(){return p().functions},enumerable:!1,configurable:!0}),Object.defineProperty(e,"installations",{get:function(){return p().installations},enumerable:!1,configurable:!0}),Object.defineProperty(e,"environmentName",{get:function(){return p().name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appInstance",{get:function(){var e=(0,a.getFirebaseAppInstance)(this.environmentName);if(!e)throw new Error("Firebase app instance does not exist");return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auth",{get:function(){return this.appInstance.auth()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firestore",{get:function(){return this.appInstance.firestore()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"functions",{get:function(){return this.appInstance.functions("europe-west3")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"installations",{get:function(){return this.appInstance.installations()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.environmentName},enumerable:!1,configurable:!0}),e.prototype.clearCache=function(){this.cachedDocuments={},this.cachedQueries={}},e.prototype.getDocumentWithPath=function(e,t){return this.cachedDocuments[e]||(this.cachedDocuments[e]=new o.Document(this,e,t)),this.cachedDocuments[e]},e.prototype.getQueryWithParams=function(e){var t=i.PaginatedQuery.hashParams(e);return this.cachedQueries[t]||(this.cachedQueries[t]=new i.PaginatedQuery(this,e)),this.cachedQueries[t]},e}();t.FirebaseEnvironment=l;var f=function(e){var t;return null!==(t=s[e])&&void 0!==t?t:null};t.initFirebaseEnvironment=function(e,t){if(void 0===t&&(t=u.Environment.default),function(e){return null!=f(e)}(t))throw new Error('Environment "'+t+'" already exists');(0,a.registerAppInstance)(t,e);var n=new l(t);s[t]=n};var d=function(e){var t=f(e);if(!t)throw new Error('Environment "'+e+'" does not exist');c=t,(0,a.setAppInstance)(e)};t.setFirebaseEnvironment=d;var p=function(){if(!c)throw new Error("Environment not been initialized yet. First call initFirebaseEnvironment()");return c};t.getCurrentEnvironment=p},1741:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FirebaseEnvironment=void 0;var r=n(9896);Object.defineProperty(t,"FirebaseEnvironment",{enumerable:!0,get:function(){return r.FirebaseEnvironment}})},666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCollectionWithPath=void 0;var r=n(5256);t.getCollectionWithPath=function(e){return new r.Collection(e)}},3363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDocumentWithPath=t.getDocumentWithCollectionPath=t.getDocumentWithCollection=void 0;var r=n(9896);t.getDocumentWithCollection=function(e,t){var n=(0,r.getCurrentEnvironment)().firestore.collection(e).doc(t).path;return o(n)};var o=function(e,t){return(0,r.getCurrentEnvironment)().getDocumentWithPath(e,t)};t.getDocumentWithPath=o,t.getDocumentWithCollectionPath=function(e,t){var n=(0,r.getCurrentEnvironment)().firestore.collection(e).doc().path;return(0,r.getCurrentEnvironment)().getDocumentWithPath(n,t)}},9269:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(666),t),o(n(3363),t),o(n(7430),t)},7430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQueryWithOrderBy=t.convertRowWhereFilterToWhereFilter=t.convertRowFilterToFilter=t.getQueryByFilter=t.getQueryWithWhereFilters=t.getQueryWithParams=void 0;var r=n(9896);t.getQueryWithParams=function(e){return(0,r.getCurrentEnvironment)().getQueryWithParams(e)};var o=function(e,t){return(null==e?void 0:e.length)?e.reduce((function(e,t){return Array.isArray(t.value)&&0===t.value.length?e:e.where(t.field,t.operator,t.value)}),t):t};t.getQueryWithWhereFilters=o,t.getQueryByFilter=function(e,t){var n=o(e.where,t);return a(e.orderBy,n)},t.convertRowFilterToFilter=function(e){var t,n;return{where:null!==(n=null===(t=e.where)||void 0===t?void 0:t.map(i))&&void 0!==n?n:[],orderBy:e.orderBy?[{field:e.orderBy.fieldPath,directionStr:e.orderBy.directionStr}]:[],limit:e.limit}};var i=function(e){return{field:e.fieldPath,operator:e.opStr,value:e.value}};t.convertRowWhereFilterToWhereFilter=i;var a=function(e,t){return(null==e?void 0:e.length)?e.reduce((function(e,t){return e.orderBy(t.field,t.directionStr)}),t):t};t.getQueryWithOrderBy=a},5256:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var i=n(44),a=n(3363);t.Collection=function(e){var t=this;this.createDocument=function(e){var n=e?t._ref.doc(e):t._ref.doc();return(0,a.getDocumentWithPath)(n.path)},this.getDocumentFromSnapshot=function(e){return r(t,void 0,Promise,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return[4,(t=(0,a.getDocumentWithPath)(e.ref.path)).updateCache(e.data())];case 1:return n.sent(),[2,t]}}))}))},this.getDocumentsFromQuerySnapshot=function(e){return r(t,void 0,Promise,(function(){var t,n=this;return o(this,(function(i){switch(i.label){case 0:return t={},[4,Promise.all(e.docs.map((function(e){return r(n,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.getDocumentFromSnapshot(e)];case 1:return[2,t.sent()]}}))}))})))];case 1:return[2,(t.data=i.sent(),t.lastCursor=e.size&&e.docs[e.size-1]||null,t)]}}))}))},this.getDocumentsQuery=function(e,n,r){void 0===e&&(e=[]);var o=e.reduce((function(e,t){return e.where(t.field,t.operator,t.value)}),t._ref);return n&&(o=o.orderBy(n.field,n.directionStr)),t.getDocumentsQueryAfter(o,r)},this.getDocumentsQueryAfter=function(e,t,n){return(n&&e.startAfter(n)||e).limit(Math.min(Math.max(t||10,1),10))},this.getDocuments=function(e,n,i){return void 0===e&&(e=[]),r(t,void 0,Promise,(function(){var t,a,u,s=this;return o(this,(function(c){switch(c.label){case 0:return t=this.getDocumentsQuery(e,n,i),u=this.getDocumentsFromQuerySnapshot,[4,t.get()];case 1:return[4,u.apply(this,[c.sent()])];case 2:return[2,{data:(a=c.sent()).data,getNext:function(e){return r(s,void 0,void 0,(function(){var n,r,u,s,c;return o(this,(function(o){switch(o.label){case 0:return a.lastCursor?(s=this.getDocumentsFromQuerySnapshot,[4,this.getDocumentsQueryAfter(t,e||i,a.lastCursor).get()]):[2,[]];case 1:return[4,s.apply(this,[o.sent()])];case 2:return n=o.sent(),r=n.data,u=n.lastCursor,(c=a.data).push.apply(c,r),a.lastCursor=u,[2,r]}}))}))}}]}}))}))},this._ref=(0,i.getCurrentFirebaseAppInstance)().firestore().collection(e)}},534:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;var a=new(n(3631).Logger)("document"),u=function(){function e(e,t,n){var u=this;this.firebaseEnvironment=e,this._data=null,this._fetchPromise=null,this.cancelSubscription=null,this.delete=function(){return o(u,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.ref.delete()];case 1:return e.sent(),[2]}}))}))},this.fetch=function(e){return void 0===e&&(e=!1),o(u,void 0,Promise,(function(){var t,n=this;return i(this,(function(r){switch(r.label){case 0:return this._fetchPromise||this.data&&!e||(this._fetchPromise=new Promise((function(e,t){n.ref.get().then((function(t){n.updateCache(t.data()),e(n.data)})).catch(t)}))),(t=this._fetchPromise)?[4,this._fetchPromise]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return[2,t||this.data]}}))}))},this.get=function(e){return void 0===e&&(e=!1),o(u,void 0,Promise,(function(){var t,n=this;return i(this,(function(r){switch(r.label){case 0:return this._fetchPromise||this.data&&!e||(this._fetchPromise=new Promise((function(e,t){n.ref.get().then((function(t){n.updateCache(t.data()),e(n.data)})).catch(t)}))),(t=this._fetchPromise)?[4,this._fetchPromise]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return[2,t||this.data]}}))}))},this.subscribe=function(){return o(u,void 0,void 0,(function(){var e=this;return i(this,(function(t){return this.isSubscribing||(a.info("Started subscribing to document changes ("+this.ref.path+")"),this.cancelSubscription=this.ref.onSnapshot({next:function(t){e.updateCache(t.data())}})),[2]}))}))},this.unsubscribe=function(){u.cancelSubscription&&(u.cancelSubscription(),u.cancelSubscription=null,a.info("Stopped subscribing to document changes ("+u.ref.path+")"))},this.update=function(e,t){return void 0===t&&(t=null),o(u,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return e?(this.updateCache(e,t),[4,this.ref.set(e,t||{})]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},this.updateCache=function(e,t){void 0===t&&(t=null),e&&(t?t.merge&&(u._data=r(r({},u._data),e)):u._data=e)},this.ref=e.firestore.doc(t),this.updateCache(n)}return Object.defineProperty(e.prototype,"id",{get:function(){return this.ref.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSubscribing",{get:function(){return null!==this.cancelSubscription},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoaded",{get:function(){return null!=this._data},enumerable:!1,configurable:!0}),e}();t.Document=u},5474:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.runTransaction=t.Document=t.Collection=t.batch=t.admin=void 0;var i=n(5256);Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return i.Collection}});var a=n(534);Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return a.Document}});var u=n(4679);Object.defineProperty(t,"batch",{enumerable:!0,get:function(){return u.batch}}),Object.defineProperty(t,"runTransaction",{enumerable:!0,get:function(){return u.runTransaction}});var s={batch:u.batchAdmin,runTransaction:u.runTransactionAdmin,collection:u.collectionAdmin};t.admin=s,o(n(9269),t),o(n(5055),t),o(n(7540),t),o(n(9807),t)},1174:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6040:function(e,t){"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.AdProfileType=t.OnlineSkippability=t.StreamSkippability=void 0,(o=t.StreamSkippability||(t.StreamSkippability={})).SKIPPABLE="SKIPPABLE",o.NOT_SKIPPABLE="NOT_SKIPPABLE",o.AUTO_SKIP="AUTO_SKIP",(r=t.OnlineSkippability||(t.OnlineSkippability={})).SKIPPABLE="SKIPPABLE",r.NOT_SKIPPABLE="NOT_SKIPPABLE",r.VAST_BASED="VAST_BASED",(n=t.AdProfileType||(t.AdProfileType={})).ONLINE="ONLINE",n.STREAM="STREAM"},4248:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9786:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1174),t),o(n(4248),t),o(n(6040),t)},5164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5427:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ASSET_PRESET_PLACEMENTS=t.AssetPresetPlacement=void 0,function(e){e.TV_CHANNEL="tvChannel",e.CHANNEL="channel",e.SECTION="section",e.VIDEO="video",e.TAG="tag"}(n=t.AssetPresetPlacement||(t.AssetPresetPlacement={})),t.ASSET_PRESET_PLACEMENTS=Object.values(n)},2399:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5164),t),o(n(5427),t)},9970:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6172:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2082:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9970),t),o(n(6172),t)},6205:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8458:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6205),t)},9807:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9786),t),o(n(2399),t),o(n(8458),t),o(n(2082),t),o(n(2867),t),o(n(6241),t),o(n(8362),t),o(n(721),t),o(n(7031),t),o(n(735),t),o(n(1273),t),o(n(5296),t),o(n(2665),t),o(n(5532),t),o(n(925),t),o(n(6195),t),o(n(9969),t),o(n(5628),t),o(n(7888),t),o(n(9574),t),o(n(2585),t),o(n(4327),t),o(n(9279),t)},2867:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5900),t),o(n(7083),t)},5900:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7083:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.InviteType=t.InviteState=void 0,(r=t.InviteState||(t.InviteState={})).CANCELLED="CANCELLED",r.CLOSED="CLOSED",r.EXPIRED="EXPIRED",r.NEW="NEW",(n=t.InviteType||(t.InviteType={})).ADMIN="ADMIN",n.PAIR_ACCOUNTS="PAIR_ACCOUNTS",n.SINGLE_SIGN_ON="SINGLE_SIGN_ON"},6241:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5671),t)},5671:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MarkerType=void 0,(n=t.MarkerType||(t.MarkerType={})).AD="AD",n.AD_SEGMENT="AD_SEGMENT",n.CHAPTER="CHAPTER",n.CREDITS="CREDITS",n.INTRO="INTRO"},8362:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7140),t)},7140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},721:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1725),t),o(n(7421),t),o(n(7302),t)},1725:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7421:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=t.MonetizationPlacementType=void 0;var r,o=n(8741);Object.defineProperty(t,"MONETIZATION_FREQUENCY",{enumerable:!0,get:function(){return o.MONETIZATION_FREQUENCY}}),(r=t.MonetizationPlacementType||(t.MonetizationPlacementType={})).VIDEO="video",r.SECTION="section",r.CHANNEL="channel",r.CONDITION="condition",r.TV_CHANNEL="tvChannel"},7302:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7031:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9422),t),o(n(5001),t)},9422:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},735:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2180),t)},2180:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1273:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(193),t),o(n(5034),t),o(n(7840),t)},193:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=void 0;var r=n(8741);Object.defineProperty(t,"PurchaseStatus",{enumerable:!0,get:function(){return r.PurchaseStatus}})},5034:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5296:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1573),t)},1573:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2665:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4855),t),o(n(6315),t),o(n(2954),t)},4855:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6315:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RowItemComponent=t.RowComponent=t.RowOrderByFieldPath=t.RowWhereFilterFieldPath=t.RowFilterCollection=void 0;var r,o,i=n(8741);Object.defineProperty(t,"RowComponent",{enumerable:!0,get:function(){return i.RowComponent}}),Object.defineProperty(t,"RowItemComponent",{enumerable:!0,get:function(){return i.RowItemComponent}}),(o=t.RowFilterCollection||(t.RowFilterCollection={})).VIDEOS="videos",o.TAGS="tags",o.TV_CHANNELS="tvChannels",(r=t.RowWhereFilterFieldPath||(t.RowWhereFilterFieldPath={})).CREATED="created",r.TAGS="tags",r.TAG_TYPE_REF="tagTypeRef",r.TYPE="type",r.CONTENT_TYPE="contentType",(t.RowOrderByFieldPath||(t.RowOrderByFieldPath={})).CREATED="created"},2954:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ORDER_BY_DIRECTIONS=t.WHERE_FILTER_OPERATORS=t.SCREEN_ROW_TYPES=void 0,t.SCREEN_ROW_TYPES=["filter","custom","continueToWatch","favourites"],t.WHERE_FILTER_OPERATORS=["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],t.ORDER_BY_DIRECTIONS=["desc","asc"]},5532:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4539),t)},4539:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},925:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2966),t)},2966:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.DurationUnits=void 0,(r=t.DurationUnits||(t.DurationUnits={})).DAY="day",r.MONTH="month",(n=t.ContentType||(t.ContentType={})).CHANNEL="channel",n.EPISODE="episode",n.MOVIE="movie",n.MAGAZINE="magazine",n.PLAYLIST="playlist",n.SHOW="show",n.TRAILER="trailer"},9969:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1011),t),o(n(4773),t),o(n(691),t)},1011:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4773:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TagSimplicityType=t.TagMetadataFieldType=void 0,(r=t.TagMetadataFieldType||(t.TagMetadataFieldType={})).STRING="STRING",r.TRANSLATION="TRANSLATION",r.NUMBER="NUMBER",r.BOOLEAN="BOOLEAN",r.AVAILABLE_SEASONS="AVAILABLE_SEASONS",(n=t.TagSimplicityType||(t.TagSimplicityType={})).SIMPLE="SIMPLE",n.COMPOSED="COMPOSED"},691:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TAG_LANDSCAPE_COVER_ASSET_NAME=t.TAG_PORTRAIT_COVER_ASSET_NAME=t.TAG_COVER_ASSET_NAME=t.TAG_DETAIL_BANNER_ASSET_NAME=t.TAG_BANNER_ASSET_NAME=void 0,t.TAG_BANNER_ASSET_NAME="tag_banner",t.TAG_DETAIL_BANNER_ASSET_NAME="tag_detail",t.TAG_COVER_ASSET_NAME="tag_cover",t.TAG_PORTRAIT_COVER_ASSET_NAME="tag_portrait_cover",t.TAG_LANDSCAPE_COVER_ASSET_NAME="tag_landscape_cover"},5628:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5283),t),o(n(8097),t),o(n(8614),t)},5283:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8097:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalTagTypeId=void 0,(n=t.GlobalTagTypeId||(t.GlobalTagTypeId={})).Actor="actor",n.Genre="genre",n.Series="series"},8614:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7888:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3194),t),o(n(2958),t)},3194:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2958:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TvStreamType=void 0,(n=t.TvStreamType||(t.TvStreamType={})).STARTOVER="startover",n.TIMESHIFT="timeshift",n.LIVE="live",n.ALL="all"},9574:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(610),t),o(n(5717),t),o(n(8068),t)},610:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5717:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserType=t.UserDataType=void 0;var r,o=n(8741);Object.defineProperty(t,"UserType",{enumerable:!0,get:function(){return o.UserType}}),(r=t.UserDataType||(t.UserDataType={})).FAVORITE="favorite",r.PURCHASE="purchase",r.WATCH_POSITION="watchPosition"},8068:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2585:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6717),t),o(n(7969),t),o(n(4823),t),o(n(1639),t)},6717:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoAnalyticsHistogramPercentages=void 0,t.VideoAnalyticsHistogramPercentages=["0","5","10","15","20","25","30","35","40","45","50","55","60","65","70","75","80","85","90","95","100"]},7969:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4823:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoContentType=t.VideoType=t.VideoTranscodingStatus=t.VideoDataSource=t.VideoSourceCodec=t.VideoSourceEncryption=t.VideoSourceProtocol=t.VideoStatus=void 0;var r,o,i,a,u,s,c=n(8741);Object.defineProperty(t,"VideoType",{enumerable:!0,get:function(){return c.VideoType}}),Object.defineProperty(t,"VideoContentType",{enumerable:!0,get:function(){return c.VideoContentType}}),(s=t.VideoStatus||(t.VideoStatus={})).DRAFT="DRAFT",s.PUBLISHED="PUBLISHED",(u=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",u.DASH="dash",u.MP4="mp4",(a=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",a.WIDEVINE="widevine",a.FAIRPLAY="fairplay",a.PLAYREADY="playready",(i=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",i.H265="h265",(o=t.VideoDataSource||(t.VideoDataSource={})).EPG_IMPORT="EPG_IMPORT",o.MALL_TV="MALL_TV",o.TIVIO_ADMIN="TIVIO_ADMIN",(r=t.VideoTranscodingStatus||(t.VideoTranscodingStatus={})).ON_HOLD="CREATED",r.IN_PROGRESS="ENCODING",r.DONE="ENCODING_DONE",r.ERROR="ERROR"},1639:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIDEO_DETAIL_ASSET_NAME=void 0,t.VIDEO_DETAIL_ASSET_NAME="video_detail"},4327:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6733),t)},6733:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9279:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6835),t)},6835:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5055:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaginatedQuery=void 0;var u=a(n(3958)),s=a(n(3096)),c=n(44),l=function(){function e(e,t){var n=this;this.firebaseEnvironment=e,this.params=t,this._isSubscribing=!1,this.pages=[],this.clearCache=function(){n.unsubscribe(),n.pages=[]},this.get=function(){return o(n,void 0,Promise,(function(){var e,t;return i(this,(function(n){return this.data.length>0?[2,this.data]:this.pages.length>0?[2,null!==(t=null===(e=this.pages[0])||void 0===e?void 0:e.dataPromise)&&void 0!==t?t:[]]:[2,this.getNext()]}))}))},this.getNext=function(){var e;if(null===(e=n.lastPage)||void 0===e?void 0:e.dataPromise)return n.lastPage.dataPromise;var t=void 0,r=new Promise((function(e){return t=e}));return n._pushToPages({data:[],dataPromise:r,dataResolve:t}),n.getPage(n.pages.length-1)},this._pushToPages=function(e){n.pages.push(e)},this.subscribe=function(){n.isSubscribing||(n._isSubscribing=!0,n.pages.length>0?n.pages.forEach((function(e,t){return n.getPage(t)})):n.getNext())},this.unsubscribe=function(){n._isSubscribing=!1,n.pages.forEach((function(e){e.unsubscribe&&(e.unsubscribe(),e.unsubscribe=void 0)}))},this._handlePageSnapshot=function(e,t){var r,o,i=n.pages[e];i.data=t.docs.map((function(e){var t=n.firebaseEnvironment.getDocumentWithPath(e.ref.path);return t.updateCache(e.data()),t})),i.endSnapshot=null!==(r=t.docs[t.size-1])&&void 0!==r?r:void 0,i.startSnapshot=null!==(o=t.docs[0])&&void 0!==o?o:void 0,i.dataResolve&&i.dataResolve(i.data),i.dataResolve=void 0;var a=i.dataPromise;return i.dataPromise=void 0,a},this.getPage=function(e){return o(n,void 0,Promise,(function(){var t,n,r,o,a,u,s=this;return i(this,(function(i){switch(i.label){case 0:if(e<0||e>=this.pages.length)throw new Error("Query.getPage can not get page with index ("+e+"}) which is not in pages range ("+this.pages.length+")");return t=this.pages[e],n=null!==(u=this.pages[e-1])&&void 0!==u?u:null,r=this.buildPageQuery(n,t),this.isSubscribing?(t.unsubscribe=r.onSnapshot({next:function(t){return s._handlePageSnapshot(e,t)}}),[3,3]):[3,1];case 1:return[4,r.get()];case 2:if(o=i.sent(),a=this._handlePageSnapshot(e,o))return[2,a];i.label=3;case 3:return[2,[]]}}))}))}}return e.isEqual=function(e,t){return(0,u.default)(e.params,t.params)},e.hashParams=function(e){return(0,s.default)(r(r({},e),{filters:e.filters.map((function(e){return r(r({},e),{value:(t=e.value,t?t.path?t.path:t:"")});var t}))}))},Object.defineProperty(e.prototype,"data",{get:function(){return this.pages.map((function(e){return e.data.slice()})).flat()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return e.hashParams(this.params)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSubscribing",{get:function(){return this._isSubscribing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastPage",{get:function(){return 0===this.pages.length?null:this.pages[this.pages.length-1]},enumerable:!1,configurable:!0}),e.prototype.buildPageQuery=function(e,t){var n=this.buildQuery();return e&&t.startSnapshot?n=n.startAt(t.startSnapshot):e&&e.endSnapshot&&(n=n.startAfter(e.endSnapshot)),t.endSnapshot?n=n.endAt(t.endSnapshot):this.params.limit&&(n=n.limit(this.params.limit)),n},e.prototype.buildQuery=function(){var e=(0,c.getCurrentFirebaseAppInstance)().firestore(),t=this.params.isCollectionGroup?e.collectionGroup(this.params.collection):e.collection(this.params.collection),n=this.params.filters.reduce((function(e,t){return e.where(t.field,t.operator,t.value)}),t);return this.params.orderBy&&(n=n.orderBy(this.params.orderBy.field,this.params.orderBy.directionStr)),n},e}();t.PaginatedQuery=l},4679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectionAdmin=t.runTransactionAdmin=t.batchAdmin=t.runTransaction=t.batch=void 0;var r=n(44);t.batch=function(){return(0,r.getCurrentFirebaseAppInstance)().firestore().batch()},t.runTransaction=function(e){return(0,r.getCurrentFirebaseAppInstance)().firestore().runTransaction(e)},t.batchAdmin=function(){return(0,(0,r.getCurrentFirebaseAppInstance)().firestore().batch)()},t.runTransactionAdmin=function(e,t){return(0,(0,r.getCurrentFirebaseAppInstance)().firestore().runTransaction)(e,t)},t.collectionAdmin=function(e){return(0,(0,r.getCurrentFirebaseAppInstance)().firestore().collection)(e)}},7540:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6256:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7745),t),o(n(5970),t),o(n(3034),t),o(n(3006),t),o(n(9088),t),o(n(7192),t)},7745:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.applyInviteCode=void 0;var i=n(1741);t.applyInviteCode=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("applyInviteCode")(e)];case 1:return[2,t.sent().data]}}))}))}},5970:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.logRequestBody=void 0;var i=n(1741);t.logRequestBody=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){return i.FirebaseEnvironment.functions.httpsCallable("logRequestBody")(e),[2]}))}))}},3034:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.purchaseRecovery=void 0;var i=n(1741);t.purchaseRecovery=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("purchaseRecovery")(e)];case 1:return[2,t.sent().data]}}))}))}},3006:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getReferralInfo=void 0;var i=n(1741);t.getReferralInfo=function(e,t){return r(void 0,void 0,Promise,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("getReferralInfo")({organizationId:e,token:t})];case 1:return[2,n.sent().data]}}))}))}},9088:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.signUpWithTenant=t.signInWithTenant=t.resetPassword=void 0;var i=n(1741);t.resetPassword=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("resetPassword")(e)];case 1:return[2,t.sent()]}}))}))},t.signInWithTenant=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("signInWithTenant")(e)];case 1:return[2,t.sent().data]}}))}))},t.signUpWithTenant=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("signUpWithTenant")(e)];case 1:return[2,t.sent().data]}}))}))}},7192:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDrmLicense=void 0;var i=n(1741);t.getDrmLicense=function(e){return r(void 0,void 0,Promise,(function(){var t,n,r,a;return o(this,(function(o){switch(o.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("generateDrmLicense")({videoId:e})];case 1:return t=o.sent(),n=t.data,r=n[0],a=n[1],1===r?[2,a]:[2,null]}}))}))}},4027:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.migration=t.installations=t.functions=t.firestore=t.auth=t.Environment=t.setFirebaseEnvironment=t.initFirebaseEnvironment=t.FirebaseEnvironment=void 0;var u=n(9896);Object.defineProperty(t,"FirebaseEnvironment",{enumerable:!0,get:function(){return u.FirebaseEnvironment}}),Object.defineProperty(t,"initFirebaseEnvironment",{enumerable:!0,get:function(){return u.initFirebaseEnvironment}}),Object.defineProperty(t,"setFirebaseEnvironment",{enumerable:!0,get:function(){return u.setFirebaseEnvironment}});var s=n(5280);Object.defineProperty(t,"Environment",{enumerable:!0,get:function(){return s.Environment}}),t.auth=i(n(2773)),t.firestore=i(n(5474)),t.functions=i(n(6256)),t.installations=i(n(809)),t.migration=i(n(6739)),t.utils=i(n(5538)),a(n(5474),t)},809:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getId=void 0;var o=(0,r(n(7060)).default)();t.getId=function(){return o}},6739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Migration=t.DocumentMigrationResponse=void 0;var r=n(2364);Object.defineProperty(t,"DocumentMigrationResponse",{enumerable:!0,get:function(){return r.DocumentMigrationResponse}}),Object.defineProperty(t,"Migration",{enumerable:!0,get:function(){return r.Migration}})},2364:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Migration=t.migrationLogger=void 0;var i=n(2043),a=n(1741);t.migrationLogger=(0,i.getLogger)("migration");var u=function(){function e(e,n){this.migratedDocuments=[],t.migrationLogger.info("Migration from "+(null!=n?n:a.FirebaseEnvironment.environmentName)+" -> to "+e);var r=a.FirebaseEnvironment.getEnvironment(null!=n?n:a.FirebaseEnvironment.environmentName),o=a.FirebaseEnvironment.getEnvironment(e);if(!r||!o)throw new Error("Migration failed, one of the environments doesn't exist");this.fromEnvironment=r,this.toEnvironment=o}return e.prototype.defaultDocumentMigration=function(e,t){return r(this,void 0,Promise,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,e.fetch()];case 1:if(n.sent(),!e.data)throw new Error("Document ("+e.ref.path+") migration failed");return[2,{data:e.data,path:t||e.ref.path}]}}))}))},e.prototype.migrateDocument=function(e,t){return void 0===t&&(t=this.defaultDocumentMigration),r(this,void 0,Promise,(function(){var n,r,i,a;return o(this,(function(o){switch(o.label){case 0:return[4,t(e)];case 1:return n=o.sent(),r=n.data,i=n.path,[4,(a=this.toEnvironment.getDocumentWithPath(i)).update(r)];case 2:return o.sent(),this.migratedDocuments.push(a),[2,a]}}))}))},e.prototype.migrateQuery=function(e,t){return void 0===t&&(t=this.defaultDocumentMigration),r(this,void 0,Promise,(function(){var n,i=this;return o(this,(function(a){switch(a.label){case 0:return[4,e.get()];case 1:return n=a.sent(),[4,Promise.all(n.map((function(e){return r(i,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.migrateDocument(e,t)];case 1:return[2,n.sent()]}}))}))})))];case 2:return[2,a.sent()]}}))}))},e.prototype.revertMigration=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){switch(t.label){case 0:if(this.fromEnvironment.name===this.toEnvironment.name)throw new Error("Can not revert documents from the same environemtns");return[4,Promise.all(this.migratedDocuments.map((function(t){return r(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,t.delete()];case 1:return[2,e.sent()]}}))}))})))];case 1:return t.sent(),this.migratedDocuments=[],[2]}}))}))},e}();t.Migration=u},9449:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=void 0,t.once=function(e){var t=!1,n=null;return function(){return t||(n=e(),t=!0),n}}},4457:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseGenerator=void 0;var u=n(5474),s=function(){function e(e){var t=this;this.documents=[],this.generateDocuments=function(e,n){return o(t,void 0,Promise,(function(){var t=this;return i(this,(function(a){switch(a.label){case 0:return[4,Promise.all(Array(e).fill(null).map((function(e,a){return o(t,void 0,void 0,(function(){var e,t=this;return i(this,(function(o){switch(o.label){case 0:return[4,(e=this.collection.createDocument()).update(Object.entries(n).reduce((function(e,n){var o,i=n[0],u=n[1];return r(r({},e),((o={})[i]=t.replaceTemplateValue(u,a),o))}),{}))];case 1:return o.sent(),this.documents.push(e),[2,e]}}))}))})))];case 1:return[2,a.sent()]}}))}))},this.generateDocumentsWithData=function(e){return o(t,void 0,Promise,(function(){var t=this;return i(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){return o(t,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.id,n=a(e,["id"]),[4,(r=this.collection.createDocument(t)).update(n)];case 1:return o.sent(),this.documents.push(r),[2,r]}}))}))})))];case 1:return[2,n.sent()]}}))}))},this.collection=(0,u.getCollectionWithPath)(e)}return Object.defineProperty(e.prototype,"sortedDocuments",{get:function(){return this.documents.sort((function(e,t){return e.id<t.id?-1:1}))},enumerable:!1,configurable:!0}),e.prototype.clean=function(){return o(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.documents.map((function(t){return o(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,t.ref.delete()];case 1:return[2,e.sent()]}}))}))})))];case 1:return t.sent(),[2]}}))}))},e.prototype.replaceTemplateValue=function(e,t){return void 0===t&&(t=0),"string"==typeof e?e.replace("$index",""+(this.documents.length+t)):e},e}();t.BaseGenerator=s},7287:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelGenerator=void 0;var u=n(4457),s=n(9865),c=function(e){function t(){var t=e.call(this,"channels")||this;return t.sectionGenerators={},t}return o(t,e),t.prototype.clean=function(){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,e.prototype.clean.call(this)];case 1:return n.sent(),[4,Promise.all(Object.values(this.sectionGenerators).map((function(e){return i(t,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,e.clean()];case 1:return[2,t.sent()]}}))}))})))];case 2:return n.sent(),[2]}}))}))},t.prototype.getSectionGenerator=function(e){return this.sectionGenerators[e.ref.path]||(this.sectionGenerators[e.ref.path]=new s.SectionGenerator(e)),this.sectionGenerators[e.ref.path]},t.prototype.generateSections=function(e,t,n){return i(this,void 0,Promise,(function(){return a(this,(function(r){switch(r.label){case 0:return[4,this.getSectionGenerator(e).generateDocuments(t,n)];case 1:return[2,r.sent()]}}))}))},t}(u.BaseGenerator);t.ChannelGenerator=c},1715:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalAssetPresetGenerator=void 0;var i=function(e){function t(){return e.call(this,"globalAssetPresets")||this}return o(t,e),t}(n(4457).BaseGenerator);t.GlobalAssetPresetGenerator=i},8181:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalTagTypeGenerator=void 0;var i=function(e){function t(){return e.call(this,"globalTagTypes")||this}return o(t,e),t}(n(4457).BaseGenerator);t.GlobalTagTypeGenerator=i},6707:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.WatchPositionGenerator=t.PurchaseGenerator=t.GlobalTagTypeGenerator=t.GlobalAssetPresetGenerator=t.TvChannelGenerator=t.MonetizationGenerator=t.WidgetGenerator=t.SectionGenerator=t.ChannelGenerator=void 0;var i=n(7287);Object.defineProperty(t,"ChannelGenerator",{enumerable:!0,get:function(){return i.ChannelGenerator}});var a=n(9865);Object.defineProperty(t,"SectionGenerator",{enumerable:!0,get:function(){return a.SectionGenerator}}),o(n(6612),t);var u=n(4503);Object.defineProperty(t,"WidgetGenerator",{enumerable:!0,get:function(){return u.WidgetGenerator}});var s=n(227);Object.defineProperty(t,"MonetizationGenerator",{enumerable:!0,get:function(){return s.MonetizationGenerator}}),o(n(8202),t),o(n(299),t);var c=n(1128);Object.defineProperty(t,"TvChannelGenerator",{enumerable:!0,get:function(){return c.TvChannelGenerator}});var l=n(1715);Object.defineProperty(t,"GlobalAssetPresetGenerator",{enumerable:!0,get:function(){return l.GlobalAssetPresetGenerator}});var f=n(8181);Object.defineProperty(t,"GlobalTagTypeGenerator",{enumerable:!0,get:function(){return f.GlobalTagTypeGenerator}});var d=n(4425);Object.defineProperty(t,"PurchaseGenerator",{enumerable:!0,get:function(){return d.PurchaseGenerator}});var p=n(2752);Object.defineProperty(t,"WatchPositionGenerator",{enumerable:!0,get:function(){return p.WatchPositionGenerator}})},227:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MonetizationGenerator=void 0;var i=function(e){function t(){return e.call(this,"monetizations")||this}return o(t,e),t}(n(4457).BaseGenerator);t.MonetizationGenerator=i},299:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationGenerator=void 0;var i=function(e){function t(){return e.call(this,"organizations")||this}return o(t,e),t}(n(4457).BaseGenerator);t.OrganizationGenerator=i},4425:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseGenerator=void 0;var i=function(e){function t(t){return e.call(this,"users/"+t+"/purchases")||this}return o(t,e),t}(n(4457).BaseGenerator);t.PurchaseGenerator=i},9865:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionGenerator=void 0;var s=n(4457),c=n(6612),l=function(e){function t(t){var n=e.call(this,t.ref.path+"/sections")||this;return n.videoGenerator=new c.VideoGenerator,n.channel=t,n}return o(t,e),t.prototype.clean=function(){return a(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,e.prototype.clean.call(this)];case 1:return t.sent(),[4,this.videoGenerator.clean()];case 2:return t.sent(),[2]}}))}))},t.prototype.generateVideos=function(e,t,n){return a(this,void 0,Promise,(function(){return u(this,(function(r){return[2,this.videoGenerator.generateDocuments(t,i(i({},n),{channelRef:this.channel.ref,sectionRef:e.ref}))]}))}))},t}(s.BaseGenerator);t.SectionGenerator=l},8202:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TagGenerator=void 0;var i=function(e){function t(t){return e.call(this,t?"organizations/"+t+"/tags":"tags")||this}return o(t,e),t}(n(4457).BaseGenerator);t.TagGenerator=i},1128:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelGenerator=void 0;var i=function(e){function t(){return e.call(this,"tvChannels")||this}return o(t,e),t}(n(4457).BaseGenerator);t.TvChannelGenerator=i},6612:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVideoGenerator=t.VideoGenerator=void 0;var i=n(4457),a=function(e){function t(){return e.call(this,"videos")||this}return o(t,e),t}(i.BaseGenerator);t.VideoGenerator=a;var u=function(e){function t(){return e.call(this,"videos")||this}return o(t,e),t}(i.BaseGenerator);t.GlobalVideoGenerator=u},2752:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.WatchPositionGenerator=void 0;var i=function(e){function t(t){return e.call(this,"users/"+t+"/watchPositions")||this}return o(t,e),t}(n(4457).BaseGenerator);t.WatchPositionGenerator=i},4503:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetGenerator=void 0;var s=function(e){function t(){return e.call(this,"widgets")||this}return o(t,e),t.prototype.generateWidgets=function(e,t,n){return a(this,void 0,Promise,(function(){return u(this,(function(r){switch(r.label){case 0:return[4,this.generateDocuments(t,i(i({},n),{channelsOrder:e.map((function(e){return e.ref}))}))];case 1:return[2,r.sent()]}}))}))},t}(n(4457).BaseGenerator);t.WidgetGenerator=s},5538:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.generators=void 0,t.generators=i(n(6707))},3631:function(e,t){"use strict";var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createLogger=t.Logger=void 0;var r=function(){function e(e){this.name=e,this.isEnabled=!0}return e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["error"],e,!1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["info"],e,!1))},e.prototype.off=function(){this.isEnabled=!1},e.prototype.on=function(){this.isEnabled=!0},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["warn"],e,!1))},e.prototype.forceInfo=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];console.info.apply(console,n([e.prefix+":"+this.name],t,!1))},e.prototype.log=function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e.enabled&&this.isEnabled&&console[t].apply(console,n([e.prefix+":"+this.name],r,!1))},e.enabled=!0,e.prefix="tivio",e}();t.Logger=r,t.createLogger=function(e){return new r(e)}},7060:function(e,t,n){"use strict";!function(){var t,r,o,i=0,a=[];for(r=0;r<256;r++)a[r]=(r+256).toString(16).substr(1);function u(){var e=((!t||i+16>s.BUFFER_SIZE)&&(i=0,t=s.randomBytes(s.BUFFER_SIZE)),t.slice(i,i+=16));return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}function s(){var e=u();return a[e[0]]+a[e[1]]+a[e[2]]+a[e[3]]+"-"+a[e[4]]+a[e[5]]+"-"+a[e[6]]+a[e[7]]+"-"+a[e[8]]+a[e[9]]+"-"+a[e[10]]+a[e[11]]+a[e[12]]+a[e[13]]+a[e[14]]+a[e[15]]}s.BUFFER_SIZE=4096,s.bin=u,s.clearBuffer=function(){t=null,i=0},s.test=function(e){return"string"==typeof e&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},"undefined"!=typeof crypto?o=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(o=window.msCrypto),o=o||n(2705),e.exports=s,s.randomBytes=function(){if(o){if(o.randomBytes)return o.randomBytes;if(o.getRandomValues)return"function"!=typeof Uint8Array.prototype.slice?function(e){var t=new Uint8Array(e);return o.getRandomValues(t),Array.from(t)}:function(e){var t=new Uint8Array(e);return o.getRandomValues(t),t}}return function(e){var t,n=[];for(t=0;t<e;t++)n.push(Math.floor(256*Math.random()));return n}}()}()},2705:function(){}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(4027)}()},718:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.ETARGET_PREBID="etarget-prebid",e.MALL_TV_PREBID="malltv-prebid",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.MALL_TV="malltv",e.FALLBACK_MP4="fallback",e.FALLBACK_HLS="fallback-hls",e.JOJ="joj",e.PRIMA="prima",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Fallback (MP4)",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0}]},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(375),t),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},375:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},690:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=t.CUSTOMER_BUILD=void 0,function(e){e.OKTAGON="OKTAGON",e.JOJ="JOJ",e.MALL="MALL",e.GARAZ="GARAZ",e.U_KULATEHO_STOLU="U_KULATEHO_STOLU",e.INVESTOREES="INVESTOREES"}(n||(n={})),t.CUSTOMER_BUILD=n,function(e){e.MOBILE="MOBILE",e.WEB="WEB",e.TV="TV"}(r||(r={})),t.PLATFORM=r},423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(690),t),o(n(423),t),o(n(757),t)},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.PL="pl",e.SK="sk",e.SP="sp"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}]},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(363),t),o(n(635),t),o(n(202),t),o(n(910),t),o(n(906),t),o(n(948),t),o(n(535),t),o(n(161),t),o(n(656),t),o(n(614),t),o(n(396),t),o(n(738),t),o(n(129),t),o(n(959),t),o(n(605),t),o(n(190),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.ANNUALLY="ANNUALLY"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.RowComponent=void 0,(o=t.RowComponent||(t.RowComponent={})).ROW="ROW",o.BANNER="BANNER",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.TV_PROGRAM="TV_PROGRAM"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t)}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},96:function(e){"use strict";function t(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}function n(e){return t(e,2)}function r(r,o){"string"!=typeof r&&(o=r,r=e.exports.ISO8601_FORMAT),o||(o=e.exports.now());var i,a,u,s,c=n(o.getDate()),l=n(o.getMonth()+1),f=n(o.getFullYear()),d=n(f.substring(2,4)),p=r.indexOf("yyyy")>-1?f:d,h=n(o.getHours()),v=n(o.getMinutes()),y=n(o.getSeconds()),g=t(o.getMilliseconds(),3),b=(i=o.getTimezoneOffset(),a=Math.abs(i),u=String(Math.floor(a/60)),s=String(a%60),1===u.length&&(u="0"+u),1===s.length&&(s="0"+s),i<0?"+"+u+s:"-"+u+s);return r.replace(/dd/g,c).replace(/MM/g,l).replace(/y{1,4}/g,p).replace(/hh/g,h).replace(/mm/g,v).replace(/ss/g,y).replace(/SSS/g,g).replace(/O/g,b)}function o(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)throw new Error("pattern must be supplied");return function(t,n,r){var i=t.indexOf("O")<0,a=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){o(e,"FullYear",t,i)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Month",t-1,i)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Date",t,i)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Hours",t,i)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){o(e,"Minutes",t,i)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){o(e,"Seconds",t,i)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){o(e,"Milliseconds",t,i)}},{pattern:/O/,regexp:"[+-]\\d{3,4}|Z",fn:function(e,t){"Z"===t&&(t=0);var n=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],u=a.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),s=a.filter((function(e){return e.index>-1}));s.sort((function(e,t){return e.index-t.index}));var c=new RegExp(u.regexp).exec(n);if(c){var l=r||e.exports.now();return s.forEach((function(e,t){e.fn(l,c[t+1])})),l}throw new Error("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"},187:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.gtag=t.install=void 0,t.install=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="ga-gtag";if(!document.getElementById(r)){var o=document.head,i=document.createElement("script");i.id=r,i.type="text/javascript",i.async=!0,i.src="https://www.googletagmanager.com/gtag/js?id=".concat(e),o.insertBefore(i,o.firstChild),window.dataLayer=window.dataLayer||[],n("js",new Date),n("config",e,t)}};var n=function(){window.dataLayer.push(arguments)};t.gtag=n;var r=n;t.default=r},421:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){o(e,t,n[t])}))}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}n.r(t),n.d(t,{default:function(){return Y}});var h={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.init(t,n)}return s(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||h,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),y=new v,g=function(){function e(){a(this,e),this.observers={}}return s(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function b(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function m(e){return null==e?"":""+e}function _(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function w(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function O(e,t,n){var r=w(e,t,Object);r.obj[r.k]=n}function P(e,t){var n=w(e,t),r=n.obj,o=n.k;if(r)return r[o]}function E(e,t,n){var r=P(e,n);return void 0!==r?r:P(t,n)}function S(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):S(e[r],t[r],n):e[r]=t[r]);return e}function j(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function x(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return T[e]})):e}var M="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return a(this,t),n=l(this,f(t).call(this)),M&&g.call(c(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return p(t,e),s(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),P(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),O(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(u=e.split("."))[1]),this.addNamespaces(t);var s=P(this.data,u)||{};r?S(s,n,o):s=i({},s,n),O(this.data,u,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(g),I={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},C={},L=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,t),n=l(this,f(t).call(this)),M&&g.call(c(n)),_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,c(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return p(t,e),s(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,o){var a=this;if("object"!==r(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var u=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=s.key,l=s.namespaces,f=l[l.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=n.nsSeparator||this.options.nsSeparator;return f+h+c}return c}var v=this.resolve(e,n),y=v&&v.res,g=v&&v.usedKey||c,b=v&&v.exactUsedKey||c,m=Object.prototype.toString.apply(y),_=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject;if(O&&y&&"string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y&&_.indexOf(m)<0&&("string"!=typeof w||"[object Array]"!==m)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var P="[object Array]"===m,E=P?[]:{},S=P?b:g;for(var j in y)if(Object.prototype.hasOwnProperty.call(y,j)){var T="".concat(S).concat(u).concat(j);E[j]=this.translate(T,i({},n,{joinArrays:!1,ns:l})),E[j]===T&&(E[j]=y[j])}y=E}}else if(O&&"string"==typeof w&&"[object Array]"===m)(y=y.join(w))&&(y=this.extendTranslation(y,e,n,o));else{var x=!1,M=!1,A=void 0!==n.count&&"string"!=typeof n.count,I=t.hasDefaultValue(n),C=A?this.pluralResolver.getSuffix(d,n.count):"",L=n["defaultValue".concat(C)]||n.defaultValue;!this.isValidLookup(y)&&I&&(x=!0,y=L),this.isValidLookup(y)||(M=!0,y=c);var R=I&&L!==y&&this.options.updateMissing;if(M||x||R){if(this.logger.log(R?"updateKey":"missingKey",d,f,c,R?L:y),u){var k=this.resolve(c,i({},n,{keySeparator:!1}));k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var B=0;B<N.length;B++)D.push(N[B]);else"all"===this.options.saveMissingTo?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);var F=function(e,t,r){a.options.missingKeyHandler?a.options.missingKeyHandler(e,f,t,R?r:y,R,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,f,t,R?r:y,R,n),a.emit("missingKey",e,f,t,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?D.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){F([e],c+t,n["defaultValue".concat(t)]||L)}))})):F(D,c,L))}y=this.extendTranslation(y,e,n,v,o),M&&y===c&&this.options.appendNamespaceToMissingKey&&(y="".concat(f,":").concat(c)),M&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(e,t,n,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var u,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);u=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=i({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var f=e.match(this.interpolator.nestingRegexp);u<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=I.handle(p,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&"string"==typeof u.context&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!C["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(C["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(l+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(g);function R(e){return e.charAt(0).toUpperCase()+e.slice(1)}var k=function(){function e(t){a(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=R(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=R(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=R(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),D=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function B(){var e={};return D.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:N[t.fc]}}))})),e}var F=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.languageUtils=t,this.options=n,this.logger=y.create("pluralResolver"),this.rules=B()}return s(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e),this.logger=y.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:x,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?j(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?j(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?j(t.nestingPrefix):t.nestingPrefixEscaped||j("$t("),this.nestingSuffix=t.nestingSuffix?j(t.nestingSuffix):t.nestingSuffixEscaped||j(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=E(t,s,e);return u.alwaysFormat?u.format(o,void 0,n):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format(E(t,s,a),c,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=m(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=i({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),c=f,l=!0}if((r=t(s.call(this,n[1].trim(),u),u))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=m(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=c.reduce((function(e,t){return o.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),V=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return a(this,t),o=l(this,f(t).call(this)),M&&g.call(c(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=y.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return p(t,e),s(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,s,c,l;r=n.loaded,u=i,(c=(s=w(r,[o],Object)).obj)[l=s.k]=c[l]||[],c[l].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},a,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(g);function W(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function G(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function z(){}var H=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(a(this,t),e=l(this,f(t).call(this)),M&&g.call(c(e)),e.options=G(n),e.services={},e.logger=y,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),l(e,c(e));setTimeout((function(){e.init(n,r)}),0)}return e}return p(t,e),s(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},W(),this.options,G(t)),this.format=this.options.interpolation.format,n||(n=z),!this.options.isClone){this.modules.logger?y.init(r(this.modules.logger),this.options):y.init(null,this.options);var o=new k(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=y,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new F(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new U(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new V(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=b(),c=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=b();return e||(e=this.languages),t||(t=this.options.ns),n||(n=z),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&I.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=b();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var a;if("object"!==r(o)){for(var u=arguments.length,s=new Array(u>2?u-2:0),c=2;c<u;c++)s[c-2]=arguments[c];a=n.options.overloadTranslationOptionHandler([t,o].concat(s))}else a=i({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=b();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=b();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,o=i({},this.options,n,{isClone:!0}),a=new t(o);return["store","services","language"].forEach((function(t){a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new L(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(o,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(g),Y=new H},160:function(e,t,n){e=n.nmd(e);var r,o,i,a="[object Map]",u="[object Promise]",s="[object Set]",c="[object WeakMap]",l="[object DataView]",f=/^\[object .+?Constructor\]$/,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),v=t&&!t.nodeType&&t,y=v&&e&&!e.nodeType&&e,g=y&&y.exports===v,b=Function.prototype,m=Object.prototype,_=h["__core-js_shared__"],w=(r=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",O=b.toString,P=m.hasOwnProperty,E=m.toString,S=RegExp("^"+O.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=g?h.Buffer:void 0,T=m.propertyIsEnumerable,x=j?j.isBuffer:void 0,M=(o=Object.keys,i=Object,function(e){return o(i(e))}),A=V(h,"DataView"),I=V(h,"Map"),C=V(h,"Promise"),L=V(h,"Set"),R=V(h,"WeakMap"),k=!T.call({valueOf:1},"valueOf"),D=G(A),N=G(I),B=G(C),F=G(L),U=G(R);function V(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!K(e)||function(e){return!!w&&w in e}(e))return!1;var t=$(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?S:f;return t.test(G(e))}(n)?n:void 0}var W=function(e){return E.call(e)};function G(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(A&&W(new A(new ArrayBuffer(1)))!=l||I&&W(new I)!=a||C&&W(C.resolve())!=u||L&&W(new L)!=s||R&&W(new R)!=c)&&(W=function(e){var t=E.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?G(n):void 0;if(r)switch(r){case D:return l;case N:return a;case B:return u;case F:return s;case U:return c}return t});var z=Array.isArray;function H(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!$(e)}var Y=x||function(){return!1};function $(e){var t=K(e)?E.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(H(e)&&(z(e)||"string"==typeof e||"function"==typeof e.splice||Y(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&H(e)}(e)&&P.call(e,"callee")&&(!T.call(e,"callee")||"[object Arguments]"==E.call(e))}(e)))return!e.length;var t=W(e);if(t==a||t==s)return!e.size;if(k||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||m)}(e))return!M(e).length;for(var n in e)if(P.call(e,n))return!1;return!0}},302:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(934),t),o(n(875),t),o(n(209),t)},934:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOsInfo=void 0;var r=n(405),o=n(875);t.getOsInfo=function(){var e,t;return(0,r.isTizen)()?{os:"Tizen",version:null!==(t=null===(e=(0,o.getTizenVersion)())||void 0===e?void 0:e.version)&&void 0!==t?t:""}:(0,r.isWebos)()?{os:"webOS",version:""}:{os:"browser",version:""}}},209:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.trackedKeys=t.TizenRcKey=void 0,function(e){e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Enter="Enter",e.Back="Back",e.VolumeUp="VolumeUp",e.VolumeDown="VolumeDown",e.VolumeMute="VolumeMute",e.ChannelUp="ChannelUp",e.ChannelDown="ChannelDown",e.ChannelList="ChannelList",e.ColorF0Red="ColorF0Red",e.ColorF1Green="ColorF1Green",e.ColorF2Yellow="ColorF2Yellow",e.ColorF3Blue="ColorF3Blue",e.MediaPlayPause="MediaPlayPause",e.MediaRewind="MediaRewind",e.MediaFastForward="MediaFastForward",e.MediaPlay="MediaPlay",e.MediaPause="MediaPause",e.MediaStop="MediaStop",e.MediaRecord="MediaRecord",e.MediaTrackPrevious="MediaTrackPrevious",e.MediaTrackNext="MediaTrackNext",e.Num0="0",e.Num1="1",e.Num2="2",e.Num3="3",e.Num4="4",e.Num5="5",e.Num6="6",e.Num7="7",e.Num8="8",e.Num9="9",e.Minus="Minus",e.PreviousChannel="PreviousChannel",e.Menu="Menu",e.Tools="Tools",e.Info="Info",e.Source="Source",e.Exit="Exit",e.Caption="Caption",e["E-Manual"]="E-Manual",e["3D"]="3D",e.Extra="Extra",e.PictureSize="PictureSize",e.Soccer="Soccer",e.Teletext="Teletext",e.MTS="MTS",e.Search="Search",e.Guide="Guide"}(n||(n={})),t.TizenRcKey=n;var r=new Set(["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Enter","Back","MediaPlayPause","MediaRewind","MediaFastForward","MediaPlay","MediaPause","MediaStop","0","1","2","3","4","5","6","7","8","9"]);t.trackedKeys=r},875:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeTizen=t.isTizenVersionGreaterThan=t.getTizenVersion=t.getTizenApi=t.getKeyCode=void 0;var i=n(405),a=n(209),u=new i.Logger("tizen"),s=function(){return"undefined"==typeof tizen?null:tizen};t.getTizenApi=s;var c=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)},l=function(){if(!s())return null;var e=s().systeminfo.getCapability("http://tizen.org/feature/platform.version"),t=e.split("."),n=t[0],r=t[1];return{version:e,major:c(n),minor:c(r)}};t.getTizenVersion=l,t.isTizenVersionGreaterThan=function(e){var t=l();return Boolean(t&&t.major>e)};var f=new Map,d=function(e){return r(void 0,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:t=new Promise((function(t,n){var r=e.tvinputdevice.getSupportedKeys().map((function(e){return e.name})).filter((function(e){return a.trackedKeys.has(e)}));e.tvinputdevice.registerKeyBatch(r,t,n)})),r.label=1;case 1:return r.trys.push([1,3,,4]),u.info("Initializing RC keys..."),[4,t];case 2:return r.sent(),u.info("RC keys are ready."),[3,4];case 3:return n=r.sent(),u.error("Failed to initialize listening to RC keys. This may be caused by a missing privilege http://tizen.org/privilege/tv.inputdevice.",n.message),[3,4];case 4:return[2]}}))}))};t.getKeyCode=function(e){var t;return null!==(t=f.get(e))&&void 0!==t?t:null},t.initializeTizen=function(){return r(void 0,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return(e=s())?(function(e){var t=e.tvinputdevice.getSupportedKeys();t.forEach((function(e){f.set(e.name,e.code)})),u.info("Keycode map has been initialized",t)}(e),[4,d(e)]):[2];case 1:return t.sent(),[2]}}))}))}},586:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(869),t)},869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firestoreJavascriptFilters=t.firestoreArrayFilters=t.firestoreObjectFilters=void 0;var r=n(146);t.firestoreObjectFilters={isTranscoded:{field:"transcodingStatus",operator:"==",value:r.VideoTranscodingStatus.DONE},isPublished:{field:"publishedStatus",operator:"==",value:r.VideoStatus.PUBLISHED}},t.firestoreArrayFilters={isTranscoded:Object.values(t.firestoreObjectFilters.isTranscoded),isPublished:Object.values(t.firestoreObjectFilters.isPublished)},t.firestoreJavascriptFilters={isTranscoded:function(e){return e===r.VideoTranscodingStatus.DONE},isPublished:function(e){return e===r.VideoStatus.PUBLISHED}}},945:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(554),t),o(n(961),t),o(n(480),t)},961:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useImageLoader=void 0;var r=n(156);t.useImageLoader=function(e,t){var n=(0,r.useState)(e),o=n[0],i=n[1],a=(0,r.useState)(!1),u=a[0],s=a[1];return(0,r.useEffect)((function(){if(t){var e=new Image;e.src=t,e.onload=function(){i(t),s(!0)}}}),[t]),{loadedImageSrc:o,imageIsLoaded:u}}},554:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoading=void 0;var r=n(156);t.useLoading=function(e){void 0===e&&(e=!1);var t=(0,r.useState)(e),n=t[0],o=t[1],i=(0,r.useRef)(n),a=function(e){o(e),i.current=e};return{loading:n,startLoading:function(){i.current||a(!0)},stopLoading:function(){i.current&&a(!1)}}}},480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOnChange=t.usePrevious=void 0;var r=n(156);function o(e){var t,n=(0,r.useState)([]),o=n[0],i=n[1];return(0,r.useEffect)((function(){i(o.concat(e).slice(-2))}),[e]),null!==(t=o[o.length-2])&&void 0!==t?t:null}t.usePrevious=o,t.useOnChange=function(e,t){var n=o(e);n!==e&&t(n,e)}},322:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguagePicker=void 0;var a=i(n(156)),u=n(877);t.LanguagePicker=function(){var e=(0,u.useLanguageOptions)(),t=e.language,n=e.languages,r=e.selectLanguage,o=(0,a.useCallback)((function(e){r(e.target.value)}),[r]);return a.default.createElement("select",{name:"tivio-language-select","data-e2e":"tivio-language-select",value:t,onChange:o},n.map((function(e){return a.default.createElement("option",{key:e,value:e},e)})))}},877:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useLanguage=t.useLanguageOptions=t.useT=t.useI18n=void 0;var o=n(156),i=n(718),a=n(799),u=n(71);t.useI18n=function(){return(0,o.useContext)(a.I18nContext).i18n},t.useT=function(){var e=(0,t.useI18n)();return e?e.t.bind(e):function(e){return e}},t.useLanguageOptions=function(){var e=(0,o.useContext)(u.LanguageContext);return r(r({},e),{languages:i.languages})},t.useLanguage=function(){return(0,o.useContext)(u.LanguageContext).language}},799:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.I18nContextProvider=t.I18nContext=void 0;var u=a(n(421)),s=i(n(156)),c=n(405),l=n(71),f=new c.Logger("language");t.I18nContext=(0,s.createContext)({i18n:null}),t.I18nContextProvider=function(e){var n=e.children,r=e.translations,o=(0,s.useState)({i18n:null}),i=o[0],a=o[1],c=(0,s.useContext)(l.LanguageContext).language;return(0,s.useLayoutEffect)((function(){f.info("initializing language",c),function(e,t){return new Promise((function(n,r){n(u.default.createInstance({lng:t,resources:e},(function(e){e&&r(e)})))}))}(r,c).then((function(e){a({i18n:e})}))}),[]),(0,s.useLayoutEffect)((function(){i.i18n&&(f.info("changing language",c),i.i18n.changeLanguage(c),a({i18n:i.i18n}))}),[c]),s.default.createElement(t.I18nContext.Provider,{value:i},n)}},250:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(877),t),o(n(799),t),o(n(71),t),o(n(164),t),o(n(322),t)},71:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageContextProvider=t.LanguageContext=void 0;var a=n(718),u=i(n(156)),s=n(405),c=n(116),l=new s.Logger("language");t.LanguageContext=(0,u.createContext)({language:a.LangCode.EN,selectLanguage:function(){}}),t.LanguageContextProvider=function(e){var n=e.language,r=e.children,o=(0,u.useState)((0,c.normalizeLanguage)(n)),i=o[0],a=o[1];(0,u.useLayoutEffect)((function(){var e=(0,c.normalizeLanguage)(n);a(e),l.info("Setting language (passed as prop): "+e+" (before normalization: "+n+")")}),[n]);var s=(0,u.useCallback)((function(e){l.info("Setting language: "+e),a(e)}),[]);return u.default.createElement(t.LanguageContext.Provider,{value:{language:i,selectLanguage:s}},r)}},164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},116:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLanguage=void 0;var r=n(718),o=new(n(405).Logger)("i18n");t.normalizeLanguage=function(e){if(null==e)return r.LangCode.EN;var t=e.toLocaleLowerCase();return"cs"===t||"cz"===t||"cze"===t||"ces"===t?r.LangCode.CS:"sk"===t||"slk"===t||"slo"===t?r.LangCode.SK:("en"===t||"eng"===t||o.warn("Unrecognized language (input: "+e+"). Falling back to ENG"),r.LangCode.EN)}},368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguagePicker=t.useLanguageOptions=t.I18nContextProvider=t.LanguageContextProvider=t.useT=t.firestoreObjectFilters=t.firestoreJavascriptFilters=t.firestoreArrayFilters=t.PaginationInterface=t.PaginationOptions=t.Pagination=t.RefsPagination=void 0;var i=n(21),a=n(118);Object.defineProperty(t,"RefsPagination",{enumerable:!0,get:function(){return a.RefsPagination}}),Object.defineProperty(t,"Pagination",{enumerable:!0,get:function(){return a.Pagination}}),Object.defineProperty(t,"PaginationOptions",{enumerable:!0,get:function(){return a.PaginationOptions}}),Object.defineProperty(t,"PaginationInterface",{enumerable:!0,get:function(){return a.PaginationInterface}}),o(n(945),t),o(n(405),t);var u=n(586);Object.defineProperty(t,"firestoreArrayFilters",{enumerable:!0,get:function(){return u.firestoreArrayFilters}}),Object.defineProperty(t,"firestoreJavascriptFilters",{enumerable:!0,get:function(){return u.firestoreJavascriptFilters}}),Object.defineProperty(t,"firestoreObjectFilters",{enumerable:!0,get:function(){return u.firestoreObjectFilters}});var s=n(250);Object.defineProperty(t,"useT",{enumerable:!0,get:function(){return s.useT}}),Object.defineProperty(t,"LanguageContextProvider",{enumerable:!0,get:function(){return s.LanguageContextProvider}}),Object.defineProperty(t,"I18nContextProvider",{enumerable:!0,get:function(){return s.I18nContextProvider}}),Object.defineProperty(t,"useLanguageOptions",{enumerable:!0,get:function(){return s.useLanguageOptions}}),Object.defineProperty(t,"LanguagePicker",{enumerable:!0,get:function(){return s.LanguagePicker}}),o(n(302),t),(0,i.polyfill)()},507:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Pagination=void 0;var i=n(259),a=(0,n(405).createLogger)("Pagination");t.Pagination=function(e,t,n){var u,s,c=this;this.query=e,this.creator=t,this.options=n,this.lastDocumentSnapshot=null,this.items=[],this.hasNextPage=!0,this.loading=!1,this.fetchMore=function(){c.loading?a.info("loading ..."):c.hasNextPage?(a.info("fetch more"),c.fetchData()):a.info("no more data")},this.fetchData=function(){return r(c,void 0,void 0,(function(){var e,t,n,r,i;return o(this,(function(o){switch(o.label){case 0:a.info("fetch data"),o.label=1;case 1:return o.trys.push([1,3,4,5]),this.startLoading(),[4,this.makeQuery()];case 2:return e=o.sent(),a.info("fetched "+e.size+" docs, going to create entities"),this.lastDocumentSnapshot=this.getLastSnapshotFromQuerySnapshot(e),t=this.getQuerySnapshotDocs(e),n=this.querySnapshotToEntities(t),r=this.items.concat(n),this.setItems(r),[3,5];case 3:return i=o.sent(),a.error(i),[3,5];case 4:return this.stopLoading(),[7];case 5:return[2]}}))}))},this.querySnapshotToEntities=function(e){return e.map((function(e){return c.creator(e.ref,e.data())}))},this.makeQuery=function(){return r(c,void 0,void 0,(function(){var e,t;return o(this,(function(n){return e=this.query,(null===(t=this.options)||void 0===t?void 0:t.noLimit)?(a.info("fetch all documents without pagination"),this.setHasNextPage(!1)):this.lastDocumentSnapshot?(a.info("making query with limit",this.extraLimit),e=e.limit(this.extraLimit).startAfter(this.lastDocumentSnapshot)):(a.info("making first query with limit",this.extraLimit),e=e.limit(this.extraLimit)),[2,e.get()]}))}))},this.getLastSnapshotFromQuerySnapshot=function(e){var t=e.size;if(c.setHasNextPage(t>c.limit),c.hasNextPage){var n=c.getQuerySnapshotDocs(e);return n[n.length-1]}return null},this.getQuerySnapshotDocs=function(e){var t=e.docs;return c.hasNextPage&&t.pop(),t},this.startLoading=function(){c.loading=!0},this.stopLoading=function(){c.loading=!1},this.addItemToEnd=function(e){c.hasNextPage?a.info("ignoring of adding an item to pagination locally because not all items are loaded"):(a.info("add item to end"),c.setItems(c.items.concat([e])))},this.addItemToStart=function(e){a.info("add item to start"),c.setItems([e].concat(c.items))},this.setItems=function(e){c.items=e},this.setHasNextPage=function(e){c.hasNextPage=e},(0,i.makeObservable)(this,{items:i.observable,loading:i.observable,hasNextPage:i.observable,setItems:i.action,setHasNextPage:i.action,startLoading:i.action,stopLoading:i.action}),this.limit=null!==(s=null===(u=this.options)||void 0===u?void 0:u.limit)&&void 0!==s?s:10,this.extraLimit=this.limit+1,this.fetchData()}},118:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(177),t),o(n(507),t)},177:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RefsPagination=void 0;var i=n(259),a=n(405),u=(0,a.createLogger)("RefsPagination"),s=function(){function e(e,t,n,s,c){var l=this;if(void 0===n&&(n=!0),void 0===s&&(s=10),void 0===c&&(c=!0),this.refs=e,this.creator=t,this.initialized=n,this.limit=s,this.items=[],this.currentItems=[],this.currentPage=0,this.hasNextPage=!0,this.loading=!1,this.error=null,this.fetchMore=function(){return r(l,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this.isLoading?[2]:(this.currentPage++,[4,this.fetchData()]);case 1:return e.sent(),[2]}}))}))},this.fetchData=function(){return r(l,void 0,void 0,(function(){var e,t,n,i,s,c,l=this;return o(this,(function(f){switch(f.label){case 0:if(this.isLoading||!this.hasNextPage)return[2];f.label=1;case 1:return f.trys.push([1,4,5,6]),u.info("fetchData"),e=this.currentPage*this.limit,t=e+this.limit,0!==this.items.slice(e,t).length?[3,3]:(n=this.refs.slice(e,t),t>=this.refs.length&&(this.hasNextPage=!1),this.startLoading(),[4,Promise.all(n.map((function(e){return r(l,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return[4,e.get()];case 1:return t=r.sent(),(n=t.data())?[2,this.creator(e,n)]:[2,null]}}))}))})))]);case 2:return i=f.sent(),s=i.filter(a.notEmptyFilter),u.info("fetched "+s.length+" items of "+n.length+" refs"),this.endLoading(),this.setCurrentItems=s,this.setItems=this.items.concat(s),[3,3];case 3:return[3,6];case 4:return c=f.sent(),u.error(c),this.setError=c,[3,6];case 5:return this.endLoading(),[7];case 6:return[2]}}))}))},this.addItemToStart=function(e,t){l.refs=l.refs.concat([t]),l.getItems.unshift(e)},this.addItem=function(e,t){l.refs.length===l.items.length&&(l.setItems=l.items.concat([e])),l.refs=l.refs.concat([t])},this.getItem=function(e){return r(l,void 0,void 0,(function(){var t,n,r;return o(this,(function(o){switch(o.label){case 0:return(t=this.refs.find((function(t){return t.id===e})))?[4,t.get()]:[3,2];case 1:return n=o.sent(),(r=n.data())?[2,this.creator(n.ref,r)]:[3,3];case 2:throw new Error("ref-not-found");case 3:return[2]}}))}))},this.limit>1e3)throw new Error("Limit cannot be greater than 1000");c&&this.fetchData(),(0,i.makeObservable)(this,{items:i.observable,refs:i.observable,loading:i.observable,error:i.observable,hasNextPage:i.observable})}return e.prototype.startLoading=function(){this.setLoading=!0},e.prototype.endLoading=function(){this.setLoading=!1},Object.defineProperty(e.prototype,"getError",{get:function(){return this.error},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getCurrentItems",{get:function(){return this.currentItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getItems",{get:function(){return this.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getRefs",{get:function(){return this.refs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getHasNextPage",{get:function(){return this.hasNextPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getItemsCount",{get:function(){return this.refs.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setItems",{set:function(e){this.items=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setLoading",{set:function(e){this.loading=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setCurrentItems",{set:function(e){this.currentItems=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setIsInitialized",{set:function(e){this.initialized=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setError",{set:function(e){this.error=e},enumerable:!1,configurable:!0}),e}();t.RefsPagination=s},21:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyfill=void 0,t.polyfill=function(){"object"==typeof window&&"object"==typeof document&&window.addEventListener("load",(function(){var e=document.createElement("script");e.src="https://polyfill.io/v3/polyfill.min.js?features=String.prototype.normalize",e.id="tivio-polyfill-string-prototype-normalize",document.head.appendChild(e)}))}},704:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Analytics=void 0;var o=n(187),i=new(n(783).Logger)("analytics"),a=function(){function e(){this.eventNames=null,this.gaMeasurementId=null}return e.prototype.init=function(e,t){this.gaMeasurementId=e,this.eventNames=t,(0,o.install)(e)},e.prototype.trackAnalytic=function(e,t,n){if(this.isInitialized()){var r=this.eventNames[e];r&&(i.info("Tracking analytic "+e+" under "+r,t,n),this.trackEvent(r,t,n))}},e.prototype.isInitialized=function(){return null!=this.eventNames&&null!=this.gaMeasurementId},e.prototype.trackEvent=function(e,t,n){var i=r(r({},null!=t?t:{}),{send_to:this.gaMeasurementId});n?(0,o.gtag)("event",e,i,n):(0,o.gtag)("event",e,i)},e}();t.Analytics=a},122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceWithoutOverwritingValues=t.chunkArray=t.uniqueFilter=t.notEmptyFilter=void 0,t.notEmptyFilter=function(e){return!!e},t.uniqueFilter=function(e,t,n){return n.indexOf(e)===t},t.chunkArray=function(e,t){var n,r=e.length,o=[];for(n=0;n<r;n+=t){var i=e.slice(n,n+t);o.push(i)}return o},t.replaceWithoutOverwritingValues=function(e,t,n){var r=[];return t.forEach((function(t){var o=e.find((function(e){return n(t,e)}));r.push(null!=o?o:t)})),r}},741:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0;var n=function(){function e(e){var t,n;this.enabled=!0,this.map=new Map,this.max=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:1e3,this.convertKey=null!==(n=null==e?void 0:e.convertKey)&&void 0!==n?n:function(e){return e}}return e.prototype.set=function(e,t){this.enabled&&(this.map.size>this.max&&this.map.clear(),this.map.set(this.convertKey(e),t))},e.prototype.get=function(e){var t;return null!==(t=this.map.get(this.convertKey(e)))&&void 0!==t?t:null},e.prototype.has=function(e){return!!this.enabled&&this.map.has(this.convertKey(e))},e.prototype.getSize=function(){return this.map.size},e.prototype.disable=function(){this.enabled=!1},e}();t.Cache=n},530:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.onceAsync=t.once=void 0,t.once=function(e){var t=!1,n=null;return function(){return t||(n=e(),t=!0),n}},t.onceAsync=function(e){var t=!1,o=null;return function(){return n(void 0,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return t?[2,o]:(t=!0,[4,e()]);case 1:return[2,o=n.sent()]}}))}))}}},742:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.stringComparator=t.booleanComparator=t.numberComparator=t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(n=t.SortDirection||(t.SortDirection={})),t.numberComparator=function(e,t,r){return void 0===r&&(r=n.ASC),r===n.ASC?e-t:t-e},t.booleanComparator=function(e,t){return e&&t?0:e&&!t?-1:!e&&t?1:0},t.stringComparator=function(e,t){return e<t?-1:1}},569:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(742),t),o(n(900),t),o(n(482),t)},900:function(e,t,n){"use strict";var r,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.strategiesComparator=t.expirationComparator=t.placementTypeComparator=t.PLACEMENT_TYPE_PRIORITIES=void 0;var i=n(742),a=o(n(160)),u=n(146);t.PLACEMENT_TYPE_PRIORITIES=((r={})[u.MonetizationPlacementType.TV_CHANNEL]=4,r[u.MonetizationPlacementType.VIDEO]=3,r[u.MonetizationPlacementType.CONDITION]=2,r[u.MonetizationPlacementType.SECTION]=1,r[u.MonetizationPlacementType.CHANNEL]=0,r),t.placementTypeComparator=function(e,n,r){return void 0===r&&(r=i.SortDirection.DESC),(0,i.numberComparator)(t.PLACEMENT_TYPE_PRIORITIES[e.placementType],t.PLACEMENT_TYPE_PRIORITIES[n.placementType],r)},t.expirationComparator=function(e,t,n){var r,o;return void 0===n&&(n=i.SortDirection.ASC),(0,i.numberComparator)(null!==(r=e.expirationDaysSincePublished)&&void 0!==r?r:Number.MAX_VALUE,null!==(o=t.expirationDaysSincePublished)&&void 0!==o?o:Number.MAX_VALUE,n)},t.strategiesComparator=function(e,t){return(0,i.numberComparator)((0,a.default)(e.strategies)?0:1,(0,a.default)(t.strategies)?0:1,i.SortDirection.ASC)}},482:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalsFirstRestAlphabeticallyComparator=t.alphabeticComparator=t.sortAlphabetically=void 0;var r=n(742);t.sortAlphabetically=function(e){return e.sort((function(e,t){return(0,r.stringComparator)(e.name,t.name)}))},t.alphabeticComparator=function(e,t){return(0,r.stringComparator)(e.name,t.name)},t.globalsFirstRestAlphabeticallyComparator=function(e,t){var n,o;return(0,r.booleanComparator)(null!==(n=e.isGlobal)&&void 0!==n&&n,null!==(o=t.isGlobal)&&void 0!==o&&o)||(0,r.stringComparator)(e.name,t.name)}},484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideDeviceType=t.isWebsite=t.isWebos=t.isTizen=t.isSmartTv=t.isSafari=t.isReactNative=t.isMobileBrowser=t.isIos=t.isIndexedDbSupported=t.isCookiesEnabled=t.isBrowserCompatible=t.isArris=void 0;var r=n(631),o="undefined",i=function(){return typeof window!==o&&typeof document!==o};t.isBrowserCompatible=i,t.isMobileBrowser=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isCookiesEnabled=function(){if(!i()||"string"!=typeof document.cookie)return!1;document.cookie="tiviocookietest=1";var e=-1!=document.cookie.indexOf("tiviocookietest=");return document.cookie="tiviocookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e};var a=function(){return i()&&typeof window.tizen!==o};t.isTizen=a;var u=function(){return i()&&typeof window.webOS!==o};t.isWebos=u;var s=function(){return"arris"===l.type||i()&&typeof window.toi!==o};t.isArris=s;var c=function(){return a()||u()||s()};t.isSmartTv=c,t.isWebsite=function(){return!!i()&&(window.tivioDeviceOverride?"web"===window.tivioDeviceOverride:!c())},t.isIndexedDbSupported=function(){return window&&null!=window.indexedDB&&null!=window.IDBCursor&&null!=window.IDBCursorWithValue&&null!=window.IDBDatabase&&null!=window.IDBFactory&&null!=window.IDBIndex&&null!=window.IDBKeyRange&&null!=window.IDBObjectStore&&null!=window.IDBOpenDBRequest&&null!=window.IDBRequest&&null!=window.IDBTransaction&&null!=window.IDBVersionChangeEvent},t.isSafari=function(){var e=(0,r.detect)();return"safari"==(null==e?void 0:e.name)},t.isIos=function(){var e=(0,r.detect)();return"iOS"==(null==e?void 0:e.os)};var l={type:null};t.overrideDeviceType=function(e){l.type=e}},174:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectScriptToHead=t.injectScriptsToHead=void 0;var o=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(){return t()},r.onabort=function(){return n()},document.getElementsByTagName("head")[0].appendChild(r)}))};t.injectScriptToHead=o,t.injectScriptsToHead=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,Promise.all(e.map(o))]}))}))}},447:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeAsNewEventLoopJob=void 0,t.executeAsNewEventLoopJob=function(e){setTimeout(e)}},479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatCurrency=t.formatEpisode=t.toTwoPlaces=t.msToMMSS=t.msToMinutesString=void 0;var n=function(e){return e<10?"0"+e:""+e};t.toTwoPlaces=n,t.formatEpisode=function(e,t){return"S"+n(e)+"E"+n(t)},t.formatCurrency=function(e){switch(e){case"CZK":return"Kč";case"EUR":return"€";case"USD":return"$"}};var r=function(e){var t=Math.floor(e/1e3);return{minutes:Math.floor(t/60),seconds:t%60}};t.msToMinutesString=function(e){return r(e).minutes+" min"},t.msToMMSS=function(e){var t=r(e),o=t.minutes,i=t.seconds;return o+":"+n(i)}},513:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preloadImages=t.preloadImage=void 0,t.preloadImage=function(e){return new Promise((function(t,n){var r=new Image;r.src=e,r.onload=t,r.onerror=function(){n("image failed to load (uri:"+e+")")}}))},t.preloadImages=function(e){return Promise.all(e.map(t.preloadImage))}},405:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(122),t),o(n(704),t),o(n(783),t),o(n(40),t),o(n(741),t),o(n(569),t),o(n(513),t),o(n(479),t),o(n(647),t),o(n(447),t),o(n(530),t),o(n(484),t),o(n(893),t),o(n(174),t)},783:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.createLogger=void 0;var o=n(484),i=function(){function e(e){this.name=e,this.isEnabled=!0,this.legacy=!1}return e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,r(["error"],e,!1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,r(["info"],e,!1))},e.prototype.off=function(){this.isEnabled=!1},e.prototype.on=function(){this.isEnabled=!0},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,r(["warn"],e,!1))},e.prototype.forceInfo=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];console.info.apply(console,r([e.prefix+":"+this.name],t,!1))},e.prototype.log=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];e.enabled&&this.isEnabled&&((0,o.isArris)()?this.logArris(t,n):console[t].apply(console,r([e.prefix+":"+this.name],n,!1)))},e.prototype.logArris=function(t,n){var r=n;this.legacy&&(r=r.map((function(e){return JSON.stringify(e)})));var o=r.filter((function(e){return"function"==typeof e.toString})).map((function(e){return e.toString()})).join(", ");console[t](e.prefix+":"+this.name+" "+o)},e.enabled=!0,e.prefix="tivio",e}();t.Logger=i,t.createLogger=function(e){return new i(e)}},893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keepNonNegative=t.getPercentOf=t.isClose=t.toPercent=t.safeParseInt=t.round=t.random=t.intervalContainsPoint=t.intervalContains=t.clampPercent=t.clamp=void 0,t.random=function(e){return Math.round(Math.random()*e)},t.safeParseInt=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)};var n=function(e,t,n){return Math.min(Math.max(e,t),n)};t.clamp=n;var r=function(e){return n(e,0,100)};t.clampPercent=r,t.toPercent=function(e){return r(Math.round(100*e))},t.round=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},t.intervalContains=function(e,t){return e.from<t.from&&t.to<e.to},t.intervalContainsPoint=function(e,t){return e.from<=t&&t<=e.to},t.isClose=function(e,t,n){return Math.abs(e-t)<=n},t.getPercentOf=function(e,t){var n=Math.round(e/t*100);return isFinite(n)?r(n):null},t.keepNonNegative=function(e){return Math.max(0,e)}},647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSnakeCase=t.toKebabCase=t.removeAccents=t.normalizeText=t.capitalizeText=void 0;var n=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")};t.removeAccents=n;var r=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"_").replace("-","_")};t.toSnakeCase=r;var o=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"-").replace("_","-")};t.toKebabCase=o,t.normalizeText=function(e,t){void 0===t&&(t="snake-case");var i=n(e);return"snake-case"===t?r(i):o(i)},t.capitalizeText=function(e){return(null==e?void 0:e.length)?e.charAt(0).toUpperCase()+e.substr(1).toLowerCase():""}},40:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getRelativeTime=t.getDuration=t.getMinsSecsHours=t.getMinsSecs=t.twoPlaces=t.getHours=t.getMins=t.getSecs=t.parseCzechDate=t.isInThePast=t.addSeconds=t.addMs=t.addMinutes=t.addHours=t.addDays=void 0;var a=i(n(96));function u(e,t){return s(e,60*t)}function s(e,t){return l(e,60*t)}function c(e,t){return new Date(e.getTime()+t)}function l(e,t){return c(e,1e3*t)}function f(e,t){var n=null!=e?Math.floor(e/1e3):0;return t?n%60:n}function d(e,t){var n=null!=e?Math.floor(f(e)/60):0;return t?n%60:n}function p(e,t){var n=null!=e?Math.floor(d(e)/60):0;return t?n%24:n}function h(e){return e>=10?e:"0"+e}t.addDays=function(e,t){return u(e,24*t)},t.addHours=u,t.addMinutes=s,t.addMs=c,t.addSeconds=l,t.isInThePast=function(e){return e<new Date},t.parseCzechDate=function(e){var t=a.parse("dd.MM.yyyy hh:mm",e),n=1e3*t.getSeconds()+t.getMilliseconds();return new Date(t.getTime()-n)},t.getSecs=f,t.getMins=d,t.getHours=p,t.twoPlaces=h,t.getMinsSecs=function(e){if(e<0)return{mins:0,secs:0,text:"",textWordy:""};var t=d(e),n=f(e,!0),r="";return n&&(r=n+" s"),t&&(r=t+" min"+(r.length>0?" "+r:"")),{mins:t,secs:n,text:t+":"+h(n),textWordy:r}},t.getMinsSecsHours=function(e){var t=p(e),n=d(e,!0),r=f(e,!0),o=n+":"+h(r);return t>0&&(4===o.length&&(o="0"+o),o=t+":"+o),{hours:t,mins:n,secs:r,text:o}},t.getDuration=function(e){return null==e||e<0?null:Math.round(e/60)+" MIN"},t.getRelativeTime=function(e){if(null==e)return"";var t=((new Date).getTime()-e.getTime())/36e5,n=Math.floor(t);if(n<1)return"";if(n<24)return n+" HOURS AGO";var r=t/24,o=Math.floor(r);if(o<7)return o+" DAYS AGO";var i=r/7,a=Math.floor(i);if(a<5)return a+" WEEKS AGO";var u=r/30,s=Math.floor(u);if(s<12)return s+" MONTHS AGO";var c=r/365;return Math.ceil(c)+" YEARS AGO"}},259:function(e){"use strict";e.exports=r},156:function(e){"use strict";e.exports=o}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(368)}())},8741:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.ETARGET_PREBID="etarget-prebid",e.MALL_TV_PREBID="malltv-prebid",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.MALL_TV="malltv",e.FALLBACK_MP4="fallback",e.FALLBACK_HLS="fallback-hls",e.JOJ="joj",e.PRIMA="prima",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Fallback (MP4)",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0}]},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(375),t),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},375:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},690:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=t.CUSTOMER_BUILD=void 0,function(e){e.OKTAGON="OKTAGON",e.JOJ="JOJ",e.MALL="MALL",e.GARAZ="GARAZ",e.U_KULATEHO_STOLU="U_KULATEHO_STOLU",e.INVESTOREES="INVESTOREES"}(n||(n={})),t.CUSTOMER_BUILD=n,function(e){e.MOBILE="MOBILE",e.WEB="WEB",e.TV="TV"}(r||(r={})),t.PLATFORM=r},423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(690),t),o(n(423),t),o(n(757),t)},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.PL="pl",e.SK="sk",e.SP="sp"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}]},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(363),t),o(n(635),t),o(n(202),t),o(n(910),t),o(n(906),t),o(n(948),t),o(n(535),t),o(n(161),t),o(n(656),t),o(n(614),t),o(n(396),t),o(n(738),t),o(n(129),t),o(n(959),t),o(n(605),t),o(n(190),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.ANNUALLY="ANNUALLY"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.RowComponent=void 0,(o=t.RowComponent||(t.RowComponent={})).ROW="ROW",o.BANNER="BANNER",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.TV_PROGRAM="TV_PROGRAM"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t)}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},8879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",s="month",c="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:l,w:u,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",m={};m[b]=v;var _=function(e){return e instanceof E},w=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();m[i]&&(o=i),n&&(m[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;m[u]=t,o=u}return!r&&o&&(b=o),o||!r&&b},O=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},P=g;P.l=w,P.i=_,P.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=w(e.locale,null,!0),this.parse(e)}var y=v.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return P},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return O(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<O(e)},y.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,c=!!P.u(t)||t,d=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,y=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case l:return c?p(1,0):p(31,11);case s:return c?p(1,y):p(0,y+1);case u:var m=this.$locale().weekStart||0,_=(v<m?v+7:v)-m;return p(c?g-_:g+(6-_),y);case a:case f:return h(b+"Hours",0);case i:return h(b+"Minutes",1);case o:return h(b+"Seconds",2);case r:return h(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var u,c=P.p(e),d="set"+(this.$u?"UTC":""),p=(u={},u[a]=d+"Date",u[f]=d+"Date",u[s]=d+"Month",u[l]=d+"FullYear",u[i]=d+"Hours",u[o]=d+"Minutes",u[r]=d+"Seconds",u[n]=d+"Milliseconds",u)[c],h=c===a?this.$D+(t-this.$W):t;if(c===s||c===l){var v=this.clone().set(f,1);v.$d[p](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[P.p(e)]()},y.add=function(n,c){var f,d=this;n=Number(n);var p=P.p(c),h=function(e){var t=O(d);return P.w(t.date(t.date()+Math.round(e*n)),d)};if(p===s)return this.set(s,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return h(1);if(p===u)return h(7);var v=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,y=this.$d.getTime()+n*v;return P.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,c=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].substr(0,i)},f=function(e){return P.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:P.s(u+1,2,"0"),MMM:l(n.monthsShort,u,c,3),MMMM:l(c,u),D:this.$D,DD:P.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,s,2),ddd:l(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(i),HH:P.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:P.s(a,2,"0"),s:String(this.$s),ss:P.s(this.$s,2,"0"),SSS:P.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||v[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,d){var p,h=P.p(f),v=O(n),y=(v.utcOffset()-this.utcOffset())*e,g=this-v,b=P.m(this,v);return b=(p={},p[l]=b/12,p[s]=b,p[c]=b/3,p[u]=(g-y)/6048e5,p[a]=(g-y)/864e5,p[i]=g/t,p[o]=g/e,p[r]=g/1e3,p)[h]||g,d?b:P.a(b)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return m[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return P.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),S=E.prototype;return O.prototype=S,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",s],["$y",l],["$D",f]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,E,O),e.$i=!0),O},O.locale=w,O.isDayjs=_,O.unix=function(e){return O(1e3*e)},O.en=m[b],O.Ls=m,O.p={},O}()},6916:function(e,t,n){e.exports=function(){"use strict";var e=n(1350),t=Function.bind.call(Function.call,Array.prototype.reduce),r=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),o=Function.bind.call(Function.call,Array.prototype.concat);return Object.values||(Object.values=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[n[t]]:[])}),[])}),Object.entries||(Object.entries=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[[t,n[t]]]:[])}),[])}),Object}()},1350:function(e){"object"==typeof Reflect&&"function"==typeof Reflect.ownKeys?e.exports=Reflect.ownKeys:"function"==typeof Object.getOwnPropertySymbols?e.exports=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:e.exports=Object.getOwnPropertyNames},3996:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextProvider=void 0;var o=r(n(8156)),i=n(7400);t.ContextProvider=function(e){var t=e.bundleState,n=e.children,r=t.internal;return(null==r?void 0:r.providers)?o.default.createElement(r.providers.UserContextProvider,null,o.default.createElement(r.providers.OrganizationSubscriptionsContextProvider,null,o.default.createElement(r.providers.PurchasesWithVideosContextProvider,null,o.default.createElement(i.ScreensContextProvider,null,o.default.createElement(i.RowItemsContextProvider,null,n))))):o.default.createElement(o.default.Fragment,null,n)}},8074:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withPlayerContext=t.PlayerProvider=t.PlayerContext=void 0;var u=a(n(8156)),s=n(7968);t.PlayerContext=u.default.createContext(void 0),t.PlayerProvider=function(e){var n=e.children,r=e.playerWrapperId,o=c(void 0===r?"default":r),i=l(),a=u.default.createElement(t.PlayerContext.Provider,{value:o},n);return i&&(a=u.default.createElement(i.Provider,{value:{player:o}},a)),a};var c=function(e){var t,n=(0,u.useState)(null!==(t=null===s.tivioBundle||void 0===s.tivioBundle?void 0:s.tivioBundle.getters.getPlayerWrapper({playerWrapperId:e}))&&void 0!==t?t:null),r=n[0],o=n[1];return(0,u.useEffect)((function(){s.tivioBundle||s.bundlePromise.then((function(t){var n=t.getters.getPlayerWrapper({playerWrapperId:e});o(n)})).catch((function(){}))}),[e]),r},l=function(){var e=(0,u.useState)(null),t=e[0],n=e[1];return(0,u.useEffect)((function(){s.bundlePromise.then((function(e){var t,r=null===(t=e.components)||void 0===t?void 0:t.PlayerDataContext;n(r)})).catch((function(){}))}),[]),t};t.withPlayerContext=function(e){return function(n){return function(o){return u.default.createElement(t.PlayerProvider,{playerWrapperId:e},u.default.createElement(n,r({},o)))}}}},8185:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioContext=t.TivioProvider=void 0;var a=i(n(8156)),u=n(952),s=n(6111),c=n(6435),l=n(3996),f=(0,s.createUseRemoteBundle)(),d=a.default.createContext(null);t.TivioContext=d,t.TivioProvider=function(e){var t,n=e.children,r=e.conf,o=(0,a.useMemo)((function(){return(0,u.createInternalConf)(r)}),[]),i=f(o);if((0,a.useEffect)((function(){!1===(null==o?void 0:o.enable)||!1===(null==o?void 0:o.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==r?void 0:r.runFeatureSupportCheck)&&"ready"===i.state&&(null===(t=i.components)||void 0===t?void 0:t.FeatureSupportCheck))return a.default.createElement(i.components.FeatureSupportCheck,null);var s="ready"===(null==i?void 0:i.state)&&i.components?a.default.createElement(i.components.Provider,{language:o.language,disableUnmounting:o.disableUnmounting},n):n;return a.default.createElement(l.ContextProvider,{bundleState:i},a.default.createElement(d.Provider,{value:i},s))}},5111:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidget=void 0;var a=i(n(8156)),u=n(1012),s=n(3366);t.TivioWidget=a.default.forwardRef((function(e,t){var n=e.id,r=e.onBlur,o=e.onEnabled;if("string"!=typeof n||!n.length)return a.default.createElement(s.TivioWidgetError,{error:"TivioWidget must have a mandatory property 'id'."});var i=(0,u.useTivioData)(),c=i.state,l=i.error,f=i.components,d=i.config,p=d.ErrorComponent,h=d.LoaderComponent;switch((0,a.useEffect)((function(){"error"===c&&(null==o||o(!1))}),[c]),c){case"error":return a.default.createElement(p,{error:l});case"loading":return a.default.createElement(h,null);case"ready":return f?a.default.createElement(f.Widget,{id:n,ref:t,onEnabled:o,onBlur:r}):null}}))},3366:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetError=void 0;var o=r(n(8156));t.TivioWidgetError=function(e){var t=e.error;return o.default.createElement("div",{style:{backgroundColor:"#d84f92",color:"#fff",padding:"1rem"}},t)}},8491:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetLoader=void 0;var o=r(n(8156));t.TivioWidgetLoader=function(){return o.default.createElement("div",null,"loading...")}},467:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TvTivioProvider=void 0;var a=i(n(8156)),u=n(952),s=n(6111),c=n(6435),l=n(3996),f=n(8185),d=(0,s.createUseRemoteBundle)();t.TvTivioProvider=function(e){var t,n=e.children,r=e.conf,o=(0,u.createInternalConf)(null!=r?r:null),i=d(o);return(0,a.useEffect)((function(){!1===(null==o?void 0:o.enable)||!1===(null==o?void 0:o.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==r?void 0:r.runFeatureSupportCheck)&&"ready"===i.state&&(null===(t=i.components)||void 0===t?void 0:t.FeatureSupportCheck)?a.default.createElement(i.components.FeatureSupportCheck,null):a.default.createElement(l.ContextProvider,{bundleState:i},a.default.createElement(f.TivioContext.Provider,{value:i},n))}},9357:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelsContextProvider=t.ChannelsContext=void 0;var u=a(n(8156)),s=(0,u.createContext)({data:{},setData:function(){return null}});t.ChannelsContext=s,t.ChannelsContextProvider=function(e){var t=(0,u.useState)({}),n=t[0],o=t[1],i=(0,u.useRef)(n);return u.default.createElement(s.Provider,{value:{data:n,setData:function(e,t){var n,a=r(r({},i.current),((n={})[e]=t,n));i.current=a,o(a)}}},e.children)}},5941:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RowItemsContextProvider=t.RowItemsContext=void 0;var u=a(n(8156)),s=(0,u.createContext)(null);t.RowItemsContext=s,t.RowItemsContextProvider=function(e){var t=(0,u.useState)({}),n=t[0],o=t[1],i=(0,u.useCallback)((function(e,t){o((function(n){var o;return r(r({},n),((o={})[e]=t,o))}))}),[n]);return u.default.createElement(s.Provider,{value:{data:n,setData:i}},e.children)}},7285:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ScreensContextProvider=t.ScreensContext=void 0;var u=a(n(8156)),s=(0,u.createContext)(null);t.ScreensContext=s,t.ScreensContextProvider=function(e){var t=(0,u.useState)({}),n=t[0],o=t[1],i=(0,u.useCallback)((function(e,t){var i,a=r(r({},n),((i={})[e]=t,i));o(a)}),[n]);return u.default.createElement(s.Provider,{value:{data:n,setData:i}},e.children)}},4116:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionsContextProvider=t.SectionsContext=void 0;var u=a(n(8156)),s=(0,u.createContext)({data:{},setData:function(){return null}});t.SectionsContext=s,t.SectionsContextProvider=function(e){var t=(0,u.useState)({}),n=t[0],o=t[1],i=(0,u.useRef)(n);return u.default.createElement(s.Provider,{value:{data:n,setData:function(e,t){var n,a=r(r({},i.current),((n={})[e]=t,n));i.current=a,o(a)}}},e.children)}},5905:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.VideosContextProvider=t.VideosContext=void 0;var u=a(n(8156)),s=(0,u.createContext)({data:{},setData:function(){return null}});t.VideosContext=s,t.VideosContextProvider=function(e){var t=(0,u.useState)({}),n=t[0],o=t[1],i=(0,u.useRef)(n);return u.default.createElement(s.Provider,{value:{data:n,setData:function(e,t){var n,a=r(r({},i.current),((n={})[e]=t,n));i.current=a,o(a)}}},e.children)}},7400:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9357),t),o(n(7285),t),o(n(4116),t),o(n(5905),t),o(n(5941),t)},4439:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelsContext=t.SectionsContext=t.VideosContext=t.useChannelsInWidget=t.useSectionsInChannel=t.useVideosInSection=t.useVideo=t.useSection=t.useIsLoaded=t.useChannel=t.useWidget=void 0;var r=n(8156),o=n(3368),i=n(5167),a=n(7400);Object.defineProperty(t,"ChannelsContext",{enumerable:!0,get:function(){return a.ChannelsContext}}),Object.defineProperty(t,"SectionsContext",{enumerable:!0,get:function(){return a.SectionsContext}}),Object.defineProperty(t,"VideosContext",{enumerable:!0,get:function(){return a.VideosContext}});var u=(0,i.createLogger)({isConsoleEnabled:!0,isSentryEnabled:!1});t.useWidget=function(e){var t=(0,o.useTivioData)().subscriptions,n=(0,r.useState)(""),i=n[0],a=n[1],u=(0,r.useState)(null),s=u[0],c=u[1],l=(0,r.useRef)(void 0);return(0,r.useEffect)((function(){return t&&t.subscribeToWidget(e,(function(e,t,n){var r,o,i;e&&a(e.message),t&&(null===(r=t.lastVideo)||void 0===r||r.transaction,null===(o=t.lastVideo)||void 0===o||o.subscriptions,null===(i=t.lastVideo)||void 0===i||i.monetizations,c(t)),n&&(l.current=n)})),function(){var e;null===(e=l.current)||void 0===e||e.call(l)}}),[t]),{error:i,widget:s}},t.useChannel=function(e){var t=(0,o.useTivioData)().subscriptions,n=(0,r.useState)(null),i=n[0],a=n[1],s=(0,r.useState)(null),c=s[0],l=s[1];return(0,r.useEffect)((function(){t&&(u.info("subscribe to channel with id "+e),t.subscribeToChannel(e,(function(e,t){e&&(u.error("failed to subscribe to channel: ",e),a(e.message)),t&&(u.error("channel data received"),l(t))})))}),[t]),{error:i,data:c}},t.useSection=function(e){var t=(0,o.useTivioData)().subscriptions,n=(0,r.useState)(null),i=n[0],a=n[1],s=(0,r.useState)(null),c=s[0],l=s[1];return(0,r.useEffect)((function(){t&&(u.info("subscribe to section with id "+e),t.subscribeToSection(e,(function(e,t){e&&(u.error("failed to subscribe to section: ",e),a(e.message)),t&&(u.info("section data received"),l(t))})))}),[t]),{error:i,data:c}},t.useVideo=function(e){var t,n=(0,o.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useVideo(null!=e?e:""))&&void 0!==t?t:{error:null,data:null}},t.useVideosInSection=function(e,t){void 0===t&&(t=10);var n=(0,o.useTivioData)().subscriptions,i=(0,r.useContext)(a.VideosContext),s=i.data[null!=e?e:""];return(0,r.useEffect)((function(){n&&e&&(s||(u.info("subscribe to videos in section "+e),n.subscribeToVideosInSection(e,(function(t,n,r,o){t&&(u.error("failed to subscribe to videos in section: ",t),i.setData(e,{error:t,data:null,isLoading:o})),n&&(u.info("videos data received"),n.videos.forEach((function(e){return e.monetization})),n.videos.forEach((function(e){return e.subscriptions.map((function(e){return e.price}))})),n.videos.forEach((function(e){var t;return null===(t=e.transaction)||void 0===t?void 0:t.price})),i.setData(e,{data:{items:n.videos,hasNextPage:n.hasNextPage,fetchMore:function(){return null==r?void 0:r()}},error:t,isLoading:o}))}),t)))}),[n,e,i]),{error:s?s.error:null,data:s?s.data:null,isLoading:!!s&&s.isLoading}},t.useSectionsInChannel=function(e,t){void 0===t&&(t=10);var n=(0,o.useTivioData)().subscriptions,i=(0,r.useContext)(a.SectionsContext),s=i.data[e];return(0,r.useEffect)((function(){n&&(s||(u.info("subscribe to sections in channel with id "+e),n.subscribeToSectionsInChannel(e,(function(t,n,r,o){t&&(u.error("failed to subscribe to sections in channel: ",t),i.setData(e,{error:t,data:null,isLoading:o})),n&&(u.info("sections data received"),i.setData(e,{error:t,data:{items:n.sections,hasNextPage:n.hasNextPage,fetchMore:function(){return null==r?void 0:r()}},isLoading:o}))}),t)))}),[n]),{error:s?s.error:null,data:s?s.data:null,isLoading:!!s&&s.isLoading}},t.useChannelsInWidget=function(e,t){void 0===t&&(t=10);var n=(0,o.useTivioData)().subscriptions,i=(0,r.useContext)(a.ChannelsContext),s=i.data[e];return(0,r.useEffect)((function(){n&&(s||(u.info("subscribe to channels in widget with id: "+e),n.subscribeToChannelsInWidget(e,(function(t,n,r,o){t&&(u.error("failed to subscribe to channels in widget: ",t),i.setData(e,{error:t,data:null,isLoading:o})),n&&(u.info("channels data received"),i.setData(e,{error:t,data:{items:n.channels,hasNextPage:n.hasNextPage,fetchMore:function(){return null==r?void 0:r()}},isLoading:o}))}),t)))}),[n]),{error:s?s.error:null,data:s?s.data:null,isLoading:!!s&&s.isLoading}},t.useIsLoaded=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1],i=(0,o.useTivioData)();return(0,r.useEffect)((function(){i.getters&&i.getters.isTivioLoaded(n)}),[i]),{isTivioLoaded:t}}},1012:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5545),t),o(n(8919),t),o(n(3284),t),o(n(9325),t),o(n(4588),t),o(n(2045),t),o(n(1530),t),o(n(8186),t),o(n(3991),t),o(n(9735),t),o(n(4439),t),o(n(6621),t),o(n(3533),t),o(n(2997),t),o(n(360),t),o(n(506),t),o(n(563),t),o(n(2700),t),o(n(2484),t),o(n(2771),t),o(n(7337),t),o(n(8918),t)},6621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAdSegment=t.useSeekState=t.useCurrentMarker=t.useAd=t.useIntro=t.useBetOffer=t.useMarkers=t.usePlayerEvent=void 0;var r=n(8156),o=n(8074),i=n(2484);t.usePlayerEvent=function(e){var t=(0,r.useContext)(o.PlayerContext);if(void 0===t)throw new Error("usePlayerEvent must be inside PlayerContext");var n=(0,r.useState)(null),i=n[0],a=n[1];return(0,r.useEffect)((function(){if(null==t?void 0:t.events)return t.events.addListener(e,a),function(){return t.events.removeListener(e,a)}}),[null==t?void 0:t.events]),i},t.useMarkers=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useMarkers must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("markers",i),function(){return e.events.removeListener("markers",i)}}),[null==e?void 0:e.events]),n},t.useBetOffer=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useBetOffer must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("bet-offer",i),function(){return e.events.removeListener("bet-offer",i)}}),[null==e?void 0:e.events]),n},t.useIntro=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useIntro must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("intro",i),function(){return e.events.removeListener("intro",i)}}),[null==e?void 0:e.events]),n},t.useAd=function(){var e,t,n=(0,i.useTivioReadyData)();return(null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAd())&&void 0!==t?t:[null])[0]},t.useCurrentMarker=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useCurrentMarker must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("current-marker",i),function(){return e.events.removeListener("current-marker",i)}}),[null==e?void 0:e.events]),n},t.useSeekState=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useSeekState must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events){var t=function(){return i(!1)},n=function(){return i(!0)};return e.events.addListener("disable-seek",t),e.events.addListener("enable-seek",n),function(){e.events.removeListener("disable-seek",t),e.events.removeListener("enable-seek",n)}}}),[null==e?void 0:e.events]),n},t.useAdSegment=function(){var e,t,n=(0,i.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAdSegment())&&void 0!==t?t:null}},8918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useApplyInviteCode=void 0;var r=n(2484);t.useApplyInviteCode=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.useApplyInviteCode)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{applyInviteCodeResult:void 0,loading:!0,error:void 0,applyInviteCode:function(){},inviteCodeReset:function(){}}}},1530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCancelSubscription=void 0;var r=n(2484);t.useCancelSubscription=function(e){var t,n,o=(0,r.useTivioData)().hooks,i=null!==(n=null===(t=null==o?void 0:o.useCancelSubscription)||void 0===t?void 0:t.call(o,e))&&void 0!==n?n:{},a=i.cancelSubscription,u=i.cancellationInfo;return{cancelSubscription:null!=a?a:function(){return Promise.resolve()},cancellationInfo:null!=u?u:null,error:i.error}}},506:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFreePurchase=void 0;var i=n(2484);t.useFreePurchase=function(){var e=(0,i.useTivioData)().auth;return{purchase:function(t){return r(void 0,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return e?[4,e.createFreePurchase(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))}}}},2997:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMonetizationPurchased=void 0;var r=n(2484);t.useIsMonetizationPurchased=function(){var e,t=(0,r.useTivioData)().internal;return null!==(e=null==t?void 0:t.hooks.useIsMonetizationPurchased())&&void 0!==e?e:{isOneOfSubscriptionPurchased:function(){return!1}}}},2045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useItemsInRow=void 0;var r=n(2484);t.useItemsInRow=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useItemsInRow)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},2771:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLastVideoByWidgetId=void 0,t.useLastVideoByWidgetId=function(e){return null}},3533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOrganizationSubscriptions=void 0;var r=n(2484);t.useOrganizationSubscriptions=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useOrganizationSubscriptions())&&void 0!==t?t:{subscriptions:[]}}},3991:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseRecovery=void 0;var r=n(2484);t.usePurchaseRecovery=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.usePurchaseRecovery)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{purchaseRecoveryResult:void 0,loading:!0,error:void 0,purchaseRecovery:function(){}}}},9735:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseSubscription=void 0;var i=n(5264),a=n(8156),u=n(2484),s=n(5545);t.usePurchaseSubscription=function(e,t){var n=(0,a.useState)(null),c=n[0],l=n[1],f=(0,a.useState)(""),d=f[0],p=f[1],h=(0,u.useTivioData)().purchaseSubscriptionWithQerko,v=(0,s.useUser)().user,y=(0,a.useCallback)((function(){return r(void 0,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:p(""),o.label=1;case 1:if(o.trys.push([1,3,,4]),!h)throw new Error("purchaseSubscriptionWithQerko not in bundle");if(t)if(t.expirationDate instanceof Date&&!isNaN(t.expirationDate.getTime()))t.expirationDate=t.expirationDate.getTime();else if(isNaN(Number(t.expirationDate)))throw new Error("Invalid voucher expiration date. Must be Date or number (date in miliseconds).");return[4,h(e,t)];case 2:return n=o.sent(),l(n),[3,4];case 3:return(r=o.sent())instanceof Error&&p(r.message),[3,4];case 4:return[2]}}))}))}),[h]),g=(0,a.useCallback)((function(){return null==v?void 0:v.purchases.find((function(e){return e.id===(null==c?void 0:c.purchaseId)}))}),[v,e,c]),b=(0,i.useObserver)((function(){if(v){var e=g();if(e)return e.status}return"NEW"})),m=(0,i.useObserver)((function(){if(c&&v){var e=g();if(e)return e.voucherId}}));return(0,a.useEffect)((function(){y()}),[y]),{paymentError:d,paymentInfo:c,paymentStatus:b,getPaymentInfo:y,voucherId:m}}},360:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchasesWithVideos=void 0;var r=n(2484);t.usePurchasesWithVideos=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.usePurchasesWithVideos())&&void 0!==t?t:{purchases:[]}}},563:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRowsInScreen=void 0;var r=n(2484);t.useRowsInScreen=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useRowsInScreen)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},9325:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useScreen=void 0,t.useScreen=function(e,t){throw new Error("deprecated")}},3284:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useScreens=void 0;var i=n(8156),a=n(2484);t.useScreens=function(){var e=(0,a.useTivioData)().getters,t=(0,i.useState)([]),n=t[0],u=t[1];return(0,i.useEffect)((function(){e&&r(void 0,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return[4,e.getOrganizationScreens()];case 1:return t=n.sent(),u(t),[2]}}))}))}),[e]),{screens:n}}},4588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=t.useSearch=void 0;var r=n(8741);Object.defineProperty(t,"ALGOLIA_INDEX_NAME",{enumerable:!0,get:function(){return r.ALGOLIA_INDEX_NAME}});var o=n(2484);t.useSearch=function(e,t){var n,r,i=(0,o.useTivioData)().hooks,a=null!==(r=null===(n=null==i?void 0:i.useSearch)||void 0===n?void 0:n.call(i,e,t))&&void 0!==r?r:{},u=a.search,s=a.pagination,c=a.isLoading,l=a.error,f=a.lastQuery;return{search:null!=u?u:function(){return Promise.resolve()},pagination:(null==s?void 0:s.items)?{items:s.items,fetchMore:s.fetchMore}:null,isLoading:null==c||c,error:null!=l?l:null,lastQuery:null!=f?f:""}}},8919:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTaggedVideos=void 0;var r=n(2484);t.useTaggedVideos=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useTaggedVideos)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},2484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTivioReadyData=t.useTivioData=void 0;var r=n(8156),o=n(8185),i=function(){var e=(0,r.useContext)(o.TivioContext);if(null===e)throw new Error("Make sure to wrap your app in TivioProvider");return e};t.useTivioData=i,t.useTivioReadyData=function(){var e=i();return"ready"===e.state?e:null}},8186:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTransactionPayment=void 0;var i=n(5264),a=n(8156),u=n(3368);n(3551),t.useTransactionPayment=function(e,t,n){var s=(0,a.useState)(null),c=s[0],l=s[1],f=(0,a.useState)(""),d=f[0],p=f[1],h=(0,u.useTivioData)().purchaseVideoWithQerko,v=(0,u.useUser)().user,y=(0,a.useCallback)((function(){return r(void 0,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:p(""),o.label=1;case 1:if(o.trys.push([1,3,,4]),!h)throw new Error("purchaseVideoWithQerko not in bundle");if(n)if(n.expirationDate instanceof Date&&!isNaN(n.expirationDate.getTime()))n.expirationDate=n.expirationDate.getTime();else if(isNaN(Number(n.expirationDate)))throw new Error("Invalid voucher expiration date. Must be Date or number (date in miliseconds).");return[4,h(e,t,n)];case 2:return r=o.sent(),l(r),[3,4];case 3:return i=o.sent(),p(i.message),[3,4];case 4:return[2]}}))}))}),[h]);(0,a.useEffect)((function(){y()}),[y]);var g=(0,a.useCallback)((function(e){var t;return void 0===e&&(e=!1),(null!==(t=e?null==v?void 0:v.allPurchases:null==v?void 0:v.purchases)&&void 0!==t?t:[]).find((function(e){return e.id===(null==c?void 0:c.purchaseId)}))}),[v,t,e,c]),b=(0,i.useObserver)((function(){if(c&&v){var e=g(!0);if(e)return e.status}return"NEW"})),m=(0,i.useObserver)((function(){if(c&&v){var e=g();if(e)return e.voucherId}}));return{paymentInfo:c,paymentError:d,paymentStatus:b,voucherId:m,getPaymentInfo:y}}},5545:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=void 0;var r=n(2484);t.useUser=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useUser())&&void 0!==t?t:{user:null,error:null,isInitialized:!1}}},2700:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVoucher=void 0;var r=n(3368);t.useVoucher=function(e){var t=(0,r.useTivioData)().hooks,n=null==t?void 0:t.useVoucher(e);return{activate:n?n.activate:null,voucher:n?n.voucher:null,error:n?n.error:null,activationSuccess:!!n&&n.activationSuccess}}},7337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useWatchWithoutAdsOffer=void 0;var r=n(2484);t.useWatchWithoutAdsOffer=function(){var e,t,n=(0,r.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useWatchWithoutAdsOffer())&&void 0!==t?t:{canPurchaseWatchWithoutAds:!1,showPurchaseDialog:function(){}}}},952:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createInternalConf=t.defaultConf=void 0;var o=n(3366),i=n(8491),a=n(5167),u=n(8323),s=n(5883);t.defaultConf={secret:null,resolverUrl:"https://tivio-resolver-production.tiv.io/serveBundle/resolver2.js",currency:"CZK",disableUnmounting:!1,fetchPackage:u.fetchPackage,pubSub:(0,s.getPubSub)(),LoaderComponent:i.TivioWidgetLoader,ErrorComponent:o.TivioWidgetError},t.createInternalConf=function(e){var n,o;if(e){if(null==e.currency)throw new Error(".currency is missing in Tivio config");if(null==e.deviceCapabilities)throw new Error(".deviceCapabilities is missing in Tivio config")}return o="auto"===(null==e?void 0:e.deviceCapabilities)?[]:null!==(n=null==e?void 0:e.deviceCapabilities)&&void 0!==n?n:[],r(r(r(r({},t.defaultConf),null!=e?e:{}),null==(null==e?void 0:e.secret)?{enable:!1}:{}),{logger:void 0!==(null==e?void 0:e.logger)?e.logger:(0,a.createLogger)({isConsoleEnabled:!0}),sdkVersion:"3.6.1",deviceCapabilities:o})}},3368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=t.setUser=t.Nullable=t.Empty=t.Disposer=t.bundlePromise=t.withPlayerContext=t.PlayerProvider=void 0,n(6168),n(6916);var i=n(8074);Object.defineProperty(t,"PlayerProvider",{enumerable:!0,get:function(){return i.PlayerProvider}}),Object.defineProperty(t,"withPlayerContext",{enumerable:!0,get:function(){return i.withPlayerContext}});var a=n(7968);Object.defineProperty(t,"bundlePromise",{enumerable:!0,get:function(){return a.bundlePromise}}),o(n(1012),t),o(n(8185),t),o(n(5111),t),o(n(3366),t),o(n(467),t),o(n(8491),t),o(n(7023),t),o(n(6111),t),o(n(5883),t),o(n(4952),t);var u=n(1649);Object.defineProperty(t,"Disposer",{enumerable:!0,get:function(){return u.Disposer}});var s=n(1649);Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return s.Empty}});var c=n(1649);Object.defineProperty(t,"Nullable",{enumerable:!0,get:function(){return c.Nullable}}),o(n(3551),t);var l=n(6732);Object.defineProperty(t,"setUser",{enumerable:!0,get:function(){return l.setUser}});var f=n(4207);Object.defineProperty(t,"showGdprConsentPreferences",{enumerable:!0,get:function(){return f.showGdprConsentPreferences}}),(0,n(5936).logInfo)()},5936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logInfo=void 0;var r=n(194),o=new r.Logger("tivio");t.logInfo=function(){var e=(0,r.getTizenVersion)();e&&o.info("Device: Tizen, version: "+e.version)}},6111:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createUseRemoteBundle=t.createRemotePackageLoader=t.fetchBundle=void 0,n(3258);var a=n(194),u=n(8156),s=n(6457),c=n(1480),l=new a.Logger("bundleLoader"),f=function(e){var t=e.resolverUrl;return(0,e.fetchPackage)(t)},d=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return l.info("Fetching bundle by url",e),[4,fetch(e)];case 1:if(!((r=(t=n.sent()).status)>=200&&r<=400))throw new Error("Failed to fetch bundleUrlOverride "+e+", HTTP error status code: "+t.status);return[4,t.text()];case 2:return[2,n.sent()]}var r}))}))},p=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,fetch("https://europe-west3-tivio-production.cloudfunctions.net/getRemoteBundle",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({secret:e})})];case 1:return[4,n.sent().json()];case 2:return t=n.sent(),[2,d(t.bundleUrl)]}}))}))},h=function(e,t){return o(void 0,void 0,void 0,(function(){return i(this,(function(n){return l.info("Fetching bundle via resolver"),[2,f(t).then((function(n){var r,o={},i={exports:o};try{new Function("require","module","exports",n)(s.resolveShared,i,o)}catch(e){return Promise.reject("Cannot load Tivio Resolver "+e)}return"function"!=typeof(null===(r=i.exports.tivio)||void 0===r?void 0:r.fetch)?Promise.reject("Invalid Tivio Resolver export"):i.exports.tivio.fetch(e,t.sdkVersion)}))]}))}))},v=function(e,t){return o(void 0,void 0,Promise,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n="",t.forceCloudFnResolver?(l.info("Fetching bundle via cloudfn (forced by config)"),[4,p(e)]):[3,2];case 1:return n=r.sent(),[3,10];case 2:return t.bundleUrlOverride?(l.info("Fetching bundle directly based on config.bundleUrlOverride",t.bundleUrlOverride),[4,d(t.bundleUrlOverride)]):[3,4];case 3:return n=r.sent(),[3,10];case 4:return(0,a.isIndexedDbSupported)()?[3,6]:(l.info("Fetching bundle via cloudfn, because indexedDB is not supported"),[4,p(e)]);case 5:return n=r.sent(),[3,10];case 6:return(0,a.isTizenVersionGreaterThan)(5)?(l.info("Fetching bundle via cloudfn, because Tizen version is > 5"),[4,p(e)]):[3,8];case 7:return n=r.sent(),[3,10];case 8:return[4,h(e,t)];case 9:n=r.sent(),r.label=10;case 10:return function(e,t){if(e.length<5e4){var n="Invalid bundle, the loaded bundle has extremely small char count (only "+e.length+") chars";throw l.error(n,e),new Error(n)}}(n),[2,n]}}))}))};t.fetchBundle=v;var y=function(){return function(e,t){return o(void 0,void 0,Promise,(function(){return i(this,(function(n){return[2,v(e,t).then((function(e){var t={},n={exports:t};try{new Function("require","module","exports",e)(s.resolveShared,n,t)}catch(e){return Promise.reject("Cannot load module "+e)}return"object"!=typeof n.exports.Tivio?Promise.reject('Tivio package does not export "Tivio" namespace'):"object"!=typeof n.exports.Tivio.components?Promise.reject('Tivio namespace does not export "components" member'):"function"!=typeof n.exports.Tivio.setUser?Promise.reject('Tivio namespace does not export "setUser" member'):"function"!=typeof n.exports.Tivio.init?Promise.reject('Tivio namespace does not export "init" member'):n.exports.Tivio}))]}))}))}};t.createRemotePackageLoader=y,t.createUseRemoteBundle=function(){var e=y(),t=!1;return function(n){var a=(0,c.createSettings)(),s=(0,u.useState)({auth:null,components:null,config:n,error:null,getters:null,init:null,purchaseSubscriptionWithQerko:null,purchaseVideoWithQerko:null,cancelSubscriptionWithQerko:null,setLanguage:null,showConsentPreferences:null,settings:a,setUser:null,sources:null,hooks:null,state:"loading",subscriptions:null,internal:null}),l=s[0],f=s[1];return(0,u.useEffect)((function(){null!=n.secret&&!1!==n.enable&&e(n.secret,n).then((function(e){return o(void 0,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return t?[3,2]:[4,e.init(n)];case 1:i.sent(),t=!0,i.label=2;case 2:return o=r(r({},e),{config:n,error:null,settings:a,state:"ready"}),f(o),n.pubSub.publish("on-ready",o),[2]}}))}))})).catch((function(e){var t;null===(t=n.logger)||void 0===t||t.exception(e),f(r(r({},l),{config:n,error:""+e,settings:a,state:"error"})),n.pubSub.publish("on-error",e)}))}),[]),l}}},7968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bundlePromise=t.tivioBundle=void 0;var r=n(5883);t.tivioBundle=null,t.bundlePromise=new Promise((function(e,n){(0,r.getPubSub)().subscribe("on-ready",(function(n){t.tivioBundle=n,e(n)})),(0,r.getPubSub)().subscribe("on-error",(function(e){n(e)}))})).catch((function(e){throw console.error("@tivio/sdk-react failed to load. Reason:",e),e})).then((function(e){return console.info("@tivio/sdk-react loaded successfully."),e}))},6457:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveShared=void 0;var u=i(n(670)),s=i(n(6741)),c=i(n(8879)),l=a(n(2937));n(6703),n(6462);var f=i(n(7661)),d=i(n(8661)),p=i(n(259)),h=i(n(5264)),v=i(n(8156)),y=i(n(7111)),g=i(n(3238)),b=i(n(6128)),m=i(n(5412)),_=i(n(1296)),w=i(n(1608)),O=i(n(7589)),P={mobx:p,"mobx-react":h,firebase:l.default,"firebase/app":l.default,"firebase/auth":null,"firebase/firestore":null,react:v,React:v,"react-dom":y,"styled-components":w,"@material-ui/core":u,"@material-ui/icons":s,formik:f,i18next:d,"react-i18next":g,"react-router-dom":b,"react-virtualized":_,"react-spring":m,yup:O,dayjs:c};t.resolveShared=function(e){if(!(e in P))throw new Error("Could not resolve shared dependency "+e);return P[e]}},4207:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=void 0;var i=n(7968);t.showGdprConsentPreferences=function(){return r(void 0,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.bundlePromise];case 1:return e=n.sent(),null===(t=e.showConsentPreferences)||void 0===t||t.call(e),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}}))}))}},3258:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadBundleFromDist=void 0,t.loadBundleFromDist=function(){}},5167:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createLogger=void 0;var o=n(6435);t.createLogger=function(e){var t=!1!==e.isSentryEnabled,n=function(n,i){e.isConsoleEnabled&&console[n].apply(console,r(["Tivio SDK "],i,!1)),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureMessage(""+i,o.Sentry.Severity.fromString(n)))};return{error:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("error",e)},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("info",e)},warn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("warn",e)},debug:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("debug",e)},exception:function(n){e.isConsoleEnabled&&console.error(n),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureException(n))}}}},6732:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.setUser=void 0;var i=n(7968);t.setUser=function(e,t){return r(void 0,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,i.bundlePromise];case 1:return n=o.sent(),[4,null===(r=n.setUser)||void 0===r?void 0:r.call(n,e,t)];case 2:case 3:return o.sent(),[3,4];case 4:return[2]}}))}))}},8323:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPackage=void 0;var o={cache:"no-store"},i=function(e){var t=e.headers.get("content-type");return 200!==e.status?Promise.reject('Incorrect status "'+e.status+'" was obtained while fetching the module.'):t&&(t.includes("application/javascript")||t.includes("text/javascript"))?e.text():Promise.reject('Incorrect content "'+t+'" was obtained while fetching the module.')},a=function(e){return Promise.reject("Network failure: "+e)};t.fetchPackage=function(e){return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,fetch(e,o).then(i).catch(a)]}))}))}},5883:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPubSub=t.createPubSub=void 0,t.createPubSub=function(){var e=new Map;return{publish:function(t,n){var r;null===(r=e.get(t))||void 0===r||r.forEach((function(e){(0,e.onMessage)(n)}))},subscribe:function(t,n){var r=(new Date).getTime();return e.has(t)||e.set(t,[]),e.get(t).push({id:r,onMessage:n}),function(){var n,o=null!==(n=e.get(t))&&void 0!==n?n:[],i=o.findIndex((function(e){return e.id===r}));-1!==i&&o.splice(i,1)}}}};var n=null;t.getPubSub=function(){return null===n&&(n=(0,t.createPubSub)()),n}},6435:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.initSentry=t.disableSentry=t.Sentry=void 0;var a=i(n(7356)),u="true"===process.env.DISABLE_SENTRY;t.Sentry=u?null:a,t.disableSentry=function(){t.Sentry=null,console.info("@tivio: Sentry disabled")},t.initSentry=function(){t.Sentry&&(t.Sentry.init({dsn:"https://8b9d489695004b0da95481f939b0455d@o507550.ingest.sentry.io/5600271",release:"@tivio/sdk-react@3.6.1",tracesSampleRate:1}),console.info("@tivio: Sentry enabled"),s())};var s=function(){window.sentry=t.Sentry,console.info("@tivio: Sentry added to window")}},1480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSettings=void 0;var r=n(6732);t.createSettings=function(){return{setUser:function(e,t){return(0,r.setUser)(e,t)}}}},3551:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Translation=t.PLATFORM=t.ROW_ITEM_TYPES=t.CUSTOMER_BUILD=t.ExternalTvConfig=t.QerkoCancellationInfo=t.Currency=void 0;var r=n(8741);Object.defineProperty(t,"Currency",{enumerable:!0,get:function(){return r.Currency}}),Object.defineProperty(t,"QerkoCancellationInfo",{enumerable:!0,get:function(){return r.QerkoCancellationInfo}}),Object.defineProperty(t,"CUSTOMER_BUILD",{enumerable:!0,get:function(){return r.CUSTOMER_BUILD}}),Object.defineProperty(t,"PLATFORM",{enumerable:!0,get:function(){return r.PLATFORM}}),Object.defineProperty(t,"ExternalTvConfig",{enumerable:!0,get:function(){return r.ExternalTvConfig}}),Object.defineProperty(t,"ROW_ITEM_TYPES",{enumerable:!0,get:function(){return r.ROW_ITEM_TYPES}}),Object.defineProperty(t,"Translation",{enumerable:!0,get:function(){return r.Translation}})},1649:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7023:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4952:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LangCode=void 0;var r=n(8741);Object.defineProperty(t,"LangCode",{enumerable:!0,get:function(){return r.LangCode}})},6168:function(e,t,n){"use strict";n.r(t),n.d(t,{Headers:function(){return h},Request:function(){return w},Response:function(){return P},DOMException:function(){return S},fetch:function(){return j}});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,o="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in r,s="ArrayBuffer"in r;if(s)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function v(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=v(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,n,r=v(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=y(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=f(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[f(e)]},h.prototype.get=function(e){return e=f(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(f(e))},h.prototype.set=function(e,t){this.map[f(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function P(e,t){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},m.call(w.prototype),m.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},P.error=function(){var e=new P(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];P.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new P(null,{status:t,headers:{location:e}})};var S=r.DOMException;try{new S}catch(e){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function j(e,t){return new Promise((function(n,o){var i=new w(e,t);if(i.signal&&i.signal.aborted)return o(new S("Aborted","AbortError"));var u=new XMLHttpRequest;function c(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new P(o,r))}),0)},u.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){o(new S("Aborted","AbortError"))}),0)},u.open(i.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?u.withCredentials=!0:"omit"===i.credentials&&(u.withCredentials=!1),"responseType"in u&&(a?u.responseType="blob":s&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof h?i.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){u.setRequestHeader(e,d(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&i.signal.removeEventListener("abort",c)}),u.send(void 0===i._bodyInit?null:i._bodyInit)}))}j.polyfill=!0,r.fetch||(r.fetch=j,r.Headers=h,r.Request=w,r.Response=P)},670:function(e){"use strict";e.exports=r},6741:function(e){"use strict";e.exports=o},7356:function(e){"use strict";e.exports=t},2937:function(e){"use strict";e.exports=i},6703:function(e){"use strict";e.exports=a},6462:function(e){"use strict";e.exports=u},7661:function(e){"use strict";e.exports=s},8661:function(e){"use strict";e.exports=c},259:function(e){"use strict";e.exports=n},5264:function(e){"use strict";e.exports=l},8156:function(t){"use strict";t.exports=e},7111:function(e){"use strict";e.exports=f},3238:function(e){"use strict";e.exports=d},6128:function(e){"use strict";e.exports=p},5412:function(e){"use strict";e.exports=h},1296:function(e){"use strict";e.exports=v},1608:function(e){"use strict";e.exports=y},7589:function(e){"use strict";e.exports=g}},m={};function _(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return b[e].call(n.exports,n,n.exports,_),n.exports}return _.d=function(e,t){for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_(3368)}()}));