@everymatrix/casino-tournaments-controller 1.45.8 → 1.45.9

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.
Files changed (21) hide show
  1. package/components/{CasinoTournamentsController-CQ5C1jDl.cjs → CasinoTournamentsController-C-KFF5ja.cjs} +1 -1
  2. package/components/{CasinoTournamentsController-Cr8b4j7l.js → CasinoTournamentsController-CwoV5JAv.js} +2 -2
  3. package/components/{CasinoTournamentsFilterController-Chy_sE0V.js → CasinoTournamentsFilterController-Avy9JgA8.js} +1 -1
  4. package/components/{CasinoTournamentsFilterController-BtuK-ddv.cjs → CasinoTournamentsFilterController-DnQQ0cGj.cjs} +1 -1
  5. package/components/{CasinoTournamentsListController-BinvLjvx.cjs → CasinoTournamentsListController-Bp4JWrU7.cjs} +2 -2
  6. package/components/{CasinoTournamentsListController-DXHqP9An.js → CasinoTournamentsListController-CKTF0IWN.js} +2 -2
  7. package/components/{CasinoTournamentsThumbnail-BFS6MlWH.js → CasinoTournamentsThumbnail-6t2KVgma.js} +228 -236
  8. package/components/CasinoTournamentsThumbnail-hQ8xUbjB.cjs +4 -0
  9. package/components/CasinoTournamentsThumbnailController-CXIDt-sw.cjs +1 -0
  10. package/components/{CasinoTournamentsThumbnailController-NEf6XMRB.js → CasinoTournamentsThumbnailController-ThAV22ql.js} +241 -257
  11. package/components/{CasinoTournamentsThumbnailDuration-CrS_PUCZ.cjs → CasinoTournamentsThumbnailDuration-B29fLKCn.cjs} +1 -1
  12. package/components/{CasinoTournamentsThumbnailDuration-bu3Mm2Ay.js → CasinoTournamentsThumbnailDuration-DHSazYF4.js} +1 -1
  13. package/components/{CasinoTournamentsThumbnailGamesSlider-_haSuIUI.js → CasinoTournamentsThumbnailGamesSlider-BMmV6NUp.js} +1 -1
  14. package/components/{CasinoTournamentsThumbnailGamesSlider-DNrAc-zm.cjs → CasinoTournamentsThumbnailGamesSlider-KtHgAJwO.cjs} +1 -1
  15. package/components/{CasinoTournamentsThumbnailPrizes-BRcfU1P4.js → CasinoTournamentsThumbnailPrizes-BWutKVaA.js} +1 -1
  16. package/components/{CasinoTournamentsThumbnailPrizes-E5pafLaj.cjs → CasinoTournamentsThumbnailPrizes-Bwyz_Aix.cjs} +1 -1
  17. package/es2015/casino-tournaments-controller.cjs +1 -1
  18. package/es2015/casino-tournaments-controller.js +1 -1
  19. package/package.json +3 -3
  20. package/components/CasinoTournamentsThumbnail-CM3Rfdn3.cjs +0 -4
  21. package/components/CasinoTournamentsThumbnailController-C71hXcQP.cjs +0 -1
@@ -8,7 +8,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
8
8
  * https://github.com/Yaffle/EventSource/
9
9
  */(function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,o=r.XMLHttpRequest,s=r.XDomainRequest,a=r.ActiveXObject,l=r.EventSource,u=r.document,c=r.Promise,d=r.fetch,p=r.Response,E=r.TextDecoder,O=r.TextEncoder,P=r.AbortController;if(typeof window!="undefined"&&typeof u!="undefined"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(h){u.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(h){function b(){}return b.prototype=h,new b}),Date.now||(Date.now=function(){return new Date().getTime()}),P==null){var re=d;d=function(h,b){var g=b.signal;return re(h,{headers:b.headers,credentials:b.credentials,cache:b.cache}).then(function(m){var y=m.body.getReader();return g._reader=y,g._aborted&&g._reader.cancel(),{status:m.status,statusText:m.statusText,headers:m.headers,body:{getReader:function(){return y}}}})},P=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function me(){this.bitsNeeded=0,this.codePoint=0}me.prototype.decode=function(h){function b(C,L,_){if(_===1)return C>=128>>L&&C<<L<=2047;if(_===2)return C>=2048>>L&&C<<L<=55295||C>=57344>>L&&C<<L<=65535;if(_===3)return C>=65536>>L&&C<<L<=1114111;throw new Error}function g(C,L){if(C===6*1)return L>>6>15?3:L>31?2:1;if(C===6*2)return L>15?3:2;if(C===6*3)return 3;throw new Error}for(var m=65533,y="",v=this.bitsNeeded,x=this.codePoint,R=0;R<h.length;R+=1){var w=h[R];v!==0&&(w<128||w>191||!b(x<<6|w&63,v-6,g(v,x)))&&(v=0,x=m,y+=String.fromCharCode(x)),v===0?(w>=0&&w<=127?(v=0,x=w):w>=192&&w<=223?(v=6*1,x=w&31):w>=224&&w<=239?(v=6*2,x=w&15):w>=240&&w<=247?(v=6*3,x=w&7):(v=0,x=m),v!==0&&!b(x,v,g(v,x))&&(v=0,x=m)):(v-=6,x=x<<6|w&63),v===0&&(x<=65535?y+=String.fromCharCode(x):(y+=String.fromCharCode(55296+(x-65535-1>>10)),y+=String.fromCharCode(56320+(x-65535-1&1023))))}return this.bitsNeeded=v,this.codePoint=x,y};var ie=function(){try{return new E().decode(new O().encode("test"),{stream:!0})==="test"}catch(h){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+h)}return!1};(E==null||O==null||!ie())&&(E=me);var M=function(){};function $(h){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=M,this.onload=M,this.onerror=M,this.onreadystatechange=M,this._contentType="",this._xhr=h,this._sendTimeout=0,this._abort=M}$.prototype.open=function(h,b){this._abort(!0);var g=this,m=this._xhr,y=1,v=0;this._abort=function(_){g._sendTimeout!==0&&(i(g._sendTimeout),g._sendTimeout=0),(y===1||y===2||y===3)&&(y=4,m.onload=M,m.onerror=M,m.onabort=M,m.onprogress=M,m.onreadystatechange=M,m.abort(),v!==0&&(i(v),v=0),_||(g.readyState=4,g.onabort(null),g.onreadystatechange())),y=0};var x=function(){if(y===1){var _=0,f="",S=void 0;if("contentType"in m)_=200,f="OK",S=m.contentType;else try{_=m.status,f=m.statusText,S=m.getResponseHeader("Content-Type")}catch(N){_=0,f="",S=void 0}_!==0&&(y=2,g.readyState=2,g.status=_,g.statusText=f,g._contentType=S,g.onreadystatechange())}},R=function(){if(x(),y===2||y===3){y=3;var _="";try{_=m.responseText}catch(f){}g.readyState=3,g.responseText=_,g.onprogress()}},w=function(_,f){if((f==null||f.preventDefault==null)&&(f={preventDefault:M}),R(),y===1||y===2||y===3){if(y=4,v!==0&&(i(v),v=0),g.readyState=4,_==="load")g.onload(f);else if(_==="error")g.onerror(f);else if(_==="abort")g.onabort(f);else throw new TypeError;g.onreadystatechange()}},C=function(_){m!=null&&(m.readyState===4?(!("onload"in m)||!("onerror"in m)||!("onabort"in m))&&w(m.responseText===""?"error":"load",_):m.readyState===3?"onprogress"in m||R():m.readyState===2&&x())},L=function(){v=n(function(){L()},500),m.readyState===3&&R()};"onload"in m&&(m.onload=function(_){w("load",_)}),"onerror"in m&&(m.onerror=function(_){w("error",_)}),"onabort"in m&&(m.onabort=function(_){w("abort",_)}),"onprogress"in m&&(m.onprogress=R),"onreadystatechange"in m&&(m.onreadystatechange=function(_){C(_)}),("contentType"in m||!("ontimeout"in o.prototype))&&(b+=(b.indexOf("?")===-1?"?":"&")+"padding=true"),m.open(h,b,!0),"readyState"in m&&(v=n(function(){L()},0))},$.prototype.abort=function(){this._abort(!1)},$.prototype.getResponseHeader=function(h){return this._contentType},$.prototype.setRequestHeader=function(h,b){var g=this._xhr;"setRequestHeader"in g&&g.setRequestHeader(h,b)},$.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},$.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var h=this;h._sendTimeout=n(function(){h._sendTimeout=0,h.send()},4);return}var b=this._xhr;"withCredentials"in b&&(b.withCredentials=this.withCredentials);try{b.send(void 0)}catch(g){throw g}};function Z(h){return h.replace(/[A-Z]/g,function(b){return String.fromCharCode(b.charCodeAt(0)+32)})}function fe(h){for(var b=Object.create(null),g=h.split(`\r
10
10
  `),m=0;m<g.length;m+=1){var y=g[m],v=y.split(": "),x=v.shift(),R=v.join(": ");b[Z(x)]=R}this._map=b}fe.prototype.get=function(h){return this._map[Z(h)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function ge(){}ge.prototype.open=function(h,b,g,m,y,v,x){h.open("GET",y);var R=0;h.onprogress=function(){var C=h.responseText,L=C.slice(R);R+=L.length,g(L)},h.onerror=function(C){C.preventDefault(),m(new Error("NetworkError"))},h.onload=function(){m(null)},h.onabort=function(){m(null)},h.onreadystatechange=function(){if(h.readyState===o.HEADERS_RECEIVED){var C=h.status,L=h.statusText,_=h.getResponseHeader("Content-Type"),f=h.getAllResponseHeaders();b(C,L,_,new fe(f))}},h.withCredentials=v;for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&h.setRequestHeader(w,x[w]);return h.send(),h};function De(h){this._headers=h}De.prototype.get=function(h){return this._headers.get(h)};function Be(){}Be.prototype.open=function(h,b,g,m,y,v,x){var R=null,w=new P,C=w.signal,L=new E;return d(y,{headers:x,credentials:v?"include":"same-origin",signal:C,cache:"no-store"}).then(function(_){return R=_.body.getReader(),b(_.status,_.statusText,_.headers.get("Content-Type"),new De(_.headers)),new c(function(f,S){var N=function(){R.read().then(function(I){if(I.done)f(void 0);else{var k=L.decode(I.value,{stream:!0});g(k),N()}}).catch(function(I){S(I)})};N()})}).catch(function(_){if(_.name!=="AbortError")return _}).then(function(_){m(_)}),{abort:function(){R!=null&&R.cancel(),w.abort()}}};function pe(){this._listeners=Object.create(null)}function Ce(h){n(function(){throw h},0)}pe.prototype.dispatchEvent=function(h){h.target=this;var b=this._listeners[h.type];if(b!=null)for(var g=b.length,m=0;m<g;m+=1){var y=b[m];try{typeof y.handleEvent=="function"?y.handleEvent(h):y.call(this,h)}catch(v){Ce(v)}}},pe.prototype.addEventListener=function(h,b){h=String(h);var g=this._listeners,m=g[h];m==null&&(m=[],g[h]=m);for(var y=!1,v=0;v<m.length;v+=1)m[v]===b&&(y=!0);y||m.push(b)},pe.prototype.removeEventListener=function(h,b){h=String(h);var g=this._listeners,m=g[h];if(m!=null){for(var y=[],v=0;v<m.length;v+=1)m[v]!==b&&y.push(m[v]);y.length===0?delete g[h]:g[h]=y}};function ne(h){this.type=h,this.target=void 0}function ct(h,b){ne.call(this,h),this.data=b.data,this.lastEventId=b.lastEventId}ct.prototype=Object.create(ne.prototype);function Oe(h,b){ne.call(this,h),this.status=b.status,this.statusText=b.statusText,this.headers=b.headers}Oe.prototype=Object.create(ne.prototype);function et(h,b){ne.call(this,h),this.error=b.error}et.prototype=Object.create(ne.prototype);var Ie=-1,W=0,ce=1,ve=2,oe=-1,se=0,ye=1,tt=2,be=3,rt=/^text\/event\-stream(;.*)?$/i,dt=1e3,Mt=18e6,nt=function(h,b){var g=h==null?b:parseInt(h,10);return g!==g&&(g=b),Fe(g)},Fe=function(h){return Math.min(Math.max(h,dt),Mt)},Se=function(h,b,g){try{typeof b=="function"&&b.call(h,g)}catch(m){Ce(m)}};function J(h,b){pe.call(this),b=b||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,mt(this,h,b)}function Rt(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var Dt=d!=null&&p!=null&&"body"in p.prototype;function mt(h,b,g){b=String(b);var m=!!g.withCredentials,y=g.lastEventIdQueryParameterName||"lastEventId",v=Fe(1e3),x=nt(g.heartbeatTimeout,45e3),R="",w=v,C=!1,L=0,_=g.headers||{},f=g.Transport,S=Dt&&f==null?void 0:new $(f!=null?new f:Rt()),N=f!=null&&typeof f!="string"?new f:S==null?new Be:new ge,I=void 0,k=0,q=Ie,Ae="",it="",G="",pt="",Q=se,Ft=0,Le=0,Un=function(V,j,ae,ue){if(q===W)if(V===200&&ae!=null&&rt.test(ae)){q=ce,C=Date.now(),w=v,h.readyState=ce;var Y=new Oe("open",{status:V,statusText:j,headers:ue});h.dispatchEvent(Y),Se(h,h.onopen,Y)}else{var z="";V!==200?(j&&(j=j.replace(/\s+/g," ")),z="EventSource's response has a status "+V+" "+j+" that is not 200. Aborting the connection."):z="EventSource's response has a Content-Type specifying an unsupported type: "+(ae==null?"-":ae.replace(/\s+/g," "))+". Aborting the connection.",Ut();var Y=new Oe("error",{status:V,statusText:j,headers:ue});h.dispatchEvent(Y),Se(h,h.onerror,Y),console.error(z)}},Gn=function(V){if(q===ce){for(var j=-1,ae=0;ae<V.length;ae+=1){var ue=V.charCodeAt(ae);(ue===10||ue===13)&&(j=ae)}var Y=(j!==-1?pt:"")+V.slice(0,j+1);pt=(j===-1?pt:"")+V.slice(j+1),V!==""&&(C=Date.now(),L+=V.length);for(var z=0;z<Y.length;z+=1){var ue=Y.charCodeAt(z);if(Q===oe&&ue===10)Q=se;else if(Q===oe&&(Q=se),ue===13||ue===10){if(Q!==se){Q===ye&&(Le=z+1);var _e=Y.slice(Ft,Le-1),Ee=Y.slice(Le+(Le<z&&Y.charCodeAt(Le)===32?1:0),z);_e==="data"?(Ae+=`
11
- `,Ae+=Ee):_e==="id"?it=Ee:_e==="event"?G=Ee:_e==="retry"?(v=nt(Ee,v),w=v):_e==="heartbeatTimeout"&&(x=nt(Ee,x),k!==0&&(i(k),k=n(function(){ot()},x)))}if(Q===se){if(Ae!==""){R=it,G===""&&(G="message");var Ge=new ct(G,{data:Ae.slice(1),lastEventId:it});if(h.dispatchEvent(Ge),G==="open"?Se(h,h.onopen,Ge):G==="message"?Se(h,h.onmessage,Ge):G==="error"&&Se(h,h.onerror,Ge),q===ve)return}Ae="",G=""}Q=ue===13?oe:se}else Q===se&&(Ft=z,Q=ye),Q===ye?ue===58&&(Le=z+1,Q=tt):Q===tt&&(Q=be)}}},gr=function(V){if(q===ce||q===W){q=Ie,k!==0&&(i(k),k=0),k=n(function(){ot()},w),w=Fe(Math.min(v*16,w*2)),h.readyState=W;var j=new et("error",{error:V});h.dispatchEvent(j),Se(h,h.onerror,j),V!=null&&console.error(V)}},Ut=function(){q=ve,I!=null&&(I.abort(),I=void 0),k!==0&&(i(k),k=0),h.readyState=ve},ot=function(){if(k=0,q!==Ie){if(!C&&I!=null)gr(new Error("No activity within "+x+" milliseconds. "+(q===W?"No response received.":L+" chars received.")+" Reconnecting.")),I!=null&&(I.abort(),I=void 0);else{var V=Math.max((C||Date.now())+x-Date.now(),1);C=!1,k=n(function(){ot()},V)}return}C=!1,L=0,k=n(function(){ot()},x),q=W,Ae="",G="",it=R,pt="",Ft=0,Le=0,Q=se;var j=b;if(b.slice(0,5)!=="data:"&&b.slice(0,5)!=="blob:"&&R!==""){var ae=b.indexOf("?");j=ae===-1?b:b.slice(0,ae+1)+b.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Ee,Ge){return Ge===y?"":Ee}),j+=(b.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(R)}var ue=h.withCredentials,Y={};Y.Accept="text/event-stream";var z=h.headers;if(z!=null)for(var _e in z)Object.prototype.hasOwnProperty.call(z,_e)&&(Y[_e]=z[_e]);try{I=N.open(S,Un,Gn,gr,j,ue,Y)}catch(Ee){throw Ut(),Ee}};h.url=b,h.readyState=W,h.withCredentials=m,h.headers=_,h._close=Ut,ot()}J.prototype=Object.create(pe.prototype),J.prototype.CONNECTING=W,J.prototype.OPEN=ce,J.prototype.CLOSED=ve,J.prototype.close=function(){this._close()},J.CONNECTING=W,J.OPEN=ce,J.CLOSED=ve,J.prototype.withCredentials=void 0;var Ue=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Ue=J),function(h){{var b=h(t);b!==void 0&&(e.exports=b)}}(function(h){h.EventSourcePolyfill=J,h.NativeEventSource=l,h.EventSource=Ue})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ii:globalThis)})(hr,hr.exports);var _s=hr.exports;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("./CasinoTournamentsFilterController-BtuK-ddv.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-filter-controller")&&customElements.define("casino-tournaments-filter-controller",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("./CasinoTournamentsListController-BinvLjvx.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",t.element)})}const Xr=e=>e.length>0&&e!="false";function Es(e){Qr(e,"svelte-197w647","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emfe-w-color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emfe-w-color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}")}function xs(e){let t,r,n,i,o,s,a=e[18]&&zr(e);function l(p,E){return p[19]==0?Ss:Ts}let u=l(e),c=u(e),d=!e[20]&&Wr(e);return{c(){t=X("div"),r=X("div"),n=X("div"),a&&a.c(),i=Tt(),o=X("div"),c.c(),s=Tt(),d&&d.c(),U(n,"class","FirstRow"),U(n,"part","FirstRow"),U(o,"class","SecondRow"),U(o,"part","SecondRow"),U(r,"class","Tournaments"),U(r,"part","Tournaments"),U(t,"class","TournamentsWrapper"),U(t,"part","TournamentsWrapper")},m(p,E){he(p,t,E),ee(t,r),ee(r,n),a&&a.m(n,null),ee(r,i),ee(r,o),c.m(o,null),ee(r,s),d&&d.m(r,null)},p(p,E){p[18]?a?a.p(p,E):(a=zr(p),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u===(u=l(p))&&c?c.p(p,E):(c.d(1),c=u(p),c&&(c.c(),c.m(o,null))),p[20]?d&&(d.d(1),d=null):d?d.p(p,E):(d=Wr(p),d.c(),d.m(r,null))},d(p){p&&te(t),a&&a.d(),c.d(),d&&d.d()}}}function ws(e){let t,r=e[21]("500")+"",n,i,o,s;return{c(){t=X("p"),n=Pe(r),i=Tt(),o=X("p"),s=Pe(e[16])},m(a,l){he(a,t,l),ee(t,n),he(a,i,l),he(a,o,l),ee(o,s)},p(a,l){l[0]&2097152&&r!==(r=a[21]("500")+"")&&ze(n,r),l[0]&65536&&ze(s,a[16])},d(a){a&&(te(t),te(i),te(o))}}}function zr(e){let t;return{c(){t=X("casino-tournaments-filter-controller"),T(t,"clientstyling",e[12]),T(t,"clientstylingurl",e[13]),T(t,"filters",Bs),T(t,"activefilters",e[5]),T(t,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(r,n){he(r,t,n)},p(r,n){n[0]&4096&&T(t,"clientstyling",r[12]),n[0]&8192&&T(t,"clientstylingurl",r[13]),n[0]&32&&T(t,"activefilters",r[5])},d(r){r&&te(t)}}}function Ts(e){let t;return{c(){t=X("casino-tournaments-list-controller"),T(t,"clientstyling",e[12]),T(t,"clientstylingurl",e[13]),T(t,"userid",e[1]),T(t,"numberoftournaments",e[4]),T(t,"loginurl",e[8]),T(t,"loginevent",e[6]),T(t,"registerurl",e[9]),T(t,"registerevent",e[7]),T(t,"lang",e[3]),T(t,"currency",e[10]),T(t,"keepbrowsercontext",e[11]),T(t,"session",e[0]),T(t,"endpoint",e[2]),T(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
11
+ `,Ae+=Ee):_e==="id"?it=Ee:_e==="event"?G=Ee:_e==="retry"?(v=nt(Ee,v),w=v):_e==="heartbeatTimeout"&&(x=nt(Ee,x),k!==0&&(i(k),k=n(function(){ot()},x)))}if(Q===se){if(Ae!==""){R=it,G===""&&(G="message");var Ge=new ct(G,{data:Ae.slice(1),lastEventId:it});if(h.dispatchEvent(Ge),G==="open"?Se(h,h.onopen,Ge):G==="message"?Se(h,h.onmessage,Ge):G==="error"&&Se(h,h.onerror,Ge),q===ve)return}Ae="",G=""}Q=ue===13?oe:se}else Q===se&&(Ft=z,Q=ye),Q===ye?ue===58&&(Le=z+1,Q=tt):Q===tt&&(Q=be)}}},gr=function(V){if(q===ce||q===W){q=Ie,k!==0&&(i(k),k=0),k=n(function(){ot()},w),w=Fe(Math.min(v*16,w*2)),h.readyState=W;var j=new et("error",{error:V});h.dispatchEvent(j),Se(h,h.onerror,j),V!=null&&console.error(V)}},Ut=function(){q=ve,I!=null&&(I.abort(),I=void 0),k!==0&&(i(k),k=0),h.readyState=ve},ot=function(){if(k=0,q!==Ie){if(!C&&I!=null)gr(new Error("No activity within "+x+" milliseconds. "+(q===W?"No response received.":L+" chars received.")+" Reconnecting.")),I!=null&&(I.abort(),I=void 0);else{var V=Math.max((C||Date.now())+x-Date.now(),1);C=!1,k=n(function(){ot()},V)}return}C=!1,L=0,k=n(function(){ot()},x),q=W,Ae="",G="",it=R,pt="",Ft=0,Le=0,Q=se;var j=b;if(b.slice(0,5)!=="data:"&&b.slice(0,5)!=="blob:"&&R!==""){var ae=b.indexOf("?");j=ae===-1?b:b.slice(0,ae+1)+b.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Ee,Ge){return Ge===y?"":Ee}),j+=(b.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(R)}var ue=h.withCredentials,Y={};Y.Accept="text/event-stream";var z=h.headers;if(z!=null)for(var _e in z)Object.prototype.hasOwnProperty.call(z,_e)&&(Y[_e]=z[_e]);try{I=N.open(S,Un,Gn,gr,j,ue,Y)}catch(Ee){throw Ut(),Ee}};h.url=b,h.readyState=W,h.withCredentials=m,h.headers=_,h._close=Ut,ot()}J.prototype=Object.create(pe.prototype),J.prototype.CONNECTING=W,J.prototype.OPEN=ce,J.prototype.CLOSED=ve,J.prototype.close=function(){this._close()},J.CONNECTING=W,J.OPEN=ce,J.CLOSED=ve,J.prototype.withCredentials=void 0;var Ue=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Ue=J),function(h){{var b=h(t);b!==void 0&&(e.exports=b)}}(function(h){h.EventSourcePolyfill=J,h.NativeEventSource=l,h.EventSource=Ue})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ii:globalThis)})(hr,hr.exports);var _s=hr.exports;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("./CasinoTournamentsFilterController-DnQQ0cGj.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-filter-controller")&&customElements.define("casino-tournaments-filter-controller",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("./CasinoTournamentsListController-Bp4JWrU7.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",t.element)})}const Xr=e=>e.length>0&&e!="false";function Es(e){Qr(e,"svelte-197w647","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emfe-w-color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emfe-w-color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}")}function xs(e){let t,r,n,i,o,s,a=e[18]&&zr(e);function l(p,E){return p[19]==0?Ss:Ts}let u=l(e),c=u(e),d=!e[20]&&Wr(e);return{c(){t=X("div"),r=X("div"),n=X("div"),a&&a.c(),i=Tt(),o=X("div"),c.c(),s=Tt(),d&&d.c(),U(n,"class","FirstRow"),U(n,"part","FirstRow"),U(o,"class","SecondRow"),U(o,"part","SecondRow"),U(r,"class","Tournaments"),U(r,"part","Tournaments"),U(t,"class","TournamentsWrapper"),U(t,"part","TournamentsWrapper")},m(p,E){he(p,t,E),ee(t,r),ee(r,n),a&&a.m(n,null),ee(r,i),ee(r,o),c.m(o,null),ee(r,s),d&&d.m(r,null)},p(p,E){p[18]?a?a.p(p,E):(a=zr(p),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u===(u=l(p))&&c?c.p(p,E):(c.d(1),c=u(p),c&&(c.c(),c.m(o,null))),p[20]?d&&(d.d(1),d=null):d?d.p(p,E):(d=Wr(p),d.c(),d.m(r,null))},d(p){p&&te(t),a&&a.d(),c.d(),d&&d.d()}}}function ws(e){let t,r=e[21]("500")+"",n,i,o,s;return{c(){t=X("p"),n=Pe(r),i=Tt(),o=X("p"),s=Pe(e[16])},m(a,l){he(a,t,l),ee(t,n),he(a,i,l),he(a,o,l),ee(o,s)},p(a,l){l[0]&2097152&&r!==(r=a[21]("500")+"")&&ze(n,r),l[0]&65536&&ze(s,a[16])},d(a){a&&(te(t),te(i),te(o))}}}function zr(e){let t;return{c(){t=X("casino-tournaments-filter-controller"),T(t,"clientstyling",e[12]),T(t,"clientstylingurl",e[13]),T(t,"filters",Bs),T(t,"activefilters",e[5]),T(t,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(r,n){he(r,t,n)},p(r,n){n[0]&4096&&T(t,"clientstyling",r[12]),n[0]&8192&&T(t,"clientstylingurl",r[13]),n[0]&32&&T(t,"activefilters",r[5])},d(r){r&&te(t)}}}function Ts(e){let t;return{c(){t=X("casino-tournaments-list-controller"),T(t,"clientstyling",e[12]),T(t,"clientstylingurl",e[13]),T(t,"userid",e[1]),T(t,"numberoftournaments",e[4]),T(t,"loginurl",e[8]),T(t,"loginevent",e[6]),T(t,"registerurl",e[9]),T(t,"registerevent",e[7]),T(t,"lang",e[3]),T(t,"currency",e[10]),T(t,"keepbrowsercontext",e[11]),T(t,"session",e[0]),T(t,"endpoint",e[2]),T(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
12
12
  TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
13
13
  TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
14
14
  TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`)},m(r,n){he(r,t,n)},p(r,n){n[0]&4096&&T(t,"clientstyling",r[12]),n[0]&8192&&T(t,"clientstylingurl",r[13]),n[0]&2&&T(t,"userid",r[1]),n[0]&16&&T(t,"numberoftournaments",r[4]),n[0]&256&&T(t,"loginurl",r[8]),n[0]&64&&T(t,"loginevent",r[6]),n[0]&512&&T(t,"registerurl",r[9]),n[0]&128&&T(t,"registerevent",r[7]),n[0]&8&&T(t,"lang",r[3]),n[0]&1024&&T(t,"currency",r[10]),n[0]&2048&&T(t,"keepbrowsercontext",r[11]),n[0]&1&&T(t,"session",r[0]),n[0]&4&&T(t,"endpoint",r[2])},d(r){r&&te(t)}}}function Ss(e){let t;function r(o,s){return o[17]?Hs:As}let n=r(e),i=n(e);return{c(){i.c(),t=Yr()},m(o,s){i.m(o,s),he(o,t,s)},p(o,s){n===(n=r(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(t.parentNode,t)))},d(o){o&&te(t),i.d(o)}}}function As(e){let t,r=e[21]("noTournaments")+"",n;return{c(){t=X("p"),n=Pe(r),U(t,"class","NoTournaments"),U(t,"part","NoTournaments")},m(i,o){he(i,t,o),ee(t,n)},p(i,o){o[0]&2097152&&r!==(r=i[21]("noTournaments")+"")&&ze(n,r)},d(i){i&&te(t)}}}function Hs(e){let t,r=e[21]("loading")+"",n;return{c(){t=X("p"),n=Pe(r),U(t,"class","LoadingMessage"),U(t,"part","LoadingMessage")},m(i,o){he(i,t,o),ee(t,n)},p(i,o){o[0]&2097152&&r!==(r=i[21]("loading")+"")&&ze(n,r)},d(i){i&&te(t)}}}function Wr(e){let t,r,n,i=e[21]("showMore")+"",o,s,a;return{c(){t=X("div"),r=X("div"),n=X("button"),o=Pe(i),U(n,"class","ShowMoreButton"),U(n,"part","ShowMoreButton"),U(n,"title","Show More"),U(r,"class","CenterButton"),U(r,"part","CenterButton"),U(t,"class","ThirdRow"),U(t,"part","ThirdRow")},m(l,u){he(l,t,u),ee(t,r),ee(r,n),ee(n,o),s||(a=St(n,"click",e[32]),s=!0)},p(l,u){u[0]&2097152&&i!==(i=l[21]("showMore")+"")&&ze(o,i)},d(l){l&&te(t),s=!1,a()}}}function Ps(e){let t;function r(o,s){return o[15]?ws:xs}let n=r(e),i=n(e);return{c(){t=X("div"),i.c()},m(o,s){he(o,t,s),i.m(t,null),e[33](t)},p(o,s){n===(n=r(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(t,null)))},i:le,o:le,d(o){o&&te(t),i.d(),e[33](null)}}}let Bs="All,Scheduled,Ongoing,Finished";function Cs(e,t,r){let n;Jr(e,Rn,f=>r(21,n=f));let{session:i=""}=t,{userid:o=""}=t,{endpoint:s=""}=t,{lang:a="en"}=t,{translationurl:l=""}=t,{numberoftournaments:u="6"}=t,{showmorestep:c="2"}=t,{filters:d="All"}=t,{loginevent:p=""}=t,{registerevent:E=""}=t,{loginurl:O=""}=t,{registerurl:P=""}=t,{currency:re="EUR"}=t,{keepbrowsercontext:me="false"}=t,{sorttype:ie=""}=t,{sortorder:M=""}=t,{starttimeafter:$=""}=t,{showanonymoustournaments:Z="true"}=t,{clientstyling:fe=""}=t,{clientstylingurl:ge=""}=t,{delaybeforeload:De=1e3}=t,Be=!1,pe="",Ce=!1,ne="",ct=window.navigator.userAgent,Oe=!0,et=!1,Ie=!1,W,ce=0,ve=!1,oe=6,se=!0,ye=[],tt,be,rt=!1,dt;ys({withLocale:"en",translations:{}});const Mt=()=>{fetch(l).then(S=>S.json()).then(S=>{dt=S,Object.keys(S).forEach(N=>{Zt(N,S[N])})}).catch(S=>{console.log(S)})},nt=f=>{f&&Object.keys(f).forEach(S=>{Zt(S,f[S])})};Object.keys(Vr).forEach(f=>{Zt(f,Vr[f])});const Fe=f=>{f.data&&f.data.type==="UserSessionID"&&(Ce=!0,r(30,ne=f.data.session),f.data.userid,J(s,0,oe)),f.data&&f.data.type==="TournamentsFiltersSelected"&&(ye=f.data.filters,J(s,0,oe)),f.data&&f.data.type==="TournamentThumbnailMounted"&&nt(dt)},Se=f=>f=="Scheduled"?"Unstarted":f=="Ongoing"?"Running":"Closing|Closed",J=(f,S,N)=>Ne(this,null,function*(){r(17,Oe=!0),r(19,ce=0);const I=yield mt(f,S,N);setTimeout(()=>{window.postMessage({type:"TournamentList",tournamentList:I.items},window.location.href)},50),r(17,Oe=!1)}),Rt=(f,S,N)=>Ne(this,null,function*(){const I=yield mt(f,S,N);window.postMessage({type:"TournamentListShowMore",tournamentList:I.items},window.location.href)}),Dt=()=>{const f=new Date;return $?f.setDate(f.getDate()-Number($)):f.setMonth(f.getMonth()-1),f.toISOString().substring(0,10)},mt=(f,S,N)=>Ne(this,null,function*(){let I=new URL(`${f}/v1/tournaments`),k=new Headers;I.searchParams.append("pagination",`offset=${S},limit=${N}`),I.searchParams.append("sortField","StartTime"),I.searchParams.append("sortOrder",M||"desc"),I.searchParams.append("language",a);const q={StartTimeAfter:Dt()};!Xr(i)&&Z==="false"&&(q.tags="no-role-set"),ye.length>0&&ye[0]!="All"&&(q.state=ye.map(G=>Se(G)).join("|"));const Ae=Object.keys(q).map(G=>`${G}=${q[G]}`).join(",");return I.searchParams.append("filter",Ae),I.searchParams.append("platform",Dn(ct)),ie&&I.searchParams.append("sortType",ie),Ce&&k.append("X-SessionID",ne),fetch(I,{method:"GET",headers:k,cache:"no-cache"}).then(G=>G.json()).then(G=>(tt=I.searchParams.toString(),r(19,ce=G.total),oe>=ce?r(20,se=!0):r(20,se=!1),Ie||h(),G))}),Ue=f=>{if(f.type!="message")return;let S=f.data;if(S)try{let N=JSON.parse(S);if(!N||!N.item)return;let I=N.item;N.messageType=="TournamentUpdate"&&window.postMessage({type:"UpdateTournamentView",tournamentData:I},window.location.href),N.messageType=="TournamentRemove"&&window.postMessage({type:"TournamentList",tournamentList:N.items},window.location.href)}catch(N){console.error(N)}},h=()=>{Ie=!0,setTimeout(()=>{Ie=!1},1e3),be&&(be.removeEventListener("message",Ue),be.close());let f=`${s}/v1/tournaments/updates?${tt}`;be=new _s.EventSourcePolyfill(f,{headers:{accept:"text/event-stream","X-SessionId":i}}),typeof be!="undefined"&&be.addEventListener("message",Ue)},b=()=>Ne(this,null,function*(){let f=oe;const S=parseInt(c,10);oe+=S,window.postMessage({type:"TournamentsPagination",offset:0,limit:oe},window.location.href),yield Rt(s,f,S),oe>=ce&&r(20,se=!0)}),g=()=>(s||(r(16,pe="Endpoint is missing! Please provide a valid endpointURL."),r(15,Be=!0),console.error(pe)),(!a||a.length!=2)&&(r(16,pe="Language is missing! Please provide a valid language (alpha2code)"),r(15,Be=!0),console.error(pe)),Be),m=()=>{if(!ve)return!1;g()||(oe=parseInt(u,10),kr(a),J(s,0,oe))},y=()=>{kr(a)},v=()=>{ye=d.split(","),r(18,et=!0)},x=()=>{Xr(i)?(Ce=!0,r(30,ne=i)):(Ce=!1,r(30,ne=""))},R=()=>Ne(this,null,function*(){rt||(rt=!0,yield m(),rt=!1)}),w=()=>{let f=document.createElement("style");f.innerHTML=fe,W.appendChild(f)},C=()=>{let f=new URL(ge),S=document.createElement("style");fetch(f.href).then(N=>N.text()).then(N=>{S.innerHTML=N,setTimeout(()=>{W.appendChild(S)},1),setTimeout(()=>{},500)})};Kr(()=>(setTimeout(()=>{r(31,ve=!0)},De),window.addEventListener("message",Fe,!1),()=>{window.removeEventListener("message",Fe),be&&(be.removeEventListener("message",Ue),be.close())}));const L=()=>b();function _(f){At[f?"unshift":"push"](()=>{W=f,r(14,W)})}return e.$$set=f=>{"session"in f&&r(0,i=f.session),"userid"in f&&r(1,o=f.userid),"endpoint"in f&&r(2,s=f.endpoint),"lang"in f&&r(3,a=f.lang),"translationurl"in f&&r(23,l=f.translationurl),"numberoftournaments"in f&&r(4,u=f.numberoftournaments),"showmorestep"in f&&r(24,c=f.showmorestep),"filters"in f&&r(5,d=f.filters),"loginevent"in f&&r(6,p=f.loginevent),"registerevent"in f&&r(7,E=f.registerevent),"loginurl"in f&&r(8,O=f.loginurl),"registerurl"in f&&r(9,P=f.registerurl),"currency"in f&&r(10,re=f.currency),"keepbrowsercontext"in f&&r(11,me=f.keepbrowsercontext),"sorttype"in f&&r(25,ie=f.sorttype),"sortorder"in f&&r(26,M=f.sortorder),"starttimeafter"in f&&r(27,$=f.starttimeafter),"showanonymoustournaments"in f&&r(28,Z=f.showanonymoustournaments),"clientstyling"in f&&r(12,fe=f.clientstyling),"clientstylingurl"in f&&r(13,ge=f.clientstylingurl),"delaybeforeload"in f&&r(29,De=f.delaybeforeload)},e.$$.update=()=>{e.$$.dirty[0]&20480&&W&&fe&&w(),e.$$.dirty[0]&24576&&W&&ge&&C(),e.$$.dirty[0]&2,e.$$.dirty[0]&32&&d&&v(),e.$$.dirty[0]&8&&a&&y(),e.$$.dirty[0]&8388608&&l&&Mt(),e.$$.dirty[1]&1&&ve&&m(),e.$$.dirty[0]&1&&(i===""||i)&&x(),e.$$.dirty[0]&1073741824&&(ne===""||ne)&&R(),e.$$.dirty[0]&285212700&&s&&u&&c&&a&&Z&&R()},[i,o,s,a,u,d,p,E,O,P,re,me,fe,ge,W,Be,pe,Oe,et,ce,se,n,b,l,c,ie,M,$,Z,De,ne,ve,L,_]}class Fn extends nn{constructor(t){super(),en(this,t,Cs,Ps,fr,{session:0,userid:1,endpoint:2,lang:3,translationurl:23,numberoftournaments:4,showmorestep:24,filters:5,loginevent:6,registerevent:7,loginurl:8,registerurl:9,currency:10,keepbrowsercontext:11,sorttype:25,sortorder:26,starttimeafter:27,showanonymoustournaments:28,clientstyling:12,clientstylingurl:13,delaybeforeload:29},Es,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),D()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),D()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$$set({endpoint:t}),D()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),D()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),D()}get numberoftournaments(){return this.$$.ctx[4]}set numberoftournaments(t){this.$$set({numberoftournaments:t}),D()}get showmorestep(){return this.$$.ctx[24]}set showmorestep(t){this.$$set({showmorestep:t}),D()}get filters(){return this.$$.ctx[5]}set filters(t){this.$$set({filters:t}),D()}get loginevent(){return this.$$.ctx[6]}set loginevent(t){this.$$set({loginevent:t}),D()}get registerevent(){return this.$$.ctx[7]}set registerevent(t){this.$$set({registerevent:t}),D()}get loginurl(){return this.$$.ctx[8]}set loginurl(t){this.$$set({loginurl:t}),D()}get registerurl(){return this.$$.ctx[9]}set registerurl(t){this.$$set({registerurl:t}),D()}get currency(){return this.$$.ctx[10]}set currency(t){this.$$set({currency:t}),D()}get keepbrowsercontext(){return this.$$.ctx[11]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),D()}get sorttype(){return this.$$.ctx[25]}set sorttype(t){this.$$set({sorttype:t}),D()}get sortorder(){return this.$$.ctx[26]}set sortorder(t){this.$$set({sortorder:t}),D()}get starttimeafter(){return this.$$.ctx[27]}set starttimeafter(t){this.$$set({starttimeafter:t}),D()}get showanonymoustournaments(){return this.$$.ctx[28]}set showanonymoustournaments(t){this.$$set({showanonymoustournaments:t}),D()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),D()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),D()}get delaybeforeload(){return this.$$.ctx[29]}set delaybeforeload(t){this.$$set({delaybeforeload:t}),D()}}rn(Fn,{session:{},userid:{},endpoint:{},lang:{},translationurl:{},numberoftournaments:{},showmorestep:{},filters:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},sorttype:{},sortorder:{},starttimeafter:{},showanonymoustournaments:{},clientstyling:{},clientstylingurl:{},delaybeforeload:{}},[],[],!0);const Os=Object.freeze(Object.defineProperty({__proto__:null,default:Fn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Me;exports.$format=Rn;exports.$locale=we;exports.CasinoTournamentsController_ce=Os;exports.SvelteComponent=nn;exports.action_destroyer=qn;exports.addMessages=pr;exports.add_iframe_resize_listener=ri;exports.add_render_callback=Ht;exports.append=ee;exports.append_styles=Qr;exports.attr=U;exports.binding_callbacks=At;exports.component_subscribe=Jr;exports.create_custom_element=rn;exports.destroy_each=Qn;exports.detach=te;exports.element=X;exports.empty=Yr;exports.ensure_array_like=ci;exports.flush=D;exports.getDevice=Dn;exports.init=en;exports.insert=he;exports.isMobile=vs;exports.is_function=ft;exports.listen=St;exports.noop=le;exports.onMount=Kr;exports.run_all=Qe;exports.safe_not_equal=fr;exports.set_custom_element_data=T;exports.set_data=ze;exports.set_style=ei;exports.space=Tt;exports.src_url_equal=zn;exports.svg_element=Yn;exports.text=Pe;exports.toggle_class=ni;
@@ -4789,7 +4789,7 @@ if (typeof window != "undefined") {
4789
4789
  }
4790
4790
  };
4791
4791
  };
4792
- customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-Chy_sE0V.js").then(({ default: t }) => {
4792
+ customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-Avy9JgA8.js").then(({ default: t }) => {
4793
4793
  !customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
4794
4794
  });
4795
4795
  }
@@ -4805,7 +4805,7 @@ if (typeof window != "undefined") {
4805
4805
  }
4806
4806
  };
4807
4807
  };
4808
- customElements.define = e(customElements.define), import("./CasinoTournamentsListController-DXHqP9An.js").then(({ default: t }) => {
4808
+ customElements.define = e(customElements.define), import("./CasinoTournamentsListController-CKTF0IWN.js").then(({ default: t }) => {
4809
4809
  !customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
4810
4810
  });
4811
4811
  }
@@ -1,4 +1,4 @@
1
- import { a as X, S as Y, i as x, f as z, c as $, s as ee, b as le, e as E, d as f, g as C, h as k, n as L, j as T, k as te, l as I, t as S, m as N, o as F, p as B, q as ie, r as ne, u as se, v as P, $ as oe } from "./CasinoTournamentsController-Cr8b4j7l.js";
1
+ import { a as X, S as Y, i as x, f as z, c as $, s as ee, b as le, e as E, d as f, g as C, h as k, n as L, j as T, k as te, l as I, t as S, m as N, o as F, p as B, q as ie, r as ne, u as se, v as P, $ as oe } from "./CasinoTournamentsController-CwoV5JAv.js";
2
2
  function U(e, l) {
3
3
  X(e, l);
4
4
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-CQ5C1jDl.cjs");function T(t,l){e.addMessages(t,l)}const A={en:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"},hr:{tournaments:"Turniri",all:"Svi",scheduled:"Planirani",ongoing:"U tijeku",finished:"Završeni"},"zh-hk":{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"},fr:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"},ro:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În curs",finished:"Finalizat"},tr:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam ediyor",finished:"Tamamlanmış"},el:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"},es:{tournaments:"Torneos",all:"Todos",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado"},hu:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"},pt:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"}};function H(t){e.append_styles(t,"svelte-ucbx5v","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}")}function N(t,l,i){const n=t.slice();return n[22]=l[i],n[24]=i,n}function S(t){let l,i,n=t[4]("tournaments")+"",s,F,M,b=e.ensure_array_like(t[1]),a=[];for(let o=0;o<b.length;o+=1)a[o]=L(N(t,b,o));return{c(){l=e.element("ul"),i=e.element("li"),s=e.text(n),F=e.text(":"),M=e.space();for(let o=0;o<a.length;o+=1)a[o].c();e.attr(i,"class","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(o,_){e.insert(o,l,_),e.append(l,i),e.append(i,s),e.append(i,F),e.append(l,M);for(let f=0;f<a.length;f+=1)a[f]&&a[f].m(l,null)},p(o,_){if(_&16&&n!==(n=o[4]("tournaments")+"")&&e.set_data(s,n),_&126){b=e.ensure_array_like(o[1]);let f;for(f=0;f<b.length;f+=1){const c=N(o,b,f);a[f]?a[f].p(c,_):(a[f]=L(c),a[f].c(),a[f].m(l,null))}for(;f<a.length;f+=1)a[f].d(1);a.length=b.length}},d(o){o&&e.detach(l),e.destroy_each(a,o)}}}function E(t){let l,i;return{c(){l=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","16"),e.attr(l,"height","16"),e.attr(l,"fill","currentColor"),e.attr(l,"class","bi bi-check"),e.attr(l,"part","bi bi-check"),e.attr(l,"viewBox","0 0 16 16")},m(n,s){e.insert(n,l,s),e.append(l,i)},d(n){n&&e.detach(l)}}}function z(t){let l=t[4]("scheduled")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("scheduled")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function B(t){let l=t[4]("ongoing")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("ongoing")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function O(t){let l=t[4]("finished")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("finished")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function j(t){let l=t[4]("all")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("all")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function L(t){let l,i,n,s,F,M,b,a,o,_,f,c,u=(t[2][t[24]]==1||t[3]&&t[24]==0)&&E(),g=t[22]=="Scheduled"&&z(t),m=t[22]=="Ongoing"&&B(t),h=t[22]=="Finished"&&O(t),p=t[22]=="All"&&j(t);function k(){return t[12](t[22],t[24])}return{c(){l=e.element("li"),i=e.element("button"),u&&u.c(),n=e.space(),s=e.element("div"),g&&g.c(),F=e.space(),m&&m.c(),M=e.space(),h&&h.c(),b=e.space(),p&&p.c(),_=e.space(),e.attr(s,"class","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(s,"part","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"class",a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part",o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersItem"),e.attr(l,"part","FiltersItem")},m(v,C){e.insert(v,l,C),e.append(l,i),u&&u.m(i,null),e.append(i,n),e.append(i,s),g&&g.m(s,null),e.append(s,F),m&&m.m(s,null),e.append(s,M),h&&h.m(s,null),e.append(s,b),p&&p.m(s,null),e.append(l,_),f||(c=e.listen(l,"click",k),f=!0)},p(v,C){t=v,t[2][t[24]]==1||t[3]&&t[24]==0?u||(u=E(),u.c(),u.m(i,n)):u&&(u.d(1),u=null),t[22]=="Scheduled"?g?g.p(t,C):(g=z(t),g.c(),g.m(s,F)):g&&(g.d(1),g=null),t[22]=="Ongoing"?m?m.p(t,C):(m=B(t),m.c(),m.m(s,M)):m&&(m.d(1),m=null),t[22]=="Finished"?h?h.p(t,C):(h=O(t),h.c(),h.m(s,b)):h&&(h.d(1),h=null),t[22]=="All"?p?p.p(t,C):(p=j(t),p.c(),p.m(s,null)):p&&(p.d(1),p=null),C&12&&a!==(a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"class",a),C&12&&o!==(o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"part",o)},d(v){v&&e.detach(l),u&&u.d(),g&&g.d(),m&&m.d(),h&&h.d(),p&&p.d(),f=!1,c()}}}function R(t){let l,i=t[1].length>0&&S(t);return{c(){l=e.element("div"),i&&i.c(),e.attr(l,"class","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(n,s){e.insert(n,l,s),i&&i.m(l,null),t[13](l)},p(n,[s]){n[1].length>0?i?i.p(n,s):(i=S(n),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(n){n&&e.detach(l),i&&i.d(),t[13](null)}}}function q(t,l,i){let n;e.component_subscribe(t,e.$format,r=>i(4,n=r));let{filters:s=""}=l,{activefilters:F=""}=l,{translationurl:M=""}=l,{clientstyling:b=""}=l,{clientstylingurl:a=""}=l,o,_=[],f=0,c=new Array(100),u=!0,g=window.navigator.userAgent;const m=()=>{fetch(M).then(d=>d.json()).then(d=>{Object.keys(d).forEach(y=>{T(y,d[y])})}).catch(d=>{console.log(d)})};Object.keys(A).forEach(r=>{T(r,A[r])});const h=(r,d)=>{if(d==0)i(3,u=!0),i(2,c=new Array(f)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(i(3,u=!1),c[d]==1?(i(2,c[d]=0,c),c.indexOf(1)==-1&&i(3,u=!0)):i(2,c[d]=1,c),c.indexOf(1)==-1)window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{let y=[];for(let w=0;w<_.length;w++)c[w]==1&&y.push(_[w]);window.postMessage({type:"TournamentsFiltersSelected",filters:y},window.location.href)}},p=()=>{i(1,_=s.split(",")),f=_.length},k=()=>{let r=F.split(",");i(2,c=new Array(f)),r.indexOf("All")!=-1?i(3,u=!0):(i(3,u=!1),r.forEach(d=>{let y=_.indexOf(d);y>0&&i(2,c[y]=1,c)}))},v=()=>{let r=document.createElement("style");r.innerHTML=b,o.appendChild(r)},C=()=>{let r=new URL(a),d=document.createElement("style");fetch(r.href).then(y=>y.text()).then(y=>{d.innerHTML=y,setTimeout(()=>{o.appendChild(d)},1),setTimeout(()=>{},500)})},I=(r,d)=>h(r,d);function U(r){e.binding_callbacks[r?"unshift":"push"](()=>{o=r,i(0,o)})}return t.$$set=r=>{"filters"in r&&i(7,s=r.filters),"activefilters"in r&&i(8,F=r.activefilters),"translationurl"in r&&i(9,M=r.translationurl),"clientstyling"in r&&i(10,b=r.clientstyling),"clientstylingurl"in r&&i(11,a=r.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&1025&&o&&b&&v(),t.$$.dirty&2049&&o&&a&&C(),t.$$.dirty&512&&M&&m(),t.$$.dirty&128&&s&&p(),t.$$.dirty&256&&F&&k()},[o,_,c,u,n,g,h,s,F,M,b,a,I,U]}class P extends e.SvelteComponent{constructor(l){super(),e.init(this,l,q,R,e.safe_not_equal,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11},H)}get filters(){return this.$$.ctx[7]}set filters(l){this.$$set({filters:l}),e.flush()}get activefilters(){return this.$$.ctx[8]}set activefilters(l){this.$$set({activefilters:l}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}}e.create_custom_element(P,{filters:{},activefilters:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-C-KFF5ja.cjs");function T(t,l){e.addMessages(t,l)}const A={en:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"},hr:{tournaments:"Turniri",all:"Svi",scheduled:"Planirani",ongoing:"U tijeku",finished:"Završeni"},"zh-hk":{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"},fr:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"},ro:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În curs",finished:"Finalizat"},tr:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam ediyor",finished:"Tamamlanmış"},el:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"},es:{tournaments:"Torneos",all:"Todos",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado"},hu:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"},pt:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"}};function H(t){e.append_styles(t,"svelte-ucbx5v","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}")}function N(t,l,i){const n=t.slice();return n[22]=l[i],n[24]=i,n}function S(t){let l,i,n=t[4]("tournaments")+"",s,F,M,b=e.ensure_array_like(t[1]),a=[];for(let o=0;o<b.length;o+=1)a[o]=L(N(t,b,o));return{c(){l=e.element("ul"),i=e.element("li"),s=e.text(n),F=e.text(":"),M=e.space();for(let o=0;o<a.length;o+=1)a[o].c();e.attr(i,"class","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(o,_){e.insert(o,l,_),e.append(l,i),e.append(i,s),e.append(i,F),e.append(l,M);for(let f=0;f<a.length;f+=1)a[f]&&a[f].m(l,null)},p(o,_){if(_&16&&n!==(n=o[4]("tournaments")+"")&&e.set_data(s,n),_&126){b=e.ensure_array_like(o[1]);let f;for(f=0;f<b.length;f+=1){const c=N(o,b,f);a[f]?a[f].p(c,_):(a[f]=L(c),a[f].c(),a[f].m(l,null))}for(;f<a.length;f+=1)a[f].d(1);a.length=b.length}},d(o){o&&e.detach(l),e.destroy_each(a,o)}}}function E(t){let l,i;return{c(){l=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","16"),e.attr(l,"height","16"),e.attr(l,"fill","currentColor"),e.attr(l,"class","bi bi-check"),e.attr(l,"part","bi bi-check"),e.attr(l,"viewBox","0 0 16 16")},m(n,s){e.insert(n,l,s),e.append(l,i)},d(n){n&&e.detach(l)}}}function z(t){let l=t[4]("scheduled")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("scheduled")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function B(t){let l=t[4]("ongoing")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("ongoing")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function O(t){let l=t[4]("finished")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("finished")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function j(t){let l=t[4]("all")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("all")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function L(t){let l,i,n,s,F,M,b,a,o,_,f,c,u=(t[2][t[24]]==1||t[3]&&t[24]==0)&&E(),g=t[22]=="Scheduled"&&z(t),m=t[22]=="Ongoing"&&B(t),h=t[22]=="Finished"&&O(t),p=t[22]=="All"&&j(t);function k(){return t[12](t[22],t[24])}return{c(){l=e.element("li"),i=e.element("button"),u&&u.c(),n=e.space(),s=e.element("div"),g&&g.c(),F=e.space(),m&&m.c(),M=e.space(),h&&h.c(),b=e.space(),p&&p.c(),_=e.space(),e.attr(s,"class","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(s,"part","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"class",a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part",o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersItem"),e.attr(l,"part","FiltersItem")},m(v,C){e.insert(v,l,C),e.append(l,i),u&&u.m(i,null),e.append(i,n),e.append(i,s),g&&g.m(s,null),e.append(s,F),m&&m.m(s,null),e.append(s,M),h&&h.m(s,null),e.append(s,b),p&&p.m(s,null),e.append(l,_),f||(c=e.listen(l,"click",k),f=!0)},p(v,C){t=v,t[2][t[24]]==1||t[3]&&t[24]==0?u||(u=E(),u.c(),u.m(i,n)):u&&(u.d(1),u=null),t[22]=="Scheduled"?g?g.p(t,C):(g=z(t),g.c(),g.m(s,F)):g&&(g.d(1),g=null),t[22]=="Ongoing"?m?m.p(t,C):(m=B(t),m.c(),m.m(s,M)):m&&(m.d(1),m=null),t[22]=="Finished"?h?h.p(t,C):(h=O(t),h.c(),h.m(s,b)):h&&(h.d(1),h=null),t[22]=="All"?p?p.p(t,C):(p=j(t),p.c(),p.m(s,null)):p&&(p.d(1),p=null),C&12&&a!==(a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"class",a),C&12&&o!==(o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"part",o)},d(v){v&&e.detach(l),u&&u.d(),g&&g.d(),m&&m.d(),h&&h.d(),p&&p.d(),f=!1,c()}}}function R(t){let l,i=t[1].length>0&&S(t);return{c(){l=e.element("div"),i&&i.c(),e.attr(l,"class","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(n,s){e.insert(n,l,s),i&&i.m(l,null),t[13](l)},p(n,[s]){n[1].length>0?i?i.p(n,s):(i=S(n),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(n){n&&e.detach(l),i&&i.d(),t[13](null)}}}function q(t,l,i){let n;e.component_subscribe(t,e.$format,r=>i(4,n=r));let{filters:s=""}=l,{activefilters:F=""}=l,{translationurl:M=""}=l,{clientstyling:b=""}=l,{clientstylingurl:a=""}=l,o,_=[],f=0,c=new Array(100),u=!0,g=window.navigator.userAgent;const m=()=>{fetch(M).then(d=>d.json()).then(d=>{Object.keys(d).forEach(y=>{T(y,d[y])})}).catch(d=>{console.log(d)})};Object.keys(A).forEach(r=>{T(r,A[r])});const h=(r,d)=>{if(d==0)i(3,u=!0),i(2,c=new Array(f)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(i(3,u=!1),c[d]==1?(i(2,c[d]=0,c),c.indexOf(1)==-1&&i(3,u=!0)):i(2,c[d]=1,c),c.indexOf(1)==-1)window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{let y=[];for(let w=0;w<_.length;w++)c[w]==1&&y.push(_[w]);window.postMessage({type:"TournamentsFiltersSelected",filters:y},window.location.href)}},p=()=>{i(1,_=s.split(",")),f=_.length},k=()=>{let r=F.split(",");i(2,c=new Array(f)),r.indexOf("All")!=-1?i(3,u=!0):(i(3,u=!1),r.forEach(d=>{let y=_.indexOf(d);y>0&&i(2,c[y]=1,c)}))},v=()=>{let r=document.createElement("style");r.innerHTML=b,o.appendChild(r)},C=()=>{let r=new URL(a),d=document.createElement("style");fetch(r.href).then(y=>y.text()).then(y=>{d.innerHTML=y,setTimeout(()=>{o.appendChild(d)},1),setTimeout(()=>{},500)})},I=(r,d)=>h(r,d);function U(r){e.binding_callbacks[r?"unshift":"push"](()=>{o=r,i(0,o)})}return t.$$set=r=>{"filters"in r&&i(7,s=r.filters),"activefilters"in r&&i(8,F=r.activefilters),"translationurl"in r&&i(9,M=r.translationurl),"clientstyling"in r&&i(10,b=r.clientstyling),"clientstylingurl"in r&&i(11,a=r.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&1025&&o&&b&&v(),t.$$.dirty&2049&&o&&a&&C(),t.$$.dirty&512&&M&&m(),t.$$.dirty&128&&s&&p(),t.$$.dirty&256&&F&&k()},[o,_,c,u,n,g,h,s,F,M,b,a,I,U]}class P extends e.SvelteComponent{constructor(l){super(),e.init(this,l,q,R,e.safe_not_equal,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11},H)}get filters(){return this.$$.ctx[7]}set filters(l){this.$$set({filters:l}),e.flush()}get activefilters(){return this.$$.ctx[8]}set activefilters(l){this.$$set({activefilters:l}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}}e.create_custom_element(P,{filters:{},activefilters:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=P;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./CasinoTournamentsController-CQ5C1jDl.cjs");function Zs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./CasinoTournamentsController-C-KFF5ja.cjs");function Zs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
2
2
  //! version : 2.30.1
3
3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
4
  //! license : MIT
@@ -7,7 +7,7 @@ var qt;function d(){return qt.apply(null,arguments)}function Bs(e){qt=e}function
7
7
  [`+a+"] ";for(i in arguments[0])k(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];r.push(n)}Qt(e+`
8
8
  Arguments: `+Array.prototype.slice.call(r).join("")+`
9
9
  `+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Ut={};function Xt(e,t){d.deprecationHandler!=null&&d.deprecationHandler(e,t),Ut[e]||(Qt(t),Ut[e]=!0)}d.suppressDeprecationWarnings=!1;d.deprecationHandler=null;function Z(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Js(e){var t,s;for(s in e)k(e,s)&&(t=e[s],Z(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function it(e,t){var s=se({},e),r;for(r in t)k(t,r)&&(le(e[r])&&le(t[r])?(s[r]={},se(s[r],e[r]),se(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)k(e,r)&&!k(t,r)&&le(e[r])&&(s[r]=se({},s[r]));return s}function _t(e){e!=null&&this.set(e)}var ot;Object.keys?ot=Object.keys:ot=function(e){var t,s=[];for(t in e)k(e,t)&&s.push(t);return s};var Qs={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Xs(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return Z(r)?r.call(t,s):r}function j(e,t,s){var r=""+Math.abs(e),n=t-r.length,a=e>=0;return(a?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}var yt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,st={},ce={};function f(e,t,s,r){var n=r;typeof r=="string"&&(n=function(){return this[r]()}),e&&(ce[e]=n),t&&(ce[t[0]]=function(){return j(n.apply(this,arguments),t[1],t[2])}),s&&(ce[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function Ks(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $s(e){var t=e.match(yt),s,r;for(s=0,r=t.length;s<r;s++)ce[t[s]]?t[s]=ce[t[s]]:t[s]=Ks(t[s]);return function(n){var a="",i;for(i=0;i<r;i++)a+=Z(t[i])?t[i].call(n,e):t[i];return a}}function Ce(e,t){return e.isValid()?(t=Kt(t,e.localeData()),st[t]=st[t]||$s(t),st[t](e)):e.localeData().invalidDate()}function Kt(e,t){var s=5;function r(n){return t.longDateFormat(n)||n}for(Re.lastIndex=0;s>=0&&Re.test(e);)e=e.replace(Re,r),Re.lastIndex=0,s-=1;return e}var er={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function tr(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(yt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var sr="Invalid date";function rr(){return this._invalidDate}var nr="%d",ar=/\d{1,2}/;function ir(e){return this._ordinal.replace("%d",e)}var or={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function lr(e,t,s,r){var n=this._relativeTime[s];return Z(n)?n(e,t,s,r):n.replace(/%d/i,e)}function ur(e,t){var s=this._relativeTime[e>0?"future":"past"];return Z(s)?s(t):s.replace(/%s/i,t)}var It={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return typeof e=="string"?It[e]||It[e.toLowerCase()]:void 0}function gt(e){var t={},s,r;for(r in e)k(e,r)&&(s=F(r),s&&(t[s]=e[r]));return t}var dr={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function hr(e){var t=[],s;for(s in e)k(e,s)&&t.push({unit:s,priority:dr[s]});return t.sort(function(r,n){return r.priority-n.priority}),t}var $t=/\d/,N=/\d\d/,es=/\d{3}/,wt=/\d{4}/,je=/[+-]?\d{6}/,v=/\d\d?/,ts=/\d\d\d\d?/,ss=/\d\d\d\d\d\d?/,ze=/\d{1,3}/,kt=/\d{1,4}/,Ze=/[+-]?\d{1,6}/,ye=/\d+/,Be=/[+-]?\d+/,fr=/Z|[+-]\d\d:?\d\d/gi,qe=/Z|[+-]\d\d(?::?\d\d)?/gi,cr=/[+-]?\d+(\.\d{1,3})?/,be=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ge=/^[1-9]\d?/,St=/^([1-9]\d|\d)/,Ie;Ie={};function h(e,t,s){Ie[e]=Z(t)?t:function(r,n){return r&&s?s:t}}function mr(e,t){return k(Ie,e)?Ie[e](t._strict,t._locale):new RegExp(_r(e))}function _r(e){return X(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,n,a){return s||r||n||a}))}function X(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function g(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=W(t)),s}var lt={};function M(e,t){var s,r=t,n;for(typeof e=="string"&&(e=[e]),$(t)&&(r=function(a,i){i[t]=g(a)}),n=e.length,s=0;s<n;s++)lt[e[s]]=r}function xe(e,t){M(e,function(s,r,n,a){n._w=n._w||{},t(s,n._w,n,a)})}function yr(e,t,s){t!=null&&k(lt,e)&&lt[e](t,s._a,s,e)}function Je(e){return e%4===0&&e%100!==0||e%400===0}var b=0,J=1,G=2,O=3,U=4,Q=5,oe=6,gr=7,wr=8;f("Y",0,0,function(){var e=this.year();return e<=9999?j(e,4):"+"+e});f(0,["YY",2],0,function(){return this.year()%100});f(0,["YYYY",4],0,"year");f(0,["YYYYY",5],0,"year");f(0,["YYYYYY",6,!0],0,"year");h("Y",Be);h("YY",v,N);h("YYYY",kt,wt);h("YYYYY",Ze,je);h("YYYYYY",Ze,je);M(["YYYYY","YYYYYY"],b);M("YYYY",function(e,t){t[b]=e.length===2?d.parseTwoDigitYear(e):g(e)});M("YY",function(e,t){t[b]=d.parseTwoDigitYear(e)});M("Y",function(e,t){t[b]=parseInt(e,10)});function Me(e){return Je(e)?366:365}d.parseTwoDigitYear=function(e){return g(e)+(g(e)>68?1900:2e3)};var rs=we("FullYear",!0);function kr(){return Je(this.year())}function we(e,t){return function(s){return s!=null?(ns(this,e,s),d.updateOffset(this,t),this):De(this,e)}}function De(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function ns(e,t,s){var r,n,a,i,l;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(n?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(n?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(n?r.setUTCHours(s):r.setHours(s));case"Date":return void(n?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}a=s,i=e.month(),l=e.date(),l=l===29&&i===1&&!Je(a)?28:l,n?r.setUTCFullYear(a,i,l):r.setFullYear(a,i,l)}}function Sr(e){return e=F(e),Z(this[e])?this[e]():this}function Mr(e,t){if(typeof e=="object"){e=gt(e);var s=hr(e),r,n=s.length;for(r=0;r<n;r++)this[s[r].unit](e[s[r].unit])}else if(e=F(e),Z(this[e]))return this[e](t);return this}function Dr(e,t){return(e%t+t)%t}var Y;Array.prototype.indexOf?Y=Array.prototype.indexOf:Y=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Mt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Dr(t,12);return e+=(t-s)/12,s===1?Je(e)?29:28:31-s%7%2}f("M",["MM",2],"Mo",function(){return this.month()+1});f("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});f("MMMM",0,0,function(e){return this.localeData().months(this,e)});h("M",v,ge);h("MM",v,N);h("MMM",function(e,t){return t.monthsShortRegex(e)});h("MMMM",function(e,t){return t.monthsRegex(e)});M(["M","MM"],function(e,t){t[J]=g(e)-1});M(["MMM","MMMM"],function(e,t,s,r){var n=s._locale.monthsParse(e,r,s._strict);n!=null?t[J]=n:_(s).invalidMonth=e});var vr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),as="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),is=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,pr=be,Yr=be;function Or(e,t){return e?I(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||is).test(t)?"format":"standalone"][e.month()]:I(this._months)?this._months:this._months.standalone}function Tr(e,t){return e?I(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[is.test(t)?"format":"standalone"][e.month()]:I(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function br(e,t,s){var r,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=z([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return s?t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null):(n=Y.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:(n=Y.call(this._longMonthsParse,i),n!==-1?n:null)):(n=Y.call(this._longMonthsParse,i),n!==-1?n:(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null))}function xr(e,t,s){var r,n,a;if(this._monthsParseExact)return br.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=z([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function os(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=g(t);else if(t=e.localeData().monthsParse(t),!$(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,Mt(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function ls(e){return e!=null?(os(this,e),d.updateOffset(this,!0),this):De(this,"Month")}function Nr(){return Mt(this.year(),this.month())}function Pr(e){return this._monthsParseExact?(k(this,"_monthsRegex")||us.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(k(this,"_monthsShortRegex")||(this._monthsShortRegex=pr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Wr(e){return this._monthsParseExact?(k(this,"_monthsRegex")||us.call(this),e?this._monthsStrictRegex:this._monthsRegex):(k(this,"_monthsRegex")||(this._monthsRegex=Yr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function us(){function e(m,y){return y.length-m.length}var t=[],s=[],r=[],n,a,i,l;for(n=0;n<12;n++)a=z([2e3,n]),i=X(this.monthsShort(a,"")),l=X(this.months(a,"")),t.push(i),s.push(l),r.push(l),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Rr(e,t,s,r,n,a,i){var l;return e<100&&e>=0?(l=new Date(e+400,t,s,r,n,a,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,s,r,n,a,i),l}function ve(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ee(e,t,s){var r=7+t-s,n=(7+ve(e,0,r).getUTCDay()-t)%7;return-n+r-1}function ds(e,t,s,r,n){var a=(7+s-r)%7,i=Ee(e,r,n),l=1+7*(t-1)+a+i,m,y;return l<=0?(m=e-1,y=Me(m)+l):l>Me(e)?(m=e+1,y=l-Me(e)):(m=e,y=l),{year:m,dayOfYear:y}}function pe(e,t,s){var r=Ee(e.year(),t,s),n=Math.floor((e.dayOfYear()-r-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+K(i,t,s)):n>K(e.year(),t,s)?(a=n-K(e.year(),t,s),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function K(e,t,s){var r=Ee(e,t,s),n=Ee(e+1,t,s);return(Me(e)-r+n)/7}f("w",["ww",2],"wo","week");f("W",["WW",2],"Wo","isoWeek");h("w",v,ge);h("ww",v,N);h("W",v,ge);h("WW",v,N);xe(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=g(e)});function Fr(e){return pe(e,this._week.dow,this._week.doy).week}var Cr={dow:0,doy:6};function Lr(){return this._week.dow}function Ur(){return this._week.doy}function Ir(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Er(e){var t=pe(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}f("d",0,"do","day");f("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});f("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});f("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});f("e",0,0,"weekday");f("E",0,0,"isoWeekday");h("d",v);h("e",v);h("E",v);h("dd",function(e,t){return t.weekdaysMinRegex(e)});h("ddd",function(e,t){return t.weekdaysShortRegex(e)});h("dddd",function(e,t){return t.weekdaysRegex(e)});xe(["dd","ddd","dddd"],function(e,t,s,r){var n=s._locale.weekdaysParse(e,r,s._strict);n!=null?t.d=n:_(s).invalidWeekday=e});xe(["d","e","E"],function(e,t,s,r){t[r]=g(e)});function Hr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ar(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Dt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Vr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),hs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jr=be,zr=be,Zr=be;function Br(e,t){var s=I(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Dt(s,this._week.dow):e?s[e.day()]:s}function qr(e){return e===!0?Dt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Jr(e){return e===!0?Dt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Qr(e,t,s){var r,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=z([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return s?t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1||(n=Y.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=Y.call(this._minWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function Xr(e,t,s){var r,n,a;if(this._weekdaysParseExact)return Qr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=z([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Kr(e){if(!this.isValid())return e!=null?this:NaN;var t=De(this,"Day");return e!=null?(e=Hr(e,this.localeData()),this.add(e-t,"d")):t}function $r(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function en(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ar(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function tn(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||vt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(k(this,"_weekdaysRegex")||(this._weekdaysRegex=jr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function sn(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||vt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(k(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=zr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function rn(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||vt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(k(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vt(){function e(T,P){return P.length-T.length}var t=[],s=[],r=[],n=[],a,i,l,m,y;for(a=0;a<7;a++)i=z([2e3,1]).day(a),l=X(this.weekdaysMin(i,"")),m=X(this.weekdaysShort(i,"")),y=X(this.weekdays(i,"")),t.push(l),s.push(m),r.push(y),n.push(l),n.push(m),n.push(y);t.sort(e),s.sort(e),r.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function pt(){return this.hours()%12||12}function nn(){return this.hours()||24}f("H",["HH",2],0,"hour");f("h",["hh",2],0,pt);f("k",["kk",2],0,nn);f("hmm",0,0,function(){return""+pt.apply(this)+j(this.minutes(),2)});f("hmmss",0,0,function(){return""+pt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)});f("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)});f("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)});function fs(e,t){f(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}fs("a",!0);fs("A",!1);function cs(e,t){return t._meridiemParse}h("a",cs);h("A",cs);h("H",v,St);h("h",v,ge);h("k",v,ge);h("HH",v,N);h("hh",v,N);h("kk",v,N);h("hmm",ts);h("hmmss",ss);h("Hmm",ts);h("Hmmss",ss);M(["H","HH"],O);M(["k","kk"],function(e,t,s){var r=g(e);t[O]=r===24?0:r});M(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e});M(["h","hh"],function(e,t,s){t[O]=g(e),_(s).bigHour=!0});M("hmm",function(e,t,s){var r=e.length-2;t[O]=g(e.substr(0,r)),t[U]=g(e.substr(r)),_(s).bigHour=!0});M("hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[O]=g(e.substr(0,r)),t[U]=g(e.substr(r,2)),t[Q]=g(e.substr(n)),_(s).bigHour=!0});M("Hmm",function(e,t,s){var r=e.length-2;t[O]=g(e.substr(0,r)),t[U]=g(e.substr(r))});M("Hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[O]=g(e.substr(0,r)),t[U]=g(e.substr(r,2)),t[Q]=g(e.substr(n))});function an(e){return(e+"").toLowerCase().charAt(0)==="p"}var on=/[ap]\.?m?\.?/i,ln=we("Hours",!0);function un(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var ms={calendar:Qs,longDateFormat:er,invalidDate:sr,ordinal:nr,dayOfMonthOrdinalParse:ar,relativeTime:or,months:vr,monthsShort:as,week:Cr,weekdays:Vr,weekdaysMin:Gr,weekdaysShort:hs,meridiemParse:on},p={},ke={},Ye;function dn(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function Et(e){return e&&e.toLowerCase().replace("_","-")}function hn(e){for(var t=0,s,r,n,a;t<e.length;){for(a=Et(e[t]).split("-"),s=a.length,r=Et(e[t+1]),r=r?r.split("-"):null;s>0;){if(n=Qe(a.slice(0,s).join("-")),n)return n;if(r&&r.length>=s&&dn(a,r)>=s-1)break;s--}t++}return Ye}function fn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Qe(e){var t=null,s;if(p[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&fn(e))try{t=Ye._abbr,s=Zs,s("./locale/"+e),ne(t)}catch(r){p[e]=null}return p[e]}function ne(e,t){var s;return e&&(x(t)?s=ee(e):s=Yt(e,t),s?Ye=s:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ye._abbr}function Yt(e,t){if(t!==null){var s,r=ms;if(t.abbr=e,p[e]!=null)Xt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=p[e]._config;else if(t.parentLocale!=null)if(p[t.parentLocale]!=null)r=p[t.parentLocale]._config;else if(s=Qe(t.parentLocale),s!=null)r=s._config;else return ke[t.parentLocale]||(ke[t.parentLocale]=[]),ke[t.parentLocale].push({name:e,config:t}),null;return p[e]=new _t(it(r,t)),ke[e]&&ke[e].forEach(function(n){Yt(n.name,n.config)}),ne(e),p[e]}else return delete p[e],null}function cn(e,t){if(t!=null){var s,r,n=ms;p[e]!=null&&p[e].parentLocale!=null?p[e].set(it(p[e]._config,t)):(r=Qe(e),r!=null&&(n=r._config),t=it(n,t),r==null&&(t.abbr=e),s=new _t(t),s.parentLocale=p[e],p[e]=s),ne(e)}else p[e]!=null&&(p[e].parentLocale!=null?(p[e]=p[e].parentLocale,e===ne()&&ne(e)):p[e]!=null&&delete p[e]);return p[e]}function ee(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ye;if(!I(e)){if(t=Qe(e),t)return t;e=[e]}return hn(e)}function mn(){return ot(p)}function Ot(e){var t,s=e._a;return s&&_(e).overflow===-2&&(t=s[J]<0||s[J]>11?J:s[G]<1||s[G]>Mt(s[b],s[J])?G:s[O]<0||s[O]>24||s[O]===24&&(s[U]!==0||s[Q]!==0||s[oe]!==0)?O:s[U]<0||s[U]>59?U:s[Q]<0||s[Q]>59?Q:s[oe]<0||s[oe]>999?oe:-1,_(e)._overflowDayOfYear&&(t<b||t>G)&&(t=G),_(e)._overflowWeeks&&t===-1&&(t=gr),_(e)._overflowWeekday&&t===-1&&(t=wr),_(e).overflow=t),e}var _n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gn=/Z|[+-]\d\d(?::?\d\d)?/,Fe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],rt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wn=/^\/?Date\((-?\d+)/i,kn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Sn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function _s(e){var t,s,r=e._i,n=_n.exec(r)||yn.exec(r),a,i,l,m,y=Fe.length,T=rt.length;if(n){for(_(e).iso=!0,t=0,s=y;t<s;t++)if(Fe[t][1].exec(n[1])){i=Fe[t][0],a=Fe[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,s=T;t<s;t++)if(rt[t][1].exec(n[3])){l=(n[2]||" ")+rt[t][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(n[4])if(gn.exec(n[4]))m="Z";else{e._isValid=!1;return}e._f=i+(l||"")+(m||""),bt(e)}else e._isValid=!1}function Mn(e,t,s,r,n,a){var i=[Dn(e),as.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function Dn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function vn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pn(e,t,s){if(e){var r=hs.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(r!==n)return _(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Yn(e,t,s){if(e)return Sn[e];if(t)return 0;var r=parseInt(s,10),n=r%100,a=(r-n)/100;return a*60+n}function ys(e){var t=kn.exec(vn(e._i)),s;if(t){if(s=Mn(t[4],t[3],t[2],t[5],t[6],t[7]),!pn(t[1],s,e))return;e._a=s,e._tzm=Yn(t[8],t[9],t[10]),e._d=ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function On(e){var t=wn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(_s(e),e._isValid===!1)delete e._isValid;else return;if(ys(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:d.createFromInputFallback(e)}d.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function he(e,t,s){return e!=null?e:t!=null?t:s}function Tn(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Tt(e){var t,s,r=[],n,a,i;if(!e._d){for(n=Tn(e),e._w&&e._a[G]==null&&e._a[J]==null&&bn(e),e._dayOfYear!=null&&(i=he(e._a[b],n[b]),(e._dayOfYear>Me(i)||e._dayOfYear===0)&&(_(e)._overflowDayOfYear=!0),s=ve(i,0,e._dayOfYear),e._a[J]=s.getUTCMonth(),e._a[G]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=n[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[O]===24&&e._a[U]===0&&e._a[Q]===0&&e._a[oe]===0&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?ve:Rr).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==a&&(_(e).weekdayMismatch=!0)}}function bn(e){var t,s,r,n,a,i,l,m,y;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,s=he(t.GG,e._a[b],pe(D(),1,4).year),r=he(t.W,1),n=he(t.E,1),(n<1||n>7)&&(m=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,y=pe(D(),a,i),s=he(t.gg,e._a[b],y.year),r=he(t.w,y.week),t.d!=null?(n=t.d,(n<0||n>6)&&(m=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(m=!0)):n=a),r<1||r>K(s,a,i)?_(e)._overflowWeeks=!0:m!=null?_(e)._overflowWeekday=!0:(l=ds(s,r,n,a,i),e._a[b]=l.year,e._dayOfYear=l.dayOfYear)}d.ISO_8601=function(){};d.RFC_2822=function(){};function bt(e){if(e._f===d.ISO_8601){_s(e);return}if(e._f===d.RFC_2822){ys(e);return}e._a=[],_(e).empty=!0;var t=""+e._i,s,r,n,a,i,l=t.length,m=0,y,T;for(n=Kt(e._f,e._locale).match(yt)||[],T=n.length,s=0;s<T;s++)a=n[s],r=(t.match(mr(a,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&_(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),m+=r.length),ce[a]?(r?_(e).empty=!1:_(e).unusedTokens.push(a),yr(a,r,e)):e._strict&&!r&&_(e).unusedTokens.push(a);_(e).charsLeftOver=l-m,t.length>0&&_(e).unusedInput.push(t),e._a[O]<=12&&_(e).bigHour===!0&&e._a[O]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[O]=xn(e._locale,e._a[O],e._meridiem),y=_(e).era,y!==null&&(e._a[b]=e._locale.erasConvertYear(y,e._a[b])),Tt(e),Ot(e)}function xn(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Nn(e){var t,s,r,n,a,i,l=!1,m=e._f.length;if(m===0){_(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<m;n++)a=0,i=!1,t=mt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],bt(t),ct(t)&&(i=!0),a+=_(t).charsLeftOver,a+=_(t).unusedTokens.length*10,_(t).score=a,l?a<r&&(r=a,s=t):(r==null||a<r||i)&&(r=a,s=t,i&&(l=!0));se(e,s||t)}function Pn(e){if(!e._d){var t=gt(e._i),s=t.day===void 0?t.date:t.day;e._a=Jt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Tt(e)}}function Wn(e){var t=new Te(Ot(gs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function gs(e){var t=e._i,s=e._f;return e._locale=e._locale||ee(e._l),t===null||s===void 0&&t===""?Ge({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),E(t)?new Te(Ot(t)):(Oe(t)?e._d=t:I(s)?Nn(e):s?bt(e):Rn(e),ct(e)||(e._d=null),e))}function Rn(e){var t=e._i;x(t)?e._d=new Date(d.now()):Oe(t)?e._d=new Date(t.valueOf()):typeof t=="string"?On(e):I(t)?(e._a=Jt(t.slice(0),function(s){return parseInt(s,10)}),Tt(e)):le(t)?Pn(e):$(t)?e._d=new Date(t):d.createFromInputFallback(e)}function ws(e,t,s,r,n){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(le(e)&&ft(e)||I(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=s,a._i=e,a._f=t,a._strict=r,Wn(a)}function D(e,t,s,r){return ws(e,t,s,r,!1)}var Fn=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ge()}),Cn=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ge()});function ks(e,t){var s,r;if(t.length===1&&I(t[0])&&(t=t[0]),!t.length)return D();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function Ln(){var e=[].slice.call(arguments,0);return ks("isBefore",e)}function Un(){var e=[].slice.call(arguments,0);return ks("isAfter",e)}var In=function(){return Date.now?Date.now():+new Date},Se=["year","quarter","month","week","day","hour","minute","second","millisecond"];function En(e){var t,s=!1,r,n=Se.length;for(t in e)if(k(e,t)&&!(Y.call(Se,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<n;++r)if(e[Se[r]]){if(s)return!1;parseFloat(e[Se[r]])!==g(e[Se[r]])&&(s=!0)}return!0}function Hn(){return this._isValid}function An(){return H(NaN)}function Xe(e){var t=gt(e),s=t.year||0,r=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,m=t.minute||0,y=t.second||0,T=t.millisecond||0;this._isValid=En(t),this._milliseconds=+T+y*1e3+m*6e4+l*1e3*60*60,this._days=+i+a*7,this._months=+n+r*3+s*12,this._data={},this._locale=ee(),this._bubble()}function Le(e){return e instanceof Xe}function ut(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Vn(e,t,s){var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<r;i++)g(e[i])!==g(t[i])&&a++;return a+n}function Ss(e,t){f(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+j(~~(s/60),2)+t+j(~~s%60,2)})}Ss("Z",":");Ss("ZZ","");h("Z",qe);h("ZZ",qe);M(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=xt(qe,e)});var Gn=/([\+\-]|\d\d)/gi;function xt(e,t){var s=(t||"").match(e),r,n,a;return s===null?null:(r=s[s.length-1]||[],n=(r+"").match(Gn)||["-",0,0],a=+(n[1]*60)+g(n[2]),a===0?0:n[0]==="+"?a:-a)}function Nt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(E(e)||Oe(e)?e.valueOf():D(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),d.updateOffset(s,!1),s):D(e).local()}function dt(e){return-Math.round(e._d.getTimezoneOffset())}d.updateOffset=function(){};function jn(e,t,s){var r=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=xt(qe,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(n=dt(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?vs(this,H(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:dt(this)}function zn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Zn(e){return this.utcOffset(0,e)}function Bn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(dt(this),"m")),this}function qn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=xt(fr,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Jn(e){return this.isValid()?(e=e?D(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Qn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Xn(){if(!x(this._isDSTShifted))return this._isDSTShifted;var e={},t;return mt(e,this),e=gs(e),e._a?(t=e._isUTC?z(e._a):D(e._a),this._isDSTShifted=this.isValid()&&Vn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Kn(){return this.isValid()?!this._isUTC:!1}function $n(){return this.isValid()?this._isUTC:!1}function Ms(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ea=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ta=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function H(e,t){var s=e,r=null,n,a,i;return Le(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=ea.exec(e))?(n=r[1]==="-"?-1:1,s={y:0,d:g(r[G])*n,h:g(r[O])*n,m:g(r[U])*n,s:g(r[Q])*n,ms:g(ut(r[oe]*1e3))*n}):(r=ta.exec(e))?(n=r[1]==="-"?-1:1,s={y:ie(r[2],n),M:ie(r[3],n),w:ie(r[4],n),d:ie(r[5],n),h:ie(r[6],n),m:ie(r[7],n),s:ie(r[8],n)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=sa(D(s.from),D(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),a=new Xe(s),Le(e)&&k(e,"_locale")&&(a._locale=e._locale),Le(e)&&k(e,"_isValid")&&(a._isValid=e._isValid),a}H.fn=Xe.prototype;H.invalid=An;function ie(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Ht(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function sa(e,t){var s;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?s=Ht(e,t):(s=Ht(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Ds(e,t){return function(s,r){var n,a;return r!==null&&!isNaN(+r)&&(Xt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=s,s=r,r=a),n=H(s,r),vs(this,n,e),this}}function vs(e,t,s,r){var n=t._milliseconds,a=ut(t._days),i=ut(t._months);e.isValid()&&(r=r==null?!0:r,i&&os(e,De(e,"Month")+i*s),a&&ns(e,"Date",De(e,"Date")+a*s),n&&e._d.setTime(e._d.valueOf()+n*s),r&&d.updateOffset(e,a||i))}var ra=Ds(1,"add"),na=Ds(-1,"subtract");function ps(e){return typeof e=="string"||e instanceof String}function aa(e){return E(e)||Oe(e)||ps(e)||$(e)||oa(e)||ia(e)||e===null||e===void 0}function ia(e){var t=le(e)&&!ft(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,a,i=r.length;for(n=0;n<i;n+=1)a=r[n],s=s||k(e,a);return t&&s}function oa(e){var t=I(e),s=!1;return t&&(s=e.filter(function(r){return!$(r)&&ps(e)}).length===0),t&&s}function la(e){var t=le(e)&&!ft(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<r.length;n+=1)a=r[n],s=s||k(e,a);return t&&s}function ua(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function da(e,t){arguments.length===1&&(arguments[0]?aa(arguments[0])?(e=arguments[0],t=void 0):la(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||D(),r=Nt(s,this).startOf("day"),n=d.calendarFormat(this,r)||"sameElse",a=t&&(Z(t[n])?t[n].call(this,s):t[n]);return this.format(a||this.localeData().calendar(n,this,D(s)))}function ha(){return new Te(this)}function fa(e,t){var s=E(e)?e:D(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function ca(e,t){var s=E(e)?e:D(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function ma(e,t,s,r){var n=E(e)?e:D(e),a=E(t)?t:D(t);return this.isValid()&&n.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(n,s):!this.isBefore(n,s))&&(r[1]===")"?this.isBefore(a,s):!this.isAfter(a,s))):!1}function _a(e,t){var s=E(e)?e:D(e),r;return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function ya(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ga(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function wa(e,t,s){var r,n,a;if(!this.isValid())return NaN;if(r=Nt(e,this),!r.isValid())return NaN;switch(n=(r.utcOffset()-this.utcOffset())*6e4,t=F(t),t){case"year":a=Ue(this,r)/12;break;case"month":a=Ue(this,r);break;case"quarter":a=Ue(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-n)/864e5;break;case"week":a=(this-r-n)/6048e5;break;default:a=this-r}return s?a:W(a)}function Ue(e,t){if(e.date()<t.date())return-Ue(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),n,a;return t-r<0?(n=e.clone().add(s-1,"months"),a=(t-r)/(r-n)):(n=e.clone().add(s+1,"months"),a=(t-r)/(n-r)),-(s+a)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ka(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Sa(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Ce(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ce(s,"Z")):Ce(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ma(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(s+r+n+a)}function Da(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=Ce(this,e);return this.localeData().postformat(t)}function va(e,t){return this.isValid()&&(E(e)&&e.isValid()||D(e).isValid())?H({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pa(e){return this.from(D(),e)}function Ya(e,t){return this.isValid()&&(E(e)&&e.isValid()||D(e).isValid())?H({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Oa(e){return this.to(D(),e)}function Ys(e){var t;return e===void 0?this._locale._abbr:(t=ee(e),t!=null&&(this._locale=t),this)}var Os=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ts(){return this._locale}var He=1e3,me=60*He,Ae=60*me,bs=(365*400+97)*24*Ae;function _e(e,t){return(e%t+t)%t}function xs(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-bs:new Date(e,t,s).valueOf()}function Ns(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-bs:Date.UTC(e,t,s)}function Ta(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ns:xs,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=_e(t+(this._isUTC?0:this.utcOffset()*me),Ae);break;case"minute":t=this._d.valueOf(),t-=_e(t,me);break;case"second":t=this._d.valueOf(),t-=_e(t,He);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function ba(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ns:xs,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ae-_e(t+(this._isUTC?0:this.utcOffset()*me),Ae)-1;break;case"minute":t=this._d.valueOf(),t+=me-_e(t,me)-1;break;case"second":t=this._d.valueOf(),t+=He-_e(t,He)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function xa(){return this._d.valueOf()-(this._offset||0)*6e4}function Na(){return Math.floor(this.valueOf()/1e3)}function Pa(){return new Date(this.valueOf())}function Wa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ra(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Fa(){return this.isValid()?this.toISOString():null}function Ca(){return ct(this)}function La(){return se({},_(this))}function Ua(){return _(this).overflow}function Ia(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}f("N",0,0,"eraAbbr");f("NN",0,0,"eraAbbr");f("NNN",0,0,"eraAbbr");f("NNNN",0,0,"eraName");f("NNNNN",0,0,"eraNarrow");f("y",["y",1],"yo","eraYear");f("y",["yy",2],0,"eraYear");f("y",["yyy",3],0,"eraYear");f("y",["yyyy",4],0,"eraYear");h("N",Pt);h("NN",Pt);h("NNN",Pt);h("NNNN",Ja);h("NNNNN",Qa);M(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var n=s._locale.erasParse(e,r,s._strict);n?_(s).era=n:_(s).invalidEra=e});h("y",ye);h("yy",ye);h("yyy",ye);h("yyyy",ye);h("yo",Xa);M(["y","yy","yyy","yyyy"],b);M(["yo"],function(e,t,s,r){var n;s._locale._eraYearOrdinalRegex&&(n=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[b]=s._locale.eraYearOrdinalParse(e,n):t[b]=parseInt(e,10)});function Ea(e,t){var s,r,n,a=this._eras||ee("en")._eras;for(s=0,r=a.length;s<r;++s){switch(typeof a[s].since){case"string":n=d(a[s].since).startOf("day"),a[s].since=n.valueOf();break}switch(typeof a[s].until){case"undefined":a[s].until=1/0;break;case"string":n=d(a[s].until).startOf("day").valueOf(),a[s].until=n.valueOf();break}}return a}function Ha(e,t,s){var r,n,a=this.eras(),i,l,m;for(e=e.toUpperCase(),r=0,n=a.length;r<n;++r)if(i=a[r].name.toUpperCase(),l=a[r].abbr.toUpperCase(),m=a[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(l===e)return a[r];break;case"NNNN":if(i===e)return a[r];break;case"NNNNN":if(m===e)return a[r];break}else if([i,l,m].indexOf(e)>=0)return a[r]}function Aa(e,t){var s=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*s}function Va(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Ga(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function ja(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function za(){var e,t,s,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=n[e].since<=n[e].until?1:-1,r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return(this.year()-d(n[e].since).year())*s+n[e].offset;return this.year()}function Za(e){return k(this,"_erasNameRegex")||Wt.call(this),e?this._erasNameRegex:this._erasRegex}function Ba(e){return k(this,"_erasAbbrRegex")||Wt.call(this),e?this._erasAbbrRegex:this._erasRegex}function qa(e){return k(this,"_erasNarrowRegex")||Wt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Pt(e,t){return t.erasAbbrRegex(e)}function Ja(e,t){return t.erasNameRegex(e)}function Qa(e,t){return t.erasNarrowRegex(e)}function Xa(e,t){return t._eraYearOrdinalRegex||ye}function Wt(){var e=[],t=[],s=[],r=[],n,a,i,l,m,y=this.eras();for(n=0,a=y.length;n<a;++n)i=X(y[n].name),l=X(y[n].abbr),m=X(y[n].narrow),t.push(i),e.push(l),s.push(m),r.push(i),r.push(l),r.push(m);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}f(0,["gg",2],0,function(){return this.weekYear()%100});f(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ke(e,t){f(0,[e,e.length],0,t)}Ke("gggg","weekYear");Ke("ggggg","weekYear");Ke("GGGG","isoWeekYear");Ke("GGGGG","isoWeekYear");h("G",Be);h("g",Be);h("GG",v,N);h("gg",v,N);h("GGGG",kt,wt);h("gggg",kt,wt);h("GGGGG",Ze,je);h("ggggg",Ze,je);xe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=g(e)});xe(["gg","GG"],function(e,t,s,r){t[r]=d.parseTwoDigitYear(e)});function Ka(e){return Ps.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function $a(e){return Ps.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ei(){return K(this.year(),1,4)}function ti(){return K(this.isoWeekYear(),1,4)}function si(){var e=this.localeData()._week;return K(this.year(),e.dow,e.doy)}function ri(){var e=this.localeData()._week;return K(this.weekYear(),e.dow,e.doy)}function Ps(e,t,s,r,n){var a;return e==null?pe(this,r,n).year:(a=K(e,r,n),t>a&&(t=a),ni.call(this,e,t,s,r,n))}function ni(e,t,s,r,n){var a=ds(e,t,s,r,n),i=ve(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}f("Q",0,"Qo","quarter");h("Q",$t);M("Q",function(e,t){t[J]=(g(e)-1)*3});function ai(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}f("D",["DD",2],"Do","date");h("D",v,ge);h("DD",v,N);h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});M(["D","DD"],G);M("Do",function(e,t){t[G]=g(e.match(v)[0])});var Ws=we("Date",!0);f("DDD",["DDDD",3],"DDDo","dayOfYear");h("DDD",ze);h("DDDD",es);M(["DDD","DDDD"],function(e,t,s){s._dayOfYear=g(e)});function ii(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}f("m",["mm",2],0,"minute");h("m",v,St);h("mm",v,N);M(["m","mm"],U);var oi=we("Minutes",!1);f("s",["ss",2],0,"second");h("s",v,St);h("ss",v,N);M(["s","ss"],Q);var li=we("Seconds",!1);f("S",0,0,function(){return~~(this.millisecond()/100)});f(0,["SS",2],0,function(){return~~(this.millisecond()/10)});f(0,["SSS",3],0,"millisecond");f(0,["SSSS",4],0,function(){return this.millisecond()*10});f(0,["SSSSS",5],0,function(){return this.millisecond()*100});f(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});f(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});f(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});f(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});h("S",ze,$t);h("SS",ze,N);h("SSS",ze,es);var re,Rs;for(re="SSSS";re.length<=9;re+="S")h(re,ye);function ui(e,t){t[oe]=g(("0."+e)*1e3)}for(re="S";re.length<=9;re+="S")M(re,ui);Rs=we("Milliseconds",!1);f("z",0,0,"zoneAbbr");f("zz",0,0,"zoneName");function di(){return this._isUTC?"UTC":""}function hi(){return this._isUTC?"Coordinated Universal Time":""}var o=Te.prototype;o.add=ra;o.calendar=da;o.clone=ha;o.diff=wa;o.endOf=ba;o.format=Da;o.from=va;o.fromNow=pa;o.to=Ya;o.toNow=Oa;o.get=Sr;o.invalidAt=Ua;o.isAfter=fa;o.isBefore=ca;o.isBetween=ma;o.isSame=_a;o.isSameOrAfter=ya;o.isSameOrBefore=ga;o.isValid=Ca;o.lang=Os;o.locale=Ys;o.localeData=Ts;o.max=Cn;o.min=Fn;o.parsingFlags=La;o.set=Mr;o.startOf=Ta;o.subtract=na;o.toArray=Wa;o.toObject=Ra;o.toDate=Pa;o.toISOString=Sa;o.inspect=Ma;typeof Symbol!="undefined"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});o.toJSON=Fa;o.toString=ka;o.unix=Na;o.valueOf=xa;o.creationData=Ia;o.eraName=Va;o.eraNarrow=Ga;o.eraAbbr=ja;o.eraYear=za;o.year=rs;o.isLeapYear=kr;o.weekYear=Ka;o.isoWeekYear=$a;o.quarter=o.quarters=ai;o.month=ls;o.daysInMonth=Nr;o.week=o.weeks=Ir;o.isoWeek=o.isoWeeks=Er;o.weeksInYear=si;o.weeksInWeekYear=ri;o.isoWeeksInYear=ei;o.isoWeeksInISOWeekYear=ti;o.date=Ws;o.day=o.days=Kr;o.weekday=$r;o.isoWeekday=en;o.dayOfYear=ii;o.hour=o.hours=ln;o.minute=o.minutes=oi;o.second=o.seconds=li;o.millisecond=o.milliseconds=Rs;o.utcOffset=jn;o.utc=Zn;o.local=Bn;o.parseZone=qn;o.hasAlignedHourOffset=Jn;o.isDST=Qn;o.isLocal=Kn;o.isUtcOffset=$n;o.isUtc=Ms;o.isUTC=Ms;o.zoneAbbr=di;o.zoneName=hi;o.dates=R("dates accessor is deprecated. Use date instead.",Ws);o.months=R("months accessor is deprecated. Use month instead",ls);o.years=R("years accessor is deprecated. Use year instead",rs);o.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zn);o.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Xn);function fi(e){return D(e*1e3)}function ci(){return D.apply(null,arguments).parseZone()}function Fs(e){return e}var S=_t.prototype;S.calendar=Xs;S.longDateFormat=tr;S.invalidDate=rr;S.ordinal=ir;S.preparse=Fs;S.postformat=Fs;S.relativeTime=lr;S.pastFuture=ur;S.set=Js;S.eras=Ea;S.erasParse=Ha;S.erasConvertYear=Aa;S.erasAbbrRegex=Ba;S.erasNameRegex=Za;S.erasNarrowRegex=qa;S.months=Or;S.monthsShort=Tr;S.monthsParse=xr;S.monthsRegex=Wr;S.monthsShortRegex=Pr;S.week=Fr;S.firstDayOfYear=Ur;S.firstDayOfWeek=Lr;S.weekdays=Br;S.weekdaysMin=Jr;S.weekdaysShort=qr;S.weekdaysParse=Xr;S.weekdaysRegex=tn;S.weekdaysShortRegex=sn;S.weekdaysMinRegex=rn;S.isPM=an;S.meridiem=un;function Ve(e,t,s,r){var n=ee(),a=z().set(r,t);return n[s](a,e)}function Cs(e,t,s){if($(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ve(e,t,s,"month");var r,n=[];for(r=0;r<12;r++)n[r]=Ve(e,r,s,"month");return n}function Rt(e,t,s,r){typeof e=="boolean"?($(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,$(t)&&(s=t,t=void 0),t=t||"");var n=ee(),a=e?n._week.dow:0,i,l=[];if(s!=null)return Ve(t,(s+a)%7,r,"day");for(i=0;i<7;i++)l[i]=Ve(t,(i+a)%7,r,"day");return l}function mi(e,t){return Cs(e,t,"months")}function _i(e,t){return Cs(e,t,"monthsShort")}function yi(e,t,s){return Rt(e,t,s,"weekdays")}function gi(e,t,s){return Rt(e,t,s,"weekdaysShort")}function wi(e,t,s){return Rt(e,t,s,"weekdaysMin")}ne("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=g(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});d.lang=R("moment.lang is deprecated. Use moment.locale instead.",ne);d.langData=R("moment.langData is deprecated. Use moment.localeData instead.",ee);var B=Math.abs;function ki(){var e=this._data;return this._milliseconds=B(this._milliseconds),this._days=B(this._days),this._months=B(this._months),e.milliseconds=B(e.milliseconds),e.seconds=B(e.seconds),e.minutes=B(e.minutes),e.hours=B(e.hours),e.months=B(e.months),e.years=B(e.years),this}function Ls(e,t,s,r){var n=H(t,s);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function Si(e,t){return Ls(this,e,t,1)}function Mi(e,t){return Ls(this,e,t,-1)}function At(e){return e<0?Math.floor(e):Math.ceil(e)}function Di(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,n,a,i,l,m;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=At(ht(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,n=W(e/1e3),r.seconds=n%60,a=W(n/60),r.minutes=a%60,i=W(a/60),r.hours=i%24,t+=W(i/24),m=W(Us(t)),s+=m,t-=At(ht(m)),l=W(s/12),s%=12,r.days=t,r.months=s,r.years=l,this}function Us(e){return e*4800/146097}function ht(e){return e*146097/4800}function vi(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=F(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Us(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(ht(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function te(e){return function(){return this.as(e)}}var Is=te("ms"),pi=te("s"),Yi=te("m"),Oi=te("h"),Ti=te("d"),bi=te("w"),xi=te("M"),Ni=te("Q"),Pi=te("y"),Wi=Is;function Ri(){return H(this)}function Fi(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function ue(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ci=ue("milliseconds"),Li=ue("seconds"),Ui=ue("minutes"),Ii=ue("hours"),Ei=ue("days"),Hi=ue("months"),Ai=ue("years");function Vi(){return W(this.days()/7)}var q=Math.round,fe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gi(e,t,s,r,n){return n.relativeTime(t||1,!!s,e,r)}function ji(e,t,s,r){var n=H(e).abs(),a=q(n.as("s")),i=q(n.as("m")),l=q(n.as("h")),m=q(n.as("d")),y=q(n.as("M")),T=q(n.as("w")),P=q(n.as("y")),C=a<=s.ss&&["s",a]||a<s.s&&["ss",a]||i<=1&&["m"]||i<s.m&&["mm",i]||l<=1&&["h"]||l<s.h&&["hh",l]||m<=1&&["d"]||m<s.d&&["dd",m];return s.w!=null&&(C=C||T<=1&&["w"]||T<s.w&&["ww",T]),C=C||y<=1&&["M"]||y<s.M&&["MM",y]||P<=1&&["y"]||["yy",P],C[2]=t,C[3]=+e>0,C[4]=r,Gi.apply(null,C)}function zi(e){return e===void 0?q:typeof e=="function"?(q=e,!0):!1}function Zi(e,t){return fe[e]===void 0?!1:t===void 0?fe[e]:(fe[e]=t,e==="s"&&(fe.ss=t-1),!0)}function Bi(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=fe,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},fe,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),n=this.localeData(),a=ji(this,!s,r,n),s&&(a=n.pastFuture(+this,a)),n.postformat(a)}var nt=Math.abs;function de(e){return(e>0)-(e<0)||+e}function $e(){if(!this.isValid())return this.localeData().invalidDate();var e=nt(this._milliseconds)/1e3,t=nt(this._days),s=nt(this._months),r,n,a,i,l=this.asSeconds(),m,y,T,P;return l?(r=W(e/60),n=W(r/60),e%=60,r%=60,a=W(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=l<0?"-":"",y=de(this._months)!==de(l)?"-":"",T=de(this._days)!==de(l)?"-":"",P=de(this._milliseconds)!==de(l)?"-":"",m+"P"+(a?y+a+"Y":"")+(s?y+s+"M":"")+(t?T+t+"D":"")+(n||r||e?"T":"")+(n?P+n+"H":"")+(r?P+r+"M":"")+(e?P+i+"S":"")):"P0D"}var w=Xe.prototype;w.isValid=Hn;w.abs=ki;w.add=Si;w.subtract=Mi;w.as=vi;w.asMilliseconds=Is;w.asSeconds=pi;w.asMinutes=Yi;w.asHours=Oi;w.asDays=Ti;w.asWeeks=bi;w.asMonths=xi;w.asQuarters=Ni;w.asYears=Pi;w.valueOf=Wi;w._bubble=Di;w.clone=Ri;w.get=Fi;w.milliseconds=Ci;w.seconds=Li;w.minutes=Ui;w.hours=Ii;w.days=Ei;w.weeks=Vi;w.months=Hi;w.years=Ai;w.humanize=Bi;w.toISOString=$e;w.toString=$e;w.toJSON=$e;w.locale=Ys;w.localeData=Ts;w.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$e);w.lang=Os;f("X",0,0,"unix");f("x",0,0,"valueOf");h("x",Be);h("X",cr);M("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});M("x",function(e,t,s){s._d=new Date(g(e))});//! moment.js
10
- d.version="2.30.1";Bs(D);d.fn=o;d.min=Ln;d.max=Un;d.now=In;d.utc=z;d.unix=fi;d.months=mi;d.isDate=Oe;d.locale=ne;d.invalid=Ge;d.duration=H;d.isMoment=E;d.weekdays=yi;d.parseZone=ci;d.localeData=ee;d.isDuration=Le;d.monthsShort=_i;d.weekdaysMin=wi;d.defineLocale=Yt;d.updateLocale=cn;d.locales=mn;d.weekdaysShort=gi;d.normalizeUnits=F;d.relativeTimeRounding=zi;d.relativeTimeThreshold=Zi;d.calendarFormat=ua;d.prototype=o;d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function Vt(e,t){u.addMessages(e,t)}const Gt={en:{nothing:"Nothing to show here."},hr:{nothing:"Nema ničega za prikazati ovdje."},"zh-hk":{nothing:"這裡沒有什麼可顯示的。"},fr:{nothing:"Rien à montrer ici."},ro:{nothing:"Niciun turneu disponibil aici."},tr:{nothing:"Burada gösterilecek bir şey yok."},el:{nothing:"Δεν υπάρχει τίποτα εδώ."},es:{nothing:"Nada que mostrar aquí."},hu:{nothing:"Nincs megjelenítendő adat."},pt:{nothing:"Nada para mostrar aqui."}};if(typeof window!="undefined"){let e=function(t){return function(...s){try{return t.apply(this,s)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-C71hXcQP.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}function qi(e){u.append_styles(e,"svelte-gkejaq","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}")}function jt(e,t,s){const r=e.slice();return r[29]=t[s],r[31]=s,r}function zt(e){let t,s=u.ensure_array_like(e[14]),r=[];for(let a=0;a<s.length;a+=1)r[a]=Bt(jt(e,s,a));let n=null;return s.length||(n=Zt(e)),{c(){for(let a=0;a<r.length;a+=1)r[a].c();t=u.empty(),n&&n.c()},m(a,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(a,i);u.insert(a,t,i),n&&n.m(a,i)},p(a,i){if(i[0]&53247){s=u.ensure_array_like(a[14]);let l;for(l=0;l<s.length;l+=1){const m=jt(a,s,l);r[l]?r[l].p(m,i):(r[l]=Bt(m),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=s.length,!s.length&&n?n.p(a,i):s.length?n&&(n.d(1),n=null):(n=Zt(a),n.c(),n.m(t.parentNode,t))}},d(a){a&&u.detach(t),u.destroy_each(r,a),n&&n.d(a)}}}function Zt(e){let t,s=e[15]("nothing")+"",r;return{c(){t=u.element("p"),r=u.text(s)},m(n,a){u.insert(n,t,a),u.append(t,r)},p(n,a){a[0]&32768&&s!==(s=n[15]("nothing")+"")&&u.set_data(r,s)},d(n){n&&u.detach(t)}}}function Bt(e){let t,s,r,n;return{c(){t=u.element("casino-tournaments-thumbnail-controller"),u.set_custom_element_data(t,"touridx",e[31]+1),u.set_custom_element_data(t,"userid",e[1]),u.set_custom_element_data(t,"showdetails","true"),u.set_custom_element_data(t,"showslider","false"),u.set_custom_element_data(t,"tournamenturl",s=e[29].href),u.set_custom_element_data(t,"maxwidth",r=e[14].length<=2),u.set_custom_element_data(t,"loginurl",e[5]),u.set_custom_element_data(t,"loginevent",e[3]),u.set_custom_element_data(t,"registerurl",e[6]),u.set_custom_element_data(t,"tournamentinfo",n=e[29]),u.set_custom_element_data(t,"registerevent",e[4]),u.set_custom_element_data(t,"clientstyling",e[10]),u.set_custom_element_data(t,"clientstylingurl",e[11]),u.set_custom_element_data(t,"lang",e[8]),u.set_custom_element_data(t,"currency",e[7]),u.set_custom_element_data(t,"keepbrowsercontext",e[9]),u.set_custom_element_data(t,"session",e[0]),u.set_custom_element_data(t,"endpoint",e[2]),u.set_custom_element_data(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
10
+ d.version="2.30.1";Bs(D);d.fn=o;d.min=Ln;d.max=Un;d.now=In;d.utc=z;d.unix=fi;d.months=mi;d.isDate=Oe;d.locale=ne;d.invalid=Ge;d.duration=H;d.isMoment=E;d.weekdays=yi;d.parseZone=ci;d.localeData=ee;d.isDuration=Le;d.monthsShort=_i;d.weekdaysMin=wi;d.defineLocale=Yt;d.updateLocale=cn;d.locales=mn;d.weekdaysShort=gi;d.normalizeUnits=F;d.relativeTimeRounding=zi;d.relativeTimeThreshold=Zi;d.calendarFormat=ua;d.prototype=o;d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function Vt(e,t){u.addMessages(e,t)}const Gt={en:{nothing:"Nothing to show here."},hr:{nothing:"Nema ničega za prikazati ovdje."},"zh-hk":{nothing:"這裡沒有什麼可顯示的。"},fr:{nothing:"Rien à montrer ici."},ro:{nothing:"Niciun turneu disponibil aici."},tr:{nothing:"Burada gösterilecek bir şey yok."},el:{nothing:"Δεν υπάρχει τίποτα εδώ."},es:{nothing:"Nada que mostrar aquí."},hu:{nothing:"Nincs megjelenítendő adat."},pt:{nothing:"Nada para mostrar aqui."}};if(typeof window!="undefined"){let e=function(t){return function(...s){try{return t.apply(this,s)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-CXIDt-sw.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}function qi(e){u.append_styles(e,"svelte-gkejaq","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}")}function jt(e,t,s){const r=e.slice();return r[29]=t[s],r[31]=s,r}function zt(e){let t,s=u.ensure_array_like(e[14]),r=[];for(let a=0;a<s.length;a+=1)r[a]=Bt(jt(e,s,a));let n=null;return s.length||(n=Zt(e)),{c(){for(let a=0;a<r.length;a+=1)r[a].c();t=u.empty(),n&&n.c()},m(a,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(a,i);u.insert(a,t,i),n&&n.m(a,i)},p(a,i){if(i[0]&53247){s=u.ensure_array_like(a[14]);let l;for(l=0;l<s.length;l+=1){const m=jt(a,s,l);r[l]?r[l].p(m,i):(r[l]=Bt(m),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=s.length,!s.length&&n?n.p(a,i):s.length?n&&(n.d(1),n=null):(n=Zt(a),n.c(),n.m(t.parentNode,t))}},d(a){a&&u.detach(t),u.destroy_each(r,a),n&&n.d(a)}}}function Zt(e){let t,s=e[15]("nothing")+"",r;return{c(){t=u.element("p"),r=u.text(s)},m(n,a){u.insert(n,t,a),u.append(t,r)},p(n,a){a[0]&32768&&s!==(s=n[15]("nothing")+"")&&u.set_data(r,s)},d(n){n&&u.detach(t)}}}function Bt(e){let t,s,r,n;return{c(){t=u.element("casino-tournaments-thumbnail-controller"),u.set_custom_element_data(t,"touridx",e[31]+1),u.set_custom_element_data(t,"userid",e[1]),u.set_custom_element_data(t,"showdetails","true"),u.set_custom_element_data(t,"showslider","false"),u.set_custom_element_data(t,"tournamenturl",s=e[29].href),u.set_custom_element_data(t,"maxwidth",r=e[14].length<=2),u.set_custom_element_data(t,"loginurl",e[5]),u.set_custom_element_data(t,"loginevent",e[3]),u.set_custom_element_data(t,"registerurl",e[6]),u.set_custom_element_data(t,"tournamentinfo",n=e[29]),u.set_custom_element_data(t,"registerevent",e[4]),u.set_custom_element_data(t,"clientstyling",e[10]),u.set_custom_element_data(t,"clientstylingurl",e[11]),u.set_custom_element_data(t,"lang",e[8]),u.set_custom_element_data(t,"currency",e[7]),u.set_custom_element_data(t,"keepbrowsercontext",e[9]),u.set_custom_element_data(t,"session",e[0]),u.set_custom_element_data(t,"endpoint",e[2]),u.set_custom_element_data(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
11
11
  TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
12
12
  TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
13
13
  TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`)},m(a,i){u.insert(a,t,i)},p(a,i){i[0]&2&&u.set_custom_element_data(t,"userid",a[1]),i[0]&16384&&s!==(s=a[29].href)&&u.set_custom_element_data(t,"tournamenturl",s),i[0]&16384&&r!==(r=a[14].length<=2)&&u.set_custom_element_data(t,"maxwidth",r),i[0]&32&&u.set_custom_element_data(t,"loginurl",a[5]),i[0]&8&&u.set_custom_element_data(t,"loginevent",a[3]),i[0]&64&&u.set_custom_element_data(t,"registerurl",a[6]),i[0]&16384&&n!==(n=a[29])&&u.set_custom_element_data(t,"tournamentinfo",n),i[0]&16&&u.set_custom_element_data(t,"registerevent",a[4]),i[0]&1024&&u.set_custom_element_data(t,"clientstyling",a[10]),i[0]&2048&&u.set_custom_element_data(t,"clientstylingurl",a[11]),i[0]&256&&u.set_custom_element_data(t,"lang",a[8]),i[0]&128&&u.set_custom_element_data(t,"currency",a[7]),i[0]&512&&u.set_custom_element_data(t,"keepbrowsercontext",a[9]),i[0]&1&&u.set_custom_element_data(t,"session",a[0]),i[0]&4&&u.set_custom_element_data(t,"endpoint",a[2])},d(a){a&&u.detach(t)}}}function Ji(e){let t,s=!e[13]&&zt(e);return{c(){t=u.element("div"),s&&s.c(),u.attr(t,"class","TournamentList"),u.attr(t,"part","TournamentList")},m(r,n){u.insert(r,t,n),s&&s.m(t,null),e[17](t)},p(r,n){r[13]?s&&(s.d(1),s=null):s?s.p(r,n):(s=zt(r),s.c(),s.m(t,null))},i:u.noop,o:u.noop,d(r){r&&u.detach(t),s&&s.d(),e[17](null)}}}function Qi(e,t,s){let r;u.component_subscribe(e,u.$format,c=>s(15,r=c));let{session:n=""}=t,{userid:a=""}=t,{endpoint:i=""}=t,{loginevent:l=""}=t,{registerevent:m=""}=t,{loginurl:y=""}=t,{registerurl:T=""}=t,{currency:P=""}=t,{lang:C="en"}=t,{keepbrowsercontext:Ft="false"}=t,{clientstyling:Ne=""}=t,{clientstylingurl:Pe=""}=t,{translationurl:We=""}=t,ae,et=!1;d();let L="";const Hs=()=>{fetch(We).then(A=>A.json()).then(A=>{Object.keys(A).forEach(V=>{Vt(V,A[V])})}).catch(A=>{console.log(A)})};Object.keys(Gt).forEach(c=>{Vt(c,Gt[c])});const Ct=c=>{if(c.data&&c.data.type=="TournamentList"&&(s(14,L=[]),s(13,et=!0),s(14,L=c.data.tournamentList),setTimeout(()=>{s(13,et=!1)},10)),c.data&&c.data.type=="TournamentListShowMore"&&s(14,L=[...L,...c.data.tournamentList]),c.data.type=="UpdateTournamentView"){if(!L)return;L.filter(V=>V.id==c.data.tournamentData.id).length==0&&(L.pop(),s(14,L=[c.data.tournamentData,...L]),setTimeout(()=>{L.forEach((V,zs)=>{window.postMessage({type:`UpdateSingleTournament_${zs+1}`,tournamentData:V},window.location.href)})},100))}c.data&&c.data.type=="UserSessionID"&&c.data.session},As=()=>{n.length>0&&n!="false"},Vs=()=>{let c=document.createElement("style");c.innerHTML=Ne,ae.appendChild(c)},Gs=()=>{let c=new URL(Pe),A=document.createElement("style");fetch(c.href).then(V=>V.text()).then(V=>{A.innerHTML=V,setTimeout(()=>{ae.appendChild(A)},1),setTimeout(()=>{},500)})};u.onMount(()=>(window.addEventListener("message",Ct,!0),()=>{window.removeEventListener("message",Ct,!0)}));function js(c){u.binding_callbacks[c?"unshift":"push"](()=>{ae=c,s(12,ae)})}return e.$$set=c=>{"session"in c&&s(0,n=c.session),"userid"in c&&s(1,a=c.userid),"endpoint"in c&&s(2,i=c.endpoint),"loginevent"in c&&s(3,l=c.loginevent),"registerevent"in c&&s(4,m=c.registerevent),"loginurl"in c&&s(5,y=c.loginurl),"registerurl"in c&&s(6,T=c.registerurl),"currency"in c&&s(7,P=c.currency),"lang"in c&&s(8,C=c.lang),"keepbrowsercontext"in c&&s(9,Ft=c.keepbrowsercontext),"clientstyling"in c&&s(10,Ne=c.clientstyling),"clientstylingurl"in c&&s(11,Pe=c.clientstylingurl),"translationurl"in c&&s(16,We=c.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&5120&&ae&&Ne&&Vs(),e.$$.dirty[0]&6144&&ae&&Pe&&Gs(),e.$$.dirty[0]&65536&&We&&Hs(),e.$$.dirty[0]&1&&n&&As(),e.$$.dirty[0]&2},[n,a,i,l,m,y,T,P,C,Ft,Ne,Pe,ae,et,L,r,We,js]}class Es extends u.SvelteComponent{constructor(t){super(),u.init(this,t,Qi,Ji,u.safe_not_equal,{session:0,userid:1,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:16},qi,[-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),u.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),u.flush()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$$set({endpoint:t}),u.flush()}get loginevent(){return this.$$.ctx[3]}set loginevent(t){this.$$set({loginevent:t}),u.flush()}get registerevent(){return this.$$.ctx[4]}set registerevent(t){this.$$set({registerevent:t}),u.flush()}get loginurl(){return this.$$.ctx[5]}set loginurl(t){this.$$set({loginurl:t}),u.flush()}get registerurl(){return this.$$.ctx[6]}set registerurl(t){this.$$set({registerurl:t}),u.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),u.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),u.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),u.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),u.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),u.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),u.flush()}}u.create_custom_element(Es,{session:{},userid:{},endpoint:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Es;
@@ -1,4 +1,4 @@
1
- import { a as Ks, S as $s, i as er, f as N, c as tr, s as sr, b as rr, e as _t, d as Ht, h as je, n as At, j as ze, k as nr, w as ar, l as Vt, x as ir, q as or, t as lr, o as ur, p as dr, y as g, u as hr, $ as fr } from "./CasinoTournamentsController-Cr8b4j7l.js";
1
+ import { a as Ks, S as $s, i as er, f as N, c as tr, s as sr, b as rr, e as _t, d as Ht, h as je, n as At, j as ze, k as nr, w as ar, l as Vt, x as ir, q as or, t as lr, o as ur, p as dr, y as g, u as hr, $ as fr } from "./CasinoTournamentsController-CwoV5JAv.js";
2
2
  function cr(e) {
3
3
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -2624,7 +2624,7 @@ if (typeof window != "undefined") {
2624
2624
  }
2625
2625
  };
2626
2626
  };
2627
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-NEf6XMRB.js").then(
2627
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-ThAV22ql.js").then(
2628
2628
  ({ default: t }) => {
2629
2629
  !customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
2630
2630
  "casino-tournaments-thumbnail-controller",