@everymatrix/casino-tournaments-thumbnail-controller 1.94.47 → 1.94.49
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/components/{CasinoTournamentsThumbnail-Civ_C0vk.js → CasinoTournamentsThumbnail-BXdngoBO.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-CZmpFLLF.cjs → CasinoTournamentsThumbnail-BqORF3JF.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-BL75WNzi.js → CasinoTournamentsThumbnail-pjUSMRhz.js} +1 -1
- package/components/{CasinoTournamentsThumbnailController-BR8vFeoL.js → CasinoTournamentsThumbnailController-BcXnTlAn.js} +4 -4
- package/components/{CasinoTournamentsThumbnailController-DEMqBHBV.cjs → CasinoTournamentsThumbnailController-BicnmhUl.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-DfF0ST18.js → CasinoTournamentsThumbnailController-EmilQMI-.js} +4 -4
- package/components/{CasinoTournamentsThumbnailDuration-D4FD_V96.cjs → CasinoTournamentsThumbnailDuration-7btYyZ6J.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-DeZXKho7.js → CasinoTournamentsThumbnailDuration-CQB0nLN_.js} +3 -3
- package/components/{CasinoTournamentsThumbnailDuration-CpApYtOU.js → CasinoTournamentsThumbnailDuration-CjU9CLj7.js} +3 -3
- package/components/{CasinoTournamentsThumbnailGamesSlider-BmKMW-_F.js → CasinoTournamentsThumbnailGamesSlider-BstczX4F.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-DCJrxHV7.js → CasinoTournamentsThumbnailGamesSlider-C9FYH-hp.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-Bcso4CoC.cjs → CasinoTournamentsThumbnailGamesSlider-CWOVoNLx.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-ChghFUJV.js → CasinoTournamentsThumbnailPrizes-2idc5EbK.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CSMbvz-Z.js → CasinoTournamentsThumbnailPrizes-C40cTD-B.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CyeYwLEd.cjs → CasinoTournamentsThumbnailPrizes-CGaF0bm9.cjs} +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
package/components/{CasinoTournamentsThumbnail-Civ_C0vk.js → CasinoTournamentsThumbnail-BXdngoBO.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ee, a as ge, b as be, S as fe, i as he, f as h, s as pe, c as ke, d as ye, n as ae, e as _, g as m, h as A, j as c, k as p, l as R, m as Se, o as Ce, r as ie, p as D, q as $, t as Z, u as T, v as _e, w as Ae, x as te, y as H, z as ve, A as Te, B as we, C as Me, D as Je } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { $ as ee, a as ge, b as be, S as fe, i as he, f as h, s as pe, c as ke, d as ye, n as ae, e as _, g as m, h as A, j as c, k as p, l as R, m as Se, o as Ce, r as ie, p as D, q as $, t as Z, u as T, v as _e, w as Ae, x as te, y as H, z as ve, A as Te, B as we, C as Me, D as Je } from "./CasinoTournamentsThumbnailController-BcXnTlAn.js";
|
|
2
2
|
import "../stencil/ui-skeleton-CCeXOW4G.js";
|
|
3
3
|
import "../stencil/ui-image-DyN7Fe9v.js";
|
|
4
4
|
function Re({ withLocale: i, translations: e }) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnailController-DEMqBHBV.cjs");require("../stencil/ui-skeleton-CImpq9cv.cjs");require("../stencil/ui-image-GKGnzjWQ.cjs");function $({withLocale:a,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function U(a,t){e.addMessages(a,t)}function ee(a){e.$locale.set(a)}const G={en:{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",win:"Winnings",winBetCount:"Winnings and Number of Rounds",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:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",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"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},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",stake:"Turnover",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",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",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ă",stake:"Turnover",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:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görmek için",here:"tıklayın",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Başlangıç saati:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Çevrim",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",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},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",stake:"Turnover",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",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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function te(a){e.append_styles(a,"svelte-52u9sp",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}')}function q(a){let t,i,s;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',i=e.space(),s=e.element("div"),s.innerHTML='<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>',e.attr(t,"class","Skeleton CardImg"),e.attr(s,"class","Details"),e.attr(s,"part","Details")},m(n,l){e.insert(n,t,l),e.insert(n,i,l),e.insert(n,s,l)},d(n){n&&(e.detach(t),e.detach(i),e.detach(s))}}}function K(a){let t,i,s,n,l,o,u,m,g,_,k=a[14]("scoreCriteria")+"",W,E,C,L,R,D=a[14]("minbet")+"",T,I,w,F,y,x,A,v=a[14]("seegames")+"",j,M,S,z=a[14]("here")+"",N,J,O,P,f=a[0]&&V(a),h=a[6]=="true"&&H(a);function B(d,c){return d[3]?ae:ie}let r=B(a),b=r(a),p=a[2]&&Z(a);return{c(){f&&f.c(),t=e.space(),h&&h.c(),i=e.space(),b.c(),s=e.space(),n=e.element("div"),l=e.element("div"),o=e.text(a[1]),u=e.space(),p&&p.c(),m=e.space(),g=e.element("div"),_=e.element("p"),W=e.text(k),E=e.text(`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnailController-BicnmhUl.cjs");require("../stencil/ui-skeleton-CImpq9cv.cjs");require("../stencil/ui-image-GKGnzjWQ.cjs");function $({withLocale:a,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function U(a,t){e.addMessages(a,t)}function ee(a){e.$locale.set(a)}const G={en:{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",win:"Winnings",winBetCount:"Winnings and Number of Rounds",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:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",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"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},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",stake:"Turnover",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",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",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ă",stake:"Turnover",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:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görmek için",here:"tıklayın",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Başlangıç saati:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Çevrim",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",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},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",stake:"Turnover",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",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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function te(a){e.append_styles(a,"svelte-52u9sp",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}')}function q(a){let t,i,s;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',i=e.space(),s=e.element("div"),s.innerHTML='<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>',e.attr(t,"class","Skeleton CardImg"),e.attr(s,"class","Details"),e.attr(s,"part","Details")},m(n,l){e.insert(n,t,l),e.insert(n,i,l),e.insert(n,s,l)},d(n){n&&(e.detach(t),e.detach(i),e.detach(s))}}}function K(a){let t,i,s,n,l,o,u,m,g,_,k=a[14]("scoreCriteria")+"",W,E,C,L,R,D=a[14]("minbet")+"",T,I,w,F,y,x,A,v=a[14]("seegames")+"",j,M,S,z=a[14]("here")+"",N,J,O,P,f=a[0]&&V(a),h=a[6]=="true"&&H(a);function B(d,c){return d[3]?ae:ie}let r=B(a),b=r(a),p=a[2]&&Z(a);return{c(){f&&f.c(),t=e.space(),h&&h.c(),i=e.space(),b.c(),s=e.space(),n=e.element("div"),l=e.element("div"),o=e.text(a[1]),u=e.space(),p&&p.c(),m=e.space(),g=e.element("div"),_=e.element("p"),W=e.text(k),E=e.text(`:
|
|
2
2
|
`),C=e.element("span"),L=e.text(a[12]),R=e.text(`
|
|
3
3
|
(`),T=e.text(D),I=e.space(),w=e.text(a[5]),F=e.text(")"),y=e.space(),x=e.element("div"),A=e.element("p"),j=e.text(v),M=e.space(),S=e.element("a"),N=e.text(z),e.attr(l,"class","Title"),e.attr(l,"part","Title"),e.attr(C,"part","ScoreCriteriaSpan"),e.attr(_,"part","ScoreCriteriaP"),e.attr(g,"class","ScoreCriteria"),e.attr(g,"part","ScoreCriteria"),e.attr(S,"part","GamesAnchor"),e.attr(S,"href",a[7]),e.attr(S,"target",J=a[8]==="true"?"_self":"_blank"),e.attr(A,"part","GamesP"),e.attr(x,"class","Games"),e.attr(x,"part","Games"),e.attr(n,"class","Details"),e.attr(n,"part","Details")},m(d,c){f&&f.m(d,c),e.insert(d,t,c),h&&h.m(d,c),e.insert(d,i,c),b.m(d,c),e.insert(d,s,c),e.insert(d,n,c),e.append(n,l),e.append(l,o),e.append(n,u),p&&p.m(n,null),e.append(n,m),e.append(n,g),e.append(g,_),e.append(_,W),e.append(_,E),e.append(_,C),e.append(C,L),e.append(_,R),e.append(_,T),e.append(_,I),e.append(_,w),e.append(_,F),e.append(n,y),e.append(n,x),e.append(x,A),e.append(A,j),e.append(A,M),e.append(A,S),e.append(S,N),O||(P=[e.listen(l,"click",a[19]),e.action_destroyer(a[17].call(null,C)),e.listen(S,"click",a[18])],O=!0)},p(d,c){d[0]?f?f.p(d,c):(f=V(d),f.c(),f.m(t.parentNode,t)):f&&(f.d(1),f=null),d[6]=="true"?h?h.p(d,c):(h=H(d),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null),r===(r=B(d))&&b?b.p(d,c):(b.d(1),b=r(d),b&&(b.c(),b.m(s.parentNode,s))),c[0]&2&&e.set_data(o,d[1]),d[2]?p?p.p(d,c):(p=Z(d),p.c(),p.m(n,m)):p&&(p.d(1),p=null),c[0]&16384&&k!==(k=d[14]("scoreCriteria")+"")&&e.set_data(W,k),c[0]&4096&&e.set_data(L,d[12]),c[0]&16384&&D!==(D=d[14]("minbet")+"")&&e.set_data(T,D),c[0]&32&&e.set_data(w,d[5]),c[0]&16384&&v!==(v=d[14]("seegames")+"")&&e.set_data(j,v),c[0]&16384&&z!==(z=d[14]("here")+"")&&e.set_data(N,z),c[0]&128&&e.attr(S,"href",d[7]),c[0]&256&&J!==(J=d[8]==="true"?"_self":"_blank")&&e.attr(S,"target",J)},d(d){d&&(e.detach(t),e.detach(i),e.detach(s),e.detach(n)),f&&f.d(d),h&&h.d(d),b.d(d),p&&p.d(),O=!1,e.run_all(P)}}}function V(a){let t,i,s,n,l,o;return{c(){t=e.element("div"),i=e.text(a[11]),e.attr(t,"class",s="Status "+a[13]),e.attr(t,"part",n="Status "+a[13])},m(u,m){e.insert(u,t,m),e.append(t,i),l||(o=e.action_destroyer(a[16].call(null,t)),l=!0)},p(u,m){m[0]&2048&&e.set_data(i,u[11]),m[0]&8192&&s!==(s="Status "+u[13])&&e.attr(t,"class",s),m[0]&8192&&n!==(n="Status "+u[13])&&e.attr(t,"part",n)},d(u){u&&e.detach(t),l=!1,o()}}}function H(a){let t,i=a[4]&&Y(a);return{c(){i&&i.c(),t=e.empty()},m(s,n){i&&i.m(s,n),e.insert(s,t,n)},p(s,n){s[4]?i?i.p(s,n):(i=Y(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(s){s&&e.detach(t),i&&i.d(s)}}}function Y(a){let t,i=a[14]("enrolled")+"",s;return{c(){t=e.element("div"),s=e.text(i),e.attr(t,"class","Enrolled"),e.attr(t,"part","Enrolled")},m(n,l){e.insert(n,t,l),e.append(t,s)},p(n,l){l[0]&16384&&i!==(i=n[14]("enrolled")+"")&&e.set_data(s,i)},d(n){n&&e.detach(t)}}}function ie(a){let t,i,s,n,l,o,u;return{c(){t=e.element("div"),i=e.element("ui-image"),e.src_url_equal(i.src,s="https://i.stack.imgur.com/y9DpT.jpg")||e.set_custom_element_data(i,"src",s),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",n="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(m,g){e.insert(m,t,g),e.append(t,i),o||(u=[e.action_destroyer(a[16].call(null,t)),e.listen(t,"click",a[19])],o=!0)},p(m,g){g[0]&1&&n!==(n="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),g[0]&1&&l!==(l="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(m){m&&e.detach(t),o=!1,e.run_all(u)}}}function ae(a){let t,i,s,n,l,o,u;return{c(){t=e.element("div"),i=e.element("ui-image"),e.set_custom_element_data(i,"class","UIImage"),e.src_url_equal(i.src,s=a[3])||e.set_custom_element_data(i,"src",s),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",n="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(m,g){e.insert(m,t,g),e.append(t,i),o||(u=[e.action_destroyer(a[16].call(null,t)),e.listen(t,"click",a[19])],o=!0)},p(m,g){g[0]&8&&!e.src_url_equal(i.src,s=m[3])&&e.set_custom_element_data(i,"src",s),g[0]&1&&n!==(n="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),g[0]&1&&l!==(l="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(m){m&&e.detach(t),o=!1,e.run_all(u)}}}function Z(a){let t,i,s,n,l;return{c(){t=e.element("div"),i=e.text(a[10]),e.attr(t,"class","Date"),e.attr(t,"part","Date")},m(o,u){e.insert(o,t,u),e.append(t,i),n||(l=e.action_destroyer(s=a[15].call(null,t,a[2])),n=!0)},p(o,u){u[0]&1024&&e.set_data(i,o[10]),s&&e.is_function(s.update)&&u[0]&4&&s.update.call(null,o[2])},d(o){o&&e.detach(t),n=!1,l()}}}function ne(a){let t,i,s,n=a[1]==="undefined"&&q(),l=a[1]!=="undefined"&&K(a);return{c(){t=e.element("div"),n&&n.c(),i=e.space(),l&&l.c(),e.attr(t,"class",s=`Thumbnail ${a[1]==="undefined"?"Loading":""}`),e.attr(t,"part","Thumbnail")},m(o,u){e.insert(o,t,u),n&&n.m(t,null),e.append(t,i),l&&l.m(t,null),a[29](t)},p(o,u){o[1]==="undefined"?n||(n=q(),n.c(),n.m(t,i)):n&&(n.d(1),n=null),o[1]!=="undefined"?l?l.p(o,u):(l=K(o),l.c(),l.m(t,null)):l&&(l.d(1),l=null),u[0]&2&&s!==(s=`Thumbnail ${o[1]==="undefined"?"Loading":""}`)&&e.attr(t,"class",s)},i:e.noop,o:e.noop,d(o){o&&e.detach(t),n&&n.d(),l&&l.d(),a[29](null)}}}function re(a,t,i){let s;e.component_subscribe(a,e.$format,r=>i(14,s=r));let{userid:n=""}=t,{title:l=""}=t,{startdate:o=""}=t,{status:u=""}=t,{tourid:m=""}=t,{thumbnail:g=""}=t,{userenrolled:_=""}=t,{scorecriteria:k=""}=t,{minbetcount:W=""}=t,{showenrolled:E="false"}=t,{detailsevent:C=""}=t,{gameurl:L=""}=t,{lang:R="en"}=t,{keepbrowsercontext:D="false"}=t,{clientstyling:T=""}=t,{clientstylingurl:I=""}=t,{translationurl:w=""}=t,{mbsource:F}=t,y,x,A="",v="",j="",M="";$({withLocale:"en",translations:{}});const S=()=>{fetch(w).then(r=>r.json()).then(r=>{Object.keys(r).forEach(b=>{U(b,r[b])}),o&&h()}).catch(r=>{console.log(r)})};Object.keys(G).forEach(r=>{U(r,G[r])});const z=r=>{r.data&&r.data.type==`TournamentStatus_${m}`&&i(0,u=r.data.status)},N=()=>{const r={month:"long"};let b=new Date(o),p=new Intl.DateTimeFormat("en",r).format(b),d=b.getDate(),c=b.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const X=()=>s(u==="Unstarted"?"startingAt":"startedAt");i(10,A=`${d} `+s(`${p}`)+", "+X()+` ${c}`)},J=()=>{u=="Unstarted"&&(i(11,v=s("scheduled")),i(13,M="StatusUnstarted")),u=="Running"&&(i(11,v=s("ongoing")),i(13,M="StatusRunning")),(u=="Closed"||u=="Closing")&&i(11,v=s("finished")),u=="Closed"&&i(13,M="StatusClosed"),u=="Closing"&&i(13,M="StatusClosing")},O=()=>{if(!k||k.length<=1){i(12,j=k);return}i(12,j=s(k.charAt(0).toLowerCase()+k.slice(1)))},P=()=>{window.postMessage({type:"tournamentGamesClicked",tourid:m},window.location.href)},f=()=>{C&&window.postMessage({type:C,tournamentId:m,showLeaderboard:!0},window.location.href)};e.onMount(()=>(setTimeout(()=>h(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));const h=()=>{ee(R),O(),J(),o&&N()};function B(r){e.binding_callbacks[r?"unshift":"push"](()=>{y=r,i(9,y)})}return a.$$set=r=>{"userid"in r&&i(20,n=r.userid),"title"in r&&i(1,l=r.title),"startdate"in r&&i(2,o=r.startdate),"status"in r&&i(0,u=r.status),"tourid"in r&&i(21,m=r.tourid),"thumbnail"in r&&i(3,g=r.thumbnail),"userenrolled"in r&&i(4,_=r.userenrolled),"scorecriteria"in r&&i(22,k=r.scorecriteria),"minbetcount"in r&&i(5,W=r.minbetcount),"showenrolled"in r&&i(6,E=r.showenrolled),"detailsevent"in r&&i(23,C=r.detailsevent),"gameurl"in r&&i(7,L=r.gameurl),"lang"in r&&i(24,R=r.lang),"keepbrowsercontext"in r&&i(8,D=r.keepbrowsercontext),"clientstyling"in r&&i(25,T=r.clientstyling),"clientstylingurl"in r&&i(26,I=r.clientstylingurl),"translationurl"in r&&i(27,w=r.translationurl),"mbsource"in r&&i(28,F=r.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&33554944&&T&&y&&e.setClientStyling(y,T),a.$$.dirty[0]&67109376&&I&&y&&e.setClientStylingURL(y,I),a.$$.dirty[0]&268435968&&F&&y&&e.setStreamStyling(y,`${F}.Style`,x),a.$$.dirty[0]&134217728&&w&&S(),a.$$.dirty[0]&1&&u&&J(),a.$$.dirty[0]&16777218&&l&&R&&h(),a.$$.dirty[0]&4&&o&&N(),a.$$.dirty[0]&4194304&&k&&O()},[u,l,o,g,_,W,E,L,D,y,A,v,j,M,s,N,J,O,P,f,n,m,k,C,R,T,I,w,F,B]}class Q extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,ne,e.safe_not_equal,{userid:20,title:1,startdate:2,status:0,tourid:21,thumbnail:3,userenrolled:4,scorecriteria:22,minbetcount:5,showenrolled:6,detailsevent:23,gameurl:7,lang:24,keepbrowsercontext:8,clientstyling:25,clientstylingurl:26,translationurl:27,mbsource:28},te,[-1,-1])}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),e.flush()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),e.flush()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),e.flush()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),e.flush()}get tourid(){return this.$$.ctx[21]}set tourid(t){this.$$set({tourid:t}),e.flush()}get thumbnail(){return this.$$.ctx[3]}set thumbnail(t){this.$$set({thumbnail:t}),e.flush()}get userenrolled(){return this.$$.ctx[4]}set userenrolled(t){this.$$set({userenrolled:t}),e.flush()}get scorecriteria(){return this.$$.ctx[22]}set scorecriteria(t){this.$$set({scorecriteria:t}),e.flush()}get minbetcount(){return this.$$.ctx[5]}set minbetcount(t){this.$$set({minbetcount:t}),e.flush()}get showenrolled(){return this.$$.ctx[6]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get detailsevent(){return this.$$.ctx[23]}set detailsevent(t){this.$$set({detailsevent:t}),e.flush()}get gameurl(){return this.$$.ctx[7]}set gameurl(t){this.$$set({gameurl:t}),e.flush()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[8]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[28]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(Q,{userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},detailsevent:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=Q;
|
package/components/{CasinoTournamentsThumbnail-BL75WNzi.js → CasinoTournamentsThumbnail-pjUSMRhz.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ee, a as ge, b as be, S as fe, i as he, s as pe, f as h, c as ke, n as ae, d as _, e as m, g as A, h as c, j as p, k as R, l as ye, o as Se, r as ie, m as D, p as $, q as Z, t as T, u as Ce, v as _e, w as te, x as H, y as Ae, z as ve, A as Te, B as we, C as Me, D as Je } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { $ as ee, a as ge, b as be, S as fe, i as he, s as pe, f as h, c as ke, n as ae, d as _, e as m, g as A, h as c, j as p, k as R, l as ye, o as Se, r as ie, m as D, p as $, q as Z, t as T, u as Ce, v as _e, w as te, x as H, y as Ae, z as ve, A as Te, B as we, C as Me, D as Je } from "./CasinoTournamentsThumbnailController-EmilQMI-.js";
|
|
2
2
|
import "../stencil/ui-skeleton-DGlqF493.js";
|
|
3
3
|
import "../stencil/ui-image-BiEqrTjD.js";
|
|
4
4
|
function Re({ withLocale: i, translations: e }) {
|
|
@@ -4444,7 +4444,7 @@ if (typeof window < "u") {
|
|
|
4444
4444
|
}
|
|
4445
4445
|
};
|
|
4446
4446
|
};
|
|
4447
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
4447
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-BXdngoBO.js").then(({ default: t }) => {
|
|
4448
4448
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
4449
4449
|
});
|
|
4450
4450
|
}
|
|
@@ -4460,7 +4460,7 @@ if (typeof window < "u") {
|
|
|
4460
4460
|
}
|
|
4461
4461
|
};
|
|
4462
4462
|
};
|
|
4463
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
4463
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-CjU9CLj7.js").then(({ default: t }) => {
|
|
4464
4464
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
4465
4465
|
"casino-tournaments-thumbnail-duration",
|
|
4466
4466
|
t.element
|
|
@@ -4479,7 +4479,7 @@ if (typeof window < "u") {
|
|
|
4479
4479
|
}
|
|
4480
4480
|
};
|
|
4481
4481
|
};
|
|
4482
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
4482
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-2idc5EbK.js").then(({ default: t }) => {
|
|
4483
4483
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
4484
4484
|
});
|
|
4485
4485
|
}
|
|
@@ -4495,7 +4495,7 @@ if (typeof window < "u") {
|
|
|
4495
4495
|
}
|
|
4496
4496
|
};
|
|
4497
4497
|
};
|
|
4498
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
4498
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-C9FYH-hp.js").then(
|
|
4499
4499
|
({ default: t }) => {
|
|
4500
4500
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
4501
4501
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -15,4 +15,4 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
15
15
|
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
16
16
|
`):"",this.name="UnsubscriptionError",this.errors=r}});function wt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Je=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=_t(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(b){t={error:b}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var h=this.initialTeardown;if(V(h))try{h()}catch(b){o=b instanceof ht?b.errors:[b]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var c=_t(f),y=c.next();!y.done;y=c.next()){var p=y.value;try{or(p)}catch(b){o=o!=null?o:[],b instanceof ht?o=Et(Et([],vt(o)),vt(b.errors)):o.push(b)}}}catch(b){n={error:b}}finally{try{y&&!y.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}if(o)throw new ht(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)or(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&wt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&wt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),$r=Je.EMPTY;function Vr(e){return e instanceof Je||e&&"closed"in e&&V(e.remove)&&V(e.add)&&V(e.unsubscribe)}function or(e){V(e)?e():e.unsubscribe()}var ui={Promise:void 0},li={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Et([e,t],vt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function hi(e){li.setTimeout(function(){throw e})}function sr(){}function De(e){e()}var Xr=function(e){Te(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Vr(r)&&r.add(n)):n.destination=di,n}return t.create=function(r,n,i){return new xt(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Je),fi=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Re(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Re(n)}else Re(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Re(r)}},e}(),xt=function(e){Te(t,e);function t(r,n,i){var o=e.call(this)||this,s;return V(r)||!r?s={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:s=r,o.destination=new fi(s),o}return t}(Xr);function Re(e){hi(e)}function ci(e){throw e}var di={closed:!0,next:sr,error:ci,complete:sr},mi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function pi(e){return e}function bi(e){return e.length===0?pi:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var ar=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=yi(t)?t:new xt(t,r,n);return De(function(){var s=i,a=s.operator,u=s.source;o.add(a?a.call(o,u):u?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=ur(r),new r(function(i,o){var s=new xt({next:function(a){try{t(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[mi]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return bi(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=ur(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function ur(e){var t;return(t=e!=null?e:ui.Promise)!==null&&t!==void 0?t:Promise}function gi(e){return e&&V(e.next)&&V(e.error)&&V(e.complete)}function yi(e){return e&&e instanceof Xr||gi(e)&&Vr(e)}var _i=zr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Wr=function(e){Te(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new lr(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new _i},t.prototype.next=function(r){var n=this;De(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=_t(n.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;De(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;De(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?$r:(this.currentObservers=null,a.push(r),new Je(function(){n.currentObservers=null,wt(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new ar;return r.source=this,r},t.create=function(r,n){return new lr(r,n)},t}(ar),lr=function(e){Te(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:$r},t}(Wr),Jr={now:function(){return(Jr.delegate||Date).now()},delegate:void 0},vi=function(e){Te(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Jr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;i||(o.push(r),!s&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=o?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var u=i.now(),l=0,h=1;h<o.length&&o[h]<=u;h+=2)l=h;l&&o.splice(0,l+1)}},t}(Wr);const hr=[],fr={},Ei=(e,t=0)=>{if(hr.indexOf(e)==-1){const r=new vi(t);fr[e]=r,hr.push(e)}return fr[e]},oe=[];function wi(e,t){return{subscribe:qe(e,t).subscribe}}function qe(e,t=C){let r;const n=new Set;function i(a){if(Nt(e,a)&&(e=a,r)){const u=!oe.length;for(const l of n)l[1](),oe.push(l,e);if(u){for(let l=0;l<oe.length;l+=2)oe[l][0](oe[l+1]);oe.length=0}}}function o(a){i(a(e))}function s(a,u=C){const l=[a,u];return n.add(l),n.size===1&&(r=t(i,o)||C),a(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function de(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return wi(r,(s,a)=>{let u=!1;const l=[];let h=0,f=C;const c=()=>{if(h)return;f();const p=t(n?l[0]:l,s,a);o?s(p):f=Q(p)?p:C},y=i.map((p,b)=>Nr(p,I=>{l[b]=I,h&=~(1<<b),u&&c()},()=>{h|=1<<b}));return u=!0,c(),function(){ee(y),f(),u=!1}})}function xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Si=function(t){return Ti(t)&&!Bi(t)};function Ti(e){return!!e&&typeof e=="object"}function Bi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Pi(e)}var Hi=typeof Symbol=="function"&&Symbol.for,Ai=Hi?Symbol.for("react.element"):60103;function Pi(e){return e.$$typeof===Ai}function Oi(e){return Array.isArray(e)?[]:{}}function xe(e,t){return t.clone!==!1&&t.isMergeableObject(e)?le(Oi(e),e,t):e}function Ci(e,t,r){return e.concat(t).map(function(n){return xe(n,r)})}function Ii(e,t){if(!t.customMerge)return le;var r=t.customMerge(e);return typeof r=="function"?r:le}function Li(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function cr(e){return Object.keys(e).concat(Li(e))}function qr(e,t){try{return t in e}catch(r){return!1}}function Ni(e,t){return qr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Mi(e,t,r){var n={};return r.isMergeableObject(e)&&cr(e).forEach(function(i){n[i]=xe(e[i],r)}),cr(t).forEach(function(i){Ni(e,i)||(qr(e,i)&&r.isMergeableObject(t[i])?n[i]=Ii(i,r)(e[i],t[i],r):n[i]=xe(t[i],r))}),n}function le(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ci,r.isMergeableObject=r.isMergeableObject||Si,r.cloneUnlessOtherwiseSpecified=xe;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):Mi(e,t,r):xe(t,r)}le.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return le(n,i,r)},{})};var Ri=le,Fi=Ri;const ki=xi(Fi);var St=function(e,t){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},St(e,t)};function Ze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");St(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var U=function(){return U=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},U.apply(this,arguments)};function Di(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function ft(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function ct(e,t){var r=t&&t.cache?t.cache:Xi,n=t&&t.serializer?t.serializer:$i,i=t&&t.strategy?t.strategy:Gi;return i(e,{cache:r,serializer:n})}function Ui(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ji(e,t,r,n){var i=Ui(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function Zr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function Qr(e,t,r,n,i){return r.bind(t,e,n,i)}function Gi(e,t){var r=e.length===1?ji:Zr;return Qr(e,this,r,t.cache.create(),t.serializer)}function zi(e,t){return Qr(e,this,Zr,t.cache.create(),t.serializer)}var $i=function(){return JSON.stringify(arguments)},Vi=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Xi={create:function(){return new Vi}},dt={variadic:zi},$e=function(){return $e=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},$e.apply(this,arguments)};var _;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(_||(_={}));var S;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(S||(S={}));var he;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(he||(he={}));function dr(e){return e.type===S.literal}function Wi(e){return e.type===S.argument}function Yr(e){return e.type===S.number}function Kr(e){return e.type===S.date}function en(e){return e.type===S.time}function tn(e){return e.type===S.select}function rn(e){return e.type===S.plural}function Ji(e){return e.type===S.pound}function nn(e){return e.type===S.tag}function on(e){return!!(e&&typeof e=="object"&&e.type===he.number)}function Tt(e){return!!(e&&typeof e=="object"&&e.type===he.dateTime)}var sn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,qi=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Zi(e){var t={};return e.replace(qi,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var T=function(){return T=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},T.apply(this,arguments)};var Qi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Yi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Qi).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,h=u;l<h.length;l++){var f=h[l];if(f.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Ki(e){return e.replace(/^(.*?)-/,"")}var mr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,an=/^(@+)?(\+|#+)?[rs]?$/g,eo=/(\*)(0+)|(#+)(0+)|(0+)/g,un=/^(0+)$/;function pr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(an,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function ln(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function to(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!un.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function br(e){var t={},r=ln(e);return r||t}function ro(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Ki(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=T(T(T({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return T(T({},u),br(l))},{}));continue;case"engineering":t=T(T(T({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return T(T({},u),br(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(eo,function(u,l,h,f,c,y){if(l)t.minimumIntegerDigits=h.length;else{if(f&&c)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(un.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(mr.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(mr,function(u,l,h,f,c,y){return h==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:c&&y?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+y.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=T(T({},t),pr(o)));continue}if(an.test(i.stem)){t=T(T({},t),pr(i.stem));continue}var s=ln(i.stem);s&&(t=T(T({},t),s));var a=to(i.stem);a&&(t=T(T({},t),a))}return t}var Fe={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function no(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=io(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;s-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function io(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Fe[n||""]||Fe[r||""]||Fe["".concat(r,"-001")]||Fe["001"];return i[0]}var mt,oo=new RegExp("^".concat(sn.source,"*")),so=new RegExp("".concat(sn.source,"*$"));function v(e,t){return{start:e,end:t}}var ao=!!String.prototype.startsWith&&"_a".startsWith("a",1),uo=!!String.fromCodePoint,lo=!!Object.fromEntries,ho=!!String.prototype.codePointAt,fo=!!String.prototype.trimStart,co=!!String.prototype.trimEnd,mo=!!Number.isSafeInteger,po=mo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Bt=!0;try{var bo=fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Bt=((mt=bo.exec("a"))===null||mt===void 0?void 0:mt[0])==="a"}catch(e){Bt=!1}var gr=ao?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ht=uo?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},yr=lo?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],a=o[1];r[s]=a}return r},hn=ho?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},go=fo?function(t){return t.trimStart()}:function(t){return t.replace(oo,"")},yo=co?function(t){return t.trimEnd()}:function(t){return t.replace(so,"")};function fn(e,t){return new RegExp(e,t)}var At;if(Bt){var _r=fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");At=function(t,r){var n;_r.lastIndex=r;var i=_r.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else At=function(t,r){for(var n=[];;){var i=hn(t,r);if(i===void 0||cn(i)||wo(i))break;n.push(i),r+=i>=65536?2:1}return Ht.apply(void 0,n)};var _o=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:S.pound,location:v(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(_.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Pt(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:S.literal,value:"<".concat(i,"/>"),location:v(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Pt(this.char()))return this.error(_.INVALID_TAG,v(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(_.UNMATCHED_CLOSING_TAG,v(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:S.tag,value:i,children:s,location:v(n,this.clonePosition())},err:null}:this.error(_.INVALID_TAG,v(a,this.clonePosition())))}else return this.error(_.UNCLOSED_TAG,v(n,this.clonePosition()))}else return this.error(_.INVALID_TAG,v(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Eo(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=v(n,this.clonePosition());return{val:{type:S.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!vo(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Ht.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Ht(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_.EMPTY_ARGUMENT,v(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(_.MALFORMED_ARGUMENT,v(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:S.argument,value:i,location:v(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(_.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=At(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=v(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(_.EXPECT_ARGUMENT_TYPE,v(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var c=yo(f.val);if(c.length===0)return this.error(_.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));var y=v(h,this.clonePosition());l={style:c,styleLocation:y}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var b=v(i,this.clonePosition());if(l&&gr(l==null?void 0:l.style,"::",0)){var I=go(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(I,l.styleLocation);return f.err?f:{val:{type:S.number,value:n,location:b,style:f.val},err:null}}else{if(I.length===0)return this.error(_.EXPECT_DATE_TIME_SKELETON,b);var J=I;this.locale&&(J=no(I,this.locale));var c={type:he.dateTime,pattern:J,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Zi(J):{}},k=a==="date"?S.date:S.time;return{val:{type:k,value:n,location:b,style:c},err:null}}}return{val:{type:a==="number"?S.number:a==="date"?S.date:S.time,value:n,location:b,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,v(P,$e({},P)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),D=0;if(a!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),j=this.parseIdentifierIfPossible(),D=f.val}var G=this.tryParsePluralOrSelectOptions(t,a,r,j);if(G.err)return G;var p=this.tryParseArgumentClose(i);if(p.err)return p;var Y=v(i,this.clonePosition());return a==="select"?{val:{type:S.select,value:n,options:yr(G.val),location:Y},err:null}:{val:{type:S.plural,value:n,options:yr(G.val),offset:D,pluralType:a==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(_.INVALID_ARGUMENT_TYPE,v(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,v(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Yi(t)}catch(i){return this.error(_.INVALID_NUMBER_SKELETON,r)}return{val:{type:he.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?ro(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,a=[],u=new Set,l=i.value,h=i.location;;){if(l.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR,_.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=v(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?_.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(s=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?_.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var b=this.tryParseArgumentClose(y);if(b.err)return b;a.push([l,{value:p.val,location:v(y,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}return a.length===0?this.error(r==="select"?_.EXPECT_SELECT_ARGUMENT_SELECTOR:_.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(_.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=v(i,this.clonePosition());return o?(s*=n,po(s)?{val:s,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=hn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(gr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&cn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Pt(e){return e>=97&&e<=122||e>=65&&e<=90}function vo(e){return Pt(e)||e===47}function Eo(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function cn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function wo(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ot(e){e.forEach(function(t){if(delete t.location,tn(t)||rn(t))for(var r in t.options)delete t.options[r].location,Ot(t.options[r].value);else Yr(t)&&on(t.style)||(Kr(t)||en(t))&&Tt(t.style)?delete t.style.location:nn(t)&&Ot(t.children)})}function xo(e,t){t===void 0&&(t={}),t=$e({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _o(e,t).parse();if(r.err){var n=SyntaxError(_[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Ot(r.val),r.val}var fe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(fe||(fe={}));var Qe=function(e){Ze(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),vr=function(e){Ze(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),fe.INVALID_VALUE,o)||this}return t}(Qe),So=function(e){Ze(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),fe.INVALID_VALUE,i)||this}return t}(Qe),To=function(e){Ze(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),fe.MISSING_VALUE,n)||this}return t}(Qe),O;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(O||(O={}));function Bo(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==O.literal||r.type!==O.literal?t.push(r):n.value+=r.value,t},[])}function Ho(e){return typeof e=="function"}function Ue(e,t,r,n,i,o,s){if(e.length===1&&dr(e[0]))return[{type:O.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var h=l[u];if(dr(h)){a.push({type:O.literal,value:h.value});continue}if(Ji(h)){typeof o=="number"&&a.push({type:O.literal,value:r.getNumberFormat(t).format(o)});continue}var f=h.value;if(!(i&&f in i))throw new To(f,s);var c=i[f];if(Wi(h)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),a.push({type:typeof c=="string"?O.literal:O.object,value:c});continue}if(Kr(h)){var y=typeof h.style=="string"?n.date[h.style]:Tt(h.style)?h.style.parsedOptions:void 0;a.push({type:O.literal,value:r.getDateTimeFormat(t,y).format(c)});continue}if(en(h)){var y=typeof h.style=="string"?n.time[h.style]:Tt(h.style)?h.style.parsedOptions:n.time.medium;a.push({type:O.literal,value:r.getDateTimeFormat(t,y).format(c)});continue}if(Yr(h)){var y=typeof h.style=="string"?n.number[h.style]:on(h.style)?h.style.parsedOptions:void 0;y&&y.scale&&(c=c*(y.scale||1)),a.push({type:O.literal,value:r.getNumberFormat(t,y).format(c)});continue}if(nn(h)){var p=h.children,b=h.value,I=i[b];if(!Ho(I))throw new So(b,"function",s);var J=Ue(p,t,r,n,i,o),k=I(J.map(function(D){return D.value}));Array.isArray(k)||(k=[k]),a.push.apply(a,k.map(function(D){return{type:typeof D=="string"?O.literal:O.object,value:D}}))}if(tn(h)){var P=h.options[c]||h.options.other;if(!P)throw new vr(h.value,c,Object.keys(h.options),s);a.push.apply(a,Ue(P.value,t,r,n,i));continue}if(rn(h)){var P=h.options["=".concat(c)];if(!P){if(!Intl.PluralRules)throw new Qe(`Intl.PluralRules is not available in this environment.
|
|
17
17
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
-
`,fe.MISSING_INTL_API,s);var j=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));P=h.options[j]||h.options.other}if(!P)throw new vr(h.value,c,Object.keys(h.options),s);a.push.apply(a,Ue(P.value,t,r,n,i,c-(h.offset||0)));continue}}return Bo(a)}function Ao(e,t){return t?U(U(U({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=U(U({},e[n]),t[n]||{}),r},{})):e}function Po(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Ao(e[n],t[n]),r},U({},e)):e}function pt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Oo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ct(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ft([void 0],r,!1)))},{cache:pt(e.number),strategy:dt.variadic}),getDateTimeFormat:ct(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ft([void 0],r,!1)))},{cache:pt(e.dateTime),strategy:dt.variadic}),getPluralRules:ct(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ft([void 0],r,!1)))},{cache:pt(e.pluralRules),strategy:dt.variadic})}}var Co=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(f,c){return!f.length||c.type!==O.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return Ue(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Di(s,["formatters"]);this.ast=e.__parse(t,U(U({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Po(e.formats,n),this.formatters=i&&i.formatters||Oo(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=xo,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Io(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]]}else n=void 0;return n}const q={},Lo=(e,t,r)=>r&&(t in q||(q[t]={}),e in q[t]||(q[t][e]=r),r),dn=(e,t)=>{if(t==null)return;if(t in q&&e in q[t])return q[t][e];const r=Ye(t);for(let n=0;n<r.length;n++){const i=r[n],o=Mo(i,e);if(o)return Lo(e,t,o)}};let Mt;const te=qe({});function No(e){return Mt[e]||null}function mn(e){return e in Mt}function Mo(e,t){if(!mn(e))return null;const r=No(e);return Io(r,t)}function Ro(e){if(e==null)return;const t=Ye(e);for(let r=0;r<t.length;r++){const n=t[r];if(mn(n))return n}}function Rt(e,...t){delete q[e],te.update(r=>(r[e]=ki.all([r[e]||{},...t]),r))}de([te],([e])=>Object.keys(e));te.subscribe(e=>Mt=e);const je={};function Fo(e,t){je[e].delete(t),je[e].size===0&&delete je[e]}function pn(e){return je[e]}function ko(e){return Ye(e).map(t=>{const r=pn(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ct(e){return e==null?!1:Ye(e).some(t=>{var r;return(r=pn(t))==null?void 0:r.size})}function Do(e,t){return Promise.all(t.map(n=>(Fo(e,n),n().then(i=>i.default||i)))).then(n=>Rt(e,...n))}const ve={};function bn(e){if(!Ct(e))return e in ve?ve[e]:Promise.resolve();const t=ko(e);return ve[e]=Promise.all(t.map(([r,n])=>Do(r,n))).then(()=>{if(Ct(e))return bn(e);delete ve[e]}),ve[e]}const Uo={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},jo={fallbackLocale:null,loadingDelay:200,formats:Uo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Go=jo;function ce(){return Go}const bt=qe(!1);var zo=Object.defineProperty,$o=Object.defineProperties,Vo=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable,wr=(e,t,r)=>t in e?zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jo=(e,t)=>{for(var r in t||(t={}))Xo.call(t,r)&&wr(e,r,t[r]);if(Er)for(var r of Er(t))Wo.call(t,r)&&wr(e,r,t[r]);return e},qo=(e,t)=>$o(e,Vo(t));let It;const Ve=qe(null);function xr(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ye(e,t=ce().fallbackLocale){const r=xr(e);return t?[...new Set([...r,...xr(t)])]:r}function re(){return It!=null?It:void 0}Ve.subscribe(e=>{It=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Zo=e=>{if(e&&Ro(e)&&Ct(e)){const{loadingDelay:t}=ce();let r;return typeof window!="undefined"&&re()!=null&&t?r=window.setTimeout(()=>bt.set(!0),t):bt.set(!0),bn(e).then(()=>{Ve.set(e)}).finally(()=>{clearTimeout(r),bt.set(!1)})}return Ve.set(e)},W=qo(Jo({},Ve),{set:Zo}),Ke=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Qo=Object.defineProperty,Xe=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Sr=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ft=(e,t)=>{for(var r in t||(t={}))gn.call(t,r)&&Sr(e,r,t[r]);if(Xe)for(var r of Xe(t))yn.call(t,r)&&Sr(e,r,t[r]);return e},me=(e,t)=>{var r={};for(var n in e)gn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xe)for(var n of Xe(e))t.indexOf(n)<0&&yn.call(e,n)&&(r[n]=e[n]);return r};const Se=(e,t)=>{const{formats:r}=ce();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Yo=Ke(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Se("number",n)),new Intl.NumberFormat(r,i)}),Ko=Ke(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Se("date",n):Object.keys(i).length===0&&(i=Se("date","short")),new Intl.DateTimeFormat(r,i)}),es=Ke(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Se("time",n):Object.keys(i).length===0&&(i=Se("time","short")),new Intl.DateTimeFormat(r,i)}),ts=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return Yo(Ft({locale:r},n))},rs=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return Ko(Ft({locale:r},n))},ns=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return es(Ft({locale:r},n))},is=Ke((e,t=re())=>new Co(e,t,ce().formats,{ignoreTag:ce().ignoreTag})),os=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=re(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=dn(e,u);if(!h)h=(o=(i=(n=(r=ce()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let f=h;try{f=is(h,u).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},ss=(e,t)=>ns(t).format(e),as=(e,t)=>rs(t).format(e),us=(e,t)=>ts(t).format(e),ls=(e,t=re())=>dn(e,t),_n=de([W,te],()=>os);de([W],()=>ss);de([W],()=>as);de([W],()=>us);de([W,te],()=>ls);window.emWidgets={topic:Ei};const Lt=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function hs({withLocale:e,translations:t}){W.subscribe(r=>{r==null&&(te.set(t),W.set(e))})}function Tr(e,t){Rt(e,t)}function fs(e){W.set(e)}const Br={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},ae="__WIDGET_GLOBAL_STYLE_CACHE__";function vn(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function En(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function wn(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=cs(e,t),r;window[ae]||(window[ae]={}),r=ds(e,t);const o=r.unsubscribe.bind(r),s=()=>{if(window[ae][t]){const a=window[ae][t];a.refCount>1?a.refCount=a.refCount-1:delete window[ae][t]}o()};return r.unsubscribe=s,r}function cs(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function ds(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[ae];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),i[t]={sheet:o,refCount:1});const s=n.adoptedStyleSheets||[];s.includes(o)||(n.adoptedStyleSheets=[...s,o])})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-CZmpFLLF.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-D4FD_V96.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CyeYwLEd.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-Bcso4CoC.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function ms(e){Fr(e,"svelte-1oqyfnf",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function ps(e){let t,r,n,i,o,s,a,u=e[25]&&Hr(e);function l(p,b){if(!p[15])return _s;if(p[24]!="Closed"&&p[24]!="Closing")return ys;if(p[2]=="true")return gs}let h=l(e),f=h&&h(e),c=(e[18]||e[20])&&Or(e),y=e[3]=="true"&&Cr(e);return{c(){u&&u.c(),t=R(),r=B("casino-tournaments-thumbnail-duration"),n=R(),i=B("div"),f&&f.c(),o=R(),c&&c.c(),s=R(),y&&y.c(),a=We(),m(r,"clientstyling",e[10]),m(r,"clientstylingurl",e[11]),m(r,"translationurl",e[12]),m(r,"status",e[24]),m(r,"startdate",e[22]),m(r,"lang",e[7]),m(r,"mbsource",e[13]),m(r,"enddate",e[23]),m(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),g(i,"class","TournamentButtons"),g(i,"part","TournamentButtons")},m(p,b){u&&u.m(p,b),w(p,t,b),w(p,r,b),w(p,n,b),w(p,i,b),f&&f.m(i,null),w(p,o,b),c&&c.m(p,b),w(p,s,b),y&&y.m(p,b),w(p,a,b)},p(p,b){p[25]?u?u.p(p,b):(u=Hr(p),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),b[0]&1024&&m(r,"clientstyling",p[10]),b[0]&2048&&m(r,"clientstylingurl",p[11]),b[0]&4096&&m(r,"translationurl",p[12]),b[0]&16777216&&m(r,"status",p[24]),b[0]&4194304&&m(r,"startdate",p[22]),b[0]&128&&m(r,"lang",p[7]),b[0]&8192&&m(r,"mbsource",p[13]),b[0]&8388608&&m(r,"enddate",p[23]),h===(h=l(p))&&f?f.p(p,b):(f&&f.d(1),f=h&&h(p),f&&(f.c(),f.m(i,null))),p[18]||p[20]?c?c.p(p,b):(c=Or(p),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null),p[3]=="true"?y?y.p(p,b):(y=Cr(p),y.c(),y.m(a.parentNode,a)):y&&(y.d(1),y=null)},d(p){p&&(E(t),E(r),E(n),E(i),E(o),E(s),E(a)),u&&u.d(p),f&&f.d(),c&&c.d(p),y&&y.d(p)}}}function bs(e){let t,r,n;return{c(){t=B("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',r=R(),n=B("div"),n.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',g(t,"class","TournamentPrizes"),g(t,"part","TournamentPrizes"),g(n,"class","TournamentButtons"),g(n,"part","TournamentButtons")},m(i,o){w(i,t,o),w(i,r,o),w(i,n,o)},p:C,d(i){i&&(E(t),E(r),E(n))}}}function Hr(e){let t,r,n,i;return{c(){t=B("casino-tournaments-thumbnail-prizes"),m(t,"tourid",e[25]),m(t,"clientstyling",e[10]),m(t,"clientstylingurl",e[11]),m(t,"mbsource",e[13]),m(t,"translationurl",e[12]),m(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(o,s){w(o,t,s),n||(i=Rr(r=e[38].call(null,t,e[25])),n=!0)},p(o,s){s[0]&33554432&&m(t,"tourid",o[25]),s[0]&1024&&m(t,"clientstyling",o[10]),s[0]&2048&&m(t,"clientstylingurl",o[11]),s[0]&8192&&m(t,"mbsource",o[13]),s[0]&4096&&m(t,"translationurl",o[12]),r&&Q(r.update)&&s[0]&33554432&&r.update.call(null,o[25])},d(o){o&&E(t),n=!1,i()}}}function gs(e){let t,r=e[33]("details")+"",n,i,o;return{c(){t=B("button"),n=F(r),g(t,"class","DetailsLargeButton"),g(t,"part","DetailsLargeButton")},m(s,a){w(s,t,a),H(t,n),i||(o=Z(t,"click",function(){Q(e[36].bind(this,e[25]))&&e[36].bind(this,e[25]).apply(this,arguments)}),i=!0)},p(s,a){e=s,a[1]&4&&r!==(r=e[33]("details")+"")&&X(n,r)},d(s){s&&E(t),i=!1,o()}}}function ys(e){let t,r,n=e[2]=="true"&&Ar(e);function i(a,u){return a[27]?Es:vs}let o=i(e),s=o(e);return{c(){n&&n.c(),t=R(),s.c(),r=We()},m(a,u){n&&n.m(a,u),w(a,t,u),s.m(a,u),w(a,r,u)},p(a,u){a[2]=="true"?n?n.p(a,u):(n=Ar(a),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o===(o=i(a))&&s?s.p(a,u):(s.d(1),s=o(a),s&&(s.c(),s.m(r.parentNode,r)))},d(a){a&&(E(t),E(r)),n&&n.d(a),s.d(a)}}}function _s(e){let t,r=e[33]("login")+"",n,i,o,s=e[33]("register")+"",a,u,l;return{c(){t=B("button"),n=F(r),i=R(),o=B("button"),a=F(s),g(t,"class","LoginButton"),g(t,"part","LoginButton"),g(o,"class","RegisterButton"),g(o,"part","RegisterButton")},m(h,f){w(h,t,f),H(t,n),w(h,i,f),w(h,o,f),H(o,a),u||(l=[Z(t,"click",e[34]),Z(o,"click",e[35])],u=!0)},p(h,f){f[1]&4&&r!==(r=h[33]("login")+"")&&X(n,r),f[1]&4&&s!==(s=h[33]("register")+"")&&X(a,s)},d(h){h&&(E(t),E(i),E(o)),u=!1,ee(l)}}}function Ar(e){let t,r=e[33]("details")+"",n,i,o;return{c(){t=B("button"),n=F(r),g(t,"class","DetailsButton"),g(t,"part","DetailsButton")},m(s,a){w(s,t,a),H(t,n),i||(o=Z(t,"click",function(){Q(e[36].bind(this,e[25]))&&e[36].bind(this,e[25]).apply(this,arguments)}),i=!0)},p(s,a){e=s,a[1]&4&&r!==(r=e[33]("details")+"")&&X(n,r)},d(s){s&&E(t),i=!1,o()}}}function vs(e){let t,r,n,i,o;function s(l,h){return l[17]==!0?xs:ws}let a=s(e),u=a(e);return{c(){t=B("button"),u.c(),g(t,"class",r="JoinButton "+(e[6]?"JoinButtonFullSize":"")),g(t,"part",n="JoinButton "+(e[6]?"JoinButtonFullSize":"")),t.disabled=e[18]},m(l,h){w(l,t,h),u.m(t,null),i||(o=Z(t,"click",e[49]),i=!0)},p(l,h){a===(a=s(l))&&u?u.p(l,h):(u.d(1),u=a(l),u&&(u.c(),u.m(t,null))),h[0]&64&&r!==(r="JoinButton "+(l[6]?"JoinButtonFullSize":""))&&g(t,"class",r),h[0]&64&&n!==(n="JoinButton "+(l[6]?"JoinButtonFullSize":""))&&g(t,"part",n),h[0]&262144&&(t.disabled=l[18])},d(l){l&&E(t),u.d(),i=!1,o()}}}function Es(e){let t,r=e[2]=="true"&&Pr(e);return{c(){r&&r.c(),t=We()},m(n,i){r&&r.m(n,i),w(n,t,i)},p(n,i){n[2]=="true"?r?r.p(n,i):(r=Pr(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&E(t),r&&r.d(n)}}}function ws(e){let t,r=e[33]("join")+"",n,i,o,s,a,u,l,h;return{c(){t=B("span"),n=F(r),i=R(),o=K("svg"),s=K("defs"),a=K("style"),u=F(".a{fill:var(--emw--color-white, #FFFFFF);}"),l=K("g"),h=K("path"),g(t,"part","JoinButtonSpan"),g(h,"class","a"),g(h,"part","a JoinButtonSvgA"),g(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),g(h,"transform","translate(26 26) rotate(180)"),g(l,"transform","translate(26 26) rotate(180)"),g(o,"part","JoinButtonSvg"),g(o,"xmlns","http://www.w3.org/2000/svg"),g(o,"width","26"),g(o,"height","26"),g(o,"viewBox","0 0 26 26")},m(f,c){w(f,t,c),H(t,n),w(f,i,c),w(f,o,c),H(o,s),H(s,a),H(a,u),H(o,l),H(l,h)},p(f,c){c[1]&4&&r!==(r=f[33]("join")+"")&&X(n,r)},d(f){f&&(E(t),E(i),E(o))}}}function xs(e){let t,r;return{c(){t=K("svg"),r=K("circle"),g(r,"cx","20"),g(r,"cy","20"),g(r,"r","18"),g(t,"class","spinner"),g(t,"part","spinner")},m(n,i){w(n,t,i),H(t,r)},p:C,d(n){n&&E(t)}}}function Pr(e){let t,r=e[33]("enrolled")+"",n;return{c(){t=B("button"),n=F(r),g(t,"class","EnrolledButton"),g(t,"part","EnrolledButton"),t.disabled=!0},m(i,o){w(i,t,o),H(t,n)},p(i,o){o[1]&4&&r!==(r=i[33]("enrolled")+"")&&X(n,r)},d(i){i&&E(t)}}}function Or(e){let t,r=e[33]("joinerror")+"",n,i,o;return{c(){t=B("span"),n=F(r),i=R(),o=F(e[19]),g(t,"class","ErrorText"),g(t,"part","ErrorText")},m(s,a){w(s,t,a),H(t,n),H(t,i),H(t,o)},p(s,a){a[1]&4&&r!==(r=s[33]("joinerror")+"")&&X(n,r),a[0]&524288&&X(o,s[19])},d(s){s&&E(t)}}}function Cr(e){let t,r,n=e[16]&&Ir();return{c(){n&&n.c(),t=R(),r=B("casino-tournaments-thumbnail-games-slider"),m(r,"clientstyling",e[10]),m(r,"clientstylingurl",e[11]),m(r,"translationurl",e[12]),m(r,"tournamenturl",e[1]),m(r,"mbsource",e[13]),m(r,"lang",e[7]),m(r,"scrollby","2"),m(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(i,o){n&&n.m(i,o),w(i,t,o),w(i,r,o)},p(i,o){i[16]?n||(n=Ir(),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o[0]&1024&&m(r,"clientstyling",i[10]),o[0]&2048&&m(r,"clientstylingurl",i[11]),o[0]&4096&&m(r,"translationurl",i[12]),o[0]&2&&m(r,"tournamenturl",i[1]),o[0]&8192&&m(r,"mbsource",i[13]),o[0]&128&&m(r,"lang",i[7])},d(i){i&&(E(t),E(r)),n&&n.d(i)}}}function Ir(e){let t;return{c(){t=B("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',g(t,"class","TournamentsGamesSlider")},m(r,n){w(r,t,n)},d(r){r&&E(t)}}}function Ss(e){let t,r,n,i,o,s,a;function u(f,c){return f[16]?bs:ps}let l=u(e),h=l(e);return{c(){t=B("div"),r=B("div"),n=B("casino-tournaments-thumbnail"),i=R(),h.c(),m(n,"detailsevent",e[8]),m(n,"userid",e[0]),m(n,"title",e[21]),m(n,"status",e[24]),m(n,"startdate",e[22]),m(n,"tourid",e[25]),m(n,"scorecriteria",e[28]),m(n,"minbetcount",e[29]),m(n,"thumbnail",e[26]),m(n,"showenrolled",e[4]),m(n,"gameurl",e[31]),m(n,"mbsource",e[13]),m(n,"userenrolled",e[27]),m(n,"clientstyling",e[10]),m(n,"clientstylingurl",e[11]),m(n,"translationurl",e[12]),m(n,"lang",e[7]),m(n,"keepbrowsercontext",e[9]),m(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),g(r,"class",o="TournamentCard "+(e[5]?"CardMaxWidth":"")+(e[6]?"CardFullSize":"")+" "+(e[32]?"elementToFadeOut":"elementToFadeIn")),g(r,"part",s="TournamentCard "+(e[5]?"CardMaxWidth":"")+(e[6]?"CardFullSize":"")+" "+(e[32]?"elementToFadeOut":"elementToFadeIn")+" "+(e[32]?"elementToFadeOut":"elementToFadeIn")),g(t,"class",a=`${e[16]?"Loading":""}`)},m(f,c){w(f,t,c),H(t,r),H(r,n),H(r,i),h.m(r,null),e[50](t)},p(f,c){c[0]&256&&m(n,"detailsevent",f[8]),c[0]&1&&m(n,"userid",f[0]),c[0]&2097152&&m(n,"title",f[21]),c[0]&16777216&&m(n,"status",f[24]),c[0]&4194304&&m(n,"startdate",f[22]),c[0]&33554432&&m(n,"tourid",f[25]),c[0]&268435456&&m(n,"scorecriteria",f[28]),c[0]&536870912&&m(n,"minbetcount",f[29]),c[0]&67108864&&m(n,"thumbnail",f[26]),c[0]&16&&m(n,"showenrolled",f[4]),c[1]&1&&m(n,"gameurl",f[31]),c[0]&8192&&m(n,"mbsource",f[13]),c[0]&134217728&&m(n,"userenrolled",f[27]),c[0]&1024&&m(n,"clientstyling",f[10]),c[0]&2048&&m(n,"clientstylingurl",f[11]),c[0]&4096&&m(n,"translationurl",f[12]),c[0]&128&&m(n,"lang",f[7]),c[0]&512&&m(n,"keepbrowsercontext",f[9]),l===(l=u(f))&&h?h.p(f,c):(h.d(1),h=l(f),h&&(h.c(),h.m(r,null))),c[0]&96|c[1]&2&&o!==(o="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&g(r,"class",o),c[0]&96|c[1]&2&&s!==(s="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&g(r,"part",s),c[0]&65536&&a!==(a=`${f[16]?"Loading":""}`)&&g(t,"class",a)},i:C,o:C,d(f){f&&E(t),h.d(),e[50](null)}}}function Ts(e,t,r){let n;Mr(e,_n,d=>r(33,n=d));let{session:i=""}=t,{userid:o=""}=t,{tournamenturl:s=""}=t,{touridx:a}=t,{endpoint:u=""}=t,{showdetails:l=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:c=""}=t,{fullsize:y=""}=t,{lang:p=""}=t,{loginevent:b=""}=t,{registerevent:I=""}=t,{detailsevent:J=""}=t,{loginurl:k=""}=t,{registerurl:P=""}=t,{currency:j=""}=t,{keepbrowsercontext:D="false"}=t,{clientstyling:G=""}=t,{clientstylingurl:Y=""}=t,{translationurl:Be=""}=t,{tournamentinfo:He}=t,{mbsource:Ae}=t,{tournamentid:et}=t,z,Sn,pe=!1,Pe="",be=!0,kt=window.navigator.userAgent,Oe=!1,Ce=!1,Dt="There was an error while trying to join the tournament",tt=!1,rt,Ut,jt,ge,$,Gt,nt,zt,$t,Vt=[],it=[],Xt="#",Ie=!1;hs({withLocale:"en",translations:{}});const Tn=()=>{fetch(Be).then(A=>A.json()).then(A=>{Object.keys(A).forEach(N=>{Tr(N,A[N])})}).catch(A=>{console.log(A)})};Object.keys(Br).forEach(d=>{Tr(d,Br[d])});const Wt=d=>{Bn(d),ot(d),Zt(this,$)},Jt=d=>{if(d.data&&d.data.type=="UserSessionID"&&(r(15,pe=!0),Pe=d.data.session,Qt(u)),d.data.type=="UpdateTournamentView"){let A=d.data.tournamentData;if($&&$!=A.id)return;Wt(A)}if(d.data&&d.data.type==`UpdateSingleTournament_${a}`){let A=d.data.tournamentData,N=a<4?a*100:Math.random()*300+300;r(32,Ie=a==1),setTimeout(()=>{r(32,Ie=!0),r(25,$=A.id),Wt(A)},N),setTimeout(()=>{r(32,Ie=!1)},N+200)}},Bn=d=>{d.state!=ge&&(r(24,ge=d.state),window.postMessage({type:`TournamentStatus_${$}`,status:ge},window.location.href))},Hn=()=>{b&&(window.postMessage({type:b,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),k&&(window.location=k)},An=()=>{I&&(window.postMessage({type:I,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),P&&(window.location=P)},Pn=d=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:d,showLeaderboard:!0},window.location.href)},qt=(d,A)=>Le(this,null,function*(){var Kt;r(18,Ce=!1),r(20,tt=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:d},window.location.href),r(17,Oe=!0);let N=new URL(`${u}/v1/bonus/claim`),ne=new Headers,st={};N.searchParams.append("language",p),N.searchParams.append("platform",Lt(kt)),ne.append("Content-Type","application/json"),ne.append("X-SessionID",Pe),A&&A.length>=1&&(st={language:p,bonusCode:A[0].code,currency:j,type:"tournament"});let ye={method:"PUT",headers:ne,body:JSON.stringify(st)};const Yt=()=>{r(17,Oe=!1),r(27,nt=!0)},at=L=>{r(17,Oe=!1),L&&r(19,Dt=L),r(18,Ce=!0)},_e=yield Le(this,null,function*(){let L;try{L=yield fetch(N,ye),L=yield L.json()}catch(As){at()}return L});if(_e)if(_e.success==!0)Yt();else if(_e.errorMessage.match("VersionMismatchException")){let L;L=yield fetch(`${u}/tournaments/${$}`,{headers:{"X-SessionID":i}}),L=yield L.json(),(Kt=L==null?void 0:L.item)!=null&&Kt.playerEnrolled?Yt():(at(_e.errorMessage),r(20,tt=!0),r(18,Ce=!1))}else at(_e.errorMessage)}),Zt=(d,A)=>{window.postMessage({type:`TournamentPrizes_${A}`,prizes:Vt},window.location.href)},ot=d=>{d&&(r(21,rt=d.nameOrTitle||""),r(22,Ut=d.startTime),r(23,jt=d.endTime),r(24,ge=d.state),r(25,$=d.id),r(26,Gt=d.thumbnail),r(27,nt=d.playerEnrolled==="true"||d.playerEnrolled==!0||!1),r(28,zt=d.scoreCriteria),r(29,$t=d.minBetCount),Vt=d.prizes,r(30,it=d.wallets||[]),r(31,Xt=d.termsUrl||"#"))},Qt=d=>{r(16,be=!0);const A=d?`${d}/v1/tournaments/${et}`:s,N=new URL(A),ne=new Headers;N.searchParams.append("language",p),N.searchParams.append("platform",Lt(kt)),pe&&ne.append("X-SessionID",Pe),fetch(N,{method:"GET",headers:ne}).then(ye=>ye.json()).then(ye=>{ot(ye.item)}).finally(()=>{r(16,be=!1)})},On=()=>{r(15,pe=(i==null?void 0:i.length)>10),pe&&(Pe=i)},Cn=()=>{if(He){ot(He);return}r(16,be=!0),Qt(u)};kr(()=>(r(16,be=!rt),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",Jt,!1),()=>{window.removeEventListener("message",Jt)}));const In=()=>qt($,it);function Ln(d){Ge[d?"unshift":"push"](()=>{z=d,r(14,z)})}return e.$$set=d=>{"session"in d&&r(39,i=d.session),"userid"in d&&r(0,o=d.userid),"tournamenturl"in d&&r(1,s=d.tournamenturl),"touridx"in d&&r(40,a=d.touridx),"endpoint"in d&&r(41,u=d.endpoint),"showdetails"in d&&r(2,l=d.showdetails),"showslider"in d&&r(3,h=d.showslider),"showenrolled"in d&&r(4,f=d.showenrolled),"maxwidth"in d&&r(5,c=d.maxwidth),"fullsize"in d&&r(6,y=d.fullsize),"lang"in d&&r(7,p=d.lang),"loginevent"in d&&r(42,b=d.loginevent),"registerevent"in d&&r(43,I=d.registerevent),"detailsevent"in d&&r(8,J=d.detailsevent),"loginurl"in d&&r(44,k=d.loginurl),"registerurl"in d&&r(45,P=d.registerurl),"currency"in d&&r(46,j=d.currency),"keepbrowsercontext"in d&&r(9,D=d.keepbrowsercontext),"clientstyling"in d&&r(10,G=d.clientstyling),"clientstylingurl"in d&&r(11,Y=d.clientstylingurl),"translationurl"in d&&r(12,Be=d.translationurl),"tournamentinfo"in d&&r(47,He=d.tournamentinfo),"mbsource"in d&&r(13,Ae=d.mbsource),"tournamentid"in d&&r(48,et=d.tournamentid)},e.$$.update=()=>{e.$$.dirty[0]&128&&p&&fs(p),e.$$.dirty[0]&4096&&Be&&Tn(),e.$$.dirty[1]&256&&i&&On(),e.$$.dirty[0]&130&&s&&p&&Cn(),e.$$.dirty[0]&17408&&G&&z&&vn(z,G),e.$$.dirty[0]&18432&&Y&&z&&En(z,Y),e.$$.dirty[0]&24576&&Ae&&z&&wn(z,`${Ae}.Style`,Sn)},[o,s,l,h,f,c,y,p,J,D,G,Y,Be,Ae,z,pe,be,Oe,Ce,Dt,tt,rt,Ut,jt,ge,$,Gt,nt,zt,$t,it,Xt,Ie,n,Hn,An,Pn,qt,Zt,i,a,u,b,I,k,P,j,He,et,In,Ln]}class xn extends Gr{constructor(t){super(),Dr(this,t,Ts,Ss,Nt,{session:39,userid:0,tournamenturl:1,touridx:40,endpoint:41,showdetails:2,showslider:3,showenrolled:4,maxwidth:5,fullsize:6,lang:7,loginevent:42,registerevent:43,detailsevent:8,loginurl:44,registerurl:45,currency:46,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:47,mbsource:13,tournamentid:48},ms,[-1,-1,-1])}get session(){return this.$$.ctx[39]}set session(t){this.$$set({session:t}),x()}get userid(){return this.$$.ctx[0]}set userid(t){this.$$set({userid:t}),x()}get tournamenturl(){return this.$$.ctx[1]}set tournamenturl(t){this.$$set({tournamenturl:t}),x()}get touridx(){return this.$$.ctx[40]}set touridx(t){this.$$set({touridx:t}),x()}get endpoint(){return this.$$.ctx[41]}set endpoint(t){this.$$set({endpoint:t}),x()}get showdetails(){return this.$$.ctx[2]}set showdetails(t){this.$$set({showdetails:t}),x()}get showslider(){return this.$$.ctx[3]}set showslider(t){this.$$set({showslider:t}),x()}get showenrolled(){return this.$$.ctx[4]}set showenrolled(t){this.$$set({showenrolled:t}),x()}get maxwidth(){return this.$$.ctx[5]}set maxwidth(t){this.$$set({maxwidth:t}),x()}get fullsize(){return this.$$.ctx[6]}set fullsize(t){this.$$set({fullsize:t}),x()}get lang(){return this.$$.ctx[7]}set lang(t){this.$$set({lang:t}),x()}get loginevent(){return this.$$.ctx[42]}set loginevent(t){this.$$set({loginevent:t}),x()}get registerevent(){return this.$$.ctx[43]}set registerevent(t){this.$$set({registerevent:t}),x()}get detailsevent(){return this.$$.ctx[8]}set detailsevent(t){this.$$set({detailsevent:t}),x()}get loginurl(){return this.$$.ctx[44]}set loginurl(t){this.$$set({loginurl:t}),x()}get registerurl(){return this.$$.ctx[45]}set registerurl(t){this.$$set({registerurl:t}),x()}get currency(){return this.$$.ctx[46]}set currency(t){this.$$set({currency:t}),x()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),x()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),x()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),x()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),x()}get tournamentinfo(){return this.$$.ctx[47]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),x()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),x()}get tournamentid(){return this.$$.ctx[48]}set tournamentid(t){this.$$set({tournamentid:t}),x()}}jr(xn,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{}},[],[],!0);const Bs=Object.freeze(Object.defineProperty({__proto__:null,default:xn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=te;exports.$format=_n;exports.$locale=W;exports.CasinoTournamentsThumbnailController_ce=Bs;exports.SvelteComponent=Gr;exports.action_destroyer=Rr;exports.addMessages=Rt;exports.add_iframe_resize_listener=Wn;exports.add_render_callback=ze;exports.append=H;exports.append_styles=Fr;exports.attr=g;exports.binding_callbacks=Ge;exports.component_subscribe=Mr;exports.create_custom_element=jr;exports.destroy_each=zn;exports.detach=E;exports.element=B;exports.empty=We;exports.ensure_array_like=ni;exports.flush=x;exports.getDevice=Lt;exports.init=Dr;exports.insert=w;exports.is_function=Q;exports.listen=Z;exports.noop=C;exports.onMount=kr;exports.run_all=ee;exports.safe_not_equal=Nt;exports.setClientStyling=vn;exports.setClientStylingURL=En;exports.setStreamStyling=wn;exports.set_custom_element_data=m;exports.set_data=X;exports.set_style=Vn;exports.space=R;exports.src_url_equal=Dn;exports.text=F;exports.toggle_class=Jn;
|
|
18
|
+
`,fe.MISSING_INTL_API,s);var j=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));P=h.options[j]||h.options.other}if(!P)throw new vr(h.value,c,Object.keys(h.options),s);a.push.apply(a,Ue(P.value,t,r,n,i,c-(h.offset||0)));continue}}return Bo(a)}function Ao(e,t){return t?U(U(U({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=U(U({},e[n]),t[n]||{}),r},{})):e}function Po(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Ao(e[n],t[n]),r},U({},e)):e}function pt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Oo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ct(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ft([void 0],r,!1)))},{cache:pt(e.number),strategy:dt.variadic}),getDateTimeFormat:ct(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ft([void 0],r,!1)))},{cache:pt(e.dateTime),strategy:dt.variadic}),getPluralRules:ct(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ft([void 0],r,!1)))},{cache:pt(e.pluralRules),strategy:dt.variadic})}}var Co=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(f,c){return!f.length||c.type!==O.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return Ue(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Di(s,["formatters"]);this.ast=e.__parse(t,U(U({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Po(e.formats,n),this.formatters=i&&i.formatters||Oo(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=xo,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Io(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]]}else n=void 0;return n}const q={},Lo=(e,t,r)=>r&&(t in q||(q[t]={}),e in q[t]||(q[t][e]=r),r),dn=(e,t)=>{if(t==null)return;if(t in q&&e in q[t])return q[t][e];const r=Ye(t);for(let n=0;n<r.length;n++){const i=r[n],o=Mo(i,e);if(o)return Lo(e,t,o)}};let Mt;const te=qe({});function No(e){return Mt[e]||null}function mn(e){return e in Mt}function Mo(e,t){if(!mn(e))return null;const r=No(e);return Io(r,t)}function Ro(e){if(e==null)return;const t=Ye(e);for(let r=0;r<t.length;r++){const n=t[r];if(mn(n))return n}}function Rt(e,...t){delete q[e],te.update(r=>(r[e]=ki.all([r[e]||{},...t]),r))}de([te],([e])=>Object.keys(e));te.subscribe(e=>Mt=e);const je={};function Fo(e,t){je[e].delete(t),je[e].size===0&&delete je[e]}function pn(e){return je[e]}function ko(e){return Ye(e).map(t=>{const r=pn(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ct(e){return e==null?!1:Ye(e).some(t=>{var r;return(r=pn(t))==null?void 0:r.size})}function Do(e,t){return Promise.all(t.map(n=>(Fo(e,n),n().then(i=>i.default||i)))).then(n=>Rt(e,...n))}const ve={};function bn(e){if(!Ct(e))return e in ve?ve[e]:Promise.resolve();const t=ko(e);return ve[e]=Promise.all(t.map(([r,n])=>Do(r,n))).then(()=>{if(Ct(e))return bn(e);delete ve[e]}),ve[e]}const Uo={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},jo={fallbackLocale:null,loadingDelay:200,formats:Uo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Go=jo;function ce(){return Go}const bt=qe(!1);var zo=Object.defineProperty,$o=Object.defineProperties,Vo=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable,wr=(e,t,r)=>t in e?zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jo=(e,t)=>{for(var r in t||(t={}))Xo.call(t,r)&&wr(e,r,t[r]);if(Er)for(var r of Er(t))Wo.call(t,r)&&wr(e,r,t[r]);return e},qo=(e,t)=>$o(e,Vo(t));let It;const Ve=qe(null);function xr(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ye(e,t=ce().fallbackLocale){const r=xr(e);return t?[...new Set([...r,...xr(t)])]:r}function re(){return It!=null?It:void 0}Ve.subscribe(e=>{It=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Zo=e=>{if(e&&Ro(e)&&Ct(e)){const{loadingDelay:t}=ce();let r;return typeof window!="undefined"&&re()!=null&&t?r=window.setTimeout(()=>bt.set(!0),t):bt.set(!0),bn(e).then(()=>{Ve.set(e)}).finally(()=>{clearTimeout(r),bt.set(!1)})}return Ve.set(e)},W=qo(Jo({},Ve),{set:Zo}),Ke=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Qo=Object.defineProperty,Xe=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Sr=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ft=(e,t)=>{for(var r in t||(t={}))gn.call(t,r)&&Sr(e,r,t[r]);if(Xe)for(var r of Xe(t))yn.call(t,r)&&Sr(e,r,t[r]);return e},me=(e,t)=>{var r={};for(var n in e)gn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xe)for(var n of Xe(e))t.indexOf(n)<0&&yn.call(e,n)&&(r[n]=e[n]);return r};const Se=(e,t)=>{const{formats:r}=ce();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Yo=Ke(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Se("number",n)),new Intl.NumberFormat(r,i)}),Ko=Ke(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Se("date",n):Object.keys(i).length===0&&(i=Se("date","short")),new Intl.DateTimeFormat(r,i)}),es=Ke(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Se("time",n):Object.keys(i).length===0&&(i=Se("time","short")),new Intl.DateTimeFormat(r,i)}),ts=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return Yo(Ft({locale:r},n))},rs=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return Ko(Ft({locale:r},n))},ns=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return es(Ft({locale:r},n))},is=Ke((e,t=re())=>new Co(e,t,ce().formats,{ignoreTag:ce().ignoreTag})),os=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=re(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=dn(e,u);if(!h)h=(o=(i=(n=(r=ce()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let f=h;try{f=is(h,u).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},ss=(e,t)=>ns(t).format(e),as=(e,t)=>rs(t).format(e),us=(e,t)=>ts(t).format(e),ls=(e,t=re())=>dn(e,t),_n=de([W,te],()=>os);de([W],()=>ss);de([W],()=>as);de([W],()=>us);de([W,te],()=>ls);window.emWidgets={topic:Ei};const Lt=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function hs({withLocale:e,translations:t}){W.subscribe(r=>{r==null&&(te.set(t),W.set(e))})}function Tr(e,t){Rt(e,t)}function fs(e){W.set(e)}const Br={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},ae="__WIDGET_GLOBAL_STYLE_CACHE__";function vn(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function En(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function wn(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=cs(e,t),r;window[ae]||(window[ae]={}),r=ds(e,t);const o=r.unsubscribe.bind(r),s=()=>{if(window[ae][t]){const a=window[ae][t];a.refCount>1?a.refCount=a.refCount-1:delete window[ae][t]}o()};return r.unsubscribe=s,r}function cs(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function ds(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[ae];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),i[t]={sheet:o,refCount:1});const s=n.adoptedStyleSheets||[];s.includes(o)||(n.adoptedStyleSheets=[...s,o])})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-BqORF3JF.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-7btYyZ6J.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CGaF0bm9.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-CWOVoNLx.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function ms(e){Fr(e,"svelte-1oqyfnf",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function ps(e){let t,r,n,i,o,s,a,u=e[25]&&Hr(e);function l(p,b){if(!p[15])return _s;if(p[24]!="Closed"&&p[24]!="Closing")return ys;if(p[2]=="true")return gs}let h=l(e),f=h&&h(e),c=(e[18]||e[20])&&Or(e),y=e[3]=="true"&&Cr(e);return{c(){u&&u.c(),t=R(),r=B("casino-tournaments-thumbnail-duration"),n=R(),i=B("div"),f&&f.c(),o=R(),c&&c.c(),s=R(),y&&y.c(),a=We(),m(r,"clientstyling",e[10]),m(r,"clientstylingurl",e[11]),m(r,"translationurl",e[12]),m(r,"status",e[24]),m(r,"startdate",e[22]),m(r,"lang",e[7]),m(r,"mbsource",e[13]),m(r,"enddate",e[23]),m(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),g(i,"class","TournamentButtons"),g(i,"part","TournamentButtons")},m(p,b){u&&u.m(p,b),w(p,t,b),w(p,r,b),w(p,n,b),w(p,i,b),f&&f.m(i,null),w(p,o,b),c&&c.m(p,b),w(p,s,b),y&&y.m(p,b),w(p,a,b)},p(p,b){p[25]?u?u.p(p,b):(u=Hr(p),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),b[0]&1024&&m(r,"clientstyling",p[10]),b[0]&2048&&m(r,"clientstylingurl",p[11]),b[0]&4096&&m(r,"translationurl",p[12]),b[0]&16777216&&m(r,"status",p[24]),b[0]&4194304&&m(r,"startdate",p[22]),b[0]&128&&m(r,"lang",p[7]),b[0]&8192&&m(r,"mbsource",p[13]),b[0]&8388608&&m(r,"enddate",p[23]),h===(h=l(p))&&f?f.p(p,b):(f&&f.d(1),f=h&&h(p),f&&(f.c(),f.m(i,null))),p[18]||p[20]?c?c.p(p,b):(c=Or(p),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null),p[3]=="true"?y?y.p(p,b):(y=Cr(p),y.c(),y.m(a.parentNode,a)):y&&(y.d(1),y=null)},d(p){p&&(E(t),E(r),E(n),E(i),E(o),E(s),E(a)),u&&u.d(p),f&&f.d(),c&&c.d(p),y&&y.d(p)}}}function bs(e){let t,r,n;return{c(){t=B("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',r=R(),n=B("div"),n.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',g(t,"class","TournamentPrizes"),g(t,"part","TournamentPrizes"),g(n,"class","TournamentButtons"),g(n,"part","TournamentButtons")},m(i,o){w(i,t,o),w(i,r,o),w(i,n,o)},p:C,d(i){i&&(E(t),E(r),E(n))}}}function Hr(e){let t,r,n,i;return{c(){t=B("casino-tournaments-thumbnail-prizes"),m(t,"tourid",e[25]),m(t,"clientstyling",e[10]),m(t,"clientstylingurl",e[11]),m(t,"mbsource",e[13]),m(t,"translationurl",e[12]),m(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(o,s){w(o,t,s),n||(i=Rr(r=e[38].call(null,t,e[25])),n=!0)},p(o,s){s[0]&33554432&&m(t,"tourid",o[25]),s[0]&1024&&m(t,"clientstyling",o[10]),s[0]&2048&&m(t,"clientstylingurl",o[11]),s[0]&8192&&m(t,"mbsource",o[13]),s[0]&4096&&m(t,"translationurl",o[12]),r&&Q(r.update)&&s[0]&33554432&&r.update.call(null,o[25])},d(o){o&&E(t),n=!1,i()}}}function gs(e){let t,r=e[33]("details")+"",n,i,o;return{c(){t=B("button"),n=F(r),g(t,"class","DetailsLargeButton"),g(t,"part","DetailsLargeButton")},m(s,a){w(s,t,a),H(t,n),i||(o=Z(t,"click",function(){Q(e[36].bind(this,e[25]))&&e[36].bind(this,e[25]).apply(this,arguments)}),i=!0)},p(s,a){e=s,a[1]&4&&r!==(r=e[33]("details")+"")&&X(n,r)},d(s){s&&E(t),i=!1,o()}}}function ys(e){let t,r,n=e[2]=="true"&&Ar(e);function i(a,u){return a[27]?Es:vs}let o=i(e),s=o(e);return{c(){n&&n.c(),t=R(),s.c(),r=We()},m(a,u){n&&n.m(a,u),w(a,t,u),s.m(a,u),w(a,r,u)},p(a,u){a[2]=="true"?n?n.p(a,u):(n=Ar(a),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o===(o=i(a))&&s?s.p(a,u):(s.d(1),s=o(a),s&&(s.c(),s.m(r.parentNode,r)))},d(a){a&&(E(t),E(r)),n&&n.d(a),s.d(a)}}}function _s(e){let t,r=e[33]("login")+"",n,i,o,s=e[33]("register")+"",a,u,l;return{c(){t=B("button"),n=F(r),i=R(),o=B("button"),a=F(s),g(t,"class","LoginButton"),g(t,"part","LoginButton"),g(o,"class","RegisterButton"),g(o,"part","RegisterButton")},m(h,f){w(h,t,f),H(t,n),w(h,i,f),w(h,o,f),H(o,a),u||(l=[Z(t,"click",e[34]),Z(o,"click",e[35])],u=!0)},p(h,f){f[1]&4&&r!==(r=h[33]("login")+"")&&X(n,r),f[1]&4&&s!==(s=h[33]("register")+"")&&X(a,s)},d(h){h&&(E(t),E(i),E(o)),u=!1,ee(l)}}}function Ar(e){let t,r=e[33]("details")+"",n,i,o;return{c(){t=B("button"),n=F(r),g(t,"class","DetailsButton"),g(t,"part","DetailsButton")},m(s,a){w(s,t,a),H(t,n),i||(o=Z(t,"click",function(){Q(e[36].bind(this,e[25]))&&e[36].bind(this,e[25]).apply(this,arguments)}),i=!0)},p(s,a){e=s,a[1]&4&&r!==(r=e[33]("details")+"")&&X(n,r)},d(s){s&&E(t),i=!1,o()}}}function vs(e){let t,r,n,i,o;function s(l,h){return l[17]==!0?xs:ws}let a=s(e),u=a(e);return{c(){t=B("button"),u.c(),g(t,"class",r="JoinButton "+(e[6]?"JoinButtonFullSize":"")),g(t,"part",n="JoinButton "+(e[6]?"JoinButtonFullSize":"")),t.disabled=e[18]},m(l,h){w(l,t,h),u.m(t,null),i||(o=Z(t,"click",e[49]),i=!0)},p(l,h){a===(a=s(l))&&u?u.p(l,h):(u.d(1),u=a(l),u&&(u.c(),u.m(t,null))),h[0]&64&&r!==(r="JoinButton "+(l[6]?"JoinButtonFullSize":""))&&g(t,"class",r),h[0]&64&&n!==(n="JoinButton "+(l[6]?"JoinButtonFullSize":""))&&g(t,"part",n),h[0]&262144&&(t.disabled=l[18])},d(l){l&&E(t),u.d(),i=!1,o()}}}function Es(e){let t,r=e[2]=="true"&&Pr(e);return{c(){r&&r.c(),t=We()},m(n,i){r&&r.m(n,i),w(n,t,i)},p(n,i){n[2]=="true"?r?r.p(n,i):(r=Pr(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&E(t),r&&r.d(n)}}}function ws(e){let t,r=e[33]("join")+"",n,i,o,s,a,u,l,h;return{c(){t=B("span"),n=F(r),i=R(),o=K("svg"),s=K("defs"),a=K("style"),u=F(".a{fill:var(--emw--color-white, #FFFFFF);}"),l=K("g"),h=K("path"),g(t,"part","JoinButtonSpan"),g(h,"class","a"),g(h,"part","a JoinButtonSvgA"),g(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),g(h,"transform","translate(26 26) rotate(180)"),g(l,"transform","translate(26 26) rotate(180)"),g(o,"part","JoinButtonSvg"),g(o,"xmlns","http://www.w3.org/2000/svg"),g(o,"width","26"),g(o,"height","26"),g(o,"viewBox","0 0 26 26")},m(f,c){w(f,t,c),H(t,n),w(f,i,c),w(f,o,c),H(o,s),H(s,a),H(a,u),H(o,l),H(l,h)},p(f,c){c[1]&4&&r!==(r=f[33]("join")+"")&&X(n,r)},d(f){f&&(E(t),E(i),E(o))}}}function xs(e){let t,r;return{c(){t=K("svg"),r=K("circle"),g(r,"cx","20"),g(r,"cy","20"),g(r,"r","18"),g(t,"class","spinner"),g(t,"part","spinner")},m(n,i){w(n,t,i),H(t,r)},p:C,d(n){n&&E(t)}}}function Pr(e){let t,r=e[33]("enrolled")+"",n;return{c(){t=B("button"),n=F(r),g(t,"class","EnrolledButton"),g(t,"part","EnrolledButton"),t.disabled=!0},m(i,o){w(i,t,o),H(t,n)},p(i,o){o[1]&4&&r!==(r=i[33]("enrolled")+"")&&X(n,r)},d(i){i&&E(t)}}}function Or(e){let t,r=e[33]("joinerror")+"",n,i,o;return{c(){t=B("span"),n=F(r),i=R(),o=F(e[19]),g(t,"class","ErrorText"),g(t,"part","ErrorText")},m(s,a){w(s,t,a),H(t,n),H(t,i),H(t,o)},p(s,a){a[1]&4&&r!==(r=s[33]("joinerror")+"")&&X(n,r),a[0]&524288&&X(o,s[19])},d(s){s&&E(t)}}}function Cr(e){let t,r,n=e[16]&&Ir();return{c(){n&&n.c(),t=R(),r=B("casino-tournaments-thumbnail-games-slider"),m(r,"clientstyling",e[10]),m(r,"clientstylingurl",e[11]),m(r,"translationurl",e[12]),m(r,"tournamenturl",e[1]),m(r,"mbsource",e[13]),m(r,"lang",e[7]),m(r,"scrollby","2"),m(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(i,o){n&&n.m(i,o),w(i,t,o),w(i,r,o)},p(i,o){i[16]?n||(n=Ir(),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o[0]&1024&&m(r,"clientstyling",i[10]),o[0]&2048&&m(r,"clientstylingurl",i[11]),o[0]&4096&&m(r,"translationurl",i[12]),o[0]&2&&m(r,"tournamenturl",i[1]),o[0]&8192&&m(r,"mbsource",i[13]),o[0]&128&&m(r,"lang",i[7])},d(i){i&&(E(t),E(r)),n&&n.d(i)}}}function Ir(e){let t;return{c(){t=B("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',g(t,"class","TournamentsGamesSlider")},m(r,n){w(r,t,n)},d(r){r&&E(t)}}}function Ss(e){let t,r,n,i,o,s,a;function u(f,c){return f[16]?bs:ps}let l=u(e),h=l(e);return{c(){t=B("div"),r=B("div"),n=B("casino-tournaments-thumbnail"),i=R(),h.c(),m(n,"detailsevent",e[8]),m(n,"userid",e[0]),m(n,"title",e[21]),m(n,"status",e[24]),m(n,"startdate",e[22]),m(n,"tourid",e[25]),m(n,"scorecriteria",e[28]),m(n,"minbetcount",e[29]),m(n,"thumbnail",e[26]),m(n,"showenrolled",e[4]),m(n,"gameurl",e[31]),m(n,"mbsource",e[13]),m(n,"userenrolled",e[27]),m(n,"clientstyling",e[10]),m(n,"clientstylingurl",e[11]),m(n,"translationurl",e[12]),m(n,"lang",e[7]),m(n,"keepbrowsercontext",e[9]),m(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),g(r,"class",o="TournamentCard "+(e[5]?"CardMaxWidth":"")+(e[6]?"CardFullSize":"")+" "+(e[32]?"elementToFadeOut":"elementToFadeIn")),g(r,"part",s="TournamentCard "+(e[5]?"CardMaxWidth":"")+(e[6]?"CardFullSize":"")+" "+(e[32]?"elementToFadeOut":"elementToFadeIn")+" "+(e[32]?"elementToFadeOut":"elementToFadeIn")),g(t,"class",a=`${e[16]?"Loading":""}`)},m(f,c){w(f,t,c),H(t,r),H(r,n),H(r,i),h.m(r,null),e[50](t)},p(f,c){c[0]&256&&m(n,"detailsevent",f[8]),c[0]&1&&m(n,"userid",f[0]),c[0]&2097152&&m(n,"title",f[21]),c[0]&16777216&&m(n,"status",f[24]),c[0]&4194304&&m(n,"startdate",f[22]),c[0]&33554432&&m(n,"tourid",f[25]),c[0]&268435456&&m(n,"scorecriteria",f[28]),c[0]&536870912&&m(n,"minbetcount",f[29]),c[0]&67108864&&m(n,"thumbnail",f[26]),c[0]&16&&m(n,"showenrolled",f[4]),c[1]&1&&m(n,"gameurl",f[31]),c[0]&8192&&m(n,"mbsource",f[13]),c[0]&134217728&&m(n,"userenrolled",f[27]),c[0]&1024&&m(n,"clientstyling",f[10]),c[0]&2048&&m(n,"clientstylingurl",f[11]),c[0]&4096&&m(n,"translationurl",f[12]),c[0]&128&&m(n,"lang",f[7]),c[0]&512&&m(n,"keepbrowsercontext",f[9]),l===(l=u(f))&&h?h.p(f,c):(h.d(1),h=l(f),h&&(h.c(),h.m(r,null))),c[0]&96|c[1]&2&&o!==(o="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&g(r,"class",o),c[0]&96|c[1]&2&&s!==(s="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&g(r,"part",s),c[0]&65536&&a!==(a=`${f[16]?"Loading":""}`)&&g(t,"class",a)},i:C,o:C,d(f){f&&E(t),h.d(),e[50](null)}}}function Ts(e,t,r){let n;Mr(e,_n,d=>r(33,n=d));let{session:i=""}=t,{userid:o=""}=t,{tournamenturl:s=""}=t,{touridx:a}=t,{endpoint:u=""}=t,{showdetails:l=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:c=""}=t,{fullsize:y=""}=t,{lang:p=""}=t,{loginevent:b=""}=t,{registerevent:I=""}=t,{detailsevent:J=""}=t,{loginurl:k=""}=t,{registerurl:P=""}=t,{currency:j=""}=t,{keepbrowsercontext:D="false"}=t,{clientstyling:G=""}=t,{clientstylingurl:Y=""}=t,{translationurl:Be=""}=t,{tournamentinfo:He}=t,{mbsource:Ae}=t,{tournamentid:et}=t,z,Sn,pe=!1,Pe="",be=!0,kt=window.navigator.userAgent,Oe=!1,Ce=!1,Dt="There was an error while trying to join the tournament",tt=!1,rt,Ut,jt,ge,$,Gt,nt,zt,$t,Vt=[],it=[],Xt="#",Ie=!1;hs({withLocale:"en",translations:{}});const Tn=()=>{fetch(Be).then(A=>A.json()).then(A=>{Object.keys(A).forEach(N=>{Tr(N,A[N])})}).catch(A=>{console.log(A)})};Object.keys(Br).forEach(d=>{Tr(d,Br[d])});const Wt=d=>{Bn(d),ot(d),Zt(this,$)},Jt=d=>{if(d.data&&d.data.type=="UserSessionID"&&(r(15,pe=!0),Pe=d.data.session,Qt(u)),d.data.type=="UpdateTournamentView"){let A=d.data.tournamentData;if($&&$!=A.id)return;Wt(A)}if(d.data&&d.data.type==`UpdateSingleTournament_${a}`){let A=d.data.tournamentData,N=a<4?a*100:Math.random()*300+300;r(32,Ie=a==1),setTimeout(()=>{r(32,Ie=!0),r(25,$=A.id),Wt(A)},N),setTimeout(()=>{r(32,Ie=!1)},N+200)}},Bn=d=>{d.state!=ge&&(r(24,ge=d.state),window.postMessage({type:`TournamentStatus_${$}`,status:ge},window.location.href))},Hn=()=>{b&&(window.postMessage({type:b,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),k&&(window.location=k)},An=()=>{I&&(window.postMessage({type:I,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),P&&(window.location=P)},Pn=d=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:d,showLeaderboard:!0},window.location.href)},qt=(d,A)=>Le(this,null,function*(){var Kt;r(18,Ce=!1),r(20,tt=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:d},window.location.href),r(17,Oe=!0);let N=new URL(`${u}/v1/bonus/claim`),ne=new Headers,st={};N.searchParams.append("language",p),N.searchParams.append("platform",Lt(kt)),ne.append("Content-Type","application/json"),ne.append("X-SessionID",Pe),A&&A.length>=1&&(st={language:p,bonusCode:A[0].code,currency:j,type:"tournament"});let ye={method:"PUT",headers:ne,body:JSON.stringify(st)};const Yt=()=>{r(17,Oe=!1),r(27,nt=!0)},at=L=>{r(17,Oe=!1),L&&r(19,Dt=L),r(18,Ce=!0)},_e=yield Le(this,null,function*(){let L;try{L=yield fetch(N,ye),L=yield L.json()}catch(As){at()}return L});if(_e)if(_e.success==!0)Yt();else if(_e.errorMessage.match("VersionMismatchException")){let L;L=yield fetch(`${u}/tournaments/${$}`,{headers:{"X-SessionID":i}}),L=yield L.json(),(Kt=L==null?void 0:L.item)!=null&&Kt.playerEnrolled?Yt():(at(_e.errorMessage),r(20,tt=!0),r(18,Ce=!1))}else at(_e.errorMessage)}),Zt=(d,A)=>{window.postMessage({type:`TournamentPrizes_${A}`,prizes:Vt},window.location.href)},ot=d=>{d&&(r(21,rt=d.nameOrTitle||""),r(22,Ut=d.startTime),r(23,jt=d.endTime),r(24,ge=d.state),r(25,$=d.id),r(26,Gt=d.thumbnail),r(27,nt=d.playerEnrolled==="true"||d.playerEnrolled==!0||!1),r(28,zt=d.scoreCriteria),r(29,$t=d.minBetCount),Vt=d.prizes,r(30,it=d.wallets||[]),r(31,Xt=d.termsUrl||"#"))},Qt=d=>{r(16,be=!0);const A=d?`${d}/v1/tournaments/${et}`:s,N=new URL(A),ne=new Headers;N.searchParams.append("language",p),N.searchParams.append("platform",Lt(kt)),pe&&ne.append("X-SessionID",Pe),fetch(N,{method:"GET",headers:ne}).then(ye=>ye.json()).then(ye=>{ot(ye.item)}).finally(()=>{r(16,be=!1)})},On=()=>{r(15,pe=(i==null?void 0:i.length)>10),pe&&(Pe=i)},Cn=()=>{if(He){ot(He);return}r(16,be=!0),Qt(u)};kr(()=>(r(16,be=!rt),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",Jt,!1),()=>{window.removeEventListener("message",Jt)}));const In=()=>qt($,it);function Ln(d){Ge[d?"unshift":"push"](()=>{z=d,r(14,z)})}return e.$$set=d=>{"session"in d&&r(39,i=d.session),"userid"in d&&r(0,o=d.userid),"tournamenturl"in d&&r(1,s=d.tournamenturl),"touridx"in d&&r(40,a=d.touridx),"endpoint"in d&&r(41,u=d.endpoint),"showdetails"in d&&r(2,l=d.showdetails),"showslider"in d&&r(3,h=d.showslider),"showenrolled"in d&&r(4,f=d.showenrolled),"maxwidth"in d&&r(5,c=d.maxwidth),"fullsize"in d&&r(6,y=d.fullsize),"lang"in d&&r(7,p=d.lang),"loginevent"in d&&r(42,b=d.loginevent),"registerevent"in d&&r(43,I=d.registerevent),"detailsevent"in d&&r(8,J=d.detailsevent),"loginurl"in d&&r(44,k=d.loginurl),"registerurl"in d&&r(45,P=d.registerurl),"currency"in d&&r(46,j=d.currency),"keepbrowsercontext"in d&&r(9,D=d.keepbrowsercontext),"clientstyling"in d&&r(10,G=d.clientstyling),"clientstylingurl"in d&&r(11,Y=d.clientstylingurl),"translationurl"in d&&r(12,Be=d.translationurl),"tournamentinfo"in d&&r(47,He=d.tournamentinfo),"mbsource"in d&&r(13,Ae=d.mbsource),"tournamentid"in d&&r(48,et=d.tournamentid)},e.$$.update=()=>{e.$$.dirty[0]&128&&p&&fs(p),e.$$.dirty[0]&4096&&Be&&Tn(),e.$$.dirty[1]&256&&i&&On(),e.$$.dirty[0]&130&&s&&p&&Cn(),e.$$.dirty[0]&17408&&G&&z&&vn(z,G),e.$$.dirty[0]&18432&&Y&&z&&En(z,Y),e.$$.dirty[0]&24576&&Ae&&z&&wn(z,`${Ae}.Style`,Sn)},[o,s,l,h,f,c,y,p,J,D,G,Y,Be,Ae,z,pe,be,Oe,Ce,Dt,tt,rt,Ut,jt,ge,$,Gt,nt,zt,$t,it,Xt,Ie,n,Hn,An,Pn,qt,Zt,i,a,u,b,I,k,P,j,He,et,In,Ln]}class xn extends Gr{constructor(t){super(),Dr(this,t,Ts,Ss,Nt,{session:39,userid:0,tournamenturl:1,touridx:40,endpoint:41,showdetails:2,showslider:3,showenrolled:4,maxwidth:5,fullsize:6,lang:7,loginevent:42,registerevent:43,detailsevent:8,loginurl:44,registerurl:45,currency:46,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:47,mbsource:13,tournamentid:48},ms,[-1,-1,-1])}get session(){return this.$$.ctx[39]}set session(t){this.$$set({session:t}),x()}get userid(){return this.$$.ctx[0]}set userid(t){this.$$set({userid:t}),x()}get tournamenturl(){return this.$$.ctx[1]}set tournamenturl(t){this.$$set({tournamenturl:t}),x()}get touridx(){return this.$$.ctx[40]}set touridx(t){this.$$set({touridx:t}),x()}get endpoint(){return this.$$.ctx[41]}set endpoint(t){this.$$set({endpoint:t}),x()}get showdetails(){return this.$$.ctx[2]}set showdetails(t){this.$$set({showdetails:t}),x()}get showslider(){return this.$$.ctx[3]}set showslider(t){this.$$set({showslider:t}),x()}get showenrolled(){return this.$$.ctx[4]}set showenrolled(t){this.$$set({showenrolled:t}),x()}get maxwidth(){return this.$$.ctx[5]}set maxwidth(t){this.$$set({maxwidth:t}),x()}get fullsize(){return this.$$.ctx[6]}set fullsize(t){this.$$set({fullsize:t}),x()}get lang(){return this.$$.ctx[7]}set lang(t){this.$$set({lang:t}),x()}get loginevent(){return this.$$.ctx[42]}set loginevent(t){this.$$set({loginevent:t}),x()}get registerevent(){return this.$$.ctx[43]}set registerevent(t){this.$$set({registerevent:t}),x()}get detailsevent(){return this.$$.ctx[8]}set detailsevent(t){this.$$set({detailsevent:t}),x()}get loginurl(){return this.$$.ctx[44]}set loginurl(t){this.$$set({loginurl:t}),x()}get registerurl(){return this.$$.ctx[45]}set registerurl(t){this.$$set({registerurl:t}),x()}get currency(){return this.$$.ctx[46]}set currency(t){this.$$set({currency:t}),x()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),x()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),x()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),x()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),x()}get tournamentinfo(){return this.$$.ctx[47]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),x()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),x()}get tournamentid(){return this.$$.ctx[48]}set tournamentid(t){this.$$set({tournamentid:t}),x()}}jr(xn,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{}},[],[],!0);const Bs=Object.freeze(Object.defineProperty({__proto__:null,default:xn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=te;exports.$format=_n;exports.$locale=W;exports.CasinoTournamentsThumbnailController_ce=Bs;exports.SvelteComponent=Gr;exports.action_destroyer=Rr;exports.addMessages=Rt;exports.add_iframe_resize_listener=Wn;exports.add_render_callback=ze;exports.append=H;exports.append_styles=Fr;exports.attr=g;exports.binding_callbacks=Ge;exports.component_subscribe=Mr;exports.create_custom_element=jr;exports.destroy_each=zn;exports.detach=E;exports.element=B;exports.empty=We;exports.ensure_array_like=ni;exports.flush=x;exports.getDevice=Lt;exports.init=Dr;exports.insert=w;exports.is_function=Q;exports.listen=Z;exports.noop=C;exports.onMount=kr;exports.run_all=ee;exports.safe_not_equal=Nt;exports.setClientStyling=vn;exports.setClientStylingURL=En;exports.setStreamStyling=wn;exports.set_custom_element_data=m;exports.set_data=X;exports.set_style=Vn;exports.space=R;exports.src_url_equal=Dn;exports.text=F;exports.toggle_class=Jn;
|
|
@@ -4481,7 +4481,7 @@ if (typeof window != "undefined") {
|
|
|
4481
4481
|
}
|
|
4482
4482
|
};
|
|
4483
4483
|
};
|
|
4484
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
4484
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-pjUSMRhz.js").then(({ default: t }) => {
|
|
4485
4485
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
4486
4486
|
});
|
|
4487
4487
|
}
|
|
@@ -4497,7 +4497,7 @@ if (typeof window != "undefined") {
|
|
|
4497
4497
|
}
|
|
4498
4498
|
};
|
|
4499
4499
|
};
|
|
4500
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
4500
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-CQB0nLN_.js").then(({ default: t }) => {
|
|
4501
4501
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
4502
4502
|
"casino-tournaments-thumbnail-duration",
|
|
4503
4503
|
t.element
|
|
@@ -4516,7 +4516,7 @@ if (typeof window != "undefined") {
|
|
|
4516
4516
|
}
|
|
4517
4517
|
};
|
|
4518
4518
|
};
|
|
4519
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
4519
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-C40cTD-B.js").then(({ default: t }) => {
|
|
4520
4520
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
4521
4521
|
});
|
|
4522
4522
|
}
|
|
@@ -4532,7 +4532,7 @@ if (typeof window != "undefined") {
|
|
|
4532
4532
|
}
|
|
4533
4533
|
};
|
|
4534
4534
|
};
|
|
4535
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
4535
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-BstczX4F.js").then(
|
|
4536
4536
|
({ default: t }) => {
|
|
4537
4537
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
4538
4538
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnailController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnailController-BicnmhUl.cjs");function z(r,e){t.addMessages(r,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"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:"Bitti",starting:"Turnuvaya kalan zaman",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",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"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function O(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",f,k,y,g,T,h,B;function b(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?U:s[5]>0?N:L}let w=b(r),p=w(r);function P(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return W;if(s[5]>0)return A;if(s[4]>0)return q}let D=P(r),c=D&&D(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),f=t.text(d),k=t.space(),y=t.element("div"),g=t.element("div"),p.c(),T=t.space(),c&&c.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(g,"class","ProgressBar"),t.attr(g,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,f),t.insert(s,k,_),t.insert(s,y,_),t.append(y,g),p.m(g,null),t.append(g,T),c&&c.m(g,null),h||(B=t.action_destroyer(r[9].call(null,y)),h=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(f,d),w===(w=b(s))&&p?p.p(s,_):(p.d(1),p=w(s),p&&(p.c(),p.m(g,T))),D===(D=P(s))&&c?c.p(s,_):(c&&c.d(1),c=D&&D(s),c&&(c.c(),c.m(g,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),p.d(),c&&c.d(),h=!1,B()}}}function L(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function N(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function U(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function q(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,f){t.insert(d,e,f),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,f){f&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),f&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function W(r){let e,n=r[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function G(r){let e,n=r[0]&&r[1]&&E(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[17](null)}}}function H(r,e,n){let a,l;t.component_subscribe(r,t.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:f="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:g=""}=e,{mbsource:T}=e,h,B,b="",w="",p="";const P=()=>{fetch(g).then(m=>m.json()).then(m=>{Object.keys(m).forEach(F=>{z(F,m[F])})}).catch(m=>{console.log(m)})};Object.keys(M).forEach(i=>{z(i,M[i])});const D=i=>new Date(i).getTime(),c=(i,m)=>(D(m)-D(i))/(1e3*60),s=()=>{const i=new Date;n(4,b=c(i,o)),n(5,w=c(i,u)),n(6,p=C(b))},_=i=>{const m={month:"long"};let F=new Date(i),S=new Intl.DateTimeFormat(f,m).format(F);return`${F.getDate()} ${S}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},C=i=>{const m=(S,v)=>S+" "+l(v),F=S=>{const v=Math.floor(S);return v<10?`0${v}`:`${v}`};if(i<1440){const S=i/60,v=i%60,x=(v-Math.floor(v))*60;return[S,v,x].map(I=>F(I)).join(":")}return m(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&s()},1e3);return()=>{clearInterval(i)}});function R(i){t.binding_callbacks[i?"unshift":"push"](()=>{h=i,n(3,h)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,f=i.lang),"clientstyling"in i&&n(13,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,g=i.translationurl),"mbsource"in i&&n(16,T=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const i=c(u,o),m=100/i;return Math.floor((i-b)*m)}),r.$$.dirty&19&&u&&o&&s()&&C(b),r.$$.dirty&4096&&f&&s(),r.$$.dirty&4112&&f&&C(b),r.$$.dirty&32768&&g&&P(),r.$$.dirty&8200&&k&&h&&t.setClientStyling(h,k),r.$$.dirty&16392&&y&&h&&t.setClientStylingURL(h,y),r.$$.dirty&65544&&T&&h&&t.setStreamStyling(h,`${T}.Style`,B)},[u,o,d,h,b,w,p,a,l,s,_,C,f,k,y,g,T,R]}class j extends t.SvelteComponent{constructor(e){super(),t.init(this,e,H,G,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},O)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(j,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=j;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as N, d as k, g as w, j as v, e as l, l as V, o as X, m as M, h, q as $, t as j, k as R, u as tt, E as O, z as et, A as nt, B as it, C as st, D as rt } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as N, d as k, g as w, j as v, e as l, l as V, o as X, m as M, h, q as $, t as j, k as R, u as tt, E as O, z as et, A as nt, B as it, C as st, D as rt } from "./CasinoTournamentsThumbnailController-EmilQMI-.js";
|
|
2
2
|
function U(n, t) {
|
|
3
3
|
K(n, t);
|
|
4
4
|
}
|
|
@@ -46,10 +46,10 @@ const q = {
|
|
|
46
46
|
tr: {
|
|
47
47
|
finished: "Bitti",
|
|
48
48
|
starting: "Turnuvaya kalan zaman",
|
|
49
|
-
left: "
|
|
49
|
+
left: "kaldı",
|
|
50
50
|
minutes: "dakika",
|
|
51
51
|
hours: "saat",
|
|
52
|
-
days: "
|
|
52
|
+
days: "gün"
|
|
53
53
|
},
|
|
54
54
|
el: {
|
|
55
55
|
finished: "Ολοκληρωμένα",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as K, S as Y, i as Z, s as J, f as C, d as Q, n as N, e as k, h as w, k as v, g as l, m as V, o as X, p as M, j as h, t as $, u as j, l as R, v as tt, E as O, B as et, C as nt, D as it, c as st, A as rt } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as K, S as Y, i as Z, s as J, f as C, d as Q, n as N, e as k, h as w, k as v, g as l, m as V, o as X, p as M, j as h, t as $, u as j, l as R, v as tt, E as O, B as et, C as nt, D as it, c as st, A as rt } from "./CasinoTournamentsThumbnailController-BcXnTlAn.js";
|
|
2
2
|
function U(n, t) {
|
|
3
3
|
K(n, t);
|
|
4
4
|
}
|
|
@@ -46,10 +46,10 @@ const q = {
|
|
|
46
46
|
tr: {
|
|
47
47
|
finished: "Bitti",
|
|
48
48
|
starting: "Turnuvaya kalan zaman",
|
|
49
|
-
left: "
|
|
49
|
+
left: "kaldı",
|
|
50
50
|
minutes: "dakika",
|
|
51
51
|
hours: "saat",
|
|
52
|
-
days: "
|
|
52
|
+
days: "gün"
|
|
53
53
|
},
|
|
54
54
|
el: {
|
|
55
55
|
finished: "Ολοκληρωμένα",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as be, S as ve, i as ke, s as Ne, f as T, c as Se, n as Y, d as W, g as q, j as N, l as Te, o as Fe, F as K, G as Be, r as le, H as C, E as Z, h as v, I as Pe, p as A, k as D, e as o, J as Me, K as Ee, u as G, m as je, w as Q, t as ze, z as Ae, A as He, B as Le, C as Ce, D as De } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as be, S as ve, i as ke, s as Ne, f as T, c as Se, n as Y, d as W, g as q, j as N, l as Te, o as Fe, F as K, G as Be, r as le, H as C, E as Z, h as v, I as Pe, p as A, k as D, e as o, J as Me, K as Ee, u as G, m as je, w as Q, t as ze, z as Ae, A as He, B as Le, C as Ce, D as De } from "./CasinoTournamentsThumbnailController-EmilQMI-.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as be, S as ve, i as ke, s as Ne, f as T, d as Se, n as Y, e as W, h as q, k as N, m as Te, o as Fe, F as K, G as Be, r as le, H as C, E as Z, j as v, I as Pe, q as H, l as D, g as o, J as Me, K as Ee, v as G, p as je, x as Q, u as Ae, B as He, C as Le, D as ze, c as Ce, A as De } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as be, S as ve, i as ke, s as Ne, f as T, d as Se, n as Y, e as W, h as q, k as N, m as Te, o as Fe, F as K, G as Be, r as le, H as C, E as Z, j as v, I as Pe, q as H, l as D, g as o, J as Me, K as Ee, v as G, p as je, x as Q, u as Ae, B as He, C as Le, D as ze, c as Ce, A as De } from "./CasinoTournamentsThumbnailController-BcXnTlAn.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnailController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnailController-BicnmhUl.cjs");function D(t,l){e.addMessages(t,l)}const I={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"},"en-us":{playNow:"Play now"}};function ie(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function W(t,l,n){const i=t.slice();return i[49]=l[n],i[51]=n,i}function G(t){let l,n,i,m,d,y,_,a,w,b,h=e.ensure_array_like(t[1]),o=[];for(let s=0;s<h.length;s+=1)o[s]=O(W(t,h,s));return{c(){l=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),m=e.element("main"),d=e.element("div");for(let s=0;s<o.length;s+=1)o[s].c();_=e.space(),a=e.element("div"),a.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(d,"class","items"),e.attr(d,"part","items"),e.set_style(d,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[29].call(m)),e.attr(a,"class","SliderNavButton"),e.attr(a,"part","SliderNavButton"),e.toggle_class(a,"disabled",t[9]),e.attr(l,"class","TournamentsGamesSlider"),e.attr(l,"part","TournamentsGamesSlider")},m(s,u){e.insert(s,l,u),e.append(l,n),e.append(l,i),e.append(l,m),e.append(m,d);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(d,null);t[28](d),y=e.add_iframe_resize_listener(m,t[29].bind(m)),e.append(l,_),e.append(l,a),t[31](l),w||(b=[e.listen(n,"click",t[24]),e.listen(a,"click",t[30])],w=!0)},p(s,u){if(u[0]&256&&e.toggle_class(n,"disabled",s[8]),u[0]&23650){h=e.ensure_array_like(s[1]);let c;for(c=0;c<h.length;c+=1){const T=W(s,h,c);o[c]?o[c].p(T,u):(o[c]=O(T),o[c].c(),o[c].m(d,null))}for(;c<o.length;c+=1)o[c].d(1);o.length=h.length}u[0]&4&&e.set_style(d,"transform","translateX("+s[2]+"px)"),u[0]&512&&e.toggle_class(a,"disabled",s[9])},d(s){s&&e.detach(l),e.destroy_each(o,s),t[28](null),y(),t[31](null),w=!1,e.run_all(b)}}}function O(t){let l,n,i=t[10]("playNow")+"",m,d,y,_,a,w,b,h,o,s,u;function c(){return t[25](t[49])}function T(){return t[26](t[51])}return{c(){l=e.element("div"),n=e.element("span"),m=e.text(i),_=e.space(),a=e.element("img"),o=e.space(),e.attr(n,"class",d="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.attr(n,"part",y="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.src_url_equal(a.src,w=t[49].thumbnail)||e.attr(a,"src",w),e.attr(a,"width","132px"),e.attr(a,"height","100px"),e.attr(a,"alt",b=t[49].name),e.attr(a,"title",h=t[49].name),e.attr(l,"class","item"),e.attr(l,"part","item")},m(v,g){e.insert(v,l,g),e.append(l,n),e.append(n,m),e.append(l,_),e.append(l,a),e.append(l,o),s||(u=[e.listen(l,"click",c),e.listen(l,"mouseenter",T),e.listen(l,"mouseleave",t[27])],s=!0)},p(v,g){t=v,g[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(m,i),g[0]&96&&d!==(d="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"class",d),g[0]&96&&y!==(y="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"part",y),g[0]&2&&!e.src_url_equal(a.src,w=t[49].thumbnail)&&e.attr(a,"src",w),g[0]&2&&b!==(b=t[49].name)&&e.attr(a,"alt",b),g[0]&2&&h!==(h=t[49].name)&&e.attr(a,"title",h)},d(v){v&&e.detach(l),s=!1,e.run_all(u)}}}function oe(t){let l,n=t[1]&&t[1].length>0&&G(t);return{c(){l=e.element("div"),n&&n.c()},m(i,m){e.insert(i,l,m),n&&n.m(l,null),t[32](l)},p(i,m){i[1]&&i[1].length>0?n?n.p(i,m):(n=G(i),n.c(),n.m(l,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(l),n&&n.d(),t[32](null)}}}let ce=30;function ue(t,l,n){let i,m,d;e.component_subscribe(t,e.$format,r=>n(10,d=r));let{tournamenturl:y=""}=l,{scrollby:_="3"}=l,{pagfactor:a="175"}=l,{lang:w=""}=l,{translationurl:b=""}=l,{clientstyling:h=""}=l,{clientstylingurl:o=""}=l,{mbsource:s}=l,u,c,T=window.navigator.userAgent,v,g=[],f=0,k,E=null,j=null,C=!1,L,P,F=0,S;const J=()=>{fetch(b).then(p=>p.json()).then(p=>{Object.keys(p).forEach(B=>{D(B,p[B])})}).catch(p=>{console.log(p)})};Object.keys(I).forEach(r=>{D(r,I[r])});const z=r=>{n(5,C=!0),n(6,L=r)},A=()=>{n(5,C=!1),n(6,L=-1)},R=r=>r.touches||r.originalEvent.touches,H=r=>{const p=R(r)[0];E=p.clientX,j=p.clientY},U=r=>{if(!E||!j)return;let p=r.touches[0].clientX,B=r.touches[0].clientY,N=E-p,se=j-B;Math.abs(N)>Math.abs(se)&&(N>0?M(1):M(-1)),E=null,j=null},M=r=>{r>0&&!m?(n(2,f-=v),n(2,f=f<F?F:f)):r<0&&!i&&(n(2,f+=v),n(2,f=f>0?0:f))},q=r=>{window.postMessage({type:"TournamentGameAction",gameId:r.id,name:r.name,launchUrl:r.launchUrl},window.location.href)},x=()=>{let r=new URL(y),p=new Headers;r.searchParams.append("expand","games"),r.searchParams.append("pagination",`games(limit=${ce},offset=${f})`),r.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),r.searchParams.append("language",w),r.searchParams.append("platform",e.getDevice(T)),fetch(r,{method:"GET",headers:p}).then(N=>N.json()).then(N=>{n(1,g=N.item.games.items),N.item.games.total})},Y=()=>{k.addEventListener("touchstart",H,{passive:!0}),k.addEventListener("touchmove",U,{passive:!0})},Z=()=>{setTimeout(()=>{n(23,F=(P.scrollWidth-P.clientWidth)*-1),n(16,a=new String(P.scrollWidth/g.length)),v=parseInt(_,10)*parseFloat(a,2).toFixed(2)},1e3)},K=()=>{S>0&&S<Math.floor((parseInt(_)+1)*a)&&n(15,_=Math.ceil(S/a).toString())};e.onMount(()=>(v=parseInt(_,10)*parseInt(a,10),()=>{k.removeEventListener("touchstart",H),k.removeEventListener("touchmove",U)}));const Q=()=>M(-1),V=r=>q(r),$=r=>z(r),ee=()=>A();function te(r){e.binding_callbacks[r?"unshift":"push"](()=>{P=r,n(7,P)})}function ne(){S=this.clientWidth,n(4,S)}const le=()=>M(1);function re(r){e.binding_callbacks[r?"unshift":"push"](()=>{k=r,n(3,k)})}function ae(r){e.binding_callbacks[r?"unshift":"push"](()=>{u=r,n(0,u)})}return t.$$set=r=>{"tournamenturl"in r&&n(17,y=r.tournamenturl),"scrollby"in r&&n(15,_=r.scrollby),"pagfactor"in r&&n(16,a=r.pagfactor),"lang"in r&&n(18,w=r.lang),"translationurl"in r&&n(19,b=r.translationurl),"clientstyling"in r&&n(20,h=r.clientstyling),"clientstylingurl"in r&&n(21,o=r.clientstylingurl),"mbsource"in r&&n(22,s=r.mbsource)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=f===0),t.$$.dirty[0]&8388612&&n(9,m=f<=F),t.$$.dirty[0]&16&&S&&K(),t.$$.dirty[0]&131072&&y&&x(),t.$$.dirty[0]&8&&k&&Y(),t.$$.dirty[0]&524288&&b&&J(),t.$$.dirty[0]&2&&g.length&&Z(),t.$$.dirty[0]&1048577&&h&&u&&e.setClientStyling(u,h),t.$$.dirty[0]&2097153&&o&&u&&e.setClientStylingURL(u,o),t.$$.dirty[0]&4194305&&s&&u&&e.setStreamStyling(u,`${s}.Style`,c)},n(2,f=0),[u,g,f,k,S,C,L,P,i,m,d,z,A,M,q,_,a,y,w,b,h,o,s,F,Q,V,$,ee,te,ne,le,re,ae]}class X extends e.SvelteComponent{constructor(l){super(),e.init(this,l,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21,mbsource:22},ie,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(l){this.$$set({tournamenturl:l}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(l){this.$$set({scrollby:l}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(l){this.$$set({pagfactor:l}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(l){this.$$set({lang:l}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(l){this.$$set({mbsource:l}),e.flush()}}e.create_custom_element(X,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=X;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as L, S as Z, i as j, s as B, f as _, d as I, n as F, e as T, p as b, h as k, j as d, k as g, l as w, u as P, g as u, m as R, o as O, F as N, G as D, v as U, B as V, C as W, D as q, c as G, A as J } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as L, S as Z, i as j, s as B, f as _, d as I, n as F, e as T, p as b, h as k, j as d, k as g, l as w, u as P, g as u, m as R, o as O, F as N, G as D, v as U, B as V, C as W, D as q, c as G, A as J } from "./CasinoTournamentsThumbnailController-BcXnTlAn.js";
|
|
2
2
|
function M(l, e) {
|
|
3
3
|
L(l, e);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as L, S as Z, i as j, s as B, f as _, c as I, n as F, d as T, m as b, g as k, h as d, j as g, k as w, t as P, e as u, l as R, o as O, F as N, G as D, u as U, z as V, A as W, B as q, C as G, D as J } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as L, S as Z, i as j, s as B, f as _, c as I, n as F, d as T, m as b, g as k, h as d, j as g, k as w, t as P, e as u, l as R, o as O, F as N, G as D, u as U, z as V, A as W, B as q, C as G, D as J } from "./CasinoTournamentsThumbnailController-EmilQMI-.js";
|
|
2
2
|
function M(l, e) {
|
|
3
3
|
L(l, e);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnailController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnailController-BicnmhUl.cjs");function y(l,t){e.addMessages(l,t)}const P={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",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:"Mevcut ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},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"},"en-us":{prizes:"Prizes",noprizes:"No available prizes",place:"place"}};function S(l){e.append_styles(l,"svelte-1bsrm1d","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.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(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}")}function b(l,t,n){const i=l.slice();return i[12]=t[n],i[14]=n,i}function v(l){let t,n=e.ensure_array_like(l[1]),i=[];for(let r=0;r<n.length;r+=1)i[r]=w(b(l,n,r));let a=null;return n.length||(a=T(l)),{c(){t=e.element("div");for(let r=0;r<i.length;r+=1)i[r].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(r,c){e.insert(r,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(r,c){if(c&6){n=e.ensure_array_like(r[1]);let s;for(s=0;s<n.length;s+=1){const d=b(r,n,s);i[s]?i[s].p(d,c):(i[s]=w(d),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(r,c):n.length?a&&(a.d(1),a=null):(a=T(r),a.c(),a.m(t,null))}},d(r){r&&e.detach(t),e.destroy_each(i,r),a&&a.d()}}}function T(l){let t,n=l[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,r){e.insert(a,t,r),e.append(t,i)},p(a,r){r&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function w(l){let t,n,i,a=(l[12].count>1?`${l[12].rank}~${l[12].rank+l[12].count-1}`:l[12].rank)+"",r,c,s=l[2]("place")+"",d,o,u=l[12].name+"",f,z;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),r=e.text(a),c=e.space(),d=e.text(s),o=e.text(": "),f=e.text(u),z=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+l[14]),e.attr(t,"part","Prize Prize"+l[14])},m(m,h){e.insert(m,t,h),e.append(t,n),e.append(n,i),e.append(i,r),e.append(n,c),e.append(n,d),e.append(n,o),e.append(n,f),e.append(t,z)},p(m,h){h&2&&a!==(a=(m[12].count>1?`${m[12].rank}~${m[12].rank+m[12].count-1}`:m[12].rank)+"")&&e.set_data(r,a),h&4&&s!==(s=m[2]("place")+"")&&e.set_data(d,s),h&2&&u!==(u=m[12].name+"")&&e.set_data(f,u)},d(m){m&&e.detach(t)}}}function F(l){let t,n,i,a,r,c=l[2]("prizes")+"",s,d,o=l[1]&&v(l);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" 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)"></path></svg>',a=e.space(),r=e.element("p"),s=e.text(c),d=e.space(),o&&o.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(r,"class","PrizesTitle"),e.attr(r,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(u,f){e.insert(u,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,r),e.append(r,s),e.append(t,d),o&&o.m(t,null),l[8](t)},p(u,[f]){f&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(s,c),u[1]?o?o.p(u,f):(o=v(u),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),o&&o.d(),l[8](null)}}}function M(l,t,n){let i;e.component_subscribe(l,e.$format,p=>n(2,i=p));let{tourid:a=""}=t,{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,{mbsource:d}=t,o,u,f;const z=()=>{fetch(s).then(g=>g.json()).then(g=>{Object.keys(g).forEach(_=>{y(_,g[_])})}).catch(g=>{console.log(g)})};Object.keys(P).forEach(p=>{y(p,P[p])});const m=p=>{p.data&&p.data.type==`TournamentPrizes_${a}`&&n(1,f=p.data.prizes)};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",m,!1),()=>{window.removeEventListener("message",m)}));function h(p){e.binding_callbacks[p?"unshift":"push"](()=>{o=p,n(0,o)})}return l.$$set=p=>{"tourid"in p&&n(3,a=p.tourid),"clientstyling"in p&&n(4,r=p.clientstyling),"clientstylingurl"in p&&n(5,c=p.clientstylingurl),"translationurl"in p&&n(6,s=p.translationurl),"mbsource"in p&&n(7,d=p.mbsource)},l.$$.update=()=>{l.$$.dirty&17&&r&&o&&e.setClientStyling(o,r),l.$$.dirty&33&&c&&o&&e.setClientStylingURL(o,c),l.$$.dirty&129&&d&&o&&e.setStreamStyling(o,`${d}.Style`,u),l.$$.dirty&64&&s&&z()},[o,f,i,a,r,c,s,d,h]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,M,F,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6,mbsource:7},S)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(k,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsThumbnailController-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsThumbnailController-BicnmhUl.cjs")).then(e=>e.CasinoTournamentsThumbnailController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsThumbnailController-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsThumbnailController-EmilQMI-.js").then((e) => e.L).then(
|
|
14
14
|
({ default: e }) => {
|
|
15
15
|
!customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
|
|
16
16
|
"casino-tournaments-thumbnail-controller",
|
package/package.json
CHANGED