@tivio/sdk-react 7.1.0 → 7.2.0-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -0
- package/README.md.bak +4 -0
- package/dist/index.d.ts +170 -36
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +170 -36
- package/package.json +3 -2
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@sentry/browser"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx"),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","@material-ui/core","@material-ui/icons","firebase/app","firebase/auth","firebase/firestore","formik","i18next","mobx","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("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx"),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["@material-ui/core"],e["@material-ui/icons"],e["firebase/app"],e["firebase/auth"],e["firebase/firestore"],e.formik,e.i18next,e.mobx,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,s,u,c,l,d,f,p,v,h,g,y){return function(){var b={194:function(e,t,n){var r;e.exports=(r=n(8156),function(){var e={718:function(e){e.exports=function(){"use strict";var e={7723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(3902),t)},3902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid",e.TIVIO_ADS="tivio-ads",e.JOJ_TEST_AD_FORM_PROGRAMMATIC="joj-test-ad-form-programmatic",e.JOJ_TEST_TESTER_VASTERIX="joj-test-tester-vasterix",e.JOJ_TEST_TESTER_ADFORM_30="joj-test-tester-adform-30"}(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.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{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:"Tivio fake ads - always working",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0},{id:n.JOJ_TEST_AD_FORM_PROGRAMMATIC,name:"JOJ Test AdForm Programmatic"},{id:n.JOJ_TEST_TESTER_VASTERIX,name:"JOJ Test Vasterix"},{id:n.JOJ_TEST_TESTER_ADFORM_30,name:"JOJ Test Adform 30"},{id:n.TIVIO_ADS,name:"Tivio Ads"}].sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))},1920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(6895),t),o(n(3216),t),o(n(7723),t)},3216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},87:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},3690:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentSortEnum=t.CustomerId=void 0,(r=t.CustomerId||(t.CustomerId={})).OKTAGON="OKTAGON",r.JOJ="JOJ",r.MALL="MALL",r.GARAZ="GARAZ",r.U_KULATEHO_STOLU="U_KULATEHO_STOLU",r.INVESTOREES="INVESTOREES",r.DVTV="DVTV",r.DVTV_DEV="DVTV_DEV",r.O2="O2",r.GRAPE="GRAPE",r.TIVIO="TIVIO",r.STORYBOOK="STORYBOOK",r.NANGU_DEV="NANGU_DEV",r.CNC="CNC",r.VOJTA_ZIZKA="VOJTA_ZIZKA",(n=t.ContentSortEnum||(t.ContentSortEnum={})).LATEST="latest",n.OLDEST="oldest",n.A_TO_Z="a_to_z",n.Z_TO_A="z_to_a",n.EPISODE_ASC="episode_asc",n.EPISODE_DESC="episode_desc"},9801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6002:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV",n.UNKNOWN="unknown"},6123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(2489),t),o(n(87),t),o(n(5304),t),o(n(3690),t),o(n(9801),t),o(n(7495),t),o(n(6002),t),o(n(6123),t),o(n(5589),t),o(n(6889),t),o(n(703),t),o(n(9743),t),o(n(9407),t),o(n(8757),t)},6889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9743:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isVirtualChannelSource=t.isClassicChannelSource=t.isChannelSource=t.isVodExternalSource=t.isVodTivioSource=t.isAdSource=t.SourcePlayMode=t.SourceType=void 0;var r,o,i=n(9786);function a(e){return(null==e?void 0:e.type)===r.CHANNEL}!function(e){e.ADVERTISEMENT="ad",e.CHANNEL="channel",e.VOD_TIVIO="vod_tivio",e.VOD_EXTERNAL="vod_external"}(r=t.SourceType||(t.SourceType={})),(o=t.SourcePlayMode||(t.SourcePlayMode={})).ON_DEMAND="ON_DEMAND",o.LIVE="LIVE",o.HYBRID="HYBRID",t.isAdSource=function(e){return(null==e?void 0:e.type)===r.ADVERTISEMENT},t.isVodTivioSource=function(e){return(null==e?void 0:e.type)===r.VOD_TIVIO},t.isVodExternalSource=function(e){return(null==e?void 0:e.type)===r.VOD_EXTERNAL},t.isChannelSource=a,t.isClassicChannelSource=function(e){return a(e)&&(null==e?void 0:e.tvChannelType)===i.TvChannelType.CLASSIC},t.isVirtualChannelSource=function(e){return a(e)&&(null==e?void 0:e.tvChannelType)===i.TvChannelType.VIRTUAL}},9407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6255:function(e,t){var n,r,o,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.RowWhereFilterFieldPath=t.RowOrderByFieldPath=t.RegistrationRedirect=t.LoginRedirect=t.SemanticDate=t.DEFAULT_LIMIT=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.IT="it",e.PL="pl",e.PT="pt",e.SK="sk",e.ES="es",e.HU="hu"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}],t.DEFAULT_LIMIT=10,(s=t.SemanticDate||(t.SemanticDate={})).YESTERDAY="Yesterday",s.TODAY="Today",s.TOMORROW="Tomorrow",(a=t.LoginRedirect||(t.LoginRedirect={})).PAYMENT="payment",a.VOUCHER="voucher",(t.RegistrationRedirect||(t.RegistrationRedirect={})).PAYMENT="payment",(i=t.RowOrderByFieldPath||(t.RowOrderByFieldPath={})).CREATED="created",i.DEFAULT_NAME="defaultName",(o=t.RowWhereFilterFieldPath||(t.RowWhereFilterFieldPath={})).CREATED="created",o.TAGS="tags",o.TAG_TYPE_REF="tagTypeRef",o.TYPE="type",o.CONTENT_TYPE="contentType",o.CHANNEL_KEY="channelKey",function(e){e.VIDEOS="videos",e.TAGS="tags",e.TV_CHANNELS="tvChannels"}(r||(r={}))},9396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4360:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsConversionPage=t.AnalyticsConversionTargetBase=t.AnalyticsConversionName=t.AnalyticsConversionStatus=void 0,(i=t.AnalyticsConversionStatus||(t.AnalyticsConversionStatus={})).SUCCESS="SUCCESS",i.FAILED="FAILED",(o=t.AnalyticsConversionName||(t.AnalyticsConversionName={})).CLICK="click",o.PLAY="play",o.PURCHASE="purchase",o.VISIT="visit",(r=t.AnalyticsConversionTargetBase||(t.AnalyticsConversionTargetBase={})).Element="element",r.Monetization="monetization",(n=t.AnalyticsConversionPage||(t.AnalyticsConversionPage={})).Videos="videos",n.Series="series",n.Profile="profile",n.Tags="tags",n.Screens="screens",n.Registration="registration",n.Login="login",n.About="about",n.ResetPassword="reset-password",n.Player="player",n.Redeem="redeem",n.Referral="referral",n.Pair="pair",n.Search="search"},5177:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationType=void 0,(n=t.ApplicationType||(t.ApplicationType={})).TIVIO_PRO="TIVIO_PRO",n.ORGANIZATION="ORGANIZATION"},786:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},278:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DrmProvider=void 0,(n=t.DrmProvider||(t.DrmProvider={})).STREAMONLINE="streamonline",n.INSYS="insys"},8810:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},90:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenReason=void 0,(n=t.ForbiddenReason||(t.ForbiddenReason={})).MONETIZATION="MONETIZATION",n.GEO_BLOCKING="GEO_BLOCKING"},9786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(9396),t),o(n(4360),t),o(n(5177),t),o(n(2826),t),o(n(786),t),o(n(5129),t),o(n(278),t),o(n(8810),t),o(n(90),t),o(n(7871),t),o(n(3959),t),o(n(7788),t),o(n(3910),t),o(n(726),t),o(n(7523),t),o(n(1738),t),o(n(7535),t),o(n(3161),t),o(n(7605),t),o(n(190),t),o(n(8522),t),o(n(9614),t),o(n(5656),t),o(n(4906),t),o(n(7300),t),o(n(9363),t),o(n(3948),t),o(n(2635),t)},7871:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedScreenMessageType=void 0,(n=t.EmbedScreenMessageType||(t.EmbedScreenMessageType={})).RESIZE="RESIZE",n.NAVIGATE="NAVIGATE"},3959:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_DURATION=t.MONETIZATION_FREQUENCY=void 0,(r=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",r.DAILY="DAILY",r.WEEKLY="WEEKLY",r.MONTHLY="MONTHLY",r.HALF_ANNUALLY="HALF_ANNUALLY",r.ANNUALLY="ANNUALLY",(n=t.MONETIZATION_DURATION||(t.MONETIZATION_DURATION={}))[n.UNLIMITED=-1]="UNLIMITED",n[n.DAY=1]="DAY",n[n.WEEK=7]="WEEK",n[n.MONTH=30]="MONTH",n[n.HALF_YEAR=183]="HALF_YEAR",n[n.YEAR=365]="YEAR"},7788:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.UserGroup=t.NotificationStatus=void 0,(r=t.NotificationStatus||(t.NotificationStatus={})).PLANNED="planned",r.SENT="sent",(n=t.UserGroup||(t.UserGroup={})).ALL="all",n.FREE="free",n.PREMIUM="premium"},3910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},726:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DurationUnits=void 0,(n=t.DurationUnits||(t.DurationUnits={})).DAY="day",n.MONTH="month"},7523:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate",n.tivio="tivio"},1738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7535:function(e,t){var n,r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.GRID_TYPES=t.ROW_ITEM_TYPES=t.RowItemComponent=t.BannerItemComponent=t.RowComponent=void 0,(a=t.RowComponent||(t.RowComponent={})).ROW="ROW",a.BANNER="BANNER",(i=t.BannerItemComponent||(t.BannerItemComponent={})).CLASSIC="CLASSIC",i.SPLIT="SPLIT",(o=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",o.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",o.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(r=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",r.TAG="TAG",r.TV_CHANNEL="TV_CHANNEL",r.ADVERTISEMENT="ADVERTISEMENT",(n=t.GRID_TYPES||(t.GRID_TYPES={})).ROW="ROW",n.VIDEO="VIDEO",n.SERIES="SERIES"},3161:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenType=void 0,(n=t.ScreenType||(t.ScreenType={})).DEFAULT="default",n.GRID="grid",n.EMBED="embed"},7605: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"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8522:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoSourceEncryption=t.VideoSourceCodec=t.VideoSourceProtocol=void 0,(o=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",o.DASH="dash",o.MP4="mp4",(r=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",r.H265="h265",(n=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",n.WIDEVINE="widevine",n.FAIRPLAY="fairplay",n.PLAYREADY="playready"},9614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4906:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelType=t.TvStreamType=void 0,(r=t.TvStreamType||(t.TvStreamType={})).STARTOVER="startover",r.TIMESHIFT="timeshift",r.LIVE="live",r.ALL="all",(n=t.TvChannelType||(t.TvChannelType={})).CLASSIC="CLASSIC",n.VIRTUAL="VIRTUAL"},7300:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9363: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",n.BLOCKED="BLOCKED"},3948: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.CUT="CUT",n.TRAILER="TRAILER",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},2635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(9352),t),o(n(6255),t),o(n(4620),t)},4620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},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}(1920)}()},879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,h={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(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,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);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:u,y:l,w:s,d:a,D:d,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]=h;var _=function(e){return e instanceof P},O=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 s=t.name;m[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new P(n)},T=y;T.l=O,T.i=_,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function h(e){this.$L=O(e.locale,null,!0),this.parse(e)}var g=h.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.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()},g.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()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!T.u(t)||t,f=T.p(e),p=function(e,t){var r=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},v=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case l:return c?p(1,0):p(31,11);case u:return c?p(1,g):p(0,g+1);case s:var m=this.$locale().weekStart||0,_=(h<m?h+7:h)-m;return p(c?y-_:y+(6-_),g);case a:case d:return v(b+"Hours",0);case i:return v(b+"Minutes",1);case o:return v(b+"Seconds",2);case r:return v(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=T.p(e),f="set"+(this.$u?"UTC":""),p=(s={},s[a]=f+"Date",s[d]=f+"Date",s[u]=f+"Month",s[l]=f+"FullYear",s[i]=f+"Hours",s[o]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[c],v=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var h=this.clone().set(d,1);h.$d[p](v),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[T.p(e)]()},g.add=function(n,c){var d,f=this;n=Number(n);var p=T.p(c),v=function(e){var t=S(f);return T.w(t.date(t.date()+Math.round(e*n)),f)};if(p===u)return this.set(u,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return v(1);if(p===s)return v(7);var h=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*h;return T.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=T.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return T.s(i%12||12,e,"0")},h=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(v,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,u,2);case"ddd":return d(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return T.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return T.s(a,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,f){var p,v=this,h=T.p(d),g=S(n),y=(g.utcOffset()-this.utcOffset())*e,b=this-g,m=function(){return T.m(v,g)};switch(h){case l:p=m()/12;break;case u:p=m();break;case c:p=m()/3;break;case s:p=(b-y)/6048e5;break;case a:p=(b-y)/864e5;break;case i:p=b/t;break;case o:p=b/e;break;case r:p=b/1e3;break;default:p=b}return f?p:T.a(p)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return m[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},h}(),E=P.prototype;return S.prototype=E,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",d]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,P,S),e.$i=!0),S},S.locale=O,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=m[b],S.Ls=m,S.p={},S}()},945:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=l(e,!1)}],a:[o,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:u,ZZ:u};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,u=0;u<s;u+=1){var c=a[u],l=d[c],f=l&&l[0],p=l&&l[1];a[u]=p?{regex:f,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,u=o.parser,c=e.slice(r),l=i.exec(c)[0];u.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var u=!0===a[2],c=!0===a[3],l=u||c,d=a[2];c&&(d=a[2]),i=this.$locale(),!u&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,u=r.minutes,c=r.seconds,l=r.milliseconds,d=r.zone,p=new Date,v=a||(o||i?1:p.getDate()),h=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-1:p.getMonth());var y=s||0,b=u||0,m=c||0,_=l||0;return d?new Date(Date.UTC(h,g,v,y,b,m,_+60*d.offset*1e3)):n?new Date(Date.UTC(h,g,v,y,b,m,_)):new Date(h,g,v,y,b,m,_)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),l&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var p=s.length,v=1;v<=p;v+=1){a[1]=s[v-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}v===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},30:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],u=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(u?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(u?this.isAfter(a,r):!this.isBefore(a,r))}}}()},924:function(e,t,n){"use strict";n.r(t),n.d(t,{BotInfo:function(){return s},BrowserInfo:function(){return o},NodeInfo:function(){return i},ReactNativeInfo:function(){return u},SearchBotDeviceInfo:function(){return a},browserName:function(){return h},detect:function(){return p},detectOS:function(){return y},getNodeVersion:function(){return b},parseUserAgent: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"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},u=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=3,d=[["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 p(e){return e?g(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!=typeof navigator?g(navigator.userAgent):b()}function v(e){return""!==e&&d.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=v(e);return t?t[0]:null}function g(e){var t=v(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new s;var u=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);u?u.length<l&&(u=r(r([],u,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(l-u.length),!0)):u=[];var d=u.join("."),f=y(e),p=c.exec(e);return p&&p[1]?new a(n,d,f,p[1]):new o(n,d,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 b(){return"undefined"!=typeof process&&process.version?new i(process.version.slice(1)):null}},88: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){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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){i(e,t,n[t])}))}return e}function s(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,o(r.key),r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(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 l(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}n.r(t),n.d(t,{default:function(){return W}});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)}},g=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.init(t,n)}return c(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,a({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),y=new g,b=function(){function e(){s(this,e),this.observers={}}return c(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 m(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function _(e){return null==e?"":""+e}function O(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 S(e,t,n){var r=O(e,t,Object);r.obj[r.k]=n}function T(e,t){var n=O(e,t),r=n.obj,o=n.k;if(r)return r[o]}function P(e,t,n){var r=T(e,n);return void 0!==r?r:T(t,n)}function E(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]):E(e[r],t[r],n):e[r]=t[r]);return e}function w(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var A={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function M(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return A[e]})):e}var C="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,R=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return s(this,t),n=d(this,f(t).call(this)),C&&b.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return v(t,e),c(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(".")),T(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),S(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 i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var u=T(this.data,s)||{};r?E(u,n,o):u=a({},u,n),S(this.data,s,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?a({},{},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}(b),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}},L={},D=function(e){function t(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,t),n=d(this,f(t).call(this)),C&&b.call(l(n)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=e,i=l(n),r.forEach((function(e){o[e]&&(i[e]=o[e])})),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return v(t,e),c(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 i=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 s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(e[e.length-1],n),c=u.key,l=u.namespaces,d=l[l.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var v=n.nsSeparator||this.options.nsSeparator;return d+v+c}return c}var h=this.resolve(e,n),g=h&&h.res,y=h&&h.usedKey||c,b=h&&h.exactUsedKey||c,m=Object.prototype.toString.apply(g),_=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject;if(O&&g&&"string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g&&["[object Number]","[object Function]","[object RegExp]"].indexOf(m)<0&&("string"!=typeof _||"[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(y,g,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var S="[object Array]"===m,T=S?[]:{},P=S?b:y;for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var w="".concat(P).concat(s).concat(E);T[E]=this.translate(w,a({},n,{joinArrays:!1,ns:l})),T[E]===w&&(T[E]=g[E])}g=T}}else if(O&&"string"==typeof _&&"[object Array]"===m)(g=g.join(_))&&(g=this.extendTranslation(g,e,n,o));else{var A=!1,M=!1,C=void 0!==n.count&&"string"!=typeof n.count,R=t.hasDefaultValue(n),I=C?this.pluralResolver.getSuffix(f,n.count):"",L=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(g)&&R&&(A=!0,g=L),this.isValidLookup(g)||(M=!0,g=c);var D=R&&L!==g&&this.options.updateMissing;if(M||A||D){if(this.logger.log(D?"updateKey":"missingKey",f,d,c,D?L:g),s){var x=this.resolve(c,a({},n,{keySeparator:!1}));x&&x.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=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var k=0;k<N.length;k++)j.push(N[k]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var V=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,d,t,D?r:g,D,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,d,t,D?r:g,D,n),i.emit("missingKey",e,d,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?j.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){V([e],c+t,n["defaultValue".concat(t)]||L)}))})):V(j,c,L))}g=this.extendTranslation(g,e,n,h,o),M&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(d,":").concat(c)),M&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(a({},n,{interpolation:a({},this.options.interpolation,n.interpolation)}));var s,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var c=e.match(this.interpolator.nestingRegexp);s=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=a({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var d=e.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,p="string"==typeof f?[f]:f;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=I.handle(p,e,t,this.options&&this.options.postProcessPassResolved?a({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!L["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(L["".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,u,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,s):(d&&(i=a.pluralResolver.getSuffix(n,s.count)),d&&f&&p.push(l+i),f&&p.push(l+="".concat(a.options.contextSeparator).concat(s.context)),d&&p.push(l+=i));u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,s))}})))}))}})),{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){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),t}(b);function x(e){return e.charAt(0).toUpperCase()+e.slice(1)}var j=function(){function e(t){s(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return c(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]=x(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]=x(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=x(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}(),N=[{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}],k={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)}},V=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.languageUtils=t,this.options=r,this.logger=y.create("pluralResolver"),this.rules=(n={},N.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:k[e.fc]}}))})),n)}return c(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}(),B=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(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 c(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:M,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?w(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?w(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?w(t.nestingPrefix):t.nestingPrefixEscaped||w("$t("),this.nestingSuffix=t.nestingSuffix?w(t.nestingSuffix):t.nestingSuffixEscaped||w(")"),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,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var o=P(t,u,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(P(t,u,a),c,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=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 s.escapeValue?c(s.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 d){var n=d(e,o,r);i="string"==typeof n?n:""}else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=_(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=a({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,s)).replace(/'/g,'"');try{s=JSON.parse(o),t&&(s=a({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),c=d,l=!0}if((r=t(u.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=_(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,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),F=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return s(this,t),o=d(this,f(t).call(this)),C&&b.call(l(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 v(t,e),c(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{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,s,u,c,l;r=n.loaded,s=i,(c=(u=O(r,[o],Object)).obj)[l=u.k]=c[l]||[],c[l].push(s),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(s,u){s&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,u)})):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 i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,a({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(b);function U(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 Y(){}var $=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(s(this,t),e=d(this,f(t).call(this)),C&&b.call(l(e)),e.options=U(n),e.services={},e.logger=y,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),d(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return v(t,e),c(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 o(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=a({},{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}},this.options,U(t)),this.format=this.options.interpolation.format,n||(n=Y),!this.options.isClone){this.modules.logger?y.init(o(this.modules.logger),this.options):y.init(null,this.options);var i=new j(this.options);this.store=new R(this.options.resources,this.options);var s=this.services;s.logger=y,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new V(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new B(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new F(o(this.modules.backend),s.resourceStore,s,this.options),s.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&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new D(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 c=m(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,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=m();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Y),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=m();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 i;if("object"!==r(o)){for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];i=n.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=a({},o);return i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,n.t(t,i)};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 s=n.precheck(this,a);if(void 0!==s)return s}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=m();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=m();"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]:Y,o=a({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=a({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new D(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(b),W=new $},302:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(875),t),o(n(209),t)},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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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),s=new i.Logger("tizen"),u=function(){return"undefined"==typeof tizen?null:tizen};t.getTizenApi=u;var c=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)},l=function(){if(!u())return null;var e=u().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 d=new Map,f=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]),s.info("Initializing RC keys..."),[4,t];case 2:return r.sent(),s.info("RC keys are ready."),[3,4];case 3:return n=r.sent(),s.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=d.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=u())?(function(e){var t=e.tvinputdevice.getSupportedKeys();t.forEach((function(e){d.set(e.name,e.code)})),s.info("Keycode map has been initialized",t)}(e),[4,f(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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(308),t)},308:function(e,t){"use strict";function n(e,t,n){var r;if(!n)return e;var o=t.find((function(e){return e.id===n})),i=null===(r=null==o?void 0:o.survey)||void 0===r?void 0:r.age,a=(null==i?void 0:i.kidsOnly)?"kids":"adults";return e.filter((function(e){var t=e.showForUserProfileType;return!t||t[a]}))}Object.defineProperty(t,"__esModule",{value:!0}),t.filterScreensForProfileId=t.filterScreensBasedOnActiveUserProfile=void 0,t.filterScreensBasedOnActiveUserProfile=function(e,t){var r,o;return n(e,null!==(r=null==t?void 0:t.profiles)&&void 0!==r?r:[],null!==(o=null==t?void 0:t.activeUserProfileId)&&void 0!==o?o:null)},t.filterScreensForProfileId=n},877:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useT=t.useI18n=void 0;var r=n(156),o=n(799);t.useI18n=function(){return(0,r.useContext)(o.I18nContext).i18n},t.useT=function(){var e=(0,t.useI18n)();return e?e.t.bind(e):function(e){return e}}},799:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 s=a(n(88)),u=i(n(156)),c=n(405),l=n(71),d=new c.Logger("language");t.I18nContext=(0,u.createContext)({i18n:null}),t.I18nContextProvider=function(e){var n=e.children,r=e.translations,o=(0,u.useState)({i18n:null}),i=o[0],a=o[1],c=(0,u.useContext)(l.LanguageContext).language;return(0,u.useLayoutEffect)((function(){d.info("initializing language",c),function(e,t){return new Promise((function(n,r){n(s.default.createInstance({lng:t,resources:e},(function(e){e&&r(e)})))}))}(r,c).then((function(e){a({i18n:e})}))}),[]),(0,u.useLayoutEffect)((function(){i.i18n&&(d.info("changing language",c),i.i18n.changeLanguage(c),a({i18n:i.i18n}))}),[c]),u.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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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)},71:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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),s=i(n(156)),u=n(405),c=n(116),l=new u.Logger("language");t.LanguageContext=(0,s.createContext)({language:a.LangCode.EN,selectLanguage:function(){}}),t.LanguageContextProvider=function(e){var n=e.language,r=e.children,o=(0,s.useState)((0,c.normalizeLanguage)(n)),i=o[0],a=o[1];(0,s.useLayoutEffect)((function(){var e=(0,c.normalizeLanguage)(n);a(e),l.info("Setting language (passed as prop): ".concat(e," (before normalization: ").concat(n,")"))}),[n]);var u=(0,s.useCallback)((function(e){l.info("Setting language: ".concat(e)),a(e)}),[]);return s.default.createElement(t.LanguageContext.Provider,{value:{language:i,selectLanguage:u}},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: ".concat(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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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.LanguageContextProviderProps=t.I18nContextProviderProps=t.I18nContextProvider=t.LanguageContextProvider=t.useT=t.filterScreensForProfileId=t.filterScreensBasedOnActiveUserProfile=void 0;var i=n(21);o(n(405),t);var a=n(586);Object.defineProperty(t,"filterScreensBasedOnActiveUserProfile",{enumerable:!0,get:function(){return a.filterScreensBasedOnActiveUserProfile}}),Object.defineProperty(t,"filterScreensForProfileId",{enumerable:!0,get:function(){return a.filterScreensForProfileId}});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,"I18nContextProviderProps",{enumerable:!0,get:function(){return s.I18nContextProviderProps}}),Object.defineProperty(t,"LanguageContextProviderProps",{enumerable:!0,get:function(){return s.LanguageContextProviderProps}}),o(n(302),t),(0,i.polyfill)()},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)}))}},122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomItem=t.addOrReplace=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},t.addOrReplace=function(e,t,n){void 0===n&&(n=function(e,t){return e===t});var r=e.findIndex((function(e){return n(t,e)}));return-1!==r?e[r]=t:e.push(t),e},t.getRandomItem=function(e){return e.length?e[Math.floor(Math.random()*e.length)]:null}},39:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transparentOnePixel=void 0,t.transparentOnePixel="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSJVByuIOmSoThZERRy1CkWoEGqFVh1MLv0QmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQq3ENKttDNB020wl4mImuyKGXhFGH7oxiIDMLGNWkpLwHV/3CPD1Lsaz/M/9ObrUnMWAgEg8wwzTJl4nntq0Dc77xBFWlFXic+JRky5I/Mh1xeM3zgWXBZ4ZMdOpOeIIsVhoYaWFWdHUiCeJo6qmU76Q8VjlvMVZK1VY4578heGcvrzEdZpDSGABi5AgQkEFGyjBRoxWnRQLKdqP+/gHXL9ELoVcG2DkmEcZGmTXD/4Hv7u18hPjXlI4DrS/OM7HMBDaBepVx/k+dpz6CRB8Bq70pr9cA6Y/Sa82tegR0LMNXFw3NWUPuNwB+p8M2ZRdKUhTyOeB9zP6pizQewt0rnq9NfZx+gCkqavkDXBwCIwUKHvN590drb39e6bR3w8rGHKKfOy+ZAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+YMFQ4bMCuPzq8AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAC0lEQVQI12NgAAIAAAUAAeImBZsAAAAASUVORK5CYII="},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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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,r;Object.defineProperty(t,"__esModule",{value:!0}),t.dateComparator=t.stringComparator=t.booleanComparator=t.numberComparator=t.BooleanSortDirection=t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(n=t.SortDirection||(t.SortDirection={})),function(e){e.TRUE_FIRST="TRUE_FIRST",e.FALSE_FIRST="FALSE_FIRST"}(r=t.BooleanSortDirection||(t.BooleanSortDirection={})),t.numberComparator=function(e,t,r){return void 0===r&&(r=n.ASC),r===n.ASC?e-t:t-e},t.booleanComparator=function(e,o,i){return void 0===i&&(i=n.DESC),i===r.TRUE_FIRST?i=n.DESC:i===r.FALSE_FIRST&&(i=n.ASC),(0,t.numberComparator)(Number(e),Number(o),i)},t.stringComparator=function(e,t){return e<t?-1:1},t.dateComparator=function(e,r,o){return void 0===o&&(o=n.ASC),(0,t.numberComparator)(e.getTime(),r.getTime(),o)}},569:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(482),t)},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.overrideDevice=t.isWebsite=t.isWebos=t.isTv=t.isTizen=t.isTabletBrowser=t.isWebTv=t.isSafari=t.isReactNative=t.isNewArris=t.isNativeTablet=t.isNativeMobile=t.isMobileBrowser=t.isLocalStorageEnabled=t.isIos=t.isIndexedDbSupported=t.isCookiesEnabled=t.isBrowserCompatible=t.isArris=t.getOsType=t.getDeviceInfo=t.getArrisModelNumber=t.MOBILE_OPERATING_SYSTEMS=t.TV_OPERATING_SYSTEMS=void 0;var r=n(718),o=n(924),i="undefined";t.TV_OPERATING_SYSTEMS=["Tizen","webOS","Android TV","tvOS"],t.MOBILE_OPERATING_SYSTEMS=["iOS","Android OS","BlackBerry OS","Windows Mobile","Amazon OS"];var a=function(){return typeof window!==i&&typeof document!==i};t.isBrowserCompatible=a,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.isTabletBrowser=function(){var e,t=null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.toLowerCase();return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(t)};var s=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product};t.isReactNative=s,t.isNativeMobile=function(){var e=v();return s()&&(null==e?void 0:e.platform)===r.PLATFORM.MOBILE&&!(null==e?void 0:e.isTablet)},t.isNativeTablet=function(){var e;return s()&&(null===(e=v())||void 0===e?void 0:e.isTablet)},t.isCookiesEnabled=function(){if(!a()||"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},t.isLocalStorageEnabled=function(){if(!a()||typeof window.localStorage===i)return!1;var e="tiviolocalstoragetest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}};var u=function(){return a()&&typeof window.tizen!==i};t.isTizen=u;var c=function(){return a()&&typeof window.webOS!==i};t.isWebos=c;var l=function(){var e;return"arris"===(null===(e=f.info)||void 0===e?void 0:e.type)||a()&&typeof window.toi!==i};t.isArris=l;var d=function(){return u()||c()||l()};t.isWebTv=d,t.isTv=function(){var e;return(null===(e=v())||void 0===e?void 0:e.platform)===r.PLATFORM.TV},t.isWebsite=function(){return!!a()&&(window.tivioDeviceOverride?"web"===window.tivioDeviceOverride:!d()&&!s())},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,o.detect)();return"safari"==(null==e?void 0:e.name)},t.isIos=function(){var e=(0,o.detect)();return"iOS"==(null==e?void 0:e.os)};var f={info:null};t.overrideDevice=function(e){f.info=e};var p=function(e){var t=e.replace("VIP",""),n=parseInt(t);return Number.isFinite(n)?n:null};t.getArrisModelNumber=p;var v=function(){if(f.info)switch(f.info.type){case"arris":return{os:"Arris",platform:r.PLATFORM.TV};case"react-native":if(!f.info.os)break;return"Android OS"===(e=f.info.os)?e=f.info.platform===r.PLATFORM.TV?"Android TV":"Android OS":"iOS"===e&&(e=f.info.platform===r.PLATFORM.TV?"tvOS":"iOS"),{os:e,version:f.info.osVersion,platform:f.info.platform,isTablet:f.info.isTablet};default:console.warn("Unexpected device info object ".concat(JSON.stringify(f.info)))}return u()?{os:"Tizen",platform:r.PLATFORM.TV}:c()?{os:"webOS",platform:r.PLATFORM.TV}:l()?{os:"Arris",platform:r.PLATFORM.TV}:(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(e=(0,o.detectOS)(navigator.userAgent))?{os:e,platform:r.PLATFORM.WEB}:void 0;var e};t.getDeviceInfo=v,t.isNewArris=function(e){var t;if(!e)return!1;if("arris"!==e.type)return!1;var n=p(null!==(t=e.model)&&void 0!==t?t:"");return null!=n&&n>=4e3},t.getOsType=function(e){return t.TV_OPERATING_SYSTEMS.includes(e)?"tv":t.MOBILE_OPERATING_SYSTEMS.includes(e)?"mobile":"desktop"}},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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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.msToMMSS=t.msToMinutesString=t.getTime=t.formatCurrency=t.formatEpisode=t.toTwoPlaces=void 0,t.toTwoPlaces=function(e){return e<10?"0".concat(e):"".concat(e)},t.formatEpisode=function(e,n){return"S".concat((0,t.toTwoPlaces)(e),"E").concat((0,t.toTwoPlaces)(n))},t.formatCurrency=function(e){switch(e){case"CZK":return"Kč";case"EUR":return"€";case"USD":return"$"}},t.getTime=function(e){var t=Math.floor(e/1e3);return{minutes:Math.floor(t/60),seconds:t%60}},t.msToMinutesString=function(e){var n=(0,t.getTime)(e).minutes;return"".concat(n," min")},t.msToMMSS=function(e){var n=(0,t.getTime)(e),r=n.minutes,o=n.seconds;return"".concat(r,":").concat((0,t.toTwoPlaces)(o))}},128:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isElementOverflown=void 0,t.isElementOverflown=function(e){return e&&(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight)}},513:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preloadImages=t.preloadImage=void 0,t.preloadImage=function(e){return"undefined"==typeof Image?Promise.resolve():new Promise((function(t,n){var r=new Image;r.src=e,r.onload=t,r.onerror=function(){n("image failed to load (uri:".concat(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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(39),t),o(n(741),t),o(n(530),t),o(n(569),t),o(n(484),t),o(n(174),t),o(n(447),t),o(n(479),t),o(n(128),t),o(n(513),t),o(n(783),t),o(n(893),t),o(n(457),t),o(n(341),t),o(n(647),t),o(n(40),t),o(n(956),t),o(n(821),t),o(n(369),t),o(n(215),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}return e.initialize=function(){(0,o.isBrowserCompatible)()&&(window.onerror=function(t){var n,r;"string"==typeof t?null===(n=e.onLog)||void 0===n||n.call(e,"error",{text:[t]}):null===(r=e.onLog)||void 0===r||r.call(e,"error",{classic:[t]})})},e.shouldUseLegacyLogger=function(){return e.legacy||(0,o.isArris)()},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("error",{classic:e})},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("warn",{classic:e})},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("info",{classic:e})},e.prototype.safeError=function(e){this.safeLog("error",e)},e.prototype.safeWarn=function(e){this.safeLog("warn",e)},e.prototype.safeInfo=function(e){this.safeLog("info",e)},e.prototype.safeLog=function(t,n){var r,o,i,a;this._isEnabled&&e.onLog&&(a=null!==(r=n.text)&&void 0!==r?r:n.classic)&&e.onLog(t,n),this.isEnabled()&&(e.shouldUseLegacyLogger()?(a=null!==(o=n.text)&&void 0!==o?o:(null!==(i=n.classic)&&void 0!==i?i:[]).map((function(e){return null==e?"falsy":e})).map((function(e){return JSON.stringify(e)}))).length>0&&this.legacyConsoleLogMessages(t,a):n.classic&&n.classic.length>0?this.log(t,n.classic):n.text&&n.text.length>0&&this.log(t,n.text))},e.prototype.off=function(){this._isEnabled=!1},e.prototype.on=function(){this._isEnabled=!0},e.prototype.forceInfo=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];console.info.apply(console,r(["".concat(e.prefix,":").concat(this.name)],t,!1))},e.prototype.isEnabled=function(){return e.enabled&&this._isEnabled},e.prototype.log=function(e,t){console[e].apply(console,r([this.getPrefix()],t,!1))},e.prototype.legacyConsoleLogMessages=function(e,t){var n=t.join(", ");console[e]("".concat(this.getPrefix()," ").concat(n))},e.prototype.getPrefix=function(){return"".concat(e.prefix,":").concat(this.name)},e.enabled=!0,e.legacy=!1,e.onLog=null,e.prefix="tivio",e}();t.Logger=i,i.initialize(),t.createLogger=function(e){return new i(e)}},893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toPercent=t.safeParseInt=t.round=t.random=t.keepNonNegative=t.isClose=t.intervalContainsPoint=t.intervalContains=t.getRandomNumberWithFixedLength=t.getPercentOf=t.clampPercent=t.clamp=t.roundWithStep=void 0,t.random=function(e){return Math.round(Math.random()*e)},t.getRandomNumberWithFixedLength=function(e){var t=Math.pow(10,e-1),n=Math.pow(10,e)-1;return Math.floor(Math.random()*(n-t+1))+t},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.roundWithStep=function(e,t,n){switch(void 0===n&&(n="round"),n){case"round":return Math.round(e/t)*t;case"floor":return Math.floor(e/t)*t;case"ceil":return Math.ceil(e/t)*t;default:throw new Error("Unknown roundType ".concat(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)}},457: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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.startPolling=void 0,t.startPolling=function(e){var t=this,o=e.fn,i=e.intervalMs,a=!1,s=function(e,u){return n(t,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,o()];case 1:return t.sent(),a||setTimeout(s,i,e,u),[2]}}))}))};return{p:new Promise(s),stop:function(){return a=!0}}}},341:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToInteger=void 0,t.stringToInteger=function(e){return e&&Number.isInteger(Number(e))?Number(e):null}},647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.truncateText=t.capitalizeText=t.removeNonAlphanumericChars=t.normalizeText=t.toKebabCase=t.toSnakeCase=t.removeAccents=void 0,t.removeAccents=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},t.toSnakeCase=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"_").replace("-","_")},t.toKebabCase=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"-").replace("_","-")},t.normalizeText=function(e,n){void 0===n&&(n="snake-case");var r=(0,t.removeAccents)(e);return"snake-case"===n?(0,t.toSnakeCase)(r):(0,t.toKebabCase)(r)},t.removeNonAlphanumericChars=function(e,t){return e.replace(new RegExp("[^0-9a-zA-Z".concat(t,"]"),"g"),"")},t.capitalizeText=function(e){return(null==e?void 0:e.length)?e.charAt(0).toUpperCase()+e.substring(1).toLowerCase():""},t.truncateText=function(e,t){return e.length<=t?e:"".concat(e.slice(0,t),"...")}},40: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.roundTimeWithStep=t.generateConsecutiveDates=t.formatDuration=t.calendarDateDiff=t.getSemanticDate=t.getISODuration=t.isLessThanOneMonthBeforeToday=t.secondsToMilliseconds=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=t.getCurrentTime=void 0;var o=n(718),i=r(n(879)),a=r(n(945)),s=r(n(30)),u=n(893);function c(e,t){return l(e,60*t)}function l(e,t){return f(e,60*t)}function d(e,t){return new Date(e.getTime()+t)}function f(e,t){return d(e,1e3*t)}function p(e,t){var n=null!=e?Math.floor(e/1e3):0;return t?n%60:n}function v(e,t){var n=null!=e?Math.floor(p(e)/60):0;return t?n%60:n}function h(e,t){var n=null!=e?Math.floor(v(e)/60):0;return t?n%24:n}function g(e){return e>=10?e:"0".concat(e)}i.default.extend(a.default),t.getCurrentTime=function(){return(0,i.default)()},t.addDays=function(e,t){return c(e,24*t)},t.addHours=c,t.addMinutes=l,t.addMs=d,t.addSeconds=f,t.isInThePast=function(e){return(0,i.default)(e).isBefore((0,i.default)())},t.parseCzechDate=function(e){var t=(0,i.default)(e,"D.M.YYYY H:mm").toDate(),n=1e3*t.getSeconds()+t.getMilliseconds();return new Date(t.getTime()-n)},t.getSecs=p,t.getMins=v,t.getHours=h,t.twoPlaces=g,t.getMinsSecs=function(e){if(e<0)return{mins:0,secs:0,text:"",textWordy:""};var t=v(e),n=p(e,!0),r="";return n&&(r="".concat(n," s")),t&&(r="".concat(t," min").concat(r.length>0?" "+r:"")),{mins:t,secs:n,text:"".concat(t,":").concat(g(n)),textWordy:r}},t.getMinsSecsHours=function(e){var t=h(e),n=v(e,!0),r=p(e,!0),o="".concat(n,":").concat(g(r));return t>0&&(4===o.length&&(o="0".concat(o)),o="".concat(t,":").concat(o)),{hours:t,mins:n,secs:r,text:o}},t.getDuration=function(e){if(null==e||e<0)return null;var t=Math.round(e/60);return"".concat(t," 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"".concat(n," HOURS AGO");var r=t/24,o=Math.floor(r);if(o<7)return"".concat(o," DAYS AGO");var i=r/7,a=Math.floor(i);if(a<5)return"".concat(a," WEEKS AGO");var s=r/30,u=Math.floor(s);if(u<12)return"".concat(u," MONTHS AGO");var c=r/365,l=Math.ceil(c);return"".concat(l," YEARS AGO")},t.secondsToMilliseconds=function(e){return null==e?null:1e3*Number(e)},t.isLessThanOneMonthBeforeToday=function(e){return i.default.extend(s.default),(0,i.default)(e).isBetween((0,i.default)().subtract(1,"month").startOf("day"),(0,i.default)().endOf("day"),"day","[]")},t.getISODuration=function(e){if(e<1)return"PT0S";var t=new Date(e),n=[["Y",t.getUTCFullYear()-1970],["M",t.getUTCMonth()],["D",t.getUTCDate()-1],["T",null],["H",t.getUTCHours()],["M",t.getUTCMinutes()],["S",t.getUTCSeconds()]].reduce((function(e,t){var n=t[0],r=t[1];return r?e+="".concat(r).concat(n):"T"===n&&(e+=n),e}),"");return n=n.endsWith("T")?n.slice(0,-1):n,"P".concat(n)};var y={"-1":o.SemanticDate.YESTERDAY,0:o.SemanticDate.TODAY,1:o.SemanticDate.TOMORROW};t.getSemanticDate=function(e,n){var r;void 0===n&&(n="DD.MM.YYYY");var o=(0,t.calendarDateDiff)(e,(0,i.default)());return null!==(r=y[o])&&void 0!==r?r:(0,i.default)(e).format(n)},t.calendarDateDiff=function(e,t,n){void 0===n&&(n="day");var r=(0,i.default)(e).startOf(n),o=(0,i.default)(t).startOf(n);return r.diff(o,n)},t.formatDuration=function(e,t,n){var r=(0,i.default)().startOf("day").add(e,t),o="",a=null!=n?n:{},s=a.hour,u=void 0===s?"h":s,c=a.minute,l=void 0===c?"m":c,d=a.seconds,f=void 0===d?"s":d;return r.hour()>0&&(o+="H[".concat(u,"] ")),r.minute()>0&&(o+="m[".concat(l,"]")),0===r.hour()&&0===r.minute()&&(o="s[".concat(f,"]")),o?r.format(o):""},t.generateConsecutiveDates=function(e,t,n){return void 0===t&&(t=(0,i.default)()),void 0===n&&(n="day"),Array.from(Array(e).keys()).map((function(e){return t.add(e,n).startOf(n)}))},t.roundTimeWithStep=function(e,t,n,r){void 0===r&&(r="round");var o=(0,u.roundWithStep)(e.get(t),n,r);return e.clone().set(t,o).startOf(t)}},821: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.generateVideoUrlNames=t.generateVideoUrlName=t.normalizeUrl=t.httpsToHttp=void 0;var o=n(718),i=n(647);t.httpsToHttp=function(e){return e.replace(/^https:/,"http:")},t.normalizeUrl=function(e){return(0,i.removeAccents)(e).toLowerCase().trim().replace(/([^a-z0-9- ])/g,"").replace(/ /g,"-").replace(/--+/g,"-")},t.generateVideoUrlName=function(e){var n,r="seriesName"in e?e.seriesName?"".concat(e.seriesName,"-s").concat(null!==(n=e.seasonNumber)&&void 0!==n?n:1,"-e").concat(e.episodeNumber):void 0:e.videoName;return r?(0,t.normalizeUrl)(r):r},t.generateVideoUrlNames=function(e){return Object.values(o.LangCode).reduce((function(n,o){var i=(0,t.generateVideoUrlName)("seriesName"in e?r(r({},e),{seriesName:e.seriesName[o]}):{videoName:"object"==typeof e.videoName?e.videoName[o]:e.videoName});return i&&(n[o]=[i]),n}),{})}},956:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNameAbbreviation=void 0,t.getNameAbbreviation=function(e){return e.split(" ").map((function(e){return e.charAt(0).toUpperCase()})).join("")}},369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canBeVideoId=void 0,t.canBeVideoId=function(e){return!e.includes("-")||20===e.length}},215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spacing=t.size=t.viewport=t.getViewport=void 0;var r=n(484);t.getViewport=function(){var e=(0,r.isBrowserCompatible)()?Math.max(document.documentElement.clientWidth||0,window.innerWidth||0):0,t=(0,r.isBrowserCompatible)()?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0):0;return{width:e,height:t,scaling:t?t/1080:1}};var o=function(e){return Math.floor(e*t.viewport.scaling)};t.size=o,t.spacing=function(e){return o(8*e)},t.viewport=(0,t.getViewport)()},156:function(e){"use strict";e.exports=r}},t={};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}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.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(368)}())},8741:function(e){e.exports=function(){"use strict";var e={7723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(3902),t)},3902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid",e.TIVIO_ADS="tivio-ads",e.JOJ_TEST_AD_FORM_PROGRAMMATIC="joj-test-ad-form-programmatic",e.JOJ_TEST_TESTER_VASTERIX="joj-test-tester-vasterix",e.JOJ_TEST_TESTER_ADFORM_30="joj-test-tester-adform-30"}(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.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{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:"Tivio fake ads - always working",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0},{id:n.JOJ_TEST_AD_FORM_PROGRAMMATIC,name:"JOJ Test AdForm Programmatic"},{id:n.JOJ_TEST_TESTER_VASTERIX,name:"JOJ Test Vasterix"},{id:n.JOJ_TEST_TESTER_ADFORM_30,name:"JOJ Test Adform 30"},{id:n.TIVIO_ADS,name:"Tivio Ads"}].sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))},1920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(6895),t),o(n(3216),t),o(n(7723),t)},3216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},87:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},3690:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentSortEnum=t.CustomerId=void 0,(r=t.CustomerId||(t.CustomerId={})).OKTAGON="OKTAGON",r.JOJ="JOJ",r.MALL="MALL",r.GARAZ="GARAZ",r.U_KULATEHO_STOLU="U_KULATEHO_STOLU",r.INVESTOREES="INVESTOREES",r.DVTV="DVTV",r.DVTV_DEV="DVTV_DEV",r.O2="O2",r.GRAPE="GRAPE",r.TIVIO="TIVIO",r.STORYBOOK="STORYBOOK",r.NANGU_DEV="NANGU_DEV",r.CNC="CNC",r.VOJTA_ZIZKA="VOJTA_ZIZKA",(n=t.ContentSortEnum||(t.ContentSortEnum={})).LATEST="latest",n.OLDEST="oldest",n.A_TO_Z="a_to_z",n.Z_TO_A="z_to_a",n.EPISODE_ASC="episode_asc",n.EPISODE_DESC="episode_desc"},9801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6002:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV",n.UNKNOWN="unknown"},6123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(2489),t),o(n(87),t),o(n(5304),t),o(n(3690),t),o(n(9801),t),o(n(7495),t),o(n(6002),t),o(n(6123),t),o(n(5589),t),o(n(6889),t),o(n(703),t),o(n(9743),t),o(n(9407),t),o(n(8757),t)},6889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9743:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isVirtualChannelSource=t.isClassicChannelSource=t.isChannelSource=t.isVodExternalSource=t.isVodTivioSource=t.isAdSource=t.SourcePlayMode=t.SourceType=void 0;var r,o,i=n(9786);function a(e){return(null==e?void 0:e.type)===r.CHANNEL}!function(e){e.ADVERTISEMENT="ad",e.CHANNEL="channel",e.VOD_TIVIO="vod_tivio",e.VOD_EXTERNAL="vod_external"}(r=t.SourceType||(t.SourceType={})),(o=t.SourcePlayMode||(t.SourcePlayMode={})).ON_DEMAND="ON_DEMAND",o.LIVE="LIVE",o.HYBRID="HYBRID",t.isAdSource=function(e){return(null==e?void 0:e.type)===r.ADVERTISEMENT},t.isVodTivioSource=function(e){return(null==e?void 0:e.type)===r.VOD_TIVIO},t.isVodExternalSource=function(e){return(null==e?void 0:e.type)===r.VOD_EXTERNAL},t.isChannelSource=a,t.isClassicChannelSource=function(e){return a(e)&&(null==e?void 0:e.tvChannelType)===i.TvChannelType.CLASSIC},t.isVirtualChannelSource=function(e){return a(e)&&(null==e?void 0:e.tvChannelType)===i.TvChannelType.VIRTUAL}},9407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6255:function(e,t){var n,r,o,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.RowWhereFilterFieldPath=t.RowOrderByFieldPath=t.RegistrationRedirect=t.LoginRedirect=t.SemanticDate=t.DEFAULT_LIMIT=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.IT="it",e.PL="pl",e.PT="pt",e.SK="sk",e.ES="es",e.HU="hu"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}],t.DEFAULT_LIMIT=10,(s=t.SemanticDate||(t.SemanticDate={})).YESTERDAY="Yesterday",s.TODAY="Today",s.TOMORROW="Tomorrow",(a=t.LoginRedirect||(t.LoginRedirect={})).PAYMENT="payment",a.VOUCHER="voucher",(t.RegistrationRedirect||(t.RegistrationRedirect={})).PAYMENT="payment",(i=t.RowOrderByFieldPath||(t.RowOrderByFieldPath={})).CREATED="created",i.DEFAULT_NAME="defaultName",(o=t.RowWhereFilterFieldPath||(t.RowWhereFilterFieldPath={})).CREATED="created",o.TAGS="tags",o.TAG_TYPE_REF="tagTypeRef",o.TYPE="type",o.CONTENT_TYPE="contentType",o.CHANNEL_KEY="channelKey",function(e){e.VIDEOS="videos",e.TAGS="tags",e.TV_CHANNELS="tvChannels"}(r||(r={}))},9396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4360:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsConversionPage=t.AnalyticsConversionTargetBase=t.AnalyticsConversionName=t.AnalyticsConversionStatus=void 0,(i=t.AnalyticsConversionStatus||(t.AnalyticsConversionStatus={})).SUCCESS="SUCCESS",i.FAILED="FAILED",(o=t.AnalyticsConversionName||(t.AnalyticsConversionName={})).CLICK="click",o.PLAY="play",o.PURCHASE="purchase",o.VISIT="visit",(r=t.AnalyticsConversionTargetBase||(t.AnalyticsConversionTargetBase={})).Element="element",r.Monetization="monetization",(n=t.AnalyticsConversionPage||(t.AnalyticsConversionPage={})).Videos="videos",n.Series="series",n.Profile="profile",n.Tags="tags",n.Screens="screens",n.Registration="registration",n.Login="login",n.About="about",n.ResetPassword="reset-password",n.Player="player",n.Redeem="redeem",n.Referral="referral",n.Pair="pair",n.Search="search"},5177:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationType=void 0,(n=t.ApplicationType||(t.ApplicationType={})).TIVIO_PRO="TIVIO_PRO",n.ORGANIZATION="ORGANIZATION"},786:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},278:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DrmProvider=void 0,(n=t.DrmProvider||(t.DrmProvider={})).STREAMONLINE="streamonline",n.INSYS="insys"},8810:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},90:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenReason=void 0,(n=t.ForbiddenReason||(t.ForbiddenReason={})).MONETIZATION="MONETIZATION",n.GEO_BLOCKING="GEO_BLOCKING"},9786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(9396),t),o(n(4360),t),o(n(5177),t),o(n(2826),t),o(n(786),t),o(n(5129),t),o(n(278),t),o(n(8810),t),o(n(90),t),o(n(7871),t),o(n(3959),t),o(n(7788),t),o(n(3910),t),o(n(726),t),o(n(7523),t),o(n(1738),t),o(n(7535),t),o(n(3161),t),o(n(7605),t),o(n(190),t),o(n(8522),t),o(n(9614),t),o(n(5656),t),o(n(4906),t),o(n(7300),t),o(n(9363),t),o(n(3948),t),o(n(2635),t)},7871:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedScreenMessageType=void 0,(n=t.EmbedScreenMessageType||(t.EmbedScreenMessageType={})).RESIZE="RESIZE",n.NAVIGATE="NAVIGATE"},3959:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_DURATION=t.MONETIZATION_FREQUENCY=void 0,(r=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",r.DAILY="DAILY",r.WEEKLY="WEEKLY",r.MONTHLY="MONTHLY",r.HALF_ANNUALLY="HALF_ANNUALLY",r.ANNUALLY="ANNUALLY",(n=t.MONETIZATION_DURATION||(t.MONETIZATION_DURATION={}))[n.UNLIMITED=-1]="UNLIMITED",n[n.DAY=1]="DAY",n[n.WEEK=7]="WEEK",n[n.MONTH=30]="MONTH",n[n.HALF_YEAR=183]="HALF_YEAR",n[n.YEAR=365]="YEAR"},7788:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.UserGroup=t.NotificationStatus=void 0,(r=t.NotificationStatus||(t.NotificationStatus={})).PLANNED="planned",r.SENT="sent",(n=t.UserGroup||(t.UserGroup={})).ALL="all",n.FREE="free",n.PREMIUM="premium"},3910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},726:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DurationUnits=void 0,(n=t.DurationUnits||(t.DurationUnits={})).DAY="day",n.MONTH="month"},7523:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate",n.tivio="tivio"},1738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7535:function(e,t){var n,r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.GRID_TYPES=t.ROW_ITEM_TYPES=t.RowItemComponent=t.BannerItemComponent=t.RowComponent=void 0,(a=t.RowComponent||(t.RowComponent={})).ROW="ROW",a.BANNER="BANNER",(i=t.BannerItemComponent||(t.BannerItemComponent={})).CLASSIC="CLASSIC",i.SPLIT="SPLIT",(o=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",o.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",o.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(r=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",r.TAG="TAG",r.TV_CHANNEL="TV_CHANNEL",r.ADVERTISEMENT="ADVERTISEMENT",(n=t.GRID_TYPES||(t.GRID_TYPES={})).ROW="ROW",n.VIDEO="VIDEO",n.SERIES="SERIES"},3161:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenType=void 0,(n=t.ScreenType||(t.ScreenType={})).DEFAULT="default",n.GRID="grid",n.EMBED="embed"},7605: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"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8522:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoSourceEncryption=t.VideoSourceCodec=t.VideoSourceProtocol=void 0,(o=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",o.DASH="dash",o.MP4="mp4",(r=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",r.H265="h265",(n=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",n.WIDEVINE="widevine",n.FAIRPLAY="fairplay",n.PLAYREADY="playready"},9614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4906:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelType=t.TvStreamType=void 0,(r=t.TvStreamType||(t.TvStreamType={})).STARTOVER="startover",r.TIMESHIFT="timeshift",r.LIVE="live",r.ALL="all",(n=t.TvChannelType||(t.TvChannelType={})).CLASSIC="CLASSIC",n.VIRTUAL="VIRTUAL"},7300:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9363: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",n.BLOCKED="BLOCKED"},3948: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.CUT="CUT",n.TRAILER="TRAILER",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},2635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(9352),t),o(n(6255),t),o(n(4620),t)},4620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},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}(1920)}()},8879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,h={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(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,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);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:u,y:l,w:s,d:a,D:d,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]=h;var _=function(e){return e instanceof P},O=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 s=t.name;m[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new P(n)},T=y;T.l=O,T.i=_,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function h(e){this.$L=O(e.locale,null,!0),this.parse(e)}var g=h.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.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()},g.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()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!T.u(t)||t,f=T.p(e),p=function(e,t){var r=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},v=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case l:return c?p(1,0):p(31,11);case u:return c?p(1,g):p(0,g+1);case s:var m=this.$locale().weekStart||0,_=(h<m?h+7:h)-m;return p(c?y-_:y+(6-_),g);case a:case d:return v(b+"Hours",0);case i:return v(b+"Minutes",1);case o:return v(b+"Seconds",2);case r:return v(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=T.p(e),f="set"+(this.$u?"UTC":""),p=(s={},s[a]=f+"Date",s[d]=f+"Date",s[u]=f+"Month",s[l]=f+"FullYear",s[i]=f+"Hours",s[o]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[c],v=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var h=this.clone().set(d,1);h.$d[p](v),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[T.p(e)]()},g.add=function(n,c){var d,f=this;n=Number(n);var p=T.p(c),v=function(e){var t=S(f);return T.w(t.date(t.date()+Math.round(e*n)),f)};if(p===u)return this.set(u,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return v(1);if(p===s)return v(7);var h=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*h;return T.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=T.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return T.s(i%12||12,e,"0")},h=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(v,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,u,2);case"ddd":return d(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return T.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return T.s(a,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,f){var p,v=this,h=T.p(d),g=S(n),y=(g.utcOffset()-this.utcOffset())*e,b=this-g,m=function(){return T.m(v,g)};switch(h){case l:p=m()/12;break;case u:p=m();break;case c:p=m()/3;break;case s:p=(b-y)/6048e5;break;case a:p=(b-y)/864e5;break;case i:p=b/t;break;case o:p=b/e;break;case r:p=b/1e3;break;default:p=b}return f?p:T.a(p)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return m[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},h}(),E=P.prototype;return S.prototype=E,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",d]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,P,S),e.$i=!0),S},S.locale=O,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=m[b],S.Ls=m,S.p={},S}()},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));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.PurchasesWithVideosContextProvider,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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 s=a(n(8156)),u=n(7968);t.PlayerContext=s.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=s.default.createElement(t.PlayerContext.Provider,{value:o},n);return i&&(a=s.default.createElement(i.Provider,{value:{player:o}},a)),a};var c=function(e){var t,n=(0,s.useState)(null!==(t=null===u.tivioBundle||void 0===u.tivioBundle?void 0:u.tivioBundle.getters.getPlayerWrapper({playerWrapperId:e}))&&void 0!==t?t:null),r=n[0],o=n[1];return(0,s.useEffect)((function(){u.tivioBundle||u.bundlePromise.then((function(t){var n=t.getters.getPlayerWrapper({playerWrapperId:e});o(n)})).catch((function(){}))}),[e]),r},l=function(){var e=(0,s.useState)(null),t=e[0],n=e[1];return(0,s.useEffect)((function(){u.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 s.default.createElement(t.PlayerProvider,{playerWrapperId:e},s.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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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.TivioProvider=t.TivioContext=void 0;var a=i(n(8156)),s=n(952),u=n(6111),c=n(6435),l=n(3996),d=(0,u.createUseRemoteBundle)();t.TivioContext=a.default.createContext(null),t.TivioProvider=function(e){var n,r=e.children,o=e.conf,i=(0,a.useMemo)((function(){return(0,s.createInternalConf)(o)}),[]),u=d(i);if((0,a.useEffect)((function(){!1===(null==i?void 0:i.enable)||!1===(null==i?void 0:i.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==i?void 0:i.runFeatureSupportCheck)&&"ready"===u.state&&(null===(n=u.components)||void 0===n?void 0:n.FeatureSupportCheck))return a.default.createElement(u.components.FeatureSupportCheck,null);var f="ready"===(null==u?void 0:u.state)&&u.components?a.default.createElement(u.components.Provider,{language:i.language,disableUnmounting:i.disableUnmounting},r):r;return a.default.createElement(l.ContextProvider,{bundleState:u},a.default.createElement(t.TivioContext.Provider,{value:u},f))}},5111:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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)),s=n(1012),u=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(u.TivioWidgetError,{error:"TivioWidget must have a mandatory property 'id'."});var i=(0,s.useTivioData)(),c=i.state,l=i.error,d=i.components,f=i.config,p=f.ErrorComponent,v=f.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(v,null);case"ready":return d?a.default.createElement(d.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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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)),s=n(952),u=n(6111),c=n(6435),l=n(3996),d=n(8185),f=(0,u.createUseRemoteBundle)();t.TvTivioProvider=function(e){var t,n=e.children,r=e.conf,o=(0,s.createInternalConf)(null!=r?r:null),i=f(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==o?void 0:o.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(d.TivioContext.Provider,{value:i},n))}},1012:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(4588),t),o(n(2045),t),o(n(1530),t),o(n(8186),t),o(n(3991),t),o(n(9735),t),o(n(5382),t),o(n(6621),t),o(n(3533),t),o(n(2997),t),o(n(360),t),o(n(563),t),o(n(2700),t),o(n(2484),t),o(n(8918),t),o(n(7571),t),o(n(7118),t),o(n(4655),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.useMarkers=void 0;var r=n(8156),o=n(8074),i=n(2484);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.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,s=i.cancellationInfo;return{cancelSubscription:null!=a?a:function(){return Promise.resolve()},cancellationInfo:null!=s?s:null,error:i.error}}},7118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useChannelSource=void 0;var r=n(3368);t.useChannelSource=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useChannelSource(e))&&void 0!==t?t:{error:null,source:null}}},7571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoaded=void 0;var r=n(8156),o=n(2484);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}}},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}}},3533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOrganizationSubscriptions=void 0;var r=n(2484);t.useOrganizationSubscriptions=function(e,t){var n,o,i=(0,r.useTivioData)().internal;return null!==(o=null===(n=null==i?void 0:i.hooks)||void 0===n?void 0:n.useOrganizationSubscriptions(e,t))&&void 0!==o?o:{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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseSubscription=void 0;var i=n(2484);t.usePurchaseSubscription=function(e,t){var n,a,s=(0,i.useTivioData)().hooks;return null!==(a=null===(n=null==s?void 0:s.usePurchaseSubscription)||void 0===n?void 0:n.call(s,e,t))&&void 0!==a?a:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},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}}},4588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSearch=void 0;var r=n(2484);t.useSearch=function(e,t){var n,o,i=(0,r.useTivioData)().hooks,a=null!==(o=null===(n=null==i?void 0:i.useSearch)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{},s=a.search,u=a.pagination,c=a.isLoading,l=a.error,d=a.lastQuery;return{search:null!=s?s:function(){return Promise.resolve()},pagination:null!=u?u:null,isLoading:null==c||c,error:null!=l?l:null,lastQuery:null!=d?d:""}}},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);t.useTivioData=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.useTivioReadyData=function(){var e=(0,t.useTivioData)();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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTransactionPayment=void 0;var i=n(2484);t.useTransactionPayment=function(e,t,n){var a,s,u=(0,i.useTivioData)().hooks;return null!==(s=null===(a=null==u?void 0:u.useTransactionPayment)||void 0===a?void 0:a.call(u,e,t,n))&&void 0!==s?s:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},4655:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTvChannel=void 0;var r=n(2484);t.useTvChannel=function(e){var t=(0,r.useTivioData)().hooks;return null==t?void 0:t.useTvChannel(e)}},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,isSignedIn:!1}}},5382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVideo=void 0;var r=n(3368);t.useVideo=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useVideo(null!=e?e:""))&&void 0!==t?t:{error:null,data:null}}},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}}},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(8741),i=n(3366),a=n(8491),s=n(5167),u=n(8323),c=n(5883);t.defaultConf={secret:"",resolverUrl:"https://tivio-resolver-production.tiv.io/serveBundle/resolver2.js",currency:"CZK",language:o.LangCode.EN,disableUnmounting:!1,fetchPackage:u.fetchPackage,pubSub:(0,c.getPubSub)(),LoaderComponent:a.TivioWidgetLoader,ErrorComponent:i.TivioWidgetError},t.createInternalConf=function(e){if(e&&null==e.currency)throw new Error(".currency is missing in Tivio config");return r(r(r(r({},t.defaultConf),null!=e?e:{}),(null==e?void 0:e.secret)?{}:{enable:!1}),{logger:void 0!==(null==e?void 0:e.logger)?e.logger:(0,s.createLogger)({isConsoleEnabled:!0}),sdkVersion:"7.1.0"})}},3368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(6111),t),o(n(5883),t),o(n(4952),t);var s=n(1649);Object.defineProperty(t,"Disposer",{enumerable:!0,get:function(){return s.Disposer}});var u=n(1649);Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return u.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 d=n(4207);Object.defineProperty(t,"showGdprConsentPreferences",{enumerable:!0,get:function(){return d.showGdprConsentPreferences}}),o(n(8741),t),(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: ".concat(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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createUseRemoteBundle=t.createRemotePackageLoader=t.fetchBundle=void 0,n(3258);var a=n(194),s=n(8156),u=n(6457),c=new a.Logger("bundleLoader"),l=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 c.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 ".concat(e,", ")+"HTTP error status code: ".concat(t.status));return[4,t.text()];case 2:return[2,n.sent()]}var r}))}))},f=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)]}}))}))},p=function(e,t){return o(void 0,void 0,void 0,(function(){return i(this,(function(n){return c.info("Fetching bundle via resolver"),[2,l(t).then((function(n){var r,o={},i={exports:o};try{new Function("require","module","exports",n)(u.resolveShared,i,o)}catch(e){return Promise.reject("Cannot load Tivio Resolver ".concat(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)}))]}))}))};t.fetchBundle=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?(c.info("Fetching bundle via cloudfn (forced by config)"),[4,f(e)]):[3,2];case 1:return n=r.sent(),[3,10];case 2:return t.bundleUrlOverride?(c.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]:(c.info("Fetching bundle via cloudfn, because indexedDB is not supported"),[4,f(e)]);case 5:return n=r.sent(),[3,10];case 6:return(0,a.isTizenVersionGreaterThan)(5)?(c.info("Fetching bundle via cloudfn, because Tizen version is > 5"),[4,f(e)]):[3,8];case 7:return n=r.sent(),[3,10];case 8:return[4,p(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 ".concat(e.length,") chars");throw c.error(n,e),new Error(n)}}(n),[2,n]}}))}))},t.createRemotePackageLoader=function(){return function(e,n){return o(void 0,void 0,Promise,(function(){return i(this,(function(r){return[2,(0,t.fetchBundle)(e,n).then((function(e){var t={},n={exports:t};try{new Function("require","module","exports",e)(u.resolveShared,n,t)}catch(e){return Promise.reject("Cannot load module ".concat(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.createUseRemoteBundle=function(){var e=(0,t.createRemotePackageLoader)(),n=!1;return function(t){var a=(0,s.useState)({auth:null,components:null,config:t,error:null,getters:null,init:null,destroy:null,purchaseSubscriptionWithQerko:null,purchaseVideoWithQerko:null,cancelSubscriptionWithQerko:null,setBundleVersion:null,setLanguage:null,setStorageManager:null,showConsentPreferences:null,setUser:null,sources:null,hooks:null,state:"loading",subscriptions:null,internal:null,analytics:null}),u=a[0],c=a[1];return(0,s.useEffect)((function(){null!=t.secret&&!1!==t.enable&&e(t.secret,t).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 n?[3,2]:[4,e.init(t)];case 1:i.sent(),n=!0,i.label=2;case 2:return o=r(r({},e),{config:t,error:null,state:"ready"}),c(o),t.pubSub.publish("on-ready",o),[2]}}))}))})).catch((function(e){var n;null===(n=t.logger)||void 0===n||n.exception(e),c(r(r({},u),{config:t,error:"".concat(e),state:"error"})),t.pubSub.publish("on-error",e)}))}),[]),u}}},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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 s=i(n(670)),u=i(n(6741)),c=i(n(8879)),l=a(n(2937));n(6703),n(6462);var d=i(n(7661)),f=i(n(8661)),p=i(n(259)),v=i(n(5264)),h=i(n(8156)),g=i(n(7111)),y=i(n(3238)),b=i(n(6128)),m=i(n(5412)),_=i(n(1296)),O=i(n(1608)),S=i(n(7589)),T={mobx:p,"mobx-react":v,firebase:l.default,"firebase/app":l.default,"firebase/auth":null,"firebase/firestore":null,react:h,React:h,"react-dom":g,"styled-components":O,"@material-ui/core":s,"@material-ui/icons":u,formik:d,i18next:f,"react-i18next":y,"react-router-dom":b,"react-virtualized":_,"react-spring":m,yup:S,dayjs:c};t.resolveShared=function(e){if(!(e in T))throw new Error("Could not resolve shared dependency ".concat(e));return T[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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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("".concat(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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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 "'.concat(e.status,'" was obtained while fetching the module.')):t&&(t.includes("application/javascript")||t.includes("text/javascript"))?e.text():Promise.reject('Incorrect content "'.concat(t,'" was obtained while fetching the module.'))},a=function(e){return Promise.reject("Network failure: ".concat(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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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)),s="true"===process.env.DISABLE_SENTRY;t.Sentry=s?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@".concat("7.1.0"),tracesSampleRate:1}),console.info("@tivio: Sentry enabled"),u())};var u=function(){window.sentry=t.Sentry,console.info("@tivio: Sentry added to window")}},3551:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1649:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4952:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6168:function(e,t,n){"use strict";n.r(t),n.d(t,{DOMException:function(){return O},Headers:function(){return l},Request:function(){return y},Response:function(){return m},fetch:function(){return S}});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function s(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 u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o.arrayBuffer&&o.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=d(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(){if(this._bodyArrayBuffer)return d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(o.blob)return this.blob().then(p);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,o,i=d(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,n=f(t=new FileReader),o=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,o),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)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=s(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=u(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),c(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),c(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),c(e)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(e,t){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,o,i=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 l(t.headers)),this.method=(o=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(o)>-1?o:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function b(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 m(e,t){if(!(this instanceof m))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},h.call(y.prototype),h.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var _=[301,302,303,307,308];m.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})};var O=r.DOMException;try{new O}catch(e){(O=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),O.prototype.constructor=O}function S(e,t){return new Promise((function(n,i){var a=new y(e,t);if(a.signal&&a.signal.aborted)return i(new O("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}if(c.onload=function(){var e,t,r={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new l,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();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}})),t)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout((function(){n(new m(o,r))}),0)},c.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){i(new O("Aborted","AbortError"))}),0)},c.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(o.blob?c.responseType="blob":o.arrayBuffer&&(c.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof l||r.Headers&&t.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){f.push(s(e)),c.setRequestHeader(e,u(t.headers[e]))})),a.headers.forEach((function(e,t){-1===f.indexOf(t)&&c.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){c.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",d)}),c.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=l,r.Request=y,r.Response=m)},670:function(e){"use strict";e.exports=n},6741:function(e){"use strict";e.exports=r},7356:function(e){"use strict";e.exports=t},2937:function(e){"use strict";e.exports=o},6703:function(e){"use strict";e.exports=i},6462:function(e){"use strict";e.exports=a},7661:function(e){"use strict";e.exports=s},8661:function(e){"use strict";e.exports=u},259:function(e){"use strict";e.exports=c},5264:function(e){"use strict";e.exports=l},8156:function(t){"use strict";t.exports=e},7111:function(e){"use strict";e.exports=d},3238:function(e){"use strict";e.exports=f},6128:function(e){"use strict";e.exports=p},5412:function(e){"use strict";e.exports=v},1296:function(e){"use strict";e.exports=h},1608:function(e){"use strict";e.exports=g},7589:function(e){"use strict";e.exports=y}},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]})},_.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),_.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)}()}));
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@sentry/browser"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx"),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","@material-ui/core","@material-ui/icons","firebase/app","firebase/auth","firebase/firestore","formik","i18next","mobx","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("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx"),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["@material-ui/core"],e["@material-ui/icons"],e["firebase/app"],e["firebase/auth"],e["firebase/firestore"],e.formik,e.i18next,e.mobx,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,s,u,c,l,f,d,p,v,h,g,y){return function(){var m={194:function(e,t,n){var r;e.exports=(r=n(8156),function(){var e={718:function(e){e.exports=function(){"use strict";var e={7723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(3902),t)},3902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ_ADFORM="joj",e.JOJ_SMART="joj-smart",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid",e.TIVIO_ADS="tivio-ads",e.JOJ_TEST_AD_FORM_PROGRAMMATIC="joj-test-ad-form-programmatic",e.JOJ_TEST_TESTER_VASTERIX="joj-test-tester-vasterix",e.JOJ_TEST_TESTER_ADFORM_30="joj-test-tester-adform-30"}(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.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ_ADFORM,name:"JOJ Adform"},{id:n.JOJ_SMART,name:"JOJ Smart"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{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:"Tivio fake ads - always working",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0},{id:n.JOJ_TEST_AD_FORM_PROGRAMMATIC,name:"JOJ Test Adform Programmatic"},{id:n.JOJ_TEST_TESTER_VASTERIX,name:"JOJ Test Vasterix"},{id:n.JOJ_TEST_TESTER_ADFORM_30,name:"JOJ Test Adform 30"},{id:n.TIVIO_ADS,name:"Tivio Ads"}].sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))},1920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(6895),t),o(n(3216),t),o(n(7723),t)},3216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},87:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},3690:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentSortEnum=t.CustomerId=void 0,(r=t.CustomerId||(t.CustomerId={})).CNC="CNC",r.DVTV="DVTV",r.DVTV_DEV="DVTV_DEV",r.GARAZ="GARAZ",r.GRAPE="GRAPE",r.HODINA_DEJEPICHU="HODINA_DEJEPICHU",r.INVESTICNI_PRUVODCE="INVESTICNI_PRUVODCE",r.INVESTOREES="INVESTOREES",r.JOJ="JOJ",r.MALL="MALL",r.MEDIAR="MEDIAR",r.NANGU_DEV="NANGU_DEV",r.O2="O2",r.OKTAGON="OKTAGON",r.ONDREJ_KOBERSKY="ONDREJ_KOBERSKY",r.STARMAX="STARMAX",r.STORYBOOK="STORYBOOK",r.TIVIO="TIVIO",r.U_KULATEHO_STOLU="U_KULATEHO_STOLU",(n=t.ContentSortEnum||(t.ContentSortEnum={})).LATEST="latest",n.OLDEST="oldest",n.A_TO_Z="a_to_z",n.Z_TO_A="z_to_a",n.EPISODE_ASC="episode_asc",n.EPISODE_DESC="episode_desc"},9801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6002:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV",n.UNKNOWN="unknown"},6123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(2489),t),o(n(87),t),o(n(5304),t),o(n(3690),t),o(n(9801),t),o(n(7495),t),o(n(6002),t),o(n(6123),t),o(n(5589),t),o(n(6889),t),o(n(703),t),o(n(9743),t),o(n(9407),t),o(n(8757),t)},6889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9743:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isVirtualChannelSource=t.isClassicChannelSource=t.isChannelSource=t.isVodExternalSource=t.isVodTivioSource=t.isAdSource=t.SourcePlayMode=t.SourceType=void 0;var r,o,i=n(9786);function a(e){return(null==e?void 0:e.type)===r.CHANNEL}!function(e){e.ADVERTISEMENT="ad",e.CHANNEL="channel",e.VOD_TIVIO="vod_tivio",e.VOD_EXTERNAL="vod_external"}(r=t.SourceType||(t.SourceType={})),(o=t.SourcePlayMode||(t.SourcePlayMode={})).ON_DEMAND="ON_DEMAND",o.LIVE="LIVE",o.HYBRID="HYBRID",t.isAdSource=function(e){return(null==e?void 0:e.type)===r.ADVERTISEMENT},t.isVodTivioSource=function(e){return(null==e?void 0:e.type)===r.VOD_TIVIO},t.isVodExternalSource=function(e){return(null==e?void 0:e.type)===r.VOD_EXTERNAL},t.isChannelSource=a,t.isClassicChannelSource=function(e){return a(e)&&(null==e?void 0:e.tvChannelType)===i.TvChannelType.CLASSIC},t.isVirtualChannelSource=function(e){return a(e)&&(null==e?void 0:e.tvChannelType)===i.TvChannelType.VIRTUAL}},9407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6255:function(e,t){var n,r,o,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.RowWhereFilterFieldPath=t.RowOrderByFieldPath=t.RegistrationRedirect=t.LoginRedirect=t.SemanticDate=t.DEFAULT_LIMIT=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.IT="it",e.PL="pl",e.PT="pt",e.SK="sk",e.ES="es",e.HU="hu"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}],t.DEFAULT_LIMIT=10,(s=t.SemanticDate||(t.SemanticDate={})).YESTERDAY="Yesterday",s.TODAY="Today",s.TOMORROW="Tomorrow",(a=t.LoginRedirect||(t.LoginRedirect={})).PAYMENT="payment",a.VOUCHER="voucher",(t.RegistrationRedirect||(t.RegistrationRedirect={})).PAYMENT="payment",(i=t.RowOrderByFieldPath||(t.RowOrderByFieldPath={})).CREATED="created",i.DEFAULT_NAME="defaultName",(o=t.RowWhereFilterFieldPath||(t.RowWhereFilterFieldPath={})).CREATED="created",o.TAGS="tags",o.TAG_TYPE_REF="tagTypeRef",o.TYPE="type",o.CONTENT_TYPE="contentType",o.CHANNEL_KEY="channelKey",function(e){e.VIDEOS="videos",e.TAGS="tags",e.TV_CHANNELS="tvChannels"}(r||(r={}))},9396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4360:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsConversionPage=t.AnalyticsConversionTargetBase=t.AnalyticsConversionName=t.AnalyticsConversionStatus=void 0,(i=t.AnalyticsConversionStatus||(t.AnalyticsConversionStatus={})).SUCCESS="SUCCESS",i.FAILED="FAILED",(o=t.AnalyticsConversionName||(t.AnalyticsConversionName={})).CLICK="click",o.PLAY="play",o.PURCHASE="purchase",o.VISIT="visit",(r=t.AnalyticsConversionTargetBase||(t.AnalyticsConversionTargetBase={})).Element="element",r.Monetization="monetization",(n=t.AnalyticsConversionPage||(t.AnalyticsConversionPage={})).Videos="videos",n.Series="series",n.Profile="profile",n.Tags="tags",n.Screens="screens",n.Registration="registration",n.Login="login",n.About="about",n.ResetPassword="reset-password",n.Player="player",n.Redeem="redeem",n.Referral="referral",n.Pair="pair",n.Search="search"},5177:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationType=void 0,(n=t.ApplicationType||(t.ApplicationType={})).TIVIO_PRO="TIVIO_PRO",n.ORGANIZATION="ORGANIZATION"},786:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},278:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DrmProvider=void 0,(n=t.DrmProvider||(t.DrmProvider={})).STREAMONLINE="streamonline",n.INSYS="insys"},8810:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},90:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenReason=void 0,(n=t.ForbiddenReason||(t.ForbiddenReason={})).MONETIZATION="MONETIZATION",n.GEO_BLOCKING="GEO_BLOCKING"},9786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(9396),t),o(n(4360),t),o(n(5177),t),o(n(2826),t),o(n(786),t),o(n(5129),t),o(n(278),t),o(n(8810),t),o(n(90),t),o(n(7871),t),o(n(3959),t),o(n(7788),t),o(n(3910),t),o(n(726),t),o(n(7523),t),o(n(1738),t),o(n(7535),t),o(n(3161),t),o(n(7605),t),o(n(190),t),o(n(8522),t),o(n(9614),t),o(n(5656),t),o(n(4906),t),o(n(7300),t),o(n(9363),t),o(n(3948),t),o(n(2635),t),o(n(9541),t)},7871:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedScreenMessageType=void 0,(n=t.EmbedScreenMessageType||(t.EmbedScreenMessageType={})).RESIZE="RESIZE",n.NAVIGATE="NAVIGATE"},3959:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_DURATION=t.MONETIZATION_FREQUENCY=void 0,(r=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",r.DAILY="DAILY",r.WEEKLY="WEEKLY",r.MONTHLY="MONTHLY",r.HALF_ANNUALLY="HALF_ANNUALLY",r.ANNUALLY="ANNUALLY",(n=t.MONETIZATION_DURATION||(t.MONETIZATION_DURATION={}))[n.UNLIMITED=-1]="UNLIMITED",n[n.DAY=1]="DAY",n[n.WEEK=7]="WEEK",n[n.MONTH=30]="MONTH",n[n.HALF_YEAR=183]="HALF_YEAR",n[n.YEAR=365]="YEAR"},7788:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.UserGroup=t.NotificationStatus=void 0,(r=t.NotificationStatus||(t.NotificationStatus={})).PLANNED="planned",r.SENT="sent",(n=t.UserGroup||(t.UserGroup={})).ALL="all",n.FREE="free",n.PREMIUM="premium"},3910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9541:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},726:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DurationUnits=void 0,(n=t.DurationUnits||(t.DurationUnits={})).DAY="day",n.MONTH="month"},7523:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate",n.tivio="tivio",n.patreon="patreon"},1738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7535:function(e,t){var n,r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.GRID_TYPES=t.ROW_ITEM_TYPES=t.RowItemComponent=t.BannerItemComponent=t.RowComponent=void 0,(a=t.RowComponent||(t.RowComponent={})).ROW="ROW",a.BANNER="BANNER",(i=t.BannerItemComponent||(t.BannerItemComponent={})).CLASSIC="CLASSIC",i.SPLIT="SPLIT",i.BACKGROUND="BACKGROUND",(o=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",o.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",o.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(r=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",r.TAG="TAG",r.TV_CHANNEL="TV_CHANNEL",r.ADVERTISEMENT="ADVERTISEMENT",(n=t.GRID_TYPES||(t.GRID_TYPES={})).ROW="ROW",n.VIDEO="VIDEO",n.SERIES="SERIES"},3161:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenConditionElse=t.ScreenConditionType=t.ScreenType=void 0,(n=t.ScreenType||(t.ScreenType={})).DEFAULT="default",n.GRID="grid",n.EMBED="embed",(t.ScreenConditionType||(t.ScreenConditionType={})).SUBSCRIBED="subscribed",(t.ScreenConditionElse||(t.ScreenConditionElse={})).SET_QUERY_PARAMS="setQueryParams"},7605: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"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8522:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoSourceEncryption=t.VideoSourceCodec=t.VideoSourceProtocol=void 0,(o=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",o.DASH="dash",o.MP4="mp4",(r=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",r.H265="h265",(n=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",n.WIDEVINE="widevine",n.FAIRPLAY="fairplay",n.PLAYREADY="playready"},9614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4906:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelType=t.TvStreamType=void 0,(r=t.TvStreamType||(t.TvStreamType={})).STARTOVER="startover",r.TIMESHIFT="timeshift",r.LIVE="live",r.ALL="all",(n=t.TvChannelType||(t.TvChannelType={})).CLASSIC="CLASSIC",n.VIRTUAL="VIRTUAL"},7300:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9363: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",n.BLOCKED="BLOCKED"},3948: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.CUT="CUT",n.TRAILER="TRAILER",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},2635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(9352),t),o(n(6255),t),o(n(4620),t)},4620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},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}(1920)}()},879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",u="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+)?$/,v=/\[([^\]]+)]|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,h={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(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,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);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:u,y:l,w:s,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}},m="en",b={};b[m]=h;var _=function(e){return e instanceof E},O=function e(t,n,r){var o;if(!t)return m;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(m=o),o||!r&&m},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},T=y;T.l=O,T.i=_,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function h(e){this.$L=O(e.locale,null,!0),this.parse(e)}var g=h.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.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()},g.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()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!T.u(t)||t,d=T.p(e),p=function(e,t){var r=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},v=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,y=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case l:return c?p(1,0):p(31,11);case u:return c?p(1,g):p(0,g+1);case s:var b=this.$locale().weekStart||0,_=(h<b?h+7:h)-b;return p(c?y-_:y+(6-_),g);case a:case f:return v(m+"Hours",0);case i:return v(m+"Minutes",1);case o:return v(m+"Seconds",2);case r:return v(m+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=T.p(e),d="set"+(this.$u?"UTC":""),p=(s={},s[a]=d+"Date",s[f]=d+"Date",s[u]=d+"Month",s[l]=d+"FullYear",s[i]=d+"Hours",s[o]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[c],v=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var h=this.clone().set(f,1);h.$d[p](v),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[T.p(e)]()},g.add=function(n,c){var f,d=this;n=Number(n);var p=T.p(c),v=function(e){var t=S(d);return T.w(t.date(t.date()+Math.round(e*n)),d)};if(p===u)return this.set(u,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return v(1);if(p===s)return v(7);var h=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,g=this.$d.getTime()+n*h;return T.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.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=T.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,f=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return T.s(i%12||12,e,"0")},h=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(v,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,u,2);case"ddd":return f(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return T.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return T.s(a,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,f,d){var p,v=this,h=T.p(f),g=S(n),y=(g.utcOffset()-this.utcOffset())*e,m=this-g,b=function(){return T.m(v,g)};switch(h){case l:p=b()/12;break;case u:p=b();break;case c:p=b()/3;break;case s:p=(m-y)/6048e5;break;case a:p=(m-y)/864e5;break;case i:p=m/t;break;case o:p=m/e;break;case r:p=m/1e3;break;default:p=m}return d?p:T.a(p)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},h}(),P=E.prototype;return S.prototype=P,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,E,S),e.$i=!0),S},S.locale=O,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=b[m],S.Ls=b,S.p={},S}()},945:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[o,function(e){this.afternoon=l(e,!1)}],a:[o,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:u,ZZ:u};function d(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,u=0;u<s;u+=1){var c=a[u],l=f[c],d=l&&l[0],p=l&&l[1];a[u]=p?{regex:d,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,u=o.parser,c=e.slice(r),l=i.exec(c)[0];u.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var u=!0===a[2],c=!0===a[3],l=u||c,f=a[2];c&&(f=a[2]),i=this.$locale(),!u&&f&&(i=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,u=r.minutes,c=r.seconds,l=r.milliseconds,f=r.zone,p=new Date,v=a||(o||i?1:p.getDate()),h=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-1:p.getMonth());var y=s||0,m=u||0,b=c||0,_=l||0;return f?new Date(Date.UTC(h,g,v,y,m,b,_+60*f.offset*1e3)):n?new Date(Date.UTC(h,g,v,y,m,b,_)):new Date(h,g,v,y,m,b,_)}catch(e){return new Date("")}}(t,s,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var p=s.length,v=1;v<=p;v+=1){a[1]=s[v-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}v===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},30:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],u=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(u?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(u?this.isAfter(a,r):!this.isBefore(a,r))}}}()},338:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,o){var i,a=function(e,n,r){void 0===r&&(r={});var o=new Date(e),i=function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",o=e+"|"+r,i=t[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[o]=i),i}(n,r);return i.formatToParts(o)},s=function(t,n){for(var r=a(t,n),i=[],s=0;s<r.length;s+=1){var u=r[s],c=u.type,l=u.value,f=e[c];f>=0&&(i[f]=parseInt(l,10))}var d=i[3],p=24===d?0:d,v=i[0]+"-"+i[1]+"-"+i[2]+" "+p+":"+i[4]+":"+i[5]+":000",h=+t;return(o.utc(v).valueOf()-(h-=h%1e3))/6e4},u=r.prototype;u.tz=function(e,t){void 0===e&&(e=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),s=Math.round((r-new Date(a))/1e3/60),u=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-s,!0);if(t){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,a=n||t||i,u=s(+o(),a);if("string"!=typeof e)return o(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,o=s(r,n);if(t===o)return[r,t];var i=s(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),u,a),l=c[0],f=c[1],d=o(l).utcOffset(f);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}}}()},264:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),o=i(e).local();return d.call(r,o,t,n)}}}()},924:function(e,t,n){"use strict";n.r(t),n.d(t,{BotInfo:function(){return s},BrowserInfo:function(){return o},NodeInfo:function(){return i},ReactNativeInfo:function(){return u},SearchBotDeviceInfo:function(){return a},browserName:function(){return h},detect:function(){return p},detectOS:function(){return y},getNodeVersion:function(){return m},parseUserAgent: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"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},u=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=3,f=[["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 p(e){return e?g(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!=typeof navigator?g(navigator.userAgent):m()}function v(e){return""!==e&&f.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=v(e);return t?t[0]:null}function g(e){var t=v(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new s;var u=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);u?u.length<l&&(u=r(r([],u,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(l-u.length),!0)):u=[];var f=u.join("."),d=y(e),p=c.exec(e);return p&&p[1]?new a(n,f,d,p[1]):new o(n,f,d)}function y(e){for(var t=0,n=d.length;t<n;t++){var r=d[t],o=r[0];if(r[1].exec(e))return o}return null}function m(){return"undefined"!=typeof process&&process.version?new i(process.version.slice(1)):null}},88: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){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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){i(e,t,n[t])}))}return e}function s(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,o(r.key),r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(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 l(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}n.r(t),n.d(t,{default:function(){return W}});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)}},g=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.init(t,n)}return c(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,a({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),y=new g,m=function(){function e(){s(this,e),this.observers={}}return c(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 _(e){return null==e?"":""+e}function O(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 S(e,t,n){var r=O(e,t,Object);r.obj[r.k]=n}function T(e,t){var n=O(e,t),r=n.obj,o=n.k;if(r)return r[o]}function E(e,t,n){var r=T(e,n);return void 0!==r?r:T(t,n)}function P(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]):P(e[r],t[r],n):e[r]=t[r]);return e}function w(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var A={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function M(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return A[e]})):e}var I="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,R=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return s(this,t),n=f(this,d(t).call(this)),I&&m.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return v(t,e),c(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(".")),T(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),S(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 i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var u=T(this.data,s)||{};r?P(u,n,o):u=a({},u,n),S(this.data,s,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?a({},{},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}(m),D={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,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,t),n=f(this,d(t).call(this)),I&&m.call(l(n)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=e,i=l(n),r.forEach((function(e){o[e]&&(i[e]=o[e])})),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return v(t,e),c(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 i=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 s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(e[e.length-1],n),c=u.key,l=u.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 v=n.nsSeparator||this.options.nsSeparator;return f+v+c}return c}var h=this.resolve(e,n),g=h&&h.res,y=h&&h.usedKey||c,m=h&&h.exactUsedKey||c,b=Object.prototype.toString.apply(g),_=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject;if(O&&g&&"string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!=typeof _||"[object Array]"!==b)){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(y,g,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var S="[object Array]"===b,T=S?[]:{},E=S?m:y;for(var P in g)if(Object.prototype.hasOwnProperty.call(g,P)){var w="".concat(E).concat(s).concat(P);T[P]=this.translate(w,a({},n,{joinArrays:!1,ns:l})),T[P]===w&&(T[P]=g[P])}g=T}}else if(O&&"string"==typeof _&&"[object Array]"===b)(g=g.join(_))&&(g=this.extendTranslation(g,e,n,o));else{var A=!1,M=!1,I=void 0!==n.count&&"string"!=typeof n.count,R=t.hasDefaultValue(n),D=I?this.pluralResolver.getSuffix(d,n.count):"",C=n["defaultValue".concat(D)]||n.defaultValue;!this.isValidLookup(g)&&R&&(A=!0,g=C),this.isValidLookup(g)||(M=!0,g=c);var L=R&&C!==g&&this.options.updateMissing;if(M||A||L){if(this.logger.log(L?"updateKey":"missingKey",d,f,c,L?C:g),s){var x=this.resolve(c,a({},n,{keySeparator:!1}));x&&x.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=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var k=0;k<N.length;k++)j.push(N[k]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var V=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,f,t,L?r:g,L,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,f,t,L?r:g,L,n),i.emit("missingKey",e,f,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?j.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){V([e],c+t,n["defaultValue".concat(t)]||C)}))})):V(j,c,C))}g=this.extendTranslation(g,e,n,h,o),M&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(f,":").concat(c)),M&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(a({},n,{interpolation:a({},this.options.interpolation,n.interpolation)}));var s,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var c=e.match(this.interpolator.nestingRegexp);s=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=a({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var f=e.match(this.interpolator.nestingRegexp);s<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=D.handle(p,e,t,this.options&&this.options.postProcessPassResolved?a({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.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,u,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,s):(f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(l+=i));u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,s))}})))}))}})),{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){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),t}(m);function x(e){return e.charAt(0).toUpperCase()+e.slice(1)}var j=function(){function e(t){s(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return c(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]=x(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]=x(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=x(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}(),N=[{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}],k={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)}},V=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.languageUtils=t,this.options=r,this.logger=y.create("pluralResolver"),this.rules=(n={},N.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:k[e.fc]}}))})),n)}return c(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}(),B=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(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 c(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:M,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?w(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?w(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?w(t.nestingPrefix):t.nestingPrefixEscaped||w("$t("),this.nestingSuffix=t.nestingSuffix?w(t.nestingSuffix):t.nestingSuffixEscaped||w(")"),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,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var o=E(t,u,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(E(t,u,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 s.escapeValue?c(s.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}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=_(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=a({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,s)).replace(/'/g,'"');try{s=JSON.parse(o),t&&(s=a({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var 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(u.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=_(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,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),U=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return s(this,t),o=f(this,d(t).call(this)),I&&m.call(l(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 v(t,e),c(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{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,s,u,c,l;r=n.loaded,s=i,(c=(u=O(r,[o],Object)).obj)[l=u.k]=c[l]||[],c[l].push(s),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(s,u){s&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,u)})):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 i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,a({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(m);function F(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 $(){}var Y=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(s(this,t),e=f(this,d(t).call(this)),I&&m.call(l(e)),e.options=F(n),e.services={},e.logger=y,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),f(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return v(t,e),c(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 o(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=a({},{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}},this.options,F(t)),this.format=this.options.interpolation.format,n||(n=$),!this.options.isClone){this.modules.logger?y.init(o(this.modules.logger),this.options):y.init(null,this.options);var i=new j(this.options);this.store=new R(this.options.resources,this.options);var s=this.services;s.logger=y,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new V(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new B(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.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&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.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 c=b(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,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=$),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&&D.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 i;if("object"!==r(o)){for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];i=n.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=a({},o);return i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,n.t(t,i)};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 s=n.precheck(this,a);if(void 0!==s)return s}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]:$,o=a({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=a({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new L(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(m),W=new Y},371:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AD_SERVICE_PROXY_NAME=t.TIVIO_PLAYER_VIDEO_ELEMENT_ID=t.TIVIO_PLAYER_AD_VIDEO_ELEMENT_ID=t.TIVIO_PLAYER_AD_DISPLAY_CONTAINER_ID=void 0,t.TIVIO_PLAYER_AD_DISPLAY_CONTAINER_ID="tivio-ad-display-container",t.TIVIO_PLAYER_AD_VIDEO_ELEMENT_ID="tivio-ad-video-element",t.TIVIO_PLAYER_VIDEO_ELEMENT_ID="tivio-video-player",(n=t.AD_SERVICE_PROXY_NAME||(t.AD_SERVICE_PROXY_NAME={})).IMA="IMA SDK",n.TIVIO="TIVIO AD SERVICE"},302:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(875),t),o(n(209),t)},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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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),s=new i.Logger("tizen"),u=function(){return"undefined"==typeof tizen?null:tizen};t.getTizenApi=u;var c=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)},l=function(){if(!u())return null;var e=u().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]),s.info("Initializing RC keys..."),[4,t];case 2:return r.sent(),s.info("RC keys are ready."),[3,4];case 3:return n=r.sent(),s.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=u())?(function(e){var t=e.tvinputdevice.getSupportedKeys();t.forEach((function(e){f.set(e.name,e.code)})),s.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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(308),t)},308:function(e,t){"use strict";function n(e,t,n){var r;if(!n)return e;var o=t.find((function(e){return e.id===n})),i=null===(r=null==o?void 0:o.survey)||void 0===r?void 0:r.age,a=(null==i?void 0:i.kidsOnly)?"kids":"adults";return e.filter((function(e){var t=e.showForUserProfileType;return!t||t[a]}))}Object.defineProperty(t,"__esModule",{value:!0}),t.filterScreensForProfileId=t.filterScreensBasedOnActiveUserProfile=void 0,t.filterScreensBasedOnActiveUserProfile=function(e,t){var r,o;return n(e,null!==(r=null==t?void 0:t.profiles)&&void 0!==r?r:[],null!==(o=null==t?void 0:t.activeUserProfileId)&&void 0!==o?o:null)},t.filterScreensForProfileId=n},877:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useT=t.useI18n=void 0;var r=n(156),o=n(799);t.useI18n=function(){return(0,r.useContext)(o.I18nContext).i18n},t.useT=function(){var e=(0,t.useI18n)();return e?e.t.bind(e):function(e){return e}}},799:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 s=a(n(88)),u=i(n(156)),c=n(405),l=n(71),f=new c.Logger("language");t.I18nContext=(0,u.createContext)({i18n:null}),t.I18nContextProvider=function(e){var n=e.children,r=e.translations,o=(0,u.useState)({i18n:null}),i=o[0],a=o[1],c=(0,u.useContext)(l.LanguageContext).language;return(0,u.useLayoutEffect)((function(){f.info("initializing language",c),function(e,t){return new Promise((function(n,r){n(s.default.createInstance({lng:t,resources:e},(function(e){e&&r(e)})))}))}(r,c).then((function(e){a({i18n:e})}))}),[]),(0,u.useLayoutEffect)((function(){i.i18n&&(f.info("changing language",c),i.i18n.changeLanguage(c),a({i18n:i.i18n}))}),[c]),u.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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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)},71:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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),s=i(n(156)),u=n(405),c=n(116),l=new u.Logger("language");t.LanguageContext=(0,s.createContext)({language:a.LangCode.EN,selectLanguage:function(){}}),t.LanguageContextProvider=function(e){var n=e.language,r=e.children,o=(0,s.useState)((0,c.normalizeLanguage)(n)),i=o[0],a=o[1];(0,s.useLayoutEffect)((function(){var e=(0,c.normalizeLanguage)(n);a(e),l.info("Setting language (passed as prop): ".concat(e," (before normalization: ").concat(n,")"))}),[n]);var u=(0,s.useCallback)((function(e){l.info("Setting language: ".concat(e)),a(e)}),[]);return s.default.createElement(t.LanguageContext.Provider,{value:{language:i,selectLanguage:u}},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: ".concat(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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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.LanguageContextProviderProps=t.I18nContextProviderProps=t.I18nContextProvider=t.LanguageContextProvider=t.useT=t.filterScreensForProfileId=t.filterScreensBasedOnActiveUserProfile=void 0;var i=n(21);o(n(371),t),o(n(405),t);var a=n(586);Object.defineProperty(t,"filterScreensBasedOnActiveUserProfile",{enumerable:!0,get:function(){return a.filterScreensBasedOnActiveUserProfile}}),Object.defineProperty(t,"filterScreensForProfileId",{enumerable:!0,get:function(){return a.filterScreensForProfileId}});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,"I18nContextProviderProps",{enumerable:!0,get:function(){return s.I18nContextProviderProps}}),Object.defineProperty(t,"LanguageContextProviderProps",{enumerable:!0,get:function(){return s.LanguageContextProviderProps}}),o(n(302),t),(0,i.polyfill)()},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)}))}},122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomItem=t.addOrReplace=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},t.addOrReplace=function(e,t,n){void 0===n&&(n=function(e,t){return e===t});var r=e.findIndex((function(e){return n(t,e)}));return-1!==r?e[r]=t:e.push(t),e},t.getRandomItem=function(e){return e.length?e[Math.floor(Math.random()*e.length)]:null}},39:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transparentOnePixel=void 0,t.transparentOnePixel="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSJVByuIOmSoThZERRy1CkWoEGqFVh1MLv0QmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQq3ENKttDNB020wl4mImuyKGXhFGH7oxiIDMLGNWkpLwHV/3CPD1Lsaz/M/9ObrUnMWAgEg8wwzTJl4nntq0Dc77xBFWlFXic+JRky5I/Mh1xeM3zgWXBZ4ZMdOpOeIIsVhoYaWFWdHUiCeJo6qmU76Q8VjlvMVZK1VY4578heGcvrzEdZpDSGABi5AgQkEFGyjBRoxWnRQLKdqP+/gHXL9ELoVcG2DkmEcZGmTXD/4Hv7u18hPjXlI4DrS/OM7HMBDaBepVx/k+dpz6CRB8Bq70pr9cA6Y/Sa82tegR0LMNXFw3NWUPuNwB+p8M2ZRdKUhTyOeB9zP6pizQewt0rnq9NfZx+gCkqavkDXBwCIwUKHvN590drb39e6bR3w8rGHKKfOy+ZAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+YMFQ4bMCuPzq8AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAC0lEQVQI12NgAAIAAAUAAeImBZsAAAAASUVORK5CYII="},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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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,r;Object.defineProperty(t,"__esModule",{value:!0}),t.dateComparator=t.stringComparator=t.booleanComparator=t.numberComparator=t.BooleanSortDirection=t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(n=t.SortDirection||(t.SortDirection={})),function(e){e.TRUE_FIRST="TRUE_FIRST",e.FALSE_FIRST="FALSE_FIRST"}(r=t.BooleanSortDirection||(t.BooleanSortDirection={})),t.numberComparator=function(e,t,r){return void 0===r&&(r=n.ASC),r===n.ASC?e-t:t-e},t.booleanComparator=function(e,o,i){return void 0===i&&(i=n.DESC),i===r.TRUE_FIRST?i=n.DESC:i===r.FALSE_FIRST&&(i=n.ASC),(0,t.numberComparator)(Number(e),Number(o),i)},t.stringComparator=function(e,t){return e<t?-1:1},t.dateComparator=function(e,r,o){return void 0===o&&(o=n.ASC),(0,t.numberComparator)(e.getTime(),r.getTime(),o)}},569:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(482),t)},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.overrideDevice=t.isWebsite=t.isWebos=t.isTv=t.isTizen=t.isTabletBrowser=t.isWebTv=t.isSafari=t.isReactNative=t.isNewArris=t.isNativeTablet=t.isNativeMobile=t.isMobileBrowser=t.isLocalStorageEnabled=t.isIos=t.isIndexedDbSupported=t.isCookiesEnabled=t.isBrowserCompatible=t.isArris=t.getOsType=t.getDeviceInfo=t.getArrisModelNumber=t.MOBILE_OPERATING_SYSTEMS=t.TV_OPERATING_SYSTEMS=void 0;var r=n(718),o=n(924),i="undefined";t.TV_OPERATING_SYSTEMS=["Tizen","webOS","Android TV","tvOS"],t.MOBILE_OPERATING_SYSTEMS=["iOS","Android OS","BlackBerry OS","Windows Mobile","Amazon OS"];var a=function(){return typeof window!==i&&typeof document!==i};t.isBrowserCompatible=a,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.isTabletBrowser=function(){var e,t=null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.toLowerCase();return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(t)};var s=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product};t.isReactNative=s,t.isNativeMobile=function(){var e=v();return s()&&(null==e?void 0:e.platform)===r.PLATFORM.MOBILE&&!(null==e?void 0:e.isTablet)},t.isNativeTablet=function(){var e;return s()&&(null===(e=v())||void 0===e?void 0:e.isTablet)},t.isCookiesEnabled=function(){if(!a()||"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},t.isLocalStorageEnabled=function(){if(!a()||typeof window.localStorage===i)return!1;var e="tiviolocalstoragetest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}};var u=function(){return a()&&typeof window.tizen!==i};t.isTizen=u;var c=function(){return a()&&typeof window.webOS!==i};t.isWebos=c;var l=function(){var e;return"arris"===(null===(e=d.info)||void 0===e?void 0:e.type)||a()&&typeof window.toi!==i};t.isArris=l;var f=function(){return u()||c()||l()};t.isWebTv=f,t.isTv=function(){var e;return(null===(e=v())||void 0===e?void 0:e.platform)===r.PLATFORM.TV},t.isWebsite=function(){return!!a()&&(window.tivioDeviceOverride?"web"===window.tivioDeviceOverride:!f()&&!s())},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,o.detect)();return"safari"==(null==e?void 0:e.name)},t.isIos=function(){var e=(0,o.detect)();return"iOS"==(null==e?void 0:e.os)};var d={info:null};t.overrideDevice=function(e){d.info=e};var p=function(e){var t=e.replace("VIP",""),n=parseInt(t);return Number.isFinite(n)?n:null};t.getArrisModelNumber=p;var v=function(){if(d.info)switch(d.info.type){case"arris":return{os:"Arris",platform:r.PLATFORM.TV};case"react-native":if(!d.info.os)break;return"Android OS"===(e=d.info.os)?e=d.info.platform===r.PLATFORM.TV?"Android TV":"Android OS":"iOS"===e&&(e=d.info.platform===r.PLATFORM.TV?"tvOS":"iOS"),{os:e,version:d.info.osVersion,platform:d.info.platform,isTablet:d.info.isTablet};default:console.warn("Unexpected device info object ".concat(JSON.stringify(d.info)))}return u()?{os:"Tizen",platform:r.PLATFORM.TV}:c()?{os:"webOS",platform:r.PLATFORM.TV}:l()?{os:"Arris",platform:r.PLATFORM.TV}:(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(e=(0,o.detectOS)(navigator.userAgent))?{os:e,platform:r.PLATFORM.WEB}:void 0;var e};t.getDeviceInfo=v,t.isNewArris=function(e){var t;if(!e)return!1;if("arris"!==e.type)return!1;var n=p(null!==(t=e.model)&&void 0!==t?t:"");return null!=n&&n>=4e3},t.getOsType=function(e){return t.TV_OPERATING_SYSTEMS.includes(e)?"tv":t.MOBILE_OPERATING_SYSTEMS.includes(e)?"mobile":"desktop"}},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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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.msToMMSS=t.msToMinutesString=t.getTime=t.formatCurrency=t.formatEpisode=t.toTwoPlaces=void 0,t.toTwoPlaces=function(e){return e<10?"0".concat(e):"".concat(e)},t.formatEpisode=function(e,n){return"S".concat((0,t.toTwoPlaces)(e),"E").concat((0,t.toTwoPlaces)(n))},t.formatCurrency=function(e){switch(e){case"CZK":return"Kč";case"EUR":return"€";case"USD":return"$"}},t.getTime=function(e){var t=Math.floor(e/1e3);return{minutes:Math.floor(t/60),seconds:t%60}},t.msToMinutesString=function(e){var n=(0,t.getTime)(e).minutes;return"".concat(n," min")},t.msToMMSS=function(e){var n=(0,t.getTime)(e),r=n.minutes,o=n.seconds;return"".concat(r,":").concat((0,t.toTwoPlaces)(o))}},128:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isElementOverflown=void 0,t.isElementOverflown=function(e){return e&&(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight)}},513:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preloadImages=t.preloadImage=void 0,t.preloadImage=function(e){return"undefined"==typeof Image?Promise.resolve():new Promise((function(t,n){var r=new Image;r.src=e,r.onload=t,r.onerror=function(){n("image failed to load (uri:".concat(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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(39),t),o(n(741),t),o(n(530),t),o(n(569),t),o(n(484),t),o(n(174),t),o(n(447),t),o(n(479),t),o(n(128),t),o(n(513),t),o(n(783),t),o(n(893),t),o(n(457),t),o(n(341),t),o(n(647),t),o(n(40),t),o(n(956),t),o(n(821),t),o(n(369),t),o(n(215),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}return e.initialize=function(){(0,o.isBrowserCompatible)()&&(window.onerror=function(t){var n,r;"string"==typeof t?null===(n=e.onLog)||void 0===n||n.call(e,"error",{text:[t]}):null===(r=e.onLog)||void 0===r||r.call(e,"error",{classic:[t]})})},e.shouldUseLegacyLogger=function(){return e.legacy||(0,o.isArris)()},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("error",{classic:e})},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("warn",{classic:e})},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("info",{classic:e})},e.prototype.safeError=function(e){this.safeLog("error",e)},e.prototype.safeWarn=function(e){this.safeLog("warn",e)},e.prototype.safeInfo=function(e){this.safeLog("info",e)},e.prototype.safeLog=function(t,n){var r,o,i,a;this._isEnabled&&e.onLog&&(a=null!==(r=n.text)&&void 0!==r?r:n.classic)&&e.onLog(t,n),this.isEnabled()&&(e.shouldUseLegacyLogger()?(a=null!==(o=n.text)&&void 0!==o?o:(null!==(i=n.classic)&&void 0!==i?i:[]).map((function(e){return null==e?"falsy":e})).map((function(e){return JSON.stringify(e)}))).length>0&&this.legacyConsoleLogMessages(t,a):n.classic&&n.classic.length>0?this.log(t,n.classic):n.text&&n.text.length>0&&this.log(t,n.text))},e.prototype.off=function(){this._isEnabled=!1},e.prototype.on=function(){this._isEnabled=!0},e.prototype.forceInfo=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];console.info.apply(console,r(["".concat(e.prefix,":").concat(this.name)],t,!1))},e.prototype.isEnabled=function(){return e.enabled&&this._isEnabled},e.prototype.log=function(e,t){console[e].apply(console,r([this.getPrefix()],t,!1))},e.prototype.legacyConsoleLogMessages=function(e,t){var n=t.join(", ");console[e]("".concat(this.getPrefix()," ").concat(n))},e.prototype.getPrefix=function(){return"".concat(e.prefix,":").concat(this.name)},e.enabled=!0,e.legacy=!1,e.onLog=null,e.prefix="tivio",e}();t.Logger=i,i.initialize(),t.createLogger=function(e){return new i(e)}},893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toPercent=t.safeParseInt=t.round=t.random=t.keepNonNegative=t.isClose=t.intervalContainsPoint=t.intervalContains=t.getRandomNumberWithFixedLength=t.getPercentOf=t.clampPercent=t.clamp=t.roundWithStep=void 0,t.random=function(e){return Math.round(Math.random()*e)},t.getRandomNumberWithFixedLength=function(e){var t=Math.pow(10,e-1),n=Math.pow(10,e)-1;return Math.floor(Math.random()*(n-t+1))+t},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.roundWithStep=function(e,t,n){switch(void 0===n&&(n="round"),n){case"round":return Math.round(e/t)*t;case"floor":return Math.floor(e/t)*t;case"ceil":return Math.ceil(e/t)*t;default:throw new Error("Unknown roundType ".concat(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)}},457: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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.startPolling=void 0,t.startPolling=function(e){var t=this,o=e.fn,i=e.intervalMs,a=!1,s=function(e,u){return n(t,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,o()];case 1:return t.sent(),a||setTimeout(s,i,e,u),[2]}}))}))};return{p:new Promise(s),stop:function(){return a=!0}}}},341:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToInteger=void 0,t.stringToInteger=function(e){return e&&Number.isInteger(Number(e))?Number(e):null}},647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.truncateText=t.capitalizeText=t.removeNonAlphanumericChars=t.normalizeText=t.toKebabCase=t.toSnakeCase=t.removeAccents=void 0,t.removeAccents=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},t.toSnakeCase=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"_").replace("-","_")},t.toKebabCase=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"-").replace("_","-")},t.normalizeText=function(e,n){void 0===n&&(n="snake-case");var r=(0,t.removeAccents)(e);return"snake-case"===n?(0,t.toSnakeCase)(r):(0,t.toKebabCase)(r)},t.removeNonAlphanumericChars=function(e,t){return e.replace(new RegExp("[^0-9a-zA-Z".concat(t,"]"),"g"),"")},t.capitalizeText=function(e){return(null==e?void 0:e.length)?e.charAt(0).toUpperCase()+e.substring(1).toLowerCase():""},t.truncateText=function(e,t){return e.length<=t?e:"".concat(e.slice(0,t),"...")}},40: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.getCurrentPragueTimezoneTime=t.roundTimeWithStep=t.generateConsecutiveDates=t.formatDuration=t.calendarDateDiff=t.getSemanticDate=t.getISODuration=t.isLessThanOneMonthBeforeToday=t.secondsToMilliseconds=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=t.getCurrentTime=void 0;var o=n(718),i=r(n(879)),a=r(n(945)),s=r(n(30)),u=r(n(338)),c=r(n(264)),l=n(893);function f(e,t){return d(e,60*t)}function d(e,t){return v(e,60*t)}function p(e,t){return new Date(e.getTime()+t)}function v(e,t){return p(e,1e3*t)}function h(e,t){var n=null!=e?Math.floor(e/1e3):0;return t?n%60:n}function g(e,t){var n=null!=e?Math.floor(h(e)/60):0;return t?n%60:n}function y(e,t){var n=null!=e?Math.floor(g(e)/60):0;return t?n%24:n}function m(e){return e>=10?e:"0".concat(e)}i.default.extend(a.default),i.default.extend(c.default),i.default.extend(u.default),t.getCurrentTime=function(){return(0,i.default)()},t.addDays=function(e,t){return f(e,24*t)},t.addHours=f,t.addMinutes=d,t.addMs=p,t.addSeconds=v,t.isInThePast=function(e){return(0,i.default)(e).isBefore((0,i.default)())},t.parseCzechDate=function(e){var t=(0,i.default)(e,"D.M.YYYY H:mm").toDate(),n=1e3*t.getSeconds()+t.getMilliseconds();return new Date(t.getTime()-n)},t.getSecs=h,t.getMins=g,t.getHours=y,t.twoPlaces=m,t.getMinsSecs=function(e){if(e<0)return{mins:0,secs:0,text:"",textWordy:""};var t=g(e),n=h(e,!0),r="";return n&&(r="".concat(n," s")),t&&(r="".concat(t," min").concat(r.length>0?" "+r:"")),{mins:t,secs:n,text:"".concat(t,":").concat(m(n)),textWordy:r}},t.getMinsSecsHours=function(e){var t=y(e),n=g(e,!0),r=h(e,!0),o="".concat(n,":").concat(m(r));return t>0&&(4===o.length&&(o="0".concat(o)),o="".concat(t,":").concat(o)),{hours:t,mins:n,secs:r,text:o}},t.getDuration=function(e){if(null==e||e<0)return null;var t=Math.round(e/60);return"".concat(t," 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"".concat(n," HOURS AGO");var r=t/24,o=Math.floor(r);if(o<7)return"".concat(o," DAYS AGO");var i=r/7,a=Math.floor(i);if(a<5)return"".concat(a," WEEKS AGO");var s=r/30,u=Math.floor(s);if(u<12)return"".concat(u," MONTHS AGO");var c=r/365,l=Math.ceil(c);return"".concat(l," YEARS AGO")},t.secondsToMilliseconds=function(e){return null==e?null:1e3*Number(e)},t.isLessThanOneMonthBeforeToday=function(e){return i.default.extend(s.default),(0,i.default)(e).isBetween((0,i.default)().subtract(1,"month").startOf("day"),(0,i.default)().endOf("day"),"day","[]")},t.getISODuration=function(e){if(e<1)return"PT0S";var t=new Date(e),n=[["Y",t.getUTCFullYear()-1970],["M",t.getUTCMonth()],["D",t.getUTCDate()-1],["T",null],["H",t.getUTCHours()],["M",t.getUTCMinutes()],["S",t.getUTCSeconds()]].reduce((function(e,t){var n=t[0],r=t[1];return r?e+="".concat(r).concat(n):"T"===n&&(e+=n),e}),"");return n=n.endsWith("T")?n.slice(0,-1):n,"P".concat(n)};var b={"-1":o.SemanticDate.YESTERDAY,0:o.SemanticDate.TODAY,1:o.SemanticDate.TOMORROW};t.getSemanticDate=function(e,n){var r;void 0===n&&(n="DD.MM.YYYY");var o=(0,t.calendarDateDiff)(e,(0,i.default)());return null!==(r=b[o])&&void 0!==r?r:(0,i.default)(e).format(n)},t.calendarDateDiff=function(e,t,n){void 0===n&&(n="day");var r=(0,i.default)(e).startOf(n),o=(0,i.default)(t).startOf(n);return r.diff(o,n)},t.formatDuration=function(e,t,n){var r=(0,i.default)().startOf("day").add(e,t),o="",a=null!=n?n:{},s=a.hour,u=void 0===s?"h":s,c=a.minute,l=void 0===c?"m":c,f=a.seconds,d=void 0===f?"s":f;return r.hour()>0&&(o+="H[".concat(u,"] ")),r.minute()>0&&(o+="m[".concat(l,"]")),0===r.hour()&&0===r.minute()&&(o="s[".concat(d,"]")),o?r.format(o):""},t.generateConsecutiveDates=function(e,t,n){return void 0===t&&(t=(0,i.default)()),void 0===n&&(n="day"),Array.from(Array(e).keys()).map((function(e){return t.add(e,n).startOf(n)}))},t.roundTimeWithStep=function(e,t,n,r){void 0===r&&(r="round");var o=(0,l.roundWithStep)(e.get(t),n,r);return e.clone().set(t,o).startOf(t)},t.getCurrentPragueTimezoneTime=function(){return(0,i.default)().tz("Europe/Prague")}},821: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.generateVideoUrlNames=t.generateVideoUrlName=t.normalizeUrl=t.httpsToHttp=void 0;var o=n(718),i=n(647);t.httpsToHttp=function(e){return e.replace(/^https:/,"http:")},t.normalizeUrl=function(e){return(0,i.removeAccents)(e).toLowerCase().trim().replace(/([^a-z0-9- ])/g,"").replace(/ /g,"-").replace(/--+/g,"-")},t.generateVideoUrlName=function(e){var n,r="seriesName"in e?e.seriesName?"".concat(e.seriesName,"-s").concat(null!==(n=e.seasonNumber)&&void 0!==n?n:1,"-e").concat(e.episodeNumber):void 0:e.videoName;return r?(0,t.normalizeUrl)(r):r},t.generateVideoUrlNames=function(e){return Object.values(o.LangCode).reduce((function(n,o){var i=(0,t.generateVideoUrlName)("seriesName"in e?r(r({},e),{seriesName:e.seriesName[o]}):{videoName:"object"==typeof e.videoName?e.videoName[o]:e.videoName});return i&&(n[o]=[i]),n}),{})}},956:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUserByPurchasePath=t.getNameAbbreviation=void 0,t.getNameAbbreviation=function(e){return e.split(" ").map((function(e){return e.charAt(0).toUpperCase()})).join("")},t.getUserByPurchasePath=function(e){return e.split("users/")[1].split("/")[0]}},369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canBeVideoId=void 0,t.canBeVideoId=function(e){return!e.includes("-")||20===e.length}},215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spacing=t.size=t.viewport=t.getViewport=void 0;var r=n(484);t.getViewport=function(){var e=(0,r.isBrowserCompatible)()?Math.max(document.documentElement.clientWidth||0,window.innerWidth||0):0,t=(0,r.isBrowserCompatible)()?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0):0;return{width:e,height:t,scaling:t?t/1080:1}};var o=function(e){return Math.floor(e*t.viewport.scaling)};t.size=o,t.spacing=function(e){return o(8*e)},t.viewport=(0,t.getViewport)()},156:function(e){"use strict";e.exports=r}},t={};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}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.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(368)}())},8741:function(e){e.exports=function(){"use strict";var e={7723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(3902),t)},3902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ_ADFORM="joj",e.JOJ_SMART="joj-smart",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid",e.TIVIO_ADS="tivio-ads",e.JOJ_TEST_AD_FORM_PROGRAMMATIC="joj-test-ad-form-programmatic",e.JOJ_TEST_TESTER_VASTERIX="joj-test-tester-vasterix",e.JOJ_TEST_TESTER_ADFORM_30="joj-test-tester-adform-30"}(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.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ_ADFORM,name:"JOJ Adform"},{id:n.JOJ_SMART,name:"JOJ Smart"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{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:"Tivio fake ads - always working",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0},{id:n.JOJ_TEST_AD_FORM_PROGRAMMATIC,name:"JOJ Test Adform Programmatic"},{id:n.JOJ_TEST_TESTER_VASTERIX,name:"JOJ Test Vasterix"},{id:n.JOJ_TEST_TESTER_ADFORM_30,name:"JOJ Test Adform 30"},{id:n.TIVIO_ADS,name:"Tivio Ads"}].sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))},1920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(6895),t),o(n(3216),t),o(n(7723),t)},3216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},87:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},3690:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentSortEnum=t.CustomerId=void 0,(r=t.CustomerId||(t.CustomerId={})).CNC="CNC",r.DVTV="DVTV",r.DVTV_DEV="DVTV_DEV",r.GARAZ="GARAZ",r.GRAPE="GRAPE",r.HODINA_DEJEPICHU="HODINA_DEJEPICHU",r.INVESTICNI_PRUVODCE="INVESTICNI_PRUVODCE",r.INVESTOREES="INVESTOREES",r.JOJ="JOJ",r.MALL="MALL",r.MEDIAR="MEDIAR",r.NANGU_DEV="NANGU_DEV",r.O2="O2",r.OKTAGON="OKTAGON",r.ONDREJ_KOBERSKY="ONDREJ_KOBERSKY",r.STARMAX="STARMAX",r.STORYBOOK="STORYBOOK",r.TIVIO="TIVIO",r.U_KULATEHO_STOLU="U_KULATEHO_STOLU",(n=t.ContentSortEnum||(t.ContentSortEnum={})).LATEST="latest",n.OLDEST="oldest",n.A_TO_Z="a_to_z",n.Z_TO_A="z_to_a",n.EPISODE_ASC="episode_asc",n.EPISODE_DESC="episode_desc"},9801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6002:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV",n.UNKNOWN="unknown"},6123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(2489),t),o(n(87),t),o(n(5304),t),o(n(3690),t),o(n(9801),t),o(n(7495),t),o(n(6002),t),o(n(6123),t),o(n(5589),t),o(n(6889),t),o(n(703),t),o(n(9743),t),o(n(9407),t),o(n(8757),t)},6889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9743:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isVirtualChannelSource=t.isClassicChannelSource=t.isChannelSource=t.isVodExternalSource=t.isVodTivioSource=t.isAdSource=t.SourcePlayMode=t.SourceType=void 0;var r,o,i=n(9786);function a(e){return(null==e?void 0:e.type)===r.CHANNEL}!function(e){e.ADVERTISEMENT="ad",e.CHANNEL="channel",e.VOD_TIVIO="vod_tivio",e.VOD_EXTERNAL="vod_external"}(r=t.SourceType||(t.SourceType={})),(o=t.SourcePlayMode||(t.SourcePlayMode={})).ON_DEMAND="ON_DEMAND",o.LIVE="LIVE",o.HYBRID="HYBRID",t.isAdSource=function(e){return(null==e?void 0:e.type)===r.ADVERTISEMENT},t.isVodTivioSource=function(e){return(null==e?void 0:e.type)===r.VOD_TIVIO},t.isVodExternalSource=function(e){return(null==e?void 0:e.type)===r.VOD_EXTERNAL},t.isChannelSource=a,t.isClassicChannelSource=function(e){return a(e)&&(null==e?void 0:e.tvChannelType)===i.TvChannelType.CLASSIC},t.isVirtualChannelSource=function(e){return a(e)&&(null==e?void 0:e.tvChannelType)===i.TvChannelType.VIRTUAL}},9407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6255:function(e,t){var n,r,o,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.RowWhereFilterFieldPath=t.RowOrderByFieldPath=t.RegistrationRedirect=t.LoginRedirect=t.SemanticDate=t.DEFAULT_LIMIT=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.IT="it",e.PL="pl",e.PT="pt",e.SK="sk",e.ES="es",e.HU="hu"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}],t.DEFAULT_LIMIT=10,(s=t.SemanticDate||(t.SemanticDate={})).YESTERDAY="Yesterday",s.TODAY="Today",s.TOMORROW="Tomorrow",(a=t.LoginRedirect||(t.LoginRedirect={})).PAYMENT="payment",a.VOUCHER="voucher",(t.RegistrationRedirect||(t.RegistrationRedirect={})).PAYMENT="payment",(i=t.RowOrderByFieldPath||(t.RowOrderByFieldPath={})).CREATED="created",i.DEFAULT_NAME="defaultName",(o=t.RowWhereFilterFieldPath||(t.RowWhereFilterFieldPath={})).CREATED="created",o.TAGS="tags",o.TAG_TYPE_REF="tagTypeRef",o.TYPE="type",o.CONTENT_TYPE="contentType",o.CHANNEL_KEY="channelKey",function(e){e.VIDEOS="videos",e.TAGS="tags",e.TV_CHANNELS="tvChannels"}(r||(r={}))},9396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4360:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsConversionPage=t.AnalyticsConversionTargetBase=t.AnalyticsConversionName=t.AnalyticsConversionStatus=void 0,(i=t.AnalyticsConversionStatus||(t.AnalyticsConversionStatus={})).SUCCESS="SUCCESS",i.FAILED="FAILED",(o=t.AnalyticsConversionName||(t.AnalyticsConversionName={})).CLICK="click",o.PLAY="play",o.PURCHASE="purchase",o.VISIT="visit",(r=t.AnalyticsConversionTargetBase||(t.AnalyticsConversionTargetBase={})).Element="element",r.Monetization="monetization",(n=t.AnalyticsConversionPage||(t.AnalyticsConversionPage={})).Videos="videos",n.Series="series",n.Profile="profile",n.Tags="tags",n.Screens="screens",n.Registration="registration",n.Login="login",n.About="about",n.ResetPassword="reset-password",n.Player="player",n.Redeem="redeem",n.Referral="referral",n.Pair="pair",n.Search="search"},5177:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationType=void 0,(n=t.ApplicationType||(t.ApplicationType={})).TIVIO_PRO="TIVIO_PRO",n.ORGANIZATION="ORGANIZATION"},786:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},278:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DrmProvider=void 0,(n=t.DrmProvider||(t.DrmProvider={})).STREAMONLINE="streamonline",n.INSYS="insys"},8810:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},90:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenReason=void 0,(n=t.ForbiddenReason||(t.ForbiddenReason={})).MONETIZATION="MONETIZATION",n.GEO_BLOCKING="GEO_BLOCKING"},9786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(9396),t),o(n(4360),t),o(n(5177),t),o(n(2826),t),o(n(786),t),o(n(5129),t),o(n(278),t),o(n(8810),t),o(n(90),t),o(n(7871),t),o(n(3959),t),o(n(7788),t),o(n(3910),t),o(n(726),t),o(n(7523),t),o(n(1738),t),o(n(7535),t),o(n(3161),t),o(n(7605),t),o(n(190),t),o(n(8522),t),o(n(9614),t),o(n(5656),t),o(n(4906),t),o(n(7300),t),o(n(9363),t),o(n(3948),t),o(n(2635),t),o(n(9541),t)},7871:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedScreenMessageType=void 0,(n=t.EmbedScreenMessageType||(t.EmbedScreenMessageType={})).RESIZE="RESIZE",n.NAVIGATE="NAVIGATE"},3959:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_DURATION=t.MONETIZATION_FREQUENCY=void 0,(r=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",r.DAILY="DAILY",r.WEEKLY="WEEKLY",r.MONTHLY="MONTHLY",r.HALF_ANNUALLY="HALF_ANNUALLY",r.ANNUALLY="ANNUALLY",(n=t.MONETIZATION_DURATION||(t.MONETIZATION_DURATION={}))[n.UNLIMITED=-1]="UNLIMITED",n[n.DAY=1]="DAY",n[n.WEEK=7]="WEEK",n[n.MONTH=30]="MONTH",n[n.HALF_YEAR=183]="HALF_YEAR",n[n.YEAR=365]="YEAR"},7788:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.UserGroup=t.NotificationStatus=void 0,(r=t.NotificationStatus||(t.NotificationStatus={})).PLANNED="planned",r.SENT="sent",(n=t.UserGroup||(t.UserGroup={})).ALL="all",n.FREE="free",n.PREMIUM="premium"},3910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9541:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},726:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DurationUnits=void 0,(n=t.DurationUnits||(t.DurationUnits={})).DAY="day",n.MONTH="month"},7523:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate",n.tivio="tivio",n.patreon="patreon"},1738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7535:function(e,t){var n,r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.GRID_TYPES=t.ROW_ITEM_TYPES=t.RowItemComponent=t.BannerItemComponent=t.RowComponent=void 0,(a=t.RowComponent||(t.RowComponent={})).ROW="ROW",a.BANNER="BANNER",(i=t.BannerItemComponent||(t.BannerItemComponent={})).CLASSIC="CLASSIC",i.SPLIT="SPLIT",i.BACKGROUND="BACKGROUND",(o=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",o.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",o.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(r=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",r.TAG="TAG",r.TV_CHANNEL="TV_CHANNEL",r.ADVERTISEMENT="ADVERTISEMENT",(n=t.GRID_TYPES||(t.GRID_TYPES={})).ROW="ROW",n.VIDEO="VIDEO",n.SERIES="SERIES"},3161:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenConditionElse=t.ScreenConditionType=t.ScreenType=void 0,(n=t.ScreenType||(t.ScreenType={})).DEFAULT="default",n.GRID="grid",n.EMBED="embed",(t.ScreenConditionType||(t.ScreenConditionType={})).SUBSCRIBED="subscribed",(t.ScreenConditionElse||(t.ScreenConditionElse={})).SET_QUERY_PARAMS="setQueryParams"},7605: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"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8522:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoSourceEncryption=t.VideoSourceCodec=t.VideoSourceProtocol=void 0,(o=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",o.DASH="dash",o.MP4="mp4",(r=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",r.H265="h265",(n=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",n.WIDEVINE="widevine",n.FAIRPLAY="fairplay",n.PLAYREADY="playready"},9614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4906:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelType=t.TvStreamType=void 0,(r=t.TvStreamType||(t.TvStreamType={})).STARTOVER="startover",r.TIMESHIFT="timeshift",r.LIVE="live",r.ALL="all",(n=t.TvChannelType||(t.TvChannelType={})).CLASSIC="CLASSIC",n.VIRTUAL="VIRTUAL"},7300:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9363: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",n.BLOCKED="BLOCKED"},3948: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.CUT="CUT",n.TRAILER="TRAILER",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},2635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(9352),t),o(n(6255),t),o(n(4620),t)},4620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},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}(1920)}()},8879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",u="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+)?$/,v=/\[([^\]]+)]|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,h={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(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,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);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:u,y:l,w:s,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}},m="en",b={};b[m]=h;var _=function(e){return e instanceof E},O=function e(t,n,r){var o;if(!t)return m;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(m=o),o||!r&&m},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},T=y;T.l=O,T.i=_,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function h(e){this.$L=O(e.locale,null,!0),this.parse(e)}var g=h.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.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()},g.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()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!T.u(t)||t,d=T.p(e),p=function(e,t){var r=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},v=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,y=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case l:return c?p(1,0):p(31,11);case u:return c?p(1,g):p(0,g+1);case s:var b=this.$locale().weekStart||0,_=(h<b?h+7:h)-b;return p(c?y-_:y+(6-_),g);case a:case f:return v(m+"Hours",0);case i:return v(m+"Minutes",1);case o:return v(m+"Seconds",2);case r:return v(m+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=T.p(e),d="set"+(this.$u?"UTC":""),p=(s={},s[a]=d+"Date",s[f]=d+"Date",s[u]=d+"Month",s[l]=d+"FullYear",s[i]=d+"Hours",s[o]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[c],v=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var h=this.clone().set(f,1);h.$d[p](v),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[T.p(e)]()},g.add=function(n,c){var f,d=this;n=Number(n);var p=T.p(c),v=function(e){var t=S(d);return T.w(t.date(t.date()+Math.round(e*n)),d)};if(p===u)return this.set(u,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return v(1);if(p===s)return v(7);var h=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,g=this.$d.getTime()+n*h;return T.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.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=T.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,f=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return T.s(i%12||12,e,"0")},h=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(v,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,u,2);case"ddd":return f(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return T.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return T.s(a,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,f,d){var p,v=this,h=T.p(f),g=S(n),y=(g.utcOffset()-this.utcOffset())*e,m=this-g,b=function(){return T.m(v,g)};switch(h){case l:p=b()/12;break;case u:p=b();break;case c:p=b()/3;break;case s:p=(m-y)/6048e5;break;case a:p=(m-y)/864e5;break;case i:p=m/t;break;case o:p=m/e;break;case r:p=m/1e3;break;default:p=m}return d?p:T.a(p)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},h}(),P=E.prototype;return S.prototype=P,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,E,S),e.$i=!0),S},S.locale=O,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=b[m],S.Ls=b,S.p={},S}()},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));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.PurchasesWithVideosContextProvider,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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 s=a(n(8156)),u=n(7968);t.PlayerContext=s.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=s.default.createElement(t.PlayerContext.Provider,{value:o},n);return i&&(a=s.default.createElement(i.Provider,{value:{player:o}},a)),a};var c=function(e){var t,n=(0,s.useState)(null!==(t=null===u.tivioBundle||void 0===u.tivioBundle?void 0:u.tivioBundle.getters.getPlayerWrapper({playerWrapperId:e}))&&void 0!==t?t:null),r=n[0],o=n[1];return(0,s.useEffect)((function(){u.tivioBundle||u.bundlePromise.then((function(t){var n=t.getters.getPlayerWrapper({playerWrapperId:e});o(n)})).catch((function(){}))}),[e]),r},l=function(){var e=(0,s.useState)(null),t=e[0],n=e[1];return(0,s.useEffect)((function(){u.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 s.default.createElement(t.PlayerProvider,{playerWrapperId:e},s.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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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.TivioProvider=t.TivioContext=void 0;var a=i(n(8156)),s=n(952),u=n(6111),c=n(6435),l=n(3996),f=(0,u.createUseRemoteBundle)();t.TivioContext=a.default.createContext(null),t.TivioProvider=function(e){var n,r=e.children,o=e.conf,i=(0,a.useMemo)((function(){return(0,s.createInternalConf)(o)}),[]),u=f(i);if((0,a.useEffect)((function(){!1===(null==i?void 0:i.enable)||!1===(null==i?void 0:i.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==i?void 0:i.runFeatureSupportCheck)&&"ready"===u.state&&(null===(n=u.components)||void 0===n?void 0:n.FeatureSupportCheck))return a.default.createElement(u.components.FeatureSupportCheck,null);var d="ready"===(null==u?void 0:u.state)&&u.components?a.default.createElement(u.components.Provider,{language:i.language,disableUnmounting:i.disableUnmounting},r):r;return a.default.createElement(l.ContextProvider,{bundleState:u},a.default.createElement(t.TivioContext.Provider,{value:u},d))}},5111:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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)),s=n(1012),u=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(u.TivioWidgetError,{error:"TivioWidget must have a mandatory property 'id'."});var i=(0,s.useTivioData)(),c=i.state,l=i.error,f=i.components,d=i.config,p=d.ErrorComponent,v=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(v,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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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)),s=n(952),u=n(6111),c=n(6435),l=n(3996),f=n(8185),d=(0,u.createUseRemoteBundle)();t.TvTivioProvider=function(e){var t,n=e.children,r=e.conf,o=(0,s.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==o?void 0:o.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))}},1012:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(4588),t),o(n(2045),t),o(n(1530),t),o(n(8186),t),o(n(3991),t),o(n(9735),t),o(n(5382),t),o(n(6621),t),o(n(3533),t),o(n(2997),t),o(n(563),t),o(n(2700),t),o(n(2484),t),o(n(8918),t),o(n(7571),t),o(n(7118),t),o(n(4655),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.useMarkers=void 0;var r=n(8156),o=n(8074),i=n(2484);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.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,s=i.cancellationInfo;return{cancelSubscription:null!=a?a:function(){return Promise.resolve()},cancellationInfo:null!=s?s:null,error:i.error}}},7118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useChannelSource=void 0;var r=n(3368);t.useChannelSource=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useChannelSource(e))&&void 0!==t?t:{error:null,source:null}}},7571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoaded=void 0;var r=n(8156),o=n(2484);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}}},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}}},3533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOrganizationSubscriptions=void 0;var r=n(2484);t.useOrganizationSubscriptions=function(e,t){var n,o,i=(0,r.useTivioData)().internal;return null!==(o=null===(n=null==i?void 0:i.hooks)||void 0===n?void 0:n.useOrganizationSubscriptions(e,t))&&void 0!==o?o:{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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseSubscription=void 0;var i=n(2484);t.usePurchaseSubscription=function(e,t){var n,a,s=(0,i.useTivioData)().hooks;return null!==(a=null===(n=null==s?void 0:s.usePurchaseSubscription)||void 0===n?void 0:n.call(s,e,t))&&void 0!==a?a:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},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}}},4588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSearch=void 0;var r=n(2484);t.useSearch=function(e,t){var n,o,i=(0,r.useTivioData)().hooks,a=null!==(o=null===(n=null==i?void 0:i.useSearch)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{},s=a.search,u=a.pagination,c=a.isLoading,l=a.error,f=a.lastQuery;return{search:null!=s?s:function(){return Promise.resolve()},pagination:null!=u?u: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);t.useTivioData=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.useTivioReadyData=function(){var e=(0,t.useTivioData)();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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTransactionPayment=void 0;var i=n(2484);t.useTransactionPayment=function(e,t,n){var a,s,u=(0,i.useTivioData)().hooks;return null!==(s=null===(a=null==u?void 0:u.useTransactionPayment)||void 0===a?void 0:a.call(u,e,t,n))&&void 0!==s?s:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},4655:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTvChannel=void 0;var r=n(2484);t.useTvChannel=function(e){var t=(0,r.useTivioData)().hooks;return null==t?void 0:t.useTvChannel(e)}},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,isSignedIn:!1}}},5382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVideo=void 0;var r=n(3368);t.useVideo=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useVideo(null!=e?e:""))&&void 0!==t?t:{error:null,data:null}}},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}}},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(8741),i=n(3366),a=n(8491),s=n(5167),u=n(8323),c=n(5883);t.defaultConf={secret:"",resolverUrl:"https://tivio-resolver-production.tiv.io/serveBundle/resolver2.js",currency:"CZK",language:o.LangCode.EN,disableUnmounting:!1,fetchPackage:u.fetchPackage,pubSub:(0,c.getPubSub)(),LoaderComponent:a.TivioWidgetLoader,ErrorComponent:i.TivioWidgetError},t.createInternalConf=function(e){if(e&&null==e.currency)throw new Error(".currency is missing in Tivio config");return r(r(r(r({},t.defaultConf),null!=e?e:{}),(null==e?void 0:e.secret)?{}:{enable:!1}),{logger:void 0!==(null==e?void 0:e.logger)?e.logger:(0,s.createLogger)({isConsoleEnabled:!0}),sdkVersion:"7.2.0-alpha.1"})}},3368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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(6111),t),o(n(5883),t),o(n(4952),t);var s=n(1649);Object.defineProperty(t,"Disposer",{enumerable:!0,get:function(){return s.Disposer}});var u=n(1649);Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return u.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}}),o(n(8741),t),(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: ".concat(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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createUseRemoteBundle=t.createRemotePackageLoader=t.fetchBundle=void 0,n(3258);var a=n(194),s=n(8156),u=n(6457),c=new a.Logger("bundleLoader"),l=function(e){var t=e.resolverUrl;return(0,e.fetchPackage)(t)},f=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return c.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 ".concat(e,", ")+"HTTP error status code: ".concat(t.status));return[4,t.text()];case 2:return[2,n.sent()]}var r}))}))},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[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,f(t.bundleUrl)]}}))}))},p=function(e,t){return o(void 0,void 0,void 0,(function(){return i(this,(function(n){return c.info("Fetching bundle via resolver"),[2,l(t).then((function(n){var r,o={},i={exports:o};try{new Function("require","module","exports",n)(u.resolveShared,i,o)}catch(e){return Promise.reject("Cannot load Tivio Resolver ".concat(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)}))]}))}))};t.fetchBundle=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?(c.info("Fetching bundle via cloudfn (forced by config)"),[4,d(e)]):[3,2];case 1:return n=r.sent(),[3,10];case 2:return t.bundleUrlOverride?(c.info("Fetching bundle directly based on config.bundleUrlOverride",t.bundleUrlOverride),[4,f(t.bundleUrlOverride)]):[3,4];case 3:return n=r.sent(),[3,10];case 4:return(0,a.isIndexedDbSupported)()?[3,6]:(c.info("Fetching bundle via cloudfn, because indexedDB is not supported"),[4,d(e)]);case 5:return n=r.sent(),[3,10];case 6:return(0,a.isTizenVersionGreaterThan)(5)?(c.info("Fetching bundle via cloudfn, because Tizen version is > 5"),[4,d(e)]):[3,8];case 7:return n=r.sent(),[3,10];case 8:return[4,p(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 ".concat(e.length,") chars");throw c.error(n,e),new Error(n)}}(n),[2,n]}}))}))},t.createRemotePackageLoader=function(){return function(e,n){return o(void 0,void 0,Promise,(function(){return i(this,(function(r){return[2,(0,t.fetchBundle)(e,n).then((function(e){var t={},n={exports:t};try{new Function("require","module","exports",e)(u.resolveShared,n,t)}catch(e){return Promise.reject("Cannot load module ".concat(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.createUseRemoteBundle=function(){var e=(0,t.createRemotePackageLoader)(),n=!1;return function(t){var a=(0,s.useState)({auth:null,components:null,config:t,error:null,getters:null,init:null,destroy:null,purchaseSubscriptionWithQerko:null,purchaseVideoWithQerko:null,cancelSubscriptionWithQerko:null,setBundleVersion:null,setLanguage:null,setStorageManager:null,showConsentPreferences:null,setUser:null,sources:null,hooks:null,state:"loading",subscriptions:null,internal:null,analytics:null}),u=a[0],c=a[1];return(0,s.useEffect)((function(){null!=t.secret&&!1!==t.enable&&e(t.secret,t).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 n?[3,2]:[4,e.init(t)];case 1:i.sent(),n=!0,i.label=2;case 2:return o=r(r({},e),{config:t,error:null,state:"ready"}),c(o),t.pubSub.publish("on-ready",o),[2]}}))}))})).catch((function(e){var n;null===(n=t.logger)||void 0===n||n.exception(e),c(r(r({},u),{config:t,error:"".concat(e),state:"error"})),t.pubSub.publish("on-error",e)}))}),[]),u}}},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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 s=i(n(670)),u=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)),v=i(n(5264)),h=i(n(8156)),g=i(n(7111)),y=i(n(3238)),m=i(n(6128)),b=i(n(5412)),_=i(n(1296)),O=i(n(1608)),S=i(n(7589)),T={mobx:p,"mobx-react":v,firebase:l.default,"firebase/app":l.default,"firebase/auth":null,"firebase/firestore":null,react:h,React:h,"react-dom":g,"styled-components":O,"@material-ui/core":s,"@material-ui/icons":u,formik:f,i18next:d,"react-i18next":y,"react-router-dom":m,"react-virtualized":_,"react-spring":b,yup:S,dayjs:c};t.resolveShared=function(e){if(!(e in T))throw new Error("Could not resolve shared dependency ".concat(e));return T[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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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("".concat(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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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 "'.concat(e.status,'" was obtained while fetching the module.')):t&&(t.includes("application/javascript")||t.includes("text/javascript"))?e.text():Promise.reject('Incorrect content "'.concat(t,'" was obtained while fetching the module.'))},a=function(e){return Promise.reject("Network failure: ".concat(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);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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)),s="true"===process.env.DISABLE_SENTRY;t.Sentry=s?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@".concat("7.2.0-alpha.1"),tracesSampleRate:1}),console.info("@tivio: Sentry enabled"),u())};var u=function(){window.sentry=t.Sentry,console.info("@tivio: Sentry added to window")}},3551:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1649:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4952:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6168:function(e,t,n){"use strict";n.r(t),n.d(t,{DOMException:function(){return O},Headers:function(){return l},Request:function(){return y},Response:function(){return b},fetch:function(){return S}});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function s(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 u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function d(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o.arrayBuffer&&o.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=f(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(){if(this._bodyArrayBuffer)return f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(o.blob)return this.blob().then(p);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,o,i=f(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,n=d(t=new FileReader),o=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,o),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)},o.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=s(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=u(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),c(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),c(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),c(e)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(e,t){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,o,i=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 l(t.headers)),this.method=(o=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(o)>-1?o:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function m(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 b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},h.call(y.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var _=[301,302,303,307,308];b.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})};var O=r.DOMException;try{new O}catch(e){(O=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),O.prototype.constructor=O}function S(e,t){return new Promise((function(n,i){var a=new y(e,t);if(a.signal&&a.signal.aborted)return i(new O("Aborted","AbortError"));var c=new XMLHttpRequest;function f(){c.abort()}if(c.onload=function(){var e,t,r={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new l,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();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}})),t)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout((function(){n(new b(o,r))}),0)},c.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){i(new O("Aborted","AbortError"))}),0)},c.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(o.blob?c.responseType="blob":o.arrayBuffer&&(c.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof l||r.Headers&&t.headers instanceof r.Headers)){var d=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){d.push(s(e)),c.setRequestHeader(e,u(t.headers[e]))})),a.headers.forEach((function(e,t){-1===d.indexOf(t)&&c.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){c.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",f),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",f)}),c.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=l,r.Request=y,r.Response=b)},670:function(e){"use strict";e.exports=n},6741:function(e){"use strict";e.exports=r},7356:function(e){"use strict";e.exports=t},2937:function(e){"use strict";e.exports=o},6703:function(e){"use strict";e.exports=i},6462:function(e){"use strict";e.exports=a},7661:function(e){"use strict";e.exports=s},8661:function(e){"use strict";e.exports=u},259:function(e){"use strict";e.exports=c},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=v},1296:function(e){"use strict";e.exports=h},1608:function(e){"use strict";e.exports=g},7589:function(e){"use strict";e.exports=y}},b={};function _(e){var t=b[e];if(void 0!==t)return t.exports;var n=b[e]={exports:{}};return m[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]})},_.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),_.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)}()}));
|