@everymatrix/casino-tournament-list 1.63.2 → 1.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-tournament-list/casino-tournament-list.esm.js +1 -1
- package/dist/casino-tournament-list/{p-7e0f27e4.entry.js → p-f915b67e.entry.js} +1 -1
- package/dist/cjs/casino-tournament-banner_6.cjs.entry.js +2 -2
- package/dist/esm/casino-tournament-banner_6.entry.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-4ff40b59.js";export{s as setNonce}from"./p-4ff40b59.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((async t=>(await n(),e([["p-
|
|
1
|
+
import{p as t,b as e}from"./p-4ff40b59.js";export{s as setNonce}from"./p-4ff40b59.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((async t=>(await n(),e([["p-f915b67e",[[1,"casino-tournament-list",{endpoint:[1],language:[1],session:[1],sortType:[1,"sort-type"],sortOrder:[1,"sort-order"],offset:[2],limit:[2],showAnonymous:[4,"show-anonymous"],state:[1],startTimeAfter:[1,"start-time-after"],updateTournaments:[4,"update-tournaments"],loginEvent:[1,"login-event"],registerEvent:[1,"register-event"],cardMode:[4,"card-mode"],showReadMore:[4,"show-read-more"],currency:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],limitStylingAppends:[32],tournaments:[32],states:[32],currentState:[32],isLoading:[32],tournamentsShown:[32],allTournamentsShown:[32],sseConnection:[32],translationData:[32],initialLoad:[32]},null,{session:["updateTournament"]}],[1,"casino-tournament-info",{endpoint:[1],nameOrTitle:[1,"name-or-title"],scoreCriteria:[1,"score-criteria"],tournamentId:[1,"tournament-id"],session:[1],userId:[1,"user-id"],language:[1],termsUrl:[1,"terms-url"],keepContext:[4,"keep-context"],useGroup:[4,"use-group"],align:[1],showDates:[4,"show-dates"],showPrizes:[4,"show-prizes"],showButton:[4,"show-button"],shortStart:[4,"short-start"],seeGames:[4,"see-games"],useEvent:[4,"use-event"],startTime:[1,"start-time"],endTime:[1,"end-time"],minBetCount:[2,"min-bet-count"],prizes:[8],shortStartFormat:[1,"short-start-format"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],enrolled:[4],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],translationUrl:[513,"translation-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],startDate:[32],tournamentInfo:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-banner",{useEvent:[1,"use-event"],endpoint:[1],state:[1],enrolled:[4],startTime:[1,"start-time"],endTime:[1,"end-time"],thumbnail:[1],language:[1],showCalendar:[4,"show-calendar"],shortStart:[4,"short-start"],shortstartformat:[1],showDate:[4,"show-date"],showRunningDate:[4,"show-running-date"],showCheck:[4,"show-check"],cardMode:[4,"card-mode"],nameOrTitle:[1,"name-or-title"],description:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],stateText:[32],limitStylingAppends:[32],startdate:[32],tournamentLeftDays:[32],showRemain:[32],durationInterval:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"],[8,"TournamentUserEnrolled","userEnrolledHandler"]],{language:["watchLanguage"]}],[1,"casino-tournament-duration",{startTime:[1,"start-time"],endTime:[1,"end-time"],status:[1],language:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]},null,{language:["watchLanguage"]}],[1,"casino-tournament-prizes",{language:[1],useGroup:[4,"use-group"],useEvent:[4,"use-event"],endpoint:[1],session:[1],rawPrizes:[1,"raw-prizes"],tournamentId:[1,"tournament-id"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],prizes:[32],prizeGroups:[32],initialLoad:[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-buttons",{language:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],endpoint:[1],currency:[1],bonusCode:[1,"bonus-code"],enrolled:[4],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],t))));
|
|
@@ -6,7 +6,7 @@ import{r as t,h as e,g as i,c as n}from"./p-4ff40b59.js";const r={en:{joined:"Jo
|
|
|
6
6
|
//! momentjs.com
|
|
7
7
|
var a,o;function u(){return a.apply(null,arguments)}function h(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function d(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function f(t){return void 0===t}function m(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function g(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function b(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function p(t,e){for(var i in e)l(e,i)&&(t[i]=e[i]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function v(t,e,i,n){return Ee(t,e,i,n,!0).utc()}function y(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function w(t){if(null==t._isValid){var e=y(t),i=o.call(e.parsedDateParts,(function(t){return null!=t})),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function S(t){var e=v(NaN);return null!=t?p(y(e),t):y(e).userInvalidated=!0,e}o=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var k=u.momentProperties=[],M=!1;function D(t,e){var i,n,r,s=k.length;if(f(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),f(e._i)||(t._i=e._i),f(e._f)||(t._f=e._f),f(e._l)||(t._l=e._l),f(e._strict)||(t._strict=e._strict),f(e._tzm)||(t._tzm=e._tzm),f(e._isUTC)||(t._isUTC=e._isUTC),f(e._offset)||(t._offset=e._offset),f(e._pf)||(t._pf=y(e)),f(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)f(r=e[n=k[i]])||(t[n]=r);return t}function A(t){D(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,u.updateOffset(this),M=!1)}function x(t){return t instanceof A||null!=t&&null!=t._isAMomentObject}function T(t){!1===u.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var i=!0;return p((function(){if(null!=u.deprecationHandler&&u.deprecationHandler(null,t),i){var n,r,s,a=[],o=arguments.length;for(r=0;r<o;r++){if(n="","object"==typeof arguments[r]){for(s in n+="\n["+r+"] ",arguments[0])l(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}T(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var F,j={};function N(t,e){null!=u.deprecationHandler&&u.deprecationHandler(t,e),j[t]||(T(e),j[t]=!0)}function R(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t,e){var i,n=p({},t);for(i in e)l(e,i)&&(d(t[i])&&d(e[i])?(n[i]={},p(n[i],t[i]),p(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)l(t,i)&&!l(e,i)&&d(t[i])&&(n[i]=p({},n[i]));return n}function z(t){null!=t&&this.set(t)}function J(t,e,i){var n=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}u.suppressDeprecationWarnings=!1,u.deprecationHandler=null,F=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)l(t,e)&&i.push(e);return i};var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},W={};function H(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(W[t]=r),e&&(W[e[0]]=function(){return J(r.apply(this,arguments),e[1],e[2])}),i&&(W[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function P(t,e){return t.isValid()?(e=L(e,t.localeData()),B[e]=B[e]||function(t){var e,i,n,r=t.match(O);for(e=0,i=r.length;e<i;e++)r[e]=W[r[e]]?W[r[e]]:(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,s="";for(n=0;n<i;n++)s+=R(r[n])?r[n].call(e,t):r[n];return s}}(e),B[e](t)):t.localeData().invalidDate()}function L(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(E.lastIndex=0;i>=0&&E.test(t);)t=t.replace(E,n),E.lastIndex=0,i-=1;return t}var I={};function G(t,e){var i=t.toLowerCase();I[i]=I[i+"s"]=I[e]=t}function _(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function U(t){var e,i,n={};for(i in t)l(t,i)&&(e=_(i))&&(n[e]=t[i]);return n}var V={};function Z(t,e){V[t]=e}function $(t){return t%4==0&&t%100!=0||t%400==0}function K(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function q(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=K(e)),i}function X(t,e){return function(i){return null!=i?(tt(this,t,i),u.updateOffset(this,e),this):Q(this,t)}}function Q(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function tt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&$(t.year())&&1===t.month()&&29===t.date()?(i=q(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Jt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var et,it=/\d/,nt=/\d\d/,rt=/\d{3}/,st=/\d{4}/,at=/[+-]?\d{6}/,ot=/\d\d?/,ut=/\d\d\d\d?/,ht=/\d\d\d\d\d\d?/,dt=/\d{1,3}/,lt=/\d{1,4}/,ct=/[+-]?\d{1,6}/,ft=/\d+/,mt=/[+-]?\d+/,gt=/Z|[+-]\d\d:?\d\d/gi,bt=/Z|[+-]\d\d(?::?\d\d)?/gi,pt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function vt(t,e,i){et[t]=R(e)?e:function(t){return t&&i?i:e}}function yt(t,e){return l(et,t)?et[t](e._strict,e._locale):new RegExp(wt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function wt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}et={};var St={};function kt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),m(e)&&(r=function(t,i){i[e]=q(t)}),n=t.length,i=0;i<n;i++)St[t[i]]=r}function Mt(t,e){kt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function Dt(t,e,i){null!=e&&l(St,t)&&St[t](e,i._a,i,t)}var At,xt=0,Tt=1,Ct=2,Ft=3,jt=4,Nt=5,Rt=6,Yt=7,zt=8;function Jt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?$(t)?29:28:31-i%7%2}At=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),H("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),G("month","M"),Z("month",8),vt("M",ot),vt("MM",ot,nt),vt("MMM",(function(t,e){return e.monthsShortRegex(t)})),vt("MMMM",(function(t,e){return e.monthsRegex(t)})),kt(["M","MM"],(function(t,e){e[Tt]=q(t)-1})),kt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[Tt]=r:y(i).invalidMonth=t}));var Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Et="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Bt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Wt=pt,Ht=pt;function Pt(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=v([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=At.call(this._shortMonthsParse,a))?r:null:-1!==(r=At.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=At.call(this._shortMonthsParse,a))||-1!==(r=At.call(this._longMonthsParse,a))?r:null:-1!==(r=At.call(this._longMonthsParse,a))||-1!==(r=At.call(this._shortMonthsParse,a))?r:null}function Lt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=q(e);else if(!m(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),Jt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function It(t){return null!=t?(Lt(this,t),u.updateOffset(this,!0),this):Q(this,"Month")}function Gt(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],s=[];for(e=0;e<12;e++)i=v([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)n[e]=wt(n[e]),r[e]=wt(r[e]);for(e=0;e<24;e++)s[e]=wt(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function _t(t){return $(t)?366:365}H("Y",0,0,(function(){var t=this.year();return t<=9999?J(t,4):"+"+t})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),G("year","y"),Z("year",1),vt("Y",mt),vt("YY",ot,nt),vt("YYYY",lt,st),vt("YYYYY",ct,at),vt("YYYYYY",ct,at),kt(["YYYYY","YYYYYY"],xt),kt("YYYY",(function(t,e){e[xt]=2===t.length?u.parseTwoDigitYear(t):q(t)})),kt("YY",(function(t,e){e[xt]=u.parseTwoDigitYear(t)})),kt("Y",(function(t,e){e[xt]=parseInt(t,10)})),u.parseTwoDigitYear=function(t){return q(t)+(q(t)>68?1900:2e3)};var Ut=X("FullYear",!0);function Vt(t,e,i,n,r,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,i,n,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,i,n,r,s,a),o}function Zt(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function $t(t,e,i){var n=7+e-i;return-(7+Zt(t,0,n).getUTCDay()-e)%7+n-1}function Kt(t,e,i,n,r){var s,a,o=1+7*(e-1)+(7+i-n)%7+$t(t,n,r);return o<=0?a=_t(s=t-1)+o:o>_t(t)?(s=t+1,a=o-_t(t)):(s=t,a=o),{year:s,dayOfYear:a}}function qt(t,e,i){var n,r,s=$t(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+Xt(r=t.year()-1,e,i):a>Xt(t.year(),e,i)?(n=a-Xt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function Xt(t,e,i){var n=$t(t,e,i),r=$t(t+1,e,i);return(_t(t)-n+r)/7}function Qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),G("week","w"),G("isoWeek","W"),Z("week",5),Z("isoWeek",5),vt("w",ot),vt("ww",ot,nt),vt("W",ot),vt("WW",ot,nt),Mt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=q(t)})),H("d",0,"do","day"),H("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),H("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),H("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),G("day","d"),G("weekday","e"),G("isoWeekday","E"),Z("day",11),Z("weekday",11),Z("isoWeekday",11),vt("d",ot),vt("e",ot),vt("E",ot),vt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),vt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),vt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Mt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:y(i).invalidWeekday=t})),Mt(["d","e","E"],(function(t,e,i,n){e[n]=q(t)}));var te="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ee="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ne=pt,re=pt,se=pt;function ae(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=v([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=At.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=At.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=At.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=At.call(this._weekdaysParse,a))||-1!==(r=At.call(this._shortWeekdaysParse,a))||-1!==(r=At.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=At.call(this._shortWeekdaysParse,a))||-1!==(r=At.call(this._weekdaysParse,a))||-1!==(r=At.call(this._minWeekdaysParse,a))?r:null:-1!==(r=At.call(this._minWeekdaysParse,a))||-1!==(r=At.call(this._weekdaysParse,a))||-1!==(r=At.call(this._shortWeekdaysParse,a))?r:null}function oe(){function t(t,e){return e.length-t.length}var e,i,n,r,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)i=v([2e3,1]).day(e),n=wt(this.weekdaysMin(i,"")),r=wt(this.weekdaysShort(i,"")),s=wt(this.weekdays(i,"")),a.push(n),o.push(r),u.push(s),h.push(n),h.push(r),h.push(s);a.sort(t),o.sort(t),u.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ue(){return this.hours()%12||12}function he(t,e){H(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function de(t,e){return e._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,ue),H("k",["kk",2],0,(function(){return this.hours()||24})),H("hmm",0,0,(function(){return""+ue.apply(this)+J(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+ue.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+J(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)})),he("a",!0),he("A",!1),G("hour","h"),Z("hour",13),vt("a",de),vt("A",de),vt("H",ot),vt("h",ot),vt("k",ot),vt("HH",ot,nt),vt("hh",ot,nt),vt("kk",ot,nt),vt("hmm",ut),vt("hmmss",ht),vt("Hmm",ut),vt("Hmmss",ht),kt(["H","HH"],Ft),kt(["k","kk"],(function(t,e){var i=q(t);e[Ft]=24===i?0:i})),kt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),kt(["h","hh"],(function(t,e,i){e[Ft]=q(t),y(i).bigHour=!0})),kt("hmm",(function(t,e,i){var n=t.length-2;e[Ft]=q(t.substr(0,n)),e[jt]=q(t.substr(n)),y(i).bigHour=!0})),kt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[Ft]=q(t.substr(0,n)),e[jt]=q(t.substr(n,2)),e[Nt]=q(t.substr(r)),y(i).bigHour=!0})),kt("Hmm",(function(t,e){var i=t.length-2;e[Ft]=q(t.substr(0,i)),e[jt]=q(t.substr(i))})),kt("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[Ft]=q(t.substr(0,i)),e[jt]=q(t.substr(i,2)),e[Nt]=q(t.substr(n))}));var le,ce=X("Hours",!0),fe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:Et,week:{dow:0,doy:6},weekdays:te,weekdaysMin:ie,weekdaysShort:ee,meridiemParse:/[ap]\.?m?\.?/i},me={},ge={};function be(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function pe(t){return t?t.toLowerCase().replace("_","-"):t}function ve(t){var e=null;if(void 0===me[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=le._abbr,require("./locale/"+t),ye(e)}catch(e){me[t]=null}return me[t]}function ye(t,e){var i;return t&&((i=f(e)?Se(t):we(t,e))?le=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),le._abbr}function we(t,e){if(null!==e){var i,n=fe;if(e.abbr=t,null!=me[t])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=me[t]._config;else if(null!=e.parentLocale)if(null!=me[e.parentLocale])n=me[e.parentLocale]._config;else{if(null==(i=ve(e.parentLocale)))return ge[e.parentLocale]||(ge[e.parentLocale]=[]),ge[e.parentLocale].push({name:t,config:e}),null;n=i._config}return me[t]=new z(Y(n,e)),ge[t]&&ge[t].forEach((function(t){we(t.name,t.config)})),ye(t),me[t]}return delete me[t],null}function Se(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return le;if(!h(t)){if(e=ve(t))return e;t=[t]}return function(t){for(var e,i,n,r,s=0;s<t.length;){for(e=(r=pe(t[s]).split("-")).length,i=(i=pe(t[s+1]))?i.split("-"):null;e>0;){if(n=ve(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&be(r,i)>=e-1)break;e--}s++}return le}(t)}function ke(t){var e,i=t._a;return i&&-2===y(t).overflow&&(e=i[Tt]<0||i[Tt]>11?Tt:i[Ct]<1||i[Ct]>Jt(i[xt],i[Tt])?Ct:i[Ft]<0||i[Ft]>24||24===i[Ft]&&(0!==i[jt]||0!==i[Nt]||0!==i[Rt])?Ft:i[jt]<0||i[jt]>59?jt:i[Nt]<0||i[Nt]>59?Nt:i[Rt]<0||i[Rt]>999?Rt:-1,y(t)._overflowDayOfYear&&(e<xt||e>Ct)&&(e=Ct),y(t)._overflowWeeks&&-1===e&&(e=Yt),y(t)._overflowWeekday&&-1===e&&(e=zt),y(t).overflow=e),t}var Me=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,De=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ae=/Z|[+-]\d\d(?::?\d\d)?/,xe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Te=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ce=/^\/?Date\((-?\d+)/i,Fe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,je={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ne(t){var e,i,n,r,s,a,o=t._i,u=Me.exec(o)||De.exec(o),h=xe.length,d=Te.length;if(u){for(y(t).iso=!0,e=0,i=h;e<i;e++)if(xe[e][1].exec(u[1])){r=xe[e][0],n=!1!==xe[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,i=d;e<i;e++)if(Te[e][1].exec(u[3])){s=(u[2]||" ")+Te[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(u[4]){if(!Ae.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Je(t)}else t._isValid=!1}function Re(t){var e,i,n,r,s,a,o,u,h,d=Fe.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(i=d[3],n=d[2],r=d[5],s=d[6],a=d[7],o=[(u=d[4],h=parseInt(u,10),h<=49?2e3+h:h<=999?1900+h:h),Et.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,i){return!t||ee.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(y(i).weekdayMismatch=!0,i._isValid=!1,!1)}(d[1],e=o,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return je[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(d[8],d[9],d[10]),t._d=Zt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),y(t).rfc2822=!0}else t._isValid=!1}function Ye(t,e,i){return null!=t?t:null!=e?e:i}function ze(t){var e,i,n,r,s,a=[];if(!t._d){for(n=function(t){var e=new Date(u.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Ct]&&null==t._a[Tt]&&function(t){var e,i,n,r,s,a,o,u,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,a=4,i=Ye(e.GG,t._a[xt],qt(Be(),1,4).year),n=Ye(e.W,1),((r=Ye(e.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=qt(Be(),s,a),i=Ye(e.gg,t._a[xt],h.year),n=Ye(e.w,h.week),null!=e.d?((r=e.d)<0||r>6)&&(u=!0):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(u=!0)):r=s),n<1||n>Xt(i,s,a)?y(t)._overflowWeeks=!0:null!=u?y(t)._overflowWeekday=!0:(o=Kt(i,n,r,s,a),t._a[xt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=Ye(t._a[xt],n[xt]),(t._dayOfYear>_t(s)||0===t._dayOfYear)&&(y(t)._overflowDayOfYear=!0),i=Zt(s,0,t._dayOfYear),t._a[Tt]=i.getUTCMonth(),t._a[Ct]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Ft]&&0===t._a[jt]&&0===t._a[Nt]&&0===t._a[Rt]&&(t._nextDay=!0,t._a[Ft]=0),t._d=(t._useUTC?Zt:Vt).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ft]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(y(t).weekdayMismatch=!0)}}function Je(t){if(t._f!==u.ISO_8601)if(t._f!==u.RFC_2822){t._a=[],y(t).empty=!0;var e,i,n,r,s,a,o,h=""+t._i,d=h.length,l=0;for(o=(n=L(t._f,t._locale).match(O)||[]).length,e=0;e<o;e++)(i=(h.match(yt(r=n[e],t))||[])[0])&&((s=h.substr(0,h.indexOf(i))).length>0&&y(t).unusedInput.push(s),h=h.slice(h.indexOf(i)+i.length),l+=i.length),W[r]?(i?y(t).empty=!1:y(t).unusedTokens.push(r),Dt(r,i,t)):t._strict&&!i&&y(t).unusedTokens.push(r);y(t).charsLeftOver=d-l,h.length>0&&y(t).unusedInput.push(h),t._a[Ft]<=12&&!0===y(t).bigHour&&t._a[Ft]>0&&(y(t).bigHour=void 0),y(t).parsedDateParts=t._a.slice(0),y(t).meridiem=t._meridiem,t._a[Ft]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[Ft],t._meridiem),null!==(a=y(t).era)&&(t._a[xt]=t._locale.erasConvertYear(a,t._a[xt])),ze(t),ke(t)}else Re(t);else Ne(t)}function Oe(t){var e=t._i,i=t._f;return t._locale=t._locale||Se(t._l),null===e||void 0===i&&""===e?S({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new A(ke(e)):(g(e)?t._d=e:h(i)?function(t){var e,i,n,r,s,a,o=!1,u=t._f.length;if(0===u)return y(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,a=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Je(e),w(e)&&(a=!0),s+=y(e).charsLeftOver,s+=10*y(e).unusedTokens.length,y(e).score=s,o?s<n&&(n=s,i=e):(null==n||s<n||a)&&(n=s,i=e,a&&(o=!0));p(t,i||e)}(t):i?Je(t):function(t){var e=t._i;f(e)?t._d=new Date(u.now()):g(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Ce.exec(t._i);null===e?(Ne(t),!1===t._isValid&&(delete t._isValid,Re(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:u.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):h(e)?(t._a=b(e.slice(0),(function(t){return parseInt(t,10)})),ze(t)):d(e)?function(t){if(!t._d){var e=U(t._i);t._a=b([e.year,e.month,void 0===e.day?e.date:e.day,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),ze(t)}}(t):m(e)?t._d=new Date(e):u.createFromInputFallback(t)}(t),w(t)||(t._d=null),t))}function Ee(t,e,i,n,r){var s,a={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(d(t)&&c(t)||h(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=i,a._i=t,a._f=e,a._strict=n,(s=new A(ke(Oe(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Be(t,e,i,n){return Ee(t,e,i,n,!1)}u.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),u.ISO_8601=function(){},u.RFC_2822=function(){};var We=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Be.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:S()})),He=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Be.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:S()}));function Pe(t,e){var i,n;if(1===e.length&&h(e[0])&&(e=e[0]),!e.length)return Be();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Le=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ie(t){var e=U(t),i=e.year||0,n=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,h=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=Le.length;for(e in t)if(l(t,e)&&(-1===At.call(Le,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[Le[i]]){if(n)return!1;parseFloat(t[Le[i]])!==q(t[Le[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*n+12*i,this._data={},this._locale=Se(),this._bubble()}function Ge(t){return t instanceof Ie}function _e(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ue(t,e){H(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+J(~~(t/60),2)+e+J(~~t%60,2)}))}Ue("Z",":"),Ue("ZZ",""),vt("Z",bt),vt("ZZ",bt),kt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Ze(bt,t)}));var Ve=/([\+\-]|\d\d)/gi;function Ze(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(Ve)||["-",0,0])[1]+q(i[2]))?0:"+"===i[0]?n:-n}function $e(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(x(t)||g(t)?t.valueOf():Be(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),u.updateOffset(i,!1),i):Be(t).local()}function Ke(t){return-Math.round(t._d.getTimezoneOffset())}function qe(){return!!this.isValid()&&this._isUTC&&0===this._offset}u.updateOffset=function(){};var Xe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Qe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ti(t,e){var i,n,r,s,a,o,u=t,h=null;return Ge(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:m(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=Xe.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:q(h[Ct])*i,h:q(h[Ft])*i,m:q(h[jt])*i,s:q(h[Nt])*i,ms:q(_e(1e3*h[Rt]))*i}):(h=Qe.exec(t))?u={y:ei(h[2],i="-"===h[1]?-1:1),M:ei(h[3],i),w:ei(h[4],i),d:ei(h[5],i),h:ei(h[6],i),m:ei(h[7],i),s:ei(h[8],i)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=Be(u.from),a=Be(u.to),r=s.isValid()&&a.isValid()?(a=$e(a,s),s.isBefore(a)?o=ii(s,a):((o=ii(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new Ie(u),Ge(t)&&l(t,"_locale")&&(n._locale=t._locale),Ge(t)&&l(t,"_isValid")&&(n._isValid=t._isValid),n}function ei(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function ii(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function ni(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(N(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),ri(this,ti(i,n),t),this}}function ri(t,e,i,n){var r=e._milliseconds,s=_e(e._days),a=_e(e._months);t.isValid()&&(n=null==n||n,a&&Lt(t,Q(t,"Month")+a*i),s&&tt(t,"Date",Q(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&u.updateOffset(t,s||a))}ti.fn=Ie.prototype,ti.invalid=function(){return ti(NaN)};var si=ni(1,"add"),ai=ni(-1,"subtract");function oi(t){return"string"==typeof t||t instanceof String}function ui(t,e){if(t.date()<e.date())return-ui(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function hi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Se(t))&&(this._locale=e),this)}u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var di=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function li(){return this._locale}var ci=1e3,fi=6e4,mi=36e5,gi=126227808e5;function bi(t,e){return(t%e+e)%e}function pi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-gi:new Date(t,e,i).valueOf()}function vi(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-gi:Date.UTC(t,e,i)}function yi(t,e){return e.erasAbbrRegex(t)}function wi(){var t,e,i=[],n=[],r=[],s=[],a=this.eras();for(t=0,e=a.length;t<e;++t)n.push(wt(a[t].name)),i.push(wt(a[t].abbr)),r.push(wt(a[t].narrow)),s.push(wt(a[t].name)),s.push(wt(a[t].abbr)),s.push(wt(a[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Si(t,e){H(0,[t,t.length],0,e)}function ki(t,e,i,n,r){var s;return null==t?qt(this,n,r).year:(e>(s=Xt(t,n,r))&&(e=s),Mi.call(this,t,e,i,n,r))}function Mi(t,e,i,n,r){var s=Kt(t,e,i,n,r),a=Zt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),vt("N",yi),vt("NN",yi),vt("NNN",yi),vt("NNNN",(function(t,e){return e.erasNameRegex(t)})),vt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),kt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?y(i).era=r:y(i).invalidEra=t})),vt("y",ft),vt("yy",ft),vt("yyy",ft),vt("yyyy",ft),vt("yo",(function(t,e){return e._eraYearOrdinalRegex||ft})),kt(["y","yy","yyy","yyyy"],xt),kt(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[xt]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Si("gggg","weekYear"),Si("ggggg","weekYear"),Si("GGGG","isoWeekYear"),Si("GGGGG","isoWeekYear"),G("weekYear","gg"),G("isoWeekYear","GG"),Z("weekYear",1),Z("isoWeekYear",1),vt("G",mt),vt("g",mt),vt("GG",ot,nt),vt("gg",ot,nt),vt("GGGG",lt,st),vt("gggg",lt,st),vt("GGGGG",ct,at),vt("ggggg",ct,at),Mt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=q(t)})),Mt(["gg","GG"],(function(t,e,i,n){e[n]=u.parseTwoDigitYear(t)})),H("Q",0,"Qo","quarter"),G("quarter","Q"),Z("quarter",7),vt("Q",it),kt("Q",(function(t,e){e[Tt]=3*(q(t)-1)})),H("D",["DD",2],"Do","date"),G("date","D"),Z("date",9),vt("D",ot),vt("DD",ot,nt),vt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),kt(["D","DD"],Ct),kt("Do",(function(t,e){e[Ct]=q(t.match(ot)[0])}));var Di=X("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),G("dayOfYear","DDD"),Z("dayOfYear",4),vt("DDD",dt),vt("DDDD",rt),kt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=q(t)})),H("m",["mm",2],0,"minute"),G("minute","m"),Z("minute",14),vt("m",ot),vt("mm",ot,nt),kt(["m","mm"],jt);var Ai=X("Minutes",!1);H("s",["ss",2],0,"second"),G("second","s"),Z("second",15),vt("s",ot),vt("ss",ot,nt),kt(["s","ss"],Nt);var xi,Ti,Ci=X("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),G("millisecond","ms"),Z("millisecond",16),vt("S",dt,it),vt("SS",dt,nt),vt("SSS",dt,rt),xi="SSSS";xi.length<=9;xi+="S")vt(xi,ft);function Fi(t,e){e[Rt]=q(1e3*("0."+t))}for(xi="S";xi.length<=9;xi+="S")kt(xi,Fi);Ti=X("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ji=A.prototype;function Ni(t){return t}ji.add=si,ji.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?x(i=arguments[0])||g(i)||oi(i)||m(i)||function(t){var e=h(t),i=!1;return e&&(i=0===t.filter((function(e){return!m(e)&&oi(t)})).length),e&&i}(i)||function(t){var e,i=d(t)&&!c(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(e=0;e<s;e+=1)n=n||l(t,r[e]);return i&&n}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=d(t)&&!c(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||l(t,r[e]);return i&&n}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Be(),r=$e(n,this).startOf("day"),s=u.calendarFormat(this,r)||"sameElse",a=e&&(R(e[s])?e[s].call(this,n):e[s]);return this.format(a||this.localeData().calendar(s,this,Be(n)))},ji.clone=function(){return new A(this)},ji.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=$e(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=_(e)){case"year":s=ui(this,n)/12;break;case"month":s=ui(this,n);break;case"quarter":s=ui(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-r)/864e5;break;case"week":s=(this-n-r)/6048e5;break;default:s=this-n}return i?s:K(s)},ji.endOf=function(t){var e,i;if(void 0===(t=_(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?vi:pi,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=mi-bi(e+(this._isUTC?0:this.utcOffset()*fi),mi)-1;break;case"minute":e=this._d.valueOf(),e+=fi-bi(e,fi)-1;break;case"second":e=this._d.valueOf(),e+=ci-bi(e,ci)-1}return this._d.setTime(e),u.updateOffset(this,!0),this},ji.format=function(t){t||(t=this.isUtc()?u.defaultFormatUtc:u.defaultFormat);var e=P(this,t);return this.localeData().postformat(e)},ji.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Be(t).isValid())?ti({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ji.fromNow=function(t){return this.from(Be(),t)},ji.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Be(t).isValid())?ti({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ji.toNow=function(t){return this.to(Be(),t)},ji.get=function(t){return R(this[t=_(t)])?this[t]():this},ji.invalidAt=function(){return y(this).overflow},ji.isAfter=function(t,e){var i=x(t)?t:Be(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=_(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},ji.isBefore=function(t,e){var i=x(t)?t:Be(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=_(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},ji.isBetween=function(t,e,i,n){var r=x(t)?t:Be(t),s=x(e)?e:Be(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))},ji.isSame=function(t,e){var i,n=x(t)?t:Be(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=_(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},ji.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},ji.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},ji.isValid=function(){return w(this)},ji.lang=di,ji.locale=hi,ji.localeData=li,ji.max=He,ji.min=We,ji.parsingFlags=function(){return p({},y(this))},ji.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)l(t,e)&&i.push({unit:e,priority:V[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=U(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(R(this[t=_(t)]))return this[t](e);return this},ji.startOf=function(t){var e,i;if(void 0===(t=_(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?vi:pi,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=bi(e+(this._isUTC?0:this.utcOffset()*fi),mi);break;case"minute":e=this._d.valueOf(),e-=bi(e,fi);break;case"second":e=this._d.valueOf(),e-=bi(e,ci)}return this._d.setTime(e),u.updateOffset(this,!0),this},ji.subtract=ai,ji.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ji.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},ji.toDate=function(){return new Date(this.valueOf())},ji.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?P(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(i,"Z")):P(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ji.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i="moment",n="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ji[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ji.toJSON=function(){return this.isValid()?this.toISOString():null},ji.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ji.unix=function(){return Math.floor(this.valueOf()/1e3)},ji.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ji.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ji.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""},ji.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""},ji.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""},ji.eraYear=function(){var t,e,i,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-u(r[t].since).year())*i+r[t].offset;return this.year()},ji.year=Ut,ji.isLeapYear=function(){return $(this.year())},ji.weekYear=function(t){return ki.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ji.isoWeekYear=function(t){return ki.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ji.quarter=ji.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ji.month=It,ji.daysInMonth=function(){return Jt(this.year(),this.month())},ji.week=ji.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ji.isoWeek=ji.isoWeeks=function(t){var e=qt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ji.weeksInYear=function(){var t=this.localeData()._week;return Xt(this.year(),t.dow,t.doy)},ji.weeksInWeekYear=function(){var t=this.localeData()._week;return Xt(this.weekYear(),t.dow,t.doy)},ji.isoWeeksInYear=function(){return Xt(this.year(),1,4)},ji.isoWeeksInISOWeekYear=function(){return Xt(this.isoWeekYear(),1,4)},ji.date=Di,ji.day=ji.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ji.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ji.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ji.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ji.hour=ji.hours=ce,ji.minute=ji.minutes=Ai,ji.second=ji.seconds=Ci,ji.millisecond=ji.milliseconds=Ti,ji.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ze(bt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ke(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?ri(this,ti(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ke(this)},ji.utc=function(t){return this.utcOffset(0,t)},ji.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ke(this),"m")),this},ji.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ze(gt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ji.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Be(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ji.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ji.isLocal=function(){return!!this.isValid()&&!this._isUTC},ji.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ji.isUtc=qe,ji.isUTC=qe,ji.zoneAbbr=function(){return this._isUTC?"UTC":""},ji.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ji.dates=C("dates accessor is deprecated. Use date instead.",Di),ji.months=C("months accessor is deprecated. Use month instead",It),ji.years=C("years accessor is deprecated. Use year instead",Ut),ji.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),ji.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!f(this._isDSTShifted))return this._isDSTShifted;var t,e={};return D(e,this),(e=Oe(e))._a?(t=e._isUTC?v(e._a):Be(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,n=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<n;i++)q(t[i])!==q(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Ri=z.prototype;function Yi(t,e,i,n){var r=Se(),s=v().set(n,e);return r[i](s,t)}function zi(t,e,i){if(m(t)&&(e=t,t=void 0),t=t||"",null!=e)return Yi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Yi(t,n,i,"month");return r}function Ji(t,e,i,n){"boolean"==typeof t?(m(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,m(e)&&(i=e,e=void 0),e=e||"");var r,s=Se(),a=t?s._week.dow:0,o=[];if(null!=i)return Yi(e,(i+a)%7,n,"day");for(r=0;r<7;r++)o[r]=Yi(e,(r+a)%7,n,"day");return o}Ri.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return R(n)?n.call(e,i):n},Ri.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(O).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Ri.invalidDate=function(){return this._invalidDate},Ri.ordinal=function(t){return this._ordinal.replace("%d",t)},Ri.preparse=Ni,Ri.postformat=Ni,Ri.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return R(r)?r(t,e,i,n):r.replace(/%d/i,t)},Ri.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return R(i)?i(e):i.replace(/%s/i,e)},Ri.set=function(t){var e,i;for(i in t)l(t,i)&&(R(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ri.eras=function(){var t,e,i,n=this._eras||Se("en")._eras;for(t=0,e=n.length;t<e;++t)switch("string"==typeof n[t].since&&(i=u(n[t].since).startOf("day"),n[t].since=i.valueOf()),typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":i=u(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}return n},Ri.erasParse=function(t,e,i){var n,r,s,a,o,u=this.eras();for(t=t.toUpperCase(),n=0,r=u.length;n<r;++n)if(s=u[n].name.toUpperCase(),a=u[n].abbr.toUpperCase(),o=u[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return u[n];break;case"NNNN":if(s===t)return u[n];break;case"NNNNN":if(o===t)return u[n]}else if([s,a,o].indexOf(t)>=0)return u[n]},Ri.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?u(t.since).year():u(t.since).year()+(e-t.offset)*i},Ri.erasAbbrRegex=function(t){return l(this,"_erasAbbrRegex")||wi.call(this),t?this._erasAbbrRegex:this._erasRegex},Ri.erasNameRegex=function(t){return l(this,"_erasNameRegex")||wi.call(this),t?this._erasNameRegex:this._erasRegex},Ri.erasNarrowRegex=function(t){return l(this,"_erasNarrowRegex")||wi.call(this),t?this._erasNarrowRegex:this._erasRegex},Ri.months=function(t,e){return t?h(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Bt).test(e)?"format":"standalone"][t.month()]:h(this._months)?this._months:this._months.standalone},Ri.monthsShort=function(t,e){return t?h(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Bt.test(e)?"format":"standalone"][t.month()]:h(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ri.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return Pt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=v([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},Ri.monthsRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Gt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Ht),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Ri.monthsShortRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Gt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Wt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Ri.week=function(t){return qt(t,this._week.dow,this._week.doy).week},Ri.firstDayOfYear=function(){return this._week.doy},Ri.firstDayOfWeek=function(){return this._week.dow},Ri.weekdays=function(t,e){var i=h(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Qt(i,this._week.dow):t?i[t.day()]:i},Ri.weekdaysMin=function(t){return!0===t?Qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Ri.weekdaysShort=function(t){return!0===t?Qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Ri.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return ae.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=v([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},Ri.weekdaysRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||oe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=ne),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Ri.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||oe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=re),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ri.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||oe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=se),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ri.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Ri.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},ye("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===q(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),u.lang=C("moment.lang is deprecated. Use moment.locale instead.",ye),u.langData=C("moment.langData is deprecated. Use moment.localeData instead.",Se);var Oi=Math.abs;function Ei(t,e,i,n){var r=ti(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Bi(t){return t<0?Math.floor(t):Math.ceil(t)}function Wi(t){return 4800*t/146097}function Hi(t){return 146097*t/4800}function Pi(t){return function(){return this.as(t)}}var Li=Pi("ms"),Ii=Pi("s"),Gi=Pi("m"),_i=Pi("h"),Ui=Pi("d"),Vi=Pi("w"),Zi=Pi("M"),$i=Pi("Q"),Ki=Pi("y");function qi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Xi=qi("milliseconds"),Qi=qi("seconds"),tn=qi("minutes"),en=qi("hours"),nn=qi("days"),rn=qi("months"),sn=qi("years"),an=Math.round,on={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function un(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var hn=Math.abs;function dn(t){return(t>0)-(t<0)||+t}function ln(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,a,o,u=hn(this._milliseconds)/1e3,h=hn(this._days),d=hn(this._months),l=this.asSeconds();return l?(t=K(u/60),e=K(t/60),u%=60,t%=60,i=K(d/12),d%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=l<0?"-":"",s=dn(this._months)!==dn(l)?"-":"",a=dn(this._days)!==dn(l)?"-":"",o=dn(this._milliseconds)!==dn(l)?"-":"",r+"P"+(i?s+i+"Y":"")+(d?s+d+"M":"")+(h?a+h+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+n+"S":"")):"P0D"}var cn=Ie.prototype;cn.isValid=function(){return this._isValid},cn.abs=function(){var t=this._data;return this._milliseconds=Oi(this._milliseconds),this._days=Oi(this._days),this._months=Oi(this._months),t.milliseconds=Oi(t.milliseconds),t.seconds=Oi(t.seconds),t.minutes=Oi(t.minutes),t.hours=Oi(t.hours),t.months=Oi(t.months),t.years=Oi(t.years),this},cn.add=function(t,e){return Ei(this,t,e,1)},cn.subtract=function(t,e){return Ei(this,t,e,-1)},cn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=_(t))||"quarter"===t||"year"===t)switch(i=this._months+Wi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(Hi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},cn.asMilliseconds=Li,cn.asSeconds=Ii,cn.asMinutes=Gi,cn.asHours=_i,cn.asDays=Ui,cn.asWeeks=Vi,cn.asMonths=Zi,cn.asQuarters=$i,cn.asYears=Ki,cn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},cn._bubble=function(){var t,e,i,n,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Bi(Hi(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=K(s/1e3),u.seconds=t%60,e=K(t/60),u.minutes=e%60,i=K(e/60),u.hours=i%24,a+=K(i/24),o+=r=K(Wi(a)),a-=Bi(Hi(r)),n=K(o/12),o%=12,u.days=a,u.months=o,u.years=n,this},cn.clone=function(){return ti(this)},cn.get=function(t){return t=_(t),this.isValid()?this[t+"s"]():NaN},cn.milliseconds=Xi,cn.seconds=Qi,cn.minutes=tn,cn.hours=en,cn.days=nn,cn.weeks=function(){return K(this.days()/7)},cn.months=rn,cn.years=sn,cn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=on;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},on,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=ti(t).abs(),s=an(r.as("s")),a=an(r.as("m")),o=an(r.as("h")),u=an(r.as("d")),h=an(r.as("M")),d=an(r.as("w")),l=an(r.as("y")),c=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||a<=1&&["m"]||a<i.m&&["mm",a]||o<=1&&["h"]||o<i.h&&["hh",o]||u<=1&&["d"]||u<i.d&&["dd",u];return null!=i.w&&(c=c||d<=1&&["w"]||d<i.w&&["ww",d]),(c=c||h<=1&&["M"]||h<i.M&&["MM",h]||l<=1&&["y"]||["yy",l])[2]=e,c[3]=+t>0,c[4]=n,un.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},cn.toISOString=ln,cn.toString=ln,cn.toJSON=ln,cn.locale=hi,cn.localeData=li,cn.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ln),cn.lang=di,H("X",0,0,"unix"),H("x",0,0,"valueOf"),vt("x",mt),vt("X",/[+-]?\d+(\.\d{1,3})?/),kt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),kt("x",(function(t,e,i){i._d=new Date(q(t))})),
|
|
8
8
|
//! moment.js
|
|
9
|
-
u.version="2.29.4",a=Be,u.fn=ji,u.min=function(){return Pe("isBefore",[].slice.call(arguments,0))},u.max=function(){return Pe("isAfter",[].slice.call(arguments,0))},u.now=function(){return Date.now?Date.now():+new Date},u.utc=v,u.unix=function(t){return Be(1e3*t)},u.months=function(t,e){return zi(t,e,"months")},u.isDate=g,u.locale=ye,u.invalid=S,u.duration=ti,u.isMoment=x,u.weekdays=function(t,e,i){return Ji(t,e,i,"weekdays")},u.parseZone=function(){return Be.apply(null,arguments).parseZone()},u.localeData=Se,u.isDuration=Ge,u.monthsShort=function(t,e){return zi(t,e,"monthsShort")},u.weekdaysMin=function(t,e,i){return Ji(t,e,i,"weekdaysMin")},u.defineLocale=we,u.updateLocale=function(t,e){if(null!=e){var i,n,r=fe;null!=me[t]&&null!=me[t].parentLocale?me[t].set(Y(me[t]._config,e)):(null!=(n=ve(t))&&(r=n._config),e=Y(r,e),null==n&&(e.abbr=t),(i=new z(e)).parentLocale=me[t],me[t]=i),ye(t)}else null!=me[t]&&(null!=me[t].parentLocale?(me[t]=me[t].parentLocale,t===ye()&&ye(t)):null!=me[t]&&delete me[t]);return me[t]},u.locales=function(){return F(me)},u.weekdaysShort=function(t,e,i){return Ji(t,e,i,"weekdaysShort")},u.normalizeUnits=_,u.relativeTimeRounding=function(t){return void 0===t?an:"function"==typeof t&&(an=t,!0)},u.relativeTimeThreshold=function(t,e){return void 0!==on[t]&&(void 0===e?on[t]:(on[t]=e,"s"===t&&(on.ss=e-1),!0))},u.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},u.prototype=ji,u.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const fn=class{constructor(e){t(this,e),this.useEvent=void 0,this.endpoint=void 0,this.state=void 0,this.enrolled=void 0,this.startTime=void 0,this.endTime=void 0,this.thumbnail=void 0,this.language=void 0,this.showCalendar=void 0,this.shortStart=void 0,this.shortstartformat="DD MMM YYYY",this.showDate=!0,this.showRunningDate=!1,this.showCheck=!1,this.cardMode=!1,this.nameOrTitle=void 0,this.description=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.currency=void 0,this.bonusCode=void 0,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.stateText=void 0,this.limitStylingAppends=!1,this.startdate=void 0,this.tournamentLeftDays=void 0,this.showRemain=void 0,this.durationInterval=void 0}watchLanguage(t,e){t&&t!=e&&this.getDuration()}infoCompletedHandler(t){t.detail&&this.useEvent&&(this.state=t.detail.state,this.stateText=this.getStateText(this.state),this.enrolled=t.detail.playerEnrolled,this.startTime=t.detail.startTime,this.thumbnail=t.detail.thumbnail,this.tournamentId=t.detail.id,this.startTime&&this.formatDate())}userEnrolledHandler(t){t.detail&&this.tournamentId===t.detail.tournamentId&&(this.enrolled=t.detail.userenrolled)}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return(t=>" - "+t+" "+s("days",this.language))(Math.ceil(t/1440))}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}getStateText(t){let e="";switch(t){case"Upcoming":case"Unstarted":e=s("scheduled",this.language);break;case"Running":e=s("ongoing",this.language);break;default:e=s("finished",this.language)}return e}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}formatDate(){const t={month:"long"};let e=new Date(this.startTime);const i=()=>s("Running"===this.state||"Closing"==this.state||"Closed"==this.state?"startedAt":"startingAt",this.language);if(this.shortStart){let t=u(e).format(this.shortstartformat);this.startdate="Running"===this.state||"Closing"==this.state||"Closed"==this.state?s("startedAtWithTime",this.language)+t:s("startingAtWithTime",this.language)+t}else{let n=new Intl.DateTimeFormat("en",t).format(e),r=e.getDate(),a=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startdate=`${r} `+s(`${n}`,this.language)+", "+i()+` ${a}`}}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])r[e][i]=t[e][i]})),this.state&&(this.stateText=this.getStateText(this.state))),!this.useEvent&&this.startTime&&this.formatDate(),this.state&&(this.stateText=this.getStateText(this.state)),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}termsClick(t){window.postMessage({type:"TournamentTermsConditions",tournamentId:t},window.location.href)}render(){return e("div",{key:"30d503c748343afce01f545342ab0beb3d3d5e3f",class:"TournamentBannerWrap"},this.thumbnail&&e("div",{key:"daaef63e759ffbaf14eabd2b54d937b957fcab6a",class:`TournamentBanner ${this.state}`,part:`TournamentBanner ${this.state}`},e("img",{key:"9ef1116676b4bbbf7a592ca4dbe7a75f60b09f32",src:this.thumbnail,alt:"",class:`TournamentBannerBg ${this.cardMode&&this.state?this.state:""}`}),!this.cardMode&&e("div",{key:"9fc34aabed34722d2e35dd40cb768bf1216e2a6f",class:"TournamentBannerInfo",part:"TournamentBannerInfo"},e("div",{key:"a100bd48e54e6e58deb629e3737be4d69665c43c",class:"BannerInfo",part:"BannerInfo"},e("span",{key:"fbd99abf8e5b9bf81a5df2840f2d3784bbf62fa5",class:`Tag State ${this.state}`},this.stateText)),e("div",{key:"00b195d5a9e6fa9ee92d94d7273853acb3da39f1",class:"BannerInfo",part:"BannerInfo"},this.showDate&&e("span",{key:"0522a16f1ff07e3e42078eab83f58b4a0e9a6fbf",class:"Tag Date"},this.showCalendar&&e("svg",{key:"58cefa516aadac8e1ea97c4c7550992439d86e1a",class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"a5605e1a28f2e23f7c701d94d648071e29438669","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{key:"bfa79f4e8ba8db83286d4b166420535837992f29",class:"BannerInfo",part:"BannerInfo"},this.enrolled&&e("span",{key:"d42223a4dc8a71ecdde3ead177850101408c28e3",class:"Tag Enroll"},this.showCheck&&e("svg",{key:"a5ffe24ebf31216020442d4f0b27e6cf71675902",class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{key:"c2db6f66d8afd614f26c0a656daeb51631833ba9",d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("enrolled",this.language)))),this.cardMode&&e("div",{key:"d66d8e41945df8fa190c635fc17448c2095a8338",class:"TournamentBannerThumb",part:"TournamentBannerThumb"},e("div",{key:"c18a987311a7e806b439dcab4bf8a4d96bca358a",class:"ThumbTitle",part:"ThumbTitle"},this.description),e("div",{key:"a7c810c1ecd87e46ef8f8972aade6db45fa902a2",class:"ThumbName",part:"ThumbName"},this.nameOrTitle),e("div",{key:"0e4ea565959a0e61dcdd1a94889f822f86c5da56",class:"ThumbState"},this.session&&this.enrolled?e("span",{class:"Tag Joined"},e("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("joined",this.language)):this.session&&"Closed"!=this.state&&e("span",{class:"Tag Join"},e("svg",{class:"JoinPlus",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"},e("path",{d:"M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z",fill:"white"})),s("join",this.language)),"Running"==this.state&&e("span",{key:"659625f6d6d49b900f48511eedfd734717e52ad6",class:`Tag State ${this.state}`},this.stateText,this.showRunningDate&&e("span",{key:"505b1743237cc5f867d3085dd92d0b4b38cc83d7",class:"TagRemain"},this.showRemain," ",s("left",this.language))),("Unstarted"==this.state||"Upcoming"==this.state||"Closed"==this.state)&&e("span",{key:"10eacb51b318ecca5f04d8fc2c5e4f3c53e2636c",class:`Tag Date ${this.state}`},this.showCalendar&&e("svg",{key:"a0551fe193454ad15fe279b8f5c46be6a3067c14",class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"2931bcda7e5f9e6baaa50f2c8e8caa38783bed2d","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{key:"708b32bba1c7f042f62f8fe9f4229efd9094d6c8",class:"ThumbButtons"},e("casino-tournament-buttons",{key:"bc085c31d517644af1eb338912aa10e1c2a6a46e",enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})),e("div",{key:"023eb9bacda76a8894ae9921863644dc323695d8",class:"ThumbTC"},e("span",{key:"f690d2a31ba88ffdff1892eebe276f8ca33cf7f5",onClick:this.termsClick.bind(this,this.tournamentId)},s("terms",this.language))))))}get host(){return i(this)}static get watchers(){return{language:["watchLanguage"]}}};fn.style=":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px;height:18px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";const mn={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again."},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},gn=(t,e)=>{var i,n;return(null===(i=mn[e])||void 0===i?void 0:i[t])||(null===(n=mn.en)||void 0===n?void 0:n[t])},bn=class{constructor(e){t(this,e),this.userEnrolled=n(this,"TournamentUserEnrolled",7),this.language=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.endpoint=void 0,this.currency=void 0,this.bonusCode=void 0,this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])mn[e][i]=t[e][i]})))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}async joinAction(t,e){var i;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),this.joinButtonLoading=!0;let n=new URL(`${this.endpoint}/v1/bonus/claim`),r=new Headers,s={};n.searchParams.append("language",this.language),n.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),r.append("Content-Type","application/json"),r.append("X-SessionID",this.session),e&&(s={language:this.language,bonusCode:e,currency:this.currency,type:"tournament"});let a={method:"PUT",headers:r,body:JSON.stringify(s)};const o=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled,tournamentId:t},window.location.href),this.userEnrolled.emit({userenrolled:this.enrolled,tournamentId:t})},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},h=await(async()=>{let t;try{t=await fetch(`${this.endpoint}/v1/bonus/claim?${n.searchParams.toString()}`,a),t=await t.json()}catch(t){u()}return t})();if(h)if(1==h.success)o();else if(h.errorMessage.match("VersionMismatchException")){let t;t=await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),t=await t.json(),(null===(i=null==t?void 0:t.item)||void 0===i?void 0:i.playerEnrolled)?o():(u(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else u()}detailAction(t){window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)}moreAction(t){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:t},window.location.href)}render(){return e("div",{key:"d67f8cedc9bd513a74b4d9dc798c4c456d7b1d9f",class:"TournamentButtons"},!this.session&&e("div",{key:"7e79834abdd20bf694b096fad0734cc74ccb1f8e",class:"ButtonGroup"},e("button",{key:"273e73693f197ff25d116c3c2e7098d3e80138c7",class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},gn("login",this.language)),e("button",{key:"72835739c177ce6e872a06183074d2266b3c3d5d",class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},gn("register",this.language))),this.session&&e("div",{key:"746e7fb88ddd2bef5f59212d9f513b62943f80ae"},!this.enrolled&&e("div",{key:"7a33b63adc8255c267afdba2ffe700a0d2033e57",class:"ButtonGroup"},e("button",{key:"95f71a6f41cd65e4dd9dfca0896899f7b8c32dd5",class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},gn("join",this.language)),this.showReadMore&&e("button",{key:"ac961bcbd5dc2a4f1e9267148ecc49a55b75515e",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},gn("readmore",this.language))),this.enrolled&&e("div",{key:"f6a9170663e0aae26da9500fc5efc888bb2dc2ab",class:"ButtonGroup"},e("button",{key:"a94489a7bf6b178199f2d78dfdc41cca77859c96",class:"Button",onClick:()=>this.detailAction(this.tournamentId)},gn("details",this.language)),this.showReadMore&&e("button",{key:"f23cefc77e04215e5beb6a39c2643348dce5e576",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},gn("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&e("span",{key:"7accf63f478e52efc879da3775b07286fbc9801b",class:"ErrorText",part:"ErrorText"},gn("joinerror",this.language)))}get host(){return i(this)}};bn.style=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}';const pn={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Gotovo",starting:"Počinje u ",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}},vn=(t,e)=>{var i,n;return(null===(i=pn[e])||void 0===i?void 0:i[t])||(null===(n=pn.en)||void 0===n?void 0:n[t])},yn=class{constructor(e){t(this,e),this.startTime=void 0,this.endTime=void 0,this.status=void 0,this.language=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.tournamentUntilStartDays=void 0,this.tournamentLeftDays=void 0,this.showRemain=void 0,this.limitStylingAppends=!1,this.durationInterval=void 0}watchLanguage(t,e){t&&t!=e&&this.getDuration()}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.tournamentUntilStartDays=this.getDateTimeDiff(t,this.startTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}formatDate(t){let e=new Date(t),i=new Intl.DateTimeFormat(this.language,{month:"long"}).format(e);return`${e.getDate()} ${i}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${e.getUTCFullYear()}`}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return(t=>t+" "+vn("days",this.language))(Math.ceil(t/1440))}getProgress(){if(this.tournamentLeftDays<=0)return 100;const t=this.getDateTimeDiff(this.startTime,this.endTime);return Math.floor(100/t*(t-this.tournamentLeftDays))}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])pn[e][i]=t[e][i]}))),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){if(this.startTime&&this.endTime)return e("div",{key:"d0051545a243161e89e126fd26b9ea9d2e09f8ab",class:"TournamentDurationWrap"},e("div",{key:"b585f0137268f0185dfd15e563a0075bfe617d5b",class:"TournamentDuration"},e("div",{key:"9cc3670780d9f8c40b77ac978cdadb0e0afdcacb",class:"TournamentDates"},e("div",{key:"85e4f3b1de4f36efd8d13b090f8f9013976d8685",class:"StartDate",part:"StartDate"},this.formatDate(this.startTime)),e("div",{key:"688a84ce16a4d26359637b80837a9c5f50fc24c3",class:"EndDate",part:"EndDate"},this.formatDate(this.endTime))),e("div",{key:"149c0431ac2d8f9b5058a2a269b50e01d23ed26f",class:"ProgressBarWrapper"},e("div",{key:"85523f37f511f9184260f8575ec08e914f535858",class:"ProgressBar",part:"ProgressBar"},"Finished"==this.status||"Closing"==this.status||"Closed"==this.status?e("div",null,e("div",{class:"ProgressBarFillEnd",part:"ProgressBarFillEnd"}),e("div",{class:"Finished",part:"Finished"},vn("finished",this.language))):this.tournamentUntilStartDays>0?e("div",null,e("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),e("div",{class:"Remaining",part:"Remaining"},vn("starting",this.language)," ",this.getTextByDiff(this.tournamentUntilStartDays))):e("div",null,e("div",{class:"ProgressBarFill",part:"ProgressBarFill",style:{width:`${this.getProgress()}%`}}),this.tournamentLeftDays>0&&e("div",{class:"Remaining",part:"Remaining"},this.showRemain," ",vn("left",this.language)))))))}get host(){return i(this)}static get watchers(){return{language:["watchLanguage"]}}};yn.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;font-weight:700;padding-top:6px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}";const wn={en:{enrolled:"Enrolled",details:"Details",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"zh-hk":{enrolled:"已註冊",details:"細節",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",details:"Détails",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",details:"Detalii",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Katıldın",details:"Detaylar",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"},el:{enrolled:"Εγγεγραμμένος",details:"Λεπτομέρειες",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Inscrito",details:"Detalles",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"},pt:{enrolled:"Inscrito",details:"Detalhes",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",details:"Adatok",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},Sn=(t,e)=>{var i,n;return(null===(i=wn[e])||void 0===i?void 0:i[t])||(null===(n=wn.en)||void 0===n?void 0:n[t])},kn=t=>new Promise((e=>{Object.keys(t).forEach((e=>{for(let i in t[e])wn[e][i]=t[e][i]})),e(!0)})),Mn=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])wn[e][i]=t[e][i]})),e(!0)}))})),Dn=class{constructor(e){t(this,e),this.formatDate=()=>{const t={month:"long"},e=this.tournamentInfo.state;let i=new Date(this.tournamentInfo.startTime);const n=()=>Sn("Running"===e||"Closing"==e||"Closed"==e?"startedAt":"startingAt",this.language);if(this.shortStart){let t=u(i).format(this.shortStartFormat);this.startDate="Running"===e||"Closing"==e||"Closed"==e?Sn("startedAtWithTime",this.language)+t:Sn("startingAtWithTime",this.language)+t}else{let e=new Intl.DateTimeFormat("en",t).format(i),r=i.getDate(),s=i.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startDate=`${r} `+Sn(`${e}`,this.language)+", "+n()+` ${s}`}},this.detailsAction=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t},window.location.href)},this.endpoint=void 0,this.nameOrTitle=void 0,this.scoreCriteria=void 0,this.tournamentId=void 0,this.session=void 0,this.userId=void 0,this.language=void 0,this.termsUrl="#",this.keepContext=!1,this.useGroup=!1,this.align="center",this.showDates=!1,this.showPrizes=!1,this.showButton=!1,this.shortStart=!1,this.seeGames=!1,this.useEvent=!1,this.startTime=void 0,this.endTime=void 0,this.minBetCount=void 0,this.prizes=void 0,this.shortStartFormat="DD MMM YYYY",this.clientStyling="",this.clientStylingUrl="",this.enrolled=!1,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.currency=void 0,this.bonusCode=void 0,this.showReadMore=!1,this.translationUrl="",this.translationData=void 0,this.limitStylingAppends=!1,this.startDate=void 0,this.tournamentInfo=void 0}async infoCompletedHandler(t){if(t.detail&&this.useEvent){if(this.tournamentId&&this.tournamentId!=t.detail.id)return;this.translationUrl?await Mn(this.translationUrl):this.translationData&&await kn(JSON.parse(this.translationData)),this.tournamentInfo=t.detail}}async componentWillLoad(){if(!this.useEvent){if(this.translationUrl)return Mn(this.translationUrl);if(this.translationData)return kn(JSON.parse(this.translationData))}}setTournamentInfo(){var t;this.tournamentInfo={nameOrTitle:this.nameOrTitle,scoreCriteria:(t=this.scoreCriteria,t?t.charAt(0).toLowerCase()+t.slice(1):""),termsUrl:this.termsUrl,startTime:this.startTime,endTime:this.endTime,prizes:this.prizes,minBetCount:this.minBetCount}}componentWillRender(){this.setTournamentInfo(),this.tournamentInfo.startTime&&this.formatDate()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}tournamentGamesClicked(t){window.postMessage({type:"tournamentGamesClicked",id:t},window.location.href)}render(){if(this.tournamentInfo)return e("div",{key:"d6c39acb71a8a267d46dd4e3055f8a51eb1a4473",class:"TournamentInfoWrap"},e("div",{key:"98d7d74f0532652c85e5970fd28c1658fa970642",class:`TournamentInfo ${this.align}`,part:"TournamentInfo"},e("h1",{key:"f3afe0cfa5c9ebac1e6638d852e64369616bfef6",class:"Title"},this.tournamentInfo.nameOrTitle),e("div",{key:"f4f4bcb63d3d492abccbaa86682f34208aa5d1e4",class:"Details"},e("p",{key:"4d2875c8507f6db2c16f055810f82942406007b4",class:"Score"},Sn("scoreCriteria",this.language),": ",Sn(this.tournamentInfo.scoreCriteria,this.language)," (",Sn("minbet",this.language),": ",this.tournamentInfo.minBetCount,")"),this.showDates&&e("p",{key:"00fae2420d9c6e6eafe9a2f8c378198638b88981",class:"Dates"},this.startDate),this.seeGames&&e("p",{key:"4a22edfcf8a06a3c48b4d6280ae6a6bc3c824905",class:"SeeGames"},Sn("seegames",this.language),":",e("a",{key:"44a29b2e941bd03febd124082998262357fc9885",class:"GameLink",href:this.tournamentInfo.termsUrl||"#",target:1==this.keepContext?"_self":"_blank",onClick:()=>this.tournamentGamesClicked(this.tournamentId)}," ",Sn("here",this.language))),this.showButton&&e("div",{key:"19b176dd5d021856fa55016f64a67b21f4e16f04",class:"InfoButtons"},e("casino-tournament-buttons",{key:"30820e16c97365a7b86387e6bcb462c054b99ecf",enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData}))),this.showPrizes&&e("casino-tournament-prizes",{key:"c7bfdeab8b12f2b069123309bb9ace7ac409feff","raw-prizes":JSON.stringify(this.tournamentInfo.prizes),"use-event":"false","use-group":this.useGroup,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl}),e("casino-tournament-duration",{key:"717a439c994a5dc6fee28be78cca68def8202e16",exportparts:"Remaining,ProgressBar,ProgressBarFill,ProgressBarFillStarting,ProgressBarFillEnd,StartDate,EndDate","start-time":this.tournamentInfo.startTime,"end-time":this.tournamentInfo.endTime,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})))}get host(){return i(this)}};Dn.style=":host{display:block}.TournamentInfo{background:var(--emw--tournament-color-bg, #153a5c);color:var(--emw--color-white, #FFFFFF);padding:20px;text-align:center;display:flex;gap:20px;display:flex;flex-direction:column}.TournamentInfo.Left{text-align:left}.TournamentInfo.Left .InfoButtons{justify-content:left}.TournamentInfo.Right{text-align:right}.TournamentInfo.Right .InfoButtons{justify-content:right}.Title{margin:0;font-size:18px}.Score{color:var(--emw--color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emw--color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:2px;background-color:var(--emw--tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emw--color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emw--color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emw--color-white, #FFFFFF)}";const An=()=>{let t=window.navigator.userAgent;return!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))},xn={en:{500:"500 - Internal server error",showMore:"Show more",Scheduled:"Scheduled",Ongoing:"Ongoing",Finished:"Finished",loading:"Loading, please wait ...",noTournaments:"No tournaments found",All:"All",Upcoming:"Upcoming",Expired:"Expired"},"zh-hk":{500:"500內部服務器錯誤",showMore:"顯示更多",Scheduled:"預定的",Ongoing:"進行中",Finished:"完成的",loading:"加載請稍候 ...",noTournaments:"沒有找到比賽"},fr:{500:"500 - erreur de serveur interne",showMore:"Afficher plus",Scheduled:"Programmé",Ongoing:"En cours",Finished:"Fini",loading:"Chargement , veuillez patienter ...",noTournaments:"Aucun tournoi trouvé"},ro:{500:"500 - Internal server error",showMore:"Mai mult",Scheduled:"Programate",Ongoing:"În curs",Finished:"Finalizat",loading:"Se încarcă, asteptati ...",noTournaments:"Niciun turneu gasit"},tr:{500:"500 - Dahili sunucu hatası",showMore:"Daha fazla",Scheduled:"Planlanmış",Ongoing:"Devam Eden",Finished:"Sona Ermiş",loading:"Yükleniyor, lütfen bekleyin ...",noTournaments:"Herhangi bir turnuva bulunamadı."},el:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",Scheduled:"Προγραμματισμένα",Ongoing:"Τρέχοντα",Finished:"Ολοκληρωμένα",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά"},es:{500:"500 - Error servidor interno",showMore:"Mostrar más",Scheduled:"Programado",Ongoing:"En vivo",Finished:"Finalizado",loading:"Cargando …",noTournaments:"No se encontraron Torneos"},hu:{500:"500 - Belső szerver hiba",showMore:"Mutass többet",Scheduled:"Ütemezés",Ongoing:"Folyamatban",Finished:"Befejezett",loading:"Betöltés, kérjük várjon...",noTournaments:"Verseny nem található"},pt:{500:"Erro 500 - Erro interno do servidor",showMore:"Ver mais",Scheduled:"Agendado",Ongoing:"Em progresso",Finished:"Finalizado",loading:"Carregando, por favor espere ...",noTournaments:"Nenhum torneio encontrado"},hr:{500:"500 - Internal server error",showMore:"Prikaži više",Scheduled:"Zakazano",Ongoing:"U tijeku",Finished:"Gotovo",loading:"Učitavanje, molimo pričekajte ...",noTournaments:"Nema pronađenih turnira"}},Tn=(t,e)=>{var i,n;return(null===(i=xn[e])||void 0===i?void 0:i[t])||(null===(n=xn.en)||void 0===n?void 0:n[t])};var Cn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Fn={exports:{}};
|
|
9
|
+
u.version="2.29.4",a=Be,u.fn=ji,u.min=function(){return Pe("isBefore",[].slice.call(arguments,0))},u.max=function(){return Pe("isAfter",[].slice.call(arguments,0))},u.now=function(){return Date.now?Date.now():+new Date},u.utc=v,u.unix=function(t){return Be(1e3*t)},u.months=function(t,e){return zi(t,e,"months")},u.isDate=g,u.locale=ye,u.invalid=S,u.duration=ti,u.isMoment=x,u.weekdays=function(t,e,i){return Ji(t,e,i,"weekdays")},u.parseZone=function(){return Be.apply(null,arguments).parseZone()},u.localeData=Se,u.isDuration=Ge,u.monthsShort=function(t,e){return zi(t,e,"monthsShort")},u.weekdaysMin=function(t,e,i){return Ji(t,e,i,"weekdaysMin")},u.defineLocale=we,u.updateLocale=function(t,e){if(null!=e){var i,n,r=fe;null!=me[t]&&null!=me[t].parentLocale?me[t].set(Y(me[t]._config,e)):(null!=(n=ve(t))&&(r=n._config),e=Y(r,e),null==n&&(e.abbr=t),(i=new z(e)).parentLocale=me[t],me[t]=i),ye(t)}else null!=me[t]&&(null!=me[t].parentLocale?(me[t]=me[t].parentLocale,t===ye()&&ye(t)):null!=me[t]&&delete me[t]);return me[t]},u.locales=function(){return F(me)},u.weekdaysShort=function(t,e,i){return Ji(t,e,i,"weekdaysShort")},u.normalizeUnits=_,u.relativeTimeRounding=function(t){return void 0===t?an:"function"==typeof t&&(an=t,!0)},u.relativeTimeThreshold=function(t,e){return void 0!==on[t]&&(void 0===e?on[t]:(on[t]=e,"s"===t&&(on.ss=e-1),!0))},u.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},u.prototype=ji,u.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const fn=class{constructor(e){t(this,e),this.useEvent=void 0,this.endpoint=void 0,this.state=void 0,this.enrolled=void 0,this.startTime=void 0,this.endTime=void 0,this.thumbnail=void 0,this.language=void 0,this.showCalendar=void 0,this.shortStart=void 0,this.shortstartformat="DD MMM YYYY",this.showDate=!0,this.showRunningDate=!1,this.showCheck=!1,this.cardMode=!1,this.nameOrTitle=void 0,this.description=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.currency=void 0,this.bonusCode=void 0,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.stateText=void 0,this.limitStylingAppends=!1,this.startdate=void 0,this.tournamentLeftDays=void 0,this.showRemain=void 0,this.durationInterval=void 0}watchLanguage(t,e){t&&t!=e&&this.getDuration()}infoCompletedHandler(t){t.detail&&this.useEvent&&(this.state=t.detail.state,this.stateText=this.getStateText(this.state),this.enrolled=t.detail.playerEnrolled,this.startTime=t.detail.startTime,this.thumbnail=t.detail.thumbnail,this.tournamentId=t.detail.id,this.startTime&&this.formatDate())}userEnrolledHandler(t){t.detail&&this.tournamentId===t.detail.tournamentId&&(this.enrolled=t.detail.userenrolled)}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return(t=>" - "+t+" "+s("days",this.language))(Math.ceil(t/1440))}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}getStateText(t){let e="";switch(t){case"Upcoming":case"Unstarted":e=s("scheduled",this.language);break;case"Running":e=s("ongoing",this.language);break;default:e=s("finished",this.language)}return e}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}formatDate(){const t={month:"long"};let e=new Date(this.startTime);const i=()=>s("Running"===this.state||"Closing"==this.state||"Closed"==this.state?"startedAt":"startingAt",this.language);if(this.shortStart){let t=u(e).format(this.shortstartformat);this.startdate="Running"===this.state||"Closing"==this.state||"Closed"==this.state?s("startedAtWithTime",this.language)+t:s("startingAtWithTime",this.language)+t}else{let n=new Intl.DateTimeFormat("en",t).format(e),r=e.getDate(),a=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startdate=`${r} `+s(`${n}`,this.language)+", "+i()+` ${a}`}}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])r[e][i]=t[e][i]})),this.state&&(this.stateText=this.getStateText(this.state))),!this.useEvent&&this.startTime&&this.formatDate(),this.state&&(this.stateText=this.getStateText(this.state)),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}termsClick(t){window.postMessage({type:"TournamentTermsConditions",tournamentId:t},window.location.href)}render(){return e("div",{key:"30d503c748343afce01f545342ab0beb3d3d5e3f",class:"TournamentBannerWrap"},this.thumbnail&&e("div",{key:"daaef63e759ffbaf14eabd2b54d937b957fcab6a",class:`TournamentBanner ${this.state}`,part:`TournamentBanner ${this.state}`},e("img",{key:"9ef1116676b4bbbf7a592ca4dbe7a75f60b09f32",src:this.thumbnail,alt:"",class:`TournamentBannerBg ${this.cardMode&&this.state?this.state:""}`}),!this.cardMode&&e("div",{key:"9fc34aabed34722d2e35dd40cb768bf1216e2a6f",class:"TournamentBannerInfo",part:"TournamentBannerInfo"},e("div",{key:"a100bd48e54e6e58deb629e3737be4d69665c43c",class:"BannerInfo",part:"BannerInfo"},e("span",{key:"fbd99abf8e5b9bf81a5df2840f2d3784bbf62fa5",class:`Tag State ${this.state}`},this.stateText)),e("div",{key:"00b195d5a9e6fa9ee92d94d7273853acb3da39f1",class:"BannerInfo",part:"BannerInfo"},this.showDate&&e("span",{key:"0522a16f1ff07e3e42078eab83f58b4a0e9a6fbf",class:"Tag Date"},this.showCalendar&&e("svg",{key:"58cefa516aadac8e1ea97c4c7550992439d86e1a",class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"a5605e1a28f2e23f7c701d94d648071e29438669","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{key:"bfa79f4e8ba8db83286d4b166420535837992f29",class:"BannerInfo",part:"BannerInfo"},this.enrolled&&e("span",{key:"d42223a4dc8a71ecdde3ead177850101408c28e3",class:"Tag Enroll"},this.showCheck&&e("svg",{key:"a5ffe24ebf31216020442d4f0b27e6cf71675902",class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{key:"c2db6f66d8afd614f26c0a656daeb51631833ba9",d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("enrolled",this.language)))),this.cardMode&&e("div",{key:"d66d8e41945df8fa190c635fc17448c2095a8338",class:"TournamentBannerThumb",part:"TournamentBannerThumb"},e("div",{key:"c18a987311a7e806b439dcab4bf8a4d96bca358a",class:"ThumbTitle",part:"ThumbTitle"},this.description),e("div",{key:"a7c810c1ecd87e46ef8f8972aade6db45fa902a2",class:"ThumbName",part:"ThumbName"},this.nameOrTitle),e("div",{key:"0e4ea565959a0e61dcdd1a94889f822f86c5da56",class:"ThumbState"},this.session&&this.enrolled?e("span",{class:"Tag Joined"},e("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("joined",this.language)):this.session&&"Closed"!=this.state&&e("span",{class:"Tag Join"},e("svg",{class:"JoinPlus",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"},e("path",{d:"M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z",fill:"white"})),s("join",this.language)),"Running"==this.state&&e("span",{key:"659625f6d6d49b900f48511eedfd734717e52ad6",class:`Tag State ${this.state}`},this.stateText,this.showRunningDate&&e("span",{key:"505b1743237cc5f867d3085dd92d0b4b38cc83d7",class:"TagRemain"},this.showRemain," ",s("left",this.language))),("Unstarted"==this.state||"Upcoming"==this.state||"Closed"==this.state)&&e("span",{key:"10eacb51b318ecca5f04d8fc2c5e4f3c53e2636c",class:`Tag Date ${this.state}`},this.showCalendar&&e("svg",{key:"a0551fe193454ad15fe279b8f5c46be6a3067c14",class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"2931bcda7e5f9e6baaa50f2c8e8caa38783bed2d","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{key:"708b32bba1c7f042f62f8fe9f4229efd9094d6c8",class:"ThumbButtons"},e("casino-tournament-buttons",{key:"bc085c31d517644af1eb338912aa10e1c2a6a46e",enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})),e("div",{key:"023eb9bacda76a8894ae9921863644dc323695d8",class:"ThumbTC"},e("span",{key:"f690d2a31ba88ffdff1892eebe276f8ca33cf7f5",onClick:this.termsClick.bind(this,this.tournamentId)},s("terms",this.language))))))}get host(){return i(this)}static get watchers(){return{language:["watchLanguage"]}}};fn.style=":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#22B04E}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px;height:18px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";const mn={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again."},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},gn=(t,e)=>{var i,n;return(null===(i=mn[e])||void 0===i?void 0:i[t])||(null===(n=mn.en)||void 0===n?void 0:n[t])},bn=class{constructor(e){t(this,e),this.userEnrolled=n(this,"TournamentUserEnrolled",7),this.language=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.endpoint=void 0,this.currency=void 0,this.bonusCode=void 0,this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])mn[e][i]=t[e][i]})))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}async joinAction(t,e){var i;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),this.joinButtonLoading=!0;let n=new URL(`${this.endpoint}/v1/bonus/claim`),r=new Headers,s={};n.searchParams.append("language",this.language),n.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),r.append("Content-Type","application/json"),r.append("X-SessionID",this.session),e&&(s={language:this.language,bonusCode:e,currency:this.currency,type:"tournament"});let a={method:"PUT",headers:r,body:JSON.stringify(s)};const o=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled,tournamentId:t},window.location.href),this.userEnrolled.emit({userenrolled:this.enrolled,tournamentId:t})},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},h=await(async()=>{let t;try{t=await fetch(`${this.endpoint}/v1/bonus/claim?${n.searchParams.toString()}`,a),t=await t.json()}catch(t){u()}return t})();if(h)if(1==h.success)o();else if(h.errorMessage.match("VersionMismatchException")){let t;t=await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),t=await t.json(),(null===(i=null==t?void 0:t.item)||void 0===i?void 0:i.playerEnrolled)?o():(u(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else u()}detailAction(t){window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)}moreAction(t){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:t},window.location.href)}render(){return e("div",{key:"d67f8cedc9bd513a74b4d9dc798c4c456d7b1d9f",class:"TournamentButtons"},!this.session&&e("div",{key:"7e79834abdd20bf694b096fad0734cc74ccb1f8e",class:"ButtonGroup"},e("button",{key:"273e73693f197ff25d116c3c2e7098d3e80138c7",class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},gn("login",this.language)),e("button",{key:"72835739c177ce6e872a06183074d2266b3c3d5d",class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},gn("register",this.language))),this.session&&e("div",{key:"746e7fb88ddd2bef5f59212d9f513b62943f80ae"},!this.enrolled&&e("div",{key:"7a33b63adc8255c267afdba2ffe700a0d2033e57",class:"ButtonGroup"},e("button",{key:"95f71a6f41cd65e4dd9dfca0896899f7b8c32dd5",class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},gn("join",this.language)),this.showReadMore&&e("button",{key:"ac961bcbd5dc2a4f1e9267148ecc49a55b75515e",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},gn("readmore",this.language))),this.enrolled&&e("div",{key:"f6a9170663e0aae26da9500fc5efc888bb2dc2ab",class:"ButtonGroup"},e("button",{key:"a94489a7bf6b178199f2d78dfdc41cca77859c96",class:"Button",onClick:()=>this.detailAction(this.tournamentId)},gn("details",this.language)),this.showReadMore&&e("button",{key:"f23cefc77e04215e5beb6a39c2643348dce5e576",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},gn("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&e("span",{key:"7accf63f478e52efc879da3775b07286fbc9801b",class:"ErrorText",part:"ErrorText"},gn("joinerror",this.language)))}get host(){return i(this)}};bn.style=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}';const pn={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Gotovo",starting:"Počinje u ",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}},vn=(t,e)=>{var i,n;return(null===(i=pn[e])||void 0===i?void 0:i[t])||(null===(n=pn.en)||void 0===n?void 0:n[t])},yn=class{constructor(e){t(this,e),this.startTime=void 0,this.endTime=void 0,this.status=void 0,this.language=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.tournamentUntilStartDays=void 0,this.tournamentLeftDays=void 0,this.showRemain=void 0,this.limitStylingAppends=!1,this.durationInterval=void 0}watchLanguage(t,e){t&&t!=e&&this.getDuration()}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.tournamentUntilStartDays=this.getDateTimeDiff(t,this.startTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}formatDate(t){let e=new Date(t),i=new Intl.DateTimeFormat(this.language,{month:"long"}).format(e);return`${e.getDate()} ${i}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${e.getUTCFullYear()}`}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return(t=>t+" "+vn("days",this.language))(Math.ceil(t/1440))}getProgress(){if(this.tournamentLeftDays<=0)return 100;const t=this.getDateTimeDiff(this.startTime,this.endTime);return Math.floor(100/t*(t-this.tournamentLeftDays))}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])pn[e][i]=t[e][i]}))),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){if(this.startTime&&this.endTime)return e("div",{key:"d0051545a243161e89e126fd26b9ea9d2e09f8ab",class:"TournamentDurationWrap"},e("div",{key:"b585f0137268f0185dfd15e563a0075bfe617d5b",class:"TournamentDuration"},e("div",{key:"9cc3670780d9f8c40b77ac978cdadb0e0afdcacb",class:"TournamentDates"},e("div",{key:"85e4f3b1de4f36efd8d13b090f8f9013976d8685",class:"StartDate",part:"StartDate"},this.formatDate(this.startTime)),e("div",{key:"688a84ce16a4d26359637b80837a9c5f50fc24c3",class:"EndDate",part:"EndDate"},this.formatDate(this.endTime))),e("div",{key:"149c0431ac2d8f9b5058a2a269b50e01d23ed26f",class:"ProgressBarWrapper"},e("div",{key:"85523f37f511f9184260f8575ec08e914f535858",class:"ProgressBar",part:"ProgressBar"},"Finished"==this.status||"Closing"==this.status||"Closed"==this.status?e("div",null,e("div",{class:"ProgressBarFillEnd",part:"ProgressBarFillEnd"}),e("div",{class:"Finished",part:"Finished"},vn("finished",this.language))):this.tournamentUntilStartDays>0?e("div",null,e("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),e("div",{class:"Remaining",part:"Remaining"},vn("starting",this.language)," ",this.getTextByDiff(this.tournamentUntilStartDays))):e("div",null,e("div",{class:"ProgressBarFill",part:"ProgressBarFill",style:{width:`${this.getProgress()}%`}}),this.tournamentLeftDays>0&&e("div",{class:"Remaining",part:"Remaining"},this.showRemain," ",vn("left",this.language)))))))}get host(){return i(this)}static get watchers(){return{language:["watchLanguage"]}}};yn.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;font-weight:700;padding-top:6px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}";const wn={en:{enrolled:"Enrolled",details:"Details",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"zh-hk":{enrolled:"已註冊",details:"細節",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",details:"Détails",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",details:"Detalii",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Katıldın",details:"Detaylar",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"},el:{enrolled:"Εγγεγραμμένος",details:"Λεπτομέρειες",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Inscrito",details:"Detalles",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"},pt:{enrolled:"Inscrito",details:"Detalhes",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",details:"Adatok",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},Sn=(t,e)=>{var i,n;return(null===(i=wn[e])||void 0===i?void 0:i[t])||(null===(n=wn.en)||void 0===n?void 0:n[t])},kn=t=>new Promise((e=>{Object.keys(t).forEach((e=>{for(let i in t[e])wn[e][i]=t[e][i]})),e(!0)})),Mn=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])wn[e][i]=t[e][i]})),e(!0)}))})),Dn=class{constructor(e){t(this,e),this.formatDate=()=>{const t={month:"long"},e=this.tournamentInfo.state;let i=new Date(this.tournamentInfo.startTime);const n=()=>Sn("Running"===e||"Closing"==e||"Closed"==e?"startedAt":"startingAt",this.language);if(this.shortStart){let t=u(i).format(this.shortStartFormat);this.startDate="Running"===e||"Closing"==e||"Closed"==e?Sn("startedAtWithTime",this.language)+t:Sn("startingAtWithTime",this.language)+t}else{let e=new Intl.DateTimeFormat("en",t).format(i),r=i.getDate(),s=i.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startDate=`${r} `+Sn(`${e}`,this.language)+", "+n()+` ${s}`}},this.detailsAction=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t},window.location.href)},this.endpoint=void 0,this.nameOrTitle=void 0,this.scoreCriteria=void 0,this.tournamentId=void 0,this.session=void 0,this.userId=void 0,this.language=void 0,this.termsUrl="#",this.keepContext=!1,this.useGroup=!1,this.align="center",this.showDates=!1,this.showPrizes=!1,this.showButton=!1,this.shortStart=!1,this.seeGames=!1,this.useEvent=!1,this.startTime=void 0,this.endTime=void 0,this.minBetCount=void 0,this.prizes=void 0,this.shortStartFormat="DD MMM YYYY",this.clientStyling="",this.clientStylingUrl="",this.enrolled=!1,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.currency=void 0,this.bonusCode=void 0,this.showReadMore=!1,this.translationUrl="",this.translationData=void 0,this.limitStylingAppends=!1,this.startDate=void 0,this.tournamentInfo=void 0}async infoCompletedHandler(t){if(t.detail&&this.useEvent){if(this.tournamentId&&this.tournamentId!=t.detail.id)return;this.translationUrl?await Mn(this.translationUrl):this.translationData&&await kn(JSON.parse(this.translationData)),this.tournamentInfo=t.detail}}async componentWillLoad(){if(!this.useEvent){if(this.translationUrl)return Mn(this.translationUrl);if(this.translationData)return kn(JSON.parse(this.translationData))}}setTournamentInfo(){var t;this.tournamentInfo={nameOrTitle:this.nameOrTitle,scoreCriteria:(t=this.scoreCriteria,t?t.charAt(0).toLowerCase()+t.slice(1):""),termsUrl:this.termsUrl,startTime:this.startTime,endTime:this.endTime,prizes:this.prizes,minBetCount:this.minBetCount}}componentWillRender(){this.setTournamentInfo(),this.tournamentInfo.startTime&&this.formatDate()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}tournamentGamesClicked(t){window.postMessage({type:"tournamentGamesClicked",id:t},window.location.href)}render(){if(this.tournamentInfo)return e("div",{key:"d6c39acb71a8a267d46dd4e3055f8a51eb1a4473",class:"TournamentInfoWrap"},e("div",{key:"98d7d74f0532652c85e5970fd28c1658fa970642",class:`TournamentInfo ${this.align}`,part:"TournamentInfo"},e("h1",{key:"f3afe0cfa5c9ebac1e6638d852e64369616bfef6",class:"Title"},this.tournamentInfo.nameOrTitle),e("div",{key:"f4f4bcb63d3d492abccbaa86682f34208aa5d1e4",class:"Details"},e("p",{key:"4d2875c8507f6db2c16f055810f82942406007b4",class:"Score"},Sn("scoreCriteria",this.language),": ",Sn(this.tournamentInfo.scoreCriteria,this.language)," (",Sn("minbet",this.language),": ",this.tournamentInfo.minBetCount,")"),this.showDates&&e("p",{key:"00fae2420d9c6e6eafe9a2f8c378198638b88981",class:"Dates"},this.startDate),this.seeGames&&e("p",{key:"4a22edfcf8a06a3c48b4d6280ae6a6bc3c824905",class:"SeeGames"},Sn("seegames",this.language),":",e("a",{key:"44a29b2e941bd03febd124082998262357fc9885",class:"GameLink",href:this.tournamentInfo.termsUrl||"#",target:1==this.keepContext?"_self":"_blank",onClick:()=>this.tournamentGamesClicked(this.tournamentId)}," ",Sn("here",this.language))),this.showButton&&e("div",{key:"19b176dd5d021856fa55016f64a67b21f4e16f04",class:"InfoButtons"},e("casino-tournament-buttons",{key:"30820e16c97365a7b86387e6bcb462c054b99ecf",enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData}))),this.showPrizes&&e("casino-tournament-prizes",{key:"c7bfdeab8b12f2b069123309bb9ace7ac409feff","raw-prizes":JSON.stringify(this.tournamentInfo.prizes),"use-event":"false","use-group":this.useGroup,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl}),e("casino-tournament-duration",{key:"717a439c994a5dc6fee28be78cca68def8202e16",exportparts:"Remaining,ProgressBar,ProgressBarFill,ProgressBarFillStarting,ProgressBarFillEnd,StartDate,EndDate","start-time":this.tournamentInfo.startTime,"end-time":this.tournamentInfo.endTime,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})))}get host(){return i(this)}};Dn.style=":host{display:block}.TournamentInfo{background:var(--emw--tournament-color-bg, #153a5c);color:var(--emw--color-white, #FFFFFF);padding:20px;text-align:center;display:flex;gap:20px;display:flex;flex-direction:column}.TournamentInfo.Left{text-align:left}.TournamentInfo.Left .InfoButtons{justify-content:left}.TournamentInfo.Right{text-align:right}.TournamentInfo.Right .InfoButtons{justify-content:right}.Title{margin:0;font-size:18px}.Score{color:var(--emw--color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emw--color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emw--color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emw--color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emw--color-white, #FFFFFF)}";const An=()=>{let t=window.navigator.userAgent;return!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))},xn={en:{500:"500 - Internal server error",showMore:"Show more",Scheduled:"Scheduled",Ongoing:"Ongoing",Finished:"Finished",loading:"Loading, please wait ...",noTournaments:"No tournaments found",All:"All",Upcoming:"Upcoming",Expired:"Expired"},"zh-hk":{500:"500內部服務器錯誤",showMore:"顯示更多",Scheduled:"預定的",Ongoing:"進行中",Finished:"完成的",loading:"加載請稍候 ...",noTournaments:"沒有找到比賽"},fr:{500:"500 - erreur de serveur interne",showMore:"Afficher plus",Scheduled:"Programmé",Ongoing:"En cours",Finished:"Fini",loading:"Chargement , veuillez patienter ...",noTournaments:"Aucun tournoi trouvé"},ro:{500:"500 - Internal server error",showMore:"Mai mult",Scheduled:"Programate",Ongoing:"În curs",Finished:"Finalizat",loading:"Se încarcă, asteptati ...",noTournaments:"Niciun turneu gasit"},tr:{500:"500 - Dahili sunucu hatası",showMore:"Daha fazla",Scheduled:"Planlanmış",Ongoing:"Devam Eden",Finished:"Sona Ermiş",loading:"Yükleniyor, lütfen bekleyin ...",noTournaments:"Herhangi bir turnuva bulunamadı."},el:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",Scheduled:"Προγραμματισμένα",Ongoing:"Τρέχοντα",Finished:"Ολοκληρωμένα",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά"},es:{500:"500 - Error servidor interno",showMore:"Mostrar más",Scheduled:"Programado",Ongoing:"En vivo",Finished:"Finalizado",loading:"Cargando …",noTournaments:"No se encontraron Torneos"},hu:{500:"500 - Belső szerver hiba",showMore:"Mutass többet",Scheduled:"Ütemezés",Ongoing:"Folyamatban",Finished:"Befejezett",loading:"Betöltés, kérjük várjon...",noTournaments:"Verseny nem található"},pt:{500:"Erro 500 - Erro interno do servidor",showMore:"Ver mais",Scheduled:"Agendado",Ongoing:"Em progresso",Finished:"Finalizado",loading:"Carregando, por favor espere ...",noTournaments:"Nenhum torneio encontrado"},hr:{500:"500 - Internal server error",showMore:"Prikaži više",Scheduled:"Zakazano",Ongoing:"U tijeku",Finished:"Gotovo",loading:"Učitavanje, molimo pričekajte ...",noTournaments:"Nema pronađenih turnira"}},Tn=(t,e)=>{var i,n;return(null===(i=xn[e])||void 0===i?void 0:i[t])||(null===(n=xn.en)||void 0===n?void 0:n[t])};var Cn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Fn={exports:{}};
|
|
10
10
|
/** @license
|
|
11
11
|
* eventsource.js
|
|
12
12
|
* Available under MIT License (MIT)
|
|
@@ -6080,7 +6080,7 @@ hooks.HTML5_FMT = {
|
|
|
6080
6080
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6081
6081
|
};
|
|
6082
6082
|
|
|
6083
|
-
const casinoTournamentBannerCss = ":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#
|
|
6083
|
+
const casinoTournamentBannerCss = ":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#22B04E}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px;height:18px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";
|
|
6084
6084
|
const CasinoTournamentBannerStyle0 = casinoTournamentBannerCss;
|
|
6085
6085
|
|
|
6086
6086
|
const CasinoTournamentBanner = class {
|
|
@@ -7416,7 +7416,7 @@ const getTranslationsByUrl = (url) => {
|
|
|
7416
7416
|
});
|
|
7417
7417
|
};
|
|
7418
7418
|
|
|
7419
|
-
const casinoTournamentInfoCss = ":host{display:block}.TournamentInfo{background:var(--emw--tournament-color-bg, #153a5c);color:var(--emw--color-white, #FFFFFF);padding:20px;text-align:center;display:flex;gap:20px;display:flex;flex-direction:column}.TournamentInfo.Left{text-align:left}.TournamentInfo.Left .InfoButtons{justify-content:left}.TournamentInfo.Right{text-align:right}.TournamentInfo.Right .InfoButtons{justify-content:right}.Title{margin:0;font-size:18px}.Score{color:var(--emw--color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emw--color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:
|
|
7419
|
+
const casinoTournamentInfoCss = ":host{display:block}.TournamentInfo{background:var(--emw--tournament-color-bg, #153a5c);color:var(--emw--color-white, #FFFFFF);padding:20px;text-align:center;display:flex;gap:20px;display:flex;flex-direction:column}.TournamentInfo.Left{text-align:left}.TournamentInfo.Left .InfoButtons{justify-content:left}.TournamentInfo.Right{text-align:right}.TournamentInfo.Right .InfoButtons{justify-content:right}.Title{margin:0;font-size:18px}.Score{color:var(--emw--color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emw--color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emw--color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emw--color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emw--color-white, #FFFFFF)}";
|
|
7420
7420
|
const CasinoTournamentInfoStyle0 = casinoTournamentInfoCss;
|
|
7421
7421
|
|
|
7422
7422
|
const CasinoTournamentInfo = class {
|
|
@@ -6076,7 +6076,7 @@ hooks.HTML5_FMT = {
|
|
|
6076
6076
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6077
6077
|
};
|
|
6078
6078
|
|
|
6079
|
-
const casinoTournamentBannerCss = ":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#
|
|
6079
|
+
const casinoTournamentBannerCss = ":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#22B04E}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px;height:18px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";
|
|
6080
6080
|
const CasinoTournamentBannerStyle0 = casinoTournamentBannerCss;
|
|
6081
6081
|
|
|
6082
6082
|
const CasinoTournamentBanner = class {
|
|
@@ -7412,7 +7412,7 @@ const getTranslationsByUrl = (url) => {
|
|
|
7412
7412
|
});
|
|
7413
7413
|
};
|
|
7414
7414
|
|
|
7415
|
-
const casinoTournamentInfoCss = ":host{display:block}.TournamentInfo{background:var(--emw--tournament-color-bg, #153a5c);color:var(--emw--color-white, #FFFFFF);padding:20px;text-align:center;display:flex;gap:20px;display:flex;flex-direction:column}.TournamentInfo.Left{text-align:left}.TournamentInfo.Left .InfoButtons{justify-content:left}.TournamentInfo.Right{text-align:right}.TournamentInfo.Right .InfoButtons{justify-content:right}.Title{margin:0;font-size:18px}.Score{color:var(--emw--color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emw--color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:
|
|
7415
|
+
const casinoTournamentInfoCss = ":host{display:block}.TournamentInfo{background:var(--emw--tournament-color-bg, #153a5c);color:var(--emw--color-white, #FFFFFF);padding:20px;text-align:center;display:flex;gap:20px;display:flex;flex-direction:column}.TournamentInfo.Left{text-align:left}.TournamentInfo.Left .InfoButtons{justify-content:left}.TournamentInfo.Right{text-align:right}.TournamentInfo.Right .InfoButtons{justify-content:right}.Title{margin:0;font-size:18px}.Score{color:var(--emw--color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emw--color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emw--color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emw--color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emw--color-white, #FFFFFF)}";
|
|
7416
7416
|
const CasinoTournamentInfoStyle0 = casinoTournamentInfoCss;
|
|
7417
7417
|
|
|
7418
7418
|
const CasinoTournamentInfo = class {
|