function mobileStructure(){$(".video-page").hasClass("mobile-structure")||($(".video-page").addClass("mobile-structure"),videoContainer.append(extra))}function desktopStructure(){$(".video-page").removeClass("mobile-structure");rightContainer.prepend(extra);$(".playlist__videos").length&&$(document).ready(function(){$(".playlist__videos").scrollTop($(".current").offset().top-$(".playlist__videos").offset().top-100)})}function changeStructure(){$(window).outerWidth()<768?mobileStructure():desktopStructure()}function showAd(n){var t=$(".player__ad[data-ad-id="+n+"]"),u=t.data("ad-left"),f=t.data("ad-top"),e=$("#player").innerWidth(),o=$("#player").innerHeight(),s=e-e*u/100,h=o-o*f/100,i=t.find(".player__ad-container").innerWidth(),r=t.find(".player__ad-container").innerHeight();t.hasClass("visible")||adPlatformEvents.active||t.find($(".subscribe")).hasClass("subscribed")||(!t.hasClass("player__ad-subscribe")&&window.analyticsEvents&&window.analyticsEvents.productImpression.push(n,1),t.css("left",u+"% "),t.css("top",f+"%"),t.addClass("visible"),t.hasClass("player__ad-1")&&(s<i&&h<r?t.css({left:"auto",top:"auto",right:i+15,bottom:r}):(s<i&&t.css({left:"auto",right:i+15}),h<r&&t.css({top:"auto",bottom:r}))))}function removeAd(n){var t=$(".player__ad[data-ad-id="+n+"]");t.removeClass("visible")}function removeAllAds(){var n=$(".player__ad");n.removeClass("visible")}function throttle(n){var t=Date.now();return function(){var u,i,f,r;if(window.analyticsEvents&&t+n-Date.now()<0){if(u=document.querySelector(".video-page__recipe"),u&&isScrolledIntoView(u)&&window.analyticsEvents.productImpression.push(u.dataset.id,2),i=document.querySelectorAll("#video-page__description a"),i.length){for(f=[],r=0;r<i.length;r++)isScrolledIntoView(i[r])&&f.push(i[r].innerHTML);window.analyticsEvents.productImpression.push(f,3)}t=Date.now()}}}function isScrolledIntoView(n){var t=n.getBoundingClientRect(),i=t.top,r=t.bottom;return i>=0&&r<=window.innerHeight}function fbShare(n){var t=window.location.href;t.indexOf("embed")>-1&&(t=t.replace("/embed",""));FB.ui({method:n,display:"popup",link:t})}var adPlatformEvents={requesting:!1,active:!1,banner:{cueStart:-1,cueEnd:-1,duration:isNaN(parseInt(document.querySelector("#rkl-banner-time")?document.querySelector("#rkl-banner-time").dataset.timer:""))?10:parseInt(document.querySelector("#rkl-banner-time").dataset.timer),triggerBanner:function(){adPlatformEvents.active||vpPlayer.player.isAdPlaying||adPlatformEvents.requesting||videoEvents.cast.chromecast.casting||!vpspc.object.Monetized||!vpspc.object.ShowPopUpAds||videoEvents.cast.airplayCasting||(adPlatformEvents.requesting=!0,adPlatformEvents.banner.loadBanner())},loadBanner:function(){var n,t;document.getElementById("banner-content").innerHTML="";window.ANConfig=window.ANConfig||{};window.ANConfig.placements=window.ANConfig.placements||[];adPlatformEvents.requesting=!1;adPlatformEvents.active=!0;var u=!isMobile&&vpPlayer.player.video.offsetWidth>=800?"846833":"846834",r=[],i=vpspc.object.ContentIds;for(n in i)for(t=0;t<i[n].length;t++)r.push({type:n,id:i[n][t]});window.ANConfig.placements.push({adUnitId:"banner-content",propertyId:vpspc.object.ApPropertyId,placementId:u,content:r,onLoad:function(){adPlatformEvents.banner.cueStart=Math.ceil(vpPlayer.player.video.currentTime);adPlatformEvents.banner.cueEnd=adPlatformEvents.banner.cueStart+adPlatformEvents.banner.duration;document.querySelector(".rkl-banner-close").addEventListener("click",adPlatformEvents.banner.closeBanner);document.querySelector(".rkl-banner-close").classList.remove("d-none");document.querySelector(".rkl-banner").classList.add("active")},onFail:function(){adPlatformEvents.active=!1}})},closeBanner:function(){document.getElementById("banner-content").innerHTML&&(adPlatformEvents.requesting=!1,adPlatformEvents.active=!1,document.querySelector(".rkl-banner").classList.remove("active"),document.getElementById("banner-content").innerHTML="")}}},vpspc={object:window.videoObject,id:"",entityId:"",href:"",url:"/Video/GetVideo?videoEntityId=",loading:!1,loaderTimeout:!1,prevUrl:encodeURI(window.location.href),prevTitle:encodeURI(document.title),isPlaylist:!1,popstate:!1,pageComponents:[],paths:{EntityId:document.querySelectorAll("[data-entityId]"),EntityId2:document.querySelectorAll("[data-entity-id]"),Poster:document.querySelector(".player__poster"),Title:document.querySelector(".video__info-title")||document.querySelector(".influencer__info-link"),PageTitle:document.title,Date:document.querySelector(".video-page__timestamp"),DateTablet:document.querySelector(".video-page__timestamp--tablet"),DateMobile:document.querySelector(".video-page__timestamp--mobile"),Description:document.querySelector("#video-page__description"),ExtraDescription:document.querySelector("#extra-description"),Categories:document.querySelector(".video-page__categories"),Views:document.querySelector(".video-page__views"),LiveViews:document.querySelectorAll(".live-video-stats"),Likes:document.querySelectorAll(".video-page__likes"),Dislikes:document.querySelectorAll(".video-page__dislikes"),DesktopReaction:document.querySelectorAll(".desktop-reaction"),MobileReaction:document.querySelectorAll(".mobile-reaction"),Bookmark:document.querySelectorAll(".bookmark"),Subscribe:document.querySelector(".subscribe"),Related:document.querySelectorAll(".related-video .related-video__grid"),Playlist:document.querySelector(".playlist__wrapper"),ToggleAutoplay:document.querySelector("#toggle-autoplay-related"),Share:{Input:document.querySelector("#share-video-link"),Links:document.querySelectorAll(".share-icons a"),Embed:document.querySelector("#embed-video-link")},Channel:{Name:document.querySelectorAll(".influencer__info-link"),Logo:document.querySelectorAll(".influencer__info-thumbnail")},Comments:{Container:document.querySelector(".video-page__comments-container"),Count:document.querySelector(".video-page__comments-count"),Total:document.querySelector(".video-page__comments-total"),Wrapper:document.getElementById("video-comments"),TextboxWrapper:document.querySelector("#video-comments__textbox-wrapper"),TopComments:document.getElementById("top-comments")},Embed:{Channel:document.querySelector(".player__ui-info-title-wrapper .influencer__info-thumbnail"),Title:document.querySelector(".player__ui-info-title-wrapper")},Ads:{ProductAds:document.querySelector(".b-product-container"),BannerUnder:document.querySelector(".banner-under"),BannerUnderMob:document.querySelector(".video-page__ad-banner-mob"),Square:document.querySelector(".square-ad")}},init:function(){history.pushState&&(history.scrollRestoration="manual",videoObject&&(this.object=videoObject,history.replaceState(videoObject,"","")),document.addEventListener("click",this.onClick.bind(this)),window.addEventListener("popstate",function(){if(window.scroll({top:0,left:0,behavior:"auto"}),history.state===null)return window.location.reload(),!1;this.popstate=!0;this.onRequest(history.state.EntityId,history.state.SerieEntityId,window.location.pathname)}.bind(this)))},getPath:function(n){var t=document.createElement("a"),i;return t.href=n,i=t.pathname,t.remove(),i},scriptDateCache:function(n){var t=new Date;return t.setMilliseconds(0),t.setSeconds(0),t.setMinutes(0),n+"?v="+t.getTime()},isChild:function(n,t){while(n!=undefined&&n.tagName.toUpperCase()!="BODY"){if(n==t)return!0;n=n.parentNode}return!1},request:function(n,t){document.body.classList.add("isLoading");document.body.classList.remove("done");document.body.classList.add("start");var i=new XMLHttpRequest;i.open("GET",n,!0);i.onload=function(){if(i.status>=200&&i.status<400){var n=i.response;t&&t(n)}else window.location.reload()}.bind(this);i.setRequestHeader("X-Requested-With","XMLHttpRequest");i.send()},onRequest:function(n,t,i){(window.playlistVideosArray=null,window.relatedVideosArray=null,window.playerRelatedVideosArray=null,this.loading)||(this.loading=!0,this.id=n,this.href=i,videoEvents.componentsLoaded=!1,this.request(this.url+this.id+"&serieId="+t,this.onResponse.bind(this)))},onClick:function(n){var t;if(!this.loading)for(t=n.target||n.srcElement;t;){if(t instanceof HTMLAnchorElement&&t.dataset.ajax==="true"&&t.href!=="#"&&t.href!==""){n.preventDefault();var r=t.dataset.entityId,u=t.dataset.serieId,f=t.href,i=t.closest(".video-card");window.analyticsEvents&&(i&&i.parentElement.hasAttribute("related")?window.analyticsEvents.relatedClick(t.dataset.id,t.title,i.parentElement.dataset.position):window.analyticsEvents.relatedClick(t.dataset.id,t.title,0));this.isPlaylist=t.hasAttribute("is-playlist")?!0:!1;this.popstate=!1;this.onRequest(r,u,f);break}t=t.parentNode}},replaceFunctions:{Categories:function(){var i=document.createDocumentFragment(),n,t;for(this.paths.Categories.innerHTML="",n=0;n<this.object.Categories.length;n++)t=document.createElement("li"),t.setAttribute("class","d-inline-block h5 font-weight-bold video-page__category mr-2"),t.innerHTML='<a href="'+this.object.Categories[n].Link+'">'+this.object.Categories[n].Title+"<\/a>",i.appendChild(t);this.paths.Categories.appendChild(i)},Share:function(){var n=window.location.href,t=document.querySelectorAll(".share-twitter"),i=document.querySelectorAll(".share-twitter");isEmbed?(vpspc.prevUrl=vpspc.prevUrl.replace("embed/",""),n=n.replace("embed/","")):(vpspc.paths.Share.Input.value=n,vpspc.paths.Share.Embed.value='<iframe width="560px" height="315px" src="'+window.location.origin+vpspc.object.EmbedUrl+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe>');videoEvents.handleTimestamp.url=n;t.forEach(function(t){var r=$(".share-twitter a").data("hashtag"),i="https://twitter.com/intent/tweet?text="+encodeURI(vpspc.object.Title)+"&hashtags="+r+"&url="+encodeURI(n)+"&redirect_uri="+encodeURI(n);t instanceof HTMLLIElement?t.querySelector("a").href=i:t.href=i})},Comments:function(){},Live:function(){(player.classList.remove("is-live"),document.body.classList.remove("live-video"),vpspc.object.LiveVideo&&vpspc.object.LiveDetails.Live)&&(player.classList.add("is-live"),document.body.classList.add("live-video"))},removeChat:function(){var n=document.querySelectorAll(".mall_chat-wrapper");n.length&&n[0].remove();document.querySelector("#chat-holder").innerHTML=""},Chat:function(n){this.removeChat();document.querySelector("#chat-holder").innerHTML=n;var t=document.querySelectorAll("script").forEach(function(n){return n.src.indexOf("chat")>-1?!0:!1});t?signalR.chatHubMethods.init(vpspc.object.EntityId,chatReceiveCallback,chatErrorCallback,chatStatusCallback,chatMessageRemoveCallback):$.getScript(window.location.origin+vpspc.scriptDateCache("/Scripts/_chat.js"))},removeQuiz:function(){var n=document.querySelectorAll(".quiz");n.length&&n[0].remove();isEmbed&&(document.querySelector("#quiz-holder").innerHTML.innerHTML="",$(".embed-video-wrapper").removeClass("col-sm-7"),$(".embed-video-wrapper").addClass("col-sm-12 vh-100"),$(".embed-poll-wrapper").addClass("d-none"))},Quiz:function(n){this.removeQuiz();document.querySelector("#quiz-holder").innerHTML=n;isEmbed&&($(".embed-poll-wrapper").removeClass("d-none"),$(".embed-video-wrapper").addClass("col-sm-7"),$(".embed-video-wrapper").removeClass("col-sm-12 vh-100"));$.getScript(window.location.origin+vpspc.scriptDateCache("/Scripts/_quiz.js"),function(){signalR.quizHubMethods.init(quizConfig.watch,!0)})},removePoll:function(){window.pollInterval&&clearInterval(window.pollInterval);var n=document.querySelectorAll(".poll");n.length&&n[0].remove();isEmbed&&(document.querySelector("#poll-holder").innerHTML.innerHTML="",$(".embed-video-wrapper").removeClass("col-sm-7"),$(".embed-video-wrapper").addClass("col-sm-12 vh-100"),$(".embed-poll-wrapper").addClass("d-none"))},Poll:function(n){var r;this.removePoll();var i=document.createElement("div"),t=document.createElement("input"),u=document.createElement("div");t.classList.add("hidden");t.type="hidden";t.id="poll-entity-id";t.value=vpspc.object.EntityId;u.innerHTML=n;i.appendChild(t);i.appendChild(u);i.style.width="100%";document.querySelector("#poll-holder").appendChild(i);isEmbed&&($(".embed-poll-wrapper").removeClass("d-none"),$(".embed-video-wrapper").addClass("col-sm-7"),$(".embed-video-wrapper").removeClass("col-sm-12 vh-100"),document.querySelector("#poll-holder").innerHTML=n);r=!1;document.querySelectorAll("script").forEach(function(n){n.src.indexOf("poll")>-1&&(r=!0)});r?(clearInterval(window.pollInterval),window.pollInit()):$.getScript(window.location.origin+vpspc.scriptDateCache("/Scripts/_poll.js"),function(){window.pollInit()})},removePlaylist:function(){if(isEmbed)$(".playlist-inside").children().remove(),$("#toggleplaylist-btn").removeClass("d-flex").addClass("d-none");else{player.classList.remove("playlist-open","is-playlist");var n=document.querySelectorAll(".playlist__wrapper");n.length&&n[0].remove()}},Playlist:function(){},removeLiveReports:function(){var n=document.querySelectorAll(".live-reports_wrapper");n.length&&n[0].remove()},LiveReports:function(n){document.querySelector("#online-reporting-holder").innerHTML="";document.querySelector("#online-reporting-holder").innerHTML=n;$.getScript(window.location.origin+vpspc.scriptDateCache("/Scripts/_onlineReporting.js"),function(){signalR.onlineReportingHubMethods.init(vpspc.object.Serie.EntityId,onlineReportingReceiveCallback,onlineReportingStatusCallback,onlineReportingMessageRemoveCallback)})},removeFloatingAds:function(){var n=document.querySelectorAll("#floatingAdsWrapper");n.length&&(n[0].innerHTML="");floatingAds=$(".player__ad");adShown=[]},FloatingAds:function(n){var r,f,u,t;if(this.removeFloatingAds(),r=document.querySelectorAll("#floatingAdsWrapper"),r.length?r[0].innerHTML=n:(f=document.createElement("div"),f.id="floatingAdsWrapper",div.innerHTML=n,player.append(div)),floatingAds=$(".player__ad"),u=document.getElementById("floatingAdsModel-json"),u!=null&&(t=JSON.parse(u.value),t.length))for(i=0;i<t.length;++i)window.productsModel.push(t[i]);adShown=[]},anHandler:function(){var t=document.querySelectorAll("[data-gj-type]"),n,i,r;if(t.length)for(n=0;n<t.length;n++){if(i=t[n].dataset.gjId,r=t[n].dataset.gjType,!i||!r||typeof loadAN!="function")return;loadAN(parseInt(r),i)}}},replaceData:function(){adPlatformEvents.cuepoints=vpspc.object.AdCuePoints;window.analyticsEvents&&typeof analyticsModel=="object"&&(window.analyticsModel=vpspc.object.Analytics,window.analyticsEvents.init());typeof dnaConfig!="undefined"&&dnaConfig.contentIdGenerator();this.paths.EntityId.forEach(function(n){this.isChild(n,this.paths.Playlist)||this.isChild(n,this.paths.PlayerRelated)||(n.dataset.entityId=this.object.EntityId)}.bind(this));this.paths.EntityId2.forEach(function(n){this.isChild(n,this.paths.Playlist)||this.isChild(n,this.paths.PlayerRelated)||(n.dataset.entityId=this.object.EntityId)}.bind(this));this.replaceFunctions.Live();vpspc.object.Title&&(this.paths.Title.innerText=vpspc.object.Title,this.paths.Title.setAttribute("href",window.location.origin+vpspc.object.EmbedUrl.replace("/embed","")));this.paths.Channel.Logo&&(vpspc.object.AllSeasons!=null&&(this.paths.Channel.Logo[0].href=vpspc.object.AllSeasons.SerieLink),this.paths.Channel.Logo[0].style.backgroundImage="url("+vpspc.object.ThumbnailUrl+")")},replaceVideo:function(){var n,t;vpspc.handleSkeletons();isIE&&(window.location.href=window.location.href+"?autoplay=true");isExplicit=!vpspc.object.Error.State&&vpspc.object.Error.AlertOnly?!0:!1;viewed=!1;window.analyticsEvents&&(window.analyticsEvents.playTime.triggers=[]);vpspc.object.LiveDetails.Prelive?player.classList.add("player-prelive","is-inactive"):player.classList.remove("is-mouseover","ended","player-prelive","is-inactive","is-error");isEmbed&&(vpspc.object.HasPoll||vpspc.object.HasQuiz?($(".embed-poll-wrapper").removeClass("d-none"),$(".embed-video-wrapper").addClass("col-sm-7"),$(".embed-video-wrapper").removeClass("col-sm-12 vh-100")):($(".embed-video-wrapper").removeClass("col-sm-7"),$(".embed-video-wrapper").addClass("col-sm-12 vh-100"),$(".embed-poll-wrapper").addClass("d-none")));videoEvents.rating.calculateTime();videoEvents.loadAjaxComponents();n=[];vpspc.object.Subtitles.forEach(t=>{n.push({file:t.Url,label:t.Label,lang:t.Language})});t={};vpspc.object.Monetized&&vpspc.object.ShowVideoAds&&(t={preroll:{count:vpspc.object.PrerollCount},cuePoints:vpspc.object.AdCuePoints,endpoint:vpspc.object.AdPlatformEndpoint+"/vast?adUnitId=vad&propertyId="+vpspc.object.ApPropertyId+"&placementId=846836&pageviewGuid="+bisko.guid+"&storageId="+localStorage.getItem("bisko-sid")+"&"+vpPlayerEvents.vastUrlParams()});vpPlayer.setVideo({file:vpspc.object.VideoSource+".m3u8",duration:vpspc.object.DurationSeconds,thumbnail:vpspc.object.ThumbnailUrl,filmstrip:vpspc.object.ThumbnailUrl.replace("retina.jpg","filmstrip0.jpg"),channelImg:vpspc.object.Content.Thumbnail,title:vpspc.object.Title,live:vpspc.object.LiveDetails.Live||vpspc.object.LiveDetails.Prelive,liveType:vpPlayerEvents.liveType(),showControls:vpspc.object.LiveDetails.LiveQualityStatus!==2||vpspc.object.Error.State,ad:t,tracks:n});vpPlayer.setCuePoint(videoEvents.rating.ratingTime,()=>{videoEvents.rating.open()});vpPlayer.setCuePoint(videoEvents.rating.ratingLength,()=>{videoEvents.rating.close()})},removeHrefSlash:function(n){if(n[0]==="/")while(n[1]==="/")n=n.substring(1);return n},onResponse:function(n){if(!n||vpspc.paths.Title==null){this.href=this.removeHrefSlash(this.href);window.location.href=this.href;return}player.classList.remove("is-live");vpspc.object=typeof n=="object"?n:JSON.parse(n);this.prevUrl=window.location.href;vpspc.paths.Title!=null&&(this.prevTitle=vpspc.paths.Title.textContent.trim());hasSeeked=!1;var t=this.getPath(this.href);vpspc.object.ContinueWatching>0&&(t=t+"?t="+vpspc.object.ContinueWatching);isIE&&(t="/"+t);this.popstate||history.pushState(vpspc.object,"",t);document.title=vpspc.object.Title;this.id=vpspc.object.VideoId;this.entityId=vpspc.object.EntityId;this.isPlaylist=vpspc.object.PlaylistMode;this.loading=!1;window.isAjax=!0;window.scroll({top:0,left:0,behavior:"smooth"});vpspc.object.Error.State&&window.location.reload();this.replaceData();this.replaceVideo();this.loading=!1;ga("gtm8.send","pageview",window.location.pathname+window.location.search);document.body.classList.remove("start");document.body.classList.add("done");clearTimeout(this.loaderTimeout);this.loaderTimeout=setTimeout(function(){document.body.classList.remove("isLoading","start","done");$(function(){var n=["video"];$(".video-page__category").each(function(){n.push($(this).text().toLowerCase())});gjdmp.pv(n)})},300)},loadNextComponent:function(){var n=this.pageComponents.shift();n?n():console.log("no page components")},callPlaylist:function(){if(vpspc.object.EntityId==null||vpspc.object.EntityId==undefined||vpspc.object.Serie==null||vpspc.object.Serie==undefined||vpspc.object.Error.State){$("#playlist-holder-replace").html("");$("#playlistLazy").addClass("d-none");vpspc.loadNextComponent();return}if(vpspc.object.PlaylistMode)isEmbed&&$("#toggleplaylist-btn").removeClass("d-none");else{isEmbed&&$("#toggleplaylist-btn").addClass("d-none");$("#playlist-holder-replace").html("");vpspc.loadNextComponent();return}isEmbed?$(".playlist-inside").html(""):$("#playlist-holder-replace").html("");vpspc.request("/Video/GetPlaylist?videoEntityId="+vpspc.object.EntityId+"&serieId="+vpspc.object.Serie.Id,function(n){n!==""&&n!==null&&n!==undefined?(isEmbed?$(".playlist-inside").html(n):$("#playlist-holder-replace").html(n),lazyPlaylist.scrollPlaylistToCurrent(),vpPlayerEvents.playlist()):$("#playlist-holder-replace").html("");$("#playlistLazy").addClass("d-none");vpspc.loadNextComponent()},!0)},getRelated:function(){if(isEmbed){vpspc.loadNextComponent();return}if(vpspc.object.VideoId==null||vpspc.object.VideoId==undefined){$("#related__container").html("");$("#relatedLazy").addClass("d-none");vpspc.loadNextComponent();return}if(!vpspc.object.HasRelatedVideos){$("#related__container").html("");vpspc.loadNextComponent();return}vpspc.request("/Video/GetRelated?videoId="+vpspc.object.VideoId,function(n){n!==""&&n!==null&&n!==undefined?($("#related__container").html(n),imgLazy&&imgLazy.update(),vpPlayerEvents.playlist()):$("#related__container").html("");$("#relatedLazy").addClass("d-none");vpspc.loadNextComponent()},!0)},getVideoRelated:function(){vpspc.request("/Video/GetPlayerRelated?videoId="+vpspc.object.VideoId,function(n){window.playerRelatedVideosArray=JSON.parse(n);vpPlayerEvents.playlist()},!0);vpspc.loadNextComponent()},getComments:function(n){if(isEmbed){n||vpspc.loadNextComponent();return}if($("[data-tab-target='comments-tab']")&&$("[data-tab-target='comments-tab']").click(),vpspc.object.VideoId==null||vpspc.object.VideoId==undefined||vpspc.object.Error.State){$("#video-comments-tab").html("");$("#commentsLazy").addClass("d-none");n||vpspc.loadNextComponent();return}vpspc.request("/Video/GetComments?videoId="+vpspc.object.VideoId+"&tag="+window.comments.tag,function(t){if(t!==""&&t!==null&&t!==undefined){$("#video-comments-tab").html(t);window.comments.loadTags();window.signalRComments.start();window.addEventListener("scroll",window.comments.eventFunctions.scrollHandler);window.comments.eventFunctions.scrollHandler();var i=getQueryStringValue("a");i&&i!==""&&window.comments.eventFunctions.scrollHandler(null,!0)}else $("#video-comments-tab").html("");$("#commentsLazy").addClass("d-none");n||vpspc.loadNextComponent()},!0)},showAdsHandler:function(){vpspc.object.Monetized?(vpspc.object.ShowUnderVideoAds?($(".banner-under").removeClass("d-none"),$(".video-page__ad-banner-mob").removeClass("d-none"),$("#bannerUnderLazy").removeClass("d-none")):($(".video-page__ad-banner-mob").addClass("d-none"),$(".banner-under").addClass("d-none")),vpspc.object.ShowProductsAds?($(".product-ad-wrapper").removeClass("d-none"),$("#productAdsliderLazy").removeClass("d-none"),$(".netLeft").click()):$(".product-ad-wrapper").addClass("d-none"),vpspc.object.ShowSquareAds?($(".sqaure-mobile-ad").removeClass("d-none"),$("#squareBannerLazy").removeClass("d-none")):$(".sqaure-mobile-ad").addClass("d-none"),Promise.resolve().then(function(){$(".an-holder").each(function(){$(this).html("");window.loadAN(vpspc.object.ApPropertyId,this.dataset.placementId,this.dataset.id)})}),vpspc.loadNextComponent()):($(".video-page__ad-banner-mob").addClass("d-none"),$(".banner-under").addClass("d-none"),$(".product-ad-wrapper").addClass("d-none"),$(".sqaure-mobile-ad").addClass("d-none"),vpspc.loadNextComponent())},getPoll:function(){if(vpspc.object.VideoId==null||vpspc.object.VideoId==undefined||vpspc.object.Error.State){$("#pollLazy").css("display","none");vpspc.loadNextComponent();return}if(!vpspc.object.HasPoll){$("#poll-holder").html("");typeof playerPoll!="undefined"&&playerPoll.poll.clear!==undefined&&playerPoll.poll.clear();vpspc.loadNextComponent();return}vpspc.request("/Video/GetPoll?videoId="+vpspc.object.VideoId,function(n){n!==""&&n!==null&&n!==undefined&&(vpspc.replaceFunctions.Poll(n),typeof playerPoll!="undefined"&&(playerPoll.triggered=document.getElementById("TriggerVoting").value==="True",playerPoll.canVote=!1,playerPoll.poll.load!==undefined&&playerPoll.poll.load()));$(".poll__wrapper").removeClass("is-loading-big");$("#pollLazy").css("display","none");vpspc.loadNextComponent()},!0)},getFloatingAds:function(){if(vpspc.object.VideoId==null||vpspc.object.VideoId==undefined||vpspc.object.Error.State){vpspc.loadNextComponent();return}vpspc.request("/Video/GetFloatingAds?videoEntityId="+vpspc.object.EntityId,function(n){n!==""&&n!==null&&n!==undefined&&vpspc.replaceFunctions.FloatingAds(n);vpspc.loadNextComponent()},!0)},getQuiz:function(){if(vpspc.object.VideoId==null||vpspc.object.VideoId==undefined||vpspc.object.Error.State){$("#quizLazy").addClass("d-none");vpspc.loadNextComponent();return}if(vpspc.object.HasQuiz)logginInsideQuiz=!1;else{logginInsideQuiz&&($(".popup.popup-fixed").appendTo("body"),$(".popup.popup-fixed").removeClass("position-absolute"),$("#app").removeAttr("style"),$("#ssoPopup").prependTo("body"),$("#ssoPopup").removeClass("position-absolute"),logginInsideQuiz=!1);$("#quiz-holder").html("");player.classList.remove("is-quiz");vpspc.loadNextComponent();return}vpspc.request("/Video/GetQuiz?videoId="+vpspc.object.VideoId,function(n){n!==""&&n!==null&&n!==undefined&&vpspc.replaceFunctions.Quiz(n);player.classList.add("is-quiz");$("#quizLazy").addClass("d-none");$("#quiz-holder").removeClass("d-none");vpspc.loadNextComponent()},!0)},getVideoInfo:function(){if(vpspc.object.VideoId==null||vpspc.object.VideoId==undefined||vpspc.object.Error.State){$("#video__info").html("");$("#video_infoLazy").addClass("d-none");vpspc.loadNextComponent();return}vpspc.request("/Video/GetInfo?videoId="+vpspc.object.VideoId,function(n){n!==""&&n!==null&&n!==undefined?$("#video__info").html(n):$("#video__info").html("");$("#video_infoLazy").addClass("d-none");vpspc.loadNextComponent()},!0)},removeLoader:function(){document.body.classList.remove("isLoading","start","done");isIE&&!isEmbed?window.history.replaceState("","",vpspc.object.EmbedUrl.replace("/embed","")):isIE&&isEmbed&&window.history.replaceState("","",vpspc.object.EmbedUrl)},getChat:function(){if(isEmbed){vpspc.loadNextComponent();return}if(vpspc.object.VideoId==null||vpspc.object.VideoId==undefined||vpspc.object.Error.State){$("#chatLazy").css("display","none");vpspc.loadNextComponent();return}if(!vpspc.object.HasChat){vpspc.loadNextComponent();document.querySelector("#chat-holder").innerHTML="";return}vpspc.request("/Video/GetChat?videoId="+vpspc.object.VideoId,function(n){n!==""&&n!==null&&n!==undefined&&vpspc.replaceFunctions.Chat(n);$("#chatLazy").addClass("d-none");vpspc.loadNextComponent()},!0)},getLiveReport:function(){if(isEmbed){vpspc.loadNextComponent();return}if(vpspc.object.VideoId==null||vpspc.object.VideoId==undefined||vpspc.object.SerieEntityId==undefined||vpspc.object.Error.State){$("#liveReportLazy").css("display","none");vpspc.loadNextComponent();return}if(!vpspc.object.HasOnlineReporting){vpspc.loadNextComponent();document.querySelector("#online-reporting-holder").innerHTML="";return}vpspc.request("/Video/GetLiveReports?serieEntityId="+vpspc.object.SerieEntityId,function(n){n!==""&&n!==null&&n!==undefined&&vpspc.replaceFunctions.LiveReports(n);$("#liveReportLazy").addClass("d-none");vpspc.loadNextComponent()},!0)},handleSkeletons:function(){vpspc.object.PlaylistMode&&($("#playlist-holder-replace").html(""),$("#playlistLazy").removeClass("d-none"));vpspc.object.HasQuiz&&$("#quizLazy").removeClass("d-none");vpspc.object.HasPoll&&$("#pollLazy").removeClass("d-none");vpspc.object.HasChat&&$("#chatLazy").removeClass("d-none");vpspc.object.HasRelatedVideos&&($("#relatedLazy").removeClass("d-none"),$("#related__container").html(""));vpspc.object.EntityCounts.Comments.Show&&($("#commentsLazy").removeClass("d-none"),$("#video-comments-tab").html(""));vpspc.object.HasOnlineReporting&&($("#online-reporting-holder").html(""),$("#liveReportLazy").removeClass("d-none"));$("#video_infoLazy").removeClass("d-none");$("#video__info").html("")}},allowThirdPartyCookies=!0,isEmbed=player.classList.contains("is-embed"),retryNetwork,adHoverPause,adShown,url,vpPlayerEvents,req;try{localStorage.setItem("allowThirdPartyCookies",1)}catch(e){console.log(e);allowThirdPartyCookies=!1}var inactive=!0,viewed=!1,videoEvents={componentsLoaded:!1,loadAjaxComponents:function(){videoEvents.componentsLoaded||(videoEvents.componentsLoaded=!0,vpspc.pageComponents=[vpspc.getVideoInfo,vpspc.getQuiz,vpspc.callPlaylist,vpspc.getVideoRelated,vpspc.getPoll,vpspc.getRelated,vpspc.showAdsHandler,vpspc.getFloatingAds,vpspc.getChat,vpspc.getLiveReport,vpspc.getComments,vpspc.removeLoader],vpspc.loadNextComponent())},saveView:function(){viewed||($.ajax({url:"/Action/SaveView/"+vpspc.object.EntityId,type:"GET",success:function(n){n.result.Success||(viewed=!1)},error:function(){viewed=!1}}),viewed=!0,window.analyticsEvents&&window.analyticsEvents.videoView())},queryString:function(n,t){t||(t=window.location.href);n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},relatedOverlay:{contentAdded:!1,visible:!1,show:function(){var n=relatedOverlay.querySelectorAll("a");n.forEach(function(n){n.dataset.ajax=!0});document.querySelector(".player__overlay-thumb").classList.add("active");relatedOverlay.classList.add("active");player.classList.remove("is-mouseout","is-ready");this.visible=!0},hide:function(){relatedOverlay.classList.remove("active");document.querySelector(".player__overlay-thumb").classList.remove("active");this.visible=!1}},initFloating:function(){if(document.getElementById("player-floating-enabled").value!=="false"){var n=!1,t=document.getElementById("player"),i=$("#player").offset().top+t.offsetHeight,r=t.classList.contains("is-explicit");$(window).scroll(function(){if($(window).scrollTop()>i&&!isMobile){if(n||r)return;$("#player").addClass("is-floating");$(".video-page__player").addClass("player-floating");$(".player__poster").appendTo(".player__engine")}else $(".player__poster").appendTo("#player"),$("#player").removeClass("is-floating"),$(".video-page__player").removeClass("player-floating"),n=!1})}},cast:{chromecast:{timer:!1,casting:!1,media:!1,session:!1,load:function(){var n=this;$.getScript("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js").done(function(){window.__onGCastApiAvailable=function(t){t&&n.init()}})},init:function(){function f(){}function e(t){t===chrome.cast.ReceiverAvailability.AVAILABLE&&n.classList.add("active")}function o(){}function s(){}var n=document.querySelector("#chromecast-btn"),t=this,i=chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,r=new chrome.cast.SessionRequest(i),u=new chrome.cast.ApiConfig(r,f,e);chrome.cast.initialize(u,o,s);n.addEventListener("click",function(){t.setup()})},stop:function(){player.classList.remove("is-chromecast");this.session.stop();this.session=!1;this.casting=!1;window.clearInterval(this.timer);videoPlayer.currentTime=isLive!=="True"?0:999999;videoEvents.timeUpdate(.01)},setup:function(){var n=this;if(this.session){this.stop();return}chrome.cast.requestSession(function(t){function a(t){n.media=t;$(".play-icon-wrapper",playButton).html('<i class="icon-pause"><\/i>');videoEvents.hasSubtitles&&subtitleActive&&videoEvents.cast.chromecast.toggleChromecastSubtitles(subtitleActive);adPlatformEvents.banner.closeBanner();t.addUpdateListener(function(i){if(!f){n.stop();return}player.classList.add("is-chromecast");n.casting=!0;n.timer=n.timer||setInterval(function(){videoEvents.timeUpdate(t.getEstimatedTime())},500);i||n.stop();t.playerState===chrome.cast.media.PlayerState.BUFFERING?(player.classList.add("is-loading-big"),videoPlayer.pause()):player.classList.remove("is-loading-big")})}var f=t,e,u,o;if(n.session=f,videoPlayer.pause(),isLive!=="True"&&(videoPlayer.currentTime=0),videoEvents.timeUpdate(0),e=[],videoEvents.hasSubtitles)for(u=0;u<videoPlayer.textTracks.length;u++){var s=document.querySelectorAll("track")[u],i=s.label,c=s.src;this[i]=new chrome.cast.media.Track(u+1,chrome.cast.media.TrackType.TEXT);this[i].trackContentId=c.split("?path=")[1];this[i].trackContentType="text/vtt";this[i].subtype=chrome.cast.media.TextTrackType.SUBTITLES;this[i].name=i+" Subtitles";this[i].language="cs-CZ";this[i].customData=null;e.push(this[i])}var l=f.receiver.friendlyName,r=new chrome.cast.media.MediaInfo(vpPlayer.player.getElementsByTagName("source")[0].src+".m3u8","application/x-mpegurl"),h=document.createElement("div");h.innerHTML=l;document.querySelector("#cast-device-name").textContent=h.firstChild.nodeValue;r.metadata=new chrome.cast.media.GenericMediaMetadata;r.metadata={type:0,metadataType:chrome.cast.media.MetadataType.GENERIC,title:videoPlayer.dataset.title,images:[{url:videoPlayer.poster}],subtitle:document.querySelector("#video-page__description")?document.querySelector("#video-page__description").textContent:"MallTV"};videoEvents.hasSubtitles&&(r.textTrackStyle=new chrome.cast.media.TextTrackStyle,r.textTrackStyle.fontFamily="Roboto 500",r.textTrackStyle.fontScale=.7,r.textTrackStyle.backgroundColor="#22222275",r.tracks=e);o=new chrome.cast.media.LoadRequest(r);o.autoplay=!0;f.loadMedia(o,a,function(){})},function(){n.casting=!1})},toggleChromecastSubtitles:function(n){if(this.session){var t=[n],i=new chrome.cast.media.EditTracksInfoRequest(t);videoEvents.cast.chromecast.media.editTracksInfo(i,function(){},function(){})}},play:function(){this.session&&(this.media.play(),$(".play-icon-wrapper",playButton).html('<i class="icon-pause"><\/i>'),$(".player__ui-actions-title",playButton).text(playButton.attr("data-pause")),isLive==="True"&&(videoPlayer.currentTime=999999))},pause:function(){this.session&&(this.media.pause(),$(".play-icon-wrapper",playButton).html('<i class="icon-play"><\/i>'),$(".player__ui-actions-title",playButton).text(playButton.attr("data-play")))},seek:function(n){if(this.session&&this.media){var t=new chrome.cast.media.SeekRequest;t.currentTime=n;this.media.seek(t)}},setVolume:function(n,t){function i(){}function r(){}this.session&&(t?session.setReceiverMuted(!0,i,r):this.session.setReceiverVolumeLevel(n,i,r))}},airplayCasting:!1,airplay:function(){if(window.WebKitPlaybackTargetAvailabilityEvent){var n=document.querySelector("#airplay-btn"),t=this;videoPlayer.addEventListener("webkitplaybacktargetavailabilitychanged",function(i){if(i.availability!=="available"){n.classList.remove("active");player.classList.remove("is-airplay");videoPlayer.removeAttribute("title");t.airplayCasting=!1;return}videoPlayer.setAttribute("title",videoPlayer.dataset.title);n.classList.add("active");player.classList.add("is-airplay")});videoPlayer.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(i){i.webkitCurrentPlaybackTargetIsWireless?(n.classList.add("active"),player.classList.add("is-airplay")):(n.classList.remove("active"),player.classList.remove("is-airplay"),videoPlayer.removeAttribute("title"),t.airplayCasting=!1)});n.addEventListener("click",function(n){n.preventDefault();videoPlayer.webkitShowPlaybackTargetPicker();t.airplayCasting=!0})}}},rating:{submitted:vpspc.object.Rated,active:!1,ratingLength:0,ratingTime:0,wrapper:document.querySelector(".player__rating"),calculateTime:function(){var r,t,i,n,u;if(!isMobile){if(vpspc.object.DurationSeconds>60){if(r=30/100*vpspc.object.DurationSeconds,t=80/100*vpspc.object.DurationSeconds,this.ratingTime=Math.random()*(r-t)+t,videoEvents.rating.ratingTime===0)return;i=[];n=[];window.floatingAdsModel.forEach(n=>{var t=parseInt(n.Time),r=t+parseInt(n.ShowTime);i.push(t,r)});n=n.concat(vpspc.object.AdCuePoints,i,vpspc.object.PopupCuePoints);u=n.sort(function(n,t){return n=Math.abs(n-videoEvents.rating.ratingTime),t=Math.abs(t-videoEvents.rating.ratingTime),n<t?-1:n>t?1:0});this.ratingTime-u[0]<25&&(this.ratingTime=this.ratingTime-15)}else this.ratingTime=vpspc.object.DurationSeconds/2;this.ratingTime=Math.round(this.ratingTime);this.ratingLength=vpspc.object.DurationSeconds-this.ratingTime>10?this.ratingTime+15:this.ratingTime+7}},open:function(){!videoEvents.rating.wrapper||this.submitted||isMobile||this.ratingTime===0||(videoEvents.rating.wrapper.classList.add("active"),this.event(),this.active=!0)},close:function(){videoEvents.rating.wrapper&&!isMobile&&this.ratingTime!==0&&(videoEvents.rating.wrapper.classList.remove("active"),this.active=!1)},event:function(){for(var t=document.querySelectorAll(".player__rating-vote .list-inline-item"),i=document.querySelector("#closeRating"),r=this,n=0;n<t.length;n++)t[n].addEventListener("click",function(){r.click(this)});i.addEventListener("click",function(){this.close()}.bind(this))},click:function(n){var i,r,t;isMobile||(i=videoEvents.rating.wrapper.offsetWidth-n.offsetLeft+n.offsetWidth*2-5,r=this,this.submitted)||(this.submitted=!0,n.classList.add("active"),setTimeout(function(){n.style.transform="translate3d("+i+"px, 0, 0)";videoEvents.rating.wrapper.classList.add("voted");setTimeout(function(){r.close()},1e3)},300),t=new XMLHttpRequest,t.open("GET","/Action/Rate?entityId="+vpspc.object.EntityId+"&value="+n.dataset.number,!0),t.responseType="json",t.onload=function(){vpspc.object.Rated=!0},t.send())}},theaterMode:function(){var n=document.getElementsByClassName("video-page__player")[0];document.body.classList.toggle("is-theater");document.body.classList.contains("is-theater")?(videoEvents.preference("theater",!0),n.classList.remove("col-md-8","pr-lg-0"),n.classList.add("col-md-12"),signalR.videoHubMethods.sizeChanged(parseInt(vpPlayer.player.video.currentTime),2)):(videoEvents.preference("theater",!1),n.classList.remove("col-md-12"),n.classList.add("col-md-8","pr-lg-0"),signalR.videoHubMethods.sizeChanged(vpPlayer.player.video.currentTime,1))},nextVideo:function(n){signalR.videoHubMethods.saveTrack("nextVideo");vpspc.onRequest(n.detail.media.entityId,n.detail.media.serieId,n.detail.media.href)},preference:function(n,t){if(!allowThirdPartyCookies)return!1;if(typeof localStorage=="object"){try{localStorage.setItem("localStorage",1);localStorage.removeItem("localStorage")}catch(i){return Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},!1}return window.userPreference=localStorage.getItem("_up")!==null?JSON.parse(localStorage.getItem("_up")):{},t!==undefined&&(t==="remove"?delete window.userPreference[n]:window.userPreference[n]=t),localStorage.setItem("_up",JSON.stringify(userPreference)),window.userPreference[n]}return!1}};!videoEvents.preference("theater")||isEmbed||isMobile||inactive||videoEvents.handleTheaterMode();retryNetwork=document.querySelector("#retry-network");retryNetwork&&retryNetwork.addEventListener("click",function(){window.location.reload()});inactive&&(videoEvents.loadAjaxComponents(),window.liveFunctions&&window.liveFunctions.init());$(".playlist__videos").length&&$(".current").length&&$(document).ready(function(){$(".playlist__videos").scrollTop($(".current").offset().top-$(".playlist__videos").offset().top-100)});var change=!1,videoWrapper=$(".video-page__wrapper"),videoContainer=$(".video-page__player"),leftContainer=$(".video-page__info"),rightContainer=$(".video-page__related"),playerCommentsHolder=$(".video-page__comments-container"),extra=$(".video-page__chat-playlist");$(window).on("orientationchange",function(){this.isTablet?leftContainer.append(playerCommentsHolder):$(".video-page").addClass("mobile-structure")});$(window).resize(function(){change||(changeStructure(),change=!0)});setInterval(function(){change&&(change=!1)},700);$(document).on("click",".toggle-sections",function(){var n=$(this)[0].getAttribute("data-toggle-section");$(this).toggleClass("active");$('.section-toToggle[data-toggle-id="'+n+'"]').toggleClass("show")});$("#chat-holder").on("click","#hide-chat",function(){$("#chat-holder").find(".mall_chat-wrapper").toggleClass("mall_chat-hidden");$(this).toggleClass("toggle-hidden")});$("#online-reporting-holder").on("click","#hide-lr",function(){$(document).find(".live-reports_wrapper").toggleClass("live-reports_hidden");$(this).toggleClass("toggle-hidden")});$(document).on("click",".player__ui-toggleplaylist",function(){$(".player").toggleClass("playlist-open")});window.onbeforeunload=function(){return videoEvents.cast.chromecast.status&&videoEvents.cast.chromecast.stop(),null};$(document).on("click",".player__ad-close",function(){$(this).parent().parent().removeClass("visible")});$(document).on("click",".fa-href",function(){vpPlayer.player.video.pause()});adDot=$(".player__ad-2");adHoverPause=!1;$(document).on("mouseenter",".player__ad-2",function(){vpPlayer.player.video.paused?adHoverPause=!1:(vpPlayer.player.video.pause(),adHoverPause=!0);var n=$(this).offset().left-$(this).parent().offset().left-$(this).parent().scrollLeft(),t=$(this).offset().top-$(this).parent().offset().top-$(this).parent().scrollTop(),i=$("#player").innerWidth()-$(this).find(".player__ad-container").outerWidth()-n,r=$("#player").innerHeight()-$(this).find(".player__ad-container").outerHeight()-t;i<$(this).find(".player__ad-container").outerWidth()?$(this).find(".player__ad-container").css("left","-270px"):$(this).find(".player__ad-container").css("left","30px");r<$(this).find(".player__ad-container").outerHeight()?$(this).find(".player__ad-container").css("top","-70px"):$(this).find(".player__ad-container").css("top","30px");$(this).find(".player__ad-container").css("display","block")});$(document).on("mouseleave",".player__ad-2",function(){adHoverPause&&vpPlayer.player.video.play();$(this).find(".player__ad-container").css("display","none")});adShown=[];(window.analyticsEvents&&document.getElementById("recipeModel-json")||document.querySelectorAll("#video-page__description a").length)&&window.addEventListener("scroll",throttle(300));url=new URL(window.location.href.split("?")[0].replace(window.location.host,window.location.host+"/embed"));$("#embed-autoplay-checkbox").on("change",function(){$(this).is(":checked")?url.searchParams.delete("autoplay",!1):url.searchParams.set("autoplay",!0);$("#embed-autoplay-mobile-checkbox").is(":checked")?url.searchParams.set("am",!0):url.searchParams.set("am",!1);var n=$("#embed-instant-checkbox").is(":checked")?'<p style="padding-top:56.25%; position:relative; width:100%;"><iframe style="position:absolute; left:0; top:0; width: 100%; height:100%;" class="no-margin" src="'+url.href+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe><\/p>':'<div style="padding-top:56.25%; position:relative; width:100%;"><iframe  class="no-margin" style="position:absolute; left:0; top:0; width: 100%; height:100%;" src="'+url.href+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe><\/div>';n=n.replace(/ +(?= )/g,"");$("#embed-video-link").val(n)});$("#embed-autoplay-mobile-checkbox").on("change",function(){$("#embed-autoplay-checkbox").is(":checked")?url.searchParams.delete("autoplay",!1):url.searchParams.set("autoplay",!0);$(this).is(":checked")?url.searchParams.delete("am",!0):url.searchParams.set("am",!1);var n=$("#embed-instant-checkbox").is(":checked")?'<p style="padding-top:56.25%; position:relative; width:100%;"><iframe style="position:absolute; left:0; top:0; width: 100%; height:100%;" class="no-margin" src="'+url.href+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe><\/p>':'<div style="padding-top:56.25%; position:relative; width:100%;"><iframe  class="no-margin" style="position:absolute; left:0; top:0; width: 100%; height:100%;" src="'+url.href+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe><\/div>';n=n.replace(/ +(?= )/g,"");$("#embed-video-link").val(n)});$("#embed-instant-checkbox").on("change",function(){var n;n=$(this).is(":checked")?'<p style="padding-top:56.25%; position:relative; width:100%;"><iframe style="position:absolute; left:0; top:0; width: 100%; height:100%;" class="no-margin" src="'+url.href+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe><\/p>':'<div style="padding-top:56.25%; position:relative; width:100%;"><iframe  class="no-margin" style="position:absolute; left:0; top:0; width: 100%; height:100%;" src="'+url.href+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe><\/div>';n=n.replace(/ +(?= )/g,"");$("#embed-video-link").val(n)});$("#embed-video-quiz").on("change",function(){var n;url.searchParams.set("autoplay",!0);n=$(this).is(":checked")?'<div style="padding-top:189.25%; position:relative; width:100%;"><iframe style="position:absolute; left:0; top:0; width: 100%; height:100%;" class="no-margin" src="'+url.href+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe><\/div>':'<div style="padding-top:56.25%; position:relative; width:100%;"><iframe  class="no-margin" style="position:absolute; left:0; top:0; width: 100%; height:100%;" src="'+url.href+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe><\/div>';n=n.replace(/ +(?= )/g,"");$("#embed-video-link").val(n)});$("#copy-share-video-link").click(function(){var n=$("#share-video-link");n.focus();n.get(0).setSelectionRange(0,n[0].value.length);document.execCommand("copy")});$("#show-embed").click(function(){$(".embed-video").toggleClass("active")});$("#copy-embed-video-link").click(function(){var n=$("#embed-video-link");n.focus();n.get(0).setSelectionRange(0,n[0].value.length);document.execCommand("copy")});$(".player__ui-share-button").click(function(){$(".embed-share-popup").toggleClass("embed-share-open")});$(".embed-share-popup").length&&$(document).click(function(n){$(n.target).closest(".player__ui-share-button, .player__ui-share-button *, .embed-share-popup, .embed-share-popup *").length||$(".embed-share-popup").removeClass("embed-share-open")});$(document).ready(function(){var n,t;videoEvents.initFloating();vpspc.init();n=new URL(window.location.href.split("?")[0].replace(window.location.host,window.location.host+"/embed"));n.searchParams.set("autoplay",!0);$("#embed-autoplay-mobile-checkbox").is(":checked")?n.searchParams.set("am",!0):n.searchParams.set("am",!1);t='<div style="padding-top:56.25%; position:relative; width:100%;"><iframe  class="no-margin" style="position:absolute; left:0; top:0; width: 100%; height:100%;" src="'+n.href+'" frameborder="0" allow="autoplay" allowfullscreen><\/iframe><\/div>';t=t.replace(/ +(?= )/g,"");$("#embed-video-link").val(t)});$(".share-messenger").click(function(){fbShare("send")});$(".share-facebook").click(function(){fbShare("feed")});!function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};t.m=n;t.c=i;t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:r})};t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});Object.defineProperty(n,"__esModule",{value:!0})};t.t=function(n,i){var r,u;if((1&i&&(n=t(n)),8&i)||4&i&&"object"==typeof n&&n&&n.__esModule)return n;if(r=Object.create(null),t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(u in n)t.d(r,u,function(t){return n[t]}.bind(null,u));return r};t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i};t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)};t.p="";t(t.s=131)}([function(n,t,i){var u=i(2),f=i(18),o=i(11),s=i(12),e=i(19),r=function(n,t,i){var c,y,h,p,k=n&r.F,v=n&r.G,d=n&r.S,w=n&r.P,g=n&r.B,l=v?u:d?u[t]||(u[t]={}):(u[t]||{}).prototype,a=v?f:f[t]||(f[t]={}),b=a.prototype||(a.prototype={});for(c in v&&(i=t),i)h=((y=!k&&l&&void 0!==l[c])?l:i)[c],p=g&&y?e(h,u):w&&"function"==typeof h?e(Function.call,h):h,l&&s(l,c,h,n&r.U),a[c]!=h&&o(a,c,p),w&&b[c]!=h&&(b[c]=h)};u.core=f;r.F=1;r.G=2;r.S=4;r.P=8;r.B=16;r.W=32;r.U=64;r.R=128;n.exports=r},function(n,t,i){var r=i(4);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},function(n){var t=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(n){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n,t,i){var r=i(47)("wks"),e=i(33),u=i(2).Symbol,f="function"==typeof u;(n.exports=function(n){return r[n]||(r[n]=f&&u[n]||(f?u:e)("Symbol."+n))}).store=r},function(n,t,i){var r=i(21),u=Math.min;n.exports=function(n){return n>0?u(r(n),9007199254740991):0}},function(n,t,i){n.exports=!i(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n,t,i){var r=i(1),u=i(94),f=i(23),e=Object.defineProperty;t.f=i(7)?Object.defineProperty:function(n,t,i){if(r(n),t=f(t,!0),r(i),u)try{return e(n,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(n[t]=i.value),n}},function(n,t,i){var r=i(24);n.exports=function(n){return Object(r(n))}},function(n){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,i){var r=i(8),u=i(32);n.exports=i(7)?function(n,t,i){return r.f(n,t,u(1,i))}:function(n,t,i){return n[t]=i,n}},function(n,t,i){var o=i(2),r=i(11),e=i(14),u=i(33)("src"),f=i(135),s=(""+f).split("toString");i(18).inspectSource=function(n){return f.call(n)};(n.exports=function(n,t,i,f){var h="function"==typeof i;h&&(e(i,"name")||r(i,"name",t));n[t]!==i&&(h&&(e(i,u)||r(i,u,n[t]?""+n[t]:s.join(String(t)))),n===o?n[t]=i:f?n[t]?n[t]=i:r(n,t,i):(delete n[t],r(n,t,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||f.call(this)})},function(n,t,i){var r=i(0),u=i(3),f=i(24),e=/"/g,o=function(n,t,i,r){var o=String(f(n)),u="<"+t;return""!==i&&(u+=" "+i+'="'+String(r).replace(e,"&quot;")+'"'),u+">"+o+"<\/"+t+">"};n.exports=function(n,t){var i={};i[n]=t(o);r(r.P+r.F*u(function(){var t=""[n]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",i)}},function(n){var t={}.hasOwnProperty;n.exports=function(n,i){return t.call(n,i)}},function(n,t,i){var r=i(48),u=i(24);n.exports=function(n){return r(u(n))}},function(n,t,i){var u=i(49),f=i(32),e=i(15),o=i(23),s=i(14),h=i(94),r=Object.getOwnPropertyDescriptor;t.f=i(7)?r:function(n,t){if(n=e(n),t=o(t,!0),h)try{return r(n,t)}catch(n){}if(s(n,t))return f(!u.f.call(n,t),n[t])}},function(n,t,i){var u=i(14),f=i(9),r=i(69)("IE_PROTO"),e=Object.prototype;n.exports=Object.getPrototypeOf||function(n){return n=f(n),u(n,r)?n[r]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?e:null}},function(n){var t=n.exports={version:"2.6.11"};"number"==typeof __e&&(__e=t)},function(n,t,i){var r=i(10);n.exports=function(n,t,i){if(r(n),void 0===t)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},function(n){var t={}.toString;n.exports=function(n){return t.call(n).slice(8,-1)}},function(n){var t=Math.ceil,i=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?i:t)(n)}},function(n,t,i){"use strict";var r=i(3);n.exports=function(n,t){return!!n&&r(function(){t?n.call(null,function(){},1):n.call(null)})}},function(n,t,i){var r=i(4);n.exports=function(n,t){if(!r(n))return n;var i,u;if(t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n))||"function"==typeof(i=n.valueOf)&&!r(u=i.call(n))||!t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n)))return u;throw TypeError("Can't convert object to primitive value");}},function(n){n.exports=function(n){if(null==n)throw TypeError("Can't call method on  "+n);return n}},function(n,t,i){var r=i(0),u=i(18),f=i(3);n.exports=function(n,t){var i=(u.Object||{})[n]||Object[n],e={};e[n]=t(i);r(r.S+r.F*f(function(){i(1)}),"Object",e)}},function(n,t,i){var r=i(19),u=i(48),f=i(9),e=i(6),o=i(85);n.exports=function(n,t){var s=1==n,l=2==n,a=3==n,i=4==n,h=6==n,v=5==n||h,c=t||o;return function(t,o,y){for(var w,b,g=f(t),k=u(g),tt=r(o,y,3),nt=e(k.length),p=0,d=s?c(t,nt):l?c(t,0):void 0;nt>p;p++)if((v||p in k)&&(b=tt(w=k[p],p,g),n))if(s)d[p]=b;else if(b)switch(n){case 3:return!0;case 5:return w;case 6:return p;case 2:d.push(w)}else if(i)return!1;return h?-1:a||i?i:d}}},function(n,t,i){"use strict";var o;if(i(7)){var ft=i(29),b=i(2),f=i(3),r=i(0),k=i(62),pt=i(93),nr=i(19),wt=i(39),tr=i(32),e=i(11),et=i(41),ir=i(21),d=i(6),bt=i(122),kt=i(35),dt=i(23),v=i(14),gt=i(44),c=i(4),ni=i(9),rr=i(82),ur=i(36),fr=i(17),ot=i(37).f,er=i(84),ti=i(33),ii=i(5),h=i(26),ri=i(52),st=i(51),ht=i(87),or=i(46),sr=i(57),hr=i(38),cr=i(86),lr=i(111),ui=i(8),fi=i(16),y=ui.f,ar=fi.f,p=b.RangeError,ei=b.TypeError,l=b.Uint8Array,s=Array.prototype,ct=pt.ArrayBuffer,vr=pt.DataView,oi=h(0),yr=h(2),pr=h(3),wr=h(4),br=h(5),kr=h(6),dr=ri(!0),gr=ri(!1),nu=ht.values,tu=ht.keys,iu=ht.entries,ru=s.lastIndexOf,uu=s.reduce,fu=s.reduceRight,si=s.join,eu=s.sort,hi=s.slice,w=s.toString,lt=s.toLocaleString,at=ii("iterator"),g=ii("toStringTag"),ci=ti("typed_constructor"),nt=ti("def_constructor"),li=k.CONSTR,a=k.TYPED,ou=k.VIEW,su=h(1,function(n,t){return it(st(n,n[nt]),t)}),ai=f(function(){return 1===new l(new Uint16Array([1]).buffer)[0]}),hu=!!l&&!!l.prototype.set&&f(function(){new l(1).set({})}),tt=function(n,t){var i=ir(n);if(i<0||i%t)throw p("Wrong offset!");return i},u=function(n){if(c(n)&&a in n)return n;throw ei(n+" is not a typed array!");},it=function(n,t){if(!c(n)||!(ci in n))throw ei("It is not a typed array constructor!");return new n(t)},vi=function(n,t){return vt(st(n,n[nt]),t)},vt=function(n,t){for(var i=0,r=t.length,u=it(n,r);r>i;)u[i]=t[i++];return u},rt=function(n,t,i){y(n,t,{get:function(){return this._d[i]}})},yt=function(n){var t,u,f,e,s,h,i=ni(n),c=arguments.length,r=c>1?arguments[1]:void 0,l=void 0!==r,o=er(i);if(null!=o&&!rr(o)){for(h=o.call(i),f=[],t=0;!(s=h.next()).done;t++)f.push(s.value);i=f}for(l&&c>2&&(r=nr(r,arguments[2],2)),t=0,u=d(i.length),e=it(this,u);u>t;t++)e[t]=l?r(i[t],t):i[t];return e},cu=function(){for(var n=0,t=arguments.length,i=it(this,t);t>n;)i[n]=arguments[n++];return i},lu=!!l&&f(function(){lt.call(new l(1))}),yi=function(){return lt.apply(lu?hi.call(u(this)):u(this),arguments)},pi={copyWithin:function(n,t){return lr.call(u(this),n,t,arguments.length>2?arguments[2]:void 0)},every:function(n){return wr(u(this),n,arguments.length>1?arguments[1]:void 0)},fill:function(){return cr.apply(u(this),arguments)},filter:function(n){return vi(this,yr(u(this),n,arguments.length>1?arguments[1]:void 0))},find:function(n){return br(u(this),n,arguments.length>1?arguments[1]:void 0)},findIndex:function(n){return kr(u(this),n,arguments.length>1?arguments[1]:void 0)},forEach:function(n){oi(u(this),n,arguments.length>1?arguments[1]:void 0)},indexOf:function(n){return gr(u(this),n,arguments.length>1?arguments[1]:void 0)},includes:function(n){return dr(u(this),n,arguments.length>1?arguments[1]:void 0)},join:function(){return si.apply(u(this),arguments)},lastIndexOf:function(){return ru.apply(u(this),arguments)},map:function(n){return su(u(this),n,arguments.length>1?arguments[1]:void 0)},reduce:function(){return uu.apply(u(this),arguments)},reduceRight:function(){return fu.apply(u(this),arguments)},reverse:function(){for(var i,n=u(this).length,r=Math.floor(n/2),t=0;t<r;)i=this[t],this[t++]=this[--n],this[n]=i;return this},some:function(n){return pr(u(this),n,arguments.length>1?arguments[1]:void 0)},sort:function(n){return eu.call(u(this),n)},subarray:function(n,t){var i=u(this),r=i.length,f=kt(n,r);return new(st(i,i[nt]))(i.buffer,i.byteOffset+f*i.BYTES_PER_ELEMENT,d((void 0===t?r:kt(t,r))-f))}},wi=function(n,t){return vi(this,hi.call(u(this),n,t))},bi=function(n){u(this);var i=tt(arguments[1],1),e=this.length,r=ni(n),f=d(r.length),t=0;if(f+i>e)throw p("Wrong length!");for(;t<f;)this[i+t]=r[t++]},ut={entries:function(){return iu.call(u(this))},keys:function(){return tu.call(u(this))},values:function(){return nu.call(u(this))}},ki=function(n,t){return c(n)&&n[a]&&"symbol"!=typeof t&&t in n&&String(+t)==String(t)},di=function(n,t){return ki(n,t=dt(t,!0))?tr(2,n[t]):ar(n,t)},gi=function(n,t,i){return!(ki(n,t=dt(t,!0))&&c(i)&&v(i,"value"))||v(i,"get")||v(i,"set")||i.configurable||v(i,"writable")&&!i.writable||v(i,"enumerable")&&!i.enumerable?y(n,t,i):(n[t]=i.value,n)};li||(fi.f=di,ui.f=gi);r(r.S+r.F*!li,"Object",{getOwnPropertyDescriptor:di,defineProperty:gi});f(function(){w.call({})})&&(w=lt=function(){return si.call(this)});o=et({},pi);et(o,ut);e(o,at,ut.values);et(o,{slice:wi,set:bi,constructor:function(){},toString:w,toLocaleString:yi});rt(o,"buffer","b");rt(o,"byteOffset","o");rt(o,"byteLength","l");rt(o,"length","e");y(o,g,{get:function(){return this[a]}});n.exports=function(n,t,i,u){var h=n+((u=!!u)?"Clamped":"")+"Array",lt="get"+n,pt="set"+n,s=b[h],v=s||{},et=s&&fr(s),kt=!s||!k.ABV,st={},l=s&&s.prototype,dt=function(n,i){y(n,i,{get:function(){return function(n,i){var r=n._d;return r.v[lt](i*t+r.o,ai)}(this,i)},set:function(n){return function(n,i,r){var f=n._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r);f.v[pt](i*t+f.o,r,ai)}(this,i,n)},enumerable:!0})};kt?(s=i(function(n,i,r,u){var v,f,o,b,w,l,y;if(wt(n,s,h,"_d"),w=0,l=0,c(i)){if(!(i instanceof ct||"ArrayBuffer"==(b=gt(i))||"SharedArrayBuffer"==b))return a in i?vt(s,i):yt.call(s,i);if(v=i,l=tt(r,t),y=i.byteLength,void 0===u){if(y%t)throw p("Wrong length!");if((f=y-l)<0)throw p("Wrong length!");}else if((f=d(u)*t)+l>y)throw p("Wrong length!");o=f/t}else o=bt(i),v=new ct(f=o*t);for(e(n,"_d",{b:v,o:l,l:f,e:o,v:new vr(v)});w<o;)dt(n,w++)}),l=s.prototype=ur(o),e(l,"constructor",s)):f(function(){s(1)})&&f(function(){new s(-1)})&&sr(function(n){new s;new s(null);new s(1.5);new s(n)},!0)||(s=i(function(n,i,r,u){var f;return wt(n,s,h),c(i)?i instanceof ct||"ArrayBuffer"==(f=gt(i))||"SharedArrayBuffer"==f?void 0!==u?new v(i,tt(r,t),u):void 0!==r?new v(i,tt(r,t)):new v(i):a in i?vt(s,i):yt.call(s,i):new v(bt(i))}),oi(et!==Function.prototype?ot(v).concat(ot(et)):ot(v),function(n){n in s||e(s,n,v[n])}),s.prototype=l,ft||(l.constructor=s));var it=l[at],rt=!!it&&("values"==it.name||null==it.name),ht=ut.values;e(s,ci,!0);e(l,a,h);e(l,ou,!0);e(l,nt,s);(u?new s(1)[g]==h:g in l)||y(l,g,{get:function(){return h}});st[h]=s;r(r.G+r.W+r.F*(s!=v),st);r(r.S,h,{BYTES_PER_ELEMENT:t});r(r.S+r.F*f(function(){v.of.call(s,1)}),h,{from:yt,of:cu});"BYTES_PER_ELEMENT"in l||e(l,"BYTES_PER_ELEMENT",t);r(r.P,h,pi);hr(h);r(r.P+r.F*hu,h,{set:bi});r(r.P+r.F*!rt,h,ut);ft||l.toString==w||(l.toString=w);r(r.P+r.F*f(function(){new s(1).slice()}),h,{slice:wi});r(r.P+r.F*(f(function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()})||!f(function(){l.toLocaleString.call([1,2])})),h,{toLocaleString:yi});or[h]=rt?it:ht;ft||rt||e(l,at,ht)}}else n.exports=function(){}},function(n,t,i){var f=i(117),e=i(0),o=i(47)("metadata"),u=o.store||(o.store=new(i(120))),r=function(n,t,i){var r=u.get(n),e;if(!r){if(!i)return;u.set(n,r=new f)}if(e=r.get(t),!e){if(!i)return;r.set(t,e=new f)}return e};n.exports={store:u,map:r,has:function(n,t,i){var u=r(t,i,!1);return void 0!==u&&u.has(n)},get:function(n,t,i){var u=r(t,i,!1);if(void 0!==u)return u.get(n)},set:function(n,t,i,u){r(i,u,!0).set(n,t)},keys:function(n,t){var i=r(n,t,!1),u=[];return i&&i.forEach(function(n,t){u.push(t)}),u},key:function(n){return void 0===n||"symbol"==typeof n?n:String(n)},exp:function(n){e(e.S,"Reflect",n)}}},function(n){n.exports=!1},function(n,t,i){var r=i(33)("meta"),o=i(4),f=i(14),s=i(8).f,h=0,u=Object.isExtensible||function(){return!0},c=!i(3)(function(){return u(Object.preventExtensions({}))}),e=function(n){s(n,r,{value:{i:"O"+ ++h,w:{}}})},l=n.exports={KEY:r,NEED:!1,fastKey:function(n,t){if(!o(n))return"symbol"==typeof n?n:("string"==typeof n?"S":"P")+n;if(!f(n,r)){if(!u(n))return"F";if(!t)return"E";e(n)}return n[r].i},getWeak:function(n,t){if(!f(n,r)){if(!u(n))return!0;if(!t)return!1;e(n)}return n[r].w},onFreeze:function(n){return c&&l.NEED&&u(n)&&!f(n,r)&&e(n),n}}},function(n,t,i){var r=i(5)("unscopables"),u=Array.prototype;null==u[r]&&i(11)(u,r,{});n.exports=function(n){u[r][n]=!0}},function(n){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},function(n){var t=0,i=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++t+i).toString(36))}},function(n,t,i){var r=i(96),u=i(70);n.exports=Object.keys||function(n){return r(n,u)}},function(n,t,i){var r=i(21),u=Math.max,f=Math.min;n.exports=function(n,t){return(n=r(n))<0?u(n+t,0):f(n,t)}},function(n,t,i){var e=i(1),o=i(97),f=i(70),s=i(69)("IE_PROTO"),u=function(){},r=function(){var n,t=i(67)("iframe"),u=f.length;for(t.style.display="none",i(71).appendChild(t),t.src="javascript:",(n=t.contentWindow.document).open(),n.write("<script>document.F=Object<\/script>"),n.close(),r=n.F;u--;)delete r.prototype[f[u]];return r()};n.exports=Object.create||function(n,t){var i;return null!==n?(u.prototype=e(n),i=new u,u.prototype=null,i[s]=n):i=r(),void 0===t?i:o(i,t)}},function(n,t,i){var r=i(96),u=i(70).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(n){return r(n,u)}},function(n,t,i){"use strict";var u=i(2),f=i(8),e=i(7),r=i(5)("species");n.exports=function(n){var t=u[n];e&&t&&!t[r]&&f.f(t,r,{configurable:!0,get:function(){return this}})}},function(n){n.exports=function(n,t,i,r){if(!(n instanceof t)||void 0!==r&&r in n)throw TypeError(i+": incorrect invocation!");return n}},function(n,t,i){var f=i(19),e=i(109),o=i(82),s=i(1),h=i(6),c=i(84),r={},u={};(t=n.exports=function(n,t,i,l,a){var d,y,w,v,b=a?function(){return n}:c(n),k=f(i,l,t?2:1),p=0;if("function"!=typeof b)throw TypeError(n+" is not iterable!");if(o(b)){for(d=h(n.length);d>p;p++)if((v=t?k(s(y=n[p])[0],y[1]):k(n[p]))===r||v===u)return v}else for(w=b.call(n);!(y=w.next()).done;)if((v=e(w,k,y.value,t))===r||v===u)return v}).BREAK=r;t.RETURN=u},function(n,t,i){var r=i(12);n.exports=function(n,t,i){for(var u in t)r(n,u,t[u],i);return n}},function(n,t,i){var r=i(4);n.exports=function(n,t){if(!r(n)||n._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return n}},function(n,t,i){var u=i(8).f,f=i(14),r=i(5)("toStringTag");n.exports=function(n,t,i){n&&!f(n=i?n:n.prototype,r)&&u(n,r,{configurable:!0,value:t})}},function(n,t,i){var r=i(20),u=i(5)("toStringTag"),f="Arguments"==r(function(){return arguments}());n.exports=function(n){var t,i,e;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(i=function(n,t){try{return n[t]}catch(n){}}(t=Object(n),u))?i:f?r(t):"Object"==(e=r(t))&&"function"==typeof t.callee?"Arguments":e}},function(n,t,i){var u=i(0),o=i(24),s=i(3),f=i(73),r="["+f+"]",h=RegExp("^"+r+r+"*"),c=RegExp(r+r+"*$"),e=function(n,t,i){var r={},e=s(function(){return!!f[n]()||"​"!="​"[n]()}),o=r[n]=e?t(l):f[n];i&&(r[i]=o);u(u.P+u.F*e,"String",r)},l=e.trim=function(n,t){return n=String(o(n)),1&t&&(n=n.replace(h,"")),2&t&&(n=n.replace(c,"")),n};n.exports=e},function(n){n.exports={}},function(n,t,i){var f=i(18),r=i(2),u=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(n.exports=function(n,t){return u[n]||(u[n]=void 0!==t?t:{})})("versions",[]).push({version:f.version,mode:i(29)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(n,t,i){var r=i(20);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==r(n)?n.split(""):Object(n)}},function(n,t){t.f={}.propertyIsEnumerable},function(n,t,i){"use strict";var r=i(1);n.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(n,t,i){var r=i(1),u=i(10),f=i(5)("species");n.exports=function(n,t){var i,e=r(n).constructor;return void 0===e||null==(i=r(e)[f])?t:u(i)}},function(n,t,i){var r=i(15),u=i(6),f=i(35);n.exports=function(n){return function(t,i,e){var c,s=r(t),h=u(s.length),o=f(e,h);if(n&&i!=i){for(;h>o;)if((c=s[o++])!=c)return!0}else for(;h>o;o++)if((n||o in s)&&s[o]===i)return n||o||0;return!n&&-1}}},function(n,t){t.f=Object.getOwnPropertySymbols},function(n,t,i){var r=i(20);n.exports=Array.isArray||function(n){return"Array"==r(n)}},function(n,t,i){var r=i(21),u=i(24);n.exports=function(n){return function(t,i){var o,s,e=String(u(t)),f=r(i),h=e.length;return f<0||f>=h?n?"":void 0:(o=e.charCodeAt(f))<55296||o>56319||f+1===h||(s=e.charCodeAt(f+1))<56320||s>57343?n?e.charAt(f):o:n?e.slice(f,f+2):s-56320+(o-55296<<10)+65536}}},function(n,t,i){var r=i(4),u=i(20),f=i(5)("match");n.exports=function(n){var t;return r(n)&&(void 0!==(t=n[f])?!!t:"RegExp"==u(n))}},function(n,t,i){var r=i(5)("iterator"),f=!1,u;try{u=[7][r]();u.return=function(){f=!0};Array.from(u,function(){throw 2;})}catch(n){}n.exports=function(n,t){var u,i,e;if(!t&&!f)return!1;u=!1;try{i=[7];e=i[r]();e.next=function(){return{done:u=!0}};i[r]=function(){return e};n(i)}catch(n){}return u}},function(n,t,i){"use strict";var r=i(44),u=RegExp.prototype.exec;n.exports=function(n,t){var f=n.exec,i;if("function"==typeof f){if(i=f.call(n,t),"object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(n))throw new TypeError("RegExp#exec called on incompatible receiver");return u.call(n,t)}},function(n,t,i){"use strict";i(113);var f=i(12),e=i(11),r=i(3),o=i(24),u=i(5),s=i(88),h=u("species"),c=!r(function(){var n=/./;return n.exec=function(){var n=[];return n.groups={a:"7"},n},"7"!=="".replace(n,"$<a>")}),l=function(){var t=/(?:)/,i=t.exec,n;return t.exec=function(){return i.apply(this,arguments)},n="ab".split(t),2===n.length&&"a"===n[0]&&"b"===n[1]}();n.exports=function(n,t,i){var a=u(n),v=!r(function(){var t={};return t[a]=function(){return 7},7!=""[n](t)}),w=v?!r(function(){var i=!1,t=/a/;return t.exec=function(){return i=!0,null},"split"===n&&(t.constructor={},t.constructor[h]=function(){return t}),t[a](""),!i}):void 0;if(!v||!w||"replace"===n&&!c||"split"===n&&!l){var b=/./[a],y=i(o,a,""[n],function(n,t,i,r,u){return t.exec===s?v&&!u?{done:!0,value:b.call(t,i,r)}:{done:!0,value:n.call(i,t,r)}:{done:!1}}),k=y[0],p=y[1];f(String.prototype,n,k);e(RegExp.prototype,a,2==t?function(n,t){return p.call(n,this,t)}:function(n){return p.call(n,this)})}}},function(n,t,i){var r=i(2).navigator;n.exports=r&&r.userAgent||""},function(n,t,i){"use strict";var e=i(2),r=i(0),o=i(12),s=i(41),h=i(30),c=i(40),l=i(39),f=i(4),u=i(3),a=i(57),v=i(43),y=i(74);n.exports=function(n,t,i,p,w,b){var tt=e[n],k=tt,g=w?"set":"add",d=k&&k.prototype,rt={},nt=function(n){var t=d[n];o(d,n,"delete"==n||"has"==n?function(n){return!(b&&!f(n))&&t.call(this,0===n?0:n)}:"get"==n?function(n){if(!b||f(n))return t.call(this,0===n?0:n)}:"add"==n?function(n){return t.call(this,0===n?0:n),this}:function(n,i){return t.call(this,0===n?0:n,i),this})};if("function"==typeof k&&(b||d.forEach&&!u(function(){(new k).entries().next()}))){var it=new k,ft=it[g](b?{}:-0,1)!=it,et=u(function(){it.has(1)}),ot=a(function(n){new k(n)}),ut=!b&&u(function(){for(var t=new k,n=5;n--;)t[g](n,n);return!t.has(-0)});ot||((k=t(function(t,i){l(t,k,n);var r=y(new tt,t,k);return null!=i&&c(i,w,r[g],r),r})).prototype=d,d.constructor=k);(et||ut)&&(nt("delete"),nt("has"),w&&nt("get"));(ut||ft)&&nt(g);b&&d.clear&&delete d.clear}else k=p.getConstructor(t,n,w,g),s(k.prototype,i),h.NEED=!0;return v(k,n),rt[n]=k,r(r.G+r.W+r.F*(k!=tt),rt),b||p.setStrong(k,n,w),k}},function(n,t,i){for(var r,u=i(2),f=i(11),e=i(33),o=e("typed_array"),s=e("view"),h=!(!u.ArrayBuffer||!u.DataView),c=h,l=0,a="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=u[a[l++]])?(f(r.prototype,o,!0),f(r.prototype,s,!0)):c=!1;n.exports={ABV:h,CONSTR:c,TYPED:o,VIEW:s}},function(n,t,i){"use strict";n.exports=i(29)||!i(3)(function(){var n=Math.random();__defineSetter__.call(null,n,function(){});delete i(2)[n]})},function(n,t,i){"use strict";var r=i(0);n.exports=function(n){r(r.S,n,{of:function(){for(var n=arguments.length,t=new Array(n);n--;)t[n]=arguments[n];return new this(t)}})}},function(n,t,i){"use strict";var r=i(0),u=i(10),e=i(19),f=i(40);n.exports=function(n){r(r.S,n,{from:function(n){var r,t,o,s,i=arguments[1];return u(this),(r=void 0!==i)&&u(i),null==n?new this:(t=[],r?(o=0,s=e(i,arguments[2],2),f(n,!1,function(n){t.push(s(n,o++))})):f(n,!1,t.push,t),new this(t))}})}},function(n){var t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n,t,i){var u=i(4),r=i(2).document,f=u(r)&&u(r.createElement);n.exports=function(n){return f?r.createElement(n):{}}},function(n,t,i){var u=i(2),r=i(18),f=i(29),e=i(95),o=i(8).f;n.exports=function(n){var t=r.Symbol||(r.Symbol=f?{}:u.Symbol||{});"_"==n.charAt(0)||n in t||o(t,n,{value:e.f(n)})}},function(n,t,i){var r=i(47)("keys"),u=i(33);n.exports=function(n){return r[n]||(r[n]=u(n))}},function(n){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,t,i){var r=i(2).document;n.exports=r&&r.documentElement},function(n,t,i){var u=i(4),f=i(1),r=function(n,t){if(f(n),!u(t)&&null!==t)throw TypeError(t+": can't set as prototype!");};n.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(n,t,u){try{(u=i(19)(Function.call,i(16).f(Object.prototype,"__proto__").set,2))(n,[]);t=!(n instanceof Array)}catch(n){t=!0}return function(n,i){return r(n,i),t?n.__proto__=i:u(n,i),n}}({},!1):void 0),check:r}},function(n){n.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(n,t,i){var u=i(4),r=i(72).set;n.exports=function(n,t,i){var f,e=t.constructor;return e!==i&&"function"==typeof e&&(f=e.prototype)!==i.prototype&&u(f)&&r&&r(n,f),n}},function(n,t,i){"use strict";var r=i(21),u=i(24);n.exports=function(n){var i=String(u(this)),f="",t=r(n);if(t<0||t==1/0)throw RangeError("Count can't be negative");for(;t>0;(t>>>=1)&&(i+=i))1&t&&(f+=i);return f}},function(n){n.exports=Math.sign||function(n){return 0==(n=+n)||n!=n?n:n<0?-1:1}},function(n){var t=Math.expm1;n.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(n){return 0==(n=+n)?n:n>-1e-6&&n<1e-6?n+n*n/2:Math.exp(n)-1}:t},function(n,t,i){"use strict";var e=i(29),u=i(0),c=i(12),o=i(11),s=i(46),l=i(79),a=i(43),v=i(17),r=i(5)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};n.exports=function(n,t,i,y,p,w,b){l(i,t,y);var g,it,nt,rt=function(n){if(!f&&n in k)return k[n];switch(n){case"keys":case"values":return function(){return new i(this,n)}}return function(){return new i(this,n)}},et=t+" Iterator",ut="values"==p,ft=!1,k=n.prototype,tt=k[r]||k["@@iterator"]||p&&k[p],d=tt||rt(p),st=p?ut?rt("entries"):d:void 0,ot="Array"==t&&k.entries||tt;if(ot&&(nt=v(ot.call(new n)))!==Object.prototype&&nt.next&&(a(nt,et,!0),e||"function"==typeof nt[r]||o(nt,r,h)),ut&&tt&&"values"!==tt.name&&(ft=!0,d=function(){return tt.call(this)}),e&&!b||!f&&!ft&&k[r]||o(k,r,d),s[t]=d,s[et]=h,p)if(g={values:ut?d:rt("values"),keys:w?d:rt("keys"),entries:st},b)for(it in g)it in k||c(k,it,g[it]);else u(u.P+u.F*(f||ft),t,g);return g}},function(n,t,i){"use strict";var u=i(36),f=i(32),e=i(43),r={};i(11)(r,i(5)("iterator"),function(){return this});n.exports=function(n,t,i){n.prototype=u(r,{next:f(1,i)});e(n,t+" Iterator")}},function(n,t,i){var r=i(56),u=i(24);n.exports=function(n,t,i){if(r(t))throw TypeError("String#"+i+" doesn't accept regex!");return String(u(n))}},function(n,t,i){var r=i(5)("match");n.exports=function(n){var t=/./;try{"/./"[n](t)}catch(i){try{return t[r]=!1,!"/./"[n](t)}catch(n){}}return!0}},function(n,t,i){var r=i(46),u=i(5)("iterator"),f=Array.prototype;n.exports=function(n){return void 0!==n&&(r.Array===n||f[u]===n)}},function(n,t,i){"use strict";var r=i(8),u=i(32);n.exports=function(n,t,i){t in n?r.f(n,t,u(0,i)):n[t]=i}},function(n,t,i){var r=i(44),u=i(5)("iterator"),f=i(46);n.exports=i(18).getIteratorMethod=function(n){if(null!=n)return n[u]||n["@@iterator"]||f[r(n)]}},function(n,t,i){var r=i(224);n.exports=function(n,t){return new(r(n))(t)}},function(n,t,i){"use strict";var u=i(9),r=i(35),f=i(6);n.exports=function(n){for(var t=u(this),i=f(t.length),e=arguments.length,o=r(e>1?arguments[1]:void 0,i),s=e>2?arguments[2]:void 0,h=void 0===s?i:r(s,i);h>o;)t[o++]=n;return t}},function(n,t,i){"use strict";var r=i(31),u=i(112),f=i(46),e=i(15);n.exports=i(78)(Array,"Array",function(n,t){this._t=e(n);this._i=0;this._k=t},function(){var t=this._t,i=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,u(1)):u(0,"keys"==i?n:"values"==i?t[n]:[n,t[n]])},"values");f.Arguments=f.Array;r("keys");r("values");r("entries")},function(n,t,i){"use strict";var u,f,h=i(50),r=RegExp.prototype.exec,c=String.prototype.replace,s=r,e=(u=/a/,f=/b*/g,r.call(u,"a"),r.call(f,"a"),0!==u.lastIndex||0!==f.lastIndex),o=void 0!==/()??/.exec("")[1];(e||o)&&(s=function(n){var f,s,t,u,i=this;return o&&(s=new RegExp("^"+i.source+"$(?!\\s)",h.call(i))),e&&(f=i.lastIndex),t=r.call(i,n),e&&t&&(i.lastIndex=i.global?t.index+t[0].length:f),o&&t&&t.length>1&&c.call(t[0],s,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(t[u]=void 0)}),t});n.exports=s},function(n,t,i){"use strict";var r=i(55)(!0);n.exports=function(n,t,i){return t+(i?r(n,t).length:1)}},function(n,t,i){var u,v,s,o=i(19),d=i(102),y=i(71),p=i(67),r=i(2),w=r.process,h=r.setImmediate,c=r.clearImmediate,b=r.MessageChannel,l=r.Dispatch,a=0,f={},e=function(){var n=+this,t;f.hasOwnProperty(n)&&(t=f[n],delete f[n],t())},k=function(n){e.call(n.data)};h&&c||(h=function(n){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return f[++a]=function(){d("function"==typeof n?n:Function(n),t)},u(a),a},c=function(n){delete f[n]},"process"==i(20)(w)?u=function(n){w.nextTick(o(e,n,1))}:l&&l.now?u=function(n){l.now(o(e,n,1))}:b?(s=(v=new b).port2,v.port1.onmessage=k,u=o(s.postMessage,s,1)):r.addEventListener&&"function"==typeof postMessage&&!r.importScripts?(u=function(n){r.postMessage(n+"","*")},r.addEventListener("message",k,!1)):u="onreadystatechange"in p("script")?function(n){y.appendChild(p("script")).onreadystatechange=function(){y.removeChild(this);e.call(n)}}:function(n){setTimeout(o(e,n,1),0)});n.exports={set:h,clear:c}},function(n,t,i){var r=i(2),s=i(90).set,e=r.MutationObserver||r.WebKitMutationObserver,u=r.process,f=r.Promise,o="process"==i(20)(u);n.exports=function(){var n,i,t,h=function(){var r,f;for(o&&(r=u.domain)&&r.exit();n;){f=n.fn;n=n.next;try{f()}catch(r){throw n?t():i=void 0,r;}}i=void 0;r&&r.enter()},a,c,l;return o?t=function(){u.nextTick(h)}:!e||r.navigator&&r.navigator.standalone?f&&f.resolve?(a=f.resolve(void 0),t=function(){a.then(h)}):t=function(){s.call(r,h)}:(c=!0,l=document.createTextNode(""),new e(h).observe(l,{characterData:!0}),t=function(){l.data=c=!c}),function(r){var u={fn:r,next:void 0};i&&(i.next=u);n||(n=u,t());i=u}}},function(n,t,i){"use strict";function u(n){var t,i;this.promise=new n(function(n,r){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=n;i=r});this.resolve=r(t);this.reject=r(i)}var r=i(10);n.exports.f=function(n){return new u(n)}},function(n,t,i){"use strict";function ot(n,t,i){var r,u,e,s=new Array(i),h=8*i-t-1,c=(1<<h)-1,o=c>>1,a=23===t?f(2,-24)-f(2,-77):0,l=0,v=n<0||0===n&&1/n<0?1:0;for((n=ni(n))!=n||n===d?(u=n!=n?1:0,r=c):(r=ti(ii(n)/ri),n*(e=f(2,-r))<1&&(r--,e*=2),(n+=r+o>=1?a/e:a*f(2,1-o))*e>=2&&(r++,e/=2),r+o>=c?(u=0,r=c):r+o>=1?(u=(n*e-1)*f(2,t),r+=o):(u=n*f(2,o-1)*f(2,t),r=0));t>=8;s[l++]=255&u,u/=256,t-=8);for(r=r<<t|u,h+=t;h>0;s[l++]=255&r,r/=256,h-=8);return s[--l]|=128*v,s}function st(n,t,i){var e,h=8*i-t-1,c=(1<<h)-1,l=c>>1,u=h-7,o=i-1,s=n[o--],r=127&s;for(s>>=7;u>0;r=256*r+n[o],o--,u-=8);for(e=r&(1<<-u)-1,r>>=-u,u+=t;u>0;e=256*e+n[o],o--,u-=8);if(0===r)r=1-l;else{if(r===c)return e?NaN:s?-d:d;e+=f(2,t);r-=l}return(s?-1:1)*e*f(2,r-t)}function ht(n){return n[3]<<24|n[2]<<16|n[1]<<8|n[0]}function ct(n){return[255&n]}function lt(n){return[255&n,n>>8&255]}function at(n){return[255&n,n>>8&255,n>>16&255,n>>24&255]}function ui(n){return ot(n,52,8)}function fi(n){return ot(n,23,4)}function b(n,t,i){dt(n.prototype,t,{get:function(){return this[i]}})}function e(n,t,i,r){var u=y(+i);if(u+t>n[c])throw p("Wrong index!");var o=n[g]._b,f=u+n[nt],e=o.slice(f,f+t);return r?e:e.reverse()}function o(n,t,i,r,u,f){var o=y(+i);if(o+t>n[c])throw p("Wrong index!");for(var s=n[g]._b,h=o+n[nt],l=r(+u),e=0;e<t;e++)s[h+e]=l[f?e:t-e-1]}var s=i(2),a=i(7),pt=i(29),rt=i(62),ut=i(11),ft=i(41),k=i(3),v=i(39),wt=i(21),bt=i(6),y=i(122),kt=i(37).f,dt=i(8).f,gt=i(86),et=i(43),r=s.ArrayBuffer,u=s.DataView,h=s.Math,p=s.RangeError,d=s.Infinity,w=r,ni=h.abs,f=h.pow,ti=h.floor,ii=h.log,ri=h.LN2,g=a?"_b":"buffer",c=a?"_l":"byteLength",nt=a?"_o":"byteOffset",l,it;if(rt.ABV){if(!k(function(){r(1)})||!k(function(){new r(-1)})||k(function(){return new r,new r(1.5),new r(NaN),"ArrayBuffer"!=r.name})){for(var tt,ei=(r=function(n){return v(this,r),new w(y(n))}).prototype=w.prototype,vt=kt(w),yt=0;vt.length>yt;)(tt=vt[yt++])in r||ut(r,tt,w[tt]);pt||(ei.constructor=r)}l=new u(new r(2));it=u.prototype.setInt8;l.setInt8(0,2147483648);l.setInt8(1,2147483649);!l.getInt8(0)&&l.getInt8(1)||ft(u.prototype,{setInt8:function(n,t){it.call(this,n,t<<24>>24)},setUint8:function(n,t){it.call(this,n,t<<24>>24)}},!0)}else r=function(n){v(this,r,"ArrayBuffer");var t=y(n);this._b=gt.call(new Array(t),0);this[c]=t},u=function(n,t,i){v(this,u,"DataView");v(n,r,"DataView");var e=n[c],f=wt(t);if(f<0||f>e)throw p("Wrong offset!");if(f+(i=void 0===i?e-f:bt(i))>e)throw p("Wrong length!");this[g]=n;this[nt]=f;this[c]=i},a&&(b(r,"byteLength","_l"),b(u,"buffer","_b"),b(u,"byteLength","_l"),b(u,"byteOffset","_o")),ft(u.prototype,{getInt8:function(n){return e(this,1,n)[0]<<24>>24},getUint8:function(n){return e(this,1,n)[0]},getInt16:function(n){var t=e(this,2,n,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(n){var t=e(this,2,n,arguments[1]);return t[1]<<8|t[0]},getInt32:function(n){return ht(e(this,4,n,arguments[1]))},getUint32:function(n){return ht(e(this,4,n,arguments[1]))>>>0},getFloat32:function(n){return st(e(this,4,n,arguments[1]),23,4)},getFloat64:function(n){return st(e(this,8,n,arguments[1]),52,8)},setInt8:function(n,t){o(this,1,n,ct,t)},setUint8:function(n,t){o(this,1,n,ct,t)},setInt16:function(n,t){o(this,2,n,lt,t,arguments[2])},setUint16:function(n,t){o(this,2,n,lt,t,arguments[2])},setInt32:function(n,t){o(this,4,n,at,t,arguments[2])},setUint32:function(n,t){o(this,4,n,at,t,arguments[2])},setFloat32:function(n,t){o(this,4,n,fi,t,arguments[2])},setFloat64:function(n,t){o(this,8,n,ui,t,arguments[2])}});et(r,"ArrayBuffer");et(u,"DataView");ut(u.prototype,rt.VIEW,!0);t.ArrayBuffer=r;t.DataView=u},function(n,t,i){n.exports=!i(7)&&!i(3)(function(){return 7!=Object.defineProperty(i(67)("div"),"a",{get:function(){return 7}}).a})},function(n,t,i){t.f=i(5)},function(n,t,i){var r=i(14),u=i(15),f=i(52)(!1),e=i(69)("IE_PROTO");n.exports=function(n,t){var i,s=u(n),h=0,o=[];for(i in s)i!=e&&r(s,i)&&o.push(i);for(;t.length>h;)r(s,i=t[h++])&&(~f(o,i)||o.push(i));return o}},function(n,t,i){var r=i(8),u=i(1),f=i(34);n.exports=i(7)?Object.defineProperties:function(n,t){u(n);for(var i,e=f(t),s=e.length,o=0;s>o;)r.f(n,i=e[o++],t[i]);return n}},function(n,t,i){var f=i(15),r=i(37).f,e={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(n){return u&&"[object Window]"==e.call(n)?function(n){try{return r(n)}catch(n){return u.slice()}}(n):r(f(n))}},function(n,t,i){"use strict";var f=i(7),u=i(34),e=i(53),o=i(49),s=i(9),h=i(48),r=Object.assign;n.exports=!r||i(3)(function(){var n={},t={},i=Symbol(),u="abcdefghijklmnopqrst";return n[i]=7,u.split("").forEach(function(n){t[n]=n}),7!=r({},n)[i]||Object.keys(r({},t)).join("")!=u})?function(n){for(var r=s(n),y=arguments.length,c=1,l=e.f,p=o.f;y>c;)for(var i,t=h(arguments[c++]),a=l?u(t).concat(l(t)):u(t),w=a.length,v=0;w>v;)i=a[v++],f&&!p.call(t,i)||(r[i]=t[i]);return r}:r},function(n){n.exports=Object.is||function(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}},function(n,t,i){"use strict";var f=i(10),e=i(4),o=i(102),u=[].slice,r={},s=function(n,t,i){if(!(t in r)){for(var f=[],u=0;u<t;u++)f[u]="a["+u+"]";r[t]=Function("F,a","return new F("+f.join(",")+")")}return r[t](n,i)};n.exports=Function.bind||function(n){var t=f(this),r=u.call(arguments,1),i=function(){var f=r.concat(u.call(arguments));return this instanceof i?s(t,f.length,f):o(t,f,n)};return e(t.prototype)&&(i.prototype=t.prototype),i}},function(n){n.exports=function(n,t,i){var r=void 0===i;switch(t.length){case 0:return r?n():n.call(i);case 1:return r?n(t[0]):n.call(i,t[0]);case 2:return r?n(t[0],t[1]):n.call(i,t[0],t[1]);case 3:return r?n(t[0],t[1],t[2]):n.call(i,t[0],t[1],t[2]);case 4:return r?n(t[0],t[1],t[2],t[3]):n.call(i,t[0],t[1],t[2],t[3])}return n.apply(i,t)}},function(n,t,i){var r=i(2).parseInt,f=i(45).trim,u=i(73),e=/^[-+]?0[xX]/;n.exports=8!==r(u+"08")||22!==r(u+"0x16")?function(n,t){var i=f(String(n),3);return r(i,t>>>0||(e.test(i)?16:10))}:r},function(n,t,i){var r=i(2).parseFloat,u=i(45).trim;n.exports=1/r(i(73)+"-0")!=-1/0?function(n){var t=u(String(n),3),i=r(t);return 0===i&&"-"==t.charAt(0)?-0:i}:r},function(n,t,i){var r=i(20);n.exports=function(n,t){if("number"!=typeof n&&"Number"!=r(n))throw TypeError(t);return+n}},function(n,t,i){var r=i(4),u=Math.floor;n.exports=function(n){return!r(n)&&isFinite(n)&&u(n)===n}},function(n){n.exports=Math.log1p||function(n){return(n=+n)>-1e-8&&n<1e-8?n-n*n/2:Math.log(1+n)}},function(n,t,i){var o=i(76),r=Math.pow,f=r(2,-52),u=r(2,-23),s=r(2,127)*(2-u),e=r(2,-126);n.exports=Math.fround||function(n){var h,t,i=Math.abs(n),r=o(n);return i<e?r*(i/e/u+1/f-1/f)*e*u:(t=(h=(1+u/f)*i)-(h-i))>s||t!=t?r*(1/0):r*t}},function(n,t,i){var r=i(1);n.exports=function(n,t,i,u){try{return u?t(r(i)[0],i[1]):t(i)}catch(t){var f=n.return;throw void 0!==f&&r(f.call(n)),t;}}},function(n,t,i){var r=i(10),u=i(9),f=i(48),e=i(6);n.exports=function(n,t,i,o,s){r(t);var l=u(n),c=f(l),a=e(l.length),h=s?a-1:0,v=s?-1:1;if(i<2)for(;;){if(h in c){o=c[h];h+=v;break}if(h+=v,s?h<0:a<=h)throw TypeError("Reduce of empty array with no initial value");}for(;s?h>=0:a>h;h+=v)h in c&&(o=t(o,c[h],h,l));return o}},function(n,t,i){"use strict";var u=i(9),r=i(35),f=i(6);n.exports=[].copyWithin||function(n,t){var o=u(this),s=f(o.length),i=r(n,s),e=r(t,s),l=arguments.length>2?arguments[2]:void 0,h=Math.min((void 0===l?s:r(l,s))-e,s-i),c=1;for(e<i&&i<e+h&&(c=-1,e+=h-1,i+=h-1);h-->0;)e in o?o[i]=o[e]:delete o[i],i+=c,e+=c;return o}},function(n){n.exports=function(n,t){return{value:t,done:!!n}}},function(n,t,i){"use strict";var r=i(88);i(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(n,t,i){i(7)&&"g"!=/./g.flags&&i(8).f(RegExp.prototype,"flags",{configurable:!0,get:i(50)})},function(n){n.exports=function(n){try{return{e:!1,v:n()}}catch(n){return{e:!0,v:n}}}},function(n,t,i){var r=i(1),u=i(4),f=i(92);n.exports=function(n,t){if(r(n),u(t)&&t.constructor===n)return t;var i=f.f(n);return i.resolve(t),i.promise}},function(n,t,i){"use strict";var r=i(118),u=i(42);n.exports=i(61)("Map",function(n){return function(){return n(this,arguments.length>0?arguments[0]:void 0)}},{get:function(n){var t=r.getEntry(u(this,"Map"),n);return t&&t.v},set:function(n,t){return r.def(u(this,"Map"),0===n?0:n,t)}},r,!0)},function(n,t,i){"use strict";var h=i(8).f,c=i(36),l=i(41),a=i(19),v=i(39),y=i(40),p=i(78),e=i(112),w=i(38),o=i(7),s=i(30).fastKey,r=i(42),u=o?"_s":"size",f=function(n,t){var i,r=s(t);if("F"!==r)return n._i[r];for(i=n._f;i;i=i.n)if(i.k==t)return i};n.exports={getConstructor:function(n,t,i,e){var s=n(function(n,r){v(n,s,t,"_i");n._t=t;n._i=c(null);n._f=void 0;n._l=void 0;n[u]=0;null!=r&&y(r,i,n[e],n)});return l(s.prototype,{clear:function(){for(var i=r(this,t),f=i._i,n=i._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete f[n.i];i._f=i._l=void 0;i[u]=0},"delete":function(n){var e=r(this,t),i=f(e,n),o,s;return i&&(o=i.n,s=i.p,delete e._i[i.i],i.r=!0,s&&(s.n=o),o&&(o.p=s),e._f==i&&(e._f=o),e._l==i&&(e._l=s),e[u]--),!!i},forEach:function(n){r(this,t);for(var i,u=a(n,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(u(i.v,i.k,this);i&&i.r;)i=i.p},has:function(n){return!!f(r(this,t),n)}}),o&&h(s.prototype,"size",{get:function(){return r(this,t)[u]}}),s},def:function(n,t,i){var e,o,r=f(n,t);return r?r.v=i:(n._l=r={i:o=s(t,!0),k:t,v:i,p:e=n._l,n:void 0,r:!1},n._f||(n._f=r),e&&(e.n=r),n[u]++,"F"!==o&&(n._i[o]=r)),n},getEntry:f,setStrong:function(n,t,i){p(n,t,function(n,i){this._t=r(n,t);this._k=i;this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?e(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,e(1))},i?"entries":"values",!i,!0);w(t)}}},function(n,t,i){"use strict";var r=i(118),u=i(42);n.exports=i(61)("Set",function(n){return function(){return n(this,arguments.length>0?arguments[0]:void 0)}},{add:function(n){return r.def(u(this,"Set"),n=0===n?0:n,n)}},r)},function(n,t,i){"use strict";var u,f=i(2),l=i(26)(0),a=i(12),e=i(30),v=i(99),r=i(121),o=i(4),s=i(42),y=i(42),p=!f.ActiveXObject&&"ActiveXObject"in f,w=e.getWeak,b=Object.isExtensible,k=r.ufstore,h=function(n){return function(){return n(this,arguments.length>0?arguments[0]:void 0)}},c={get:function(n){if(o(n)){var t=w(n);return!0===t?k(s(this,"WeakMap")).get(n):t?t[this._i]:void 0}},set:function(n,t){return r.def(s(this,"WeakMap"),n,t)}},d=n.exports=i(61)("WeakMap",h,c,r,!0,!0);y&&p&&(v((u=r.getConstructor(h,"WeakMap")).prototype,c),e.NEED=!0,l(["delete","has","get","set"],function(n){var t=d.prototype,i=t[n];a(t,n,function(t,r){if(o(t)&&!b(t)){this._f||(this._f=new u);var f=this._f[n](t,r);return"set"==n?this:f}return i.call(this,t,r)})}))},function(n,t,i){"use strict";var l=i(41),u=i(30).getWeak,a=i(1),e=i(4),v=i(39),y=i(40),o=i(26),s=i(14),h=i(42),p=o(5),w=o(6),b=0,r=function(n){return n._l||(n._l=new c)},c=function(){this.a=[]},f=function(n,t){return p(n.a,function(n){return n[0]===t})};c.prototype={get:function(n){var t=f(this,n);if(t)return t[1]},has:function(n){return!!f(this,n)},set:function(n,t){var i=f(this,n);i?i[1]=t:this.a.push([n,t])},"delete":function(n){var t=w(this.a,function(t){return t[0]===n});return~t&&this.a.splice(t,1),!!~t}};n.exports={getConstructor:function(n,t,i,f){var o=n(function(n,r){v(n,o,t,"_i");n._t=t;n._i=b++;n._l=void 0;null!=r&&y(r,i,n[f],n)});return l(o.prototype,{"delete":function(n){if(!e(n))return!1;var i=u(n);return!0===i?r(h(this,t)).delete(n):i&&s(i,this._i)&&delete i[this._i]},has:function(n){if(!e(n))return!1;var i=u(n);return!0===i?r(h(this,t)).has(n):i&&s(i,this._i)}}),o},def:function(n,t,i){var f=u(a(t),!0);return!0===f?r(n).set(t,i):f[n._i]=i,n},ufstore:r}},function(n,t,i){var r=i(21),u=i(6);n.exports=function(n){if(void 0===n)return 0;var t=r(n),i=u(t);if(t!==i)throw RangeError("Wrong length!");return i}},function(n,t,i){var u=i(37),f=i(53),e=i(1),r=i(2).Reflect;n.exports=r&&r.ownKeys||function(n){var t=u.f(e(n)),i=f.f;return i?t.concat(i(n)):t}},function(n,t,i){"use strict";var r=i(54),u=i(4),f=i(6),e=i(19),o=i(5)("isConcatSpreadable");n.exports=function n(t,i,s,h,c,l,a,v){for(var y,b,p=c,w=0,k=!!a&&e(a,v,3);w<h;){if(w in s){if(y=k?k(s[w],w,i):s[w],b=!1,u(y)&&(b=void 0!==(b=y[o])?!!b:r(y)),b&&l>0)p=n(t,i,y,f(y.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError();t[p]=y}p++}w++}return p}},function(n,t,i){var r=i(6),u=i(75),f=i(24);n.exports=function(n,t,i,e){var s=String(f(n)),l=s.length,c=void 0===i?" ":String(i),a=r(t),h,o;return a<=l||""==c?s:(h=a-l,o=u.call(c,Math.ceil(h/c.length)),o.length>h&&(o=o.slice(0,h)),e?o+s:s+o)}},function(n,t,i){var r=i(7),u=i(34),f=i(15),e=i(49).f;n.exports=function(n){return function(t){for(var i,o=f(t),s=u(o),l=s.length,h=0,c=[];l>h;)i=s[h++],r&&!e.call(o,i)||c.push(n?[i,o[i]]:o[i]);return c}}},function(n,t,i){var r=i(44),u=i(128);n.exports=function(n){return function(){if(r(this)!=n)throw TypeError(n+"#toJSON isn't generic");return u(this)}}},function(n,t,i){var r=i(40);n.exports=function(n,t){var i=[];return r(n,!1,i.push,i,t),i}},function(n){n.exports=Math.scale||function(n,t,i,r,u){return 0===arguments.length||n!=n||t!=t||i!=i||r!=r||u!=u?NaN:n===1/0||n===-1/0?n:(n-t)*(u-r)/(i-t)+r}},function(n,t,i){"use strict";(function(n){function u(n){return parseFloat(n)||0}function c(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return i.reduce(function(t,i){return t+u(n["border-"+i+"-width"])},0)}function k(n){var s=n.clientWidth,l=n.clientHeight,y,p;if(!s&&!l)return h;var t=i(n).getComputedStyle(n),r=function(n){for(var i,e,r={},t=0,f=["top","right","bottom","left"];t<f.length;t++)i=f[t],e=n["padding-"+i],r[i]=u(e);return r}(t),a=r.left+r.right,v=r.top+r.bottom,e=u(t.width),o=u(t.height);return("border-box"===t.boxSizing&&(Math.round(e+a)!==s&&(e-=c(t,"left","right")+a),Math.round(o+v)!==l&&(o-=c(t,"top","bottom")+v)),function(n){return n===i(n).document.documentElement}(n))||(y=Math.round(e+a)-s,p=Math.round(o+v)-l,1!==Math.abs(y)&&(e-=y),1!==Math.abs(p)&&(o-=p)),f(r.left,r.top,e,o)}function g(n){return e?d(n)?function(n){var t=n.getBBox();return f(0,0,t.width,t.height)}(n):k(n):h}function f(n,t,i,r){return{x:n,y:t,width:i,height:r}}var o=function(){function n(n,t){var i=-1;return n.some(function(n,r){return n[0]===t&&(i=r,!0)}),i}return"undefined"!=typeof Map?Map:function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=n(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(t,i){var r=n(this.__entries__,t);~r?this.__entries__[r][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,r=n(i,t);~r&&i.splice(r,1)},t.prototype.has=function(t){return!!~n(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,t){var i,r,u;for(void 0===t&&(t=null),i=0,r=this.__entries__;i<r.length;i++)u=r[i],n.call(t,u[1],u[0])},t}()}(),e="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==n&&n.Math===Math?n:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),y="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)},p=["top","right","bottom","left","width","height","size","weight"],w="undefined"!=typeof MutationObserver,b=function(){function n(){this.connected_=!1;this.mutationEventsAdded_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=function(n,t){function e(){i&&(i=!1,n());r&&f()}function o(){y(e)}function f(){var n=Date.now();if(i){if(n-u<2)return;r=!0}else i=!0,r=!1,setTimeout(o,t);u=n}var i=!1,r=!1,u=0;return f}(this.refresh.bind(this),20)}return n.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n);this.connected_||this.connect_()},n.prototype.removeObserver=function(n){var t=this.observers_,i=t.indexOf(n);~i&&t.splice(i,1);!t.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},n.prototype.updateObservers_=function(){var n=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return n.forEach(function(n){return n.broadcastActive()}),n.length>0},n.prototype.connect_=function(){e&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),w?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){e&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(n){var t=n.propertyName,i=void 0===t?"":t;p.some(function(n){return!!~i.indexOf(n)})&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),s=function(n,t){for(var u,i=0,r=Object.keys(t);i<r.length;i++)u=r[i],Object.defineProperty(n,u,{value:t[u],enumerable:!1,writable:!1,configurable:!0});return n},i=function(n){return n&&n.ownerDocument&&n.ownerDocument.defaultView||r},h=f(0,0,0,0),d="undefined"!=typeof SVGGraphicsElement?function(n){return n instanceof i(n).SVGGraphicsElement}:function(n){return n instanceof i(n).SVGElement&&"function"==typeof n.getBBox},nt=function(){function n(n){this.broadcastWidth=0;this.broadcastHeight=0;this.contentRect_=f(0,0,0,0);this.target=n}return n.prototype.isActive=function(){var n=g(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},n}(),tt=function(n,t){var i,r,u,f,e,h,o,c=(r=(i=t).x,u=i.y,f=i.width,e=i.height,h="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(h.prototype),s(o,{x:r,y:u,width:f,height:e,top:u,right:r+f,bottom:e+u,left:r}),o);s(this,{target:n,contentRect:c})},it=function(){function n(n,t,i){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof n)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n;this.controller_=t;this.callbackCtx_=i}return n.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(n instanceof i(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)||(t.set(n,new nt(n)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(n instanceof i(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)&&(t.delete(n),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive();this.observations_.clear();this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var n=this;this.clearActive();this.observations_.forEach(function(t){t.isActive()&&n.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new tt(n.target,n.broadcastRect())});this.callback_.call(n,t,n);this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),l="undefined"!=typeof WeakMap?new WeakMap:new o,a=function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=b.getInstance(),r=new it(t,i,this);l.set(this,r)},v;["observe","unobserve","disconnect"].forEach(function(n){a.prototype[n]=function(){var t;return(t=l.get(this))[n].apply(t,arguments)}});v=void 0!==r.ResizeObserver?r.ResizeObserver:a;t.a=v}).call(this,i(66))},function(n,t,i){i(132);n.exports=i(334)},function(n,t,i){"use strict";(function(n){function t(n,t,i){n[t]||Object.defineProperty(n,t,{writable:!0,configurable:!0,value:i})}if(i(133),i(330),i(331),n._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");n._babelPolyfill=!0;t(String.prototype,"padLeft","".padStart);t(String.prototype,"padRight","".padEnd);"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(n){[][n]&&t(Array,n,Function.call.bind([][n]))})}).call(this,i(66))},function(n,t,i){i(134);i(137);i(138);i(139);i(140);i(141);i(142);i(143);i(144);i(145);i(146);i(147);i(148);i(149);i(150);i(151);i(152);i(153);i(154);i(155);i(156);i(157);i(158);i(159);i(160);i(161);i(162);i(163);i(164);i(165);i(166);i(167);i(168);i(169);i(170);i(171);i(172);i(173);i(174);i(175);i(176);i(177);i(178);i(179);i(180);i(181);i(182);i(183);i(184);i(185);i(186);i(187);i(188);i(189);i(190);i(191);i(192);i(193);i(194);i(195);i(196);i(197);i(198);i(199);i(200);i(201);i(202);i(203);i(204);i(205);i(206);i(207);i(208);i(209);i(210);i(211);i(212);i(214);i(215);i(217);i(218);i(219);i(220);i(221);i(222);i(223);i(225);i(226);i(227);i(228);i(229);i(230);i(231);i(232);i(233);i(234);i(235);i(236);i(237);i(87);i(238);i(113);i(239);i(114);i(240);i(241);i(242);i(243);i(244);i(117);i(119);i(120);i(245);i(246);i(247);i(248);i(249);i(250);i(251);i(252);i(253);i(254);i(255);i(256);i(257);i(258);i(259);i(260);i(261);i(262);i(263);i(264);i(265);i(266);i(267);i(268);i(269);i(270);i(271);i(272);i(273);i(274);i(275);i(276);i(277);i(278);i(279);i(280);i(281);i(282);i(283);i(284);i(285);i(286);i(287);i(288);i(289);i(290);i(291);i(292);i(293);i(294);i(295);i(296);i(297);i(298);i(299);i(300);i(301);i(302);i(303);i(304);i(305);i(306);i(307);i(308);i(309);i(310);i(311);i(312);i(313);i(314);i(315);i(316);i(317);i(318);i(319);i(320);i(321);i(322);i(323);i(324);i(325);i(326);i(327);i(328);i(329);n.exports=i(18)},function(n,t,i){"use strict";var p=i(2),r=i(14),nt=i(7),u=i(0),pt=i(12),si=i(30).KEY,tt=i(3),it=i(47),rt=i(43),hi=i(33),l=i(5),ci=i(95),li=i(68),ai=i(136),vi=i(54),ut=i(1),yi=i(4),pi=i(9),w=i(15),ft=i(23),et=i(32),a=i(36),wt=i(98),bt=i(16),b=i(53),kt=i(8),wi=i(34),dt=bt.f,h=kt.f,gt=wt.f,e=p.Symbol,k=p.JSON,d=k&&k.stringify,f=l("_hidden"),ni=l("toPrimitive"),bi={}.propertyIsEnumerable,v=it("symbol-registry"),s=it("symbols"),y=it("op-symbols"),o=Object.prototype,c="function"==typeof e&&!!b.f,ot=p.QObject,st=!ot||!ot.prototype||!ot.prototype.findChild,ht=nt&&tt(function(){return 7!=a(h({},"a",{get:function(){return h(this,"a",{value:7}).a}})).a})?function(n,t,i){var r=dt(o,t);r&&delete o[t];h(n,t,i);r&&n!==o&&h(o,t,r)}:h,ti=function(n){var t=s[n]=a(e.prototype);return t._k=n,t},ct=c&&"symbol"==typeof e.iterator?function(n){return"symbol"==typeof n}:function(n){return n instanceof e},g=function(n,t,i){return n===o&&g(y,t,i),ut(n),t=ft(t,!0),ut(i),r(s,t)?(i.enumerable?(r(n,f)&&n[f][t]&&(n[f][t]=!1),i=a(i,{enumerable:et(0,!1)})):(r(n,f)||h(n,f,et(1,{})),n[f][t]=!0),ht(n,t,i)):h(n,t,i)},ii=function(n,t){ut(n);for(var i,r=ai(t=w(t)),u=0,f=r.length;f>u;)g(n,i=r[u++],t[i]);return n},ri=function(n){var t=bi.call(this,n=ft(n,!0));return!(this===o&&r(s,n)&&!r(y,n))&&(!(t||!r(this,n)||!r(s,n)||r(this,f)&&this[f][n])||t)},ui=function(n,t){if(n=w(n),t=ft(t,!0),n!==o||!r(s,t)||r(y,t)){var i=dt(n,t);return!i||!r(s,t)||r(n,f)&&n[f][t]||(i.enumerable=!0),i}},fi=function(n){for(var t,i=gt(w(n)),u=[],e=0;i.length>e;)r(s,t=i[e++])||t==f||t==si||u.push(t);return u},ei=function(n){for(var t,i=n===o,u=gt(i?y:w(n)),f=[],e=0;u.length>e;)r(s,t=u[e++])&&(!i||r(o,t))&&f.push(s[t]);return f},lt,at,vt,yt,oi;for(c||(pt((e=function(){if(this instanceof e)throw TypeError("Symbol is not a constructor!");var n=hi(arguments.length>0?arguments[0]:void 0),t=function(i){this===o&&t.call(y,i);r(this,f)&&r(this[f],n)&&(this[f][n]=!1);ht(this,n,et(1,i))};return nt&&st&&ht(o,n,{configurable:!0,set:t}),ti(n)}).prototype,"toString",function(){return this._k}),bt.f=ui,kt.f=g,i(37).f=wt.f=fi,i(49).f=ri,b.f=ei,nt&&!i(29)&&pt(o,"propertyIsEnumerable",ri,!0),ci.f=function(n){return ti(l(n))}),u(u.G+u.W+u.F*!c,{Symbol:e}),lt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),at=0;lt.length>at;)l(lt[at++]);for(vt=wi(l.store),yt=0;vt.length>yt;)li(vt[yt++]);u(u.S+u.F*!c,"Symbol",{"for":function(n){return r(v,n+="")?v[n]:v[n]=e(n)},keyFor:function(n){if(!ct(n))throw TypeError(n+" is not a symbol!");for(var t in v)if(v[t]===n)return t},useSetter:function(){st=!0},useSimple:function(){st=!1}});u(u.S+u.F*!c,"Object",{create:function(n,t){return void 0===t?a(n):ii(a(n),t)},defineProperty:g,defineProperties:ii,getOwnPropertyDescriptor:ui,getOwnPropertyNames:fi,getOwnPropertySymbols:ei});oi=tt(function(){b.f(1)});u(u.S+u.F*oi,"Object",{getOwnPropertySymbols:function(n){return b.f(pi(n))}});k&&u(u.S+u.F*(!c||tt(function(){var n=e();return"[null]"!=d([n])||"{}"!=d({a:n})||"{}"!=d(Object(n))})),"JSON",{stringify:function(n){for(var t,r,i=[n],u=1;arguments.length>u;)i.push(arguments[u++]);if(r=t=i[1],(yi(t)||void 0!==n)&&!ct(n))return vi(t)||(t=function(n,t){if("function"==typeof r&&(t=r.call(this,n,t)),!ct(t))return t}),i[1]=t,d.apply(k,i)}});e.prototype[ni]||i(11)(e.prototype,ni,e.prototype.valueOf);rt(e,"Symbol");rt(Math,"Math",!0);rt(p.JSON,"JSON",!0)},function(n,t,i){n.exports=i(47)("native-function-to-string",Function.toString)},function(n,t,i){var r=i(34),u=i(53),f=i(49);n.exports=function(n){var t=r(n),i=u.f;if(i)for(var e,o=i(n),h=f.f,s=0;o.length>s;)h.call(n,e=o[s++])&&t.push(e);return t}},function(n,t,i){var r=i(0);r(r.S,"Object",{create:i(36)})},function(n,t,i){var r=i(0);r(r.S+r.F*!i(7),"Object",{defineProperty:i(8).f})},function(n,t,i){var r=i(0);r(r.S+r.F*!i(7),"Object",{defineProperties:i(97)})},function(n,t,i){var r=i(15),u=i(16).f;i(25)("getOwnPropertyDescriptor",function(){return function(n,t){return u(r(n),t)}})},function(n,t,i){var r=i(9),u=i(17);i(25)("getPrototypeOf",function(){return function(n){return u(r(n))}})},function(n,t,i){var r=i(9),u=i(34);i(25)("keys",function(){return function(n){return u(r(n))}})},function(n,t,i){i(25)("getOwnPropertyNames",function(){return i(98).f})},function(n,t,i){var r=i(4),u=i(30).onFreeze;i(25)("freeze",function(n){return function(t){return n&&r(t)?n(u(t)):t}})},function(n,t,i){var r=i(4),u=i(30).onFreeze;i(25)("seal",function(n){return function(t){return n&&r(t)?n(u(t)):t}})},function(n,t,i){var r=i(4),u=i(30).onFreeze;i(25)("preventExtensions",function(n){return function(t){return n&&r(t)?n(u(t)):t}})},function(n,t,i){var r=i(4);i(25)("isFrozen",function(n){return function(t){return!r(t)||!!n&&n(t)}})},function(n,t,i){var r=i(4);i(25)("isSealed",function(n){return function(t){return!r(t)||!!n&&n(t)}})},function(n,t,i){var r=i(4);i(25)("isExtensible",function(n){return function(t){return!!r(t)&&(!n||n(t))}})},function(n,t,i){var r=i(0);r(r.S+r.F,"Object",{assign:i(99)})},function(n,t,i){var r=i(0);r(r.S,"Object",{is:i(100)})},function(n,t,i){var r=i(0);r(r.S,"Object",{setPrototypeOf:i(72).set})},function(n,t,i){"use strict";var u=i(44),r={};r[i(5)("toStringTag")]="z";r+""!="[object z]"&&i(12)(Object.prototype,"toString",function(){return"[object "+u(this)+"]"},!0)},function(n,t,i){var r=i(0);r(r.P,"Function",{bind:i(101)})},function(n,t,i){var u=i(8).f,r=Function.prototype,f=/^\s*function ([^ (]*)/;"name"in r||i(7)&&u(r,"name",{configurable:!0,get:function(){try{return(""+this).match(f)[1]}catch(n){return""}}})},function(n,t,i){"use strict";var r=i(4),e=i(17),u=i(5)("hasInstance"),f=Function.prototype;u in f||i(8).f(f,u,{value:function(n){if("function"!=typeof this||!r(n))return!1;if(!r(this.prototype))return n instanceof this;for(;n=e(n);)if(this.prototype===n)return!0;return!1}})},function(n,t,i){var r=i(0),u=i(103);r(r.G+r.F*(parseInt!=u),{parseInt:u})},function(n,t,i){var r=i(0),u=i(104);r(r.G+r.F*(parseFloat!=u),{parseFloat:u})},function(n,t,i){"use strict";var h=i(2),c=i(14),l=i(20),v=i(74),y=i(23),p=i(3),w=i(37).f,b=i(16).f,k=i(8).f,d=i(45).trim,r=h.Number,u=r,f=r.prototype,g="Number"==l(i(36)(f)),nt="trim"in String.prototype,a=function(n){var t=y(n,!1),o,r,u,i;if("string"==typeof t&&t.length>2)if(i=(t=nt?t.trim():d(t,3)).charCodeAt(0),43===i||45===i){if(88===(o=t.charCodeAt(2))||120===o)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2;u=49;break;case 79:case 111:r=8;u=55;break;default:return+t}for(var s,f=t.slice(2),e=0,h=f.length;e<h;e++)if((s=f.charCodeAt(e))<48||s>u)return NaN;return parseInt(f,r)}return+t},e,s,o;if(!r(" 0o1")||!r("0b1")||r("+0x1")){for(r=function(n){var i=arguments.length<1?0:n,t=this;return t instanceof r&&(g?p(function(){f.valueOf.call(t)}):"Number"!=l(t))?v(new u(a(i)),t,r):a(i)},s=i(7)?w(u):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),o=0;s.length>o;o++)c(u,e=s[o])&&!c(r,e)&&k(r,e,b(u,e));r.prototype=f;f.constructor=r;i(12)(h,"Number",r)}},function(n,t,i){"use strict";var e=i(0),v=i(21),y=i(105),o=i(75),h=1..toFixed,c=Math.floor,r=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",u=function(n,t){for(var u=-1,i=t;++u<6;)i+=n*r[u],r[u]=i%1e7,i=c(i/1e7)},s=function(n){for(var i=6,t=0;--i>=0;)t+=r[i],r[i]=c(t/n),t=t%n*1e7},a=function(){for(var i,t=6,n="";--t>=0;)(""!==n||0===t||0!==r[t])&&(i=String(r[t]),n=""===n?i:n+o.call("0",7-i.length)+i);return n},f=function(n,t,i){return 0===t?i:t%2==1?f(n,t-1,i*n):f(n*n,t/2,i)};e(e.P+e.F*(!!h&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0))||!i(3)(function(){h.call({})})),"Number",{toFixed:function(n){var e,c,r,p,t=y(this,l),i=v(n),w="",h="0";if(i<0||i>20)throw RangeError(l);if(t!=t)return"NaN";if(t<=-1e21||t>=1e21)return String(t);if(t<0&&(w="-",t=-t),t>1e-21)if(c=(e=function(n){for(var i=0,t=n;t>=4096;)i+=12,t/=4096;for(;t>=2;)i+=1,t/=2;return i}(t*f(2,69,1))-69)<0?t*f(2,-e,1):t/f(2,e,1),c*=4503599627370496,(e=52-e)>0){for(u(0,c),r=i;r>=7;)u(1e7,0),r-=7;for(u(f(10,r,1),0),r=e-1;r>=23;)s(8388608),r-=23;s(1<<r);u(1,1);s(2);h=a()}else u(0,c),u(1<<-e,0),h=a()+o.call("0",i);return i>0?w+((p=h.length)<=i?"0."+o.call("0",i-p)+h:h.slice(0,p-i)+"."+h.slice(p-i)):w+h}})},function(n,t,i){"use strict";var u=i(0),f=i(3),e=i(105),r=1..toPrecision;u(u.P+u.F*(f(function(){return"1"!==r.call(1,void 0)})||!f(function(){r.call({})})),"Number",{toPrecision:function(n){var t=e(this,"Number#toPrecision: incorrect invocation!");return void 0===n?r.call(t):r.call(t,n)}})},function(n,t,i){var r=i(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(n,t,i){var r=i(0),u=i(2).isFinite;r(r.S,"Number",{isFinite:function(n){return"number"==typeof n&&u(n)}})},function(n,t,i){var r=i(0);r(r.S,"Number",{isInteger:i(106)})},function(n,t,i){var r=i(0);r(r.S,"Number",{isNaN:function(n){return n!=n}})},function(n,t,i){var r=i(0),u=i(106),f=Math.abs;r(r.S,"Number",{isSafeInteger:function(n){return u(n)&&f(n)<=9007199254740991}})},function(n,t,i){var r=i(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(n,t,i){var r=i(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(n,t,i){var r=i(0),u=i(104);r(r.S+r.F*(Number.parseFloat!=u),"Number",{parseFloat:u})},function(n,t,i){var r=i(0),u=i(103);r(r.S+r.F*(Number.parseInt!=u),"Number",{parseInt:u})},function(n,t,i){var r=i(0),e=i(107),f=Math.sqrt,u=Math.acosh;r(r.S+r.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(n){return(n=+n)<1?NaN:n>94906265.624251559?Math.log(n)+Math.LN2:e(n-1+f(n-1)*f(n+1))}})},function(n,t,i){var r=i(0),u=Math.asinh;r(r.S+r.F*!(u&&1/u(0)>0),"Math",{asinh:function n(t){return isFinite(t=+t)&&0!=t?t<0?-n(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(n,t,i){var r=i(0),u=Math.atanh;r(r.S+r.F*!(u&&1/u(-0)<0),"Math",{atanh:function(n){return 0==(n=+n)?n:Math.log((1+n)/(1-n))/2}})},function(n,t,i){var r=i(0),u=i(76);r(r.S,"Math",{cbrt:function(n){return u(n=+n)*Math.pow(Math.abs(n),1/3)}})},function(n,t,i){var r=i(0);r(r.S,"Math",{clz32:function(n){return(n>>>=0)?31-Math.floor(Math.log(n+.5)*Math.LOG2E):32}})},function(n,t,i){var r=i(0),u=Math.exp;r(r.S,"Math",{cosh:function(n){return(u(n=+n)+u(-n))/2}})},function(n,t,i){var r=i(0),u=i(77);r(r.S+r.F*(u!=Math.expm1),"Math",{expm1:u})},function(n,t,i){var r=i(0);r(r.S,"Math",{fround:i(108)})},function(n,t,i){var r=i(0),u=Math.abs;r(r.S,"Math",{hypot:function(){for(var n,i,r=0,f=0,e=arguments.length,t=0;f<e;)t<(n=u(arguments[f++]))?(r=r*(i=t/n)*i+1,t=n):r+=n>0?(i=n/t)*i:n;return t===1/0?1/0:t*Math.sqrt(r)}})},function(n,t,i){var r=i(0),u=Math.imul;r(r.S+r.F*i(3)(function(){return-5!=u(4294967295,5)||2!=u.length}),"Math",{imul:function(n,t){var i=+n,r=+t,u=65535&i,f=65535&r;return 0|u*f+((65535&i>>>16)*f+u*(65535&r>>>16)<<16>>>0)}})},function(n,t,i){var r=i(0);r(r.S,"Math",{log10:function(n){return Math.log(n)*Math.LOG10E}})},function(n,t,i){var r=i(0);r(r.S,"Math",{log1p:i(107)})},function(n,t,i){var r=i(0);r(r.S,"Math",{log2:function(n){return Math.log(n)/Math.LN2}})},function(n,t,i){var r=i(0);r(r.S,"Math",{sign:i(76)})},function(n,t,i){var r=i(0),u=i(77),f=Math.exp;r(r.S+r.F*i(3)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(n){return Math.abs(n=+n)<1?(u(n)-u(-n))/2:(f(n-1)-f(-n-1))*(Math.E/2)}})},function(n,t,i){var r=i(0),u=i(77),f=Math.exp;r(r.S,"Math",{tanh:function(n){var t=u(n=+n),i=u(-n);return t==1/0?1:i==1/0?-1:(t-i)/(f(n)+f(-n))}})},function(n,t,i){var r=i(0);r(r.S,"Math",{trunc:function(n){return(n>0?Math.floor:Math.ceil)(n)}})},function(n,t,i){var r=i(0),e=i(35),u=String.fromCharCode,f=String.fromCodePoint;r(r.S+r.F*(!!f&&1!=f.length),"String",{fromCodePoint:function(){for(var n,t=[],r=arguments.length,i=0;r>i;){if(n=+arguments[i++],e(n,1114111)!==n)throw RangeError(n+" is not a valid code point");t.push(n<65536?u(n):u(55296+((n-=65536)>>10),n%1024+56320))}return t.join("")}})},function(n,t,i){var r=i(0),u=i(15),f=i(6);r(r.S,"String",{raw:function(n){for(var r=u(n.raw),e=f(r.length),o=arguments.length,i=[],t=0;e>t;)i.push(String(r[t++])),t<o&&i.push(String(arguments[t]));return i.join("")}})},function(n,t,i){"use strict";i(45)("trim",function(n){return function(){return n(this,3)}})},function(n,t,i){"use strict";var r=i(55)(!0);i(78)(String,"String",function(n){this._t=String(n);this._i=0},function(){var n,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(n=r(t,i),this._i+=n.length,{value:n,done:!1})})},function(n,t,i){"use strict";var r=i(0),u=i(55)(!1);r(r.P,"String",{codePointAt:function(n){return u(this,n)}})},function(n,t,i){"use strict";var r=i(0),u=i(6),e=i(80),f="".endsWith;r(r.P+r.F*i(81)("endsWith"),"String",{endsWith:function(n){var t=e(this,n,"endsWith"),o=arguments.length>1?arguments[1]:void 0,s=u(t.length),i=void 0===o?s:Math.min(u(o),s),r=String(n);return f?f.call(t,r,i):t.slice(i-r.length,i)===r}})},function(n,t,i){"use strict";var r=i(0),u=i(80);r(r.P+r.F*i(81)("includes"),"String",{includes:function(n){return!!~u(this,n,"includes").indexOf(n,arguments.length>1?arguments[1]:void 0)}})},function(n,t,i){var r=i(0);r(r.P,"String",{repeat:i(75)})},function(n,t,i){"use strict";var r=i(0),f=i(6),e=i(80),u="".startsWith;r(r.P+r.F*i(81)("startsWith"),"String",{startsWith:function(n){var t=e(this,n,"startsWith"),i=f(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(n);return u?u.call(t,r,i):t.slice(i,i+r.length)===r}})},function(n,t,i){"use strict";i(13)("anchor",function(n){return function(t){return n(this,"a","name",t)}})},function(n,t,i){"use strict";i(13)("big",function(n){return function(){return n(this,"big","","")}})},function(n,t,i){"use strict";i(13)("blink",function(n){return function(){return n(this,"blink","","")}})},function(n,t,i){"use strict";i(13)("bold",function(n){return function(){return n(this,"b","","")}})},function(n,t,i){"use strict";i(13)("fixed",function(n){return function(){return n(this,"tt","","")}})},function(n,t,i){"use strict";i(13)("fontcolor",function(n){return function(t){return n(this,"font","color",t)}})},function(n,t,i){"use strict";i(13)("fontsize",function(n){return function(t){return n(this,"font","size",t)}})},function(n,t,i){"use strict";i(13)("italics",function(n){return function(){return n(this,"i","","")}})},function(n,t,i){"use strict";i(13)("link",function(n){return function(t){return n(this,"a","href",t)}})},function(n,t,i){"use strict";i(13)("small",function(n){return function(){return n(this,"small","","")}})},function(n,t,i){"use strict";i(13)("strike",function(n){return function(){return n(this,"strike","","")}})},function(n,t,i){"use strict";i(13)("sub",function(n){return function(){return n(this,"sub","","")}})},function(n,t,i){"use strict";i(13)("sup",function(n){return function(){return n(this,"sup","","")}})},function(n,t,i){var r=i(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(n,t,i){"use strict";var r=i(0),u=i(9),f=i(23);r(r.P+r.F*i(3)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(){var n=u(this),t=f(n);return"number"!=typeof t||isFinite(t)?n.toISOString():null}})},function(n,t,i){var r=i(0),u=i(213);r(r.P+r.F*(Date.prototype.toISOString!==u),"Date",{toISOString:u})},function(n,t,i){"use strict";var f=i(3),e=Date.prototype.getTime,u=Date.prototype.toISOString,r=function(n){return n>9?n:"0"+n};n.exports=f(function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-50000000000001))})||!f(function(){u.call(new Date(NaN))})?function(){if(!isFinite(e.call(this)))throw RangeError("Invalid time value");var n=this,t=n.getUTCFullYear(),i=n.getUTCMilliseconds(),u=t<0?"-":t>9999?"+":"";return u+("00000"+Math.abs(t)).slice(u?-6:-4)+"-"+r(n.getUTCMonth()+1)+"-"+r(n.getUTCDate())+"T"+r(n.getUTCHours())+":"+r(n.getUTCMinutes())+":"+r(n.getUTCSeconds())+"."+(i>99?i:"0"+r(i))+"Z"}:u},function(n,t,i){var r=Date.prototype,u=r.toString,f=r.getTime;new Date(NaN)+""!="Invalid Date"&&i(12)(r,"toString",function(){var n=f.call(this);return n==n?u.call(this):"Invalid Date"})},function(n,t,i){var r=i(5)("toPrimitive"),u=Date.prototype;r in u||i(11)(u,r,i(216))},function(n,t,i){"use strict";var r=i(1),u=i(23);n.exports=function(n){if("string"!==n&&"number"!==n&&"default"!==n)throw TypeError("Incorrect hint");return u(r(this),"number"!=n)}},function(n,t,i){var r=i(0);r(r.S,"Array",{isArray:i(54)})},function(n,t,i){"use strict";var f=i(19),r=i(0),e=i(9),o=i(109),s=i(82),h=i(6),u=i(83),c=i(84);r(r.S+r.F*!i(57)(function(n){Array.from(n)}),"Array",{from:function(n){var b,i,a,v,r=e(n),y="function"==typeof this?this:Array,k=arguments.length,l=k>1?arguments[1]:void 0,p=void 0!==l,t=0,w=c(r);if(p&&(l=f(l,k>2?arguments[2]:void 0,2)),null==w||y==Array&&s(w))for(i=new y(b=h(r.length));b>t;t++)u(i,t,p?l(r[t],t):r[t]);else for(v=w.call(r),i=new y;!(a=v.next()).done;t++)u(i,t,p?o(v,l,[a.value,t],!0):a.value);return i.length=t,i}})},function(n,t,i){"use strict";var r=i(0),u=i(83);r(r.S+r.F*i(3)(function(){function n(){}return!(Array.of.call(n)instanceof n)}),"Array",{of:function(){for(var n=0,t=arguments.length,i=new("function"==typeof this?this:Array)(t);t>n;)u(i,n,arguments[n++]);return i.length=t,i}})},function(n,t,i){"use strict";var r=i(0),f=i(15),u=[].join;r(r.P+r.F*(i(48)!=Object||!i(22)(u)),"Array",{join:function(n){return u.call(f(this),void 0===n?",":n)}})},function(n,t,i){"use strict";var r=i(0),u=i(71),s=i(20),f=i(35),e=i(6),o=[].slice;r(r.P+r.F*i(3)(function(){u&&o.call(u)}),"Array",{slice:function(n,t){var r=e(this.length),h=s(this);if(t=void 0===t?r:t,"Array"==h)return o.call(this,n,t);for(var u=f(n,r),a=f(t,r),c=e(a-u),l=new Array(c),i=0;i<c;i++)l[i]="String"==h?this.charAt(u+i):this[u+i];return l}})},function(n,t,i){"use strict";var r=i(0),s=i(10),f=i(9),e=i(3),u=[].sort,o=[1,2,3];r(r.P+r.F*(e(function(){o.sort(void 0)})||!e(function(){o.sort(null)})||!i(22)(u)),"Array",{sort:function(n){return void 0===n?u.call(f(this)):u.call(f(this),s(n))}})},function(n,t,i){"use strict";var r=i(0),u=i(26)(0),f=i(22)([].forEach,!0);r(r.P+r.F*!f,"Array",{forEach:function(n){return u(this,n,arguments[1])}})},function(n,t,i){var u=i(4),r=i(54),f=i(5)("species");n.exports=function(n){var t;return r(n)&&("function"!=typeof(t=n.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),u(t)&&null===(t=t[f])&&(t=void 0)),void 0===t?Array:t}},function(n,t,i){"use strict";var r=i(0),u=i(26)(1);r(r.P+r.F*!i(22)([].map,!0),"Array",{map:function(n){return u(this,n,arguments[1])}})},function(n,t,i){"use strict";var r=i(0),u=i(26)(2);r(r.P+r.F*!i(22)([].filter,!0),"Array",{filter:function(n){return u(this,n,arguments[1])}})},function(n,t,i){"use strict";var r=i(0),u=i(26)(3);r(r.P+r.F*!i(22)([].some,!0),"Array",{some:function(n){return u(this,n,arguments[1])}})},function(n,t,i){"use strict";var r=i(0),u=i(26)(4);r(r.P+r.F*!i(22)([].every,!0),"Array",{every:function(n){return u(this,n,arguments[1])}})},function(n,t,i){"use strict";var r=i(0),u=i(110);r(r.P+r.F*!i(22)([].reduce,!0),"Array",{reduce:function(n){return u(this,n,arguments.length,arguments[1],!1)}})},function(n,t,i){"use strict";var r=i(0),u=i(110);r(r.P+r.F*!i(22)([].reduceRight,!0),"Array",{reduceRight:function(n){return u(this,n,arguments.length,arguments[1],!0)}})},function(n,t,i){"use strict";var r=i(0),e=i(52)(!1),u=[].indexOf,f=!!u&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(f||!i(22)(u)),"Array",{indexOf:function(n){return f?u.apply(this,arguments)||0:e(this,n,arguments[1])}})},function(n,t,i){"use strict";var r=i(0),e=i(15),o=i(21),s=i(6),u=[].lastIndexOf,f=!!u&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(f||!i(22)(u)),"Array",{lastIndexOf:function(n){if(f)return u.apply(this,arguments)||0;var i=e(this),r=s(i.length),t=r-1;for(arguments.length>1&&(t=Math.min(t,o(arguments[1]))),t<0&&(t=r+t);t>=0;t--)if(t in i&&i[t]===n)return t||0;return-1}})},function(n,t,i){var r=i(0);r(r.P,"Array",{copyWithin:i(111)});i(31)("copyWithin")},function(n,t,i){var r=i(0);r(r.P,"Array",{fill:i(86)});i(31)("fill")},function(n,t,i){"use strict";var r=i(0),f=i(26)(5),u=!0;"find"in[]&&Array(1).find(function(){u=!1});r(r.P+r.F*u,"Array",{find:function(n){return f(this,n,arguments.length>1?arguments[1]:void 0)}});i(31)("find")},function(n,t,i){"use strict";var r=i(0),e=i(26)(6),u="findIndex",f=!0;u in[]&&Array(1)[u](function(){f=!1});r(r.P+r.F*f,"Array",{findIndex:function(n){return e(this,n,arguments.length>1?arguments[1]:void 0)}});i(31)(u)},function(n,t,i){i(38)("Array")},function(n,t,i){var s=i(2),a=i(74),v=i(8).f,y=i(37).f,p=i(56),w=i(50),r=s.RegExp,u=r,e=r.prototype,f=/a/g,o=/a/g,h=new r(f)!==f;if(i(7)&&(!h||i(3)(function(){return o[i(5)("match")]=!1,r(f)!=f||r(o)==o||"/a/i"!=r(f,"i")}))){r=function(n,t){var o=this instanceof r,i=p(n),f=void 0===t;return!o&&i&&n.constructor===r&&f?n:a(h?new u(i&&!f?n.source:n,t):u((i=n instanceof r)?n.source:n,i&&f?w.call(n):t),o?this:e,r)};for(var b=function(n){n in r||v(r,n,{configurable:!0,get:function(){return u[n]},set:function(t){u[n]=t}})},c=y(u),l=0;c.length>l;)b(c[l++]);e.constructor=r;r.prototype=e;i(12)(s,"RegExp",r)}i(38)("RegExp")},function(n,t,i){"use strict";i(114);var f=i(1),e=i(50),o=i(7),r=/./.toString,u=function(n){i(12)(RegExp.prototype,"toString",n,!0)};i(3)(function(){return"/a/b"!=r.call({source:"a",flags:"b"})})?u(function(){var n=f(this);return"/".concat(n.source,"/","flags"in n?n.flags:!o&&n instanceof RegExp?e.call(n):void 0)}):"toString"!=r.name&&u(function(){return r.call(this)})},function(n,t,i){"use strict";var u=i(1),f=i(6),e=i(89),r=i(58);i(59)("match",1,function(n,t,i,o){return[function(i){var r=n(this),u=null==i?void 0:i[t];return void 0!==u?u.call(i,r):new RegExp(i)[t](String(r))},function(n){var a=o(i,n,this),t,s,v,y,c,h,l;if(a.done)return a.value;if(t=u(n),s=String(this),!t.global)return r(t,s);for(v=t.unicode,t.lastIndex=0,c=[],h=0;null!==(y=r(t,s));)l=String(y[0]),c[h]=l,""===l&&(t.lastIndex=e(s,f(t.lastIndex),v)),h++;return 0===h?null:c}]})},function(n,t,i){"use strict";var r=i(1),u=i(9),f=i(6),e=i(21),o=i(89),s=i(58),h=Math.max,c=Math.min,l=Math.floor,a=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g;i(59)("replace",2,function(n,t,i,y){function p(n,t,r,f,e,o){var c=r+n.length,s=f.length,h=v;return void 0!==e&&(e=u(e),h=a),i.call(o,h,function(i,u){var a,o,h;switch(u.charAt(0)){case"$":return"$";case"&":return n;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":a=e[u.slice(1,-1)];break;default:if(o=+u,0===o)return i;if(o>s)return h=l(o/10),0===h?i:h<=s?void 0===f[h-1]?u.charAt(1):f[h-1]+u.charAt(1):i;a=f[o-1]}return void 0===a?"":a})}return[function(r,u){var f=n(this),e=null==r?void 0:r[t];return void 0!==e?e.call(r,f,u):i.call(String(f),r,u)},function(n,t){var et=y(i,n,this,t),d,st,w,u,k,ut,ft;if(et.done)return et.value;var a=r(n),l=String(this),ot="function"==typeof t;for(ot||(t=String(t)),d=a.global,d&&(st=a.unicode,a.lastIndex=0),w=[];;){if(u=s(a,l),null===u)break;if(w.push(u),!d)break;""===String(u[0])&&(a.lastIndex=o(l,f(a.lastIndex),st))}for(var g,ht="",b=0,nt=0;nt<w.length;nt++){u=w[nt];for(var tt=String(u[0]),v=h(c(e(u.index),l.length),0),it=[],rt=1;rt<u.length;rt++)it.push(void 0===(g=u[rt])?g:String(g));k=u.groups;ot?(ut=[tt].concat(it,v,l),void 0!==k&&ut.push(k),ft=String(t.apply(void 0,ut))):ft=p(tt,l,v,it,k,t);v>=b&&(ht+=l.slice(b,v)+ft,b=v+tt.length)}return ht+l.slice(b)}]})},function(n,t,i){"use strict";var u=i(1),r=i(100),f=i(58);i(59)("search",1,function(n,t,i,e){return[function(i){var r=n(this),u=null==i?void 0:i[t];return void 0!==u?u.call(i,r):new RegExp(i)[t](String(r))},function(n){var h=e(i,n,this),s;if(h.done)return h.value;var t=u(n),c=String(this),o=t.lastIndex;return r(o,0)||(t.lastIndex=0),s=f(t,c),r(t.lastIndex,o)||(t.lastIndex=o),null===s?-1:s.index}]})},function(n,t,i){"use strict";var e=i(56),o=i(1),s=i(51),h=i(89),c=i(6),f=i(58),l=i(88),a=i(3),v=Math.min,y=[].push,r="length",u=!a(function(){RegExp(4294967295,"y")});i(59)("split",2,function(n,t,i,a){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[r]||2!="ab".split(/(?:ab)*/)[r]||4!=".".split(/(.?)(.?)/)[r]||".".split(/()()/)[r]>1||"".split(/.?/)[r]?function(n,t){var o=String(this);if(void 0===n&&0===t)return[];if(!e(n))return i.call(o,n,t);for(var f,a,v,u=[],p=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),s=0,c=void 0===t?4294967295:t>>>0,h=new RegExp(n.source,p+"g");(f=l.call(h,o))&&!((a=h.lastIndex)>s&&(u.push(o.slice(s,f.index)),f[r]>1&&f.index<o[r]&&y.apply(u,f.slice(1)),v=f[0][r],s=a,u[r]>=c));)h.lastIndex===f.index&&h.lastIndex++;return s===o[r]?!v&&h.test("")||u.push(""):u.push(o.slice(s)),u[r]>c?u.slice(0,c):u}:"0".split(void 0,0)[r]?function(n,t){return void 0===n&&0===t?[]:i.call(this,n,t)}:i,[function(i,r){var u=n(this),f=null==i?void 0:i[t];return void 0!==f?f.call(i,u,r):p.call(String(u),i,r)},function(n,t){var nt=a(p,n,this,t,p!==i),tt,k,d;if(nt.done)return nt.value;var y=o(n),r=String(this),it=s(y,RegExp),rt=y.unicode,ut=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(u?"y":"g"),w=new it(u?y:"^(?:"+y.source+")",ut),g=void 0===t?4294967295:t>>>0;if(0===g)return[];if(0===r.length)return null===f(w,r)?[r]:[];for(var b=0,e=0,l=[];e<r.length;)if(w.lastIndex=u?e:0,k=f(w,u?r:r.slice(e)),null===k||(tt=v(c(w.lastIndex+(u?0:e)),r.length))===b)e=h(r,e,rt);else{if(l.push(r.slice(b,e)),l.length===g)return l;for(d=1;d<=k.length-1;d++)if(l.push(k[d]),l.length===g)return l;e=b=tt}return l.push(r.slice(b)),l}]})},function(n,t,i){"use strict";var v,k,d,y,g=i(29),f=i(2),e=i(19),st=i(44),r=i(0),ht=i(4),ct=i(10),lt=i(39),nt=i(40),at=i(51),tt=i(90).set,it=i(91)(),rt=i(92),p=i(115),vt=i(60),yt=i(116),ut=f.TypeError,o=f.process,ft=o&&o.versions,pt=ft&&ft.v8||"",u=f.Promise,h="process"==st(o),a=function(){},c=k=rt.f,l=!!function(){try{var n=u.resolve(1),t=(n.constructor={})[i(5)("species")]=function(n){n(a,a)};return(h||"function"==typeof PromiseRejectionEvent)&&n.then(a)instanceof t&&0!==pt.indexOf("6.6")&&-1===vt.indexOf("Chrome/66")}catch(n){}}(),et=function(n){var t;return!(!ht(n)||"function"!=typeof(t=n.then))&&t},w=function(n,t){if(!n._n){n._n=!0;var i=n._c;it(function(){for(var r=n._v,u=1==n._s,f=0,e=function(t){var i,s,h,o=u?t.ok:t.fail,c=t.resolve,e=t.reject,f=t.domain;try{o?(u||(2==n._h&&bt(n),n._h=1),!0===o?i=r:(f&&f.enter(),i=o(r),f&&(f.exit(),h=!0)),i===t.promise?e(ut("Promise-chain cycle")):(s=et(i))?s.call(i,c,e):c(i)):e(r)}catch(n){f&&!h&&f.exit();e(n)}};i.length>f;)e(i[f++]);n._c=[];n._n=!1;t&&!n._h&&wt(n)})}},wt=function(n){tt.call(f,function(){var t,u,i,r=n._v,e=ot(n);if(e&&(t=p(function(){h?o.emit("unhandledRejection",r,n):(u=f.onunhandledrejection)?u({promise:n,reason:r}):(i=f.console)&&i.error&&i.error("Unhandled promise rejection",r)}),n._h=h||ot(n)?2:1),n._a=void 0,e&&t.e)throw t.v;})},ot=function(n){return 1!==n._h&&0===(n._a||n._c).length},bt=function(n){tt.call(f,function(){var t;h?o.emit("rejectionHandled",n):(t=f.onrejectionhandled)&&t({promise:n,reason:n._v})})},s=function(n){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=n,t._s=2,t._a||(t._a=t._c.slice()),w(t,!0))},b=function(n){var i,t=this;if(!t._d){t._d=!0;t=t._w||t;try{if(t===n)throw ut("Promise can't be resolved itself");(i=et(n))?it(function(){var r={_w:t,_d:!1};try{i.call(n,e(b,r,1),e(s,r,1))}catch(n){s.call(r,n)}}):(t._v=n,t._s=1,w(t,!1))}catch(n){s.call({_w:t,_d:!1},n)}}};l||(u=function(n){lt(this,u,"Promise","_h");ct(n);v.call(this);try{n(e(b,this,1),e(s,this,1))}catch(n){s.call(this,n)}},(v=function(){this._c=[];this._a=void 0;this._s=0;this._d=!1;this._v=void 0;this._h=0;this._n=!1}).prototype=i(41)(u.prototype,{then:function(n,t){var i=c(at(this,u));return i.ok="function"!=typeof n||n,i.fail="function"==typeof t&&t,i.domain=h?o.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&w(this,!1),i.promise},"catch":function(n){return this.then(void 0,n)}}),d=function(){var n=new v;this.promise=n;this.resolve=e(b,n,1);this.reject=e(s,n,1)},rt.f=c=function(n){return n===u||n===y?new d(n):k(n)});r(r.G+r.W+r.F*!l,{Promise:u});i(43)(u,"Promise");i(38)("Promise");y=i(18).Promise;r(r.S+r.F*!l,"Promise",{reject:function(n){var t=c(this);return t.reject(n),t.promise}});r(r.S+r.F*(g||!l),"Promise",{resolve:function(n){return yt(g&&this===y?u:this,n)}});r(r.S+r.F*!(l&&i(57)(function(n){u.all(n).catch(a)})),"Promise",{all:function(n){var i=this,t=c(i),r=t.resolve,u=t.reject,f=p(function(){var t=[],e=0,f=1;nt(n,!1,function(n){var s=e++,o=!1;t.push(void 0);f++;i.resolve(n).then(function(n){o||(o=!0,t[s]=n,--f||r(t))},u)});--f||r(t)});return f.e&&u(f.v),t.promise},race:function(n){var i=this,t=c(i),r=t.reject,u=p(function(){nt(n,!1,function(n){i.resolve(n).then(t.resolve,r)})});return u.e&&r(u.v),t.promise}})},function(n,t,i){"use strict";var r=i(121),u=i(42);i(61)("WeakSet",function(n){return function(){return n(this,arguments.length>0?arguments[0]:void 0)}},{add:function(n){return r.def(u(this,"WeakSet"),n,!0)}},r,!1,!0)},function(n,t,i){"use strict";var r=i(0),f=i(62),e=i(93),o=i(1),s=i(35),v=i(6),y=i(4),h=i(2).ArrayBuffer,p=i(51),u=e.ArrayBuffer,c=e.DataView,l=f.ABV&&h.isView,a=u.prototype.slice,w=f.VIEW;r(r.G+r.W+r.F*(h!==u),{ArrayBuffer:u});r(r.S+r.F*!f.CONSTR,"ArrayBuffer",{isView:function(n){return l&&l(n)||y(n)&&w in n}});r(r.P+r.U+r.F*i(3)(function(){return!new u(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(n,t){if(void 0!==a&&void 0===t)return a.call(o(this),n);for(var i=o(this).byteLength,r=s(n,i),f=s(void 0===t?i:t,i),e=new(p(this,u))(v(f-r)),h=new c(this),l=new c(e),y=0;r<f;)l.setUint8(y++,h.getUint8(r++));return e}});i(38)("ArrayBuffer")},function(n,t,i){var r=i(0);r(r.G+r.W+r.F*!i(62).ABV,{DataView:i(93).DataView})},function(n,t,i){i(27)("Int8",1,function(n){return function(t,i,r){return n(this,t,i,r)}})},function(n,t,i){i(27)("Uint8",1,function(n){return function(t,i,r){return n(this,t,i,r)}})},function(n,t,i){i(27)("Uint8",1,function(n){return function(t,i,r){return n(this,t,i,r)}},!0)},function(n,t,i){i(27)("Int16",2,function(n){return function(t,i,r){return n(this,t,i,r)}})},function(n,t,i){i(27)("Uint16",2,function(n){return function(t,i,r){return n(this,t,i,r)}})},function(n,t,i){i(27)("Int32",4,function(n){return function(t,i,r){return n(this,t,i,r)}})},function(n,t,i){i(27)("Uint32",4,function(n){return function(t,i,r){return n(this,t,i,r)}})},function(n,t,i){i(27)("Float32",4,function(n){return function(t,i,r){return n(this,t,i,r)}})},function(n,t,i){i(27)("Float64",8,function(n){return function(t,i,r){return n(this,t,i,r)}})},function(n,t,i){var r=i(0),f=i(10),e=i(1),u=(i(2).Reflect||{}).apply,o=Function.apply;r(r.S+r.F*!i(3)(function(){u(function(){})}),"Reflect",{apply:function(n,t,i){var r=f(n),s=e(i);return u?u(r,t,s):o.call(r,t,s)}})},function(n,t,i){var r=i(0),c=i(36),f=i(10),l=i(1),e=i(4),o=i(3),a=i(101),u=(i(2).Reflect||{}).construct,s=o(function(){function n(){}return!(u(function(){},[],n)instanceof n)}),h=!o(function(){u(function(){})});r(r.S+r.F*(s||h),"Reflect",{construct:function(n,t){var i,r;if(f(n),l(t),i=arguments.length<3?n:f(arguments[2]),h&&!s)return u(n,t,i);if(n==i){switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3])}return r=[null],r.push.apply(r,t),new(a.apply(n,r))}var o=i.prototype,v=c(e(o)?o:Object.prototype),y=Function.apply.call(n,v,t);return e(y)?y:v}})},function(n,t,i){var u=i(8),r=i(0),f=i(1),e=i(23);r(r.S+r.F*i(3)(function(){Reflect.defineProperty(u.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(n,t,i){f(n);t=e(t,!0);f(i);try{return u.f(n,t,i),!0}catch(n){return!1}}})},function(n,t,i){var r=i(0),u=i(16).f,f=i(1);r(r.S,"Reflect",{deleteProperty:function(n,t){var i=u(f(n),t);return!(i&&!i.configurable)&&delete n[t]}})},function(n,t,i){"use strict";var r=i(0),f=i(1),u=function(n){this._t=f(n);this._i=0;var t,i=this._k=[];for(t in n)i.push(t)};i(79)(u,"Object",function(){var n,t=this._k;do if(this._i>=t.length)return{value:void 0,done:!0};while(!((n=t[this._i++])in this._t));return{value:n,done:!1}});r(r.S,"Reflect",{enumerate:function(n){return new u(n)}})},function(n,t,i){var u=i(16),f=i(17),e=i(14),r=i(0),o=i(4),s=i(1);r(r.S,"Reflect",{get:function n(t,i){var r,c,h=arguments.length<3?t:arguments[2];return s(t)===h?t[i]:(r=u.f(t,i))?e(r,"value")?r.value:void 0!==r.get?r.get.call(h):void 0:o(c=f(t))?n(c,i,h):void 0}})},function(n,t,i){var u=i(16),r=i(0),f=i(1);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(n,t){return u.f(f(n),t)}})},function(n,t,i){var r=i(0),u=i(17),f=i(1);r(r.S,"Reflect",{getPrototypeOf:function(n){return u(f(n))}})},function(n,t,i){var r=i(0);r(r.S,"Reflect",{has:function(n,t){return t in n}})},function(n,t,i){var r=i(0),f=i(1),u=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(n){return f(n),!u||u(n)}})},function(n,t,i){var r=i(0);r(r.S,"Reflect",{ownKeys:i(123)})},function(n,t,i){var r=i(0),f=i(1),u=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(n){f(n);try{return u&&u(n),!0}catch(n){return!1}}})},function(n,t,i){var r=i(8),u=i(16),s=i(17),h=i(14),f=i(0),e=i(32),c=i(1),o=i(4);f(f.S,"Reflect",{set:function n(t,i,f){var l,y,a=arguments.length<4?t:arguments[3],v=u.f(c(t),i);if(!v){if(o(y=s(t)))return n(y,i,f,a);v=e(0)}if(h(v,"value")){if(!1===v.writable||!o(a))return!1;if(l=u.f(a,i)){if(l.get||l.set||!1===l.writable)return!1;l.value=f;r.f(a,i,l)}else r.f(a,i,e(0,f));return!0}return void 0!==v.set&&(v.set.call(a,f),!0)}})},function(n,t,i){var u=i(0),r=i(72);r&&u(u.S,"Reflect",{setPrototypeOf:function(n,t){r.check(n,t);try{return r.set(n,t),!0}catch(n){return!1}}})},function(n,t,i){"use strict";var r=i(0),u=i(52)(!0);r(r.P,"Array",{includes:function(n){return u(this,n,arguments.length>1?arguments[1]:void 0)}});i(31)("includes")},function(n,t,i){"use strict";var r=i(0),u=i(124),f=i(9),e=i(6),o=i(10),s=i(85);r(r.P,"Array",{flatMap:function(n){var r,i,t=f(this);return o(n),r=e(t.length),i=s(t,0),u(i,t,t,r,0,1,n,arguments[1]),i}});i(31)("flatMap")},function(n,t,i){"use strict";var r=i(0),u=i(124),f=i(9),e=i(6),o=i(21),s=i(85);r(r.P,"Array",{flatten:function(){var t=arguments[0],n=f(this),r=e(n.length),i=s(n,0);return u(i,n,n,r,0,void 0===t?1:o(t)),i}});i(31)("flatten")},function(n,t,i){"use strict";var r=i(0),u=i(55)(!0);r(r.P,"String",{at:function(n){return u(this,n)}})},function(n,t,i){"use strict";var r=i(0),u=i(125),f=i(60),e=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(f);r(r.P+r.F*e,"String",{padStart:function(n){return u(this,n,arguments.length>1?arguments[1]:void 0,!0)}})},function(n,t,i){"use strict";var r=i(0),u=i(125),f=i(60),e=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(f);r(r.P+r.F*e,"String",{padEnd:function(n){return u(this,n,arguments.length>1?arguments[1]:void 0,!1)}})},function(n,t,i){"use strict";i(45)("trimLeft",function(n){return function(){return n(this,1)}},"trimStart")},function(n,t,i){"use strict";i(45)("trimRight",function(n){return function(){return n(this,2)}},"trimEnd")},function(n,t,i){"use strict";var r=i(0),f=i(24),e=i(6),o=i(56),s=i(50),h=RegExp.prototype,u=function(n,t){this._r=n;this._s=t};i(79)(u,"RegExp String",function(){var n=this._r.exec(this._s);return{value:n,done:null===n}});r(r.P,"String",{matchAll:function(n){if(f(this),!o(n))throw TypeError(n+" is not a regexp!");var r=String(this),t="flags"in h?String(n.flags):s.call(n),i=new RegExp(n.source,~t.indexOf("g")?t:"g"+t);return i.lastIndex=e(n.lastIndex),new u(i,r)}})},function(n,t,i){i(68)("asyncIterator")},function(n,t,i){i(68)("observable")},function(n,t,i){var r=i(0),u=i(123),f=i(15),e=i(16),o=i(83);r(r.S,"Object",{getOwnPropertyDescriptors:function(n){for(var t,i,r=f(n),l=e.f,s=u(r),h={},c=0;s.length>c;)void 0!==(i=l(r,t=s[c++]))&&o(h,t,i);return h}})},function(n,t,i){var r=i(0),u=i(126)(!1);r(r.S,"Object",{values:function(n){return u(n)}})},function(n,t,i){var r=i(0),u=i(126)(!0);r(r.S,"Object",{entries:function(n){return u(n)}})},function(n,t,i){"use strict";var r=i(0),u=i(9),f=i(10),e=i(8);i(7)&&r(r.P+i(63),"Object",{__defineGetter__:function(n,t){e.f(u(this),n,{get:f(t),enumerable:!0,configurable:!0})}})},function(n,t,i){"use strict";var r=i(0),u=i(9),f=i(10),e=i(8);i(7)&&r(r.P+i(63),"Object",{__defineSetter__:function(n,t){e.f(u(this),n,{set:f(t),enumerable:!0,configurable:!0})}})},function(n,t,i){"use strict";var r=i(0),u=i(9),f=i(23),e=i(17),o=i(16).f;i(7)&&r(r.P+i(63),"Object",{__lookupGetter__:function(n){var i,t=u(this),r=f(n,!0);do if(i=o(t,r))return i.get;while(t=e(t))}})},function(n,t,i){"use strict";var r=i(0),u=i(9),f=i(23),e=i(17),o=i(16).f;i(7)&&r(r.P+i(63),"Object",{__lookupSetter__:function(n){var i,t=u(this),r=f(n,!0);do if(i=o(t,r))return i.set;while(t=e(t))}})},function(n,t,i){var r=i(0);r(r.P+r.R,"Map",{toJSON:i(127)("Map")})},function(n,t,i){var r=i(0);r(r.P+r.R,"Set",{toJSON:i(127)("Set")})},function(n,t,i){i(64)("Map")},function(n,t,i){i(64)("Set")},function(n,t,i){i(64)("WeakMap")},function(n,t,i){i(64)("WeakSet")},function(n,t,i){i(65)("Map")},function(n,t,i){i(65)("Set")},function(n,t,i){i(65)("WeakMap")},function(n,t,i){i(65)("WeakSet")},function(n,t,i){var r=i(0);r(r.G,{global:i(2)})},function(n,t,i){var r=i(0);r(r.S,"System",{global:i(2)})},function(n,t,i){var r=i(0),u=i(20);r(r.S,"Error",{isError:function(n){return"Error"===u(n)}})},function(n,t,i){var r=i(0);r(r.S,"Math",{clamp:function(n,t,i){return Math.min(i,Math.max(t,n))}})},function(n,t,i){var r=i(0);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(n,t,i){var r=i(0),u=180/Math.PI;r(r.S,"Math",{degrees:function(n){return n*u}})},function(n,t,i){var r=i(0),u=i(129),f=i(108);r(r.S,"Math",{fscale:function(n,t,i,r,e){return f(u(n,t,i,r,e))}})},function(n,t,i){var r=i(0);r(r.S,"Math",{iaddh:function(n,t,i,r){var u=n>>>0,f=i>>>0;return(t>>>0)+(r>>>0)+((u&f|(u|f)&~(u+f>>>0))>>>31)|0}})},function(n,t,i){var r=i(0);r(r.S,"Math",{isubh:function(n,t,i,r){var u=n>>>0,f=i>>>0;return(t>>>0)-(r>>>0)-((~u&f|~(u^f)&u-f>>>0)>>>31)|0}})},function(n,t,i){var r=i(0);r(r.S,"Math",{imulh:function(n,t){var i=+n,r=+t,u=65535&i,f=65535&r,e=i>>16,o=r>>16,s=(e*f>>>0)+(u*f>>>16);return e*o+(s>>16)+((u*o>>>0)+(65535&s)>>16)}})},function(n,t,i){var r=i(0);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(n,t,i){var r=i(0),u=Math.PI/180;r(r.S,"Math",{radians:function(n){return n*u}})},function(n,t,i){var r=i(0);r(r.S,"Math",{scale:i(129)})},function(n,t,i){var r=i(0);r(r.S,"Math",{umulh:function(n,t){var i=+n,r=+t,u=65535&i,f=65535&r,e=i>>>16,o=r>>>16,s=(e*f>>>0)+(u*f>>>16);return e*o+(s>>>16)+((u*o>>>0)+(65535&s)>>>16)}})},function(n,t,i){var r=i(0);r(r.S,"Math",{signbit:function(n){return(n=+n)!=n?n:0==n?1/n==1/0:n>0}})},function(n,t,i){"use strict";var r=i(0),f=i(18),e=i(2),o=i(51),u=i(116);r(r.P+r.R,"Promise",{"finally":function(n){var t=o(this,f.Promise||e.Promise),i="function"==typeof n;return this.then(i?function(i){return u(t,n()).then(function(){return i})}:n,i?function(i){return u(t,n()).then(function(){throw i;})}:n)}})},function(n,t,i){"use strict";var r=i(0),u=i(92),f=i(115);r(r.S,"Promise",{"try":function(n){var t=u.f(this),i=f(n);return(i.e?t.reject:t.resolve)(i.v),t.promise}})},function(n,t,i){var r=i(28),u=i(1),f=r.key,e=r.set;r.exp({defineMetadata:function(n,t,i,r){e(n,t,u(i),f(r))}})},function(n,t,i){var r=i(28),f=i(1),e=r.key,o=r.map,u=r.store;r.exp({deleteMetadata:function(n,t){var s=arguments.length<3?void 0:e(arguments[2]),i=o(f(t),s,!1),r;return void 0===i||!i.delete(n)?!1:i.size?!0:(r=u.get(t),r.delete(s),!!r.size||u.delete(t))}})},function(n,t,i){var r=i(28),f=i(1),e=i(17),o=r.has,s=r.get,h=r.key,u=function(n,t,i){if(o(n,t,i))return s(n,t,i);var r=e(t);if(null!==r)return u(n,r,i)};r.exp({getMetadata:function(n,t){return u(n,f(t),arguments.length<3?void 0:h(arguments[2]))}})},function(n,t,i){var f=i(119),e=i(128),r=i(28),o=i(1),s=i(17),h=r.keys,c=r.key,u=function(n,t){var i=h(n,t),o=s(n),r;return null===o?i:(r=u(o,t),r.length?i.length?e(new f(i.concat(r))):r:i)};r.exp({getMetadataKeys:function(n){return u(o(n),arguments.length<2?void 0:c(arguments[1]))}})},function(n,t,i){var r=i(28),u=i(1),f=r.get,e=r.key;r.exp({getOwnMetadata:function(n,t){return f(n,u(t),arguments.length<3?void 0:e(arguments[2]))}})},function(n,t,i){var r=i(28),u=i(1),f=r.keys,e=r.key;r.exp({getOwnMetadataKeys:function(n){return f(u(n),arguments.length<2?void 0:e(arguments[1]))}})},function(n,t,i){var r=i(28),f=i(1),e=i(17),o=r.has,s=r.key,u=function(n,t,i){if(o(n,t,i))return!0;var r=e(t);return null!==r&&u(n,r,i)};r.exp({hasMetadata:function(n,t){return u(n,f(t),arguments.length<3?void 0:s(arguments[2]))}})},function(n,t,i){var r=i(28),u=i(1),f=r.has,e=r.key;r.exp({hasOwnMetadata:function(n,t){return f(n,u(t),arguments.length<3?void 0:e(arguments[2]))}})},function(n,t,i){var r=i(28),u=i(1),f=i(10),e=r.key,o=r.set;r.exp({metadata:function(n,t){return function(i,r){o(n,t,(void 0!==r?u:f)(i),e(r))}}})},function(n,t,i){var r=i(0),f=i(91)(),u=i(2).process,e="process"==i(20)(u);r(r.G,{asap:function(n){var t=e&&u.domain;f(t?t.bind(n):n)}})},function(n,t,i){"use strict";var l=i(0),k=i(2),d=i(18),a=i(91)(),v=i(5)("observable"),e=i(10),h=i(1),g=i(39),o=i(41),nt=i(11),y=i(40),p=y.RETURN,s=function(n){if(null!=n)return e(n)},u=function(n){var t=n._c;t&&(n._c=void 0,t())},f=function(n){return void 0===n._o},w=function(n){f(n)||(n._o=void 0,u(n))},b=function(n,t){h(n);this._c=void 0;this._o=n;n=new c(this);try{var i=t(n),r=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){r.unsubscribe()}:e(i),this._c=i)}catch(t){return void n.error(t)}f(this)&&u(this)},c,r;b.prototype=o({},{unsubscribe:function(){w(this)}});c=function(n){this._s=n};c.prototype=o({},{next:function(n){var t=this._s,i,r;if(!f(t)){i=t._o;try{if(r=s(i.next),r)return r.call(i,n)}catch(n){try{w(t)}finally{throw n;}}}},error:function(n){var t=this._s,i,r;if(f(t))throw n;i=t._o;t._o=void 0;try{if(r=s(i.error),!r)throw n;n=r.call(i,n)}catch(n){try{u(t)}finally{throw n;}}return u(t),n},complete:function(n){var t=this._s,i,r;if(!f(t)){i=t._o;t._o=void 0;try{r=s(i.complete);n=r?r.call(i,n):void 0}catch(n){try{u(t)}finally{throw n;}}return u(t),n}}});r=function(n){g(this,r,"Observable","_f")._f=e(n)};o(r.prototype,{subscribe:function(n){return new b(n,this._f)},forEach:function(n){var t=this;return new(d.Promise||k.Promise)(function(i,r){e(n);var u=t.subscribe({next:function(t){try{return n(t)}catch(n){r(n);u.unsubscribe()}},error:r,complete:i})})}});o(r,{from:function(n){var i="function"==typeof this?this:r,u=s(h(n)[v]),t;return u?(t=h(u.call(n)),t.constructor===i?t:new i(function(n){return t.subscribe(n)})):new i(function(t){var i=!1;return a(function(){if(!i){try{if(y(n,!1,function(n){if(t.next(n),i)return p})===p)return}catch(n){if(i)throw n;return void t.error(n)}t.complete()}}),function(){i=!0}})},of:function(){for(var n=0,i=arguments.length,t=new Array(i);n<i;)t[n]=arguments[n++];return new("function"==typeof this?this:r)(function(n){var i=!1;return a(function(){if(!i){for(var r=0;r<t.length;++r)if(n.next(t[r]),i)return;n.complete()}}),function(){i=!0}})}});nt(r.prototype,v,function(){return this});l(l.G,{Observable:r});i(38)("Observable")},function(n,t,i){var u=i(2),r=i(0),e=i(60),o=[].slice,s=/MSIE .\./.test(e),f=function(n){return function(t,i){var r=arguments.length>2,u=!!r&&o.call(arguments,2);return n(r?function(){("function"==typeof t?t:Function(t)).apply(this,u)}:t,i)}};r(r.G+r.B+r.F*s,{setTimeout:f(u.setTimeout),setInterval:f(u.setInterval)})},function(n,t,i){var r=i(0),u=i(90);r(r.G+r.B,{setImmediate:u.set,clearImmediate:u.clear})},function(n,t,i){for(var o=i(87),b=i(34),k=i(12),d=i(2),s=i(11),h=i(46),c=i(5),l=c("iterator"),a=c("toStringTag"),v=h.Array,y={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=b(y),e=0;e<p.length;e++){var u,f=p[e],g=y[f],w=d[f],r=w&&w.prototype;if(r&&(r[l]||s(r,l,v),r[a]||s(r,a,f),h[f]=v,g))for(u in o)r[u]||k(r,u,o[u],!0)}},function(n,t,i){(function(t){!function(t){"use strict";function tt(n,t,r,u){var e=t&&t.prototype instanceof w?t:w,f=Object.create(e.prototype),o=new k(u||[]);return f._invoke=function(n,t,r){var u="suspendedStart";return function(f,e){var h,s,o;if("executing"===u)throw new Error("Generator is already running");if("completed"===u){if("throw"===f)throw e;return ut()}for(r.method=f,r.arg=e;;){if(h=r.delegate,h&&(s=rt(h,r),s)){if(s===i)continue;return s}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===u)throw u="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);if(u="executing",o=p(n,t,r),"normal"===o.type){if(u=r.done?"completed":"suspendedYield",o.arg===i)continue;return{value:o.arg,done:r.done}}"throw"===o.type&&(u="completed",r.method="throw",r.arg=o.arg)}}}(n,r,o),f}function p(n,t,i){try{return{type:"normal",arg:n.call(t,i)}}catch(n){return{type:"throw",arg:n}}}function w(){}function a(){}function e(){}function it(n){["next","throw","return"].forEach(function(t){n[t]=function(n){return this._invoke(t,n)}})}function v(n){function i(t,r,f,e){var h=p(n[t],n,r),s,o;if("throw"!==h.type)return s=h.arg,o=s.value,o&&"object"==typeof o&&u.call(o,"__await")?Promise.resolve(o.__await).then(function(n){i("next",n,f,e)},function(n){i("throw",n,f,e)}):Promise.resolve(o).then(function(n){s.value=n;f(s)},e);e(h.arg)}var r;"object"==typeof t.process&&t.process.domain&&(i=t.process.domain.bind(i));this._invoke=function(n,t){function u(){return new Promise(function(r,u){i(n,t,r,u)})}return r=r?r.then(u,u):u()}}function rt(n,t){var f=n.iterator[t.method],u,r;if(void 0===f){if(t.delegate=null,"throw"===t.method){if(n.iterator.return&&(t.method="return",t.arg=void 0,rt(n,t),"throw"===t.method))return i;t.method="throw";t.arg=new TypeError("The iterator does not provide a 'throw' method")}return i}return(u=p(f,n.iterator,t.arg),"throw"===u.type)?(t.method="throw",t.arg=u.arg,t.delegate=null,i):(r=u.arg,r?r.done?(t[n.resultName]=r.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,i):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,i))}function et(n){var t={tryLoc:n[0]};1 in n&&(t.catchLoc=n[1]);2 in n&&(t.finallyLoc=n[2],t.afterLoc=n[3]);this.tryEntries.push(t)}function b(n){var t=n.completion||{};t.type="normal";delete t.arg;n.completion=t}function k(n){this.tryEntries=[{tryLoc:"root"}];n.forEach(et,this);this.reset(!0)}function d(n){var t,i,r;if(n){if(t=n[s],t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length))return i=-1,r=function t(){for(;++i<n.length;)if(u.call(n,i))return t.value=n[i],t.done=!1,t;return t.value=void 0,t.done=!0,t},r.next=r}return{next:ut}}function ut(){return{value:void 0,done:!0}}var g=Object.prototype,u=g.hasOwnProperty,y="function"==typeof Symbol?Symbol:{},s=y.iterator||"@@iterator",ft=y.asyncIterator||"@@asyncIterator",h=y.toStringTag||"@@toStringTag",nt="object"==typeof n,r=t.regeneratorRuntime,i,c,l,o,f;r?nt&&(n.exports=r):((r=t.regeneratorRuntime=nt?n.exports:{}).wrap=tt,i={},c={},c[s]=function(){return this},l=Object.getPrototypeOf,o=l&&l(l(d([]))),o&&o!==g&&u.call(o,s)&&(c=o),f=e.prototype=w.prototype=Object.create(c),a.prototype=f.constructor=e,e.constructor=a,e[h]=a.displayName="GeneratorFunction",r.isGeneratorFunction=function(n){var t="function"==typeof n&&n.constructor;return!!t&&(t===a||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,e):(n.__proto__=e,h in n||(n[h]="GeneratorFunction")),n.prototype=Object.create(f),n},r.awrap=function(n){return{__await:n}},it(v.prototype),v.prototype[ft]=function(){return this},r.AsyncIterator=v,r.async=function(n,t,i,u){var f=new v(tt(n,t,i,u));return r.isGeneratorFunction(t)?f:f.next().then(function(n){return n.done?n.value:f.next()})},it(f),f[h]="Generator",f[s]=function(){return this},f.toString=function(){return"[object Generator]"},r.keys=function(n){var i=[];for(var t in n)i.push(t);return i.reverse(),function t(){for(;i.length;){var r=i.pop();if(r in n)return t.value=r,t.done=!1,t}return t.done=!0,t}},r.values=d,k.prototype={constructor:k,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!n)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(n){function i(t,i){return e.type="throw",e.arg=n,r.next=t,i&&(r.method="next",r.arg=void 0),!!i}var r,f,t,e,o,s;if(this.done)throw n;for(r=this,f=this.tryEntries.length-1;f>=0;--f){if(t=this.tryEntries[f],e=t.completion,"root"===t.tryLoc)return i("end");if(t.tryLoc<=this.prev)if(o=u.call(t,"catchLoc"),s=u.call(t,"finallyLoc"),o&&s){if(this.prev<t.catchLoc)return i(t.catchLoc,!0);if(this.prev<t.finallyLoc)return i(t.finallyLoc)}else if(o){if(this.prev<t.catchLoc)return i(t.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<t.finallyLoc)return i(t.finallyLoc)}}},abrupt:function(n,t){for(var f,r,o,e=this.tryEntries.length-1;e>=0;--e)if(f=this.tryEntries[e],f.tryLoc<=this.prev&&u.call(f,"finallyLoc")&&this.prev<f.finallyLoc){r=f;break}return r&&("break"===n||"continue"===n)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null),o=r?r.completion:{},o.type=n,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,i):this.complete(o)},complete:function(n,t){if("throw"===n.type)throw n.arg;return"break"===n.type||"continue"===n.type?this.next=n.arg:"return"===n.type?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):"normal"===n.type&&t&&(this.next=t),i},finish:function(n){for(var t,r=this.tryEntries.length-1;r>=0;--r)if(t=this.tryEntries[r],t.finallyLoc===n)return this.complete(t.completion,t.afterLoc),b(t),i},"catch":function(n){for(var i,r,u,t=this.tryEntries.length-1;t>=0;--t)if(i=this.tryEntries[t],i.tryLoc===n)return r=i.completion,"throw"===r.type&&(u=r.arg,b(i)),u;throw new Error("illegal catch attempt");},delegateYield:function(n,t,r){return this.delegate={iterator:d(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),i}})}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,i(66))},function(n,t,i){i(332);n.exports=i(18).RegExp.escape},function(n,t,i){var r=i(0),u=i(333)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(n){return u(n)}})},function(n){n.exports=function(n,t){var i=t===Object(t)?function(n){return t[n]}:t;return function(t){return String(t).replace(n,i)}}},function(n,t,i){"use strict";function k(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function g(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function nt(n){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function tt(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function it(n,t){return(it=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function yi(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(n){return!1}}();return function(){var i,r=a(n),u;return t?(u=a(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),pi(this,i)}}function pi(n,t){return!t||"object"!==nt(t)&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function a(n){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function rt(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function ft(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function wi(n){return function(n){if(Array.isArray(n))return v(n)}(n)||function(n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}(n)||function(n,t){if(n){if("string"==typeof n)return v(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return("Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i)?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?v(n,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()}function v(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function ot(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function ht(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function ct(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function at(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function yt(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function bt(n){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function kt(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function dt(n,t){return(dt=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function nr(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(n){return!1}}();return function(){var i,r=w(n),u;return t?(u=w(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),tr(this,i)}}function tr(n,t){return!t||"object"!==bt(t)&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function w(n){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function ni(n){return(ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function ti(n,t){return(ti=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function ir(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(n){return!1}}();return function(){var i,r=b(n),u;return t?(u=b(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),rr(this,i)}}function rr(n,t){return!t||"object"!==ni(t)&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function b(n){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function ri(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function ui(n,t,i){return t&&ri(n.prototype,t),i&&ri(n,i),n}function ei(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function oi(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function si(n,t,i){return t&&oi(n.prototype,t),i&&oi(n,i),n}var d,e,ut,et,st,y,lt,vt,s,gt,ii,o,fi,f;i.r(t);var hi={STATE_BUFFERING:"buffering",STATE_IDLE:"idle",STATE_COMPLETE:"complete",STATE_PAUSED:"paused",STATE_PLAYING:"playing",STATE_ERROR:"error",STATE_LOADING:"loading",STATE_STALLED:"stalled"},r=function(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],f=new CustomEvent(t,{detail:i,bubbles:r,cancelable:u});n.dispatchEvent(f)},ci=function(n,t,i,r,u){return'url("'.concat(n,'") -').concat(t,"px -").concat(i,"px / ").concat(r,"px ").concat(u,"px")},h=function(n){if(!n)return"00:00";var t=Math.floor(n/3600),i=Math.floor((n-3600*t)/60),r=Math.floor(n%60);return t?t.toString().padStart(2,"0")+":"+i.toString().padStart(2,"0")+":"+r.toString().padStart(2,"0"):i.toString().padStart(2,"0")+":"+r.toString().padStart(2,"0")},c=function(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},li=function(n){var t=Math.floor(100*n);return{x:t%10*160,y:90*Math.floor(t/10)}},l=function(){var n,t=!1;return n=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(n)||/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(n.substr(0,4)))&&(t=!0),t},ai=function(){return!!(document.fullScreen||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)},vi=function(n){return n<21?5:n<301?4:3};d=function(){function n(t){var i=this;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.element=document.querySelector(".".concat(t));this.loadedProgressEl=this.element.children[1];this.playProgressEl=this.element.children[2];this.mover=document.querySelector(".mover");this.dragging=!1;this.filmstrip=void 0;this.previous=0;this.drag=this.drag.bind(this);this.cancelDrag=this.cancelDrag.bind(this);this.setProgress=this.setProgress.bind(this);this.onInputDown=this.onInputDown.bind(this);this.getImage=this.getImage.bind(this);this.element.addEventListener("mousedown",this.onInputDown);this.element.addEventListener("touchstart",function(n){n.preventDefault();i.onInputDown(n)})}var t,i,u;return t=n,(i=[{key:"setFilmstrip",value:function(n){this.loaded=!1;this.mover.style.border="0px";this.filmstrip=n}},{key:"getImage",value:function(){var t=this,n;this.loaded||(this.mover.style.width="0%",n=new Image,n.src=this.filmstrip,this.mover.style.width="0%",n.onload=function(){t.mover.style.border=n.width>=2?"2px solid white":"0px";n.width>=2&&(t.mover.style.left=t.mover.offsetLeft-60+"px",t.mover.style.width="100%")},this.loaded=!0)}},{key:"update",value:function(n){var t,i,r;if(!vpPlayer.dragging){if(n.isLive&&n.seekToLive)return this.setProgress(100);t=n.currentTime-this.previous;this.previous=n.currentTime;i=n.currentTime/n.duration*100;r=n.buffered;this.playProgressEl.style.transition=Math.abs(t)>1?"":"250ms linear";this.playProgressEl.style.width="".concat(i,"%");this.loadedProgressEl.style.width="".concat(r,"%")}}},{key:"setProgress",value:function(n){this.playProgressEl.style.width="".concat(n,"%")}},{key:"onInputDown",value:function(n){n.preventDefault();this.playProgressEl.style.transition="";c()&&vpPlayer.player.videoContainer.classList.contains("vp-live")||(document.addEventListener("touchmove",this.drag,{passive:!0}),document.addEventListener("touchend",this.cancelDrag),document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.cancelDrag))}},{key:"drag",value:function(n){var o;vpPlayer.dragging=!0;this.playProgressEl.style.transition="";var i=this.element.getBoundingClientRect(),r=i.x,t=i.width,u="touchmove"===n.type?n.touches[0].clientX:n.clientX,f=Math.min(Math.max(u-r,0),t),e=this.mover.firstElementChild.offsetWidth;vpPlayer.player.videoContainer.classList.add("vp-controls-hover");o=Math.min(Math.max(u-r-e/2,0),t-e);this.mover.style.left=o+"px";this.showFilmstrip(f/t,this.filmstrip);this.setProgress(f/t*100)}},{key:"cancelDrag",value:function(n){vpPlayer.dragging=!1;window.dragEvent=!1;var t=this.element.getBoundingClientRect(),i={x:t.x,width:t.width};i.clientX="touchend"===n.type?n.changedTouches[0].clientX:n.clientX;r(this.element,"seeking",i);document.removeEventListener("mousemove",this.drag);document.removeEventListener("mouseup",this.cancelDrag);document.removeEventListener("touchmove",this.drag);document.removeEventListener("touchend",this.cancelDrag);vpPlayer.player.videoContainer.classList.remove("vp-controls-hover")}},{key:"showFilmstrip",value:function(n,t){var i,r;(this.getImage(),vpPlayer.player.videoContainer.classList.contains("vp-live"))?i="-"+h((vpPlayer.liveSyncPosition||vpPlayer.player.video.duration)*(1-n)):(i=h(vpPlayer.player.video.duration*n),r=li(n),this.mover.style.background=ci(t,r.x,r.y,1600,900));this.mover.firstElementChild.textContent=i}}])&&k(t.prototype,i),u&&k(t,u),n}();e=function(n){function t(n){var i;return function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t),(i=f.call(this)).element=document.querySelector(".".concat(n)),i}!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}});t&&it(n,t)}(t,n);var i,r,u,f=yi(t);return i=t,(r=[{key:"enable",value:function(){this.element.style.display="flex"}},{key:"disable",value:function(){this.element.style.display="none"}},{key:"update",value:function(){}}])&&tt(i.prototype,r),u&&tt(i,u),t}(function(){function n(){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n)}var t,i,r;return t=n,(i=[{key:"update",value:function(){console.log("Updating")}}])&&g(t.prototype,i),r&&g(t,r),n}());ut=function(){function n(t){var i=this;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.volumeButton=new e("vp-volume");this.element=document.querySelector(".".concat(t));this.slider=this.element.firstElementChild;this.progress=this.element.lastElementChild;this.muteButton=document.querySelector("#mute");this.dragging=!1;this.drag=this.drag.bind(this);this.cancelDrag=this.cancelDrag.bind(this);this.setProgress=this.setProgress.bind(this);this.onInputDown=this.onInputDown.bind(this);this.element.addEventListener("mousedown",this.onInputDown);this.element.addEventListener("touchstart",function(n){n.preventDefault();i.onInputDown(n)});this.muteButton.addEventListener("click",function(){vpPlayer.player.isAdPlaying?i.toggleVastMute():r(i.muteButton,"toggle-mute",{})})}var t,i,u;return t=n,(i=[{key:"toggleVastMute",value:function(){0!=vpPlayer.vastService.adsManager.getVolume()?(vpPlayer.vastService.adsManager.setVolume(0),this.muteButton.firstElementChild.className="icon-sound-mute"):(vpPlayer.vastService.adsManager.setVolume(.5),this.muteButton.firstElementChild.className="icon-sound_new");r(this.muteButton,"toggle-mute",{})}},{key:"setProgress",value:function(n){this.progress.style.width="".concat(n,"%")}},{key:"onInputDown",value:function(){document.addEventListener("touchmove",this.drag);document.addEventListener("touchend",this.cancelDrag);document.addEventListener("mousemove",this.drag);document.addEventListener("mouseup",this.cancelDrag)}},{key:"drag",value:function(n){this.dragging=!0;var t=this.element.getBoundingClientRect(),i=t.x,u=t.width,f="touchmove"===n.type?n.touches[0].clientX:n.clientX;document.querySelector(".vp-volume--wrapper").classList.add("volume-seek");r(this.element,"volume-change",{x:i,width:u,clientX:f})}},{key:"cancelDrag",value:function(){this.dragging=!1;setTimeout(function(){document.querySelector(".vp-volume--wrapper").classList.remove("volume-seek")},2e3);document.removeEventListener("mousemove",this.drag);document.removeEventListener("mouseup",this.cancelDrag);document.removeEventListener("touchmove",this.drag);document.removeEventListener("touchend",this.cancelDrag)}},{key:"update",value:function(n){var i,t;if(t=0==n.volume?"icon-sound-mute":n.volume<=.5?"icon-sound-medium":"icon-sound_new",this.volumePercentage=n.muted?0:100*n.volume,t=n.muted?"icon-sound-mute":t,this.progress.style.width="".concat(this.volumePercentage,"%"),this.volumeButton.element.firstElementChild.className=t,vpPlayer.player.isAdPlaying||n.muted){if(this.muteButton.style.display="block",!vpPlayer.player.isAdPlaying)return this.muteButton.style.bottom="65px",void(this.muteButton.firstElementChild.className="icon-sound-mute");this.muteButton.style.bottom="38px";this.muteButton.firstElementChild.className=0==(null===(i=vpPlayer.vastService.adsManager)||void 0===i?void 0:i.getVolume())?"icon-sound-mute":"icon-sound_new"}else this.muteButton.style.display="none"}}])&&rt(t.prototype,i),u&&rt(t,u),n}();et=function(){function n(t){var i=this;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.element=document.querySelector(".".concat(t));this.current=this.element.querySelector(".vp-current");this.duration=this.element.querySelector(".vp-duration");this.live=this.element.querySelector(".vp-live");this.live.style.display="none";this.current.textContent="00:00 / ";this.displayRemaining=!1;this.current.addEventListener("click",function(){i.displayRemaining=!i.displayRemaining})}var t,i,r;return t=n,(i=[{key:"update",value:function(n){if(n.isLive)return this.live.style.display="flex",this.current.style.display="none",void(this.duration.style.display="none");this.live.style.display="none";this.current.style.display="block";this.duration.style.display="block";var t=h(n.currentTime)+" / ";this.displayRemaining&&(t="-"+h(n.duration-n.currentTime)+" / ");this.current.textContent=t;this.duration.textContent=h(n.duration)}},{key:"setDuration",value:function(n){this.duration.textContent=h(n)}}])&&ft(t.prototype,i),r&&ft(t,r),n}();st=function(){function n(){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.element=document.querySelector(".vp-overlay");this.thumbnail=document.querySelector(".vp-preview").firstElementChild;this.listOptions=["vp-settings-open","vp-quality-open","vp-subtitles-open","vp-subtitles-options-open"]}var t,i,r;return t=n,(i=[{key:"setThumbnail",value:function(n){this.thumbnail.style.backgroundImage="url('".concat(n.thumbnail,"'");(n.loading||n.paused)&&0==n.currentTime&&this.element.classList.add("show-preview")}},{key:"update",value:function(n){var t;(n.loading||n.paused)&&0==n.currentTime?this.element.classList.add("show-preview"):this.element.classList.remove("show-preview");n.showSettings?this.element.classList.add("vp-settings-open"):(t=this.element.classList).remove.apply(t,wi(this.listOptions))}}])&&ot(t.prototype,i),r&&ot(t,r),n}();y=function(){function n(t,i){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.index=t;this.data=i;this.item=document.createElement("div");this.onClick=this.onClick.bind(this);-1==this.index&&vpPlayer.player.hls.autoLevelEnabled?(this.item.classList.add("checked"),document.querySelector(".settings-item-selected").textContent=isNaN(this.data)?this.data:this.data+"p"):this.index!=vpPlayer.player.hls.nextLoadLevel||vpPlayer.player.hls.autoLevelEnabled||(this.item.classList.add("checked"),document.querySelector(".settings-item-selected").textContent=isNaN(this.data)?this.data:this.data+"p")}var t,i,u;return t=n,(i=[{key:"onClick",value:function(){this.item.classList.add("checked");this.getSiblings().forEach(function(n){return n.classList.remove("checked")});document.querySelector(".settings-item-selected").textContent=isNaN(this.data)?this.data:this.data+"p";r(this.item,"change-quality",this.index);r(this.item,"toggle-settings",{})}},{key:"getSiblings",value:function(){for(var t=[],n=this.item.parentNode.firstChild;n;)n!==this.item&&n.nodeType===Node.ELEMENT_NODE&&t.push(n),n=n.nextElementSibling||n.nextSibling;return t}},{key:"setResolution",value:function(){var n,t,i,r,u;1080==this.data?(n=document.createElement("span"),n.className="quality-label",n.textContent="HD",this.item.firstElementChild.appendChild(n)):1440==this.data?(t=document.createElement("span"),t.className="quality-label",t.textContent="2K",this.item.firstElementChild.appendChild(t)):2160==this.data?(i=document.createElement("span"),i.className="quality-label",i.textContent="4K",this.item.firstElementChild.appendChild(i)):720==this.data?(r=document.createElement("span"),r.className="quality-label",r.textContent="HD",this.item.firstElementChild.appendChild(r)):480==this.data&&(u=document.createElement("span"),u.className="quality-label",u.textContent="SD",this.item.firstElementChild.appendChild(u))}},{key:"render",value:function(){return this.item.classList.add("settings-item"),this.item.innerHTML='<div class="settings-item-title">'.concat(isNaN(this.data)?this.data:this.data+"p","<\/div>"),this.setResolution(),this.item.addEventListener("click",this.onClick),this.item}}])&&ht(t.prototype,i),u&&ht(t,u),n}();lt=function(){function n(t,i){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.index=t;this.track=i;this.item=document.createElement("div");this.onClick=this.onClick.bind(this)}var t,i,u;return t=n,(i=[{key:"onClick",value:function(){this.item.classList.add("checked");this.getSiblings().forEach(function(n){return n.classList.remove("checked")});document.querySelector(".subtitle .settings-item-selected").textContent=this.track.label;r(this.item,"subtitleChange",{id:this.index});r(this.item,"toggle-settings",{})}},{key:"getSiblings",value:function(){for(var t=[],n=this.item.parentNode.firstChild;n;)n!==this.item&&n.nodeType===Node.ELEMENT_NODE&&t.push(n),n=n.nextElementSibling||n.nextSibling;return t}},{key:"render",value:function(){return this.item.classList.add("settings-item"),this.item.innerHTML='<div class="settings-item-title">'.concat(this.track.label,"<\/div>"),this.item.addEventListener("click",this.onClick),this.item}}])&&ct(t.prototype,i),u&&ct(t,u),n}();vt=function(){function n(){var t=this;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.overlay=document.querySelector(".vp-overlay");this.selectedQuality=document.querySelector(".settings-item-selected");this.qualityBack=document.querySelector(".quality-holder > .settings-header");this.selectedSubtitle=document.querySelector(".settings-item.subtitle");this.qualityItem=document.querySelector(".settings-item.quality");this.subtitlesBack=document.querySelector(".subtitles-holder  .settings-header-title");this.subtitlesOptions=document.querySelector(".subtitles-holder .settings-item-option");this.subtitlesOptionsBack=document.querySelector(".subtitles-options-holder > .settings-header");this.captionsWrapper=document.querySelector(".captions-holder");this.captionsOff=document.querySelector(".subtitles-holder .settings-item");this.modal=document.querySelector(".vp-setting-modal");this.wrapper=document.querySelector(".settings-wrapper");this.autoplayToggle=document.querySelector("#autotoggle");this.qualityWrapper=document.querySelector(".quality-holder");this.autoplayToggle.addEventListener("change",function(){r(t.autoplayToggle,"toggle-autoplay",t.autoplayToggle.checked)});this.selectedQuality.addEventListener("click",function(){t.overlay.classList.add("vp-quality-open")});this.qualityBack.addEventListener("click",function(){t.overlay.classList.remove("vp-quality-open")});this.qualityItem.addEventListener("click",function(){t.overlay.classList.add("vp-quality-open")});this.selectedSubtitle.addEventListener("click",function(){t.overlay.classList.add("vp-subtitles-open")});this.subtitlesBack.addEventListener("click",function(){t.overlay.classList.remove("vp-subtitles-open")});this.captionsOff.addEventListener("click",function(){r(t.captionsOff,"subtitleChange",{id:-1});t.captionsWrapper.childNodes.forEach(function(n){n.classList.remove("checked")});document.querySelector(".subtitle .settings-item-selected").textContent="Off";r(t.captionsOff,"toggle-settings",{})})}var t,i,u;return t=n,(i=[{key:"renderQualities",value:function(n){var i,t,r,u;if(!(n.length<2)){for(i=this.qualityWrapper.firstElementChild,this.qualityWrapper.innerHTML="",this.qualityWrapper.appendChild(i),t=n.length-1;t>=0;t--)r=new y(t,n[t].height),this.qualityWrapper.appendChild(r.render());u=new y(-1,"Auto");this.qualityWrapper.appendChild(u.render())}}},{key:"renderSubtitles",value:function(n){var t=this;this.captionsWrapper.innerHTML="";n&&n.forEach(function(n,i){var r=new lt(i,n);t.captionsWrapper.append(r.render())})}},{key:"update",value:function(n){this.autoplayToggle.checked!=n.isAutoplay&&(this.autoplayToggle.checked=n.isAutoplay)}}])&&at(t.prototype,i),u&&at(t,u),n}();s=function(n){var t=document.querySelector(".vp-overlay-action"),r=document.querySelector(n).firstElementChild.className,i;t.firstElementChild.className=r;t.classList.remove("show");t.offsetWidth;t.classList.add("show");i=setTimeout(function(){t.classList.remove("show")},1500);clearTimeout(i)};var bi=function(){function n(){var t=this;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.wrapper=document.querySelector(".vp-next-video");this.progress=document.querySelector(".vp-next-video .progress");this.close=document.querySelector(".next-video-close");this.info=document.querySelector(".next-video-content-info");this.title=document.querySelector(".next-video-content-title");this.channel=document.querySelector(".next-video-content-channel");this.thumbnail=document.querySelector(".next-video-thumbnail");this.videoObject=void 0;this.showing=!1;this.progressWidth=0;this.animation=null;this.wrapper.addEventListener("click",function(){r(t.wrapper,"next",{media:vpPlayer.player.playlist[0]})});this.close.addEventListener("click",function(n){n.stopImmediatePropagation();r(t.wrapper,"toggle-autoplay",!1);t.showing=!1})}var t,i,u;return t=n,(i=[{key:"set",value:function(n){this.videoObject=n;this.thumbnail.style.background="url('".concat(n.thumbnail,"')");this.thumbnail.style.backgroundSize="contain";this.info.textContent=n.duration?n.duration:"";this.title.textContent=n.title?n.title:"";this.channel.textContent=n.channel?n.channel:"";this.showing=!0;this.animate()}},{key:"animate",value:function(){var n=this,t=vpPlayer.player.video.duration,i=vpPlayer.player.video.currentTime;this.progressWidth=10*(10-t+i);this.animation=setInterval(function(){n.progressWidth>=100?(clearInterval(n.animation),n.showing=!1):(n.progress.style.width="".concat(n.progressWidth,"%"),clearInterval(n.animation))},10)}},{key:"destroy",value:function(){clearInterval(this.animation);this.progressWidth=0;this.progress.style.width="0%"}}])&&yt(t.prototype,i),u&&yt(t,u),n}(),ki=function n(t){var i=this;return function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n),this.element=document.createElement("div"),this.element.className="related-card",this.element.innerHTML='\n        <a class="related-card-link">\n            <div class="related-card-wrapper">\n                <div class="related-card-img">\n                    <div class="badges"><span class="left"><\/span><span class="right">'.concat(t.duration,'<\/span><\/div>\n                <\/div>\n            <\/div>\n        <\/a>\n        <div class="related-card-content">\n            <div class="related-card-content-title">').concat(t.title,'<\/div>\n            <div class="related-card-content-channel">').concat(t.channel,"<\/div>\n        <\/div>"),this.element.dataset.entityId=t.entityId,this.element.querySelector(".related-card-img").style.background="url(".concat(t.thumbnail,")"),this.element.querySelector(".related-card-img").style.backgroundSize="contain",this.element.addEventListener("click",function(){r(i.element,"next",{media:t})}),this.element},p={playPauseButton:{playing:"icon-pause",paused:"icon-play",ended:"icon-replay"}},pt={controls:{play:"Play",pause:"Pause",next:"Next",replay:"Replay",volume:"Volume",settings:"Settings",theater:"Theater",fullScreen:"Full Screen",chromecast:"Chromecast",airplay:"Air Play"},settings:{quality:"Quality",subtitles:"Subtitles"}},di={controls:{play:"Luaj",pause:"Pauzo",next:"Në vazhdim",replay:"Shiko përsëri",volume:"Zëri",settings:"Veglat",theater:"Zmadho ekranin",fullScreen:"Ekran i plotë",chromecast:"Chromecast",airplay:"Air Play"},settings:{quality:"Kualiteti",subtitles:"Titrat"}},gi={controls:{play:"Sehrát",pause:"Pauza",next:"Další",replay:"Přehrát",volume:"Hlasitost",settings:"Nastaveni",theater:"Kino režim",fullScreen:"Celá obrazovka",chromecast:"Chromecast",airplay:"Air Play"},settings:{quality:"Kvalita",subtitles:"Titulky"}},wt=function(n){var t=null;switch(n){case"en":t=pt;break;case"al":t=di;break;case"cz":t=gi;break;default:t=pt}return t};gt=function(n){function t(n){var i;return function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t),(i=e.call(this,n)).main=document.querySelectorAll(".".concat(n))[1],i.element.firstElementChild.addEventListener("click",function(){i.element.classList.remove("effect");i.element.offsetWidth;i.element.classList.add("effect");r(i.element,"play-pause",{})}),i}!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}});t&&dt(n,t)}(t,n);var i,u,f,e=nr(t);return i=t,(u=[{key:"update",value:function(n){this.locale||(this.locale=wt(vpPlayer.player.locale));var t=n.paused?p.playPauseButton.paused:p.playPauseButton.playing;t=n.ended?p.playPauseButton.ended:t;this.element.firstElementChild.className=t;this.main.firstElementChild.className=t;this.main.title=n.paused?this.locale.controls.play:this.locale.controls.pause;this.main.title=n.ended?this.locale.controls.replay:this.main.title}}])&&kt(i.prototype,u),f&&kt(i,f),t}(e);ii=function(n){function t(n){var u;return function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t),(u=i.call(this,n)).main=document.querySelectorAll(".".concat(n))[1],u.element.firstElementChild.addEventListener("click",function(){r(u.element,"next",{media:vpPlayer.player.playlist[0]});u.element.classList.remove("effect");u.element.offsetWidth;u.element.classList.add("effect")}),u}!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}});t&&ti(n,t)}(t,n);var i=ir(t);return t}(e);o={LIVE:"live",SLOW_TV:"slow_tv",REAL_TIME:"realtime",PERMANENT:"permanent"};fi=function(){function n(){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.pendingHide=void 0;this.filmstrip=void 0;this.pendingClick=0;this.main=document.querySelector(".vp-player");this.overlayAction=document.querySelector(".vp-overlay-play-pause");this.controls=document.querySelector(".vp-controls--bottom");this.playerOverlay=document.querySelector(".vp-overlay");this.mover=document.querySelector(".mover");this.relatedWrapper=document.querySelector(".vp-player-related-wrapper");this.screenControls=document.querySelector(".vp-controls--middle-holder");this.seekbar=new d("vp-bar-holder");this.playPauseButton=new gt("vp-play-pause");this.rewindButton=new e("vp-rewind");this.forwardButton=new e("vp-forward");this.nextButton=new ii("vp-next");this.settingsButton=new e("vp-settings");this.fullScreenButton=new e("vp-fullscreen");this.theaterButton=new e("vp-theater");this.volumeControl=new ut("vp-volume-slider");this.timer=new et("vp-text");this.overlay=new st;this.settings=new vt;this.nextVideo=new bi;this.bindMethods();this.addEventListeners()}return ui(n,null,[{key:"HIDE_TIMEOUT",get:function(){return 700}}]),ui(n,[{key:"init",value:function(n,t){var i=l()?"add":"remove",r=n.showControls?"remove":"add";if(this.overlay.setThumbnail(n),this.main.classList[i]("vp-mobile"),this.main.classList[r]("vp-player-inactive"),this.main.classList.remove("vp-ended"),this.filmstrip=n.filmstrip,this.seekbar.setFilmstrip(this.filmstrip),this.relatedWrapper.innerHTML="",this.settings.renderQualities(n.qualityLevels),this.settings.renderSubtitles(n.tracks),t&&this.setupUI(t.controls),n.isLive)switch(this.main.classList.add("vp-live"),n.liveState){case o.LIVE:case o.REAL_TIME:this.main.classList.add("vp-realtime");break;case o.SLOW_TV:case o.PERMANENT:this.main.classList.remove("vp-realtime");break;default:this.main.classList.remove("vp-realtime")}else this.main.classList.remove("vp-live"),this.main.classList.remove("vp-realtime")}},{key:"setupUI",value:function(n){if(n)for(var t in n)this.hasOwnProperty(t)?n[t]||this[t].disable():console.error("Wrong key provided for UI controls!",t)}},{key:"destroy",value:function(n){if(!n.isAutoplay&&n.showNextVideo){this.main.classList.add("vp-ended");this.relatedWrapper.innerHTML="";for(var t=0;t<n.playlist.length;t++)n.playlist[t]&&this.relatedWrapper.appendChild(new ki(n.playlist[t]))}}},{key:"setQualites",value:function(n){this.settings.renderQualities(n.qualityLevels)}},{key:"setSubtitles",value:function(n){this.settings.renderSubtitles(n)}},{key:"onSeek",value:function(n){var t=this.seekbar.element.getBoundingClientRect(),i={x:t.x,width:t.width,clientX:n.clientX,clientY:n.clientY};r(this.controls,"seeking",i)}},{key:"onVolumeChange",value:function(n){var t=this.volumeControl.slider.getBoundingClientRect(),i={x:t.x,width:t.width,clientX:n.clientX,clientY:n.clientY};r(this.controls,"volume-change",i)}},{key:"onInputMove",value:function(n){var r=this,i,s;if(n.preventDefault(),!this.playerOverlay.classList.contains("vp-settings-open")&&!(vpPlayer.dragging||c()&&this.main.classList.contains("vp-live"))){var u=this.seekbar.element.getBoundingClientRect(),f=u.x,e=u.width,o="touchmove"===n.type?n.touches[0].clientX:n.clientX,t=(o-f)/e;t<0||t>100||(i=document.querySelector(".mover div").offsetWidth,this.main.classList.add("vp-controls-hover"),s=Math.min(Math.max(o-f-i/2,0),e-i),this.mover.style.left=s+"px",this.seekbar.element.addEventListener("touchend",function(){return r.main.classList.remove("vp-controls-hover")}),this.seekbar.element.addEventListener("mouseout",function(){return r.main.classList.remove("vp-controls-hover")}),this.seekbar.showFilmstrip(t,this.filmstrip))}}},{key:"onClick",value:function(n){for(var i,t=n.target;!(t instanceof HTMLButtonElement)&&t;)t=t.parentElement;if(t){if(i=t.dataset.type,n.stopImmediatePropagation(),"next"==i)return void r(this.controls,i,{media:vpPlayer.player.playlist[0]});r(this.controls,i,{})}}},{key:"onTouch",value:function(n){this.playerOverlay.classList.contains("vp-settings-open")||this.main.classList.contains("vp-controls-hover")||this.main.classList.contains("vp-pause")||this.playPauseButton.element.contains(n.target)||this.nextButton.element.contains(n.target)||this.controls.contains(n.target)||document.querySelector("#mute").contains(n.target)||this.relatedWrapper.contains(n.target)||this.nextVideo.wrapper.contains(n.target)||(n.preventDefault(),this.main.classList.contains("vp-player-inactive")?this.showControls():this.hideControls(0))}},{key:"onOverlayActionClick",value:function(n){this.settings.wrapper.contains(n.target)||(this.overlay.element.classList.contains("vp-settings-open")?r(this.main,"toggle-settings",{}):this.controls.contains(n.target)||(this.showControls(),s(".vp-play-pause"),r(this.controls,"play-pause",{})))}},{key:"onDoubleClick",value:function(){r(this.controls,"toggle-fullscreen",{})}},{key:"cancelPendingHide",value:function(){this.pendingHide&&(clearTimeout(this.pendingHide),this.pendingHide=void 0)}},{key:"showControls",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.cancelPendingHide();this.main.classList.remove("vp-player-inactive");t||this.hideControls(5*n.HIDE_TIMEOUT)}},{key:"hideControls",value:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.HIDE_TIMEOUT;Number.isFinite(i)||(i=n.HIDE_TIMEOUT);this.cancelPendingHide();0!=i?this.pendingHide=setTimeout(function(){t.playerOverlay.classList.contains("vp-settings-open")||t.main.classList.contains("vp-controls-hover")||t.main.classList.contains("vp-pause")||t.main.classList.add("vp-player-inactive")},i):this.main.classList.add("vp-player-inactive")}},{key:"hideOverlayControlsMobile",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.HIDE_TIMEOUT;this.main.classList.remove("vp-player-inactive");setTimeout(function(){this.main.classList.add("vp-player-inactive")},t)}},{key:"bindMethods",value:function(){this.onClick=this.onClick.bind(this);this.onDoubleClick=this.onDoubleClick.bind(this);this.onTouch=this.onTouch.bind(this);this.onSeek=this.onSeek.bind(this);this.onInputMove=this.onInputMove.bind(this);this.onVolumeChange=this.onVolumeChange.bind(this);this.onOverlayActionClick=this.onOverlayActionClick.bind(this);this.setupUI=this.setupUI.bind(this)}},{key:"addEventListeners",value:function(){var n=this;this.main.addEventListener("mousemove",function(){return n.showControls()});this.main.addEventListener("touchmove",function(){return n.showControls()});this.main.addEventListener("mouseout",function(){return n.hideControls()});this.main.addEventListener("touchstart",this.onTouch);this.controls.addEventListener("click",this.onClick);this.volumeControl.element.addEventListener("click",this.onVolumeChange);this.overlayAction.addEventListener("click",this.onOverlayActionClick);this.overlayAction.addEventListener("dblclick",this.onDoubleClick);this.seekbar.element.addEventListener("click",this.onSeek);this.seekbar.element.addEventListener("mousemove",this.onInputMove);this.seekbar.element.addEventListener("touchmove",this.onInputMove)}},{key:"update",value:function(n){var t=n.showControls?"remove":"add",i=n.loading?"add":"remove",r=n.isFullScreen?"icon-minimalize":"icon-fullscreen_new";this.main.classList[i]("vp-loading");n.showControls||this.main.classList[t]("vp-player-inactive");n.showNextVideo&&n.isAutoplay?(this.nextVideo.set(n.playlist[0]),this.main.classList.add("next-video-show")):(this.main.classList.remove("next-video-show"),this.nextVideo.destroy());n.ended||this.main.classList.remove("vp-ended");this.fullScreenButton.element.firstElementChild.className=r;this.overlay.update(n);this.playPauseButton.update(n);this.seekbar.update(n);this.volumeControl.update(n);this.timer.update(n);this.settings.update(n)}}]),n}();var ur=function(){function n(t){if(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n),!t)throw new Error("No video container provided!");this.videoContainer=t;this.addListeners()}var t,i,u;return t=n,(i=[{key:"addListeners",value:function(){var n=this;document.addEventListener("keydown",function(t){if(document.querySelector("#player")===document.activeElement||ai())switch(t.preventDefault(),t.stopImmediatePropagation(),t.code){case"Space":s(".vp-play-pause");r(n.videoContainer,"play-pause");break;case"KeyM":r(n.videoContainer,"toggle-mute");s(".vp-volume");break;case"ArrowLeft":r(n.videoContainer,"rewind");break;case"ArrowRight":r(n.videoContainer,"forward");break;case"ArrowUp":r(n.videoContainer,"volume-up");s(".vp-volume");break;case"ArrowDown":r(n.videoContainer,"volume-down");s(".vp-volume");break;case"KeyF":r(n.videoContainer,"toggle-fullscreen");s(".vp-fullscreen")}})}}])&&ei(t.prototype,i),u&&ei(t,u),n}(),u={debug:!1,maxBufferSize:20971520,maxLoadingDelay:2,nudgeMaxRetry:2,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:2e3,xhrSetup:function(n,t){vpPlayer.player.videoObject.jwtoken&&""!==vpPlayer.player.videoObject.jwtoken&&(n.open("GET",t,!0),n.setRequestHeader("Authorization","Bearer "+vpPlayer.player.videoObject.jwtoken))}},fr=i(130);var er=function(){function n(t,i){if(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n),!t)throw new Error("No video element provided");this.hls=null;this.video=t;this.playlist=i.playlist;this.config=i.config;this.videoIndex=0;this.videoObject=i.video||this.playlist[this.videoIndex];this.videoContainer=this.video.parentElement;this.videoControls=new fi;this.keyboardController=new ur(this.videoContainer);this.state=hi.STATE_IDLE;this.buffered=0;this.loading=!0;this.qualityLevels=[];this.seekToLive=!0;this.isAutoplay=!0;this.showSettings=!1;this.showNextVideo=!1;this.showControls=this.videoObject.showControls;this.isAdPlaying=!1;this.autoplayAllowed=!1;this.autoplayRequiresMuted=!1;this.callbacks={};this.casting=!1;this.locale=i.config.lang;u.debug=i.config.debug;this.bindMethods();this.addEventListeners()}return si(n,null,[{key:"SKIP_TIME",get:function(){return 10}},{key:"isFullScreen",get:function(){return!!(document.isFullScreen||document.webkitIsFullScreen||document.fullscreen)}},{key:"supportHLS",get:function(){return Hls.isSupported()}}]),si(n,[{key:"init",value:function(){this.handleLiveType();this.attachMedia();this.addSubtitles();this.videoControls.init(this.getState(),this.config)}},{key:"attachMedia",value:function(){var n=this;Hls.isSupported()?(this.hls=new Hls(u),this.hls.attachMedia(this.video),this.hls.on(Hls.Events.MEDIA_ATTACHED,function(){n.hls.startLevel=n.videoObject.live?0:vi(n.videoObject.duration);n.hls.loadSource(n.videoObject.file);n.seekToLive=!0}),this.hls.on(Hls.Events.MANIFEST_PARSED,function(){n.start();n.qualityLevels=n.hls.levels;n.hls.loadLevel=null!=n.config.quality?Math.min(n.config.quality,n.hls.levels.length-1):-1;n.seekToLive=!0}),this.hls.on(Hls.Events.ERROR,function(t,i){if("levelLoadError"===i.details&&(n.hls.levels.splice(i.context.level,1),n.qualityLevels=n.hls.levels,n.videoControls.setQualites(n.getState())),i.fatal)switch(i.type){case Hls.ErrorTypes.NETWORK_ERROR:console.log("fatal network error encountered, try to recover");n.hls.startLoad();break;case Hls.ErrorTypes.MEDIA_ERROR:console.log("fatal media error encountered, try to recover");n.hls.recoverMediaError();break;default:n.hls.destroy()}})):this.video.canPlayType("application/vnd.apple.mpegurl")&&(this.video.src=this.videoObject.file,this.video.playsInline=!0,this.start())}},{key:"addSubtitles",value:function(){var n=this;this.video.innerHTML="";this.videoObject.tracks&&this.videoObject.tracks.forEach(function(t){var i=document.createElement("track");i.kind="captions";i.label=t.label;i.srclang=t.lang;i.src=t.file;i.addEventListener("load",function(){this.mode="hidden"});n.video.appendChild(i)})}},{key:"start",value:function(){this.checkAutoplay();r(this.video,"loaded",{})}},{key:"onAutoplayCheck",value:function(){this.videoControls.setQualites(this.getState());this.autoplayAllowed&&this.handlePreroll()}},{key:"checkAutoplay",value:function(){var n=this;if(this.casting)return this.onPause(),vpPlayer.castService.loadMedia(),void this.updateVideoControlsWithPlayerState();this.video.play().then(function(){n.autoplayAllowed=!0;n.autoplayRequiresMuted=!1;n.onPause();n.onAutoplayCheck()}).catch(function(){n.toggleMute();n.video.play().then(function(){n.onPause();n.autoplayAllowed=!0;n.autoplayRequiresMuted=!0;n.onAutoplayCheck()}).catch(function(){n.autoplayAllowed=!1;n.autoplayRequiresMuted=!1;n.onAutoplayCheck();n.onPause()})})}},{key:"handlePreroll",value:function(){var n,t,i;(null===(n=this.videoObject.ad)||void 0===n?void 0:n.preroll)&&vpPlayer.vastService?(i=this.videoObject.ad.cuePoints.indexOf(Math.floor(this.video.currentTime)),this.videoObject.ad.cuePoints.splice(i,1),null===(t=vpPlayer.vastService)||void 0===t||t.load(this.videoObject.ad.preroll.count),this.videoObject.ad.preroll=null):this.onPlay();this.videoObject.currentTime&&(this.video.currentTime=this.videoObject.currentTime)}},{key:"setPreferences",value:function(){}},{key:"togglePlay",value:function(){this.casting?vpPlayer.castService.togglePlay():this.video.paused?this.onPlay():this.onPause()}},{key:"toggleMute",value:function(){if(this.casting)vpPlayer.castService.toggleMute();else{if(0===this.video.volume&&!this.video.muted)return this.video.volume=.3;this.video.muted=!this.video.muted;this.updateVideoControlsWithPlayerState()}}},{key:"onPlay",value:function(){var n=this;this.video.play().then(function(){return n.updateVideoControlsWithPlayerState()}).catch(function(n){return console.log(n)})}},{key:"onPause",value:function(){this.video.pause();this.updateVideoControlsWithPlayerState()}},{key:"onReplay",value:function(){var n=this;this.video.currentTime=0;this.casting&&vpPlayer.castService.seek(0);this.video.play().then(function(){return n.updateVideoControlsWithPlayerState()}).catch(function(n){return console.warn(n)})}},{key:"onForward",value:function(){this.video.ended||(this.video.currentTime=Math.min(this.video.currentTime+n.SKIP_TIME,this.video.duration),this.updateVideoControlsWithPlayerState())}},{key:"onRewind",value:function(){this.videoObject.live&&this.seekToLive&&(this.video.parentElement.classList.add("vp-live-seeked-back"),this.seekToLive=!1);this.video.currentTime=Math.max(this.video.currentTime-n.SKIP_TIME,0);this.updateVideoControlsWithPlayerState()}},{key:"onNext",value:function(){!this.playlist||this.videoIndex>=this.playlist.length-1||(this.loading=!0,this.videoIndex++,this.playlist&&(this.videoObject=this.playlist[this.videoIndex]),this.playNextVideo())}},{key:"playNextVideo",value:function(){var n;null===(n=vpPlayer.vastService)||void 0===n||n.destroy();this.callbacks={};this.handleLiveType();this.hls&&this.hls.destroy();this.attachMedia();this.addSubtitles();this.videoControls.init(this.getState())}},{key:"onEnd",value:function(n){this.isAutoplay?r(this.video,"next",{media:this.playlist[0]}):(this.showControls=!0,this.videoControls.destroy(this.getState()),r(this.video,"event",n))}},{key:"onCanPlay",value:function(){this.loading=!1;this.updateVideoControlsWithPlayerState()}},{key:"onSeek",value:function(n){this.videoObject.live&&this.seekToLive&&(this.video.parentElement.classList.add("vp-live-seeked-back"),this.seekToLive=!1);this.loading=!0;this.video.currentTime=this.videoObject.live?this.seekTo(n)*(this.hls.liveSyncPosition||this.video.duration):this.seekTo(n)*this.video.duration;r(this.video,"event",n);this.casting?vpPlayer.castService.seek(this.seekTo(n)*this.video.duration):this.updateVideoControlsWithPlayerState()}},{key:"onLiveSeek",value:function(){try{n.supportHLS?this.video.currentTime=Number.parseInt(this.hls.liveSyncPosition||this.video.duration):isFinite(this.video.duration)?this.video.currentTime=this.video.duration:this.video.load()}catch(n){return void console.log(n)}this.seekToLive=!0;this.video.parentElement.classList.remove("vp-live-seeked-back");this.video.paused&&this.onPlay()}},{key:"seekTo",value:function(n){if(n.detail.clientX<n.detail.x)return 0;if(n.detail.clientX-n.detail.x>n.detail.width)return 1;var t=n.detail.width;return(n.detail.clientX-n.detail.x)/t}},{key:"onVolumeChange",value:function(n){this.casting?vpPlayer.castService.setVolume(this.seekTo(n)):(this.video.muted&&(this.video.muted=!1),this.video.volume=this.seekTo(n),this.updateVideoControlsWithPlayerState())}},{key:"onVolumeUp",value:function(){if(!this.casting){if(this.video.muted&&(this.video.muted=!1,this.video.volume=0),this.video.volume>.95)return this.video.volume=1;this.video.volume+=.05;this.updateVideoControlsWithPlayerState()}}},{key:"onVolumeDown",value:function(){if(!this.casting){if(this.video.volume<.05)return this.video.volume=0;this.video.volume-=.05;this.updateVideoControlsWithPlayerState()}}},{key:"onProgress",value:function(){var t=this.video.duration,n;if(t>0)for(n=0;n<this.video.buffered.length;n++)if(this.video.buffered.start(this.video.buffered.length-1-n)<this.video.currentTime){this.buffered=this.video.buffered.end(this.video.buffered.length-1-n)/t*100;break}}},{key:"onBuffering",value:function(n){this.loading=!0;r(this.video,"event",n)}},{key:"handleLiveType",value:function(){switch(this.videoObject.liveType){case"realtime":this.liveState=o.REAL_TIME;u.liveSyncDurationCount=1;u.liveMaxLatencyDurationCount=3;break;case"live":this.liveState=o.LIVE;u.liveSyncDurationCount=3;u.liveMaxLatencyDurationCount=6;break;case"permanent":this.liveState=o.PERMANENT;u.liveSyncDurationCount=3;u.liveMaxLatencyDurationCount=1/0;break;case"slowtv":this.liveState=o.SLOW_TV;u.liveSyncDurationCount=5;u.liveMaxLatencyDurationCount=1/0;break;default:this.liveState=null;u.liveSyncDurationCount=3;u.liveMaxLatencyDurationCount=1/0}}},{key:"onFullScreenToggle",value:function(){this.casting||(n.isFullScreen?this.exitFullScreen():this.enterFullScreen())}},{key:"enterFullScreen",value:function(){return this.videoContainer.requestFullscreen?this.videoContainer.requestFullscreen():this.videoContainer.webkitRequestFullscreen?this.videoContainer.webkitRequestFullscreen():this.videoContainer.mozRequestFullscreen?this.videoContainer.mozRequestFullscreen():this.videoContainer.msRequestFullscreen?this.videoContainer.msRequestFullscreen():void this.video.webkitEnterFullscreen()}},{key:"exitFullScreen",value:function(){return document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreenn():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():void this.video.webkitExitFullscreen()}},{key:"onSettingsToggle",value:function(){this.casting||(this.video.ended?this.showSettings=!1:(this.showSettings=!this.showSettings,this.updateVideoControlsWithPlayerState()))}},{key:"onSettingsAutoplayToggle",value:function(n){this.casting||(this.isAutoplay=n.detail,this.updateVideoControlsWithPlayerState())}},{key:"onQualityChange",value:function(n){if(this.config.quality=n.detail,n.detail>this.hls.currentLevel||n.detail>this.hls.loadLevel)return this.hls.currentLevel=n.detail,r(this.video,"event",{type:"levelSwitched"});this.hls.loadLevel=n.detail;r(this.video,"event",{type:"levelSwitched"})}},{key:"onCaptionChange",value:function(n){var u=n.detail.id,t,i;if(-1!==u){for(t=0;t<this.video.textTracks.length;t++)t===u?(this.video.textTracks[t].mode="showing",this.videoObject.tracks[t].checked=!0):(this.video.textTracks[t].mode="hidden",this.videoObject.tracks[t].checked=!1);r(this.video,"event",n)}else{for(i=0;i<this.video.textTracks.length;i++)this.video.textTracks[i].mode="hidden",this.videoObject.tracks[i].checked=!1;r(this.video,"event",n)}}},{key:"onTimeUpdate",value:function(n){if((this.loading=!1,r(this.video,"event",n),this.showNextVideo=this.video.currentTime+10>=this.video.duration&&!this.videoObject.live?!0:!1,this.callbacks.hasOwnProperty(Math.floor(this.video.currentTime))&&(this.callbacks[Math.floor(this.video.currentTime)](),delete this.callbacks[Math.floor(this.video.currentTime)]),this.videoObject.ad.preroll)||0==Object.keys(this.videoObject.ad))return this.updateVideoControlsWithPlayerState();if(this.videoObject.ad.cuePoints.includes(Math.floor(this.video.currentTime))){var t,i=this.videoObject.ad.cuePoints.indexOf(Math.floor(this.video.currentTime));if(this.videoObject.ad.cuePoints.splice(i,1),c()&&this.video.webkitDisplayingFullscreen)return r(this.video,"event",n),this.updateVideoControlsWithPlayerState();null===(t=vpPlayer.vastService)||void 0===t||t.load()}this.updateVideoControlsWithPlayerState()}},{key:"handleAirPlay",value:function(){this.video.webkitShowPlaybackTargetPicker()}},{key:"onCloseNextVideo",value:function(){this.showNextVideo=!1;this.updateVideoControlsWithPlayerState()}},{key:"updateVideoControlsWithPlayerState",value:function(){this.videoControls&&(vpPlayer.liveSyncPosition=this.hls?this.hls.liveSyncPosition:1800,this.videoControls.update(this.getState()))}},{key:"getState",value:function(){return{title:this.videoObject.title,channelImg:this.videoObject.channelImg,thumbnail:this.videoObject.thumbnail,filmstrip:this.videoObject.filmstrip,tracks:this.videoObject.tracks,showControls:this.showControls,isLive:this.videoObject.live,liveState:this.liveState,state:this.state,paused:this.video.paused,ended:this.video.ended,loading:this.loading,volume:this.video.volume,muted:this.video.muted,currentTime:this.video.currentTime,duration:Number.isNaN(this.video.duration)?this.videoObject.duration:this.video.duration,buffered:this.buffered,showSettings:this.showSettings,seekToLive:this.seekToLive,liveSyncPosition:this.hls?this.hls.liveSyncPosition:1800,isAutoplay:this.isAutoplay,qualityLevels:this.qualityLevels,showNextVideo:this.showNextVideo,playlist:this.playlist,isFullScreen:n.isFullScreen}}},{key:"bindMethods",value:function(){this.togglePlay=this.togglePlay.bind(this);this.onPlay=this.onPlay.bind(this);this.onPause=this.onPause.bind(this);this.onRewind=this.onRewind.bind(this);this.onForward=this.onForward.bind(this);this.onSeek=this.onSeek.bind(this);this.onEnd=this.onEnd.bind(this);this.onCanPlay=this.onCanPlay.bind(this);this.onNext=this.onNext.bind(this);this.onProgress=this.onProgress.bind(this);this.toggleMute=this.toggleMute.bind(this);this.onVolumeChange=this.onVolumeChange.bind(this);this.onVolumeUp=this.onVolumeUp.bind(this);this.onVolumeDown=this.onVolumeDown.bind(this);this.onFullScreenToggle=this.onFullScreenToggle.bind(this);this.onSettingsToggle=this.onSettingsToggle.bind(this);this.onSettingsAutoplayToggle=this.onSettingsAutoplayToggle.bind(this);this.onCaptionChange=this.onCaptionChange.bind(this);this.onQualityChange=this.onQualityChange.bind(this);this.playNextVideo=this.playNextVideo.bind(this);this.onLiveSeek=this.onLiveSeek.bind(this);this.onBuffering=this.onBuffering.bind(this);this.onTimeUpdate=this.onTimeUpdate.bind(this);this.onCloseNextVideo=this.onCloseNextVideo.bind(this);this.handleLiveType=this.handleLiveType.bind(this);this.handleAirPlay=this.handleAirPlay.bind(this);this.updateVideoControlsWithPlayerState=this.updateVideoControlsWithPlayerState.bind(this)}},{key:"addEventListeners",value:function(){var t=this,i;(this.video.addEventListener("volumechange",function(n){r(t.video,"event",n);t.updateVideoControlsWithPlayerState()}),this.video.addEventListener("timeupdate",this.onTimeUpdate),this.video.addEventListener("progress",this.onProgress),this.video.addEventListener("canplay",this.onCanPlay),this.video.addEventListener("ended",this.onEnd),this.video.addEventListener("waiting",this.onBuffering),this.video.addEventListener("webkitendfullscreen",function(){setTimeout(t.onPlay,500)}),this.video.addEventListener("playing",function(n){return r(t.video,"event",n)}),this.video.addEventListener("pause",function(n){return r(t.video,"event",n)}),this.video.addEventListener("play",function(n){return r(t.video,"event",n)}),window.WebKitPlaybackTargetAvailabilityEvent)&&(i=document.querySelector("#airPlayButton"),i.hidden=!1,i.disabled=!1);this.videoContainer.addEventListener("play-pause",this.togglePlay);this.videoContainer.addEventListener("play-request",this.onPlay);this.videoContainer.addEventListener("pause-request",this.onPause);this.videoContainer.addEventListener("replay",this.onReplay);this.videoContainer.addEventListener("rewind",this.onRewind);this.videoContainer.addEventListener("forward",this.onForward);this.videoContainer.addEventListener("seeking",this.onSeek);this.videoContainer.addEventListener("toggle-mute",this.toggleMute);this.videoContainer.addEventListener("volume-change",this.onVolumeChange);this.videoContainer.addEventListener("toggle-fullscreen",this.onFullScreenToggle);this.videoContainer.addEventListener("toggle-settings",this.onSettingsToggle);this.videoContainer.addEventListener("toggle-autoplay",this.onSettingsAutoplayToggle);this.videoContainer.addEventListener("change-quality",this.onQualityChange);this.videoContainer.addEventListener("subtitleChange",this.onCaptionChange);this.videoContainer.addEventListener("seek-live",this.onLiveSeek);this.videoContainer.addEventListener("volume-up",this.onVolumeUp);this.videoContainer.addEventListener("volume-down",this.onVolumeDown);this.videoContainer.addEventListener("close-next-video",this.onCloseNextVideo);this.videoContainer.addEventListener("airplay",this.handleAirPlay);this.videoContainer.addEventListener("request-theater-mode",function(){});this.videoContainer.addEventListener("fullscreenchange",function(){var t;null===(t=vpPlayer.vastService)||void 0===t||t.resize(n.isFullScreen)});this.resizeObserver=new fr.a(function(){var i;null===(i=vpPlayer.vastService)||void 0===i||i.resize(n.isFullScreen);l()||(t.videoContainer.offsetWidth<350?t.videoContainer.classList.add("vp-mobile"):t.videoContainer.classList.remove("vp-mobile"))});this.resizeObserver.observe(this.videoContainer)}}]),n}(),or=function(n){return' <video autoplay playsinline crossorigin="anonymous"><\/video>\n            <div class="vp--wrapper">\n              <div class="vp-overlay">\n                <div class="vp-setting-modal">\n                  <div class="settings-wrapper">\n                    <div class="settings-holder">\n                      <div class="settings-item">\n                        <div class="settings-item-title">Autoplay<\/div>\n                        <div class="settings-item-toggle">\n                          <input class="autoplaytg autoplaytg-vp" id="autotoggle" type="checkbox">\n                          <label class="autoplaytg-btn" for="autotoggle" data-type="toggle-autoplay"><\/label>\n                        <\/div>\n                      <\/div>\n                      <div class="settings-item quality">\n                        <div class="settings-item-title">'.concat(n.settings.quality,'<\/div>\n                        <div class="settings-item-selected">Auto<\/div>\n                      <\/div>\n                      <div class="settings-item subtitle">\n                        <div class="settings-item-title">').concat(n.settings.subtitles,'<\/div>\n                        <div class="settings-item-selected">Off<\/div>\n                      <\/div>\n                    <\/div>\n\n                    <div class="quality-holder">\n                      <div class="settings-header">\n                        <div class="settings-header-title">').concat(n.settings.quality,'<\/div>\n                      <\/div>\n                      <div class="settings-item">\n                        <div class="settings-item-title">Auto<\/div>\n                      <\/div>\n                    <\/div>\n\n\n                    <div class="subtitles-holder">\n                      <div class="settings-header">\n                        <div class="settings-header-title">').concat(n.settings.subtitles,'<\/div>\n                        \n                      <\/div>\n                      <div class="captions-holder">\n                        \n                      <\/div>\n                      <div class="settings-item">\n                        <div class="settings-item-title">Off<\/div>\n                      <\/div>\n                    <\/div>\n\n                    <div class="subtitles-options-holder">\n                      <div class="settings-header">\n                        <div class="settings-header-title">Options<\/div>\n                      <\/div>\n                      <div class="settings-item">\n                        <div class="settings-item-title">Font Size<\/div>\n                        <div class="settings-item-selected"><\/div>\n                      <\/div>\n                      <div class="settings-item">\n                        <div class="settings-item-title">Color<\/div>\n                        <div class="settings-item-selected"><\/div>\n                      <\/div>\n                      <div class="settings-item">\n                        <div class="settings-item-title">Background Color<\/div>\n                        <div class="settings-item-selected"><\/div>\n                      <\/div>\n                    <\/div>\n                  <\/div>\n                <\/div>\n\n                <div class="vp-loading">\n                  <div class="loading">\n                    <!-- spinner -->\n                    <div class="layer1"><\/div>\n                    <div class="layer2"><\/div>\n                    <div><\/div>\n                    <div class="layer3"><\/div>\n                    <!-- spinner -->\n                  <\/div>\n                <\/div>\n\n                <div class="vp-preview">\n                    <div class="play-pause"><\/div>\n                <\/div>\n                <div class="vp-overlay-play-pause">\n                  <div><\/div>\n                <\/div>\n\n                <div class="vp-overlay-action">\n                  <span class="icon-pause"><\/span>\n                <\/div>\n                <div class="vp-next-video">\n                  <div class="vp-next-video-wrapper">\n                    <span class="next-video-close"><\/span>\n                    <div class="progress"><\/div>\n                    <div class="next-video-thumbnail"><a href="#"><\/a><span class="icon-play"><\/span><\/div>\n                    <div class="next-video-content">\n                      <div class="next-video-content-info"><\/div>\n                      <div class="next-video-content-title">\n                        <span><\/span><a href="mall.tv"><\/a><\/div>\n                      <div class="next-video-content-channel"><span><\/span><a href="#"><\/a><\/div>\n                    <\/div>\n                  <\/div>\n                <\/div>\n                <div class="vp-player-related">\n                 <div class="vp-player-related-wrapper">\n                  \n                  <\/div>\n                <\/div>\n                <div class="vp-floating">\n                  <div class="floating-ad-uc-wrapper">\n                    <div class="floating-ad-uc-holder">\n                     <div class="floating-ad-uc-content icon-pause">\n                         <div class="ad-details">\n                            <div class="ad-details-img"><\/div>\n                            <div class="ad-details-info">\n                                <div class="ad-details-info-title">titulli i produktit<\/div>\n                                <div class="ad-details-info-desc">eshte produkt gjigant<\/div>\n                                <div class="ad-details-info-short">asdada<\/div>\n                            <\/div>\n                         <\/div>\n                        <\/div>          \n                    <\/div>\n                  <\/div>\n\n                  <div class="floating-ad-c-wrapper">\n                    <div class="floating-ad-c-holder">\n                      <div class="floating-ad-c-close"><\/div>\n                      <div class="floating-ad-c-content"><\/div>\n                    <\/div>\n                  <\/div>\n\n                <\/div>\n\n                    <div class="vp-mobile-overlay">\n                        <div><\/div>\n                    <\/div>\n              <\/div>\n\n\n\n              <\/div>\n\n            <\/div>\n            <div id="mute" class="mute">\n                <i class="icon-sound-mute"><\/i>\n            <\/div>\n            <div class="vp-controls">\n\n              <!-- <div class="vp-controls--top-holder">\n                <div class="vp-controls--top">\n                  <div class="vp-controls--top-left">\n                    <div class="vp-controls--top-left-img">\n                       <img src="">\n                    <\/div>\n                    <div class="vp-controls--top-left-title">Title<\/div>\n                  <\/div>\n                  <div class="vp-controls-top-right">\n                    <div class="vp-controls-top-img">img<\/div>\n                  <div class="vp-controls-top-title">title<\/div>\n                    \n                  <\/div>\n                <\/div>\n              <\/div> -->\n             <div class="vp-controls--middle-holder">\n                <div class="vp-buttons">\n                    <button class="vp-back vp-button vp-tooltip" data-type="back">\n                        <span class="icon-next"><\/span>\n                    <\/button>\n                    <button class="vp-play-pause vp-button vp-tooltip" tooltip="play-pause" title="Play" data-type="play-pause">\n                        <span class="icon-play"><\/span>\n                    <\/button>\n                    <button class="vp-next vp-button vp-tooltip" data-type="next">\n                        <span class="icon-next"><\/span>\n                    <\/button>\n                <\/div>\n              <\/div>\n\n              <div class="vp-controls-holder">\n                <div class="vp-controls--bottom">\n                  <div class="mover">\n                    <div><span>00:00<\/span><\/div>\n                  <\/div>\n                  <div class="vp-bar-holder">\n                    <div class="hover-progress" data-type="seeking"><\/div>\n                    <div class="load-progress"><\/div>\n                    <div class="play-progress">\n                      <span><\/span>\n                    <\/div>\n                    <!-- <div class="mover"><\/div> -->\n                  <\/div>\n                  <div class="vp-buttons">\n                    <button class="vp-play-pause vp-button vp-tooltip" tooltip="play-pause" title="').concat(n.controls.play,'" data-type="play-pause">\n                      <!-- icon-pause icon-replay-->\n                      <span class="icon-play"><\/span>\n                    <\/button>\n                    <!-- <button class="vp-rewind vp-button vp-tooltip" data-type="rewind">\n                      <span class="icon-rewind"><\/span>\n                    <\/button>\n                    <button class="vp-forward vp-button vp-tooltip" data-type="forward">\n                      <span class="icon-forward"><\/span>\n                    <\/button> -->\n                    <button class="vp-next vp-button vp-tooltip" data-type="next" title="').concat(n.controls.next,'">\n                      <span class="icon-skip"><\/span>\n                    <\/button>\n                    <div class="vp-volume--wrapper">\n                      <button class="vp-volume vp-button vp-tooltip" title="').concat(n.controls.volume,'" data-type="toggle-mute">\n                        <!-- icon-volume-medium icon-volume-low icon-volume-mute2 -->\n                        <span class="icon-sound_new"><\/span>\n                      <\/button>\n                      <!-- <div class="vp-volume-slider">\n                        <\/div> -->\n\n                      <div class="vp-volume-slider" data-type="volume-change">\n                        <div class="vp-volume-slider-lenght"><\/div>\n                        <div class="vp-volume-slider-progress"><span><\/span><\/div>\n                      <\/div>\n                      <div class="vp-volume--tooltip"><\/div>\n                    <\/div>\n                    <div class="control-space left"><\/div>\n\n                    <div class="vp-text">\n                      <span class="vp-current">00:00 /<\/span>\n                      <span class="vp-duration">00:00<\/span>\n                      <button class="vp-live" data-type="seek-live">Live<\/button> \n                    <\/div>\n                    <div class="control-space"><\/div>\n\n                    <!-- <button class="vp-subtitles vp-button vp-tooltip" data-type="toggle-settings">\n                      <span class="icon-subtitles"><\/span>\n                    <\/button> -->\n                    <button class="vp-settings vp-button vp-tooltip" data-type="toggle-settings" title="').concat(n.controls.settings,'">\n                      <span class="icon-gear"><\/span>\n                    <\/button>\n                    <button class="vp-theater vp-button vp-tooltip" data-type="request-theater-mode" title="').concat(n.controls.theater,'">\n                      <span class="icon-theater"><\/span>\n                    <\/button>\n                    <button id="airPlayButton" disabled hidden class="vp-button vp-tooltip" data-type="airplay" title="').concat(n.controls.airplay,'">\n                        <span class="icon-airplay"><\/span>\n                    <\/button>\n                    <button class="vp-fullscreen vp-button vp-tooltip" data-type="toggle-fullscreen" title="').concat(n.controls.fullScreen,'">\n                      <span class="icon-fullscreen_new"><\/span>\n                    <\/button>\n                  <\/div>\n                <\/div>\n              <\/div>\n\n            <\/div>\n            <div class="vp-ads-progress"><\/div>\n            <div class="gj--ads"><\/div>\n            <\/div>')},sr=function(n,t){n&&(n.innerHTML=or(wt(t)))},hr={adsLoaded:null,adsManager:null,adContainer:null,adDisplayContainer:null,adsLoader:null,adsRequest:null,adsDisplayInitialized:!1,paused:!1,autoplayAllowed:!1,autoplayRequiresMuted:!1,remainingTime:0,intervalTimer:null,progress:null,init:function(){window.google&&("malltv"==window.region&&google.ima.settings.setLocale("cs"),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),this.progress=document.querySelector(".vp-ads-progress"),this.adContainer=document.querySelector(".gj--ads"),this.adDisplayContainer=new google.ima.AdDisplayContainer(this.adContainer,vpPlayer.player.video),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded.bind(this),!1),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError.bind(this),!1))},load:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;window.google?(this.adContainer.addEventListener("dblclick",this.onDoubleClick.bind(this)),this.adsRequest=new google.ima.AdsRequest,this.adsRequest.adTagUrl=n?vpPlayer.player.videoObject.ad.endpoint+"&count=".concat(n):vpPlayer.player.videoObject.ad.endpoint,this.adsRequest.linearAdSlotWidth=vpPlayer.player.video.clientWidth,this.adsRequest.linearAdSlotHeight=vpPlayer.player.video.clientHeight,this.adsRequest.nonLinearAdSlotWidth=vpPlayer.player.video.clientWidth,this.adsRequest.nonLinearAdSlotHeight=vpPlayer.player.video.clientHeight/3,this.adsRequest.setAdWillAutoPlay(this.autoplayAllowed),this.adsRequest.setAdWillPlayMuted(this.autoplayRequiresMuted),this.adsLoader.requestAds(this.adsRequest)):r(document.querySelector(".gj--ads"),"play-request",{})},onAdsManagerLoaded:function(n){var i=this,t;this.adsManager&&this.adsManager.destroy();t=new google.ima.AdsRenderingSettings;t.useStyledLinearAds=!0;this.adsManager=n.getAdsManager(vpPlayer.player.video,t);this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAllAdsCompleted.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,this.onAdLoaded.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this.onAdStarted.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this.onAdCompleted.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,this.onAdSkip.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_PROGRESS,this.onTimeUpdate.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,this.onClick.bind(this));this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,function(){i.showOverlay("icon-pause")});this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,function(){i.showOverlay("icon-play")});this.playAds()},playAds:function(n){this.adsDisplayInitialized||(this.adDisplayContainer.initialize(),this.adsDisplayInitialized=!0);var t=vpPlayer.player.video.clientWidth,i=vpPlayer.player.video.clientHeight;try{this.adsManager.init(t,i,google.ima.ViewMode.NORMAL);this.adsManager.start();vpPlayer.player.isAdPlaying=!0}catch(n){console.log("AdsManager could not be started",n);this.onContentResumeRequested()}},onAdLoaded:function(n){n.getAd().isLinear()||vpPlayer.player.video.play()},onAdStarted:function(n){var t=this,i;this.impression=!1;i=n.getAd();i.isLinear()&&(vpPlayer.player.videoObject.ad.autoplay||this.adsManager.pause(),this.progress.style.display="block",this.intervalTimer=setInterval(function(){t.remainingTime=t.adsManager.getRemainingTime();t.progress.style.width=(i.getDuration()-t.remainingTime)/i.getDuration()*100+"%"},250))},onAdCompleted:function(n){n.getAd().isLinear()&&(clearInterval(this.intervalTimer),this.remainingTime=0,this.progress.style.display="none",this.progress.style.width="0%")},onAllAdsCompleted:function(n){n.getAd().isLinear()&&(vpPlayer.player.isAdPlaying=!1)},onAdSkip:function(n){n.getAd().isLinear()&&(this.adsManager.discardAdBreak(),vpPlayer.player.isAdPlaying=!1,clearInterval(this.intervalTimer),this.remainingTime=0,this.progress.style.display="none",this.progress.style.width="0%")},onClick:function(){var n=this.adsManager.getCurrentAd(),t={brand:n.getAdvertiserName(),category:"VideoAd",id:n.getAdId(),name:n.getTitle(),type:"ad",variant:n.getDescription()};window.postMessage({message:"bisko",eventType:"ad-click",model:t})},onTimeUpdate:function(n){n.getAdData().currentTime>=1&&!this.impression&&(this.onAdImpression(),this.impression=!0)},onAdImpression:function(){var n=this.adsManager.getCurrentAd(),t={brand:n.getAdvertiserName(),category:"VideoAd",id:n.getAdId(),name:n.getTitle(),type:"ad",variant:n.getDescription()};window.postMessage({message:"bisko",eventType:"ad-view",model:t})},onAdError:function(n){vpPlayer.player.isAdPlaying=!1;console.log("Error loading ad",n.getError());this.adsManager&&this.adsManager.destroy();this.onContentResumeRequested()},onContentPauseRequested:function(){r(this.adContainer,"pause-request",{});this.adContainer.style="z-index: 100000"},onContentResumeRequested:function(){r(this.adContainer,"play-request",{});this.adContainer.style="z-index: -10";document.querySelector(".vp-overlay-action").style="z-index: 0"},resize:function(n){if(this.adsManager){var t=vpPlayer.player.video;return n?this.adsManager.resize(t.clientWidth,t.clientHeight,google.ima.ViewMode.FULLSCREEN):this.adsManager.resize(t.clientWidth,t.clientHeight,google.ima.ViewMode.NORMAL)}},showOverlay:function(n){clearInterval(this.showOverlay.timer);var t=document.querySelector(".vp-overlay-action");t.firstElementChild.className=n;t.classList.remove("show");t.offsetWidth;t.classList.add("show");t.style="z-index: 100001";this.showOverlay.timer=setInterval(function(){t.style="z-index: 0"},500)},onDoubleClick:function(){l()||c()||r(this.adContainer,"toggle-fullscreen",{})},destroy:function(){this.adsManager&&this.adsManager.destroy();vpPlayer.player.isAdPlaying=!1;this.adContainer&&(this.adContainer.removeEventListener("dblclick",this.onDoubleClick.bind(this)),clearInterval(this.intervalTimer),this.remainingTime=0,this.progress.style.display="none",this.progress.style.width="0%")}},cr={castContext:null,remotePlayer:null,remotePlayerController:null,mediaInfo:null,request:null,media:null,castButton:null,status:null,session:!1,load:function(){var n=this;window.__onGCastApiAvailable=function(t){t&&(n.castButton=document.createElement("google-cast-launcher"),n.castButton.id="castbutton",n.castButton.className="vp-button",document.querySelector(".vp-controls--bottom .vp-buttons").insertBefore(n.castButton,document.querySelector(".vp-fullscreen")),n.initializeCastApi())};this.getLibrary()},getLibrary:function(){var n=document.createElement("script");n.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";document.querySelector("body").appendChild(n)},initializeCastApi:function(){var n=this;this.castButton=document.querySelector("#castbutton");this.castButton.addEventListener("click",this.disconnect.bind(this));this.castContext=cast.framework.CastContext.getInstance();this.castContext.setOptions({receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});this.remotePlayer=new cast.framework.RemotePlayer;this.remotePlayerController=new cast.framework.RemotePlayerController(this.remotePlayer);this.castContext.addEventListener(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,function(t){switch(t.sessionState){case cast.framework.SessionState.SESSION_STARTED:case cast.framework.SessionState.SESSION_RESUMED:n.loadMedia();break;case cast.framework.SessionState.SESSION_ENDED:vpPlayer.player.casting=!1;vpPlayer.player.video.currentTime=n.remotePlayer.currentTime;vpPlayer.player.hls.startLoad();n.status.remove();n.status=null;console.log("CastContext: CastSession disconnected")}});this.remotePlayerController.addEventListener(cast.framework.RemotePlayerEventType.ANY_CHANGE,this.onRemotePlayerEvent.bind(this))},loadMedia:function(){this.session=cast.framework.CastContext.getInstance().getCurrentSession();this.mediaInfo=new chrome.cast.media.MediaInfo(vpPlayer.player.videoObject.file,"application/x-mpegurl");this.setMetaData(this.mediaInfo);this.request=new chrome.cast.media.LoadRequest(this.mediaInfo);this.session.loadMedia(this.request).then(function(){}).catch(function(n){return console.log("Error code: "+n)})},setMetaData:function(n){n.metadata={type:0,metadataType:chrome.cast.media.MetadataType.GENERIC,title:vpPlayer.player.videoObject.title,images:[{url:vpPlayer.player.videoObject.thumbnail}]}},onRemotePlayerEvent:function(n){if("PLAYING"==n.value&&(vpPlayer.player.video.pause(),vpPlayer.player.hls.stopLoad(),vpPlayer.player.casting=!0,this.remotePlayer.currentTime=vpPlayer.player.video.currentTime,this.remotePlayerController.seek(),vpPlayer.player.videoControls.playPauseButton.update({paused:this.remotePlayer.isPaused}),this.createStatusBar(this.session.getSessionObj().receiver.friendlyName),document.querySelector(".vp-overlay").appendChild(this.status)),"currentTime"==n.field){var t=n.value,i=this.remotePlayer.duration;vpPlayer.player.videoControls.seekbar.update({currentTime:t,duration:i});vpPlayer.player.videoControls.timer.update({currentTime:t,duration:i})}},togglePlay:function(){this.remotePlayerController.playOrPause();vpPlayer.player.videoControls.playPauseButton.update({paused:this.remotePlayer.isPaused})},play:function(){this.remotePlayer.isPaused&&this.remotePlayerController.playOrPause()},pause:function(){this.remotePlayer.isPaused||this.remotePlayerController.playOrPause()},seek:function(n){this.remotePlayer.currentTime=n;this.remotePlayerController.seek()},setVolume:function(n){this.remotePlayer.volumeLevel=n;this.remotePlayerController.setVolumeLevel();vpPlayer.player.videoControls.volumeControl.update({volume:this.remotePlayer.volumeLevel,muted:this.remotePlayer.isMuted})},mute:function(){this.remotePlayer.isMuted||this.remotePlayerController.muteOrUnmute()},toggleMute:function(){this.remotePlayerController.muteOrUnmute();vpPlayer.player.videoControls.volumeControl.update({volume:this.remotePlayer.volumeLevel,muted:this.remotePlayer.isMuted})},createStatusBar:function(n){if(!this.status){this.status=document.createElement("div");this.status.className="chromecast-status";this.status.innerHTML='<svg viewBox="0 0 288 288" xmlns="http://www.w3.org/2000/svg"><path d="M288 78v126c0 20-16 36-36 36H149c-16 0-16-24 0-24h103c7 0 12-5 12-12V78c0-7-5-12-12-12H54c-7 0-12 5-12 12v30c0 18-24 18-24 0V78c0-20 16-36 36-36h198c20 0 36 16 36 36zM36 240c0 10-8 18-18 18s-18-8-18-18 8-18 18-18 18 8 18 18zm84 6c0 16-24 16-24 0 0-46-37-84-84-84-16 0-16-24 0-24 59 0 108 48 108 108zm-42 0c0 16-24 16-24 0 0-23-19-42-42-42-16 0-16-24 0-24 37 0 66 30 66 66z"><\/path><\/svg>';var t=document.createElement("span");t.textContent="Playing on "+n;this.status.appendChild(t)}},disconnect:function(){this.session&&this.session.endSession(!0)}};!function(){function n(n,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(n,t.bubbles,t.cancelable,t.detail),i}if("function"==typeof CustomEvent)return!1;n.prototype=window.Event.prototype;window.CustomEvent=n}();f={on:Function,setup:function(n,t){var r=document.getElementById(n),i;sr(r,t.config.lang);i=document.querySelector("video");this.player=new er(i,t);t.video.ad&&(this.vastService=hr,this.vastService.init());this.on=function(n,t){f.player.videoContainer.addEventListener(n,t)};this.player.init();t.config&&this.setConfig(t.config);this.castService=cr;this.castService.load()},setConfig:function(n){var t,i;f.player.isAutoplay=null===(t=n.autoplay)||void 0===t||t;f.player.isTheater=null!==(i=n.theater)&&void 0!==i&&i;n.volume&&(f.player.video.volume=n.volume)},setCuePoint:function(n,t){this.player&&(this.player.callbacks[n]=t)},setPlaylist:function(n){f.player.playlist=n.filter(function(n){return n})},setVideo:function(n){f.player.videoObject=n;f.player.videoIndex=-1;f.player.playNextVideo()}};window.vpPlayer=f}]);vpPlayerEvents={timeStamp:0,lastKeepAlive:0,buffer:{buffering:!1,guid:""},loaded:function(){signalR.videoHubMethods.init(vpspc.object.EntityId,vpspc.object.VideoSource,1);isEmbed||(document.querySelector("#toggle-autoplay-related input").checked=vpPlayer.player.isAutoplay)},pause:function(){signalR.videoHubMethods.savePause(parseInt(vpPlayer.player.video.currentTime))},play:function(){parseInt(vpPlayer.player.video.currentTime)>0&&signalR.videoHubMethods.saveResume(parseInt(vpPlayer.player.video.currentTime))},playing:function(){vpPlayerEvents.buffer.buffering&&(vpPlayerEvents.buffer.buffering=!1,signalR.videoHubMethods.buffered(parseInt(vpPlayer.player.video.currentTime),vpPlayerEvents.buffer.guid,new Date))},waiting:function(){vpPlayerEvents.buffer.buffering=!0;vpPlayerEvents.buffer.guid=parseInt(Math.random()*999999999999);signalR.videoHubMethods.buffering(parseInt(vpPlayer.player.video.currentTime),vpPlayerEvents.buffer.guid,new Date)},volumechange:function(n){vpPlayerEvents.timeStamp!==parseInt(n.timeStamp)&&(signalR.videoHubMethods.volumeChanged(parseInt(vpPlayer.player.video.currentTime),parseInt(vpPlayer.player.video.volume*100),vpPlayer.player.video.muted),vpPlayerEvents.timeStamp=parseInt(n.timeStamp));videoEvents.preference("volume",vpPlayer.player.video.volume)},ended:function(){var n=parseInt(vpPlayer.player.video.currentTime);vpPlayerEvents.lastKeepAlive!==n&&signalR.videoHubMethods.keepAlive(n,n-vpPlayerEvents.lastKeepAlive)},fullscreen:function(){if(vpPlayer.player.getState().isFullScreen)signalR.videoHubMethods.sizeChanged(parseInt(vpPlayer.player.video.currentTime),3);else{var n=document.body.classList.contains("is-theater")?2:1;signalR.videoHubMethods.sizeChanged(parseInt(vpPlayer.player.video.currentTime),n)}},timeupdate:function(){var n=parseInt(vpPlayer.player.video.currentTime),i,t;n!==0&&(n-vpPlayerEvents.lastKeepAlive)%5==0&&vpPlayerEvents.lastKeepAlive!==n&&(signalR.videoHubMethods.keepAlive(n,5),vpPlayerEvents.lastKeepAlive=n);n>0&&!vpPlayer.player.video.paused&&videoEvents.saveView();allowThirdPartyCookies&&(i=localStorage.getItem("metric1Time_"+vpspc.object.VideoId),parseInt(vpPlayer.player.video.currentTime)!==+i&&(localStorage.getItem("metric1_"+vpspc.object.VideoId)===null?localStorage["metric1_"+vpspc.object.VideoId]=0:(localStorage["metric1_"+vpspc.object.VideoId]=+localStorage["metric1_"+vpspc.object.VideoId]+1,localStorage["metric1Time_"+vpspc.object.VideoId]=parseInt(vpPlayer.player.video.currentTime))),window.analyticsEvents&&(t=+localStorage.getItem("metric1_"+vpspc.object.VideoId),t===1?window.analyticsEvents.playTime.push("1s"):t===parseInt(vpPlayer.player.video.duration*.75)&&window.analyticsEvents.playTime.push("75%")))},seeking:function(){if(vpPlayerEvents.timeStamp!==parseInt(vpPlayer.player.video.currentTime)&&(vpPlayerEvents.timeStamp=parseInt(vpPlayer.player.video.currentTime),!vpPlayer.player.isAdPlaying)){var n=parseInt(vpPlayer.player.video.currentTime);n>vpPlayerEvents.lastKeepAlive&&(signalR.videoHubMethods.keepAlive(n,n-vpPlayerEvents.lastKeepAlive),vpPlayerEvents.lastKeepAlive=n);signalR.videoHubMethods.saveSeek(n,parseInt(vpPlayer.player.video.currentTime))}},subtitleChange:function(n){signalR.videoHubMethods.subtitleChanged(parseInt(vpPlayer.player.video.currentTime),n.detail.id)},levelSwitched:function(){signalR.videoHubMethods.qualityChanged(parseInt(vpPlayer.player.video.currentTime),vpPlayer.player.hls.autoLevelEnabled,vpPlayer.player.hls.levels[vpPlayer.player.hls.loadLevel].height);videoEvents.preference("level",vpPlayer.player.hls.loadLevel)},liveType:function(){return vpspc.object.LiveVideo?vpspc.object.LiveDetails.CompetitionLive?"realtime":vpspc.object.SlowTv?"slowtv":vpspc.object.LiveDetails.PermanentLive?"permanent":vpspc.object.LiveDetails.Live?"live":"":""},playlist:function(){var n=[];if(window.playlistVideosArray&&window.playlistVideosArray.length>0&&n.push(window.playlistVideosArray[0]),window.relatedVideosArray&&n.length<3){const t=window.relatedVideosArray.slice();while(n.length<3&&t.length!=0){const i=t.shift();n.find(n=>n.entityId==i.entityId)||n.push(i)}}if(window.playerRelatedVideosArray&&n.length<3){const t=window.playerRelatedVideosArray.slice();while(n.length<3&&t.length!=0){const i=t.shift();n.find(n=>n.entityId==i.entityId)||n.push(i)}}vpPlayer.player&&vpPlayer.setPlaylist(n)},vastUrlParams:function(){var t=new URLSearchParams,n=0;return vpspc.object.ContentIds.video.forEach(i=>{t.append("contents["+n+"].type","video"),t.append("contents["+n+"].id",i),n++}),vpspc.object.ContentIds.serie.forEach(i=>{t.append("contents["+n+"].type","serie"),t.append("contents["+n+"].id",i),n++}),vpspc.object.ContentIds.channel.forEach(i=>{t.append("contents["+n+"].type","channel"),t.append("contents["+n+"].id",i),n++}),t.append("url",window.location.href),t.toString()}};$(document).ready(function(){var i,r,t,f,e,n,u;videoEvents.rating.calculateTime();i=[];vpspc.object.Subtitles.forEach(n=>{i.push({file:n.Url,label:n.Label,lang:n.Language})});r={};vpspc.object.Monetized&&vpspc.object.ShowVideoAds&&(r={preroll:{count:vpspc.object.PrerollCount},autoplay:!(videoEvents.queryString("c")!="1"&&region!="malltv")||!isEmbed,cuePoints:vpspc.object.AdCuePoints,endpoint:vpspc.object.AdPlatformEndpoint+"/vast?adUnitId=vad&propertyId="+vpspc.object.ApPropertyId+"&placementId=846836&pageviewGuid="+bisko.guid+"&storageId="+localStorage.getItem("bisko-sid")+"&"+vpPlayerEvents.vastUrlParams()});t=document.querySelector("#toggle-autoplay-related input");t&&t.addEventListener("change",n=>{vpPlayer.setConfig({autoplay:n.target.checked}),videoEvents.preference("autoplay",vpPlayer.player.isAutoplay)});f=videoEvents.queryString("t")!==null?parseInt(videoEvents.queryString("t")):null;try{vpPlayer.setup("vp-player",{video:{file:vpspc.object.VideoSource+".m3u8",duration:vpspc.object.DurationSeconds,thumbnail:vpspc.object.ThumbnailUrl,filmstrip:vpspc.object.ThumbnailUrl.replace("retina.jpg","filmstrip0.jpg"),channelImg:vpspc.object.Content.Thumbnail,title:vpspc.object.Title,live:vpspc.object.LiveDetails.Live||vpspc.object.LiveDetails.Prelive,liveType:vpPlayerEvents.liveType(),showControls:vpspc.object.LiveDetails.LiveQualityStatus!==2||vpspc.object.Error.State,ad:r,tracks:i,currentTime:f},config:{autoplay:userPreference.autoplay,controls:{theaterButton:isEmbed?!1:!0},theater:userPreference.theater,volume:userPreference.volume,quality:userPreference.level,lang:region=="malltv"?"cz":"al",debug:!1}})}catch(o){}userPreference.theater&&videoEvents.theaterMode();vpPlayer.on("event",n=>{if(vpPlayerEvents.hasOwnProperty(n.detail.type)){vpPlayerEvents[n.detail.type](n.detail);return}console.log("Event is not handled: "+n.detail.type)});if(vpspc.object.FloatingAds.length)for(n=0;n<vpspc.object.FloatingAds.length;n++)e=vpspc.object.FloatingAds[n],function(n){vpPlayer.setCuePoint(n.Time,()=>{showAd(n.Id)});vpPlayer.setCuePoint(n.Time+n.ShowTime,()=>{removeAd(n.Id)})}(e);if(vpspc.object.Monetized&&vpspc.object.ShowPopUpAds)for(n=0;n<vpspc.object.PopupCuePoints.length;n++)u=vpspc.object.PopupCuePoints[n],vpPlayer.setCuePoint(u,()=>{adPlatformEvents.banner.triggerBanner()}),vpPlayer.setCuePoint(u+adPlatformEvents.banner.duration,()=>{adPlatformEvents.banner.closeBanner()});if(vpPlayer.setCuePoint(videoEvents.rating.ratingTime,()=>{videoEvents.rating.open()}),vpPlayer.setCuePoint(videoEvents.rating.ratingLength,()=>{videoEvents.rating.close()}),vpPlayer.player){vpPlayer.on("request-theater-mode",videoEvents.theaterMode);vpPlayer.on("next",videoEvents.nextVideo);vpPlayer.on("loaded",vpPlayerEvents.loaded);vpPlayer.on("toggle-autoplay",()=>{t&&(t.checked=vpPlayer.player.isAutoplay),videoEvents.preference("autoplay",vpPlayer.player.isAutoplay)})}typeof judge!="undefined"&&typeof GjirafaPerformanceProfiler!="undefined"&&(judge=new GjirafaPerformanceProfiler(bisko.guid,judge.userId,document.getElementById("player-id-name").value,vpPlayer.player.video,vpPlayer.player.hls))});window.comments={page:0,loaded:0,total:0,entityId:0,tag:"",changedTag:!1,tags:{container:document.getElementById("video-page-comments-container"),showMore:document.getElementById("comments-show-more"),loader:document.getElementById("comments-loader"),topComments:document.getElementById("top-comments-holder"),cancelComment:document.getElementById("cancel-comment"),submitComment:document.getElementById("submit-comment"),messageComment:document.getElementById("comment-message"),messageCommentLength:document.getElementById("comment-message-length"),errorMessageComment:document.getElementById("comment-error-message")},loadTags:function(){window.comments.tags.container=document.getElementById("video-page-comments-container");window.comments.tags.showMore=document.getElementById("comments-show-more");window.comments.tags.loader=document.getElementById("comments-loader");window.comments.tags.topComments=document.getElementById("top-comments-holder");window.comments.tags.cancelComment=document.getElementById("cancel-comment");window.comments.tags.submitComment=document.getElementById("submit-comment");window.comments.tags.messageComment=document.getElementById("comment-message");window.comments.tags.messageCommentLength=document.getElementById("comment-message-length");window.comments.tags.errorMessageComment=document.getElementById("comment-error-message")},init:function(){window.comments.page=0;window.comments.loaded=0;window.comments.total=+(document.getElementById("total-comments-count")&&document.getElementById("total-comments-count").value);window.comments.entityId=window.vpspc.object.EntityId;window.comments.top();window.comments.get();signalR.commentHubMethods.entityId=window.comments.entityId;signalR.commentHubMethods.start()},get:function(){if(window.comments.tags.showMore.style.display="none",window.comments.total!==0){window.comments.tags.loader.style.display="block";var n=getQueryStringValue("a");n||(n="");$.ajax({url:"/Action/GetComments?entityId="+window.comments.entityId+"&page="+window.comments.page+"&tag="+window.comments.tag+"&a="+n,type:"GET",success:function(t){var i,r,u;for(window.comments.tags.loader.style.display="none",i=0;i<t.length;i++)r=n&&n!==""&&window.comments.page===0&&i===0&&t[i].EntityId!=n,u=n&&n!==""&&window.comments.page===0&&i===0&&!isNaN(n)&&Number(t[i].EntityId)==n,window.signalRComments.comment(t[i],!1,!1,r,u),window.comments.loaded+=1;t.length>=9&&(window.comments.page+=1,window.comments.total>10&&(window.comments.tags.showMore.style.display="inline-block"))}})}},top:function(){$.ajax({url:"/Action/GetTopComments?entityId="+window.comments.entityId,type:"GET",success:function(n){n.length!==0&&(window.comments.tags.topComments.style.display="block");for(var t=0;t<n.length;t++)window.signalRComments.comment(n[t],!1,!0)},error:function(){window.comments.tags.topComments.style.display="none"}})},loadReplies:function(n){var r=n.dataset.id,f=n.closest(".comment-item"),e=f.id.indexOf("top-")===0,t,i;t=e?f.querySelector("#top-comment-replies-"+r):f.querySelector("#comment-replies-"+r);var u=t.querySelector(".video-comments__reply-wrapper"),o=parseInt(t.dataset.page),h=parseInt(t.dataset.repliesLoaded),s=parseInt(t.dataset.repliesTotal);h<s?(i=getQueryStringValue("a"),i||(i=""),$.ajax({url:"/Action/GetReplies?commentId="+r+"&page="+o+"&a="+i,type:"GET",success:function(f){for(var c,h=0;h<f.length;h++)c=i&&i!==""&&o===0&&h===0&&!isNaN(i)&&Number(f[h].EntityId)==i,window.signalRComments.reply(f[h],!1,e,c),t.dataset.repliesLoaded=parseInt(t.dataset.repliesLoaded)+1;t.dataset.repliesLoaded>=s?(n.querySelector(".reply-showmore").style.display="none",n.querySelector(".reply-show").style.display="none",n.querySelector(".reply-hide").style.display="inline-block"):(n.querySelector(".reply-showmore").style.display="inline-block",n.querySelector(".reply-show").style.display="none",t.dataset.page=+t.dataset.page+1);u.classList.remove("reply-hidden");window.analyticsEvents&&window.analyticsEvents.videoMoreReplies(r)},error:function(n){console.log(n)}})):(u.classList.contains("reply-hidden")?u.classList.remove("reply-hidden"):u.classList.add("reply-hidden"),n.querySelector(".reply-showmore").style.display="none",n.querySelector(".reply-show").style.display="none",n.querySelector(".reply-hide").style.display="inline-block")},eventFunctions:{submitComment:function(){return isLoggedIn()?window.comments.tags.messageComment.value.length?(document.getElementById("video-comments__textbox-wrapper").classList.add("is-loading-big"),$.ajax({url:"/Action/PostComment",type:"POST",data:{entityId:window.comments.entityId,content:window.comments.tags.messageComment.value},success:function(n){n.Success?(window.analyticsEvents&&window.analyticsEvents.videoComment(window.comments.tags.messageComment.value),window.comments.tags.messageComment.value="",window.comments.tags.messageCommentLength.innerText="0"):n.StatusCode===400&&(window.comments.tags.errorMessageComment.innerText=n.Message,window.comments.tags.errorMessageComment.classList.remove("d-none"),window.comments.tags.errorMessageComment.classList.add("d-flex"),setTimeout(function(){window.comments.tags.errorMessageComment.classList.remove("d-flex");window.comments.tags.errorMessageComment.classList.add("d-none")},5e3))},complete:function(){document.getElementById("video-comments__textbox-wrapper").classList.remove("is-loading-big")}}),!0):!1:(showLoginPopUp(),!1)},submitReply:function(n){if(!isLoggedIn())return showLoginPopUp(),!1;var u=n.id.indexOf("top-")===0,i=n.dataset.id,r=document.getElementById((u?"top-":"")+"comment-replies-"+i),t=r.querySelector(".reply-message");return t.value.length?($.ajax({url:"/Action/PostReply",type:"POST",data:{entityId:window.comments.entityId,commentId:i,content:t.value},success:function(n){if(n.Success)window.analyticsEvents&&window.analyticsEvents.videoReplyComment(t.value);else if(n.StatusCode===400){var i=r.querySelector(".video-comments__same-replays");i.innerHTML=n.Message;i.classList.remove("d-none");i.classList.add("d-flex");setTimeout(function(){i.classList.remove("d-flex");i.classList.add("d-none")},5e3)}t.value=""}}),!0):!1},deleteOrBlockComment:function(n){if(!isLoggedIn())return showLoginPopUp(),!1;var t=n.target.dataset.id,i=n.target.dataset.type;return $.ajax({url:"/action/delete"+i+"?"+i+"Id="+t+(n.target.classList.contains("delete-block")?"&blockUser=true":""),type:"POST",success:function(r){r.Success&&window.analyticsEvents&&(i==="comment"?window.analyticsEvents.videoDeleteComment(t):window.analyticsEvents.videoDeleteReply(t,n.target.classList.contains("delete-block")))}}),!0},isOnScreen:function(n){if(n){var t=n.getBoundingClientRect();return 0<=t.top&&t.top<=window.innerHeight&&0<=t.left&&t.left<=window.innerWidth}return!1},scrollHandler:function(n,t){if(t||window.comments.eventFunctions.isOnScreen(window.comments.tags.container)&&window.comments.tags.container.style.display!=="none")try{window.comments.events();window.comments.init();window.removeEventListener("scroll",window.comments.eventFunctions.scrollHandler)}catch(n){window.removeEventListener("scroll",window.comments.eventFunctions.scrollHandler)}}},events:function(){window.comments.tags.cancelComment&&window.comments.tags.cancelComment.addEventListener("click",function(){window.comments.tags.container.querySelector("#comment-message").value="";window.comments.tags.messageCommentLength.innerText="0"});window.comments.tags.messageComment&&(isLoggedIn()?window.comments.tags.messageComment.addEventListener("keyup",function(){window.comments.tags.messageCommentLength.innerText=window.comments.tags.messageComment.value.length}):window.comments.tags.messageComment.addEventListener("click",function(){showLoginPopUp()}));window.comments.tags.showMore&&window.comments.tags.showMore.addEventListener("click",function(){window.comments.get();window.analyticsEvents&&window.analyticsEvents.videoMoreComments()});window.comments.tags.submitComment&&window.comments.tags.submitComment.addEventListener("click",function(){window.comments.eventFunctions.submitComment()});window.comments.tags.container&&window.comments.tags.container.addEventListener("click",function(n){var i,t,r,u;return(n.target.classList.contains("delete")||n.target.classList.contains("delete-block"))&&window.comments.eventFunctions.deleteOrBlockComment(n),(n.target.classList.contains("reply-show")||n.target.classList.contains("reply-showmore"))&&window.comments.loadReplies(n.target.parentNode),n.target.classList.contains("submit-reply")&&window.comments.eventFunctions.submitReply(n.target.closest(".comment-item")),n.target.classList.contains("comment-reply")&&(i=n.target.closest(".comment-item").querySelector(".reply-input"),i.style.display="block",isMobile?i.scrollIntoView({behavior:"smooth",block:"end"}):i.scrollIntoView({behavior:"smooth",block:"center"})),n.target.classList.contains("cancel-reply")&&(t=n.target.closest(".reply-input"),t.classList.contains("cloned")?t.remove():(t.querySelector(".reply-message").value="",t.style.display="none")),n.target.classList.contains("reply-hide")&&(r=n.target.closest(".comment-item"),u=r.querySelector(".video-comments__reply-wrapper"),u.classList.add("reply-hidden"),n.target.style.display="none",n.target.parentNode.querySelector(".reply-show").style.display="inline-block"),!1})}};req=!1;$(document).on("click",".like",function(){if(!req){if(!isLoggedIn())return showLoginPopUp(),!1;var n=$(this),t=$(this).data("entity-id"),i=$('.dislike[data-entity-id="'+t+'"]'),r=$(this).hasClass("liked")?"DELETE":"POST";req=!0;r=="POST"?(n.addClass("text-primary liked"),increaseCounter(n.find(".count")),i.hasClass("disliked")&&(i.removeClass("text-primary disliked"),decreaseCounter(i.find(".count"))),window.analyticsEvents&&window.analyticsEvents.videoReact("Like",t)):(n.removeClass("text-primary liked"),decreaseCounter(n.find(".count")),window.analyticsEvents&&window.analyticsEvents.videoRemoveReact("Unlike",t));$.ajax({url:"/Action/Like?entityId="+t,type:r,success:function(){req=!1},error:function(){req=!1}})}});$(document).on("click",".dislike",function(){if(!req){if(!isLoggedIn())return showLoginPopUp(),!1;var n=$(this),t=$(this).data("entity-id"),i=$('.like[data-entity-id="'+t+'"]'),r=$(this).hasClass("disliked")?"DELETE":"POST";req=!0;r=="POST"?(n.addClass("text-primary disliked"),increaseCounter(n.find(".count")),i.hasClass("liked")&&(i.removeClass("text-primary liked"),decreaseCounter(i.find(".count"))),window.analyticsEvents&&window.analyticsEvents.videoReact("Disike",t)):(n.removeClass("text-primary disliked"),decreaseCounter(n.find(".count")),window.analyticsEvents&&window.analyticsEvents.videoRemoveReact("Undislike",t));$.ajax({url:"/Action/Dislike?entityId="+t,type:r,success:function(){req=!1},error:function(){req=!1}})}});$(document).on("click",".bookmark",function(){if(!isLoggedIn())return showLoginPopUp(),!1;var n=$(this),t=$(this).data("id"),i=$(this).hasClass("bookmarked")?"DELETE":"POST";$.ajax({url:"/Action/Bookmark?videoId="+t,type:i,success:function(){i=="POST"?(n.addClass("text-primary bookmarked"),n.removeClass("text-muted"),window.analyticsEvents&&window.analyticsEvents.watchLater("Save","bookmark",t)):(n.removeClass("text-primary bookmarked"),n.addClass("text-muted"),window.analyticsEvents&&window.analyticsEvents.watchLater("Unsave","unbookmark",t))}})});$(document).on("click",".rate",function(){if(!isLoggedIn())return showLoginPopUp(),!1;var n=$(this),i=n.data("entity-id"),t=n.data("entity-value");$.ajax({url:"/Action/Rate",data:{entityId:i,value:t},type:"POST",success:function(){window.analyticsEvents&&window.analyticsEvents.videoRate("rate",id,t)}})});$(document).on("click",".comment-tag",function(){var t=window.comments.tag,n=$(this).text().replace("#","");return t!==n&&(window.comments.tag=n,window.comments.page=0,window.vpspc.getComments(!0),window.vpspc.removeLoader()),!1});$(document).on("click",".remove-tag",function(){window.comments.tag="";window.comments.page=0;window.vpspc.getComments(!0);window.vpspc.removeLoader()});$(document).on("click",".manage-comment-toggle",function(){$(".manage-comment-dd").removeClass("-open");$(this).siblings(".manage-comment-dd").toggleClass("-open")});$(document).click(function(n){$(n.target).closest(".manage-comment-toggle, .manage-comment-toggle *, .manage-comment-dd, .manage-comment-dd *").length||$(".manage-comment-dd").removeClass("-open")});lazyPlaylist={upDirection:0,downDirection:0,requestReturned:!0,upScrollOff:!1,downScrollOff:!1,seasons:new Map,scrollToFirst:0,scrollExtra:isEmbed!==undefined&&isEmbed?60:140,playlistWrapper:document.querySelector(".playlist__videos"),$container:$(".playlist__videos"),addLoading:function(n){var t=document.createElement("p");t.classList.add("is-loading");t.classList.add("pb-4");n<0?$(".season").prepend(t):$(".season").append(t)},removeLoading:function(){$(".season").children(".is-loading").remove()},getSeasonPlaylist:function(n,t,i){$.ajax({url:"/Video/GetSeasonPlaylist?videoEntityId="+n+"&seasonId="+Number(t)+"&direction="+i,type:"GET",success:function(n){lazyPlaylist.playlistSuccessResponse(n,i,t)}}).done(function(){lazyPlaylist.requestReturned=!0;lazyPlaylist.removeLoading()})},playlistSuccessResponse:function(n,t,i){var r=$(n).find(".season").children(),u,f;r.length===0&&(t<0?lazyPlaylist.upScrollOff=!0:lazyPlaylist.downScrollOff=!0);t<0?(u=$("#season-"+i).height(),$("#season-"+i).prepend(r),f=$("#season-"+i).height(),$(".playlist__videos").scrollTop(f-u)):$("#season-"+i).append(r)},loadSeasonPlaylist:function(n){var t=$(".sort-selected").attr("data-value"),i;t&&(i=this.updateDirectionCount(t,n),this.requestReturned=!1,this.addLoading(i),this.scrollToFirst=$(".playlist-item:visible:first"),this.getSeasonPlaylist(vpspc.object.EntityId,t,i))},updateDirectionCount:function(n,t){this.seasons.get(n)||this.seasons.set(n,{up:0,down:0});var i=this.seasons.get(n);return t>0?i.down+=1:i.up-=1,this.seasons.set(n,i),t>0?i.down:i.up},eventInit:function(n){n&&this.clearPlaylistSeasons();this.autoLoadSeasonPlaylist();this.scrollEvent()},clearPlaylistSeasons:function(){this.seasons.forEach(function(n,t){lazyPlaylist.seasons.set(t,{up:0,down:0})})},autoLoadSeasonPlaylist:function(){this.playlistScrollIsActive()||(lazyPlaylist.loadSeasonPlaylist(1),lazyPlaylist.loadSeasonPlaylist(-1))},scrollEvent:function(){this.downScrollOff=!1;this.upScrollOff=!1;$(".playlist__videos").scroll(function(){lazyPlaylist.requestReturned&&($(this).scrollTop()+$(this).innerHeight()>=$(this)[0].scrollHeight-5&&!lazyPlaylist.downScrollOff?lazyPlaylist.loadSeasonPlaylist(1):$(this).scrollTop()!=0||lazyPlaylist.upScrollOff||lazyPlaylist.loadSeasonPlaylist(-1))})},scrollPlaylistToCurrent:function(){if(document.querySelector(".playlist__videos")){var n=$(".playlist__videos"),t=$(".playlist__videos .current");t.length?n.animate({scrollTop:t.offset().top-n.offset().top+n.scrollTop(),scrollLeft:0},300,function(){lazyPlaylist.eventInit(!0)}):lazyPlaylist.eventInit(!0)}},scrollPlaylistToTop:function(){var t=$(".playlist__videos"),n=$(".playlist-item:visible:first"),i=n?n.height()/2:50;lazyPlaylist.upScrollOff=!0;t.animate({scrollTop:i},300).promise().done(function(){lazyPlaylist.upScrollOff=!1;lazyPlaylist.eventInit(!1)})},playlistScrollIsActive:function(){return(this.$container=$(".playlist__videos"),this.$container.length>0)?this.$container.get(0).scrollHeight>this.$container.get(0).clientHeight:!1}};$(document).ready(function(){lazyPlaylist.scrollPlaylistToCurrent()})