@everymatrix/casino-tournament-info 1.28.8 → 1.29.1
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-info/casino-tournament-info.esm.js +1 -1
- package/dist/casino-tournament-info/{p-de2268b1.entry.js → p-c1977bc4.entry.js} +3 -3
- package/dist/casino-tournament-info/p-e549d0c3.js +1 -0
- package/dist/cjs/casino-tournament-buttons_4.cjs.entry.js +24 -16
- package/dist/cjs/casino-tournament-info.cjs.js +2 -2
- package/dist/cjs/{index-679d83aa.js → index-9e0d4e03.js} +0 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/components/casino-tournament-prizes2.js +23 -16
- package/dist/esm/casino-tournament-buttons_4.entry.js +24 -16
- package/dist/esm/casino-tournament-info.js +2 -2
- package/dist/esm/{index-ac9eb2f0.js → index-e7c6f44e.js} +0 -13
- package/dist/esm/loader.js +2 -2
- package/package.json +1 -1
- package/dist/casino-tournament-info/p-c9d522f1.js +0 -1
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-stencil/packages/casino-tournament-info/.stencil/packages/casino-tournament-info/stencil.config.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-
|
|
1
|
+
import{p as e,b as t}from"./p-e549d0c3.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-c1977bc4",[[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"],limitStylingAppends:[32],startDate:[32],tournamentInfo:[32]},[[8,"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"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}],[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"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]}],[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"]]]]]],e)));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{r as t,h as e,g as i}from"./p-c9d522f1.js";const n=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],r={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"}},s=(t,e)=>{const i=e;return r[void 0!==i&&n.includes(i)?i:"en"][t]},a=class{constructor(e){t(this,e),this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}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});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},window.location.href)},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",{class:"TournamentButtons"},!this.session&&e("div",{class:"ButtonGroup"},e("button",{class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},s("login",this.language)),e("button",{class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},s("register",this.language))),this.session&&e("div",null,!this.enrolled&&e("div",{class:"ButtonGroup"},e("button",{class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},s("join",this.language)),this.showReadMore&&e("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more")),this.enrolled&&e("div",{class:"ButtonGroup"},e("button",{class:"Button",onClick:()=>this.detailAction(this.tournamentId)},s("details",this.language)),this.showReadMore&&e("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more"))),(this.errorJoin||this.errorJoinConcurrently)&&e("span",{class:"ErrorText",part:"ErrorText"},s("joinerror",this.language)))}get host(){return i(this)}};a.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 o=["ro","en","hr","zh-hk","fr","hu","tr","el","es","pt"],u={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"}},h=(t,e)=>{const i=e;return u[void 0!==i&&o.includes(i)?i:"en"][t]},d=class{constructor(e){t(this,e),this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}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 Math.ceil(t/1440)+" "+h("days")}getProgress(){if(this.tournamentLeftDays<=0)return 100;const t=this.getDateTimeDiff(this.startTime,this.endTime);return Math.floor(100/t*(t-this.tournamentLeftDays))}componentWillLoad(){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",{class:"TournamentDurationWrap"},e("div",{class:"TournamentDuration"},e("div",{class:"TournamentDates"},e("div",{class:"StartDate",part:"StartDate"},this.formatDate(this.startTime)),e("div",{class:"EndDate",part:"EndDate"},this.formatDate(this.endTime))),e("div",{class:"ProgressBarWrapper"},e("div",{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"},h("finished",this.language))):this.tournamentUntilStartDays>0?e("div",null,e("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),e("div",{class:"Remaining",part:"Remaining"},h("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," ",h("left",this.language)))))))}get host(){return i(this)}};d.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-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(--emfe-w-color-green, #48952a)}";const l=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],c={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"}},m=(t,e)=>{const i=e;return c[void 0!==i&&l.includes(i)?i:"en"][t]};
|
|
1
|
+
import{r as t,h as e,g as i}from"./p-e549d0c3.js";const n=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],r={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"}},s=(t,e)=>{const i=e;return r[void 0!==i&&n.includes(i)?i:"en"][t]},a=class{constructor(e){t(this,e),this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}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});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},window.location.href)},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",{class:"TournamentButtons"},!this.session&&e("div",{class:"ButtonGroup"},e("button",{class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},s("login",this.language)),e("button",{class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},s("register",this.language))),this.session&&e("div",null,!this.enrolled&&e("div",{class:"ButtonGroup"},e("button",{class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},s("join",this.language)),this.showReadMore&&e("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more")),this.enrolled&&e("div",{class:"ButtonGroup"},e("button",{class:"Button",onClick:()=>this.detailAction(this.tournamentId)},s("details",this.language)),this.showReadMore&&e("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more"))),(this.errorJoin||this.errorJoinConcurrently)&&e("span",{class:"ErrorText",part:"ErrorText"},s("joinerror",this.language)))}get host(){return i(this)}};a.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 o=["ro","en","hr","zh-hk","fr","hu","tr","el","es","pt"],u={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"}},h=(t,e)=>{const i=e;return u[void 0!==i&&o.includes(i)?i:"en"][t]},d=class{constructor(e){t(this,e),this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}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 Math.ceil(t/1440)+" "+h("days")}getProgress(){if(this.tournamentLeftDays<=0)return 100;const t=this.getDateTimeDiff(this.startTime,this.endTime);return Math.floor(100/t*(t-this.tournamentLeftDays))}componentWillLoad(){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",{class:"TournamentDurationWrap"},e("div",{class:"TournamentDuration"},e("div",{class:"TournamentDates"},e("div",{class:"StartDate",part:"StartDate"},this.formatDate(this.startTime)),e("div",{class:"EndDate",part:"EndDate"},this.formatDate(this.endTime))),e("div",{class:"ProgressBarWrapper"},e("div",{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"},h("finished",this.language))):this.tournamentUntilStartDays>0?e("div",null,e("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),e("div",{class:"Remaining",part:"Remaining"},h("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," ",h("left",this.language)))))))}get host(){return i(this)}};d.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-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(--emfe-w-color-green, #48952a)}";const l=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],c={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"}},m=(t,e)=>{const i=e;return c[void 0!==i&&l.includes(i)?i:"en"][t]};
|
|
2
2
|
//! moment.js
|
|
3
3
|
//! version : 2.29.4
|
|
4
4
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
5
5
|
//! license : MIT
|
|
6
6
|
//! momentjs.com
|
|
7
|
-
var f,g;function p(){return f.apply(null,arguments)}function y(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function b(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function S(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(v(t,e))return!1;return!0}function M(t){return void 0===t}function w(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function D(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function k(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function Y(t,e){for(var i in e)v(e,i)&&(t[i]=e[i]);return v(e,"toString")&&(t.toString=e.toString),v(e,"valueOf")&&(t.valueOf=e.valueOf),t}function A(t,e,i,n){return Je(t,e,i,n,!0).utc()}function N(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 x(t){if(null==t._isValid){var e=N(t),i=g.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 F(t){var e=A(NaN);return null!=t?Y(N(e),t):N(e).userInvalidated=!0,e}g=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 R=p.momentProperties=[],z=!1;function T(t,e){var i,n,r,s=R.length;if(M(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),M(e._i)||(t._i=e._i),M(e._f)||(t._f=e._f),M(e._l)||(t._l=e._l),M(e._strict)||(t._strict=e._strict),M(e._tzm)||(t._tzm=e._tzm),M(e._isUTC)||(t._isUTC=e._isUTC),M(e._offset)||(t._offset=e._offset),M(e._pf)||(t._pf=N(e)),M(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)M(r=e[n=R[i]])||(t[n]=r);return t}function C(t){T(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,p.updateOffset(this),z=!1)}function j(t){return t instanceof C||null!=t&&null!=t._isAMomentObject}function W(t){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function J(t,e){var i=!0;return Y((function(){if(null!=p.deprecationHandler&&p.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])v(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}W(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var P,G={};function E(t,e){null!=p.deprecationHandler&&p.deprecationHandler(t,e),G[t]||(W(e),G[t]=!0)}function H(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function O(t,e){var i,n=Y({},t);for(i in e)v(e,i)&&(b(t[i])&&b(e[i])?(n[i]={},Y(n[i],t[i]),Y(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)v(t,i)&&!v(e,i)&&b(t[i])&&(n[i]=Y({},n[i]));return n}function _(t){null!=t&&this.set(t)}function L(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}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,P=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)v(t,e)&&i.push(e);return i};var B=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Z={},$={};function U(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&($[t]=r),e&&($[e[0]]=function(){return L(r.apply(this,arguments),e[1],e[2])}),i&&($[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=K(e,t.localeData()),Z[e]=Z[e]||function(t){var e,i,n,r=t.match(B);for(e=0,i=r.length;e<i;e++)r[e]=$[r[e]]?$[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+=H(r[n])?r[n].call(e,t):r[n];return s}}(e),Z[e](t)):t.localeData().invalidDate()}function K(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(I.lastIndex=0;i>=0&&I.test(t);)t=t.replace(I,n),I.lastIndex=0,i-=1;return t}var q={};function Q(t,e){var i=t.toLowerCase();q[i]=q[i+"s"]=q[e]=t}function X(t){return"string"==typeof t?q[t]||q[t.toLowerCase()]:void 0}function tt(t){var e,i,n={};for(i in t)v(t,i)&&(e=X(i))&&(n[e]=t[i]);return n}var et={};function it(t,e){et[t]=e}function nt(t){return t%4==0&&t%100!=0||t%400==0}function rt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function st(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=rt(e)),i}function at(t,e){return function(i){return null!=i?(ut(this,t,i),p.updateOffset(this,e),this):ot(this,t)}}function ot(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function ut(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&nt(t.year())&&1===t.month()&&29===t.date()?(i=st(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),jt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var ht,dt=/\d/,lt=/\d\d/,ct=/\d{3}/,mt=/\d{4}/,ft=/[+-]?\d{6}/,gt=/\d\d?/,pt=/\d\d\d\d?/,yt=/\d\d\d\d\d\d?/,bt=/\d{1,3}/,vt=/\d{1,4}/,St=/[+-]?\d{1,6}/,Mt=/\d+/,wt=/[+-]?\d+/,Dt=/Z|[+-]\d\d:?\d\d/gi,kt=/Z|[+-]\d\d(?::?\d\d)?/gi,Yt=/[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 At(t,e,i){ht[t]=H(e)?e:function(t){return t&&i?i:e}}function Nt(t,e){return v(ht,t)?ht[t](e._strict,e._locale):new RegExp(xt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function xt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ht={};var Ft,Rt={};function zt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),w(e)&&(r=function(t,i){i[e]=st(t)}),n=t.length,i=0;i<n;i++)Rt[t[i]]=r}function Tt(t,e){zt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function Ct(t,e,i){null!=e&&v(Rt,t)&&Rt[t](e,i._a,i,t)}function jt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?nt(t)?29:28:31-i%7%2}Ft=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},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),U("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Q("month","M"),it("month",8),At("M",gt),At("MM",gt,lt),At("MMM",(function(t,e){return e.monthsShortRegex(t)})),At("MMMM",(function(t,e){return e.monthsRegex(t)})),zt(["M","MM"],(function(t,e){e[1]=st(t)-1})),zt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:N(i).invalidMonth=t}));var Wt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gt=Yt,Et=Yt;function Ht(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=A([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Ft.call(this._shortMonthsParse,a))?r:null:-1!==(r=Ft.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Ft.call(this._shortMonthsParse,a))||-1!==(r=Ft.call(this._longMonthsParse,a))?r:null:-1!==(r=Ft.call(this._longMonthsParse,a))||-1!==(r=Ft.call(this._shortMonthsParse,a))?r:null}function Ot(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=st(e);else if(!w(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 _t(t){return null!=t?(Ot(this,t),p.updateOffset(this,!0),this):ot(this,"Month")}function Lt(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],s=[];for(e=0;e<12;e++)i=A([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]=xt(n[e]),r[e]=xt(r[e]);for(e=0;e<24;e++)s[e]=xt(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 Bt(t){return nt(t)?366:365}U("Y",0,0,(function(){var t=this.year();return t<=9999?L(t,4):"+"+t})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),Q("year","y"),it("year",1),At("Y",wt),At("YY",gt,lt),At("YYYY",vt,mt),At("YYYYY",St,ft),At("YYYYYY",St,ft),zt(["YYYYY","YYYYYY"],0),zt("YYYY",(function(t,e){e[0]=2===t.length?p.parseTwoDigitYear(t):st(t)})),zt("YY",(function(t,e){e[0]=p.parseTwoDigitYear(t)})),zt("Y",(function(t,e){e[0]=parseInt(t,10)})),p.parseTwoDigitYear=function(t){return st(t)+(st(t)>68?1900:2e3)};var It=at("FullYear",!0);function Zt(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 $t(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 Ut(t,e,i){var n=7+e-i;return-(7+$t(t,0,n).getUTCDay()-e)%7+n-1}function Vt(t,e,i,n,r){var s,a,o=1+7*(e-1)+(7+i-n)%7+Ut(t,n,r);return o<=0?a=Bt(s=t-1)+o:o>Bt(t)?(s=t+1,a=o-Bt(t)):(s=t,a=o),{year:s,dayOfYear:a}}function Kt(t,e,i){var n,r,s=Ut(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+qt(r=t.year()-1,e,i):a>qt(t.year(),e,i)?(n=a-qt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function qt(t,e,i){var n=Ut(t,e,i),r=Ut(t+1,e,i);return(Bt(t)-n+r)/7}function Qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),Q("week","w"),Q("isoWeek","W"),it("week",5),it("isoWeek",5),At("w",gt),At("ww",gt,lt),At("W",gt),At("WW",gt,lt),Tt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=st(t)})),U("d",0,"do","day"),U("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),U("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),U("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),Q("day","d"),Q("weekday","e"),Q("isoWeekday","E"),it("day",11),it("weekday",11),it("isoWeekday",11),At("d",gt),At("e",gt),At("E",gt),At("dd",(function(t,e){return e.weekdaysMinRegex(t)})),At("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),At("dddd",(function(t,e){return e.weekdaysRegex(t)})),Tt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:N(i).invalidWeekday=t})),Tt(["d","e","E"],(function(t,e,i,n){e[n]=st(t)}));var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),te="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ee="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ie=Yt,ne=Yt,re=Yt;function se(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=A([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=Ft.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ft.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Ft.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Ft.call(this._weekdaysParse,a))||-1!==(r=Ft.call(this._shortWeekdaysParse,a))||-1!==(r=Ft.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ft.call(this._shortWeekdaysParse,a))||-1!==(r=Ft.call(this._weekdaysParse,a))||-1!==(r=Ft.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Ft.call(this._minWeekdaysParse,a))||-1!==(r=Ft.call(this._weekdaysParse,a))||-1!==(r=Ft.call(this._shortWeekdaysParse,a))?r:null}function ae(){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=A([2e3,1]).day(e),n=xt(this.weekdaysMin(i,"")),r=xt(this.weekdaysShort(i,"")),s=xt(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 oe(){return this.hours()%12||12}function ue(t,e){U(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function he(t,e){return e._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,oe),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+oe.apply(this)+L(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+oe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+L(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)})),ue("a",!0),ue("A",!1),Q("hour","h"),it("hour",13),At("a",he),At("A",he),At("H",gt),At("h",gt),At("k",gt),At("HH",gt,lt),At("hh",gt,lt),At("kk",gt,lt),At("hmm",pt),At("hmmss",yt),At("Hmm",pt),At("Hmmss",yt),zt(["H","HH"],3),zt(["k","kk"],(function(t,e){var i=st(t);e[3]=24===i?0:i})),zt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),zt(["h","hh"],(function(t,e,i){e[3]=st(t),N(i).bigHour=!0})),zt("hmm",(function(t,e,i){var n=t.length-2;e[3]=st(t.substr(0,n)),e[4]=st(t.substr(n)),N(i).bigHour=!0})),zt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=st(t.substr(0,n)),e[4]=st(t.substr(n,2)),e[5]=st(t.substr(r)),N(i).bigHour=!0})),zt("Hmm",(function(t,e){var i=t.length-2;e[3]=st(t.substr(0,i)),e[4]=st(t.substr(i))})),zt("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[3]=st(t.substr(0,i)),e[4]=st(t.substr(i,2)),e[5]=st(t.substr(n))}));var de,le=at("Hours",!0),ce={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:Wt,monthsShort:Jt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:ee,weekdaysShort:te,meridiemParse:/[ap]\.?m?\.?/i},me={},fe={};function ge(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 ye(t){var e=null;if(void 0===me[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=de._abbr,require("./locale/"+t),be(e)}catch(e){me[t]=null}return me[t]}function be(t,e){var i;return t&&((i=M(e)?Se(t):ve(t,e))?de=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),de._abbr}function ve(t,e){if(null!==e){var i,n=ce;if(e.abbr=t,null!=me[t])E("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=ye(e.parentLocale)))return fe[e.parentLocale]||(fe[e.parentLocale]=[]),fe[e.parentLocale].push({name:t,config:e}),null;n=i._config}return me[t]=new _(O(n,e)),fe[t]&&fe[t].forEach((function(t){ve(t.name,t.config)})),be(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 de;if(!y(t)){if(e=ye(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=ye(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&ge(r,i)>=e-1)break;e--}s++}return de}(t)}function Me(t){var e,i=t._a;return i&&-2===N(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>jt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,N(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),N(t)._overflowWeeks&&-1===e&&(e=7),N(t)._overflowWeekday&&-1===e&&(e=8),N(t).overflow=e),t}var we=/^\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)?)?$/,ke=/Z|[+-]\d\d(?::?\d\d)?/,Ye=[["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]],Ae=[["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/]],Ne=/^\/?Date\((-?\d+)/i,xe=/^(?:(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}))$/,Fe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Re(t){var e,i,n,r,s,a,o=t._i,u=we.exec(o)||De.exec(o),h=Ye.length,d=Ae.length;if(u){for(N(t).iso=!0,e=0,i=h;e<i;e++)if(Ye[e][1].exec(u[1])){r=Ye[e][0],n=!1!==Ye[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,i=d;e<i;e++)if(Ae[e][1].exec(u[3])){s=(u[2]||" ")+Ae[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(u[4]){if(!ke.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),je(t)}else t._isValid=!1}function ze(t){var e,i,n,r,s,a,o,u,h,d=xe.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),Jt.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,i){return!t||te.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(N(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 Fe[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=$t.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),N(t).rfc2822=!0}else t._isValid=!1}function Te(t,e,i){return null!=t?t:null!=e?e:i}function Ce(t){var e,i,n,r,s,a=[];if(!t._d){for(n=function(t){var e=new Date(p.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&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=Te(e.GG,t._a[0],Kt(Pe(),1,4).year),n=Te(e.W,1),((r=Te(e.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=Kt(Pe(),s,a),i=Te(e.gg,t._a[0],h.year),n=Te(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>qt(i,s,a)?N(t)._overflowWeeks=!0:null!=u?N(t)._overflowWeekday=!0:(o=Vt(i,n,r,s,a),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=Te(t._a[0],n[0]),(t._dayOfYear>Bt(s)||0===t._dayOfYear)&&(N(t)._overflowDayOfYear=!0),i=$t(s,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=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[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?$t:Zt).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[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(N(t).weekdayMismatch=!0)}}function je(t){if(t._f!==p.ISO_8601)if(t._f!==p.RFC_2822){t._a=[],N(t).empty=!0;var e,i,n,r,s,a,o,u=""+t._i,h=u.length,d=0;for(o=(n=K(t._f,t._locale).match(B)||[]).length,e=0;e<o;e++)(i=(u.match(Nt(r=n[e],t))||[])[0])&&((s=u.substr(0,u.indexOf(i))).length>0&&N(t).unusedInput.push(s),u=u.slice(u.indexOf(i)+i.length),d+=i.length),$[r]?(i?N(t).empty=!1:N(t).unusedTokens.push(r),Ct(r,i,t)):t._strict&&!i&&N(t).unusedTokens.push(r);N(t).charsLeftOver=h-d,u.length>0&&N(t).unusedInput.push(u),t._a[3]<=12&&!0===N(t).bigHour&&t._a[3]>0&&(N(t).bigHour=void 0),N(t).parsedDateParts=t._a.slice(0),N(t).meridiem=t._meridiem,t._a[3]=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[3],t._meridiem),null!==(a=N(t).era)&&(t._a[0]=t._locale.erasConvertYear(a,t._a[0])),Ce(t),Me(t)}else ze(t);else Re(t)}function We(t){var e=t._i,i=t._f;return t._locale=t._locale||Se(t._l),null===e||void 0===i&&""===e?F({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),j(e)?new C(Me(e)):(D(e)?t._d=e:y(i)?function(t){var e,i,n,r,s,a,o=!1,u=t._f.length;if(0===u)return N(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,a=!1,e=T({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],je(e),x(e)&&(a=!0),s+=N(e).charsLeftOver,s+=10*N(e).unusedTokens.length,N(e).score=s,o?s<n&&(n=s,i=e):(null==n||s<n||a)&&(n=s,i=e,a&&(o=!0));Y(t,i||e)}(t):i?je(t):function(t){var e=t._i;M(e)?t._d=new Date(p.now()):D(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Ne.exec(t._i);null===e?(Re(t),!1===t._isValid&&(delete t._isValid,ze(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:p.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):y(e)?(t._a=k(e.slice(0),(function(t){return parseInt(t,10)})),Ce(t)):b(e)?function(t){if(!t._d){var e=tt(t._i);t._a=k([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)})),Ce(t)}}(t):w(e)?t._d=new Date(e):p.createFromInputFallback(t)}(t),x(t)||(t._d=null),t))}function Je(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),(b(t)&&S(t)||y(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 C(Me(We(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Pe(t,e,i,n){return Je(t,e,i,n,!1)}p.createFromInputFallback=J("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":""))})),p.ISO_8601=function(){},p.RFC_2822=function(){};var Ge=J("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:F()})),Ee=J("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:F()}));function He(t,e){var i,n;if(1===e.length&&y(e[0])&&(e=e[0]),!e.length)return Pe();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function _e(t){var e=tt(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=Oe.length;for(e in t)if(v(t,e)&&(-1===Ft.call(Oe,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[Oe[i]]){if(n)return!1;parseFloat(t[Oe[i]])!==st(t[Oe[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 Le(t){return t instanceof _e}function Be(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ie(t,e){U(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+L(~~(t/60),2)+e+L(~~t%60,2)}))}Ie("Z",":"),Ie("ZZ",""),At("Z",kt),At("ZZ",kt),zt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=$e(kt,t)}));var Ze=/([\+\-]|\d\d)/gi;function $e(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(Ze)||["-",0,0])[1]+st(i[2]))?0:"+"===i[0]?n:-n}function Ue(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(j(t)||D(t)?t.valueOf():Pe(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),p.updateOffset(i,!1),i):Pe(t).local()}function Ve(t){return-Math.round(t._d.getTimezoneOffset())}function Ke(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var qe=/^(-|\+)?(?:(\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 Xe(t,e){var i,n,r,s,a,o,u=t,h=null;return Le(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:w(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=qe.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:st(h[2])*i,h:st(h[3])*i,m:st(h[4])*i,s:st(h[5])*i,ms:st(Be(1e3*h[6]))*i}):(h=Qe.exec(t))?u={y:ti(h[2],i="-"===h[1]?-1:1),M:ti(h[3],i),w:ti(h[4],i),d:ti(h[5],i),h:ti(h[6],i),m:ti(h[7],i),s:ti(h[8],i)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=Pe(u.from),a=Pe(u.to),r=s.isValid()&&a.isValid()?(a=Ue(a,s),s.isBefore(a)?o=ei(s,a):((o=ei(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new _e(u),Le(t)&&v(t,"_locale")&&(n._locale=t._locale),Le(t)&&v(t,"_isValid")&&(n._isValid=t._isValid),n}function ti(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function ei(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 ii(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(E(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),ni(this,Xe(i,n),t),this}}function ni(t,e,i,n){var r=e._milliseconds,s=Be(e._days),a=Be(e._months);t.isValid()&&(n=null==n||n,a&&Ot(t,ot(t,"Month")+a*i),s&&ut(t,"Date",ot(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&p.updateOffset(t,s||a))}Xe.fn=_e.prototype,Xe.invalid=function(){return Xe(NaN)};var ri=ii(1,"add"),si=ii(-1,"subtract");function ai(t){return"string"==typeof t||t instanceof String}function oi(t){return j(t)||D(t)||ai(t)||w(t)||function(t){var e=y(t),i=!1;return e&&(i=0===t.filter((function(e){return!w(e)&&ai(t)})).length),e&&i}(t)||function(t){var e,i=b(t)&&!S(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||v(t,r[e]);return i&&n}(t)||null==t}function ui(t){var e,i=b(t)&&!S(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||v(t,r[e]);return i&&n}function hi(t,e){if(t.date()<e.date())return-hi(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 di(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Se(t))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=J("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 ci(){return this._locale}function mi(t,e){return(t%e+e)%e}function fi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function gi(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function pi(t,e){return e.erasAbbrRegex(t)}function yi(){var t,e,i=[],n=[],r=[],s=[],a=this.eras();for(t=0,e=a.length;t<e;++t)n.push(xt(a[t].name)),i.push(xt(a[t].abbr)),r.push(xt(a[t].narrow)),s.push(xt(a[t].name)),s.push(xt(a[t].abbr)),s.push(xt(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 bi(t,e){U(0,[t,t.length],0,e)}function vi(t,e,i,n,r){var s;return null==t?Kt(this,n,r).year:(e>(s=qt(t,n,r))&&(e=s),Si.call(this,t,e,i,n,r))}function Si(t,e,i,n,r){var s=Vt(t,e,i,n,r),a=$t(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),At("N",pi),At("NN",pi),At("NNN",pi),At("NNNN",(function(t,e){return e.erasNameRegex(t)})),At("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),zt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?N(i).era=r:N(i).invalidEra=t})),At("y",Mt),At("yy",Mt),At("yyy",Mt),At("yyyy",Mt),At("yo",(function(t,e){return e._eraYearOrdinalRegex||Mt})),zt(["y","yy","yyy","yyyy"],0),zt(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[0]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bi("gggg","weekYear"),bi("ggggg","weekYear"),bi("GGGG","isoWeekYear"),bi("GGGGG","isoWeekYear"),Q("weekYear","gg"),Q("isoWeekYear","GG"),it("weekYear",1),it("isoWeekYear",1),At("G",wt),At("g",wt),At("GG",gt,lt),At("gg",gt,lt),At("GGGG",vt,mt),At("gggg",vt,mt),At("GGGGG",St,ft),At("ggggg",St,ft),Tt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=st(t)})),Tt(["gg","GG"],(function(t,e,i,n){e[n]=p.parseTwoDigitYear(t)})),U("Q",0,"Qo","quarter"),Q("quarter","Q"),it("quarter",7),At("Q",dt),zt("Q",(function(t,e){e[1]=3*(st(t)-1)})),U("D",["DD",2],"Do","date"),Q("date","D"),it("date",9),At("D",gt),At("DD",gt,lt),At("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),zt(["D","DD"],2),zt("Do",(function(t,e){e[2]=st(t.match(gt)[0])}));var Mi=at("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),Q("dayOfYear","DDD"),it("dayOfYear",4),At("DDD",bt),At("DDDD",ct),zt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=st(t)})),U("m",["mm",2],0,"minute"),Q("minute","m"),it("minute",14),At("m",gt),At("mm",gt,lt),zt(["m","mm"],4);var wi=at("Minutes",!1);U("s",["ss",2],0,"second"),Q("second","s"),it("second",15),At("s",gt),At("ss",gt,lt),zt(["s","ss"],5);var Di,ki,Yi=at("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Q("millisecond","ms"),it("millisecond",16),At("S",bt,dt),At("SS",bt,lt),At("SSS",bt,ct),Di="SSSS";Di.length<=9;Di+="S")At(Di,Mt);function Ai(t,e){e[6]=st(1e3*("0."+t))}for(Di="S";Di.length<=9;Di+="S")zt(Di,Ai);ki=at("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Ni=C.prototype;function xi(t){return t}Ni.add=ri,Ni.calendar=function(t,e){1===arguments.length&&(arguments[0]?oi(arguments[0])?(t=arguments[0],e=void 0):ui(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var i=t||Pe(),n=Ue(i,this).startOf("day"),r=p.calendarFormat(this,n)||"sameElse",s=e&&(H(e[r])?e[r].call(this,i):e[r]);return this.format(s||this.localeData().calendar(r,this,Pe(i)))},Ni.clone=function(){return new C(this)},Ni.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=Ue(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=X(e)){case"year":s=hi(this,n)/12;break;case"month":s=hi(this,n);break;case"quarter":s=hi(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:rt(s)},Ni.endOf=function(t){var e,i;if(void 0===(t=X(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?gi:fi,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+=36e5-mi(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-mi(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-mi(e,1e3)-1}return this._d.setTime(e),p.updateOffset(this,!0),this},Ni.format=function(t){t||(t=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var e=V(this,t);return this.localeData().postformat(e)},Ni.from=function(t,e){return this.isValid()&&(j(t)&&t.isValid()||Pe(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ni.fromNow=function(t){return this.from(Pe(),t)},Ni.to=function(t,e){return this.isValid()&&(j(t)&&t.isValid()||Pe(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ni.toNow=function(t){return this.to(Pe(),t)},Ni.get=function(t){return H(this[t=X(t)])?this[t]():this},Ni.invalidAt=function(){return N(this).overflow},Ni.isAfter=function(t,e){var i=j(t)?t:Pe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=X(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Ni.isBefore=function(t,e){var i=j(t)?t:Pe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=X(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Ni.isBetween=function(t,e,i,n){var r=j(t)?t:Pe(t),s=j(e)?e:Pe(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))},Ni.isSame=function(t,e){var i,n=j(t)?t:Pe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=X(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Ni.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ni.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ni.isValid=function(){return x(this)},Ni.lang=li,Ni.locale=di,Ni.localeData=ci,Ni.max=Ee,Ni.min=Ge,Ni.parsingFlags=function(){return Y({},N(this))},Ni.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)v(t,e)&&i.push({unit:e,priority:et[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=tt(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(H(this[t=X(t)]))return this[t](e);return this},Ni.startOf=function(t){var e,i;if(void 0===(t=X(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?gi:fi,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-=mi(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=mi(e,6e4);break;case"second":e=this._d.valueOf(),e-=mi(e,1e3)}return this._d.setTime(e),p.updateOffset(this,!0),this},Ni.subtract=si,Ni.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ni.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()}},Ni.toDate=function(){return new Date(this.valueOf())},Ni.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?V(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(i,"Z")):V(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ni.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&&(Ni[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ni.toJSON=function(){return this.isValid()?this.toISOString():null},Ni.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ni.unix=function(){return Math.floor(this.valueOf()/1e3)},Ni.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ni.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ni.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""},Ni.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""},Ni.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""},Ni.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()-p(r[t].since).year())*i+r[t].offset;return this.year()},Ni.year=It,Ni.isLeapYear=function(){return nt(this.year())},Ni.weekYear=function(t){return vi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ni.isoWeekYear=function(t){return vi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ni.quarter=Ni.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ni.month=_t,Ni.daysInMonth=function(){return jt(this.year(),this.month())},Ni.week=Ni.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ni.isoWeek=Ni.isoWeeks=function(t){var e=Kt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ni.weeksInYear=function(){var t=this.localeData()._week;return qt(this.year(),t.dow,t.doy)},Ni.weeksInWeekYear=function(){var t=this.localeData()._week;return qt(this.weekYear(),t.dow,t.doy)},Ni.isoWeeksInYear=function(){return qt(this.year(),1,4)},Ni.isoWeeksInISOWeekYear=function(){return qt(this.isoWeekYear(),1,4)},Ni.date=Mi,Ni.day=Ni.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},Ni.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")},Ni.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},Ni.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")},Ni.hour=Ni.hours=le,Ni.minute=Ni.minutes=wi,Ni.second=Ni.seconds=Yi,Ni.millisecond=Ni.milliseconds=ki,Ni.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=$e(kt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ve(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?ni(this,Xe(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ve(this)},Ni.utc=function(t){return this.utcOffset(0,t)},Ni.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ve(this),"m")),this},Ni.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=$e(Dt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Ni.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ni.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ni.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ni.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ni.isUtc=Ke,Ni.isUTC=Ke,Ni.zoneAbbr=function(){return this._isUTC?"UTC":""},Ni.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ni.dates=J("dates accessor is deprecated. Use date instead.",Mi),Ni.months=J("months accessor is deprecated. Use month instead",_t),Ni.years=J("years accessor is deprecated. Use year instead",It),Ni.zone=J("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()})),Ni.isDSTShifted=J("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!M(this._isDSTShifted))return this._isDSTShifted;var t,e={};return T(e,this),(e=We(e))._a?(t=e._isUTC?A(e._a):Pe(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++)st(t[i])!==st(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Fi=_.prototype;function Ri(t,e,i,n){var r=Se(),s=A().set(n,e);return r[i](s,t)}function zi(t,e,i){if(w(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ri(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Ri(t,n,i,"month");return r}function Ti(t,e,i,n){"boolean"==typeof t?(w(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,w(e)&&(i=e,e=void 0),e=e||"");var r,s=Se(),a=t?s._week.dow:0,o=[];if(null!=i)return Ri(e,(i+a)%7,n,"day");for(r=0;r<7;r++)o[r]=Ri(e,(r+a)%7,n,"day");return o}Fi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return H(n)?n.call(e,i):n},Fi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(B).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Fi.invalidDate=function(){return this._invalidDate},Fi.ordinal=function(t){return this._ordinal.replace("%d",t)},Fi.preparse=xi,Fi.postformat=xi,Fi.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return H(r)?r(t,e,i,n):r.replace(/%d/i,t)},Fi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return H(i)?i(e):i.replace(/%s/i,e)},Fi.set=function(t){var e,i;for(i in t)v(t,i)&&(H(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)},Fi.eras=function(){var t,e,i,n=this._eras||Se("en")._eras;for(t=0,e=n.length;t<e;++t){switch(typeof n[t].since){case"string":i=p(n[t].since).startOf("day"),n[t].since=i.valueOf()}switch(typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":i=p(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}}return n},Fi.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]},Fi.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?p(t.since).year():p(t.since).year()+(e-t.offset)*i},Fi.erasAbbrRegex=function(t){return v(this,"_erasAbbrRegex")||yi.call(this),t?this._erasAbbrRegex:this._erasRegex},Fi.erasNameRegex=function(t){return v(this,"_erasNameRegex")||yi.call(this),t?this._erasNameRegex:this._erasRegex},Fi.erasNarrowRegex=function(t){return v(this,"_erasNarrowRegex")||yi.call(this),t?this._erasNarrowRegex:this._erasRegex},Fi.months=function(t,e){return t?y(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Pt).test(e)?"format":"standalone"][t.month()]:y(this._months)?this._months:this._months.standalone},Fi.monthsShort=function(t,e){return t?y(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Pt.test(e)?"format":"standalone"][t.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Fi.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return Ht.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=A([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}},Fi.monthsRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Lt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=Et),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Fi.monthsShortRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Lt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=Gt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Fi.week=function(t){return Kt(t,this._week.dow,this._week.doy).week},Fi.firstDayOfYear=function(){return this._week.doy},Fi.firstDayOfWeek=function(){return this._week.dow},Fi.weekdays=function(t,e){var i=y(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},Fi.weekdaysMin=function(t){return!0===t?Qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Fi.weekdaysShort=function(t){return!0===t?Qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Fi.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return se.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=A([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}},Fi.weekdaysRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ae.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Fi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ae.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ne),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Fi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ae.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=re),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Fi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Fi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},be("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===st(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),p.lang=J("moment.lang is deprecated. Use moment.locale instead.",be),p.langData=J("moment.langData is deprecated. Use moment.localeData instead.",Se);var Ci=Math.abs;function ji(t,e,i,n){var r=Xe(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Wi(t){return t<0?Math.floor(t):Math.ceil(t)}function Ji(t){return 4800*t/146097}function Pi(t){return 146097*t/4800}function Gi(t){return function(){return this.as(t)}}var Ei=Gi("ms"),Hi=Gi("s"),Oi=Gi("m"),_i=Gi("h"),Li=Gi("d"),Bi=Gi("w"),Ii=Gi("M"),Zi=Gi("Q"),$i=Gi("y");function Ui(t){return function(){return this.isValid()?this._data[t]:NaN}}var Vi=Ui("milliseconds"),Ki=Ui("seconds"),qi=Ui("minutes"),Qi=Ui("hours"),Xi=Ui("days"),tn=Ui("months"),en=Ui("years"),nn=Math.round,rn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function sn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var an=Math.abs;function on(t){return(t>0)-(t<0)||+t}function un(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,a,o,u=an(this._milliseconds)/1e3,h=an(this._days),d=an(this._months),l=this.asSeconds();return l?(t=rt(u/60),e=rt(t/60),u%=60,t%=60,i=rt(d/12),d%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=l<0?"-":"",s=on(this._months)!==on(l)?"-":"",a=on(this._days)!==on(l)?"-":"",o=on(this._milliseconds)!==on(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 hn=_e.prototype;hn.isValid=function(){return this._isValid},hn.abs=function(){var t=this._data;return this._milliseconds=Ci(this._milliseconds),this._days=Ci(this._days),this._months=Ci(this._months),t.milliseconds=Ci(t.milliseconds),t.seconds=Ci(t.seconds),t.minutes=Ci(t.minutes),t.hours=Ci(t.hours),t.months=Ci(t.months),t.years=Ci(t.years),this},hn.add=function(t,e){return ji(this,t,e,1)},hn.subtract=function(t,e){return ji(this,t,e,-1)},hn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=X(t))||"quarter"===t||"year"===t)switch(i=this._months+Ji(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(Pi(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)}},hn.asMilliseconds=Ei,hn.asSeconds=Hi,hn.asMinutes=Oi,hn.asHours=_i,hn.asDays=Li,hn.asWeeks=Bi,hn.asMonths=Ii,hn.asQuarters=Zi,hn.asYears=$i,hn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*st(this._months/12):NaN},hn._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*Wi(Pi(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=rt(s/1e3),u.seconds=t%60,e=rt(t/60),u.minutes=e%60,i=rt(e/60),u.hours=i%24,a+=rt(i/24),o+=r=rt(Ji(a)),a-=Wi(Pi(r)),n=rt(o/12),o%=12,u.days=a,u.months=o,u.years=n,this},hn.clone=function(){return Xe(this)},hn.get=function(t){return t=X(t),this.isValid()?this[t+"s"]():NaN},hn.milliseconds=Vi,hn.seconds=Ki,hn.minutes=qi,hn.hours=Qi,hn.days=Xi,hn.weeks=function(){return rt(this.days()/7)},hn.months=tn,hn.years=en,hn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=rn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},rn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=Xe(t).abs(),s=nn(r.as("s")),a=nn(r.as("m")),o=nn(r.as("h")),u=nn(r.as("d")),h=nn(r.as("M")),d=nn(r.as("w")),l=nn(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,sn.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},hn.toISOString=un,hn.toString=un,hn.toJSON=un,hn.locale=di,hn.localeData=ci,hn.toIsoString=J("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",un),hn.lang=li,U("X",0,0,"unix"),U("x",0,0,"valueOf"),At("x",wt),At("X",/[+-]?\d+(\.\d{1,3})?/),zt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),zt("x",(function(t,e,i){i._d=new Date(st(t))})),
|
|
7
|
+
var f,g;function p(){return f.apply(null,arguments)}function y(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function b(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function S(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(v(t,e))return!1;return!0}function M(t){return void 0===t}function w(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function D(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function k(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function Y(t,e){for(var i in e)v(e,i)&&(t[i]=e[i]);return v(e,"toString")&&(t.toString=e.toString),v(e,"valueOf")&&(t.valueOf=e.valueOf),t}function A(t,e,i,n){return Je(t,e,i,n,!0).utc()}function N(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 x(t){if(null==t._isValid){var e=N(t),i=g.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 F(t){var e=A(NaN);return null!=t?Y(N(e),t):N(e).userInvalidated=!0,e}g=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 R=p.momentProperties=[],z=!1;function C(t,e){var i,n,r,s=R.length;if(M(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),M(e._i)||(t._i=e._i),M(e._f)||(t._f=e._f),M(e._l)||(t._l=e._l),M(e._strict)||(t._strict=e._strict),M(e._tzm)||(t._tzm=e._tzm),M(e._isUTC)||(t._isUTC=e._isUTC),M(e._offset)||(t._offset=e._offset),M(e._pf)||(t._pf=N(e)),M(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)M(r=e[n=R[i]])||(t[n]=r);return t}function T(t){C(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,p.updateOffset(this),z=!1)}function j(t){return t instanceof T||null!=t&&null!=t._isAMomentObject}function W(t){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function J(t,e){var i=!0;return Y((function(){if(null!=p.deprecationHandler&&p.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])v(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}W(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var P,G={};function E(t,e){null!=p.deprecationHandler&&p.deprecationHandler(t,e),G[t]||(W(e),G[t]=!0)}function H(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function O(t,e){var i,n=Y({},t);for(i in e)v(e,i)&&(b(t[i])&&b(e[i])?(n[i]={},Y(n[i],t[i]),Y(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)v(t,i)&&!v(e,i)&&b(t[i])&&(n[i]=Y({},n[i]));return n}function L(t){null!=t&&this.set(t)}function _(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}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,P=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)v(t,e)&&i.push(e);return i};var B=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Z={},$={};function U(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&($[t]=r),e&&($[e[0]]=function(){return _(r.apply(this,arguments),e[1],e[2])}),i&&($[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=K(e,t.localeData()),Z[e]=Z[e]||function(t){var e,i,n,r=t.match(B);for(e=0,i=r.length;e<i;e++)r[e]=$[r[e]]?$[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+=H(r[n])?r[n].call(e,t):r[n];return s}}(e),Z[e](t)):t.localeData().invalidDate()}function K(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(I.lastIndex=0;i>=0&&I.test(t);)t=t.replace(I,n),I.lastIndex=0,i-=1;return t}var q={};function Q(t,e){var i=t.toLowerCase();q[i]=q[i+"s"]=q[e]=t}function X(t){return"string"==typeof t?q[t]||q[t.toLowerCase()]:void 0}function tt(t){var e,i,n={};for(i in t)v(t,i)&&(e=X(i))&&(n[e]=t[i]);return n}var et={};function it(t,e){et[t]=e}function nt(t){return t%4==0&&t%100!=0||t%400==0}function rt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function st(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=rt(e)),i}function at(t,e){return function(i){return null!=i?(ut(this,t,i),p.updateOffset(this,e),this):ot(this,t)}}function ot(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function ut(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&nt(t.year())&&1===t.month()&&29===t.date()?(i=st(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),jt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var ht,dt=/\d/,lt=/\d\d/,ct=/\d{3}/,mt=/\d{4}/,ft=/[+-]?\d{6}/,gt=/\d\d?/,pt=/\d\d\d\d?/,yt=/\d\d\d\d\d\d?/,bt=/\d{1,3}/,vt=/\d{1,4}/,St=/[+-]?\d{1,6}/,Mt=/\d+/,wt=/[+-]?\d+/,Dt=/Z|[+-]\d\d:?\d\d/gi,kt=/Z|[+-]\d\d(?::?\d\d)?/gi,Yt=/[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 At(t,e,i){ht[t]=H(e)?e:function(t){return t&&i?i:e}}function Nt(t,e){return v(ht,t)?ht[t](e._strict,e._locale):new RegExp(xt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function xt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ht={};var Ft,Rt={};function zt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),w(e)&&(r=function(t,i){i[e]=st(t)}),n=t.length,i=0;i<n;i++)Rt[t[i]]=r}function Ct(t,e){zt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function Tt(t,e,i){null!=e&&v(Rt,t)&&Rt[t](e,i._a,i,t)}function jt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?nt(t)?29:28:31-i%7%2}Ft=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},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),U("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Q("month","M"),it("month",8),At("M",gt),At("MM",gt,lt),At("MMM",(function(t,e){return e.monthsShortRegex(t)})),At("MMMM",(function(t,e){return e.monthsRegex(t)})),zt(["M","MM"],(function(t,e){e[1]=st(t)-1})),zt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:N(i).invalidMonth=t}));var Wt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gt=Yt,Et=Yt;function Ht(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=A([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Ft.call(this._shortMonthsParse,a))?r:null:-1!==(r=Ft.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Ft.call(this._shortMonthsParse,a))||-1!==(r=Ft.call(this._longMonthsParse,a))?r:null:-1!==(r=Ft.call(this._longMonthsParse,a))||-1!==(r=Ft.call(this._shortMonthsParse,a))?r:null}function Ot(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=st(e);else if(!w(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 Lt(t){return null!=t?(Ot(this,t),p.updateOffset(this,!0),this):ot(this,"Month")}function _t(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],s=[];for(e=0;e<12;e++)i=A([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]=xt(n[e]),r[e]=xt(r[e]);for(e=0;e<24;e++)s[e]=xt(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 Bt(t){return nt(t)?366:365}U("Y",0,0,(function(){var t=this.year();return t<=9999?_(t,4):"+"+t})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),Q("year","y"),it("year",1),At("Y",wt),At("YY",gt,lt),At("YYYY",vt,mt),At("YYYYY",St,ft),At("YYYYYY",St,ft),zt(["YYYYY","YYYYYY"],0),zt("YYYY",(function(t,e){e[0]=2===t.length?p.parseTwoDigitYear(t):st(t)})),zt("YY",(function(t,e){e[0]=p.parseTwoDigitYear(t)})),zt("Y",(function(t,e){e[0]=parseInt(t,10)})),p.parseTwoDigitYear=function(t){return st(t)+(st(t)>68?1900:2e3)};var It=at("FullYear",!0);function Zt(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 $t(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 Ut(t,e,i){var n=7+e-i;return-(7+$t(t,0,n).getUTCDay()-e)%7+n-1}function Vt(t,e,i,n,r){var s,a,o=1+7*(e-1)+(7+i-n)%7+Ut(t,n,r);return o<=0?a=Bt(s=t-1)+o:o>Bt(t)?(s=t+1,a=o-Bt(t)):(s=t,a=o),{year:s,dayOfYear:a}}function Kt(t,e,i){var n,r,s=Ut(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+qt(r=t.year()-1,e,i):a>qt(t.year(),e,i)?(n=a-qt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function qt(t,e,i){var n=Ut(t,e,i),r=Ut(t+1,e,i);return(Bt(t)-n+r)/7}function Qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),Q("week","w"),Q("isoWeek","W"),it("week",5),it("isoWeek",5),At("w",gt),At("ww",gt,lt),At("W",gt),At("WW",gt,lt),Ct(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=st(t)})),U("d",0,"do","day"),U("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),U("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),U("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),Q("day","d"),Q("weekday","e"),Q("isoWeekday","E"),it("day",11),it("weekday",11),it("isoWeekday",11),At("d",gt),At("e",gt),At("E",gt),At("dd",(function(t,e){return e.weekdaysMinRegex(t)})),At("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),At("dddd",(function(t,e){return e.weekdaysRegex(t)})),Ct(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:N(i).invalidWeekday=t})),Ct(["d","e","E"],(function(t,e,i,n){e[n]=st(t)}));var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),te="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ee="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ie=Yt,ne=Yt,re=Yt;function se(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=A([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=Ft.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ft.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Ft.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Ft.call(this._weekdaysParse,a))||-1!==(r=Ft.call(this._shortWeekdaysParse,a))||-1!==(r=Ft.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ft.call(this._shortWeekdaysParse,a))||-1!==(r=Ft.call(this._weekdaysParse,a))||-1!==(r=Ft.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Ft.call(this._minWeekdaysParse,a))||-1!==(r=Ft.call(this._weekdaysParse,a))||-1!==(r=Ft.call(this._shortWeekdaysParse,a))?r:null}function ae(){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=A([2e3,1]).day(e),n=xt(this.weekdaysMin(i,"")),r=xt(this.weekdaysShort(i,"")),s=xt(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 oe(){return this.hours()%12||12}function ue(t,e){U(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function he(t,e){return e._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,oe),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+oe.apply(this)+_(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+oe.apply(this)+_(this.minutes(),2)+_(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+_(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+_(this.minutes(),2)+_(this.seconds(),2)})),ue("a",!0),ue("A",!1),Q("hour","h"),it("hour",13),At("a",he),At("A",he),At("H",gt),At("h",gt),At("k",gt),At("HH",gt,lt),At("hh",gt,lt),At("kk",gt,lt),At("hmm",pt),At("hmmss",yt),At("Hmm",pt),At("Hmmss",yt),zt(["H","HH"],3),zt(["k","kk"],(function(t,e){var i=st(t);e[3]=24===i?0:i})),zt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),zt(["h","hh"],(function(t,e,i){e[3]=st(t),N(i).bigHour=!0})),zt("hmm",(function(t,e,i){var n=t.length-2;e[3]=st(t.substr(0,n)),e[4]=st(t.substr(n)),N(i).bigHour=!0})),zt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=st(t.substr(0,n)),e[4]=st(t.substr(n,2)),e[5]=st(t.substr(r)),N(i).bigHour=!0})),zt("Hmm",(function(t,e){var i=t.length-2;e[3]=st(t.substr(0,i)),e[4]=st(t.substr(i))})),zt("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[3]=st(t.substr(0,i)),e[4]=st(t.substr(i,2)),e[5]=st(t.substr(n))}));var de,le=at("Hours",!0),ce={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:Wt,monthsShort:Jt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:ee,weekdaysShort:te,meridiemParse:/[ap]\.?m?\.?/i},me={},fe={};function ge(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 ye(t){var e=null;if(void 0===me[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=de._abbr,require("./locale/"+t),be(e)}catch(e){me[t]=null}return me[t]}function be(t,e){var i;return t&&((i=M(e)?Se(t):ve(t,e))?de=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),de._abbr}function ve(t,e){if(null!==e){var i,n=ce;if(e.abbr=t,null!=me[t])E("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=ye(e.parentLocale)))return fe[e.parentLocale]||(fe[e.parentLocale]=[]),fe[e.parentLocale].push({name:t,config:e}),null;n=i._config}return me[t]=new L(O(n,e)),fe[t]&&fe[t].forEach((function(t){ve(t.name,t.config)})),be(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 de;if(!y(t)){if(e=ye(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=ye(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&ge(r,i)>=e-1)break;e--}s++}return de}(t)}function Me(t){var e,i=t._a;return i&&-2===N(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>jt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,N(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),N(t)._overflowWeeks&&-1===e&&(e=7),N(t)._overflowWeekday&&-1===e&&(e=8),N(t).overflow=e),t}var we=/^\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)?)?$/,ke=/Z|[+-]\d\d(?::?\d\d)?/,Ye=[["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]],Ae=[["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/]],Ne=/^\/?Date\((-?\d+)/i,xe=/^(?:(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}))$/,Fe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Re(t){var e,i,n,r,s,a,o=t._i,u=we.exec(o)||De.exec(o),h=Ye.length,d=Ae.length;if(u){for(N(t).iso=!0,e=0,i=h;e<i;e++)if(Ye[e][1].exec(u[1])){r=Ye[e][0],n=!1!==Ye[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,i=d;e<i;e++)if(Ae[e][1].exec(u[3])){s=(u[2]||" ")+Ae[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(u[4]){if(!ke.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),je(t)}else t._isValid=!1}function ze(t){var e,i,n,r,s,a,o,u,h,d=xe.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),Jt.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,i){return!t||te.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(N(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 Fe[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=$t.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),N(t).rfc2822=!0}else t._isValid=!1}function Ce(t,e,i){return null!=t?t:null!=e?e:i}function Te(t){var e,i,n,r,s,a=[];if(!t._d){for(n=function(t){var e=new Date(p.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&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=Ce(e.GG,t._a[0],Kt(Pe(),1,4).year),n=Ce(e.W,1),((r=Ce(e.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=Kt(Pe(),s,a),i=Ce(e.gg,t._a[0],h.year),n=Ce(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>qt(i,s,a)?N(t)._overflowWeeks=!0:null!=u?N(t)._overflowWeekday=!0:(o=Vt(i,n,r,s,a),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=Ce(t._a[0],n[0]),(t._dayOfYear>Bt(s)||0===t._dayOfYear)&&(N(t)._overflowDayOfYear=!0),i=$t(s,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=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[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?$t:Zt).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[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(N(t).weekdayMismatch=!0)}}function je(t){if(t._f!==p.ISO_8601)if(t._f!==p.RFC_2822){t._a=[],N(t).empty=!0;var e,i,n,r,s,a,o,u=""+t._i,h=u.length,d=0;for(o=(n=K(t._f,t._locale).match(B)||[]).length,e=0;e<o;e++)(i=(u.match(Nt(r=n[e],t))||[])[0])&&((s=u.substr(0,u.indexOf(i))).length>0&&N(t).unusedInput.push(s),u=u.slice(u.indexOf(i)+i.length),d+=i.length),$[r]?(i?N(t).empty=!1:N(t).unusedTokens.push(r),Tt(r,i,t)):t._strict&&!i&&N(t).unusedTokens.push(r);N(t).charsLeftOver=h-d,u.length>0&&N(t).unusedInput.push(u),t._a[3]<=12&&!0===N(t).bigHour&&t._a[3]>0&&(N(t).bigHour=void 0),N(t).parsedDateParts=t._a.slice(0),N(t).meridiem=t._meridiem,t._a[3]=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[3],t._meridiem),null!==(a=N(t).era)&&(t._a[0]=t._locale.erasConvertYear(a,t._a[0])),Te(t),Me(t)}else ze(t);else Re(t)}function We(t){var e=t._i,i=t._f;return t._locale=t._locale||Se(t._l),null===e||void 0===i&&""===e?F({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),j(e)?new T(Me(e)):(D(e)?t._d=e:y(i)?function(t){var e,i,n,r,s,a,o=!1,u=t._f.length;if(0===u)return N(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,a=!1,e=C({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],je(e),x(e)&&(a=!0),s+=N(e).charsLeftOver,s+=10*N(e).unusedTokens.length,N(e).score=s,o?s<n&&(n=s,i=e):(null==n||s<n||a)&&(n=s,i=e,a&&(o=!0));Y(t,i||e)}(t):i?je(t):function(t){var e=t._i;M(e)?t._d=new Date(p.now()):D(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Ne.exec(t._i);null===e?(Re(t),!1===t._isValid&&(delete t._isValid,ze(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:p.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):y(e)?(t._a=k(e.slice(0),(function(t){return parseInt(t,10)})),Te(t)):b(e)?function(t){if(!t._d){var e=tt(t._i);t._a=k([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)})),Te(t)}}(t):w(e)?t._d=new Date(e):p.createFromInputFallback(t)}(t),x(t)||(t._d=null),t))}function Je(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),(b(t)&&S(t)||y(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 T(Me(We(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Pe(t,e,i,n){return Je(t,e,i,n,!1)}p.createFromInputFallback=J("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":""))})),p.ISO_8601=function(){},p.RFC_2822=function(){};var Ge=J("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:F()})),Ee=J("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:F()}));function He(t,e){var i,n;if(1===e.length&&y(e[0])&&(e=e[0]),!e.length)return Pe();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Le(t){var e=tt(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=Oe.length;for(e in t)if(v(t,e)&&(-1===Ft.call(Oe,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[Oe[i]]){if(n)return!1;parseFloat(t[Oe[i]])!==st(t[Oe[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 _e(t){return t instanceof Le}function Be(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ie(t,e){U(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+_(~~(t/60),2)+e+_(~~t%60,2)}))}Ie("Z",":"),Ie("ZZ",""),At("Z",kt),At("ZZ",kt),zt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=$e(kt,t)}));var Ze=/([\+\-]|\d\d)/gi;function $e(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(Ze)||["-",0,0])[1]+st(i[2]))?0:"+"===i[0]?n:-n}function Ue(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(j(t)||D(t)?t.valueOf():Pe(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),p.updateOffset(i,!1),i):Pe(t).local()}function Ve(t){return-Math.round(t._d.getTimezoneOffset())}function Ke(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var qe=/^(-|\+)?(?:(\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 Xe(t,e){var i,n,r,s,a,o,u=t,h=null;return _e(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:w(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=qe.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:st(h[2])*i,h:st(h[3])*i,m:st(h[4])*i,s:st(h[5])*i,ms:st(Be(1e3*h[6]))*i}):(h=Qe.exec(t))?u={y:ti(h[2],i="-"===h[1]?-1:1),M:ti(h[3],i),w:ti(h[4],i),d:ti(h[5],i),h:ti(h[6],i),m:ti(h[7],i),s:ti(h[8],i)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=Pe(u.from),a=Pe(u.to),r=s.isValid()&&a.isValid()?(a=Ue(a,s),s.isBefore(a)?o=ei(s,a):((o=ei(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new Le(u),_e(t)&&v(t,"_locale")&&(n._locale=t._locale),_e(t)&&v(t,"_isValid")&&(n._isValid=t._isValid),n}function ti(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function ei(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 ii(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(E(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),ni(this,Xe(i,n),t),this}}function ni(t,e,i,n){var r=e._milliseconds,s=Be(e._days),a=Be(e._months);t.isValid()&&(n=null==n||n,a&&Ot(t,ot(t,"Month")+a*i),s&&ut(t,"Date",ot(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&p.updateOffset(t,s||a))}Xe.fn=Le.prototype,Xe.invalid=function(){return Xe(NaN)};var ri=ii(1,"add"),si=ii(-1,"subtract");function ai(t){return"string"==typeof t||t instanceof String}function oi(t){return j(t)||D(t)||ai(t)||w(t)||function(t){var e=y(t),i=!1;return e&&(i=0===t.filter((function(e){return!w(e)&&ai(t)})).length),e&&i}(t)||function(t){var e,i=b(t)&&!S(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||v(t,r[e]);return i&&n}(t)||null==t}function ui(t){var e,i=b(t)&&!S(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||v(t,r[e]);return i&&n}function hi(t,e){if(t.date()<e.date())return-hi(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 di(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Se(t))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=J("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 ci(){return this._locale}function mi(t,e){return(t%e+e)%e}function fi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function gi(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function pi(t,e){return e.erasAbbrRegex(t)}function yi(){var t,e,i=[],n=[],r=[],s=[],a=this.eras();for(t=0,e=a.length;t<e;++t)n.push(xt(a[t].name)),i.push(xt(a[t].abbr)),r.push(xt(a[t].narrow)),s.push(xt(a[t].name)),s.push(xt(a[t].abbr)),s.push(xt(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 bi(t,e){U(0,[t,t.length],0,e)}function vi(t,e,i,n,r){var s;return null==t?Kt(this,n,r).year:(e>(s=qt(t,n,r))&&(e=s),Si.call(this,t,e,i,n,r))}function Si(t,e,i,n,r){var s=Vt(t,e,i,n,r),a=$t(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),At("N",pi),At("NN",pi),At("NNN",pi),At("NNNN",(function(t,e){return e.erasNameRegex(t)})),At("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),zt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?N(i).era=r:N(i).invalidEra=t})),At("y",Mt),At("yy",Mt),At("yyy",Mt),At("yyyy",Mt),At("yo",(function(t,e){return e._eraYearOrdinalRegex||Mt})),zt(["y","yy","yyy","yyyy"],0),zt(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[0]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bi("gggg","weekYear"),bi("ggggg","weekYear"),bi("GGGG","isoWeekYear"),bi("GGGGG","isoWeekYear"),Q("weekYear","gg"),Q("isoWeekYear","GG"),it("weekYear",1),it("isoWeekYear",1),At("G",wt),At("g",wt),At("GG",gt,lt),At("gg",gt,lt),At("GGGG",vt,mt),At("gggg",vt,mt),At("GGGGG",St,ft),At("ggggg",St,ft),Ct(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=st(t)})),Ct(["gg","GG"],(function(t,e,i,n){e[n]=p.parseTwoDigitYear(t)})),U("Q",0,"Qo","quarter"),Q("quarter","Q"),it("quarter",7),At("Q",dt),zt("Q",(function(t,e){e[1]=3*(st(t)-1)})),U("D",["DD",2],"Do","date"),Q("date","D"),it("date",9),At("D",gt),At("DD",gt,lt),At("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),zt(["D","DD"],2),zt("Do",(function(t,e){e[2]=st(t.match(gt)[0])}));var Mi=at("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),Q("dayOfYear","DDD"),it("dayOfYear",4),At("DDD",bt),At("DDDD",ct),zt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=st(t)})),U("m",["mm",2],0,"minute"),Q("minute","m"),it("minute",14),At("m",gt),At("mm",gt,lt),zt(["m","mm"],4);var wi=at("Minutes",!1);U("s",["ss",2],0,"second"),Q("second","s"),it("second",15),At("s",gt),At("ss",gt,lt),zt(["s","ss"],5);var Di,ki,Yi=at("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Q("millisecond","ms"),it("millisecond",16),At("S",bt,dt),At("SS",bt,lt),At("SSS",bt,ct),Di="SSSS";Di.length<=9;Di+="S")At(Di,Mt);function Ai(t,e){e[6]=st(1e3*("0."+t))}for(Di="S";Di.length<=9;Di+="S")zt(Di,Ai);ki=at("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Ni=T.prototype;function xi(t){return t}Ni.add=ri,Ni.calendar=function(t,e){1===arguments.length&&(arguments[0]?oi(arguments[0])?(t=arguments[0],e=void 0):ui(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var i=t||Pe(),n=Ue(i,this).startOf("day"),r=p.calendarFormat(this,n)||"sameElse",s=e&&(H(e[r])?e[r].call(this,i):e[r]);return this.format(s||this.localeData().calendar(r,this,Pe(i)))},Ni.clone=function(){return new T(this)},Ni.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=Ue(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=X(e)){case"year":s=hi(this,n)/12;break;case"month":s=hi(this,n);break;case"quarter":s=hi(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:rt(s)},Ni.endOf=function(t){var e,i;if(void 0===(t=X(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?gi:fi,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+=36e5-mi(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-mi(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-mi(e,1e3)-1}return this._d.setTime(e),p.updateOffset(this,!0),this},Ni.format=function(t){t||(t=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var e=V(this,t);return this.localeData().postformat(e)},Ni.from=function(t,e){return this.isValid()&&(j(t)&&t.isValid()||Pe(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ni.fromNow=function(t){return this.from(Pe(),t)},Ni.to=function(t,e){return this.isValid()&&(j(t)&&t.isValid()||Pe(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ni.toNow=function(t){return this.to(Pe(),t)},Ni.get=function(t){return H(this[t=X(t)])?this[t]():this},Ni.invalidAt=function(){return N(this).overflow},Ni.isAfter=function(t,e){var i=j(t)?t:Pe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=X(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Ni.isBefore=function(t,e){var i=j(t)?t:Pe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=X(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Ni.isBetween=function(t,e,i,n){var r=j(t)?t:Pe(t),s=j(e)?e:Pe(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))},Ni.isSame=function(t,e){var i,n=j(t)?t:Pe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=X(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Ni.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ni.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ni.isValid=function(){return x(this)},Ni.lang=li,Ni.locale=di,Ni.localeData=ci,Ni.max=Ee,Ni.min=Ge,Ni.parsingFlags=function(){return Y({},N(this))},Ni.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)v(t,e)&&i.push({unit:e,priority:et[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=tt(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(H(this[t=X(t)]))return this[t](e);return this},Ni.startOf=function(t){var e,i;if(void 0===(t=X(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?gi:fi,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-=mi(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=mi(e,6e4);break;case"second":e=this._d.valueOf(),e-=mi(e,1e3)}return this._d.setTime(e),p.updateOffset(this,!0),this},Ni.subtract=si,Ni.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ni.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()}},Ni.toDate=function(){return new Date(this.valueOf())},Ni.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?V(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(i,"Z")):V(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ni.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&&(Ni[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ni.toJSON=function(){return this.isValid()?this.toISOString():null},Ni.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ni.unix=function(){return Math.floor(this.valueOf()/1e3)},Ni.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ni.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ni.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""},Ni.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""},Ni.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""},Ni.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()-p(r[t].since).year())*i+r[t].offset;return this.year()},Ni.year=It,Ni.isLeapYear=function(){return nt(this.year())},Ni.weekYear=function(t){return vi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ni.isoWeekYear=function(t){return vi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ni.quarter=Ni.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ni.month=Lt,Ni.daysInMonth=function(){return jt(this.year(),this.month())},Ni.week=Ni.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ni.isoWeek=Ni.isoWeeks=function(t){var e=Kt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ni.weeksInYear=function(){var t=this.localeData()._week;return qt(this.year(),t.dow,t.doy)},Ni.weeksInWeekYear=function(){var t=this.localeData()._week;return qt(this.weekYear(),t.dow,t.doy)},Ni.isoWeeksInYear=function(){return qt(this.year(),1,4)},Ni.isoWeeksInISOWeekYear=function(){return qt(this.isoWeekYear(),1,4)},Ni.date=Mi,Ni.day=Ni.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},Ni.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")},Ni.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},Ni.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")},Ni.hour=Ni.hours=le,Ni.minute=Ni.minutes=wi,Ni.second=Ni.seconds=Yi,Ni.millisecond=Ni.milliseconds=ki,Ni.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=$e(kt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ve(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?ni(this,Xe(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ve(this)},Ni.utc=function(t){return this.utcOffset(0,t)},Ni.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ve(this),"m")),this},Ni.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=$e(Dt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Ni.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ni.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ni.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ni.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ni.isUtc=Ke,Ni.isUTC=Ke,Ni.zoneAbbr=function(){return this._isUTC?"UTC":""},Ni.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ni.dates=J("dates accessor is deprecated. Use date instead.",Mi),Ni.months=J("months accessor is deprecated. Use month instead",Lt),Ni.years=J("years accessor is deprecated. Use year instead",It),Ni.zone=J("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()})),Ni.isDSTShifted=J("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!M(this._isDSTShifted))return this._isDSTShifted;var t,e={};return C(e,this),(e=We(e))._a?(t=e._isUTC?A(e._a):Pe(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++)st(t[i])!==st(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Fi=L.prototype;function Ri(t,e,i,n){var r=Se(),s=A().set(n,e);return r[i](s,t)}function zi(t,e,i){if(w(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ri(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Ri(t,n,i,"month");return r}function Ci(t,e,i,n){"boolean"==typeof t?(w(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,w(e)&&(i=e,e=void 0),e=e||"");var r,s=Se(),a=t?s._week.dow:0,o=[];if(null!=i)return Ri(e,(i+a)%7,n,"day");for(r=0;r<7;r++)o[r]=Ri(e,(r+a)%7,n,"day");return o}Fi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return H(n)?n.call(e,i):n},Fi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(B).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Fi.invalidDate=function(){return this._invalidDate},Fi.ordinal=function(t){return this._ordinal.replace("%d",t)},Fi.preparse=xi,Fi.postformat=xi,Fi.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return H(r)?r(t,e,i,n):r.replace(/%d/i,t)},Fi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return H(i)?i(e):i.replace(/%s/i,e)},Fi.set=function(t){var e,i;for(i in t)v(t,i)&&(H(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)},Fi.eras=function(){var t,e,i,n=this._eras||Se("en")._eras;for(t=0,e=n.length;t<e;++t){switch(typeof n[t].since){case"string":i=p(n[t].since).startOf("day"),n[t].since=i.valueOf()}switch(typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":i=p(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}}return n},Fi.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]},Fi.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?p(t.since).year():p(t.since).year()+(e-t.offset)*i},Fi.erasAbbrRegex=function(t){return v(this,"_erasAbbrRegex")||yi.call(this),t?this._erasAbbrRegex:this._erasRegex},Fi.erasNameRegex=function(t){return v(this,"_erasNameRegex")||yi.call(this),t?this._erasNameRegex:this._erasRegex},Fi.erasNarrowRegex=function(t){return v(this,"_erasNarrowRegex")||yi.call(this),t?this._erasNarrowRegex:this._erasRegex},Fi.months=function(t,e){return t?y(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Pt).test(e)?"format":"standalone"][t.month()]:y(this._months)?this._months:this._months.standalone},Fi.monthsShort=function(t,e){return t?y(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Pt.test(e)?"format":"standalone"][t.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Fi.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return Ht.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=A([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}},Fi.monthsRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||_t.call(this),t?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=Et),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Fi.monthsShortRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||_t.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=Gt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Fi.week=function(t){return Kt(t,this._week.dow,this._week.doy).week},Fi.firstDayOfYear=function(){return this._week.doy},Fi.firstDayOfWeek=function(){return this._week.dow},Fi.weekdays=function(t,e){var i=y(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},Fi.weekdaysMin=function(t){return!0===t?Qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Fi.weekdaysShort=function(t){return!0===t?Qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Fi.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return se.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=A([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}},Fi.weekdaysRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ae.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Fi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ae.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ne),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Fi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ae.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=re),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Fi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Fi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},be("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===st(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),p.lang=J("moment.lang is deprecated. Use moment.locale instead.",be),p.langData=J("moment.langData is deprecated. Use moment.localeData instead.",Se);var Ti=Math.abs;function ji(t,e,i,n){var r=Xe(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Wi(t){return t<0?Math.floor(t):Math.ceil(t)}function Ji(t){return 4800*t/146097}function Pi(t){return 146097*t/4800}function Gi(t){return function(){return this.as(t)}}var Ei=Gi("ms"),Hi=Gi("s"),Oi=Gi("m"),Li=Gi("h"),_i=Gi("d"),Bi=Gi("w"),Ii=Gi("M"),Zi=Gi("Q"),$i=Gi("y");function Ui(t){return function(){return this.isValid()?this._data[t]:NaN}}var Vi=Ui("milliseconds"),Ki=Ui("seconds"),qi=Ui("minutes"),Qi=Ui("hours"),Xi=Ui("days"),tn=Ui("months"),en=Ui("years"),nn=Math.round,rn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function sn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var an=Math.abs;function on(t){return(t>0)-(t<0)||+t}function un(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,a,o,u=an(this._milliseconds)/1e3,h=an(this._days),d=an(this._months),l=this.asSeconds();return l?(t=rt(u/60),e=rt(t/60),u%=60,t%=60,i=rt(d/12),d%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=l<0?"-":"",s=on(this._months)!==on(l)?"-":"",a=on(this._days)!==on(l)?"-":"",o=on(this._milliseconds)!==on(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 hn=Le.prototype;hn.isValid=function(){return this._isValid},hn.abs=function(){var t=this._data;return this._milliseconds=Ti(this._milliseconds),this._days=Ti(this._days),this._months=Ti(this._months),t.milliseconds=Ti(t.milliseconds),t.seconds=Ti(t.seconds),t.minutes=Ti(t.minutes),t.hours=Ti(t.hours),t.months=Ti(t.months),t.years=Ti(t.years),this},hn.add=function(t,e){return ji(this,t,e,1)},hn.subtract=function(t,e){return ji(this,t,e,-1)},hn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=X(t))||"quarter"===t||"year"===t)switch(i=this._months+Ji(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(Pi(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)}},hn.asMilliseconds=Ei,hn.asSeconds=Hi,hn.asMinutes=Oi,hn.asHours=Li,hn.asDays=_i,hn.asWeeks=Bi,hn.asMonths=Ii,hn.asQuarters=Zi,hn.asYears=$i,hn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*st(this._months/12):NaN},hn._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*Wi(Pi(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=rt(s/1e3),u.seconds=t%60,e=rt(t/60),u.minutes=e%60,i=rt(e/60),u.hours=i%24,a+=rt(i/24),o+=r=rt(Ji(a)),a-=Wi(Pi(r)),n=rt(o/12),o%=12,u.days=a,u.months=o,u.years=n,this},hn.clone=function(){return Xe(this)},hn.get=function(t){return t=X(t),this.isValid()?this[t+"s"]():NaN},hn.milliseconds=Vi,hn.seconds=Ki,hn.minutes=qi,hn.hours=Qi,hn.days=Xi,hn.weeks=function(){return rt(this.days()/7)},hn.months=tn,hn.years=en,hn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=rn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},rn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=Xe(t).abs(),s=nn(r.as("s")),a=nn(r.as("m")),o=nn(r.as("h")),u=nn(r.as("d")),h=nn(r.as("M")),d=nn(r.as("w")),l=nn(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,sn.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},hn.toISOString=un,hn.toString=un,hn.toJSON=un,hn.locale=di,hn.localeData=ci,hn.toIsoString=J("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",un),hn.lang=li,U("X",0,0,"unix"),U("x",0,0,"valueOf"),At("x",wt),At("X",/[+-]?\d+(\.\d{1,3})?/),zt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),zt("x",(function(t,e,i){i._d=new Date(st(t))})),
|
|
8
8
|
//! moment.js
|
|
9
|
-
p.version="2.29.4",f=Pe,p.fn=Ni,p.min=function(){var t=[].slice.call(arguments,0);return He("isBefore",t)},p.max=function(){var t=[].slice.call(arguments,0);return He("isAfter",t)},p.now=function(){return Date.now?Date.now():+new Date},p.utc=A,p.unix=function(t){return Pe(1e3*t)},p.months=function(t,e){return zi(t,e,"months")},p.isDate=D,p.locale=be,p.invalid=F,p.duration=Xe,p.isMoment=j,p.weekdays=function(t,e,i){return Ti(t,e,i,"weekdays")},p.parseZone=function(){return Pe.apply(null,arguments).parseZone()},p.localeData=Se,p.isDuration=Le,p.monthsShort=function(t,e){return zi(t,e,"monthsShort")},p.weekdaysMin=function(t,e,i){return Ti(t,e,i,"weekdaysMin")},p.defineLocale=ve,p.updateLocale=function(t,e){if(null!=e){var i,n,r=ce;null!=me[t]&&null!=me[t].parentLocale?me[t].set(O(me[t]._config,e)):(null!=(n=ye(t))&&(r=n._config),e=O(r,e),null==n&&(e.abbr=t),(i=new _(e)).parentLocale=me[t],me[t]=i),be(t)}else null!=me[t]&&(null!=me[t].parentLocale?(me[t]=me[t].parentLocale,t===be()&&be(t)):null!=me[t]&&delete me[t]);return me[t]},p.locales=function(){return P(me)},p.weekdaysShort=function(t,e,i){return Ti(t,e,i,"weekdaysShort")},p.normalizeUnits=X,p.relativeTimeRounding=function(t){return void 0===t?nn:"function"==typeof t&&(nn=t,!0)},p.relativeTimeThreshold=function(t,e){return void 0!==rn[t]&&(void 0===e?rn[t]:(rn[t]=e,"s"===t&&(rn.ss=e-1),!0))},p.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"},p.prototype=Ni,p.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 dn=class{constructor(e){t(this,e),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.shortStartFormat="DD MMM YYYY",this.clientStyling="",this.clientStylingUrl="",this.enrolled=!1,this.showReadMore=!1,this.limitStylingAppends=!1,this.formatDate=()=>{const t={month:"long"},e=this.tournamentInfo.state;let i=new Date(this.tournamentInfo.startTime);const n=()=>m("Running"===e||"Closing"==e||"Closed"==e?"startedAt":"startingAt",this.language);if(this.shortStart){let t=p(i).format(this.shortStartFormat);this.startDate="Running"===e||"Closing"==e||"Closed"==e?m("startedAtWithTime",this.language)+t:m("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} `+m(`${e}`,this.language)+", "+n()+` ${s}`}},this.detailsAction=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t},window.location.href)}}infoCompletedHandler(t){if(t.detail&&this.useEvent){if(this.tournamentId&&this.tournamentId!=t.detail.id)return;this.tournamentInfo=t.detail,this.tournamentInfo.startTime&&this.formatDate()}}componentWillLoad(){this.useEvent||(this.tournamentInfo={nameOrTitle:this.nameOrTitle,scoreCriteria:this.scoreCriteria,termsUrl:this.termsUrl,startTime:this.startTime,endTime:this.endTime,prizes:this.prizes,minBetCount:this.minBetCount})}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",{class:"TournamentInfoWrap"},e("div",{class:`TournamentInfo ${this.align}`,part:"TournamentInfo"},e("h1",{class:"Title"},this.tournamentInfo.nameOrTitle),e("div",{class:"Details"},e("p",{class:"Score"},m("scoreCriteria",this.language),":",this.tournamentInfo.scoreCriteria," (",m("minbet",this.language),":",this.tournamentInfo.minBetCount,")"),this.showDates&&e("p",{class:"Dates"},this.startDate),this.seeGames&&e("p",{class:"SeeGames"},m("seegames",this.language),":",e("a",{class:"GameLink",href:this.tournamentInfo.termsUrl||"#",target:1==this.keepContext?"_self":"_blank",onClick:()=>this.tournamentGamesClicked(this.tournamentId)}," ",m("here",this.language))),this.showButton&&e("div",{class:"InfoButtons"},e("casino-tournament-buttons",{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}))),this.showPrizes&&e("casino-tournament-prizes",{"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",{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})))}get host(){return i(this)}};dn.style=":host{display:block}.TournamentInfo{background:var(--emfe-w-tournament-color-bg, #153a5c);color:var(--emfe-w-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(--emfe-w-color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:2px;background-color:var(--emfe-w-tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emfe-w-color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emfe-w-color-white, #FFFFFF)}";const ln=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],cn={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},mn=(t,e)=>{const i=e;return cn[void 0!==i&&ln.includes(i)?i:"en"][t]},fn=class{constructor(e){t(this,e),this.useGroup=!1,this.useEvent=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.prizes=[],this.prizeGroups=[],this.initialLoad=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrl,this.stylingContainer.prepend(t)}),1)}}infoCompletedHandler(t){t.detail&&(this.prizes=t.detail.prizes,this.formatGroup(),this.initialLoad=!0)}formatGroup(){this.prizes.forEach((t=>{let e=[];if(t.count>0)for(let i=0;i<t.count;i++)e.push({name:t.name,rank:t.rank+i});this.prizeGroups.push(e)}))}getTournamentInfo(){let t=new URL(this.endpoint+`/tournaments/${this.tournamentId}`),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("language",this.language),t.searchParams.append("fields","playerEnrolled,games(id,name,thumbnail)"),this.session&&e.append("X-SessionId",this.session),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((t=>{this.prizes=t.item.prizes,this.useGroup&&this.formatGroup(),this.initialLoad=!0}))}componentWillLoad(){!this.useEvent&&this.rawPrizes&&(this.prizes=JSON.parse(this.rawPrizes),this.useGroup&&this.formatGroup(),this.initialLoad=!0),!this.useEvent&&this.endpoint&&this.tournamentId&&this.getTournamentInfo()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return e("div",{ref:t=>this.stylingContainer=t,class:"TournamentPrizes "+(this.useGroup?"":"PrizeView")},this.initialLoad&&!this.useGroup&&e("div",{class:"PrizeTitle"},e("svg",{class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"27.454",viewBox:"0 0 30 27.454"},e("path",{d:"M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z",transform:"translate(-5.999 -9.76)"})),e("div",{class:"Title"},mn("prizes",this.language))),this.initialLoad&&this.useGroup&&e("div",{class:"GroupPrizeTitle"},e("svg",{class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},e("g",{"clip-path":"url(#clip0_2459_42455)"},e("path",{d:"M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_2459_42455"},e("rect",{width:"18.2857",height:"16",fill:"white",transform:"translate(0.5)"})))),e("div",{class:"Title"},mn("prizes",this.language))),e("div",{class:"PrizeGroups"},1==this.useGroup&&this.prizeGroups&&this.prizeGroups.map(((t,i)=>e("div",{class:`PrizeGroup Group${i+1}`},t&&t.map(((t,i)=>e("div",{class:"PrizeRow"},e("div",{class:`PrizeItem Rank${i+1}`},e("span",{class:"PrizeRank"},t.rank," ",mn("place",this.language)," "),e("span",{class:"PrizeName"},t.name)))))))),0==this.useGroup&&this.prizes&&this.prizes.map(((t,i)=>e("div",{class:`Prize Prize${i}`},e("p",{class:"PrizeText"},e("span",{class:"PrizeRank"},t.count>1?`${t.rank}~${t.rank+t.count-1}`:t.rank)," ",mn("place",this.language),": ",t.name)))),!this.prizes&&e("p",null,mn("noprizes",this.language))))}};fn.style=":host{display:block}.PrizeGroups{color:var(--emfe-w-color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emfe-w-tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emfe-w-color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}";export{a as casino_tournament_buttons,d as casino_tournament_duration,dn as casino_tournament_info,fn as casino_tournament_prizes}
|
|
9
|
+
p.version="2.29.4",f=Pe,p.fn=Ni,p.min=function(){var t=[].slice.call(arguments,0);return He("isBefore",t)},p.max=function(){var t=[].slice.call(arguments,0);return He("isAfter",t)},p.now=function(){return Date.now?Date.now():+new Date},p.utc=A,p.unix=function(t){return Pe(1e3*t)},p.months=function(t,e){return zi(t,e,"months")},p.isDate=D,p.locale=be,p.invalid=F,p.duration=Xe,p.isMoment=j,p.weekdays=function(t,e,i){return Ci(t,e,i,"weekdays")},p.parseZone=function(){return Pe.apply(null,arguments).parseZone()},p.localeData=Se,p.isDuration=_e,p.monthsShort=function(t,e){return zi(t,e,"monthsShort")},p.weekdaysMin=function(t,e,i){return Ci(t,e,i,"weekdaysMin")},p.defineLocale=ve,p.updateLocale=function(t,e){if(null!=e){var i,n,r=ce;null!=me[t]&&null!=me[t].parentLocale?me[t].set(O(me[t]._config,e)):(null!=(n=ye(t))&&(r=n._config),e=O(r,e),null==n&&(e.abbr=t),(i=new L(e)).parentLocale=me[t],me[t]=i),be(t)}else null!=me[t]&&(null!=me[t].parentLocale?(me[t]=me[t].parentLocale,t===be()&&be(t)):null!=me[t]&&delete me[t]);return me[t]},p.locales=function(){return P(me)},p.weekdaysShort=function(t,e,i){return Ci(t,e,i,"weekdaysShort")},p.normalizeUnits=X,p.relativeTimeRounding=function(t){return void 0===t?nn:"function"==typeof t&&(nn=t,!0)},p.relativeTimeThreshold=function(t,e){return void 0!==rn[t]&&(void 0===e?rn[t]:(rn[t]=e,"s"===t&&(rn.ss=e-1),!0))},p.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"},p.prototype=Ni,p.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 dn=class{constructor(e){t(this,e),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.shortStartFormat="DD MMM YYYY",this.clientStyling="",this.clientStylingUrl="",this.enrolled=!1,this.showReadMore=!1,this.limitStylingAppends=!1,this.formatDate=()=>{const t={month:"long"},e=this.tournamentInfo.state;let i=new Date(this.tournamentInfo.startTime);const n=()=>m("Running"===e||"Closing"==e||"Closed"==e?"startedAt":"startingAt",this.language);if(this.shortStart){let t=p(i).format(this.shortStartFormat);this.startDate="Running"===e||"Closing"==e||"Closed"==e?m("startedAtWithTime",this.language)+t:m("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} `+m(`${e}`,this.language)+", "+n()+` ${s}`}},this.detailsAction=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t},window.location.href)}}infoCompletedHandler(t){if(t.detail&&this.useEvent){if(this.tournamentId&&this.tournamentId!=t.detail.id)return;this.tournamentInfo=t.detail,this.tournamentInfo.startTime&&this.formatDate()}}componentWillLoad(){this.useEvent||(this.tournamentInfo={nameOrTitle:this.nameOrTitle,scoreCriteria:this.scoreCriteria,termsUrl:this.termsUrl,startTime:this.startTime,endTime:this.endTime,prizes:this.prizes,minBetCount:this.minBetCount})}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",{class:"TournamentInfoWrap"},e("div",{class:`TournamentInfo ${this.align}`,part:"TournamentInfo"},e("h1",{class:"Title"},this.tournamentInfo.nameOrTitle),e("div",{class:"Details"},e("p",{class:"Score"},m("scoreCriteria",this.language),":",this.tournamentInfo.scoreCriteria," (",m("minbet",this.language),":",this.tournamentInfo.minBetCount,")"),this.showDates&&e("p",{class:"Dates"},this.startDate),this.seeGames&&e("p",{class:"SeeGames"},m("seegames",this.language),":",e("a",{class:"GameLink",href:this.tournamentInfo.termsUrl||"#",target:1==this.keepContext?"_self":"_blank",onClick:()=>this.tournamentGamesClicked(this.tournamentId)}," ",m("here",this.language))),this.showButton&&e("div",{class:"InfoButtons"},e("casino-tournament-buttons",{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}))),this.showPrizes&&e("casino-tournament-prizes",{"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",{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})))}get host(){return i(this)}};dn.style=":host{display:block}.TournamentInfo{background:var(--emfe-w-tournament-color-bg, #153a5c);color:var(--emfe-w-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(--emfe-w-color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:2px;background-color:var(--emfe-w-tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emfe-w-color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emfe-w-color-white, #FFFFFF)}";const ln=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],cn={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},mn=(t,e)=>{const i=e;return cn[void 0!==i&&ln.includes(i)?i:"en"][t]},fn=class{constructor(e){t(this,e),this.useGroup=!1,this.useEvent=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.prizes=[],this.prizeGroups=[],this.initialLoad=!1}infoCompletedHandler(t){t.detail&&(this.prizes=t.detail.prizes,this.formatGroup(),this.initialLoad=!0)}formatGroup(){this.prizes.forEach((t=>{let e=[];if(t.count>0)for(let i=0;i<t.count;i++)e.push({name:t.name,rank:t.rank+i});this.prizeGroups.push(e)}))}getTournamentInfo(){let t=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}`),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("language",this.language),t.searchParams.append("fields","playerEnrolled,games(id,name,thumbnail)"),this.session&&e.append("X-SessionId",this.session),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((t=>{this.prizes=t.item.prizes,this.useGroup&&this.formatGroup(),this.initialLoad=!0}))}componentWillLoad(){!this.useEvent&&this.rawPrizes&&(this.prizes=JSON.parse(this.rawPrizes),this.useGroup&&this.formatGroup(),this.initialLoad=!0),!this.useEvent&&this.endpoint&&this.tournamentId&&this.getTournamentInfo()}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(){return e("div",{class:"TournamentPrizes "+(this.useGroup?"":"PrizeView")},this.initialLoad&&!this.useGroup&&e("div",{class:"PrizeTitle"},e("svg",{class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"27.454",viewBox:"0 0 30 27.454"},e("path",{d:"M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z",transform:"translate(-5.999 -9.76)"})),e("div",{class:"Title"},mn("prizes",this.language))),this.initialLoad&&this.useGroup&&e("div",{class:"GroupPrizeTitle"},e("svg",{class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},e("g",{"clip-path":"url(#clip0_2459_42455)"},e("path",{d:"M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_2459_42455"},e("rect",{width:"18.2857",height:"16",fill:"white",transform:"translate(0.5)"})))),e("div",{class:"Title"},mn("prizes",this.language))),e("div",{class:"PrizeGroups"},1==this.useGroup&&this.prizeGroups&&this.prizeGroups.map(((t,i)=>e("div",{class:`PrizeGroup Group${i+1}`},t&&t.map(((t,i)=>e("div",{class:"PrizeRow"},e("div",{class:`PrizeItem Rank${i+1}`},e("span",{class:"PrizeRank"},t.rank," ",mn("place",this.language)," "),e("span",{class:"PrizeName"},t.name)))))))),0==this.useGroup&&this.prizes&&this.prizes.map(((t,i)=>e("div",{class:`Prize Prize${i}`},e("p",{class:"PrizeText"},e("span",{class:"PrizeRank"},t.count>1?`${t.rank}~${t.rank+t.count-1}`:t.rank)," ",mn("place",this.language),": ",t.name)))),!this.prizes&&e("p",null,mn("noprizes",this.language))))}get host(){return i(this)}};fn.style=":host{display:block}.PrizeGroups{color:var(--emfe-w-color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emfe-w-tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emfe-w-color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}";export{a as casino_tournament_buttons,d as casino_tournament_duration,dn as casino_tournament_info,fn as casino_tournament_prizes}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},i=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),i=a(t,s),c=h(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){I(e)}},f=(e,t)=>8&t?s:e,h=e=>0!=(2&e),$=new WeakMap,p=e=>"sc-"+e.h,y={},d=e=>"object"==(e=typeof e)||"function"===e,m=(e,t,...n)=>{let l=null,s=!1,o=!1,r=[];const i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!d(l))&&(l+=""),s&&o?r[r.length-1].$+=l:r.push(s?w(null,l):l),o=s)};if(i(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const c=w(e,null);return c.p=t,r.length>0&&(c.m=r),c},w=(e,t)=>({t:0,g:e,$:t,v:null,m:null,p:null}),b={},g=(e,t,n,l,o,i)=>{if(n!==l){let c=G(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=S(n),o=S(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if(c||"o"!==t[0]||"n"!==t[1]){const s=d(l);if((c||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&i||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):G(s,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},v=/\s/,S=e=>e?e.split(v):[],j=(e,t,n,l)=>{const s=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.p||y,r=t.p||y;for(l in o)l in r||g(s,l,o[l],void 0,n,t.t);for(l in r)g(s,l,o[l],r[l],n,t.t)},O=(t,l,s)=>{let r,i,c=l.m[s],u=0;if(null!==c.$)r=c.v=o.createTextNode(c.$);else{if(n||(n="svg"===c.g),r=c.v=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.g),n&&"foreignObject"===c.g&&(n=!1),j(null,c,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),c.m)for(u=0;u<c.m.length;++u)i=O(t,c,u),i&&r.appendChild(i);"svg"===c.g?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},M=(e,n,l,s,o,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=O(null,l,o),i&&(s[o].v=i,c.insertBefore(i,n)))},k=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.v.remove()},C=(e,t)=>e.g===t.g,x=(e,t)=>{const l=t.v=e.v,s=e.m,o=t.m,r=t.g,i=t.$;null===i?(n="svg"===r||"foreignObject"!==r&&n,j(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==h?h=l[--a]:C(c,f)?(x(c,f),c=t[++o],f=l[++r]):C(u,h)?(x(u,h),u=t[--i],h=l[--a]):C(c,h)?(x(c,h),e.insertBefore(c.v,u.v.nextSibling),c=t[++o],h=l[--a]):C(u,f)?(x(u,f),e.insertBefore(u.v,c.v),u=t[--i],f=l[++r]):(s=O(t&&t[r],n,r),f=l[++r],s&&c.v.parentNode.insertBefore(s,c.v));o>i?M(e,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&k(t,o,i)})(l,s,t,o):null!==o?(null!==e.$&&(l.textContent=""),M(l,null,t,o,0,o.length-1)):null!==s&&k(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.$!==i&&(l.data=i)},P=e=>_(e).S,E=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},L=(e,t)=>{if(e.t|=16,!(4&e.t))return E(e,e.O),le((()=>N(e,t)));e.t|=512},N=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>F(n,e,t))),e.u=null),l=F(n,"componentWillLoad")),U(l,(()=>R(e,n,t)))},R=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.S,l=t.t,s=((e,t)=>{let n=p(t),l=Q.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=$.get(e=e.head||e);s||$.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);T(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>W(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},T=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.k||w(null,null),r=(e=>e&&e.g===b)(l)?l:m(null,null,l);t=s.tagName,r.g=null,r.t|=4,n.k=r,r.v=o.v=s.shadowRoot||s,e=s["s-sc"],x(o,r)})(n,l)}catch(e){I(e,n.S)}return null},W=e=>{const t=e.S,n=e.O;F(e.i,"componentDidRender"),64&e.t||(e.t|=64,q(t),e.C(t),n||A()),e.j&&(e.j(),e.j=void 0),512&e.t&&ne((()=>L(e,!1))),e.t&=-517},A=()=>{q(o.documentElement),ne((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"casino-tournament-info"}});return e.dispatchEvent(t),t})(s)))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){I(e)}},U=(e,t)=>e&&e.then?e.then(t):t(),q=e=>e.classList.add("hydrated"),D=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>_(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=_(e),o=s.L.get(t),r=s.t,i=s.i;n=((e,t)=>null==e||d(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.P[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.L.set(t,n),i&&2==(18&r)&&L(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},H=(e,t={})=>{const n=[],l=t.exclude||[],i=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),$=[];let y,d=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],h:t[1],P:t[2],N:t[3]};s.P=t[2],s.N=t[3];const o=s.h,a=class extends HTMLElement{constructor(e){super(e),B(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),d?$.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=_(e),n=t.M,l=()=>{};if(1&t.t)u(e,t,n.N);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(t,t.O=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=K(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(D(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){I(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=p(n);if(!Q.has(t)){const l=()=>{};((e,t,n)=>{let l=Q.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Q.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.O,r=()=>L(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=_(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return _(this).R}};s.T=e[0],l.includes(o)||i.get(o)||(n.push(o),i.define(o,D(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),d=!1,$.length?$.map((e=>e.connectedCallback())):r.jmp((()=>y=setTimeout(A,30)))},V=new WeakMap,_=e=>V.get(e),z=(e,t)=>V.set(t.i=e,t),B=(e,t)=>{const n={t:0,S:e,M:t,L:new Map};return n.R=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],u(e,n,t.N),V.set(e,n)},G=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),J=new Map,K=e=>{const t=e.h.replace(/-/g,"_"),n=e.T,l=J.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(J.set(n,e),e[t])),I)},Q=new Map,X=[],Y=[],Z=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?ne(te):r.raf(te))},ee=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){I(e)}e.length=0},te=()=>{ee(X),ee(Y),(l=X.length>0)&&r.raf(te)},ne=e=>i().then(e),le=Z(Y,!0);export{H as b,P as g,m as h,i as p,z as r}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e0d4e03.js');
|
|
6
6
|
|
|
7
7
|
const getDevice = () => {
|
|
8
8
|
let userAgent = window.navigator.userAgent;
|
|
@@ -6967,18 +6967,6 @@ const CasinoTournamentPrizes = class {
|
|
|
6967
6967
|
this.prizes = [];
|
|
6968
6968
|
this.prizeGroups = [];
|
|
6969
6969
|
this.initialLoad = false;
|
|
6970
|
-
this.setClientStyling = () => {
|
|
6971
|
-
let sheet = document.createElement('style');
|
|
6972
|
-
sheet.innerHTML = this.clientStyling;
|
|
6973
|
-
this.stylingContainer.prepend(sheet);
|
|
6974
|
-
};
|
|
6975
|
-
this.setClientStylingURL = () => {
|
|
6976
|
-
let cssFile = document.createElement('style');
|
|
6977
|
-
setTimeout(() => {
|
|
6978
|
-
cssFile.innerHTML = this.clientStylingUrl;
|
|
6979
|
-
this.stylingContainer.prepend(cssFile);
|
|
6980
|
-
}, 1);
|
|
6981
|
-
};
|
|
6982
6970
|
}
|
|
6983
6971
|
infoCompletedHandler(event) {
|
|
6984
6972
|
if (event.detail) {
|
|
@@ -7001,7 +6989,7 @@ const CasinoTournamentPrizes = class {
|
|
|
7001
6989
|
});
|
|
7002
6990
|
}
|
|
7003
6991
|
getTournamentInfo() {
|
|
7004
|
-
let url = new URL(this.endpoint + `/tournaments/${this.tournamentId}`);
|
|
6992
|
+
let url = new URL(this.endpoint + `/v1/tournaments/${this.tournamentId}`);
|
|
7005
6993
|
let reqHeaders = new Headers();
|
|
7006
6994
|
url.searchParams.append('expand', 'games');
|
|
7007
6995
|
url.searchParams.append('language', this.language);
|
|
@@ -7035,7 +7023,7 @@ const CasinoTournamentPrizes = class {
|
|
|
7035
7023
|
}
|
|
7036
7024
|
}
|
|
7037
7025
|
componentDidRender() {
|
|
7038
|
-
if (!this.limitStylingAppends && this.
|
|
7026
|
+
if (!this.limitStylingAppends && this.host) {
|
|
7039
7027
|
if (this.clientStyling)
|
|
7040
7028
|
this.setClientStyling();
|
|
7041
7029
|
if (this.clientStylingUrl)
|
|
@@ -7043,9 +7031,28 @@ const CasinoTournamentPrizes = class {
|
|
|
7043
7031
|
this.limitStylingAppends = true;
|
|
7044
7032
|
}
|
|
7045
7033
|
}
|
|
7034
|
+
setClientStyling() {
|
|
7035
|
+
const sheet = new CSSStyleSheet();
|
|
7036
|
+
// @ts-ignore
|
|
7037
|
+
sheet.replace(this.clientStyling);
|
|
7038
|
+
// @ts-ignore
|
|
7039
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
7040
|
+
}
|
|
7041
|
+
setClientStylingURL() {
|
|
7042
|
+
let url = new URL(this.clientStylingUrl);
|
|
7043
|
+
fetch(url.href)
|
|
7044
|
+
.then((res) => res.text())
|
|
7045
|
+
.then((data) => {
|
|
7046
|
+
const sheet = new CSSStyleSheet();
|
|
7047
|
+
// @ts-ignore
|
|
7048
|
+
sheet.replace(data);
|
|
7049
|
+
// @ts-ignore
|
|
7050
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
7051
|
+
});
|
|
7052
|
+
}
|
|
7046
7053
|
render() {
|
|
7047
7054
|
{
|
|
7048
|
-
return index.h("div", {
|
|
7055
|
+
return index.h("div", { class: `TournamentPrizes ${this.useGroup ? '' : 'PrizeView'}` }, this.initialLoad && !this.useGroup && index.h("div", { class: "PrizeTitle" }, index.h("svg", { class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "30", height: "27.454", viewBox: "0 0 30 27.454" }, index.h("path", { d: "M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z", transform: "translate(-5.999 -9.76)" })), index.h("div", { class: "Title" }, translate('prizes', this.language))), this.initialLoad && this.useGroup && index.h("div", { class: "GroupPrizeTitle" }, index.h("svg", { class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "19", height: "16", viewBox: "0 0 19 16", fill: "none" }, index.h("g", { "clip-path": "url(#clip0_2459_42455)" }, index.h("path", { d: "M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z", fill: "white" })), index.h("defs", null, index.h("clipPath", { id: "clip0_2459_42455" }, index.h("rect", { width: "18.2857", height: "16", fill: "white", transform: "translate(0.5)" })))), index.h("div", { class: "Title" }, translate('prizes', this.language))), index.h("div", { class: "PrizeGroups" }, this.useGroup == true && this.prizeGroups && this.prizeGroups.map((group, groupIndex) => {
|
|
7049
7056
|
return index.h("div", { class: `PrizeGroup Group${groupIndex + 1}` }, group && group.map((prize, prizeIndex) => {
|
|
7050
7057
|
return index.h("div", { class: "PrizeRow" }, index.h("div", { class: `PrizeItem Rank${prizeIndex + 1}` }, index.h("span", { class: "PrizeRank" }, prize.rank, " ", translate('place', this.language), " "), index.h("span", { class: "PrizeName" }, prize.name)));
|
|
7051
7058
|
}));
|
|
@@ -7054,6 +7061,7 @@ const CasinoTournamentPrizes = class {
|
|
|
7054
7061
|
}), !this.prizes && index.h("p", null, translate('noprizes', this.language))));
|
|
7055
7062
|
}
|
|
7056
7063
|
}
|
|
7064
|
+
get host() { return index.getElement(this); }
|
|
7057
7065
|
};
|
|
7058
7066
|
CasinoTournamentPrizes.style = casinoTournamentPrizesCss;
|
|
7059
7067
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-9e0d4e03.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["casino-tournament-buttons_4.cjs",[[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"],"limitStylingAppends":[32],"startDate":[32],"tournamentInfo":[32]},[[8,"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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}],[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"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}],[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],"
|
|
18
|
+
return index.bootstrapLazy([["casino-tournament-buttons_4.cjs",[[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"],"limitStylingAppends":[32],"startDate":[32],"tournamentInfo":[32]},[[8,"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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}],[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"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}],[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"]]]]]], options);
|
|
19
19
|
});
|
|
@@ -298,12 +298,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
else if (memberName === 'ref') {
|
|
302
|
-
// minifier will clean this up
|
|
303
|
-
if (newValue) {
|
|
304
|
-
newValue(elm);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
301
|
else if ((!isProp ) &&
|
|
308
302
|
memberName[0] === 'o' &&
|
|
309
303
|
memberName[1] === 'n') {
|
|
@@ -477,7 +471,6 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
477
471
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
478
472
|
if ((vnode = vnodes[startIdx])) {
|
|
479
473
|
elm = vnode.$elm$;
|
|
480
|
-
callNodeRefs(vnode);
|
|
481
474
|
// remove the vnode's element from the dom
|
|
482
475
|
elm.remove();
|
|
483
476
|
}
|
|
@@ -605,12 +598,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
605
598
|
elm.data = text;
|
|
606
599
|
}
|
|
607
600
|
};
|
|
608
|
-
const callNodeRefs = (vNode) => {
|
|
609
|
-
{
|
|
610
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
611
|
-
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
601
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
615
602
|
const hostElm = hostRef.$hostElement$;
|
|
616
603
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e0d4e03.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["casino-tournament-buttons_4.cjs",[[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"],"limitStylingAppends":[32],"startDate":[32],"tournamentInfo":[32]},[[8,"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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}],[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"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}],[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],"
|
|
17
|
+
return index.bootstrapLazy([["casino-tournament-buttons_4.cjs",[[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"],"limitStylingAppends":[32],"startDate":[32],"tournamentInfo":[32]},[[8,"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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}],[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"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}],[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"]]]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -74,18 +74,6 @@ const CasinoTournamentPrizes = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
74
74
|
this.prizes = [];
|
|
75
75
|
this.prizeGroups = [];
|
|
76
76
|
this.initialLoad = false;
|
|
77
|
-
this.setClientStyling = () => {
|
|
78
|
-
let sheet = document.createElement('style');
|
|
79
|
-
sheet.innerHTML = this.clientStyling;
|
|
80
|
-
this.stylingContainer.prepend(sheet);
|
|
81
|
-
};
|
|
82
|
-
this.setClientStylingURL = () => {
|
|
83
|
-
let cssFile = document.createElement('style');
|
|
84
|
-
setTimeout(() => {
|
|
85
|
-
cssFile.innerHTML = this.clientStylingUrl;
|
|
86
|
-
this.stylingContainer.prepend(cssFile);
|
|
87
|
-
}, 1);
|
|
88
|
-
};
|
|
89
77
|
}
|
|
90
78
|
infoCompletedHandler(event) {
|
|
91
79
|
if (event.detail) {
|
|
@@ -108,7 +96,7 @@ const CasinoTournamentPrizes = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
108
96
|
});
|
|
109
97
|
}
|
|
110
98
|
getTournamentInfo() {
|
|
111
|
-
let url = new URL(this.endpoint + `/tournaments/${this.tournamentId}`);
|
|
99
|
+
let url = new URL(this.endpoint + `/v1/tournaments/${this.tournamentId}`);
|
|
112
100
|
let reqHeaders = new Headers();
|
|
113
101
|
url.searchParams.append('expand', 'games');
|
|
114
102
|
url.searchParams.append('language', this.language);
|
|
@@ -142,7 +130,7 @@ const CasinoTournamentPrizes = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
142
130
|
}
|
|
143
131
|
}
|
|
144
132
|
componentDidRender() {
|
|
145
|
-
if (!this.limitStylingAppends && this.
|
|
133
|
+
if (!this.limitStylingAppends && this.host) {
|
|
146
134
|
if (this.clientStyling)
|
|
147
135
|
this.setClientStyling();
|
|
148
136
|
if (this.clientStylingUrl)
|
|
@@ -150,9 +138,28 @@ const CasinoTournamentPrizes = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
150
138
|
this.limitStylingAppends = true;
|
|
151
139
|
}
|
|
152
140
|
}
|
|
141
|
+
setClientStyling() {
|
|
142
|
+
const sheet = new CSSStyleSheet();
|
|
143
|
+
// @ts-ignore
|
|
144
|
+
sheet.replace(this.clientStyling);
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
147
|
+
}
|
|
148
|
+
setClientStylingURL() {
|
|
149
|
+
let url = new URL(this.clientStylingUrl);
|
|
150
|
+
fetch(url.href)
|
|
151
|
+
.then((res) => res.text())
|
|
152
|
+
.then((data) => {
|
|
153
|
+
const sheet = new CSSStyleSheet();
|
|
154
|
+
// @ts-ignore
|
|
155
|
+
sheet.replace(data);
|
|
156
|
+
// @ts-ignore
|
|
157
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
158
|
+
});
|
|
159
|
+
}
|
|
153
160
|
render() {
|
|
154
161
|
{
|
|
155
|
-
return h("div", {
|
|
162
|
+
return h("div", { class: `TournamentPrizes ${this.useGroup ? '' : 'PrizeView'}` }, this.initialLoad && !this.useGroup && h("div", { class: "PrizeTitle" }, h("svg", { class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "30", height: "27.454", viewBox: "0 0 30 27.454" }, h("path", { d: "M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z", transform: "translate(-5.999 -9.76)" })), h("div", { class: "Title" }, translate('prizes', this.language))), this.initialLoad && this.useGroup && h("div", { class: "GroupPrizeTitle" }, h("svg", { class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "19", height: "16", viewBox: "0 0 19 16", fill: "none" }, h("g", { "clip-path": "url(#clip0_2459_42455)" }, h("path", { d: "M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z", fill: "white" })), h("defs", null, h("clipPath", { id: "clip0_2459_42455" }, h("rect", { width: "18.2857", height: "16", fill: "white", transform: "translate(0.5)" })))), h("div", { class: "Title" }, translate('prizes', this.language))), h("div", { class: "PrizeGroups" }, this.useGroup == true && this.prizeGroups && this.prizeGroups.map((group, groupIndex) => {
|
|
156
163
|
return h("div", { class: `PrizeGroup Group${groupIndex + 1}` }, group && group.map((prize, prizeIndex) => {
|
|
157
164
|
return h("div", { class: "PrizeRow" }, h("div", { class: `PrizeItem Rank${prizeIndex + 1}` }, h("span", { class: "PrizeRank" }, prize.rank, " ", translate('place', this.language), " "), h("span", { class: "PrizeName" }, prize.name)));
|
|
158
165
|
}));
|
|
@@ -161,6 +168,7 @@ const CasinoTournamentPrizes = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
161
168
|
}), !this.prizes && h("p", null, translate('noprizes', this.language))));
|
|
162
169
|
}
|
|
163
170
|
}
|
|
171
|
+
get host() { return this; }
|
|
164
172
|
static get style() { return casinoTournamentPrizesCss; }
|
|
165
173
|
}, [1, "casino-tournament-prizes", {
|
|
166
174
|
"language": [1],
|
|
@@ -173,7 +181,6 @@ const CasinoTournamentPrizes = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
173
181
|
"clientStyling": [1, "client-styling"],
|
|
174
182
|
"clientStylingUrl": [1, "client-styling-url"],
|
|
175
183
|
"limitStylingAppends": [32],
|
|
176
|
-
"stylingContainer": [32],
|
|
177
184
|
"prizes": [32],
|
|
178
185
|
"prizeGroups": [32],
|
|
179
186
|
"initialLoad": [32]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-e7c6f44e.js';
|
|
2
2
|
|
|
3
3
|
const getDevice = () => {
|
|
4
4
|
let userAgent = window.navigator.userAgent;
|
|
@@ -6963,18 +6963,6 @@ const CasinoTournamentPrizes = class {
|
|
|
6963
6963
|
this.prizes = [];
|
|
6964
6964
|
this.prizeGroups = [];
|
|
6965
6965
|
this.initialLoad = false;
|
|
6966
|
-
this.setClientStyling = () => {
|
|
6967
|
-
let sheet = document.createElement('style');
|
|
6968
|
-
sheet.innerHTML = this.clientStyling;
|
|
6969
|
-
this.stylingContainer.prepend(sheet);
|
|
6970
|
-
};
|
|
6971
|
-
this.setClientStylingURL = () => {
|
|
6972
|
-
let cssFile = document.createElement('style');
|
|
6973
|
-
setTimeout(() => {
|
|
6974
|
-
cssFile.innerHTML = this.clientStylingUrl;
|
|
6975
|
-
this.stylingContainer.prepend(cssFile);
|
|
6976
|
-
}, 1);
|
|
6977
|
-
};
|
|
6978
6966
|
}
|
|
6979
6967
|
infoCompletedHandler(event) {
|
|
6980
6968
|
if (event.detail) {
|
|
@@ -6997,7 +6985,7 @@ const CasinoTournamentPrizes = class {
|
|
|
6997
6985
|
});
|
|
6998
6986
|
}
|
|
6999
6987
|
getTournamentInfo() {
|
|
7000
|
-
let url = new URL(this.endpoint + `/tournaments/${this.tournamentId}`);
|
|
6988
|
+
let url = new URL(this.endpoint + `/v1/tournaments/${this.tournamentId}`);
|
|
7001
6989
|
let reqHeaders = new Headers();
|
|
7002
6990
|
url.searchParams.append('expand', 'games');
|
|
7003
6991
|
url.searchParams.append('language', this.language);
|
|
@@ -7031,7 +7019,7 @@ const CasinoTournamentPrizes = class {
|
|
|
7031
7019
|
}
|
|
7032
7020
|
}
|
|
7033
7021
|
componentDidRender() {
|
|
7034
|
-
if (!this.limitStylingAppends && this.
|
|
7022
|
+
if (!this.limitStylingAppends && this.host) {
|
|
7035
7023
|
if (this.clientStyling)
|
|
7036
7024
|
this.setClientStyling();
|
|
7037
7025
|
if (this.clientStylingUrl)
|
|
@@ -7039,9 +7027,28 @@ const CasinoTournamentPrizes = class {
|
|
|
7039
7027
|
this.limitStylingAppends = true;
|
|
7040
7028
|
}
|
|
7041
7029
|
}
|
|
7030
|
+
setClientStyling() {
|
|
7031
|
+
const sheet = new CSSStyleSheet();
|
|
7032
|
+
// @ts-ignore
|
|
7033
|
+
sheet.replace(this.clientStyling);
|
|
7034
|
+
// @ts-ignore
|
|
7035
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
7036
|
+
}
|
|
7037
|
+
setClientStylingURL() {
|
|
7038
|
+
let url = new URL(this.clientStylingUrl);
|
|
7039
|
+
fetch(url.href)
|
|
7040
|
+
.then((res) => res.text())
|
|
7041
|
+
.then((data) => {
|
|
7042
|
+
const sheet = new CSSStyleSheet();
|
|
7043
|
+
// @ts-ignore
|
|
7044
|
+
sheet.replace(data);
|
|
7045
|
+
// @ts-ignore
|
|
7046
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
7047
|
+
});
|
|
7048
|
+
}
|
|
7042
7049
|
render() {
|
|
7043
7050
|
{
|
|
7044
|
-
return h("div", {
|
|
7051
|
+
return h("div", { class: `TournamentPrizes ${this.useGroup ? '' : 'PrizeView'}` }, this.initialLoad && !this.useGroup && h("div", { class: "PrizeTitle" }, h("svg", { class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "30", height: "27.454", viewBox: "0 0 30 27.454" }, h("path", { d: "M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z", transform: "translate(-5.999 -9.76)" })), h("div", { class: "Title" }, translate('prizes', this.language))), this.initialLoad && this.useGroup && h("div", { class: "GroupPrizeTitle" }, h("svg", { class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "19", height: "16", viewBox: "0 0 19 16", fill: "none" }, h("g", { "clip-path": "url(#clip0_2459_42455)" }, h("path", { d: "M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z", fill: "white" })), h("defs", null, h("clipPath", { id: "clip0_2459_42455" }, h("rect", { width: "18.2857", height: "16", fill: "white", transform: "translate(0.5)" })))), h("div", { class: "Title" }, translate('prizes', this.language))), h("div", { class: "PrizeGroups" }, this.useGroup == true && this.prizeGroups && this.prizeGroups.map((group, groupIndex) => {
|
|
7045
7052
|
return h("div", { class: `PrizeGroup Group${groupIndex + 1}` }, group && group.map((prize, prizeIndex) => {
|
|
7046
7053
|
return h("div", { class: "PrizeRow" }, h("div", { class: `PrizeItem Rank${prizeIndex + 1}` }, h("span", { class: "PrizeRank" }, prize.rank, " ", translate('place', this.language), " "), h("span", { class: "PrizeName" }, prize.name)));
|
|
7047
7054
|
}));
|
|
@@ -7050,6 +7057,7 @@ const CasinoTournamentPrizes = class {
|
|
|
7050
7057
|
}), !this.prizes && h("p", null, translate('noprizes', this.language))));
|
|
7051
7058
|
}
|
|
7052
7059
|
}
|
|
7060
|
+
get host() { return getElement(this); }
|
|
7053
7061
|
};
|
|
7054
7062
|
CasinoTournamentPrizes.style = casinoTournamentPrizesCss;
|
|
7055
7063
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-e7c6f44e.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["casino-tournament-buttons_4",[[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"],"limitStylingAppends":[32],"startDate":[32],"tournamentInfo":[32]},[[8,"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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}],[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"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}],[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],"
|
|
16
|
+
return bootstrapLazy([["casino-tournament-buttons_4",[[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"],"limitStylingAppends":[32],"startDate":[32],"tournamentInfo":[32]},[[8,"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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}],[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"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}],[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"]]]]]], options);
|
|
17
17
|
});
|
|
@@ -276,12 +276,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
else if (memberName === 'ref') {
|
|
280
|
-
// minifier will clean this up
|
|
281
|
-
if (newValue) {
|
|
282
|
-
newValue(elm);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
279
|
else if ((!isProp ) &&
|
|
286
280
|
memberName[0] === 'o' &&
|
|
287
281
|
memberName[1] === 'n') {
|
|
@@ -455,7 +449,6 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
455
449
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
456
450
|
if ((vnode = vnodes[startIdx])) {
|
|
457
451
|
elm = vnode.$elm$;
|
|
458
|
-
callNodeRefs(vnode);
|
|
459
452
|
// remove the vnode's element from the dom
|
|
460
453
|
elm.remove();
|
|
461
454
|
}
|
|
@@ -583,12 +576,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
583
576
|
elm.data = text;
|
|
584
577
|
}
|
|
585
578
|
};
|
|
586
|
-
const callNodeRefs = (vNode) => {
|
|
587
|
-
{
|
|
588
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
589
|
-
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
579
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
593
580
|
const hostElm = hostRef.$hostElement$;
|
|
594
581
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-e7c6f44e.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["casino-tournament-buttons_4",[[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"],"limitStylingAppends":[32],"startDate":[32],"tournamentInfo":[32]},[[8,"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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}],[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"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}],[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],"
|
|
13
|
+
return bootstrapLazy([["casino-tournament-buttons_4",[[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"],"limitStylingAppends":[32],"startDate":[32],"tournamentInfo":[32]},[[8,"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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}],[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"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}],[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"]]]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},i=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),i=a(t,s),c=h(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){J(e)}},f=(e,t)=>8&t?s:e,h=e=>0!=(2&e),$=new WeakMap,p=e=>"sc-"+e.h,y={},d=e=>"object"==(e=typeof e)||"function"===e,m=(e,t,...n)=>{let l=null,s=!1,o=!1,r=[];const i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!d(l))&&(l+=""),s&&o?r[r.length-1].$+=l:r.push(s?w(null,l):l),o=s)};if(i(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const c=w(e,null);return c.p=t,r.length>0&&(c.m=r),c},w=(e,t)=>({t:0,g:e,$:t,v:null,m:null,p:null}),b={},g=(e,t,n,l,o,i)=>{if(n!==l){let c=I(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=S(n),o=S(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("ref"===t)l&&l(e);else if(c||"o"!==t[0]||"n"!==t[1]){const s=d(l);if((c||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&i||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):I(s,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},v=/\s/,S=e=>e?e.split(v):[],j=(e,t,n,l)=>{const s=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.p||y,r=t.p||y;for(l in o)l in r||g(s,l,o[l],void 0,n,t.t);for(l in r)g(s,l,o[l],r[l],n,t.t)},O=(t,l,s)=>{let r,i,c=l.m[s],u=0;if(null!==c.$)r=c.v=o.createTextNode(c.$);else{if(n||(n="svg"===c.g),r=c.v=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.g),n&&"foreignObject"===c.g&&(n=!1),j(null,c,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),c.m)for(u=0;u<c.m.length;++u)i=O(t,c,u),i&&r.appendChild(i);"svg"===c.g?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},M=(e,n,l,s,o,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=O(null,l,o),i&&(s[o].v=i,c.insertBefore(i,n)))},k=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.v,P(l),s.remove())},C=(e,t)=>e.g===t.g,x=(e,t)=>{const l=t.v=e.v,s=e.m,o=t.m,r=t.g,i=t.$;null===i?(n="svg"===r||"foreignObject"!==r&&n,j(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==h?h=l[--a]:C(c,f)?(x(c,f),c=t[++o],f=l[++r]):C(u,h)?(x(u,h),u=t[--i],h=l[--a]):C(c,h)?(x(c,h),e.insertBefore(c.v,u.v.nextSibling),c=t[++o],h=l[--a]):C(u,f)?(x(u,f),e.insertBefore(u.v,c.v),u=t[--i],f=l[++r]):(s=O(t&&t[r],n,r),f=l[++r],s&&c.v.parentNode.insertBefore(s,c.v));o>i?M(e,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&k(t,o,i)})(l,s,t,o):null!==o?(null!==e.$&&(l.textContent=""),M(l,null,t,o,0,o.length-1)):null!==s&&k(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.$!==i&&(l.data=i)},P=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(P)},E=e=>z(e).S,L=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},N=(e,t)=>{if(e.t|=16,!(4&e.t))return L(e,e.O),se((()=>R(e,t)));e.t|=512},R=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>U(n,e,t))),e.u=null),l=U(n,"componentWillLoad")),q(l,(()=>T(e,n,t)))},T=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.S,l=t.t,s=((e,t)=>{let n=p(t),l=X.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=$.get(e=e.head||e);s||$.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);W(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>A(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},W=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.k||w(null,null),r=(e=>e&&e.g===b)(l)?l:m(null,null,l);t=s.tagName,r.g=null,r.t|=4,n.k=r,r.v=o.v=s.shadowRoot||s,e=s["s-sc"],x(o,r)})(n,l)}catch(e){J(e,n.S)}return null},A=e=>{const t=e.S,n=e.O;U(e.i,"componentDidRender"),64&e.t||(e.t|=64,D(t),e.C(t),n||F()),e.j&&(e.j(),e.j=void 0),512&e.t&&le((()=>N(e,!1))),e.t&=-517},F=()=>{D(o.documentElement),le((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"casino-tournament-info"}});return e.dispatchEvent(t),t})(s)))},U=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){J(e)}},q=(e,t)=>e&&e.then?e.then(t):t(),D=e=>e.classList.add("hydrated"),H=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>z(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=z(e),o=s.L.get(t),r=s.t,i=s.i;n=((e,t)=>null==e||d(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.P[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.L.set(t,n),i&&2==(18&r)&&N(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},V=(e,t={})=>{const n=[],l=t.exclude||[],i=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),$=[];let y,d=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],h:t[1],P:t[2],N:t[3]};s.P=t[2],s.N=t[3];const o=s.h,a=class extends HTMLElement{constructor(e){super(e),G(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),d?$.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=z(e),n=t.M,l=()=>{};if(1&t.t)u(e,t,n.N);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){L(t,t.O=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=Q(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(H(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){J(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=p(n);if(!X.has(t)){const l=()=>{};((e,t,n)=>{let l=X.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,X.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.O,r=()=>N(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=z(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return z(this).R}};s.T=e[0],l.includes(o)||i.get(o)||(n.push(o),i.define(o,H(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),d=!1,$.length?$.map((e=>e.connectedCallback())):r.jmp((()=>y=setTimeout(F,30)))},_=new WeakMap,z=e=>_.get(e),B=(e,t)=>_.set(t.i=e,t),G=(e,t)=>{const n={t:0,S:e,M:t,L:new Map};return n.R=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],u(e,n,t.N),_.set(e,n)},I=(e,t)=>t in e,J=(e,t)=>(0,console.error)(e,t),K=new Map,Q=e=>{const t=e.h.replace(/-/g,"_"),n=e.T,l=K.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(K.set(n,e),e[t])),J)},X=new Map,Y=[],Z=[],ee=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?le(ne):r.raf(ne))},te=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){J(e)}e.length=0},ne=()=>{te(Y),te(Z),(l=Y.length>0)&&r.raf(ne)},le=e=>i().then(e),se=ee(Z,!0);export{V as b,E as g,m as h,i as p,B as r}
|