@everymatrix/casino-tournaments-page-controller 0.0.211 → 0.0.215

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.
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function y(){}function d(t){return t()}function h(){return Object.create(null)}function b(t){t.forEach(d)}function p(t){return"function"==typeof t}function n(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function f(t,...e){if(null==t)return y;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function V(t,e,n){t.$$.on_destroy.push(f(e,n))}function g(t){return t&&p(t.destroy)?t.destroy:y}function C(t,e){t.appendChild(e)}function S(t,e,n){t.insertBefore(e,n||null)}function A(t){t.parentNode.removeChild(t)}function E(e,n){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}function P(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t){return document.createTextNode(t)}function k(){return $(" ")}function w(){return $("")}function L(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function R(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function v(t,e,n){e in t?t[e]=n:R(t,e,n)}function D(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function m(t,e,n,r){t.style.setProperty(e,n,r?"important":"")}function t(t,e,n){t.classList[n?"add":"remove"](e)}function r(t){const e={};for(const n of t)e[n.name]=n.value;return e}let T;function x(t){T=t}function q(t){!function(){if(!T)throw new Error("Function called outside component initialization");return T}().$$.on_mount.push(t)}const _=[],O=[],o=[],i=[],N=Promise.resolve();let I=!1;function M(t){o.push(t)}let s=!1;const a=new Set;function U(){if(!s){s=!0;do{for(let t=0;t<_.length;t+=1){var e=_[t];x(e),function(t){{var e;null!==t.fragment&&(t.update(),b(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(M))}}(e.$$)}for(x(null),_.length=0;O.length;)O.pop()();for(let t=0;t<o.length;t+=1){const n=o[t];a.has(n)||(a.add(n),n())}}while(o.length=0,_.length);for(;i.length;)i.pop()();I=!1,s=!1,a.clear()}}const j=new Set;function l(r,t,e,n,o,i,s=[-1]){var a,l=T;x(r);const u=r.$$={fragment:null,ctx:null,props:i,update:y,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=e?e(r,t.props||{},(t,e,...n)=>{n=n.length?n[0]:e;return u.ctx&&o(u.ctx[t],u.ctx[t]=n)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](n),c&&(n=t,-1===(t=r).$$.dirty[0]&&(_.push(t),I||(I=!0,N.then(U)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],u.update(),c=!0,b(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){const y=(n=t.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(y),y.forEach(A)}else u.fragment&&u.fragment.c();t.intro&&(a=r.$$.fragment)&&a.i&&(j.delete(a),a.i(void 0)),function(e,t,n,r){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,n),r||M(()=>{var t=i.map(d).filter(p);s?s.push(...t):b(t),e.$$.on_mount=[]}),a.forEach(M)}(r,t.target,t.anchor,t.customElement),U()}x(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(d).filter(p);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){b(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(b(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=y}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var c,B,z="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==z&&z,F="URLSearchParams"in z,G="Symbol"in z&&"iterator"in Symbol,H="FileReader"in z&&"Blob"in z&&function(){try{return new Blob,!0}catch(t){return!1}}(),X="FormData"in z,Y="ArrayBuffer"in z;function K(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function W(t){return t="string"!=typeof t?String(t):t}function Z(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return G&&(t[Symbol.iterator]=function(){return t}),t}function J(e){this.map={},e instanceof J?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function Q(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function tt(n){return new Promise(function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}})}function et(t){var e=new FileReader,n=tt(e);return e.readAsArrayBuffer(t),n}function nt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function rt(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:H&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:X&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:F&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():Y&&H&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=nt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y&&(ArrayBuffer.prototype.isPrototypeOf(t)||B(t))?this._bodyArrayBuffer=nt(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},H&&(this.blob=function(){var t=Q(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(et)}),this.text=function(){var t,e,n=Q(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,n=tt(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},X&&(this.formData=function(){return this.text().then(st)}),this.json=function(){return this.text().then(JSON.parse)},this}Y&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],B=ArrayBuffer.isView||function(t){return t&&-1<c.indexOf(Object.prototype.toString.call(t))}),J.prototype.append=function(t,e){t=K(t),e=W(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},J.prototype.delete=function(t){delete this.map[K(t)]},J.prototype.get=function(t){return t=K(t),this.has(t)?this.map[t]:null},J.prototype.has=function(t){return this.map.hasOwnProperty(K(t))},J.prototype.set=function(t,e){this.map[K(t)]=W(e)},J.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},J.prototype.keys=function(){var n=[];return this.forEach(function(t,e){n.push(e)}),Z(n)},J.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Z(e)},J.prototype.entries=function(){var n=[];return this.forEach(function(t,e){n.push([e,t])}),Z(n)},G&&(J.prototype[Symbol.iterator]=J.prototype.entries);var ot=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function it(t,e){if(!(this instanceof it))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(e=e||{}).body;if(t instanceof it){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new J(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new J(e.headers)),this.method=(t=(n=e.method||this.method||"GET").toUpperCase(),-1<ot.indexOf(t)?t:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function st(t){var n=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function at(t,e){if(!(this instanceof at))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new J(e.headers),this.url=e.url||"",this._initBody(t)}it.prototype.clone=function(){return new it(this,{body:this._bodyInit})},rt.call(it.prototype),rt.call(at.prototype),at.prototype.clone=function(){return new at(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new J(this.headers),url:this.url})},at.error=function(){var t=new at(null,{status:0,statusText:""});return t.type="error",t};var lt=[301,302,303,307,308];at.redirect=function(t,e){if(-1===lt.indexOf(e))throw new RangeError("Invalid status code");return new at(null,{status:e,headers:{location:t}})};var ut=z.DOMException;try{new ut}catch(y){(ut=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),ut.prototype.constructor=ut}function ct(r,s){return new Promise(function(o,t){var e=new it(r,s);if(e.signal&&e.signal.aborted)return t(new ut("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var t,n,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",n=new J,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var r="response"in i?i.response:i.responseText;setTimeout(function(){o(new at(r,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new ut("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&z.location.href?z.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(H?i.responseType="blob":Y&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof J?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,W(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",n)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}ct.polyfill=!0,z.fetch||(z.fetch=ct,z.Headers=J,z.Request=it,z.Response=at);var dt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};self.fetch.bind(self);var ht=function(t,e){return(ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ht(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function ft(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function mt(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function gt(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function bt(t){return"function"==typeof t}function yt(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var vt=yt(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function wt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var Et=(xt.prototype.unsubscribe=function(){var t,e,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ft(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(bt(i))try{i()}catch(t){o=t instanceof vt?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=ft(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{Ct(c)}catch(t){o=null!=o?o:[],t instanceof vt?o=gt(gt([],mt(o)),mt(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new vt(o)}},xt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Ct(t);else{if(t instanceof xt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},xt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},xt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},xt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&wt(e,t)},xt.prototype.remove=function(t){var e=this._teardowns;e&&wt(e,t),t instanceof xt&&t._removeParent(this)},xt.EMPTY=((qe=new xt).closed=!0,qe),xt),Tt=Et.EMPTY;function xt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function _t(t){return t instanceof Et||t&&"closed"in t&&bt(t.remove)&&bt(t.add)&&bt(t.unsubscribe)}function Ct(t){bt(t)?t():t.unsubscribe()}var St=void 0,At=!1,Pt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,gt([],mt(t)))};function $t(){}function kt(t){t()}var Lt,Rt,Dt=(pt(It,Rt=Et),It.create=function(t,e,n){return new Ot(t,e,n)},It.prototype.next=function(t){this.isStopped||this._next(t)},It.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},It.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},It.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Rt.prototype.unsubscribe.call(this),this.destination=null)},It.prototype._next=function(t){this.destination.next(t)},It.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},It.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},It),Ot=(pt(Nt,Lt=Dt),Nt);function Nt(t,e,n){var r,o,i=Lt.call(this)||this;return bt(t)?o=t:t&&(o=t.next,e=t.error,n=t.complete,i&&At?(r=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:r=t,o=null==o?void 0:o.bind(r),e=null==e?void 0:e.bind(r),n=null==n?void 0:n.bind(r)),i.destination={next:o?Mt(o):$t,error:Mt(null!=e?e:Ut),complete:n?Mt(n):$t},i}function It(t){var e=Rt.call(this)||this;return e.isStopped=!1,t?_t(e.destination=t)&&t.add(e):e.destination=jt,e}function Mt(r){return function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{r.apply(void 0,gt([],mt(t)))}catch(t){e=t,Pt(function(){throw e})}}}function Ut(t){throw t}var jt={closed:!0,next:$t,error:Ut,complete:$t},Bt="function"==typeof Symbol&&Symbol.observable||"@@observable";function zt(t){return t}var Ft=(Gt.prototype.lift=function(t){var e=new Gt;return e.source=this,e.operator=t,e},Gt.prototype.subscribe=function(t,e,n){var r,o=this,i=(r=t)&&r instanceof Dt||r&&bt(r.next)&&bt(r.error)&&bt(r.complete)&&_t(r)?t:new Ot(t,e,n);return kt(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},Gt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Gt.prototype.forEach=function(r,t){var o=this;return new(t=Ht(t))(function(t,e){var n=o.subscribe(function(t){try{r(t)}catch(t){e(t),null==n||n.unsubscribe()}},e,t)})},Gt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Gt.prototype[Bt]=function(){return this},Gt.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?zt:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Gt.prototype.toPromise=function(t){var r=this;return new(t=Ht(t))(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},Gt.create=function(t){return new Gt(t)},Gt);function Gt(t){t&&(this._subscribe=t)}function Ht(t){return null!==(t=null!=t?t:St)&&void 0!==t?t:Promise}var Xt,Vt,qt,Yt=yt(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Kt=(pt(ee,qt=Ft),ee.prototype.lift=function(t){var e=new Wt(this,this);return e.operator=t,e},ee.prototype._throwIfClosed=function(){if(this.closed)throw new Yt},ee.prototype.next=function(i){var s=this;kt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var n=s.observers.slice();try{for(var r=ft(n),o=r.next();!o.done;o=r.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},ee.prototype.error=function(e){var n=this;kt(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var t=n.observers;t.length;)t.shift().error(e)}})},ee.prototype.complete=function(){var e=this;kt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},ee.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(ee.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),ee.prototype._trySubscribe=function(t){return this._throwIfClosed(),qt.prototype._trySubscribe.call(this,t)},ee.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},ee.prototype._innerSubscribe=function(t){var e=this.hasError,n=this.isStopped,r=this.observers;return e||n?Tt:(r.push(t),new Et(function(){return wt(r,t)}))},ee.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,n=this.thrownError,r=this.isStopped;e?t.error(n):r&&t.complete()},ee.prototype.asObservable=function(){var t=new Ft;return t.source=this,t},ee.create=function(t,e){return new Wt(t,e)},ee),Wt=(pt(te,Vt=Kt),te.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},te.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},te.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},te.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:Tt},te),Zt={now:function(){return(Zt.delegate||Date).now()},delegate:void 0},Jt=(pt(Qt,Xt=Kt),Qt.prototype.next=function(t){var e=this,n=e.isStopped,r=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;n||(r.push(t),o||r.push(i.now()+e)),this._trimBuffer(),Xt.prototype.next.call(this,t)},Qt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=n?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),e},Qt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=e.now(),s=0,a=1;a<n.length&&n[a]<=i;a+=2)s=a;s&&n.splice(0,s+1)}},Qt);function Qt(t,e,n){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===n&&(n=Zt);var r=Xt.call(this)||this;return r._bufferSize=t,r._windowTime=e,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=e===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,e),r}function te(t,e){var n=Vt.call(this)||this;return n.destination=t,n.source=e,n}function ee(){var t=qt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let ne=[],re={};const oe=[];function ie(r,o=y){let i;const s=[];function a(t){if(n(r,t)&&(r=t,i)){const t=!oe.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),oe.push(e,r)}if(t){for(let t=0;t<oe.length;t+=2)oe[t][0](oe[t+1]);oe.length=0}}}return{set:a,update:function(t){a(t(r))},subscribe:function(t,e=y){const n=[t,e];return s.push(n),1===s.length&&(i=o(a)||y),t(r),()=>{var t=s.indexOf(n);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function se(t,a,e){const l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return{subscribe:ie(e,e=>{let n=!1;const r=[];let o=0,i=y;const s=()=>{var t;o||(i(),t=a(l?r[0]:r,e),c?e(t):i=p(t)?t:y)},t=u.map((t,e)=>f(t,t=>{r[e]=t,o&=~(1<<e),n&&s()},()=>{o|=1<<e}));return n=!0,s(),function(){b(t),i()}}).subscribe}}var ae=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===le));var e},le="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ue(t,e){return!1!==e.clone&&e.isMergeableObject(t)?fe(Array.isArray(t)?[]:{},t,e):t}function ce(t,e,n){return t.concat(e).map(function(t){return ue(t,n)})}function de(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function he(t,e){try{return e in t}catch(t){return!1}}function pe(r,o,i){var s={};return i.isMergeableObject(r)&&de(r).forEach(function(t){s[t]=ue(r[t],i)}),de(o).forEach(function(e){var t,n;(!he(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(he(r,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return fe;var t=i.customMerge(e);return"function"==typeof t?t:fe}()(r[e],o[e],i):s[e]=ue(o[e],i))}),s}function fe(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||ce,n.isMergeableObject=n.isMergeableObject||ae,n.cloneUnlessOtherwiseSpecified=ue;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):pe(t,e,n):ue(e,n)}fe.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return fe(t,e,n)},{})};var me=fe,ge=function(t,e){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function be(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ge(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ye,ve,we,Ee=function(){return(Ee=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function Te(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function xe(t){return t.type===ve.literal}function _e(t){return t.type===ve.number}function Ce(t){return t.type===ve.date}function Se(t){return t.type===ve.time}function Ae(t){return t.type===ve.select}function Pe(t){return t.type===ve.plural}function $e(t){return t.type===ve.tag}function ke(t){return t&&"object"==typeof t&&t.type===we.number}function Le(t){return t&&"object"==typeof t&&t.type===we.dateTime}(Ye=ye=ye||{})[Ye.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Ye[Ye.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Ye[Ye.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Ye[Ye.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Ye[Ye.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Ye[Ye.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Ye[Ye.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Ye[Ye.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Ye[Ye.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Ye[Ye.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Ye[Ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Ye[Ye.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Ye[Ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Ye[Ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Ye[Ye.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Ye[Ye.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Ye[Ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Ye[Ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Ye[Ye.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Ye[Ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Ye[Ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Ye[Ye.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Ye[Ye.INVALID_TAG=23]="INVALID_TAG",Ye[Ye.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Ye[Ye.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Ye[Ye.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ke=ve=ve||{})[Ke.literal=0]="literal",Ke[Ke.argument=1]="argument",Ke[Ke.number=2]="number",Ke[Ke.date=3]="date",Ke[Ke.time=4]="time",Ke[Ke.select=5]="select",Ke[Ke.plural=6]="plural",Ke[Ke.pound=7]="pound",Ke[Ke.tag=8]="tag",(We=we=we||{})[We.number=0]="number",We[We.dateTime=1]="dateTime";var Re=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,De=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Oe,Ne=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ie=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Me=/^(@+)?(\+|#+)?$/g,Ue=/(\*)(0+)|(#+)(0+)|(0+)/g,je=/^(0+)$/;function Be(t){var r={};return t.replace(Me,function(t,e,n){return"string"!=typeof n?(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length):"+"===n?r.minimumSignificantDigits=e.length:"#"===e[0]?r.maximumSignificantDigits=e.length:(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length+("string"==typeof n?n.length:0)),""}),r}function ze(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Fe(t){return ze(t)||{}}function Ge(t){for(var s={},e=0,n=t;e<n.length;e++){var r,o=n[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=Ee(Ee(Ee({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return Ee(Ee({},t),Fe(e))},{}));continue;case"engineering":s=Ee(Ee(Ee({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return Ee(Ee({},t),Fe(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ue,function(t,e,n,r,o,i){if(e)s.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(je.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ie.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ie,function(t,e,n,r,o,i){return"*"===n?s.minimumFractionDigits=e.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=Ee(Ee({},s),Be(o.options[0])))}else Me.test(o.stem)?s=Ee(Ee({},s),Be(o.stem)):((r=ze(o.stem))&&(s=Ee(Ee({},s),r)),(r=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!je.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=Ee(Ee({},s),r)))}return s}var He=new RegExp("^"+Re.source+"*"),Xe=new RegExp(Re.source+"*$");function Ve(t,e){return{start:t,end:e}}var qe=!!String.prototype.startsWith,Bt=!!String.fromCodePoint,Kt=!!Object.fromEntries,Ye=!!String.prototype.codePointAt,Ke=!!String.prototype.trimStart,We=!!String.prototype.trimEnd,Ze=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Re=!0;try{Re="a"===(null===(Oe=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Oe?void 0:Oe[0])}catch(y){Re=!1}var Je,Qe,tn=qe?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},en=Bt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,r="",o=t.length,i=0;i<o;){if(1114111<(n=t[i++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},nn=Kt?Object.fromEntries:function(t){for(var e={},n=0,r=t;n<r.length;n++){var o=r[n],i=o[0],o=o[1];e[i]=o}return e},rn=Ye?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||n<=e)){var r,o=t.charCodeAt(e);return o<55296||56319<o||e+1===n||(r=t.charCodeAt(e+1))<56320||57343<r?o:r-56320+(o-55296<<10)+65536}},on=Ke?function(t){return t.trimStart()}:function(t){return t.replace(He,"")},sn=We?function(t){return t.trimEnd()}:function(t){return t.replace(Xe,"")};function an(t,e){return new RegExp(t,e)}Qe=Re?(Je=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Je.lastIndex=e,null!==(t=Je.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var n,r=[];;){var o=rn(t,e);if(void 0===o||dn(o)||(33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(o),e+=65536<=o?2:1}return en.apply(void 0,r)};var ln=(un.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},un.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,n)).err)return o;r.push(o.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(ye.UNMATCHED_CLOSING_TAG,Ve(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&cn(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;r.push(o.val)}}else{i=this.clonePosition();this.bump(),r.push({type:ve.pound,location:Ve(i,this.clonePosition())})}}}return{val:r,err:null}},un.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ve.literal,value:"<"+r+"/>",location:Ve(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!cn(this.char()))return this.error(ye.INVALID_TAG,Ve(e,this.clonePosition()));o=this.clonePosition();return r!==this.parseTagName()?this.error(ye.UNMATCHED_CLOSING_TAG,Ve(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ve.tag,value:r,children:t,location:Ve(n,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,Ve(e,this.clonePosition())))}return this.error(ye.UNCLOSED_TAG,Ve(n,this.clonePosition()))}return this.error(ye.INVALID_TAG,Ve(n,this.clonePosition()))},un.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},un.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{o=this.tryParseUnquoted(t,e);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=Ve(n,this.clonePosition());return{val:{type:ve.literal,value:r,location:n},err:null}},un.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(cn(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},un.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return en.apply(void 0,e)},un.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&0<t?null:(this.bump(),en(n))},un.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ye.EMPTY_ARGUMENT,Ve(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(ye.MALFORMED_ARGUMENT,Ve(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ve.argument,value:r,location:Ve(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(ye.MALFORMED_ARGUMENT,Ve(n,this.clonePosition()))}},un.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=Qe(this.message,e),e=e+n.length;return this.bumpTo(e),{value:n,location:Ve(t,this.clonePosition())}},un.prototype.parseArgumentOptions=function(t,e,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ye.EXPECT_ARGUMENT_TYPE,Ve(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=sn(h.val)).length)return this.error(ye.EXPECT_ARGUMENT_STYLE,Ve(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Ve(u,this.clonePosition())}}if((p=this.tryParseArgumentClose(r)).err)return p;var c=Ve(r,this.clonePosition());if(l&&tn(null==l?void 0:l.style,"::",0)){u=on(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:ve.number,value:n,location:c,style:h.val},err:null};if(0===u.length)return this.error(ye.EXPECT_DATE_TIME_SKELETON,c);var d={type:we.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(De,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][e-1];break;case"s":o.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===s?ve.date:ve.time,value:n,location:c,style:d},err:null}}return{val:{type:"number"===s?ve.number:"date"===s?ve.date:ve.time,value:n,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,Ve(l,Ee({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ve(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(t,s,e,c);if(c.err)return c;if((p=this.tryParseArgumentClose(r)).err)return p;var p=Ve(r,this.clonePosition());return"select"===s?{val:{type:ve.select,value:n,options:nn(c.val),location:p},err:null}:{val:{type:ve.plural,value:n,options:nn(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(ye.INVALID_ARGUMENT_TYPE,Ve(i,a))}},un.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},un.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ve(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},un.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(Ne).filter(function(t){return 0<t.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(ye.INVALID_NUMBER_SKELETON,e)}return{val:{type:we.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?Ge(n):{}},err:null}},un.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){for(var o=!1,i=[],s=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ve(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ve(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,n);if(c.err)return c;u=this.tryParseArgumentClose(d);if(u.err)return u;i.push([a,{value:c.val,location:Ve(d,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===i.length?this.error("select"===e?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ve(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ye.MISSING_OTHER_CLAUSE,Ve(this.clonePosition(),this.clonePosition())):{val:i,err:null}},un.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}r=Ve(r,this.clonePosition());return o?Ze(i*=n)?{val:i,err:null}:this.error(e,r):this.error(t,r)},un.prototype.offset=function(){return this.position.offset},un.prototype.isEOF=function(){return this.offset()===this.message.length},un.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},un.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=rn(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},un.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},un.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},un.prototype.bumpIf=function(t){if(tn(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},un.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},un.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},un.prototype.bumpSpace=function(){for(;!this.isEOF()&&dn(this.char());)this.bump()},un.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},un);function un(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function cn(t){return 97<=t&&t<=122||65<=t&&t<=90}function dn(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function hn(t,e){e=Ee({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var n=new ln(t,e).parse();if(n.err){t=SyntaxError(ye[n.err.kind]);throw t.location=n.err.location,t.originalMessage=n.err.message,t}return null!=e&&e.captureLocation||function n(t){t.forEach(function(t){if(delete t.location,Ae(t)||Pe(t))for(var e in t.options)delete t.options[e].location,n(t.options[e].value);else _e(t)&&ke(t.style)||(Ce(t)||Se(t))&&Le(t.style)?delete t.style.location:$e(t)&&n(t.children)})}(n.val),n.val}function pn(t,e){var n=e&&e.cache?e.cache:wn,r=e&&e.serializer?e.serializer:bn;return(e&&e.strategy?e.strategy:function(t,e){return gn(t,this,1===t.length?fn:mn,e.cache.create(),e.serializer)})(t,{cache:n,serializer:r})}function fn(t,e,n,r){var o=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=e.get(o);return void 0===n&&(n=t.call(this,r),e.set(o,n)),n}function mn(t,e,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),n=e.get(o);return void 0===n&&(n=t.apply(this,r),e.set(o,n)),n}function gn(t,e,n,r,o){return n.bind(e,t,r,o)}var bn=function(){return JSON.stringify(arguments)};function yn(){this.cache=Object.create(null)}yn.prototype.has=function(t){return t in this.cache},yn.prototype.get=function(t){return this.cache[t]},yn.prototype.set=function(t,e){this.cache[t]=e};var vn,wn={create:function(){return new yn}},En={variadic:function(t,e){return gn(t,this,mn,e.cache.create(),e.serializer)},monadic:function(t,e){return gn(t,this,fn,e.cache.create(),e.serializer)}};(Re=vn=vn||{}).MISSING_VALUE="MISSING_VALUE",Re.INVALID_VALUE="INVALID_VALUE",Re.MISSING_INTL_API="MISSING_INTL_API";var Tn,xn,_n,Cn,Sn,An=(be(On,Sn=Error),On.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},On),Pn=(be(Dn,Cn=An),Dn),$n=(be(Rn,_n=An),Rn),kn=(be(Ln,xn=An),Ln);function Ln(t,e){return xn.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',vn.MISSING_VALUE,e)||this}function Rn(t,e,n){return _n.call(this,'Value for "'+t+'" must be of type '+e,vn.INVALID_VALUE,n)||this}function Dn(t,e,n,r){return Cn.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(n).join('", "')+'"',vn.INVALID_VALUE,r)||this}function On(t,e,n){t=Sn.call(this,t)||this;return t.code=e,t.originalMessage=n,t}function Nn(t,e,n,r,o,i,s){if(1===t.length&&xe(t[0]))return[{type:Tn.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(xe(c))a.push({type:Tn.literal,value:c.value});else if(c.type===ve.pound)"number"==typeof i&&a.push({type:Tn.literal,value:n.getNumberFormat(e).format(i)});else{var d=c.value;if(!(o&&d in o))throw new kn(d,s);var h=o[d];if(c.type===ve.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?Tn.literal:Tn.object,value:h});else if(Ce(c)){var p="string"==typeof c.style?r.date[c.style]:Le(c.style)?c.style.parsedOptions:void 0;a.push({type:Tn.literal,value:n.getDateTimeFormat(e,p).format(h)})}else if(Se(c))p="string"==typeof c.style?r.time[c.style]:Le(c.style)?c.style.parsedOptions:void 0,a.push({type:Tn.literal,value:n.getDateTimeFormat(e,p).format(h)});else if(_e(c))(p="string"==typeof c.style?r.number[c.style]:ke(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:Tn.literal,value:n.getNumberFormat(e,p).format(h)});else{if($e(c)){var f=c.children,m=c.value,d=o[m];if("function"!=typeof d)throw new $n(m,"function",s);f=d(Nn(f,e,n,r,o,i).map(function(t){return t.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(t){return{type:"string"==typeof t?Tn.literal:Tn.object,value:t}}))}if(Ae(c)){if(!(g=c.options[h]||c.options.other))throw new Pn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Nn(g.value,e,n,r,o))}else if(Pe(c)){if(!(g=c.options["="+h])){if(!Intl.PluralRules)throw new An('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',vn.MISSING_INTL_API,s);var f=n.getPluralRules(e,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Pn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Nn(g.value,e,n,r,o,h-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===Tn.literal&&e.type===Tn.literal?n.value+=e.value:t.push(e),t},[])}function In(n){return{create:function(){return{has:function(t){return t in n},get:function(t){return n[t]},set:function(t,e){n[t]=e}}}}}(Re=Tn=Tn||{})[Re.literal=0]="literal",Re[Re.object=1]="object";var Mn=(Object.defineProperty(Un,"defaultLocale",{get:function(){return Un.memoizedDefaultLocale||(Un.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Un.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Un.memoizedDefaultLocale=null,Un.__parse=hn,Un.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Un);function Un(t,e,n,r){var o,i,s=this;if(void 0===e&&(e=Un.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===Tn.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Nn(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Un.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Un.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Un.formats,(i=n)?Object.keys(o).reduce(function(t,e){var n,r;return t[e]=(n=o[e],(r=i[e])?Ee(Ee(Ee({},n||{}),r||{}),Object.keys(n).reduce(function(t,e){return t[e]=Ee(Ee({},n[e]),r[e]||{}),t},{})):n),t},Ee({},o)):o),this.locales=e,this.formatters=r&&r.formatters||{getNumberFormat:pn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Te([void 0],e)))},{cache:In((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:En.variadic}),getDateTimeFormat:pn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Te([void 0],e)))},{cache:In(r.dateTime),strategy:En.variadic}),getPluralRules:pn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Te([void 0],e)))},{cache:In(r.pluralRules),strategy:En.variadic})}}const jn={},Bn=(e,n)=>{if(null!=n){if(n in jn&&e in jn[n])return jn[n][e];var r,o,i=nr(n);for(let t=0;t<i.length;t++){var s=(r=i[t],o=e,Gn(r)?function(t,e){if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(0<t){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(function(t){return zn[t]||null}(r),o):null);if(s)return r=e,o=n,(s=s)&&(o in jn||(jn[o]={}),r in jn[o]||(jn[o][r]=s),s)}}};let zn;const Fn=ie({});function Gn(t){return t in zn}function Hn(e,...n){delete jn[e],Fn.update(t=>(t[e]=me.all([t[e]||{},...n]),t))}se([Fn],([t])=>Object.keys(t)),Fn.subscribe(t=>zn=t);const Xn={};function Vn(t){return Xn[t]}function qn(t){return nr(t).some(t=>{return null===(t=Vn(t))||void 0===t?void 0:t.size})}const Yn={};function Kn(t){if(!qn(t))return t in Yn?Yn[t]:void 0;const e=nr(t).map(t=>{var e=Vn(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Yn[t]=Promise.all(e.map(([t,n])=>function(e){return Promise.all(n.map(t=>(function(t,e){Xn[t].delete(e),0===Xn[t].size&&delete Xn[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Hn(e,...t))}(t))).then(()=>qn(t)?Kn(t):void delete Yn[t]),Yn[t]}function Wn(t,e){var n={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n}const Zn={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Jn=ie(!1);let Qn;const tr=ie(null);function er(t){return t.split("-").map((t,e,n)=>n.slice(0,e+1).join("-")).reverse()}function nr(t,e=Zn.fallbackLocale){t=er(t);return e?[...new Set([...t,...er(e)])]:t}tr.subscribe(t=>{Qn=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const rr=tr.set;tr.set=e=>{if(function(t){if(null!=t){var e=nr(t);for(let t=0;t<e.length;t++){var n=e[t];if(Gn(n))return n}}}(e)&&qn(e)){var{loadingDelay:n}=Zn;let t;return"undefined"!=typeof window&&null!=Qn&&n?t=window.setTimeout(()=>Jn.set(!0),n):Jn.set(!0),Kn(e).then(()=>{rr(e)}).finally(()=>{clearTimeout(t),Jn.set(!1)})}return rr(e)},tr.update=t=>rr(t(Qn));const or=n=>{const r=Object.create(null);return t=>{var e=JSON.stringify(t);return e in r?r[e]:r[e]=n(t)}},ir=(t,e)=>{var{formats:n}=Zn;if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},sr=or(t=>{var{locale:e,format:n}=t,t=Wn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(t=ir("number",n)),new Intl.NumberFormat(e,t)}),ar=or(t=>{var{locale:e,format:n}=t,t=Wn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?t=ir("date",n):0===Object.keys(t).length&&(t=ir("date","short")),new Intl.DateTimeFormat(e,t)}),lr=or(t=>{var{locale:e,format:n}=t,t=Wn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?t=ir("time",n):0===Object.keys(t).length&&(t=ir("time","short")),new Intl.DateTimeFormat(e,t)}),ur=or((t,e=Qn)=>new Mn(t,e,Zn.formats,{ignoreTag:Zn.ignoreTag})),cr=se([tr,Fn],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:n,locale:r=Qn,default:o}=e;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Bn(t,r);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Zn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${nr(r).join('", "')}".${qn(Qn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!n)return i;let s=i;try{s=ur(i,r).format(n)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});se([tr],()=>(t,e)=>((t={})=>{var{locale:e=Qn}=t,t=Wn(t,["locale"]);return lr(Object.assign({locale:e},t))})(e).format(t)),se([tr],()=>(t,e)=>((t={})=>{var{locale:e=Qn}=t,t=Wn(t,["locale"]);return ar(Object.assign({locale:e},t))})(e).format(t)),se([tr],()=>(t,e)=>((t={})=>{var{locale:e=Qn}=t,t=Wn(t,["locale"]);return sr(Object.assign({locale:e},t))})(e).format(t)),se([tr,Fn],()=>(t,e=Qn)=>Bn(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==ne.indexOf(t)&&(e=new Jt(e),re[t]=e,ne.push(t)),re[t]}};const dr=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),hr=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",pr={en:{tournamentsPage:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next"}},tr:{tournamentsPage:{loading:"Yükelniyor, lütfen bekleyin…",back:"Geri",previous:"Önceki",next:"Sonraki"}},el:{tournamentsPage:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο"}}};var fr,mr,gr=(mr=(fr={path:void 0,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&fr.path)}}).exports,function(t){var r,L=t.setTimeout,R=t.clearTimeout,D=t.XMLHttpRequest,o=t.XDomainRequest,e=t.ActiveXObject,n=t.EventSource,i=t.document,d=t.Promise,h=t.fetch,s=t.Response,p=t.TextDecoder,a=t.TextEncoder,f=t.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(t){i.readyState="complete"},!1)),null==D&&null!=e&&(D=function(){return new e("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(r=h,h=function(t,e){var n=e.signal;return r(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then(function(t){var e=t.body.getReader();return n._reader=e,n._aborted&&n._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),l.prototype.decode=function(t){function e(t,e,n){if(1===n)return 128>>e<=t&&t<<e<=2047;if(2===n)return 2048>>e<=t&&t<<e<=55295||57344>>e<=t&&t<<e<=65535;if(3===n)return 65536>>e<=t&&t<<e<=1114111;throw new Error}function n(t,e){if(6===t)return 15<e>>6?3:31<e?2:1;if(12===t)return 15<e?3:2;if(18===t)return 3;throw new Error}for(var r="",o=this.bitsNeeded,i=this.codePoint,s=0;s<t.length;s+=1){var a=t[s];0!==o&&(a<128||191<a||!e(i<<6|63&a,o-6,n(o,i)))&&(o=0,i=65533,r+=String.fromCharCode(i)),0===o?(i=0<=a&&a<=127?(o=0,a):192<=a&&a<=223?(o=6,31&a):224<=a&&a<=239?(o=12,15&a):240<=a&&a<=247?(o=18,7&a):(o=0,65533),0===o||e(i,o,n(o,i))||(o=0,i=65533)):(o-=6,i=i<<6|63&a),0===o&&(i<=65535?r+=String.fromCharCode(i):(r+=String.fromCharCode(55296+(i-65535-1>>10)),r+=String.fromCharCode(56320+(i-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=i,r},null!=p&&null!=a&&function(){try{return"test"===(new p).decode((new a).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}}()||(p=l);var c=function(){};function O(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=c,this.onload=c,this.onerror=c,this.onreadystatechange=c,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=c}function u(t){return t.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)+32)})}function m(t){for(var e=Object.create(null),n=t.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),i=o.shift(),o=o.join(": ");e[u(i)]=o}this._map=e}function N(){}function g(t){this._headers=t}function I(){}function b(){this._listeners=Object.create(null)}function y(t){L(function(){throw t},0)}function v(t){this.type=t,this.target=void 0}function M(t,e){v.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function U(t,e){v.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function j(t,e){v.call(this,t),this.error=e.error}O.prototype.open=function(t,e){this._abort(!0);var o=this,i=this._xhr,s=1,n=0;this._abort=function(t){0!==o._sendTimeout&&(R(o._sendTimeout),o._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,i.onload=c,i.onerror=c,i.onabort=c,i.onprogress=c,i.onreadystatechange=c,i.abort(),0!==n&&(R(n),n=0),t||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0};function r(){if(1===s){var e=0,n="",r=void 0;if("contentType"in i)e=200,n="OK",r=i.contentType;else try{e=i.status,n=i.statusText,r=i.getResponseHeader("Content-Type")}catch(t){n="",r=void(e=0)}0!==e&&(s=2,o.readyState=2,o.status=e,o.statusText=n,o._contentType=r,o.onreadystatechange())}}function a(){if(r(),2===s||3===s){s=3;var t="";try{t=i.responseText}catch(t){}o.readyState=3,o.responseText=t,o.onprogress()}}function l(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:c}),a(),1===s||2===s||3===s){if(s=4,0!==n&&(R(n),n=0),o.readyState=4,"load"===t)o.onload(e);else if("error"===t)o.onerror(e);else{if("abort"!==t)throw new TypeError;o.onabort(e)}o.onreadystatechange()}}var u=function(){n=L(function(){u()},500),3===i.readyState&&a()};"onload"in i&&(i.onload=function(t){l("load",t)}),"onerror"in i&&(i.onerror=function(t){l("error",t)}),"onabort"in i&&(i.onabort=function(t){l("abort",t)}),"onprogress"in i&&(i.onprogress=a),"onreadystatechange"in i&&(i.onreadystatechange=function(t){t=t,null!=i&&(4===i.readyState?"onload"in i&&"onerror"in i&&"onabort"in i||l(""===i.responseText?"error":"load",t):3===i.readyState?"onprogress"in i||a():2===i.readyState&&r())}),!("contentType"in i)&&"ontimeout"in D.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),i.open(t,e,!0),"readyState"in i&&(n=L(function(){u()},0))},O.prototype.abort=function(){this._abort(!1)},O.prototype.getResponseHeader=function(t){return this._contentType},O.prototype.setRequestHeader=function(t,e){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(t,e)},O.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},O.prototype.send=function(){if("ontimeout"in D.prototype&&("sendAsBinary"in D.prototype||"mozAnon"in D.prototype)||null==i||null==i.readyState||"complete"===i.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var e=this;e._sendTimeout=L(function(){e._sendTimeout=0,e.send()},4)}},m.prototype.get=function(t){return this._map[u(t)]},null!=D&&null==D.HEADERS_RECEIVED&&(D.HEADERS_RECEIVED=2),N.prototype.open=function(o,i,e,n,t,r,s){o.open("GET",t);var a,l=0;for(a in o.onprogress=function(){var t=o.responseText.slice(l);l+=t.length,e(t)},o.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var t,e,n,r;o.readyState===D.HEADERS_RECEIVED&&(t=o.status,e=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),i(t,e,n,new m(r)))},o.withCredentials=r,s)Object.prototype.hasOwnProperty.call(s,a)&&o.setRequestHeader(a,s[a]);return o.send(),o},g.prototype.get=function(t){return this._headers.get(t)},I.prototype.open=function(t,e,o,n,r,i,s){var a=null,l=new f,u=l.signal,c=new p;return h(r,{headers:s,credentials:i?"include":"same-origin",signal:u,cache:"no-store"}).then(function(t){return a=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new g(t.headers)),new d(function(e,n){var r=function(){a.read().then(function(t){t.done?e(void 0):(t=c.decode(t.value,{stream:!0}),o(t),r())}).catch(function(t){n(t)})};r()})}).catch(function(t){return"AbortError"===t.name?void 0:t}).then(function(t){n(t)}),{abort:function(){null!=a&&a.cancel(),l.abort()}}},b.prototype.dispatchEvent=function(t){var e=(t.target=this)._listeners[t.type];if(null!=e)for(var n=e.length,r=0;r<n;r+=1){var o=e[r];try{"function"==typeof o.handleEvent?o.handleEvent(t):o.call(this,t)}catch(t){y(t)}}},b.prototype.addEventListener=function(t,e){t=String(t);var n=this._listeners,r=n[t];null==r&&(n[t]=r=[]);for(var o=!1,i=0;i<r.length;i+=1)r[i]===e&&(o=!0);o||r.push(e)},b.prototype.removeEventListener=function(t,e){t=String(t);var n=this._listeners,r=n[t];if(null!=r){for(var o=[],i=0;i<r.length;i+=1)r[i]!==e&&o.push(r[i]);0===o.length?delete n[t]:n[t]=o}},M.prototype=Object.create(v.prototype),U.prototype=Object.create(v.prototype),j.prototype=Object.create(v.prototype);function B(t,e){return t=null==t?e:parseInt(t,10),G(t=t!=t?e:t)}function z(t,e,n){try{"function"==typeof e&&e.call(t,n)}catch(t){y(t)}}var F=/^text\/event\-stream(;.*)?$/i,G=function(t){return Math.min(Math.max(t,1e3),18e6)};function w(t,e){b.call(this),e=e||{},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,function(l,i,t){i=String(i);function s(t,e,n,r){var o,i;0===E&&(200===t&&null!=n&&F.test(n)?(E=1,m=Date.now(),f=d,l.readyState=1,o=new U("open",{status:t,statusText:e,headers:r}),l.dispatchEvent(o),z(l,l.onopen,o)):(i="",i=200!==t?"EventSource's response has a status "+t+" "+(e=e&&e.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",$(),o=new U("error",{status:t,statusText:e,headers:r}),l.dispatchEvent(o),z(l,l.onerror,o),console.error(i)))}function a(t){if(1===E){for(var e=-1,n=0;n<t.length;n+=1)(s=t.charCodeAt(n))!=="\n".charCodeAt(0)&&s!=="\r".charCodeAt(0)||(e=n);var r=(-1!==e?C:"")+t.slice(0,e+1);C=(-1===e?C:"")+t.slice(e+1),""!==t&&(m=Date.now(),g+=t.length);for(var o=0;o<r.length;o+=1){var i,s=r.charCodeAt(o);if(-1===S&&s==="\n".charCodeAt(0))S=0;else if(-1===S&&(S=0),s==="\r".charCodeAt(0)||s==="\n".charCodeAt(0)){if(0!==S&&(1===S&&(P=o+1),i=r.slice(A,P-1),a=r.slice(P+(P<o&&r.charCodeAt(P)===" ".charCodeAt(0)?1:0),o),"data"===i?(T+="\n",T+=a):"id"===i?x=a:"event"===i?_=a:"retry"===i?(d=B(a,d),f=d):"heartbeatTimeout"===i&&(h=B(a,h),0!==w&&(R(w),w=L(function(){k()},h)))),0===S){if(""!==T){p=x;var a=new M(_=""===_?"message":_,{data:T.slice(1),lastEventId:x});if(l.dispatchEvent(a),"open"===_?z(l,l.onopen,a):"message"===_?z(l,l.onmessage,a):"error"===_&&z(l,l.onerror,a),2===E)return}_=T=""}S=s==="\r".charCodeAt(0)?-1:0}else 0===S&&(A=o,S=1),1===S?s===":".charCodeAt(0)&&(P=o+1,S=2):2===S&&(S=3)}}}function u(t){var e;1!==E&&0!==E||(E=-1,0!==w&&(R(w),w=0),w=L(function(){k()},f),f=G(Math.min(16*d,2*f)),l.readyState=0,e=new j("error",{error:t}),l.dispatchEvent(e),z(l,l.onerror,e),null!=t&&console.error(t))}var e=Boolean(t.withCredentials),c=t.lastEventIdQueryParameterName||"lastEventId",d=G(1e3),h=B(t.heartbeatTimeout,45e3),p="",f=d,m=!1,g=0,n=t.headers||{},t=t.Transport,b=H&&null==t?void 0:new O(new(null!=t?t:null!=D&&"withCredentials"in D.prototype||null==o?D:o)),y=new(null!=t&&"string"!=typeof t?t:null==b?I:N),v=void 0,w=0,E=-1,T="",x="",_="",C="",S=0,A=0,P=0,$=function(){E=2,null!=v&&(v.abort(),v=void 0),0!==w&&(R(w),w=0),l.readyState=2},k=function(){if(w=0,-1===E){m=!1,g=0,w=L(function(){k()},h),x=p,C=_=T="",S=P=A=E=0;var t=i;"data:"!==i.slice(0,5)&&"blob:"!==i.slice(0,5)&&""!==p&&(t=-1===(e=i.indexOf("?"))?i:i.slice(0,e+1)+i.slice(e+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(t,e){return e===c?"":t}),t+=(-1===i.indexOf("?")?"?":"&")+c+"="+encodeURIComponent(p));var e=l.withCredentials,n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{v=y.open(b,s,a,u,t,e,n)}catch(t){throw $(),t}}else m||null==v?(e=Math.max((m||Date.now())+h-Date.now(),1),m=!1,w=L(function(){k()},e)):(u(new Error("No activity within "+h+" milliseconds. "+(0===E?"No response received.":g+" chars received.")+" Reconnecting.")),null!=v&&(v.abort(),v=void 0))};l.url=i,l.readyState=0,l.withCredentials=e,l.headers=n,l._close=$,k()}(this,t,e)}var H=null!=h&&null!=s&&"body"in s.prototype;(w.prototype=Object.create(b.prototype)).CONNECTING=0,w.prototype.OPEN=1,w.prototype.CLOSED=2,w.prototype.close=function(){this._close()},w.CONNECTING=0,w.OPEN=1,w.CLOSED=2,w.prototype.withCredentials=void 0;t=n;null==D||null!=n&&"withCredentials"in n.prototype||(t=w),(s=mr).EventSourcePolyfill=w,s.NativeEventSource=n,s.EventSource=t}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:dt:globalThis),fr.exports);function br(t){let n;return{c(){n=P("div"),n.textContent="Simple Svelte Component",this.c=y,R(n,"class","casino-tournaments-page")},m(t,e){S(t,n,e)},p:y,i:y,o:y,d(t){t&&A(n)}}}function yr(n){let r,o,i,s,a,l,u;function c(t){return t[2]?vr:wr}let d=c(n),h=d(n);return{c(){r=P("div"),o=P("p"),i=$(n[0]),s=k(),a=P("div"),h.c(),R(o,"class","Title"),R(a,"class","CollapseButton"),R(r,"class","DetailsTitle")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,s),C(r,a),h.m(a,null),l||(u=L(a,"click",n[5]),l=!0)},p(t,e){1&e&&D(i,t[0]),d!==(d=c(t))&&(h.d(1),h=d(t),h&&(h.c(),h.m(a,null)))},d(t){t&&A(r),h.d(),l=!1,u()}}}function vr(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M6 9l6 6 6-6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function wr(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M18 15l-6-6-6 6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Er(n){let r,o,i,s;return{c(){r=P("div"),R(r,"class","DetailsContent sc")},m(t,e){S(t,r,e),i||(s=g(o=n[4].call(null,r,n[1])),i=!0)},p(t,e){o&&p(o.update)&&2&e&&o.update.call(null,t[1])},d(t){t&&A(r),i=!1,s()}}}function Tr(t){let n,r,o=t[0]&&yr(t),i=t[1]&&!t[2]&&Er(t);return{c(){n=P("div"),o&&o.c(),r=k(),i&&i.c(),this.c=y,R(n,"class","DetailsCard")},m(t,e){S(t,n,e),o&&o.m(n,null),C(n,r),i&&i.m(n,null)},p(t,[e]){t[0]?o?o.p(t,e):(o=yr(t),o.c(),o.m(n,r)):o&&(o.d(1),o=null),t[1]&&!t[2]?i?i.p(t,e):(i=Er(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},i:y,o:y,d(t){t&&A(n),o&&o.d(),i&&i.d()}}}function xr(t,e,n){let{title:r=""}=e,{text:o=""}=e,i=!1;const s=()=>{n(2,i=!i)};return t.$$set=t=>{"title"in t&&n(0,r=t.title),"text"in t&&n(1,o=t.text)},[r,o,i,s,(t,e)=>{let n=document.createElement("div");n.innerHTML=e,t.append(n)},()=>s()]}customElements.get("casino-tournaments-page")||customElements.define("casino-tournaments-page",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.casino-tournaments-page{background:#000;color:#fff}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},null,br,n,{}),t&&t.target&&S(t.target,this,t.anchor)}}),customElements.get("casino-tournaments-details")||customElements.define("casino-tournaments-details",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{text-transform:uppercase}.DetailsCard{border:solid #30313c 1px;background:#000;color:#ffffff;width:100%;margin:25px 0 25px 0}.DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:#0a0c19}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:#fff;border-radius:10px}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},xr,Tr,n,{title:0,text:1}),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["title","text"]}get title(){return this.$$.ctx[0]}set title(t){this.$set({title:t}),U()}get text(){return this.$$.ctx[1]}set text(t){this.$set({text:t}),U()}});const _r={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"There was an error joining the tournament - "}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά την διαδικασία εγγραφής στο τουρνουά - "}}},Cr={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet counts: ",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished",startingAt:"Starting at",mostRounds:"MostRounds"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"BAŞLAMA SAATİ:",mostRounds:"MostRounds"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων: ",seegames:"Μπορείε να δεις τα παιχνίδια",here:"εδώ",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",startingAt:"ΑΡΧΙΖΕΙ",mostRounds:"MostRounds"}}};function Sr(n){let r,o,i,s;return{c(){r=P("div"),o=$(n[12]),R(r,"class","Status")},m(t,e){S(t,r,e),C(r,o),i||(s=g(n[15].call(null,r)),i=!0)},p(t,e){4096&e&&D(o,t[12])},d(t){t&&A(r),i=!1,s()}}}function Ar(t){let n,r=t[5]&&Pr(t);return{c(){r&&r.c(),n=w()},m(t,e){r&&r.m(t,e),S(t,n,e)},p(t,e){t[5]?r?r.p(t,e):(r=Pr(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&A(n)}}}function Pr(t){let n,r,o=t[13]("tournamentsThumbnail.enrolled")+"";return{c(){n=P("div"),r=$(o),R(n,"class","Enrolled")},m(t,e){S(t,n,e),C(n,r)},p(t,e){8192&e&&o!==(o=t[13]("tournamentsThumbnail.enrolled")+"")&&D(r,o)},d(t){t&&A(n)}}}function $r(n){let r,o,i,s;return{c(){r=P("div"),R(r,"class",o="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),m(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(t,e){S(t,r,e),i||(s=g(n[15].call(null,r)),i=!0)},p(t,e){4&e&&o!==(o="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&R(r,"class",o)},d(t){t&&A(r),i=!1,s()}}}function kr(n){let r,o,i,s;return{c(){r=P("div"),R(r,"class",o="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),m(r,"background-image","url('"+n[4]+"')")},m(t,e){S(t,r,e),i||(s=g(n[15].call(null,r)),i=!0)},p(t,e){4&e&&o!==(o="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&R(r,"class",o),16&e&&m(r,"background-image","url('"+t[4]+"')")},d(t){t&&A(r),i=!1,s()}}}function Lr(n){let r,o,i,s,a;return{c(){r=P("div"),o=$(n[10]),R(r,"class","Date")},m(t,e){S(t,r,e),C(r,o),s||(a=g(i=n[14].call(null,r,n[1])),s=!0)},p(t,e){1024&e&&D(o,t[10]),i&&p(i.update)&&2&e&&i.update.call(null,t[1])},d(t){t&&A(r),s=!1,a()}}}function Rr(n){let r,o,i,s,a,l,u,c,d,h,p,f,m,g=n[13]("tournamentsThumbnail.scoreCriteria")+"",b=n[13]("tournamentsThumbnail.seegames")+"",y=n[13]("tournamentsThumbnail.here")+"";function v(t){return"BetCount"==t[6]?Or:Dr}let w=v(n),E=w(n);return{c(){r=P("div"),o=P("p"),i=$(g),s=$(":\n "),E.c(),a=k(),l=P("div"),u=P("p"),c=$(b),d=k(),h=P("a"),p=$(y),R(r,"class","ScoreCriteria"),R(h,"href",n[9]),R(h,"target","_blank"),R(l,"class","Games")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(o,s),E.m(o,null),S(t,a,e),S(t,l,e),C(l,u),C(u,c),C(u,d),C(u,h),C(h,p),f||(m=L(h,"click",n[20]),f=!0)},p(t,e){8192&e&&g!==(g=t[13]("tournamentsThumbnail.scoreCriteria")+"")&&D(i,g),w===(w=v(t))&&E?E.p(t,e):(E.d(1),E=w(t),E&&(E.c(),E.m(o,null))),8192&e&&b!==(b=t[13]("tournamentsThumbnail.seegames")+"")&&D(c,b),8192&e&&y!==(y=t[13]("tournamentsThumbnail.here")+"")&&D(p,y),512&e&&R(h,"href",t[9])},d(t){t&&A(r),E.d(),t&&A(a),t&&A(l),f=!1,m()}}}function Dr(t){let n;return{c(){n=$(t[6])},m(t,e){S(t,n,e)},p(t,e){64&e&&D(n,t[6])},d(t){t&&A(n)}}}function Or(t){let n,r,o,i,s,a,l=t[13]("tournamentsThumbnail.mostRounds")+"",u=t[13]("tournamentsThumbnail.minbet")+"";return{c(){n=$(l),r=$("\n ("),o=$(u),i=$(": "),s=$(t[7]),a=$(")")},m(t,e){S(t,n,e),S(t,r,e),S(t,o,e),S(t,i,e),S(t,s,e),S(t,a,e)},p(t,e){8192&e&&l!==(l=t[13]("tournamentsThumbnail.mostRounds")+"")&&D(n,l),8192&e&&u!==(u=t[13]("tournamentsThumbnail.minbet")+"")&&D(o,u),128&e&&D(s,t[7])},d(t){t&&A(n),t&&A(r),t&&A(o),t&&A(i),t&&A(s),t&&A(a)}}}function Nr(t){let n,r,o,i,s,a,l,u,c,d=t[2]&&Sr(t),h="true"==t[8]&&Ar(t);function p(t){return t[4]?kr:$r}let f=p(t),m=f(t),g=t[1]&&Lr(t),b=t[11]&&Rr(t);return{c(){n=P("div"),d&&d.c(),r=k(),h&&h.c(),o=k(),m.c(),i=k(),s=P("div"),a=P("div"),l=$(t[0]),u=k(),g&&g.c(),c=k(),b&&b.c(),this.c=y,R(a,"class","Title"),R(s,"class","Details"),R(n,"class","Thumbnail")},m(t,e){S(t,n,e),d&&d.m(n,null),C(n,r),h&&h.m(n,null),C(n,o),m.m(n,null),C(n,i),C(n,s),C(s,a),C(a,l),C(s,u),g&&g.m(s,null),C(s,c),b&&b.m(s,null)},p(t,[e]){t[2]?d?d.p(t,e):(d=Sr(t),d.c(),d.m(n,r)):d&&(d.d(1),d=null),"true"==t[8]?h?h.p(t,e):(h=Ar(t),h.c(),h.m(n,o)):h&&(h.d(1),h=null),f===(f=p(t))&&m?m.p(t,e):(m.d(1),m=f(t),m&&(m.c(),m.m(n,i))),1&e&&D(l,t[0]),t[1]?g?g.p(t,e):(g=Lr(t),g.c(),g.m(s,c)):g&&(g.d(1),g=null),t[11]?b?b.p(t,e):(b=Rr(t),b.c(),b.m(s,null)):b&&(b.d(1),b=null)},i:y,o:y,d(t){t&&A(n),d&&d.d(),h&&h.d(),m.d(),g&&g.d(),b&&b.d()}}}function Ir(t,e,o){let i;V(t,cr,t=>o(13,i=t));let{session:n=""}=e,{userid:r=""}=e,{title:s=""}=e,{startdate:a=""}=e,{status:l=""}=e,{tourid:u=""}=e,{thumbnail:c=""}=e,{userenrolled:d=""}=e,{scorecriteria:h=""}=e,{minbetcount:p=""}=e,{showenrolled:f="false"}=e,{gameurl:m=""}=e,{lang:g="en"}=e,b,y=!1,v="";Object.keys(Cr).forEach(t=>{Hn(t,Cr[t])});const w=t=>{t.data&&"SessionID"==t.data.type&&o(11,y=!0)},E=(t,e)=>{window.postMessage({type:"tournamentGamesClicked",tourId:e},window.location.href)};return q(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),t.$$set=t=>{"session"in t&&o(17,n=t.session),"userid"in t&&o(18,r=t.userid),"title"in t&&o(0,s=t.title),"startdate"in t&&o(1,a=t.startdate),"status"in t&&o(2,l=t.status),"tourid"in t&&o(3,u=t.tourid),"thumbnail"in t&&o(4,c=t.thumbnail),"userenrolled"in t&&o(5,d=t.userenrolled),"scorecriteria"in t&&o(6,h=t.scorecriteria),"minbetcount"in t&&o(7,p=t.minbetcount),"showenrolled"in t&&o(8,f=t.showenrolled),"gameurl"in t&&o(9,m=t.gameurl),"lang"in t&&o(19,g=t.lang)},t.$$.update=()=>{131072&t.$$.dirty&&n&&(0<n.length&&"false"!=n?o(11,y=!0):o(11,y=!1))},[s,a,l,u,c,d,h,p,f,m,"",y,v,i,()=>{let t=new Date(a),e=new Intl.DateTimeFormat(g,{month:"long"}).format(t),n=t.getDate(),r=t.toLocaleString(g,{hour:"numeric",minute:"numeric",hour12:!1});o(10,b=`${n} ${e}, `+i("tournamentsThumbnail.startingAt")+` ${r}`)},()=>{"Unstarted"==l&&o(12,v=i("tournamentsThumbnail.scheduled")),"Running"==l&&o(12,v=i("tournamentsThumbnail.ongoing")),"Closed"!=l&&"Closing"!=l||o(12,v=i("tournamentsThumbnail.finished"))},E,n,r,g,()=>E()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}a{color:#48952a;text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url(\"https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png\");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:#000000;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:#2B2B5D;color:#aaaabe;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Ir,Nr,n,{session:17,userid:18,title:0,startdate:1,status:2,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:6,minbetcount:7,showenrolled:8,gameurl:9,lang:19}),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang"]}get session(){return this.$$.ctx[17]}set session(t){this.$set({session:t}),U()}get userid(){return this.$$.ctx[18]}set userid(t){this.$set({userid:t}),U()}get title(){return this.$$.ctx[0]}set title(t){this.$set({title:t}),U()}get startdate(){return this.$$.ctx[1]}set startdate(t){this.$set({startdate:t}),U()}get status(){return this.$$.ctx[2]}set status(t){this.$set({status:t}),U()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$set({tourid:t}),U()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$set({thumbnail:t}),U()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$set({userenrolled:t}),U()}get scorecriteria(){return this.$$.ctx[6]}set scorecriteria(t){this.$set({scorecriteria:t}),U()}get minbetcount(){return this.$$.ctx[7]}set minbetcount(t){this.$set({minbetcount:t}),U()}get showenrolled(){return this.$$.ctx[8]}set showenrolled(t){this.$set({showenrolled:t}),U()}get gameurl(){return this.$$.ctx[9]}set gameurl(t){this.$set({gameurl:t}),U()}get lang(){return this.$$.ctx[19]}set lang(t){this.$set({lang:t}),U()}});const Mr={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",days:"days",minutesleft:"minutes left",hoursleft:"hours left",daysleft:"days left"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",days:"gün",minutesleft:"dakika kaldı",hoursleft:"saat kaldı",daysleft:"gün kaldı"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",days:"ημέρες",minutesleft:"λεπτά απομένουν",hoursleft:"ώρες απομένουν",daysleft:"ημέρες απομένουν"}}};function Ur(n){let r,o,i,s,a,l,u,c,d,h;function p(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?zr:0<t[6]?Br:jr}let f=p(n),m=f(n);return{c(){r=P("div"),o=P("div"),i=$(n[3]),s=k(),a=P("div"),l=$(n[4]),u=k(),c=P("div"),m.c(),R(o,"class","StartDate"),R(a,"class","EndDate"),R(r,"class","TournamentDates"),R(c,"class","ProgressBar")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,s),C(r,a),C(a,l),S(t,u,e),S(t,c,e),m.m(c,null),d||(h=[g(n[12].call(null,o)),g(n[13].call(null,a)),g(n[14].call(null,c))],d=!0)},p(t,e){8&e&&D(i,t[3]),16&e&&D(l,t[4]),f===(f=p(t))&&m?m.p(t,e):(m.d(1),m=f(t),m&&(m.c(),m.m(c,null)))},d(t){t&&A(r),t&&A(u),t&&A(c),m.d(),d=!1,b(h)}}}function jr(t){let n,r,o,i=0<t[5]&&Fr(t);return{c(){n=P("div"),r=k(),i&&i.c(),o=w(),R(n,"class","ProgressBarFill"),m(n,"width",t[7]+"%")},m(t,e){S(t,n,e),S(t,r,e),i&&i.m(t,e),S(t,o,e)},p(t,e){128&e&&m(n,"width",t[7]+"%"),0<t[5]?i?i.p(t,e):(i=Fr(t),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},d(t){t&&A(n),t&&A(r),i&&i.d(t),t&&A(o)}}}function Br(t){let n,r,o,i,s,a,l,u,c=t[11]("tournamentsDuration.starting")+"",d=t[11]("tournamentsDuration.days")+"";return{c(){n=P("div"),r=k(),o=P("div"),i=$(c),s=k(),a=$(t[6]),l=k(),u=$(d),R(n,"class","ProgressBarFillStarting"),R(o,"class","Remaining")},m(t,e){S(t,n,e),S(t,r,e),S(t,o,e),C(o,i),C(o,s),C(o,a),C(o,l),C(o,u)},p(t,e){2048&e&&c!==(c=t[11]("tournamentsDuration.starting")+"")&&D(i,c),64&e&&D(a,t[6]),2048&e&&d!==(d=t[11]("tournamentsDuration.days")+"")&&D(u,d)},d(t){t&&A(n),t&&A(r),t&&A(o)}}}function zr(t){let n,r,o,i,s=t[11]("tournamentsDuration.finished")+"";return{c(){n=P("div"),r=k(),o=P("div"),i=$(s),R(n,"class","ProgressBarFillEnd"),R(o,"class","Finished")},m(t,e){S(t,n,e),S(t,r,e),S(t,o,e),C(o,i)},p(t,e){2048&e&&s!==(s=t[11]("tournamentsDuration.finished")+"")&&D(i,s)},d(t){t&&A(n),t&&A(r),t&&A(o)}}}function Fr(t){let n,r,o,i=t[8]&&Gr(t),s=t[9]&&Hr(t),a=t[10]&&Xr(t);return{c(){i&&i.c(),n=k(),s&&s.c(),r=k(),a&&a.c(),o=w()},m(t,e){i&&i.m(t,e),S(t,n,e),s&&s.m(t,e),S(t,r,e),a&&a.m(t,e),S(t,o,e)},p(t,e){t[8]?i?i.p(t,e):(i=Gr(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),t[9]?s?s.p(t,e):(s=Hr(t),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null),t[10]?a?a.p(t,e):(a=Xr(t),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(t){i&&i.d(t),t&&A(n),s&&s.d(t),t&&A(r),a&&a.d(t),t&&A(o)}}}function Gr(t){let n,r,o,i,s=t[11]("tournamentsDuration.minutesleft")+"";return{c(){n=P("div"),r=$(t[5]),o=k(),i=$(s),R(n,"class","Remaining")},m(t,e){S(t,n,e),C(n,r),C(n,o),C(n,i)},p(t,e){32&e&&D(r,t[5]),2048&e&&s!==(s=t[11]("tournamentsDuration.minutesleft")+"")&&D(i,s)},d(t){t&&A(n)}}}function Hr(t){let n,r,o,i,s=t[11]("tournamentsDuration.hoursleft")+"";return{c(){n=P("div"),r=$(t[5]),o=k(),i=$(s),R(n,"class","Remaining")},m(t,e){S(t,n,e),C(n,r),C(n,o),C(n,i)},p(t,e){32&e&&D(r,t[5]),2048&e&&s!==(s=t[11]("tournamentsDuration.hoursleft")+"")&&D(i,s)},d(t){t&&A(n)}}}function Xr(t){let n,r,o,i,s=t[11]("tournamentsDuration.daysleft")+"";return{c(){n=P("div"),r=$(t[5]),o=k(),i=$(s),R(n,"class","Remaining")},m(t,e){S(t,n,e),C(n,r),C(n,o),C(n,i)},p(t,e){32&e&&D(r,t[5]),2048&e&&s!==(s=t[11]("tournamentsDuration.daysleft")+"")&&D(i,s)},d(t){t&&A(n)}}}function Vr(t){let n,r=t[0]&&t[1]&&Ur(t);return{c(){n=P("div"),r&&r.c(),this.c=y,R(n,"class","TournamentDuration")},m(t,e){S(t,n,e),r&&r.m(n,null)},p(t,[e]){t[0]&&t[1]?r?r.p(t,e):(r=Ur(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:y,o:y,d(t){t&&A(n),r&&r.d()}}}function qr(t,e,r){let n;V(t,cr,t=>r(11,n=t));let{startdate:o=""}=e,{enddate:i=""}=e,{status:s=""}=e,{lang:a="en"}=e,l,u,c,d,h,p,f,m=!1,g=!1,b=!1;Object.keys(Mr).forEach(t=>{Hn(t,Mr[t])});const y=t=>{let e=new Date(t),n=new Intl.DateTimeFormat(a,{month:"long"}).format(e);return`${e.getDate()} ${n}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${e.getUTCFullYear()}`},v=(t,e,n)=>{t=new Date(t),t=(new Date(e)-t)/6e4;return 1==n?t<60?(r(8,m=!0),Math.ceil(t)):t<1440?(r(9,g=!0),Math.ceil(t/60)):(r(10,b=!0),Math.ceil(t/1440)):Math.ceil(t/1440)};return t.$$set=t=>{"startdate"in t&&r(0,o=t.startdate),"enddate"in t&&r(1,i=t.enddate),"status"in t&&r(2,s=t.status),"lang"in t&&r(15,a=t.lang)},[o,i,s,"","","","","",m,g,b,n,()=>{r(3,l=y(new Date(o)))},()=>{r(4,u=y(new Date(i)))},()=>{c=v(o,i,!1),r(5,d=v(new Date,i,!0)),r(6,h=v(new Date,o,!1)),0<d&&(p=100/c,r(7,f=Math.floor((c-d)*p)))},a]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:#58586B}.EndDate{font-size:11px;align-content:flex-end;color:#58586B}.ProgressBar{margin:5px 20px;height:8px;background:#fff}.ProgressBarFill{background-color:#48952a;height:8px}.ProgressBarFillEnd{background-color:#48952a;height:8px}.ProgressBarFillStarting{background-color:#58586B;height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:#1B9800}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},qr,Vr,n,{startdate:0,enddate:1,status:2,lang:15}),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(t){this.$set({startdate:t}),U()}get enddate(){return this.$$.ctx[1]}set enddate(t){this.$set({enddate:t}),U()}get status(){return this.$$.ctx[2]}set status(t){this.$set({status:t}),U()}get lang(){return this.$$.ctx[15]}set lang(t){this.$set({lang:t}),U()}});const Yr={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα"}}};function Kr(t,e,n){const r=t.slice();return r[4]=e[n],r[6]=n,r}function Wr(t,e,n){const r=t.slice();return r[7]=e[n],r[9]=n,r}function Zr(e){let r,o=e[0],i=[];for(let t=0;t<o.length;t+=1)i[t]=to(Kr(e,o,t));let s=null;return o.length||(s=Jr(e)),{c(){r=P("div");for(let t=0;t<i.length;t+=1)i[t].c();s&&s.c(),R(r,"class","Prizes")},m(t,e){S(t,r,e);for(let t=0;t<i.length;t+=1)i[t].m(r,null);s&&s.m(r,null)},p(e,n){if(3&n){let t;for(o=e[0],t=0;t<o.length;t+=1){const s=Kr(e,o,t);i[t]?i[t].p(s,n):(i[t]=to(s),i[t].c(),i[t].m(r,null))}for(;t<i.length;t+=1)i[t].d(1);i.length=o.length,!o.length&&s?s.p(e,n):o.length?s&&(s.d(1),s=null):(s=Jr(e),s.c(),s.m(r,null))}},d(t){t&&A(r),E(i,t),s&&s.d()}}}function Jr(t){let n,r,o=t[1]("tournamentsPrizes.noprizes")+"";return{c(){n=P("p"),r=$(o)},m(t,e){S(t,n,e),C(n,r)},p(t,e){2&e&&o!==(o=t[1]("tournamentsPrizes.noprizes")+"")&&D(r,o)},d(t){t&&A(n)}}}function Qr(t){let n,r,o,i,s,a,l,u=t[4].rank+t[9]+"",c=t[4].name+"";return{c(){n=P("div"),r=P("p"),o=P("span"),i=$(u),s=k(),a=$(c),l=k(),R(n,"class","Prize Prize"+t[6])},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(r,s),C(r,a),C(n,l)},p(t,e){1&e&&u!==(u=t[4].rank+t[9]+"")&&D(i,u),1&e&&c!==(c=t[4].name+"")&&D(a,c)},d(t){t&&A(n)}}}function to(e){let o,i={length:e[4].count},s=[];for(let t=0;t<i.length;t+=1)s[t]=Qr(Wr(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);S(e,o,n)},p(e,n){if(1&n){let t;for(i={length:e[4].count},t=0;t<i.length;t+=1){var r=Wr(e,i,t);s[t]?s[t].p(r,n):(s[t]=Qr(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&A(o)}}}function eo(t){let n,r,o,i,s,a,l,u,c,d,h=t[1]("tournamentsPrizes.prizes")+"",p=t[0]&&Zr(t);return{c(){n=P("div"),r=e("svg"),o=e("defs"),i=e("style"),s=$(".a{fill:#fff;}"),a=e("path"),l=k(),u=P("p"),c=$(h),d=k(),p&&p.c(),this.c=y,R(a,"class","a"),R(a,"d","M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z"),R(a,"transform","translate(-5.999 -9.76)"),R(r,"xmlns","http://www.w3.org/2000/svg"),R(r,"width","30"),R(r,"height","27.454"),R(r,"viewBox","0 0 30 27.454"),R(u,"class","PrizesTitle"),R(n,"class","TournamentPrizes")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(i,s),C(r,a),C(n,l),C(n,u),C(u,c),C(n,d),p&&p.m(n,null)},p(t,[e]){2&e&&h!==(h=t[1]("tournamentsPrizes.prizes")+"")&&D(c,h),t[0]?p?p.p(t,e):(p=Zr(t),p.c(),p.m(n,null)):p&&(p.d(1),p=null)},i:y,o:y,d(t){t&&A(n),p&&p.d()}}}function no(t,e,n){let r;V(t,cr,t=>n(1,r=t));let o,{tourid:i=""}=e;Object.keys(Yr).forEach(t=>{Hn(t,Yr[t])});const s=t=>{t.data&&t.data.type==`TournamentPrizes_${i}`&&n(0,o=t.data.prizes)};return q(()=>(window.addEventListener("message",s,!1),()=>{window.removeEventListener("message",s)})),t.$$set=t=>{"tourid"in t&&n(2,i=t.tourid)},[o,r,i]}function ro(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function oo(n){let o,r,i,s,a,l,u,c,d=n[0],h=[];for(let t=0;t<d.length;t+=1)h[t]=io(ro(n,d,t));return{c(){o=P("div"),o.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',r=k(),i=P("main"),s=P("div");for(let t=0;t<h.length;t+=1)h[t].c();a=k(),l=P("div"),l.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',R(o,"class","SliderNavButton"),t(o,"disabled",n[6]),R(s,"class","items"),m(s,"transform","translateX("+n[1]+"px)"),R(l,"class","SliderNavButton"),t(l,"disabled",n[7])},m(t,e){S(t,o,e),S(t,r,e),S(t,i,e),C(i,s);for(let t=0;t<h.length;t+=1)h[t].m(s,null);n[21](s),S(t,a,e),S(t,l,e),u||(c=[L(o,"click",n[17]),L(l,"click",n[22])],u=!0)},p(e,n){if(64&n[0]&&t(o,"disabled",e[6]),2841&n[0]){let t;for(d=e[0],t=0;t<d.length;t+=1){var r=ro(e,d,t);h[t]?h[t].p(r,n):(h[t]=io(r),h[t].c(),h[t].m(s,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}2&n[0]&&m(s,"transform","translateX("+e[1]+"px)"),128&n[0]&&t(l,"disabled",e[7])},d(t){t&&A(o),t&&A(r),t&&A(i),E(h,t),n[21](null),t&&A(a),t&&A(l),u=!1,b(c)}}}function io(n){let r,o,i,s,a,l,u,c,d,h,p,f;function m(){return n[18](n[37])}function g(){return n[19](n[39])}return{c(){r=P("div"),o=P("span"),i=$("Play now"),a=k(),l=P("img"),h=k(),R(o,"class",s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":"")),l.src!==(u=n[37].thumbnail)&&R(l,"src",u),R(l,"width","132px"),R(l,"height","100px"),R(l,"alt",c=n[37].name),R(l,"title",d=n[37].name),R(r,"class","item")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,a),C(r,l),C(r,h),p||(f=[L(r,"click",m),L(r,"mouseenter",g),L(r,"mouseleave",n[20])],p=!0)},p(t,e){n=t,24&e[0]&&s!==(s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&R(o,"class",s),1&e[0]&&l.src!==(u=n[37].thumbnail)&&R(l,"src",u),1&e[0]&&c!==(c=n[37].name)&&R(l,"alt",c),1&e[0]&&d!==(d=n[37].name)&&R(l,"title",d)},d(t){t&&A(r),p=!1,b(f)}}}function so(n){let r,o=n[0]&&oo(n);return{c(){r=P("div"),o&&o.c(),this.c=y,R(r,"class","TournamentsGamesSlider")},m(t,e){S(t,r,e),o&&o.m(r,null),n[23](r)},p(t,e){t[0]?o?o.p(t,e):(o=oo(t),o.c(),o.m(r,null)):o&&(o.d(1),o=null)},i:y,o:y,d(t){t&&A(r),o&&o.d(),n[23](null)}}}function ao(t,e,n){let r,o,i,s,a,l,{tournamenturl:u=""}=e,{scrollby:c="3"}=e,{pagfactor:d="175"}=e,{lang:h=""}=e,p=window.navigator.userAgent,f=[],m=0,g=null,b=null,y=!1,v=0;const w=t=>{n(3,y=!0),n(4,a=t)},E=()=>{n(3,y=!1),n(4,a=-1)},T=t=>{t=(t.touches||t.originalEvent.touches)[0];g=t.clientX,b=t.clientY},x=t=>{var e;g&&b&&(e=t.touches[0].clientX,t=t.touches[0].clientY,e=g-e,t=b-t,Math.abs(e)>Math.abs(t)&&_(0<e?1:-1),g=null,b=null)},_=t=>{0<t&&!o?(n(1,m-=i),n(1,m=m<v?v:m)):t<0&&!r&&(n(1,m+=i),n(1,m=0<m?0:m))},C=t=>{window.postMessage({type:"TournamentGameAction",gameId:t.id,name:t.name},window.location.href)};return q(()=>(i=parseInt(c,10)*parseInt(d,10),()=>{s.removeEventListener("touchstart",T),s.removeEventListener("touchmove",x)})),t.$$set=t=>{"tournamenturl"in t&&n(13,u=t.tournamenturl),"scrollby"in t&&n(14,c=t.scrollby),"pagfactor"in t&&n(12,d=t.pagfactor),"lang"in t&&n(15,h=t.lang)},t.$$.update=()=>{2&t.$$.dirty[0]&&n(6,r=0===m),65538&t.$$.dirty[0]&&n(7,o=m<=v),8192&t.$$.dirty[0]&&u&&(()=>{let t=new URL(u),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("pagination",`games(limit=30,offset=${m})`),t.searchParams.append("fields","games(id,name,thumbnail)"),t.searchParams.append("language",h),t.searchParams.append("platform",hr(p)),fetch(t,{method:"GET",headers:e}).then(t=>t.json()).then(t=>{n(0,f=t.item.games.items),t.item.games.total})})(),4&t.$$.dirty[0]&&s&&(s.addEventListener("touchstart",T,{passive:!0}),s.addEventListener("touchmove",x,{passive:!0})),1&t.$$.dirty[0]&&f.length&&setTimeout(()=>{n(16,v=-1*(l.scrollWidth-l.clientWidth)),n(12,d=new String(l.scrollWidth/f.length)),i=parseInt(c,10)*parseFloat(d,2).toFixed(2)},1e3)},n(1,m=0),[f,m,s,y,a,l,r,o,w,E,_,C,d,u,c,h,v,()=>_(-1),t=>C(t),t=>w(t),()=>E(),function(t){O[t?"unshift":"push"](()=>{l=t,n(5,l)})},()=>_(1),function(t){O[t?"unshift":"push"](()=>{s=t,n(2,s)})}]}function lo(t){let n,r,o,i,s,a,l,u,c=t[9]&&co(t);function d(t){return t[9]?"Closed"!=t[17]&&"Closing"!=t[17]?fo:"true"==t[3]?po:void 0:mo}let h=d(t),p=h&&h(t),f=t[12]&&To(t),m="true"==t[4]&&xo(t);return{c(){n=P("div"),r=P("casino-tournaments-thumbnail"),o=k(),c&&c.c(),i=k(),s=P("div"),p&&p.c(),a=k(),f&&f.c(),l=k(),m&&m.c(),v(r,"session",t[0]),v(r,"userid",t[1]),v(r,"title",t[14]),v(r,"status",t[17]),v(r,"startdate",t[15]),v(r,"tourid",t[18]),v(r,"scorecriteria",t[21]),v(r,"minbetcount",t[22]),v(r,"thumbnail",t[19]),v(r,"userenrolled",t[20]),v(r,"showenrolled",t[5]),v(r,"gameurl",t[24]),v(r,"lang",t[8]),R(s,"class","TournamentButtons"),R(n,"class",u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))},m(t,e){S(t,n,e),C(n,r),C(n,o),c&&c.m(n,null),C(n,i),C(n,s),p&&p.m(s,null),C(n,a),f&&f.m(n,null),C(n,l),m&&m.m(n,null)},p(t,e){1&e[0]&&v(r,"session",t[0]),2&e[0]&&v(r,"userid",t[1]),16384&e[0]&&v(r,"title",t[14]),131072&e[0]&&v(r,"status",t[17]),32768&e[0]&&v(r,"startdate",t[15]),262144&e[0]&&v(r,"tourid",t[18]),2097152&e[0]&&v(r,"scorecriteria",t[21]),4194304&e[0]&&v(r,"minbetcount",t[22]),524288&e[0]&&v(r,"thumbnail",t[19]),1048576&e[0]&&v(r,"userenrolled",t[20]),32&e[0]&&v(r,"showenrolled",t[5]),16777216&e[0]&&v(r,"gameurl",t[24]),256&e[0]&&v(r,"lang",t[8]),t[9]?c?c.p(t,e):(c=co(t),c.c(),c.m(n,i)):c&&(c.d(1),c=null),h===(h=d(t))&&p?p.p(t,e):(p&&p.d(1),p=h&&h(t),p&&(p.c(),p.m(s,null))),t[12]?f?f.p(t,e):(f=To(t),f.c(),f.m(n,l)):f&&(f.d(1),f=null),"true"==t[4]?m?m.p(t,e):(m=xo(t),m.c(),m.m(n,null)):m&&(m.d(1),m=null),192&e[0]&&u!==(u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&R(n,"class",u)},d(t){t&&A(n),c&&c.d(),p&&p.d(),f&&f.d(),m&&m.d()}}}function uo(t){let n,r,o;return{c(){n=P("div"),r=P("div"),r.innerHTML='<div class="ph-col-12"><div class="ph-picture"></div> \n <div class="ph-row"><div class="ph-col-6 big"></div> \n <div class="ph-col-4 empty big"></div> \n <div class="ph-col-4"></div> \n <div class="ph-col-8 empty"></div> \n <div class="ph-col-6"></div> \n <div class="ph-col-6 empty"></div> \n <div class="ph-col-12"></div></div></div>',R(r,"class","ph-item"),R(n,"class",o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))},m(t,e){S(t,n,e),C(n,r)},p(t,e){192&e[0]&&o!==(o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&R(n,"class",o)},d(t){t&&A(n)}}}function co(t){let n,r,o=t[18]&&ho(t);return{c(){o&&o.c(),n=k(),r=P("casino-tournaments-thumbnail-duration"),v(r,"status",t[17]),v(r,"startdate",t[15]),v(r,"lang",t[8]),v(r,"enddate",t[16])},m(t,e){o&&o.m(t,e),S(t,n,e),S(t,r,e)},p(t,e){t[18]?o?o.p(t,e):(o=ho(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),131072&e[0]&&v(r,"status",t[17]),32768&e[0]&&v(r,"startdate",t[15]),256&e[0]&&v(r,"lang",t[8]),65536&e[0]&&v(r,"enddate",t[16])},d(t){o&&o.d(t),t&&A(n),t&&A(r)}}}function ho(n){let r,o,i,s;return{c(){r=P("casino-tournaments-thumbnail-prizes"),v(r,"tourid",n[18])},m(t,e){S(t,r,e),i||(s=g(o=n[30].call(null,r,n[18])),i=!0)},p(t,e){262144&e[0]&&v(r,"tourid",t[18]),o&&p(o.update)&&262144&e[0]&&o.update.call(null,t[18])},d(t){t&&A(r),i=!1,s()}}}function po(n){let r,o,i,s,a=n[25]("tournamentsThController.details")+"";return{c(){r=P("button"),o=$(a),R(r,"class","DetailsLargeButton")},m(t,e){S(t,r,e),C(r,o),i||(s=L(r,"click",n[42]),i=!0)},p(t,e){33554432&e[0]&&a!==(a=t[25]("tournamentsThController.details")+"")&&D(o,a)},d(t){t&&A(r),i=!1,s()}}}function fo(t){let n,r,o="true"==t[3]&&go(t);function i(t){return 1==t[20]?yo:bo}let s=i(t),a=s(t);return{c(){o&&o.c(),n=k(),a.c(),r=w()},m(t,e){o&&o.m(t,e),S(t,n,e),a.m(t,e),S(t,r,e)},p(t,e){"true"==t[3]?o?o.p(t,e):(o=go(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),s===(s=i(t))&&a?a.p(t,e):(a.d(1),a=s(t),a&&(a.c(),a.m(r.parentNode,r)))},d(t){o&&o.d(t),t&&A(n),a.d(t),t&&A(r)}}}function mo(n){let r,o,i,s,a,l,u,c=n[25]("tournamentsThController.login")+"",d=n[25]("tournamentsThController.register")+"";return{c(){r=P("button"),o=$(c),i=k(),s=P("button"),a=$(d),R(r,"class","LoginButton"),R(s,"class","RegisterButton")},m(t,e){S(t,r,e),C(r,o),S(t,i,e),S(t,s,e),C(s,a),l||(u=[L(r,"click",n[38]),L(s,"click",n[39])],l=!0)},p(t,e){33554432&e[0]&&c!==(c=t[25]("tournamentsThController.login")+"")&&D(o,c),33554432&e[0]&&d!==(d=t[25]("tournamentsThController.register")+"")&&D(a,d)},d(t){t&&A(r),t&&A(i),t&&A(s),l=!1,b(u)}}}function go(n){let r,o,i,s,a=n[25]("tournamentsThController.details")+"";return{c(){r=P("button"),o=$(a),R(r,"class","DetailsButton")},m(t,e){S(t,r,e),C(r,o),i||(s=L(r,"click",n[40]),i=!0)},p(t,e){33554432&e[0]&&a!==(a=t[25]("tournamentsThController.details")+"")&&D(o,a)},d(t){t&&A(r),i=!1,s()}}}function bo(n){let r,o,i,s;function a(t){return 1==t[11]?wo:vo}let l=a(n),u=l(n);return{c(){r=P("button"),u.c(),R(r,"class",o="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[12]},m(t,e){S(t,r,e),u.m(r,null),i||(s=L(r,"click",n[41]),i=!0)},p(t,e){l===(l=a(t))&&u?u.p(t,e):(u.d(1),u=l(t),u&&(u.c(),u.m(r,null))),128&e[0]&&o!==(o="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&R(r,"class",o),4096&e[0]&&(r.disabled=t[12])},d(t){t&&A(r),u.d(),i=!1,s()}}}function yo(t){let n,r="true"==t[3]&&Eo(t);return{c(){r&&r.c(),n=w()},m(t,e){r&&r.m(t,e),S(t,n,e)},p(t,e){"true"==t[3]?r?r.p(t,e):(r=Eo(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&A(n)}}}function vo(t){let n,r,o,i,s,a,l,u,c,d=t[25]("tournamentsThController.join")+"";return{c(){n=P("span"),r=$(d),o=k(),i=e("svg"),s=e("defs"),a=e("style"),l=$(".a{fill:#fff;}"),u=e("g"),c=e("path"),R(c,"class","a"),R(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),R(c,"transform","translate(26 26) rotate(180)"),R(u,"transform","translate(26 26) rotate(180)"),R(i,"xmlns","http://www.w3.org/2000/svg"),R(i,"width","26"),R(i,"height","26"),R(i,"viewBox","0 0 26 26")},m(t,e){S(t,n,e),C(n,r),S(t,o,e),S(t,i,e),C(i,s),C(s,a),C(a,l),C(i,u),C(u,c)},p(t,e){33554432&e[0]&&d!==(d=t[25]("tournamentsThController.join")+"")&&D(r,d)},d(t){t&&A(n),t&&A(o),t&&A(i)}}}function wo(t){let n,r;return{c(){n=e("svg"),r=e("circle"),R(r,"cx","20"),R(r,"cy","20"),R(r,"r","18"),R(n,"class","spinner")},m(t,e){S(t,n,e),C(n,r)},p:y,d(t){t&&A(n)}}}function Eo(t){let n,r,o=t[25]("tournamentsThController.enrolled")+"";return{c(){n=P("button"),r=$(o),R(n,"class","EnrolledButton"),n.disabled=!0},m(t,e){S(t,n,e),C(n,r)},p(t,e){33554432&e[0]&&o!==(o=t[25]("tournamentsThController.enrolled")+"")&&D(r,o)},d(t){t&&A(n)}}}function To(t){let n,r,o,i,s=t[25]("tournamentsThController.joinerror")+"";return{c(){n=P("span"),r=$(s),o=k(),i=$(t[13]),R(n,"class","ErrorText")},m(t,e){S(t,n,e),C(n,r),C(n,o),C(n,i)},p(t,e){33554432&e[0]&&s!==(s=t[25]("tournamentsThController.joinerror")+"")&&D(r,s),8192&e[0]&&D(i,t[13])},d(t){t&&A(n)}}}function xo(t){let n;return{c(){n=P("casino-tournaments-thumbnail-games-slider"),v(n,"tournamenturl",t[2]),v(n,"lang",t[8]),v(n,"scrollby","2")},m(t,e){S(t,n,e)},p(t,e){4&e[0]&&v(n,"tournamenturl",t[2]),256&e[0]&&v(n,"lang",t[8])},d(t){t&&A(n)}}}function _o(t){let n;function r(t){return t[10]?uo:lo}let o=r(t),i=o(t);return{c(){i.c(),n=w(),this.c=y},m(t,e){i.m(t,e),S(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:y,o:y,d(t){i.d(t),t&&A(n)}}}function Co(t,e,i){let n,r;V(t,cr,t=>i(25,r=t));let o,s,a,l,u,c,d,h,p,{session:f=""}=e,{userid:m=""}=e,{tournamenturl:g=""}=e,{endpoint:b=""}=e,{showdetails:y=""}=e,{showslider:v=""}=e,{showenrolled:w=""}=e,{maxwidth:E=""}=e,{fullsize:T=""}=e,{lang:x=""}=e,{loginevent:_=""}=e,{registerevent:C=""}=e,{loginurl:S=""}=e,{registerurl:A=""}=e,{currency:P=""}=e,$=!1,k="",L=!0,R=window.navigator.userAgent,D=!1,O=!1,N="There was an error while trying to join the tournament",I=[],M=[],U="#";Object.keys(_r).forEach(t=>{Hn(t,_r[t])});const j=t=>{t.data&&"UserSessionID"==t.data.type&&(i(9,$=!0),k=t.data.session),"UpdateTournamentView"==t.data.type&&(t=t.data.tournamentData,u&&u!=t.id||H(t))},B=()=>{_&&window.postMessage({type:_},window.location.href),S&&(window.location=S)},z=()=>{C&&window.postMessage({type:C},window.location.href),A&&(window.location=A)},F=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:"Ongoing"===l},window.location.href)},G=(t,e)=>{window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),i(11,D=!0);let n=new URL(`${b}/bonus/claim`),r=new Headers,o={};n.searchParams.append("language",x),r.append("platform",hr(R)),r.append("Content-Type","application/json"),r.append("X-SessionID",k),e&&1<=e.length&&(o={language:x,bonusCode:e[0].code,currency:P});e={method:"PUT",headers:r,body:JSON.stringify(o)};fetch(n,e).then(t=>t.json()).then(t=>{1==t.success?(i(11,D=!1),i(20,d=!0)):(i(11,D=!1),i(13,N=t.errorMessage),i(12,O=!0))},t=>{i(11,D=!1),i(12,O=!0)})},H=t=>{i(14,o=t.nameOrTitle),i(15,s=t.startTime),i(16,a=t.endTime),i(17,l=t.state),i(18,u=t.id),i(19,c=t.thumbnail),i(20,d=t.playerEnrolled||!1),i(21,h=t.scoreCriteria),i(22,p=t.minBetCount),I=t.prizes,i(23,M=t.wallets||[]),i(24,U=t.termsUrl||"#")},X=()=>{i(10,L=!0),(t=>{i(10,L=!0);let e=new URL(t),n=new Headers;e.searchParams.append("language",x),n.append("platform",hr(R)),$&&n.append("X-SessionID",k),fetch(e,{method:"GET",headers:n}).then(t=>t.json()).then(t=>{i(10,L=!1),H(t.item)})})(g)};return q(()=>(i(10,L=!1),window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j)})),t.$$set=t=>{"session"in t&&i(0,f=t.session),"userid"in t&&i(1,m=t.userid),"tournamenturl"in t&&i(2,g=t.tournamenturl),"endpoint"in t&&i(31,b=t.endpoint),"showdetails"in t&&i(3,y=t.showdetails),"showslider"in t&&i(4,v=t.showslider),"showenrolled"in t&&i(5,w=t.showenrolled),"maxwidth"in t&&i(6,E=t.maxwidth),"fullsize"in t&&i(7,T=t.fullsize),"lang"in t&&i(8,x=t.lang),"loginevent"in t&&i(32,_=t.loginevent),"registerevent"in t&&i(33,C=t.registerevent),"loginurl"in t&&i(34,S=t.loginurl),"registerurl"in t&&i(35,A=t.registerurl),"currency"in t&&i(36,P=t.currency)},t.$$.update=()=>{1&t.$$.dirty[0]&&f&&(0<f.length&&"false"!=f?(k=f,i(9,$=!0)):i(9,$=!1)),260&t.$$.dirty[0]&&i(37,n=g&&x),64&t.$$.dirty[1]&&n&&X()},[f,m,g,y,v,w,E,T,x,$,L,D,O,N,o,s,a,l,u,c,d,h,p,M,U,r,B,z,F,G,(t,e)=>{window.postMessage({type:`TournamentPrizes_${e}`,prizes:I},window.location.href)},b,_,C,S,A,P,n,()=>B(),()=>z(),()=>F(u),()=>G(u,M),()=>F(u)]}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:#c3c3c3}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:#58586B}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:#FFF}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},no,eo,n,{tourid:2}),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(t){this.$set({tourid:t}),U()}}),customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:#0a0c19;color:#fff;display:flex;justify-content:center}.disabled{color:#3B3C47}.SliderNavButton{background:#0a0c19;border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:#ef4322;color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:#28a745;display:block;box-sizing:border-box;padding:0.8rem .5rem;color:#fff;text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ao,so,n,{tournamenturl:13,scrollby:14,pagfactor:12,lang:15},[-1,-1]),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[13]}set tournamenturl(t){this.$set({tournamenturl:t}),U()}get scrollby(){return this.$$.ctx[14]}set scrollby(t){this.$set({scrollby:t}),U()}get pagfactor(){return this.$$.ctx[12]}set pagfactor(t){this.$set({pagfactor:t}),U()}get lang(){return this.$$.ctx[15]}set lang(t){this.$set({lang:t}),U()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:#0A0B19;color:#fff;border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.LoginButton{background:#0A0B19;width:50%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:#0A0B19;width:50%;height:60px;text-align:center;color:#48952a;border:solid #48952a 1px;text-transform:uppercase;font-size:18px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:#0A0B19;width:40%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:#0A0B19;width:100%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:16px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:#2a2c5a;width:60%;height:60px;text-align:center;color:#aaaabe;border:0;text-transform:uppercase;font-size:18px;cursor:default}.JoinButton{background:#48952a;width:60%;height:60px;text-align:center;color:#fff;border:solid #48952a 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:18px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:#0A0B19;border:1px solid black;border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(10, 11, 25, 0) 46%, rgba(10, 11, 25, 0.35) 50%, rgba(10, 11, 25, 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:#ced4da}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(10, 11, 25, 0)}.ph-col-4{flex:0 0 33.33333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.66667%}.ph-col-12{flex:0 0 100%}[class*="ph-col"]{direction:ltr}[class*="ph-col"]>*+.ph-row{margin-top:0}[class*="ph-col"]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:#ced4da}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:#212121;stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Co,_o,n,{session:0,userid:1,tournamenturl:2,endpoint:31,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:32,registerevent:33,loginurl:34,registerurl:35,currency:36},[-1,-1]),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["session","userid","tournamenturl","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency"]}get session(){return this.$$.ctx[0]}set session(t){this.$set({session:t}),U()}get userid(){return this.$$.ctx[1]}set userid(t){this.$set({userid:t}),U()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$set({tournamenturl:t}),U()}get endpoint(){return this.$$.ctx[31]}set endpoint(t){this.$set({endpoint:t}),U()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$set({showdetails:t}),U()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$set({showslider:t}),U()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$set({showenrolled:t}),U()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$set({maxwidth:t}),U()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$set({fullsize:t}),U()}get lang(){return this.$$.ctx[8]}set lang(t){this.$set({lang:t}),U()}get loginevent(){return this.$$.ctx[32]}set loginevent(t){this.$set({loginevent:t}),U()}get registerevent(){return this.$$.ctx[33]}set registerevent(t){this.$set({registerevent:t}),U()}get loginurl(){return this.$$.ctx[34]}set loginurl(t){this.$set({loginurl:t}),U()}get registerurl(){return this.$$.ctx[35]}set registerurl(t){this.$set({registerurl:t}),U()}get currency(){return this.$$.ctx[36]}set currency(t){this.$set({currency:t}),U()}});const So={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Position:"Position",Name:"Name",Score:"Score"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Position:"Pozisyon",Name:"İsim",Score:"Skor"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Position:"Θέση",Name:"Ονομα",Score:"Σκορ"}}};function Ao(t,e,n){const r=t.slice();return r[30]=e[n],r}function Po(t,e,n){const r=t.slice();return r[25]=e[n],r}function $o(t,e,n){const r=t.slice();return r[30]=e[n],r}function ko(t,e,n){const r=t.slice();return r[25]=e[n],r}function Lo(e){let n,r,o,i,s,a,l,u,c,t=e[8]("tournamentsTable.nowinners")+"",d=e[3],h=[];for(let t=0;t<d.length;t+=1)h[t]=Io(Ao(e,d,t));return{c(){n=P("div"),r=P("table"),o=P("thead"),i=P("tr");for(let t=0;t<h.length;t+=1)h[t].c();s=k(),a=P("tbody"),l=P("tr"),u=P("td"),c=$(t),R(u,"colspan","3"),R(r,"class","LeftTable"),R(n,"class","TournamentsTable")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i);for(let t=0;t<h.length;t+=1)h[t].m(i,null);C(r,s),C(r,a),C(a,l),C(l,u),C(u,c)},p(e,n){if(1417&n[0]){let t;for(d=e[3],t=0;t<d.length;t+=1){var r=Ao(e,d,t);h[t]?h[t].p(r,n):(h[t]=Io(r),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}256&n[0]&&t!==(t=e[8]("tournamentsTable.nowinners")+"")&&D(c,t)},d(t){t&&A(n),E(h,t)}}}function Ro(n){let r,o,i,s,a,l,u,c,d,h,p=n[8]("tournamentsTable.leaderboard")+"";function f(t){return t[5]?Uo:Mo}let m=f(n),g=m(n),b=n[5]&&jo(n);return{c(){r=P("div"),o=P("div"),i=$(p),s=k(),a=P("div"),l=P("div"),g.c(),u=k(),b&&b.c(),c=w(),R(o,"class","Leaderboard"),R(l,"class","CollapseButton"),R(a,"class","RightButton "+(dr(n[9])?"MobileClass":"")),R(r,"class","LeaderboardContainer")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,s),C(r,a),C(a,l),g.m(l,null),S(t,u,e),b&&b.m(t,e),S(t,c,e),d||(h=L(l,"click",n[18]),d=!0)},p(t,e){256&e[0]&&p!==(p=t[8]("tournamentsTable.leaderboard")+"")&&D(i,p),m!==(m=f(t))&&(g.d(1),g=m(t),g&&(g.c(),g.m(l,null))),t[5]?b?b.p(t,e):(b=jo(t),b.c(),b.m(c.parentNode,c)):b&&(b.d(1),b=null)},d(t){t&&A(r),g.d(),t&&A(u),b&&b.d(t),t&&A(c),d=!1,h()}}}function Do(t){let n,r=(e=t,(1==dr(e[9])?zo:Bo)(t));var e;return{c(){r.c(),n=w()},m(t,e){r.m(t,e),S(t,n,e)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&A(n)}}}function Oo(t){let n,r,o=t[8](`tournamentsTable.${t[30]}`)+"";return{c(){n=P("p"),r=$(o),R(n,"data-sort",t[7])},m(t,e){S(t,n,e),C(n,r)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[30]}`)+"")&&D(r,o),128&e[0]&&R(n,"data-sort",t[7])},d(t){t&&A(n)}}}function No(n){let r,o,i,s,a=n[8](`tournamentsTable.${n[30]}`)+"";function l(){return n[19](n[30])}return{c(){r=P("button"),o=$(a),R(r,"data-sort",n[7])},m(t,e){S(t,r,e),C(r,o),i||(s=L(r,"click",l),i=!0)},p(t,e){n=t,264&e[0]&&a!==(a=n[8](`tournamentsTable.${n[30]}`)+"")&&D(o,a),128&e[0]&&R(r,"data-sort",n[7])},d(t){t&&A(r),i=!1,s()}}}function Io(t){let n,r;function o(t){return"true"==t[0]?No:Oo}let i=o(t),s=i(t);return{c(){n=P("th"),s.c(),r=k()},m(t,e){S(t,n,e),s.m(n,null),C(n,r)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(n,r)))},d(t){t&&A(n),s.d()}}}function Mo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M6 9l6 6 6-6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Uo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M18 15l-6-6-6 6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function jo(t){let n,r,o,i,s=t[8]("tournamentsTable.nowinners")+"";return{c(){n=P("div"),r=P("div"),o=P("p"),i=$(s),R(r,"class","TableUser"),R(n,"class","TableContent")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i)},p(t,e){256&e[0]&&s!==(s=t[8]("tournamentsTable.nowinners")+"")&&D(i,s)},d(t){t&&A(n)}}}function Bo(n){let r,o,i,s,a,l,u,c,d,h,p,f,m=n[3],g=[];for(let t=0;t<m.length;t+=1)g[t]=Ho($o(n,m,t));let b="true"==n[1]&&n[4]&&Xo(n),y=n[5]&&Vo(n);function t(t){return t[5]?Ko:Yo}let v=t(n),w=v(n);return{c(){r=P("div"),o=P("table"),i=P("thead"),s=P("tr");for(let t=0;t<g.length;t+=1)g[t].c();a=k(),l=P("tbody"),b&&b.c(),u=k(),y&&y.c(),c=k(),d=P("div"),h=P("div"),w.c(),R(o,"class","LeftTable"),R(h,"class","CollapseButton"),R(d,"class","RightButton"),R(r,"class","TournamentsTable")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(i,s);for(let t=0;t<g.length;t+=1)g[t].m(s,null);C(o,a),C(o,l),b&&b.m(l,null),C(l,u),y&&y.m(l,null),C(r,c),C(r,d),C(d,h),w.m(h,null),p||(f=L(h,"click",n[17]),p=!0)},p(e,n){if(1417&n[0]){let t;for(m=e[3],t=0;t<m.length;t+=1){var r=$o(e,m,t);g[t]?g[t].p(r,n):(g[t]=Ho(r),g[t].c(),g[t].m(s,null))}for(;t<g.length;t+=1)g[t].d(1);g.length=m.length}"true"==e[1]&&e[4]?b?b.p(e,n):(b=Xo(e),b.c(),b.m(l,u)):b&&(b.d(1),b=null),e[5]?y?y.p(e,n):(y=Vo(e),y.c(),y.m(l,null)):y&&(y.d(1),y=null),v!==(v=t(e))&&(w.d(1),w=v(e),w&&(w.c(),w.m(h,null)))},d(t){t&&A(r),E(g,t),b&&b.d(),y&&y.d(),w.d(),p=!1,f()}}}function zo(n){let r,o,i,s,a,l,u,c,d,h,p,f=n[8]("tournamentsTable.leaderboard")+"";function m(t){return t[5]?Zo:Wo}let g=m(n),b=g(n),y="true"==n[1]&&n[4]&&Jo(n),v=n[5]&&Qo(n);return{c(){r=P("div"),o=P("div"),i=$(f),s=k(),a=P("div"),l=P("div"),b.c(),u=k(),y&&y.c(),c=k(),v&&v.c(),d=w(),R(o,"class","Leaderboard"),R(l,"class","CollapseButton"),R(a,"class","RightButton "+(dr(n[9])?"MobileClass":"")),R(r,"class","LeaderboardContainer")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,s),C(r,a),C(a,l),b.m(l,null),S(t,u,e),y&&y.m(t,e),S(t,c,e),v&&v.m(t,e),S(t,d,e),h||(p=L(l,"click",n[15]),h=!0)},p(t,e){256&e[0]&&f!==(f=t[8]("tournamentsTable.leaderboard")+"")&&D(i,f),g!==(g=m(t))&&(b.d(1),b=g(t),b&&(b.c(),b.m(l,null))),"true"==t[1]&&t[4]?y?y.p(t,e):(y=Jo(t),y.c(),y.m(c.parentNode,c)):y&&(y.d(1),y=null),t[5]?v?v.p(t,e):(v=Qo(t),v.c(),v.m(d.parentNode,d)):v&&(v.d(1),v=null)},d(t){t&&A(r),b.d(),t&&A(u),y&&y.d(t),t&&A(c),v&&v.d(t),t&&A(d),h=!1,p()}}}function Fo(t){let n,r,o=t[8](`tournamentsTable.${t[30]}`)+"";return{c(){n=P("p"),r=$(o),R(n,"data-sort",t[7])},m(t,e){S(t,n,e),C(n,r)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[30]}`)+"")&&D(r,o),128&e[0]&&R(n,"data-sort",t[7])},d(t){t&&A(n)}}}function Go(n){let r,o,i,s,a=n[8](`tournamentsTable.${n[30]}`)+"";function l(){return n[16](n[30])}return{c(){r=P("button"),o=$(a),R(r,"data-sort",n[7])},m(t,e){S(t,r,e),C(r,o),i||(s=L(r,"click",l),i=!0)},p(t,e){n=t,264&e[0]&&a!==(a=n[8](`tournamentsTable.${n[30]}`)+"")&&D(o,a),128&e[0]&&R(r,"data-sort",n[7])},d(t){t&&A(r),i=!1,s()}}}function Ho(t){let n,r;function o(t){return"true"==t[0]?Go:Fo}let i=o(t),s=i(t);return{c(){n=P("th"),s.c(),r=k()},m(t,e){S(t,n,e),s.m(n,null),C(n,r)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(n,r)))},d(t){t&&A(n),s.d()}}}function Xo(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m=t[4].Position+"",g=t[4].Name+"",b=t[4].Score+"";return{c(){n=P("tr"),r=P("td"),o=P("strong"),i=P("em"),s=$("#"),a=$(m),l=k(),u=P("td"),c=$(g),d=k(),h=P("td"),p=P("div"),f=$(b),R(p,"class","Flex"),R(n,"class","FirstRow")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(i,s),C(i,a),C(n,l),C(n,u),C(u,c),C(n,d),C(n,h),C(h,p),C(p,f)},p(t,e){16&e[0]&&m!==(m=t[4].Position+"")&&D(a,m),16&e[0]&&g!==(g=t[4].Name+"")&&D(c,g),16&e[0]&&b!==(b=t[4].Score+"")&&D(f,b)},d(t){t&&A(n)}}}function Vo(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=qo(Po(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);S(e,o,n)},p(e,n){if(64&n[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var r=Po(e,i,t);s[t]?s[t].p(r,n):(s[t]=qo(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&A(o)}}}function qo(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m,g=t[25].Position+"",b=t[25].Name+"",y=t[25].Score+"";return{c(){n=P("tr"),r=P("td"),o=P("strong"),i=P("em"),s=$("#"),a=$(g),l=k(),u=P("td"),c=$(b),d=k(),h=P("td"),p=P("div"),f=$(y),m=k(),R(p,"class","Flex")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(i,s),C(i,a),C(n,l),C(n,u),C(u,c),C(n,d),C(n,h),C(h,p),C(p,f),C(n,m)},p(t,e){64&e[0]&&g!==(g=t[25].Position+"")&&D(a,g),64&e[0]&&b!==(b=t[25].Name+"")&&D(c,b),64&e[0]&&y!==(y=t[25].Score+"")&&D(f,y)},d(t){t&&A(n)}}}function Yo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M6 9l6 6 6-6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Ko(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M18 15l-6-6-6 6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Wo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M6 9l6 6 6-6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Zo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M18 15l-6-6-6 6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Jo(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m,g=t[4].Position+"",b=t[4].Name+"",y=t[8]("tournamentsTable.score")+"",v=t[4].Score+"";return{c(){n=P("div"),r=P("div"),o=P("span"),i=$(g),s=P("span"),a=$(b),l=k(),u=P("div"),c=P("div"),d=P("p"),h=$(y),p=k(),f=P("p"),m=$(v),R(r,"class","TableUser"),R(u,"class","TableUserDetails"),R(n,"class","TableContent TableContentFirstRow")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(r,s),C(s,a),C(n,l),C(n,u),C(u,c),C(c,d),C(d,h),C(c,p),C(c,f),C(f,m)},p(t,e){16&e[0]&&g!==(g=t[4].Position+"")&&D(i,g),16&e[0]&&b!==(b=t[4].Name+"")&&D(a,b),256&e[0]&&y!==(y=t[8]("tournamentsTable.score")+"")&&D(h,y),16&e[0]&&v!==(v=t[4].Score+"")&&D(m,v)},d(t){t&&A(n)}}}function Qo(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=ti(ko(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);S(e,o,n)},p(e,n){if(320&n[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var r=ko(e,i,t);s[t]?s[t].p(r,n):(s[t]=ti(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&A(o)}}}function ti(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m,g,b=t[25].Position+"",y=t[25].Name+"",v=t[8]("tournamentsTable.score")+"",w=t[25].Score+"";return{c(){n=P("div"),r=P("div"),o=P("span"),i=$(b),s=P("span"),a=$(y),l=k(),u=P("div"),c=P("div"),d=P("p"),h=$(v),p=k(),f=P("p"),m=$(w),g=k(),R(r,"class","TableUser"),R(u,"class","TableUserDetails"),R(n,"class","TableContent")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(r,s),C(s,a),C(n,l),C(n,u),C(u,c),C(c,d),C(d,h),C(c,p),C(c,f),C(f,m),C(n,g)},p(t,e){64&e[0]&&b!==(b=t[25].Position+"")&&D(i,b),64&e[0]&&y!==(y=t[25].Name+"")&&D(a,y),256&e[0]&&v!==(v=t[8]("tournamentsTable.score")+"")&&D(h,v),64&e[0]&&w!==(w=t[25].Score+"")&&D(m,w)},d(t){t&&A(n)}}}function ei(t){let e,n;function r(t){return 0<t[2].length||t[4]?Do:(null==e&&(e=!(1!=dr(t[9]))),e?Ro:Lo)}let o=r(t),i=o(t);return{c(){i.c(),n=w(),this.c=y},m(t,e){i.m(t,e),S(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:y,o:y,d(t){i.d(t),t&&A(n)}}}function ni(t,e,o){let n,r,i;V(t,cr,t=>o(8,i=t));let{sortable:s=!1}=e,{firstrow:a=!1}=e,{lang:l="en"}=e,u=[],c=[],d=null,h=null,p=null,f=!0,m=window.navigator.userAgent;Object.keys(So).forEach(t=>{Hn(t,So[t])});const g=t=>{if(t.data&&"CasinoTableData"===t.data.type&&(o(2,c=t.data.tableData),o(6,n=c)),t.data&&"CasinoTableColumns"===t.data.type&&o(3,u=t.data.tableColumns),a&&t.data&&"CasinoTableFirstRowData"===t.data.type&&o(4,p=t.data.tableData),t.data&&"CasinoTableDataUpdate"===t.data.type&&t.data.tableData){let r=t.data.tableData;c instanceof Array&&c.forEach(function(t,e){var n,t=(n=t.Position,r.find(t=>t.Position==n));t&&o(2,c[e]=t,c)})}},b=t=>{var e=t===d,n="ASC"===h,r=e&&!n;o(13,d=r?null:t),o(14,h=r?null:e&&n?"DESC":"ASC")},y=()=>{o(5,f=!f)};return q(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),t.$$set=t=>{"sortable"in t&&o(0,s=t.sortable),"firstrow"in t&&o(1,a=t.firstrow),"lang"in t&&o(12,l=t.lang)},t.$$.update=()=>{24580&t.$$.dirty[0]&&o(6,n=d&&h?(()=>{let t=[];if(c&&(t=[...c]),!c.length)return c;var e=typeof c[0][d.toLowerCase()];return t.sort((t=>{const n=d.toLowerCase();return"string"==t?(t,e)=>t[n].localeCompare(e[n]):"number"==t||"object"==t?(t,e)=>t[n]-e[n]:void 0})(e)),"ASC"===h?t:t.reverse()})():[...c]),24576&t.$$.dirty[0]&&o(7,r=null===d?h:null)},[s,a,c,u,p,f,n,r,i,m,b,y,l,d,h,()=>y(),t=>b(t),()=>y(),()=>y(),t=>b(t)]}function ri(t,e,n){const r=t.slice();return r[38]=e[n],r}function oi(n){let r,o,i,s,a,l,u,c,d,h,p,f,m,g,b,y,v,w,E=n[10]("tournamentsPage.back")+"",T=n[8]&&si(n),x=0<n[7].length&&ai(n),_="true"==n[0]&&ui(n);return{c(){r=P("div"),o=P("div"),i=P("div"),s=e("svg"),a=e("path"),l=k(),u=P("p"),c=$(E),d=k(),h=P("div"),p=P("div"),T&&T.c(),f=k(),x&&x.c(),g=k(),b=P("div"),_&&_.c(),R(a,"stroke-linecap","round"),R(a,"stroke-linejoin","round"),R(a,"stroke-width","2"),R(a,"d","M15 19l-7-7 7-7"),R(s,"fill","none"),R(s,"stroke","currentColor"),R(s,"width","24"),R(s,"height","24"),R(s,"viewBox","0 0 24 24"),R(s,"xmlns","http://www.w3.org/2000/svg"),R(i,"class","BackButton"),R(o,"class","TopButtons"),R(p,"class",m=(dr(n[11])?"MobileClass":"")+("true"==n[0]?"TournamentCardDetails":"FullSize")),R(b,"class",y="true"==n[0]?"TournamentTableDetails ":"DisplayNone"),R(h,"class","TournamentContentDetails "+(dr(n[11])?"MobileClass":"")),R(r,"class","TournamentsPage")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(i,s),C(s,a),C(i,l),C(i,u),C(u,c),C(r,d),C(r,h),C(h,p),T&&T.m(p,null),C(p,f),x&&x.m(p,null),C(h,g),C(h,b),_&&_.m(b,null),v||(w=L(i,"click",n[19]),v=!0)},p(t,e){1024&e[0]&&E!==(E=t[10]("tournamentsPage.back")+"")&&D(c,E),t[8]?T?T.p(t,e):(T=si(t),T.c(),T.m(p,f)):T&&(T.d(1),T=null),0<t[7].length?x?x.p(t,e):(x=ai(t),x.c(),x.m(p,null)):x&&(x.d(1),x=null),1&e[0]&&m!==(m=(dr(t[11])?"MobileClass":"")+("true"==t[0]?"TournamentCardDetails":"FullSize"))&&R(p,"class",m),"true"==t[0]?_?_.p(t,e):(_=ui(t),_.c(),_.m(b,null)):_&&(_.d(1),_=null),1&e[0]&&y!==(y="true"==t[0]?"TournamentTableDetails ":"DisplayNone")&&R(b,"class",y)},d(t){t&&A(r),T&&T.d(),x&&x.d(),_&&_.d(),v=!1,w()}}}function ii(t){let n,r,o=t[10]("tournamentsPage.loading")+"";return{c(){n=P("p"),r=$(o)},m(t,e){S(t,n,e),C(n,r)},p(t,e){1024&e[0]&&o!==(o=t[10]("tournamentsPage.loading")+"")&&D(r,o)},d(t){t&&A(n)}}}function si(t){let n,r,o;return{c(){n=P("casino-tournaments-thumbnail-controller"),v(n,"session",t[1]),v(n,"userid",t[2]),v(n,"endpoint",t[3]),v(n,"tournamenturl",r=t[8].href),v(n,"showdetails","false"),v(n,"showslider","true"),v(n,"showenrolled","true"),v(n,"fullsize",o=!!t[0]),v(n,"lang",t[4]),v(n,"currency",t[5])},m(t,e){S(t,n,e)},p(t,e){2&e[0]&&v(n,"session",t[1]),4&e[0]&&v(n,"userid",t[2]),8&e[0]&&v(n,"endpoint",t[3]),256&e[0]&&r!==(r=t[8].href)&&v(n,"tournamenturl",r),1&e[0]&&o!==(o=!!t[0])&&v(n,"fullsize",o),16&e[0]&&v(n,"lang",t[4]),32&e[0]&&v(n,"currency",t[5])},d(t){t&&A(n)}}}function ai(e){let o,i=e[7],s=[];for(let t=0;t<i.length;t+=1)s[t]=li(ri(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);S(e,o,n)},p(e,n){if(128&n[0]){let t;for(i=e[7],t=0;t<i.length;t+=1){var r=ri(e,i,t);s[t]?s[t].p(r,n):(s[t]=li(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&A(o)}}}function li(t){let n,r,o;return{c(){n=P("casino-tournaments-details"),v(n,"title",r=t[38].title),v(n,"text",o=t[38].description)},m(t,e){S(t,n,e)},p(t,e){128&e[0]&&r!==(r=t[38].title)&&v(n,"title",r),128&e[0]&&o!==(o=t[38].description)&&v(n,"text",o)},d(t){t&&A(n)}}}function ui(t){let n,r=1==t[9]&&ci(t);return{c(){r&&r.c(),n=w()},m(t,e){r&&r.m(t,e),S(t,n,e)},p(t,e){1==t[9]?r?r.p(t,e):(r=ci(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&A(n)}}}function ci(t){let n;return{c(){n=P("casino-tournaments-table"),v(n,"firstrow","true"),v(n,"sortable","false"),v(n,"lang",t[4])},m(t,e){S(t,n,e)},p(t,e){16&e[0]&&v(n,"lang",t[4])},d(t){t&&A(n)}}}function di(t){let n;function r(t){return t[6]?ii:oi}let o=r(t),i=o(t);return{c(){i.c(),n=w(),this.c=y},m(t,e){i.m(t,e),S(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:y,o:y,d(t){i.d(t),t&&A(n)}}}function hi(t,e,o){let n,r;V(t,cr,t=>o(10,r=t));let i,s,a,{session:l=""}=e,{userid:u=""}=e,{tourid:c=""}=e,{endpoint:d=""}=e,{showleaderboard:h=""}=e,{cmsendpoint:p=""}=e,{lang:f=""}=e,{navigationbackbutton:m="Default"}=e,{currency:g="EUR"}=e,{tablelimit:b="30"}=e,{namemask:y=""}=e,v="",w=!0,E=[],T=window.navigator.userAgent,x=!1,_={},C=!1;var S,A;[{withLocale:S,translations:A}]=[{withLocale:"en",translations:{}}],tr.subscribe(t=>{null==t&&(Fn.set(A),tr.set(S))}),Object.keys(pr).forEach(t=>{Hn(t,pr[t])});const P=["Position","Name","Score"],$=t=>{let e=[];return t&&0<t.length&&t.forEach(t=>{0==t.unqualified&&(t.userID==v?(C=!0,_={Position:t.rank,Name:t.shortName,Score:t.score}):e.push({Position:t.rank,Name:t.shortName,Score:t.score}))}),e},k=t=>{if(t.data)try{var e,n=t.data,r=JSON.parse(n);r&&r.Items&&(e=$(r.Items),C&&_&&window.postMessage({type:"CasinoTableFirstRowData",tableData:_},window.location.href),window.postMessage({type:"CasinoTableDataUpdate",tableData:e},window.location.href))}catch(t){console.error(t)}},L=(t,e)=>{let n=new URL(t+`/tournaments/${e}/leaderboard`),r=new Headers;n.searchParams.append("language",f),y&&n.searchParams.append("filter",`shortNameMask=${y}`),r.append("platform",hr(T)),fetch(n,{method:"GET",headers:r}).then(t=>t.json()).then(t=>{s=$(t.items),o(9,x=!0),window.postMessage({type:"CasinoTableData",tableData:s.slice(0,b)},window.location.href),window.postMessage({type:"CasinoTableColumns",tableColumns:P},window.location.href),C&&window.postMessage({type:"CasinoTableFirstRowData",tableData:_},window.location.href),((t,e)=>{t=`${d}/tournaments/${t}/leaderboard/updates?HeartBeat=false&`;t+=e.toString(),a=new gr.EventSourcePolyfill(t,{headers:{accept:"text/event-stream","X-SessionID":l}}),void 0!==a&&a.addEventListener("message",k)})(e,n.searchParams)})},R=t=>{t.data&&"UserSessionID"==t.data.type&&t.data.session,t.data&&"PlayerID"==t.data.type&&(v=t.data.playerID)},D=()=>{"Event"==m?window.postMessage({type:"RedirectBack"},window.location.href):"Default"==m&&window.history.back()},O=()=>{var t=f;tr.set(t),((t,e)=>{let n=new URL(t+`/tournaments/${e}`),r=new Headers;n.searchParams.append("expand","games"),n.searchParams.append("language",f),r.append("platform",hr(T));e={method:"GET",headers:r};fetch(n.href,e).then(t=>t.json()).then(t=>{o(8,i=t.item),"Unstarted"==t.item.state&&o(0,h=!1)})})(d,c),L(d,c)};return q(()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R),a.removeEventListener("message",k)})),t.$$set=t=>{"session"in t&&o(1,l=t.session),"userid"in t&&o(2,u=t.userid),"tourid"in t&&o(13,c=t.tourid),"endpoint"in t&&o(3,d=t.endpoint),"showleaderboard"in t&&o(0,h=t.showleaderboard),"cmsendpoint"in t&&o(14,p=t.cmsendpoint),"lang"in t&&o(4,f=t.lang),"navigationbackbutton"in t&&o(15,m=t.navigationbackbutton),"currency"in t&&o(5,g=t.currency),"tablelimit"in t&&o(16,b=t.tablelimit),"namemask"in t&&o(17,y=t.namemask)},t.$$.update=()=>{6&t.$$.dirty[0]&&l&&u&&(0<l.length&&"false"!=l&&(v=u),o(6,w=!1)),8218&t.$$.dirty[0]&&o(18,n=c&&d&&l&&f),262144&t.$$.dirty[0]&&n&&O(),24576&t.$$.dirty[0]&&c&&p&&fetch(`${p}?tournamentId=${c}`).then(t=>t.json()).then(t=>{t&&t.details&&o(7,E=t.details)})},[h,l,u,d,f,g,w,E,i,x,r,T,D,c,p,m,b,y,n,()=>D()]}customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LeaderboardContainer{background:#232633;display:flex;width:100%;justify-content:space-between}.Leaderboard{width:calc(100% - 50px);height:52px;display:flex;align-items:center;padding-left:20px}.TableContent{width:calc(100% - 46px);font-size:14px;margin-bottom:2px;border-bottom:solid 1px #FFFFFF}.TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid #1B9800}.TableUser{background:#121522;height:52px;display:flex;align-items:center;gap:20px;padding-left:20px;font-weight:bold}.TableUserDetails{background:#232633;display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.TournamentsTable{width:100%;min-width:600px;display:flex;justify-content:space-between;text-align:center}.LeftTable{width:100%}.RightButton{cursor:pointer;background:#00020f;width:50px;height:70px;border:2px solid #232632}.RightButton.MobileClass{height:50px}.FirstRow{outline:2px solid #1B9800}table{width:100%;min-width:600px;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}th{padding:1.5rem 1.25rem;height:70px;background-color:#232632;border-bottom:1px solid #00020f;top:0;color:#fff}td{margin:0;padding:1.25rem;vertical-align:top;text-align:inherit;color:#fff;font-size:0.9rem;max-width:20%;background-color:#121521;border-bottom:1px solid #00020f}td:first-child{left:0;top:auto;width:10rem}svg{width:1.25rem;height:1.25rem;fill:rgba(0, 0, 0, 0.5);flex-shrink:0}button{font-weight:bold;font-size:inherit;text-transform:capitalize;background-color:transparent;border:none;cursor:pointer;display:block;padding:0 1rem 0 0;background-size:0.75rem;background-repeat:no-repeat;background-position:center right;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M16.29 14.29L12 18.59l-4.29-4.3a1 1 0 00-1.42 1.42l5 5a1 1 0 001.42 0l5-5a1 1 0 00-1.42-1.42zM7.71 9.71L12 5.41l4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42l-5-5a1 1 0 00-1.42 0l-5 5a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}.CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#00020f;color:#fff}[data-sort=\"ASC\"],[data-sort=\"DESC\"]{background-size:1rem;background-position:right -0.15rem center}[data-sort=\"ASC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M11.29 11.46a1 1 0 001.42 0l3-3A1 1 0 1014.29 7L12 9.34 9.71 7a1 1 0 10-1.42 1.46zm3 1.08L12 14.84l-2.29-2.3A1 1 0 008.29 14l3 3a1 1 0 001.42 0l3-3a1 1 0 00-1.42-1.42z'/%3E%3C/svg%3E\")}[data-sort=\"DESC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M12.71 12.54a1 1 0 00-1.42 0l-3 3A1 1 0 009.71 17L12 14.66 14.29 17a1 1 0 001.42 0 1 1 0 000-1.42zm-3-1.08L12 9.16l2.29 2.3a1 1 0 001.42 0 1 1 0 000-1.42l-3-3a1 1 0 00-1.42 0l-3 3a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ni,ei,n,{sortable:0,firstrow:1,lang:12},[-1,-1]),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(t){this.$set({sortable:t}),U()}get firstrow(){return this.$$.ctx[1]}set firstrow(t){this.$set({firstrow:t}),U()}get lang(){return this.$$.ctx[12]}set lang(t){this.$set({lang:t}),U()}});class pi extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsPage{background:#00020f;width:100%;height:100%;color:#fff}.FullSize{width:100%}.DisplayNone{display:none}.TopButtons{display:inline-flex;flex-direction:column;padding-bottom:20px;font-size:10px}.BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButton p{font-size:24px}.TournamentContentDetails{display:flex;gap:20px}.TournamentContentDetails.MobileClass{flex-direction:column}.TournamentCardDetails{width:420px}.TournamentTableDetails{width:100%}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},hi,di,n,{session:1,userid:2,tourid:13,endpoint:3,showleaderboard:0,cmsendpoint:14,lang:4,navigationbackbutton:15,currency:5,tablelimit:16,namemask:17},[-1,-1]),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["session","userid","tourid","endpoint","showleaderboard","cmsendpoint","lang","navigationbackbutton","currency","tablelimit","namemask"]}get session(){return this.$$.ctx[1]}set session(t){this.$set({session:t}),U()}get userid(){return this.$$.ctx[2]}set userid(t){this.$set({userid:t}),U()}get tourid(){return this.$$.ctx[13]}set tourid(t){this.$set({tourid:t}),U()}get endpoint(){return this.$$.ctx[3]}set endpoint(t){this.$set({endpoint:t}),U()}get showleaderboard(){return this.$$.ctx[0]}set showleaderboard(t){this.$set({showleaderboard:t}),U()}get cmsendpoint(){return this.$$.ctx[14]}set cmsendpoint(t){this.$set({cmsendpoint:t}),U()}get lang(){return this.$$.ctx[4]}set lang(t){this.$set({lang:t}),U()}get navigationbackbutton(){return this.$$.ctx[15]}set navigationbackbutton(t){this.$set({navigationbackbutton:t}),U()}get currency(){return this.$$.ctx[5]}set currency(t){this.$set({currency:t}),U()}get tablelimit(){return this.$$.ctx[16]}set tablelimit(t){this.$set({tablelimit:t}),U()}get namemask(){return this.$$.ctx[17]}set namemask(t){this.$set({namemask:t}),U()}}return customElements.get("casino-tournaments-page-controller")||customElements.define("casino-tournaments-page-controller",pi),pi});
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function y(){}function d(t){return t()}function h(){return Object.create(null)}function b(t){t.forEach(d)}function p(t){return"function"==typeof t}function n(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function f(t,...e){if(null==t)return y;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Y(t,e,n){t.$$.on_destroy.push(f(e,n))}function g(t){return t&&p(t.destroy)?t.destroy:y}function C(t,e){t.appendChild(e)}function S(t,e,n){t.insertBefore(e,n||null)}function A(t){t.parentNode.removeChild(t)}function E(e,n){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}function P(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t){return document.createTextNode(t)}function k(){return $(" ")}function w(){return $("")}function L(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function R(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function v(t,e,n){e in t?t[e]=n:R(t,e,n)}function D(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function m(t,e,n,r){t.style.setProperty(e,n,r?"important":"")}function t(t,e,n){t.classList[n?"add":"remove"](e)}function r(t){const e={};for(const n of t)e[n.name]=n.value;return e}let T;function x(t){T=t}function K(t){!function(){if(!T)throw new Error("Function called outside component initialization");return T}().$$.on_mount.push(t)}const _=[],O=[],o=[],i=[],N=Promise.resolve();let I=!1;function M(t){o.push(t)}let s=!1;const a=new Set;function U(){if(!s){s=!0;do{for(let t=0;t<_.length;t+=1){var e=_[t];x(e),function(t){{var e;null!==t.fragment&&(t.update(),b(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(M))}}(e.$$)}for(x(null),_.length=0;O.length;)O.pop()();for(let t=0;t<o.length;t+=1){const n=o[t];a.has(n)||(a.add(n),n())}}while(o.length=0,_.length);for(;i.length;)i.pop()();I=!1,s=!1,a.clear()}}const j=new Set;function l(r,t,e,n,o,i,s=[-1]){var a,l=T;x(r);const u=r.$$={fragment:null,ctx:null,props:i,update:y,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=e?e(r,t.props||{},(t,e,...n)=>{n=n.length?n[0]:e;return u.ctx&&o(u.ctx[t],u.ctx[t]=n)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](n),c&&(n=t,-1===(t=r).$$.dirty[0]&&(_.push(t),I||(I=!0,N.then(U)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],u.update(),c=!0,b(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){const y=(n=t.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(y),y.forEach(A)}else u.fragment&&u.fragment.c();t.intro&&(a=r.$$.fragment)&&a.i&&(j.delete(a),a.i(void 0)),function(e,t,n,r){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,n),r||M(()=>{var t=i.map(d).filter(p);s?s.push(...t):b(t),e.$$.on_mount=[]}),a.forEach(M)}(r,t.target,t.anchor,t.customElement),U()}x(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(d).filter(p);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){b(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(b(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=y}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var c,B,z="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==z&&z,F="URLSearchParams"in z,G="Symbol"in z&&"iterator"in Symbol,H="FileReader"in z&&"Blob"in z&&function(){try{return new Blob,!0}catch(t){return!1}}(),X="FormData"in z,V="ArrayBuffer"in z;function q(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function W(t){return t="string"!=typeof t?String(t):t}function Z(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return G&&(t[Symbol.iterator]=function(){return t}),t}function J(e){this.map={},e instanceof J?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function Q(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function tt(n){return new Promise(function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}})}function et(t){var e=new FileReader,n=tt(e);return e.readAsArrayBuffer(t),n}function nt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function rt(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:H&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:X&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:F&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():V&&H&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=nt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):V&&(ArrayBuffer.prototype.isPrototypeOf(t)||B(t))?this._bodyArrayBuffer=nt(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},H&&(this.blob=function(){var t=Q(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(et)}),this.text=function(){var t,e,n=Q(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,n=tt(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},X&&(this.formData=function(){return this.text().then(st)}),this.json=function(){return this.text().then(JSON.parse)},this}V&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],B=ArrayBuffer.isView||function(t){return t&&-1<c.indexOf(Object.prototype.toString.call(t))}),J.prototype.append=function(t,e){t=q(t),e=W(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},J.prototype.delete=function(t){delete this.map[q(t)]},J.prototype.get=function(t){return t=q(t),this.has(t)?this.map[t]:null},J.prototype.has=function(t){return this.map.hasOwnProperty(q(t))},J.prototype.set=function(t,e){this.map[q(t)]=W(e)},J.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},J.prototype.keys=function(){var n=[];return this.forEach(function(t,e){n.push(e)}),Z(n)},J.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Z(e)},J.prototype.entries=function(){var n=[];return this.forEach(function(t,e){n.push([e,t])}),Z(n)},G&&(J.prototype[Symbol.iterator]=J.prototype.entries);var ot=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function it(t,e){if(!(this instanceof it))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(e=e||{}).body;if(t instanceof it){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new J(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new J(e.headers)),this.method=(t=(n=e.method||this.method||"GET").toUpperCase(),-1<ot.indexOf(t)?t:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function st(t){var n=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function at(t,e){if(!(this instanceof at))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new J(e.headers),this.url=e.url||"",this._initBody(t)}it.prototype.clone=function(){return new it(this,{body:this._bodyInit})},rt.call(it.prototype),rt.call(at.prototype),at.prototype.clone=function(){return new at(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new J(this.headers),url:this.url})},at.error=function(){var t=new at(null,{status:0,statusText:""});return t.type="error",t};var lt=[301,302,303,307,308];at.redirect=function(t,e){if(-1===lt.indexOf(e))throw new RangeError("Invalid status code");return new at(null,{status:e,headers:{location:t}})};var ut=z.DOMException;try{new ut}catch(y){(ut=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),ut.prototype.constructor=ut}function ct(r,s){return new Promise(function(o,t){var e=new it(r,s);if(e.signal&&e.signal.aborted)return t(new ut("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var t,n,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",n=new J,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var r="response"in i?i.response:i.responseText;setTimeout(function(){o(new at(r,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new ut("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&z.location.href?z.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(H?i.responseType="blob":V&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof J?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,W(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",n)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}ct.polyfill=!0,z.fetch||(z.fetch=ct,z.Headers=J,z.Request=it,z.Response=at);var dt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};self.fetch.bind(self);var ht=function(t,e){return(ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ht(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function ft(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function mt(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function gt(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function bt(t){return"function"==typeof t}function yt(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var vt=yt(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function wt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var Et=(xt.prototype.unsubscribe=function(){var t,e,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ft(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(bt(i))try{i()}catch(t){o=t instanceof vt?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=ft(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{Ct(c)}catch(t){o=null!=o?o:[],t instanceof vt?o=gt(gt([],mt(o)),mt(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new vt(o)}},xt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Ct(t);else{if(t instanceof xt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},xt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},xt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},xt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&wt(e,t)},xt.prototype.remove=function(t){var e=this._teardowns;e&&wt(e,t),t instanceof xt&&t._removeParent(this)},xt.EMPTY=((qe=new xt).closed=!0,qe),xt),Tt=Et.EMPTY;function xt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function _t(t){return t instanceof Et||t&&"closed"in t&&bt(t.remove)&&bt(t.add)&&bt(t.unsubscribe)}function Ct(t){bt(t)?t():t.unsubscribe()}var St=void 0,At=!1,Pt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,gt([],mt(t)))};function $t(){}function kt(t){t()}var Lt,Rt,Dt=(pt(It,Rt=Et),It.create=function(t,e,n){return new Ot(t,e,n)},It.prototype.next=function(t){this.isStopped||this._next(t)},It.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},It.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},It.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Rt.prototype.unsubscribe.call(this),this.destination=null)},It.prototype._next=function(t){this.destination.next(t)},It.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},It.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},It),Ot=(pt(Nt,Lt=Dt),Nt);function Nt(t,e,n){var r,o,i=Lt.call(this)||this;return bt(t)?o=t:t&&(o=t.next,e=t.error,n=t.complete,i&&At?(r=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:r=t,o=null==o?void 0:o.bind(r),e=null==e?void 0:e.bind(r),n=null==n?void 0:n.bind(r)),i.destination={next:o?Mt(o):$t,error:Mt(null!=e?e:Ut),complete:n?Mt(n):$t},i}function It(t){var e=Rt.call(this)||this;return e.isStopped=!1,t?_t(e.destination=t)&&t.add(e):e.destination=jt,e}function Mt(r){return function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{r.apply(void 0,gt([],mt(t)))}catch(t){e=t,Pt(function(){throw e})}}}function Ut(t){throw t}var jt={closed:!0,next:$t,error:Ut,complete:$t},Bt="function"==typeof Symbol&&Symbol.observable||"@@observable";function zt(t){return t}var Ft=(Gt.prototype.lift=function(t){var e=new Gt;return e.source=this,e.operator=t,e},Gt.prototype.subscribe=function(t,e,n){var r,o=this,i=(r=t)&&r instanceof Dt||r&&bt(r.next)&&bt(r.error)&&bt(r.complete)&&_t(r)?t:new Ot(t,e,n);return kt(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},Gt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Gt.prototype.forEach=function(r,t){var o=this;return new(t=Ht(t))(function(t,e){var n=o.subscribe(function(t){try{r(t)}catch(t){e(t),null==n||n.unsubscribe()}},e,t)})},Gt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Gt.prototype[Bt]=function(){return this},Gt.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?zt:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Gt.prototype.toPromise=function(t){var r=this;return new(t=Ht(t))(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},Gt.create=function(t){return new Gt(t)},Gt);function Gt(t){t&&(this._subscribe=t)}function Ht(t){return null!==(t=null!=t?t:St)&&void 0!==t?t:Promise}var Xt,Vt,qt,Yt=yt(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Kt=(pt(ee,qt=Ft),ee.prototype.lift=function(t){var e=new Wt(this,this);return e.operator=t,e},ee.prototype._throwIfClosed=function(){if(this.closed)throw new Yt},ee.prototype.next=function(i){var s=this;kt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var n=s.observers.slice();try{for(var r=ft(n),o=r.next();!o.done;o=r.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},ee.prototype.error=function(e){var n=this;kt(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var t=n.observers;t.length;)t.shift().error(e)}})},ee.prototype.complete=function(){var e=this;kt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},ee.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(ee.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),ee.prototype._trySubscribe=function(t){return this._throwIfClosed(),qt.prototype._trySubscribe.call(this,t)},ee.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},ee.prototype._innerSubscribe=function(t){var e=this.hasError,n=this.isStopped,r=this.observers;return e||n?Tt:(r.push(t),new Et(function(){return wt(r,t)}))},ee.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,n=this.thrownError,r=this.isStopped;e?t.error(n):r&&t.complete()},ee.prototype.asObservable=function(){var t=new Ft;return t.source=this,t},ee.create=function(t,e){return new Wt(t,e)},ee),Wt=(pt(te,Vt=Kt),te.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},te.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},te.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},te.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:Tt},te),Zt={now:function(){return(Zt.delegate||Date).now()},delegate:void 0},Jt=(pt(Qt,Xt=Kt),Qt.prototype.next=function(t){var e=this,n=e.isStopped,r=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;n||(r.push(t),o||r.push(i.now()+e)),this._trimBuffer(),Xt.prototype.next.call(this,t)},Qt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=n?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),e},Qt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=e.now(),s=0,a=1;a<n.length&&n[a]<=i;a+=2)s=a;s&&n.splice(0,s+1)}},Qt);function Qt(t,e,n){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===n&&(n=Zt);var r=Xt.call(this)||this;return r._bufferSize=t,r._windowTime=e,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=e===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,e),r}function te(t,e){var n=Vt.call(this)||this;return n.destination=t,n.source=e,n}function ee(){var t=qt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let ne=[],re={};const oe=[];function ie(r,o=y){let i;const s=[];function a(t){if(n(r,t)&&(r=t,i)){const t=!oe.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),oe.push(e,r)}if(t){for(let t=0;t<oe.length;t+=2)oe[t][0](oe[t+1]);oe.length=0}}}return{set:a,update:function(t){a(t(r))},subscribe:function(t,e=y){const n=[t,e];return s.push(n),1===s.length&&(i=o(a)||y),t(r),()=>{var t=s.indexOf(n);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function se(t,a,e){const l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return{subscribe:ie(e,e=>{let n=!1;const r=[];let o=0,i=y;const s=()=>{var t;o||(i(),t=a(l?r[0]:r,e),c?e(t):i=p(t)?t:y)},t=u.map((t,e)=>f(t,t=>{r[e]=t,o&=~(1<<e),n&&s()},()=>{o|=1<<e}));return n=!0,s(),function(){b(t),i()}}).subscribe}}var ae=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===le));var e},le="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ue(t,e){return!1!==e.clone&&e.isMergeableObject(t)?fe(Array.isArray(t)?[]:{},t,e):t}function ce(t,e,n){return t.concat(e).map(function(t){return ue(t,n)})}function de(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function he(t,e){try{return e in t}catch(t){return!1}}function pe(r,o,i){var s={};return i.isMergeableObject(r)&&de(r).forEach(function(t){s[t]=ue(r[t],i)}),de(o).forEach(function(e){var t,n;(!he(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(he(r,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return fe;var t=i.customMerge(e);return"function"==typeof t?t:fe}()(r[e],o[e],i):s[e]=ue(o[e],i))}),s}function fe(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||ce,n.isMergeableObject=n.isMergeableObject||ae,n.cloneUnlessOtherwiseSpecified=ue;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):pe(t,e,n):ue(e,n)}fe.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return fe(t,e,n)},{})};var me=fe,ge=function(t,e){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function be(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ge(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ye,ve,we,Ee=function(){return(Ee=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function Te(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function xe(t){return t.type===ve.literal}function _e(t){return t.type===ve.number}function Ce(t){return t.type===ve.date}function Se(t){return t.type===ve.time}function Ae(t){return t.type===ve.select}function Pe(t){return t.type===ve.plural}function $e(t){return t.type===ve.tag}function ke(t){return t&&"object"==typeof t&&t.type===we.number}function Le(t){return t&&"object"==typeof t&&t.type===we.dateTime}(Ye=ye=ye||{})[Ye.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Ye[Ye.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Ye[Ye.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Ye[Ye.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Ye[Ye.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Ye[Ye.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Ye[Ye.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Ye[Ye.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Ye[Ye.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Ye[Ye.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Ye[Ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Ye[Ye.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Ye[Ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Ye[Ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Ye[Ye.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Ye[Ye.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Ye[Ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Ye[Ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Ye[Ye.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Ye[Ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Ye[Ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Ye[Ye.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Ye[Ye.INVALID_TAG=23]="INVALID_TAG",Ye[Ye.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Ye[Ye.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Ye[Ye.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ke=ve=ve||{})[Ke.literal=0]="literal",Ke[Ke.argument=1]="argument",Ke[Ke.number=2]="number",Ke[Ke.date=3]="date",Ke[Ke.time=4]="time",Ke[Ke.select=5]="select",Ke[Ke.plural=6]="plural",Ke[Ke.pound=7]="pound",Ke[Ke.tag=8]="tag",(We=we=we||{})[We.number=0]="number",We[We.dateTime=1]="dateTime";var Re=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,De=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Oe,Ne=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ie=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Me=/^(@+)?(\+|#+)?$/g,Ue=/(\*)(0+)|(#+)(0+)|(0+)/g,je=/^(0+)$/;function Be(t){var r={};return t.replace(Me,function(t,e,n){return"string"!=typeof n?(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length):"+"===n?r.minimumSignificantDigits=e.length:"#"===e[0]?r.maximumSignificantDigits=e.length:(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length+("string"==typeof n?n.length:0)),""}),r}function ze(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Fe(t){return ze(t)||{}}function Ge(t){for(var s={},e=0,n=t;e<n.length;e++){var r,o=n[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=Ee(Ee(Ee({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return Ee(Ee({},t),Fe(e))},{}));continue;case"engineering":s=Ee(Ee(Ee({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return Ee(Ee({},t),Fe(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ue,function(t,e,n,r,o,i){if(e)s.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(je.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ie.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ie,function(t,e,n,r,o,i){return"*"===n?s.minimumFractionDigits=e.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=Ee(Ee({},s),Be(o.options[0])))}else Me.test(o.stem)?s=Ee(Ee({},s),Be(o.stem)):((r=ze(o.stem))&&(s=Ee(Ee({},s),r)),(r=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!je.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=Ee(Ee({},s),r)))}return s}var He=new RegExp("^"+Re.source+"*"),Xe=new RegExp(Re.source+"*$");function Ve(t,e){return{start:t,end:e}}var qe=!!String.prototype.startsWith,Bt=!!String.fromCodePoint,Kt=!!Object.fromEntries,Ye=!!String.prototype.codePointAt,Ke=!!String.prototype.trimStart,We=!!String.prototype.trimEnd,Ze=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Re=!0;try{Re="a"===(null===(Oe=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Oe?void 0:Oe[0])}catch(y){Re=!1}var Je,Qe,tn=qe?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},en=Bt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,r="",o=t.length,i=0;i<o;){if(1114111<(n=t[i++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},nn=Kt?Object.fromEntries:function(t){for(var e={},n=0,r=t;n<r.length;n++){var o=r[n],i=o[0],o=o[1];e[i]=o}return e},rn=Ye?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||n<=e)){var r,o=t.charCodeAt(e);return o<55296||56319<o||e+1===n||(r=t.charCodeAt(e+1))<56320||57343<r?o:r-56320+(o-55296<<10)+65536}},on=Ke?function(t){return t.trimStart()}:function(t){return t.replace(He,"")},sn=We?function(t){return t.trimEnd()}:function(t){return t.replace(Xe,"")};function an(t,e){return new RegExp(t,e)}Qe=Re?(Je=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Je.lastIndex=e,null!==(t=Je.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var n,r=[];;){var o=rn(t,e);if(void 0===o||dn(o)||(33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(o),e+=65536<=o?2:1}return en.apply(void 0,r)};var ln=(un.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},un.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,n)).err)return o;r.push(o.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(ye.UNMATCHED_CLOSING_TAG,Ve(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&cn(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;r.push(o.val)}}else{i=this.clonePosition();this.bump(),r.push({type:ve.pound,location:Ve(i,this.clonePosition())})}}}return{val:r,err:null}},un.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ve.literal,value:"<"+r+"/>",location:Ve(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!cn(this.char()))return this.error(ye.INVALID_TAG,Ve(e,this.clonePosition()));o=this.clonePosition();return r!==this.parseTagName()?this.error(ye.UNMATCHED_CLOSING_TAG,Ve(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ve.tag,value:r,children:t,location:Ve(n,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,Ve(e,this.clonePosition())))}return this.error(ye.UNCLOSED_TAG,Ve(n,this.clonePosition()))}return this.error(ye.INVALID_TAG,Ve(n,this.clonePosition()))},un.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},un.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{o=this.tryParseUnquoted(t,e);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=Ve(n,this.clonePosition());return{val:{type:ve.literal,value:r,location:n},err:null}},un.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(cn(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},un.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return en.apply(void 0,e)},un.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&0<t?null:(this.bump(),en(n))},un.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ye.EMPTY_ARGUMENT,Ve(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(ye.MALFORMED_ARGUMENT,Ve(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ve.argument,value:r,location:Ve(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(ye.MALFORMED_ARGUMENT,Ve(n,this.clonePosition()))}},un.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=Qe(this.message,e),e=e+n.length;return this.bumpTo(e),{value:n,location:Ve(t,this.clonePosition())}},un.prototype.parseArgumentOptions=function(t,e,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ye.EXPECT_ARGUMENT_TYPE,Ve(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=sn(h.val)).length)return this.error(ye.EXPECT_ARGUMENT_STYLE,Ve(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Ve(u,this.clonePosition())}}if((p=this.tryParseArgumentClose(r)).err)return p;var c=Ve(r,this.clonePosition());if(l&&tn(null==l?void 0:l.style,"::",0)){u=on(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:ve.number,value:n,location:c,style:h.val},err:null};if(0===u.length)return this.error(ye.EXPECT_DATE_TIME_SKELETON,c);var d={type:we.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(De,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][e-1];break;case"s":o.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===s?ve.date:ve.time,value:n,location:c,style:d},err:null}}return{val:{type:"number"===s?ve.number:"date"===s?ve.date:ve.time,value:n,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,Ve(l,Ee({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ve(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(t,s,e,c);if(c.err)return c;if((p=this.tryParseArgumentClose(r)).err)return p;var p=Ve(r,this.clonePosition());return"select"===s?{val:{type:ve.select,value:n,options:nn(c.val),location:p},err:null}:{val:{type:ve.plural,value:n,options:nn(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(ye.INVALID_ARGUMENT_TYPE,Ve(i,a))}},un.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},un.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ve(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},un.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(Ne).filter(function(t){return 0<t.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(ye.INVALID_NUMBER_SKELETON,e)}return{val:{type:we.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?Ge(n):{}},err:null}},un.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){for(var o=!1,i=[],s=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ve(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ve(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,n);if(c.err)return c;u=this.tryParseArgumentClose(d);if(u.err)return u;i.push([a,{value:c.val,location:Ve(d,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===i.length?this.error("select"===e?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ve(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ye.MISSING_OTHER_CLAUSE,Ve(this.clonePosition(),this.clonePosition())):{val:i,err:null}},un.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}r=Ve(r,this.clonePosition());return o?Ze(i*=n)?{val:i,err:null}:this.error(e,r):this.error(t,r)},un.prototype.offset=function(){return this.position.offset},un.prototype.isEOF=function(){return this.offset()===this.message.length},un.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},un.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=rn(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},un.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},un.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},un.prototype.bumpIf=function(t){if(tn(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},un.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},un.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},un.prototype.bumpSpace=function(){for(;!this.isEOF()&&dn(this.char());)this.bump()},un.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},un);function un(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function cn(t){return 97<=t&&t<=122||65<=t&&t<=90}function dn(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function hn(t,e){e=Ee({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var n=new ln(t,e).parse();if(n.err){t=SyntaxError(ye[n.err.kind]);throw t.location=n.err.location,t.originalMessage=n.err.message,t}return null!=e&&e.captureLocation||function n(t){t.forEach(function(t){if(delete t.location,Ae(t)||Pe(t))for(var e in t.options)delete t.options[e].location,n(t.options[e].value);else _e(t)&&ke(t.style)||(Ce(t)||Se(t))&&Le(t.style)?delete t.style.location:$e(t)&&n(t.children)})}(n.val),n.val}function pn(t,e){var n=e&&e.cache?e.cache:wn,r=e&&e.serializer?e.serializer:bn;return(e&&e.strategy?e.strategy:function(t,e){return gn(t,this,1===t.length?fn:mn,e.cache.create(),e.serializer)})(t,{cache:n,serializer:r})}function fn(t,e,n,r){var o=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=e.get(o);return void 0===n&&(n=t.call(this,r),e.set(o,n)),n}function mn(t,e,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),n=e.get(o);return void 0===n&&(n=t.apply(this,r),e.set(o,n)),n}function gn(t,e,n,r,o){return n.bind(e,t,r,o)}var bn=function(){return JSON.stringify(arguments)};function yn(){this.cache=Object.create(null)}yn.prototype.has=function(t){return t in this.cache},yn.prototype.get=function(t){return this.cache[t]},yn.prototype.set=function(t,e){this.cache[t]=e};var vn,wn={create:function(){return new yn}},En={variadic:function(t,e){return gn(t,this,mn,e.cache.create(),e.serializer)},monadic:function(t,e){return gn(t,this,fn,e.cache.create(),e.serializer)}};(Re=vn=vn||{}).MISSING_VALUE="MISSING_VALUE",Re.INVALID_VALUE="INVALID_VALUE",Re.MISSING_INTL_API="MISSING_INTL_API";var Tn,xn,_n,Cn,Sn,An=(be(On,Sn=Error),On.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},On),Pn=(be(Dn,Cn=An),Dn),$n=(be(Rn,_n=An),Rn),kn=(be(Ln,xn=An),Ln);function Ln(t,e){return xn.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',vn.MISSING_VALUE,e)||this}function Rn(t,e,n){return _n.call(this,'Value for "'+t+'" must be of type '+e,vn.INVALID_VALUE,n)||this}function Dn(t,e,n,r){return Cn.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(n).join('", "')+'"',vn.INVALID_VALUE,r)||this}function On(t,e,n){t=Sn.call(this,t)||this;return t.code=e,t.originalMessage=n,t}function Nn(t,e,n,r,o,i,s){if(1===t.length&&xe(t[0]))return[{type:Tn.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(xe(c))a.push({type:Tn.literal,value:c.value});else if(c.type===ve.pound)"number"==typeof i&&a.push({type:Tn.literal,value:n.getNumberFormat(e).format(i)});else{var d=c.value;if(!(o&&d in o))throw new kn(d,s);var h=o[d];if(c.type===ve.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?Tn.literal:Tn.object,value:h});else if(Ce(c)){var p="string"==typeof c.style?r.date[c.style]:Le(c.style)?c.style.parsedOptions:void 0;a.push({type:Tn.literal,value:n.getDateTimeFormat(e,p).format(h)})}else if(Se(c))p="string"==typeof c.style?r.time[c.style]:Le(c.style)?c.style.parsedOptions:void 0,a.push({type:Tn.literal,value:n.getDateTimeFormat(e,p).format(h)});else if(_e(c))(p="string"==typeof c.style?r.number[c.style]:ke(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:Tn.literal,value:n.getNumberFormat(e,p).format(h)});else{if($e(c)){var f=c.children,m=c.value,d=o[m];if("function"!=typeof d)throw new $n(m,"function",s);f=d(Nn(f,e,n,r,o,i).map(function(t){return t.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(t){return{type:"string"==typeof t?Tn.literal:Tn.object,value:t}}))}if(Ae(c)){if(!(g=c.options[h]||c.options.other))throw new Pn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Nn(g.value,e,n,r,o))}else if(Pe(c)){if(!(g=c.options["="+h])){if(!Intl.PluralRules)throw new An('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',vn.MISSING_INTL_API,s);var f=n.getPluralRules(e,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Pn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Nn(g.value,e,n,r,o,h-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===Tn.literal&&e.type===Tn.literal?n.value+=e.value:t.push(e),t},[])}function In(n){return{create:function(){return{has:function(t){return t in n},get:function(t){return n[t]},set:function(t,e){n[t]=e}}}}}(Re=Tn=Tn||{})[Re.literal=0]="literal",Re[Re.object=1]="object";var Mn=(Object.defineProperty(Un,"defaultLocale",{get:function(){return Un.memoizedDefaultLocale||(Un.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Un.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Un.memoizedDefaultLocale=null,Un.__parse=hn,Un.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Un);function Un(t,e,n,r){var o,i,s=this;if(void 0===e&&(e=Un.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===Tn.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Nn(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Un.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Un.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Un.formats,(i=n)?Object.keys(o).reduce(function(t,e){var n,r;return t[e]=(n=o[e],(r=i[e])?Ee(Ee(Ee({},n||{}),r||{}),Object.keys(n).reduce(function(t,e){return t[e]=Ee(Ee({},n[e]),r[e]||{}),t},{})):n),t},Ee({},o)):o),this.locales=e,this.formatters=r&&r.formatters||{getNumberFormat:pn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Te([void 0],e)))},{cache:In((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:En.variadic}),getDateTimeFormat:pn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Te([void 0],e)))},{cache:In(r.dateTime),strategy:En.variadic}),getPluralRules:pn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Te([void 0],e)))},{cache:In(r.pluralRules),strategy:En.variadic})}}const jn={},Bn=(e,n)=>{if(null!=n){if(n in jn&&e in jn[n])return jn[n][e];var r,o,i=nr(n);for(let t=0;t<i.length;t++){var s=(r=i[t],o=e,Gn(r)?function(t,e){if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(0<t){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(function(t){return zn[t]||null}(r),o):null);if(s)return r=e,o=n,(s=s)&&(o in jn||(jn[o]={}),r in jn[o]||(jn[o][r]=s),s)}}};let zn;const Fn=ie({});function Gn(t){return t in zn}function Hn(e,...n){delete jn[e],Fn.update(t=>(t[e]=me.all([t[e]||{},...n]),t))}se([Fn],([t])=>Object.keys(t)),Fn.subscribe(t=>zn=t);const Xn={};function Vn(t){return Xn[t]}function qn(t){return nr(t).some(t=>{return null===(t=Vn(t))||void 0===t?void 0:t.size})}const Yn={};function Kn(t){if(!qn(t))return t in Yn?Yn[t]:void 0;const e=nr(t).map(t=>{var e=Vn(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Yn[t]=Promise.all(e.map(([t,n])=>function(e){return Promise.all(n.map(t=>(function(t,e){Xn[t].delete(e),0===Xn[t].size&&delete Xn[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Hn(e,...t))}(t))).then(()=>qn(t)?Kn(t):void delete Yn[t]),Yn[t]}function Wn(t,e){var n={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n}const Zn={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Jn=ie(!1);let Qn;const tr=ie(null);function er(t){return t.split("-").map((t,e,n)=>n.slice(0,e+1).join("-")).reverse()}function nr(t,e=Zn.fallbackLocale){t=er(t);return e?[...new Set([...t,...er(e)])]:t}tr.subscribe(t=>{Qn=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const rr=tr.set;tr.set=e=>{if(function(t){if(null!=t){var e=nr(t);for(let t=0;t<e.length;t++){var n=e[t];if(Gn(n))return n}}}(e)&&qn(e)){var{loadingDelay:n}=Zn;let t;return"undefined"!=typeof window&&null!=Qn&&n?t=window.setTimeout(()=>Jn.set(!0),n):Jn.set(!0),Kn(e).then(()=>{rr(e)}).finally(()=>{clearTimeout(t),Jn.set(!1)})}return rr(e)},tr.update=t=>rr(t(Qn));const or=n=>{const r=Object.create(null);return t=>{var e=JSON.stringify(t);return e in r?r[e]:r[e]=n(t)}},ir=(t,e)=>{var{formats:n}=Zn;if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},sr=or(t=>{var{locale:e,format:n}=t,t=Wn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(t=ir("number",n)),new Intl.NumberFormat(e,t)}),ar=or(t=>{var{locale:e,format:n}=t,t=Wn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?t=ir("date",n):0===Object.keys(t).length&&(t=ir("date","short")),new Intl.DateTimeFormat(e,t)}),lr=or(t=>{var{locale:e,format:n}=t,t=Wn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?t=ir("time",n):0===Object.keys(t).length&&(t=ir("time","short")),new Intl.DateTimeFormat(e,t)}),ur=or((t,e=Qn)=>new Mn(t,e,Zn.formats,{ignoreTag:Zn.ignoreTag})),cr=se([tr,Fn],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:n,locale:r=Qn,default:o}=e;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Bn(t,r);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Zn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${nr(r).join('", "')}".${qn(Qn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!n)return i;let s=i;try{s=ur(i,r).format(n)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});se([tr],()=>(t,e)=>((t={})=>{var{locale:e=Qn}=t,t=Wn(t,["locale"]);return lr(Object.assign({locale:e},t))})(e).format(t)),se([tr],()=>(t,e)=>((t={})=>{var{locale:e=Qn}=t,t=Wn(t,["locale"]);return ar(Object.assign({locale:e},t))})(e).format(t)),se([tr],()=>(t,e)=>((t={})=>{var{locale:e=Qn}=t,t=Wn(t,["locale"]);return sr(Object.assign({locale:e},t))})(e).format(t)),se([tr,Fn],()=>(t,e=Qn)=>Bn(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==ne.indexOf(t)&&(e=new Jt(e),re[t]=e,ne.push(t)),re[t]}};const dr=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),hr=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",pr={en:{tournamentsPage:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next"}},tr:{tournamentsPage:{loading:"Yükelniyor, lütfen bekleyin…",back:"Geri",previous:"Önceki",next:"Sonraki"}},el:{tournamentsPage:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο"}}};var fr,mr,gr=(mr=(fr={path:void 0,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&fr.path)}}).exports,function(t){var r,L=t.setTimeout,R=t.clearTimeout,D=t.XMLHttpRequest,o=t.XDomainRequest,e=t.ActiveXObject,n=t.EventSource,i=t.document,d=t.Promise,h=t.fetch,s=t.Response,p=t.TextDecoder,a=t.TextEncoder,f=t.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(t){i.readyState="complete"},!1)),null==D&&null!=e&&(D=function(){return new e("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(r=h,h=function(t,e){var n=e.signal;return r(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then(function(t){var e=t.body.getReader();return n._reader=e,n._aborted&&n._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),l.prototype.decode=function(t){function e(t,e,n){if(1===n)return 128>>e<=t&&t<<e<=2047;if(2===n)return 2048>>e<=t&&t<<e<=55295||57344>>e<=t&&t<<e<=65535;if(3===n)return 65536>>e<=t&&t<<e<=1114111;throw new Error}function n(t,e){if(6===t)return 15<e>>6?3:31<e?2:1;if(12===t)return 15<e?3:2;if(18===t)return 3;throw new Error}for(var r="",o=this.bitsNeeded,i=this.codePoint,s=0;s<t.length;s+=1){var a=t[s];0!==o&&(a<128||191<a||!e(i<<6|63&a,o-6,n(o,i)))&&(o=0,i=65533,r+=String.fromCharCode(i)),0===o?(i=0<=a&&a<=127?(o=0,a):192<=a&&a<=223?(o=6,31&a):224<=a&&a<=239?(o=12,15&a):240<=a&&a<=247?(o=18,7&a):(o=0,65533),0===o||e(i,o,n(o,i))||(o=0,i=65533)):(o-=6,i=i<<6|63&a),0===o&&(i<=65535?r+=String.fromCharCode(i):(r+=String.fromCharCode(55296+(i-65535-1>>10)),r+=String.fromCharCode(56320+(i-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=i,r},null!=p&&null!=a&&function(){try{return"test"===(new p).decode((new a).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}}()||(p=l);var c=function(){};function O(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=c,this.onload=c,this.onerror=c,this.onreadystatechange=c,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=c}function u(t){return t.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)+32)})}function m(t){for(var e=Object.create(null),n=t.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),i=o.shift(),o=o.join(": ");e[u(i)]=o}this._map=e}function N(){}function g(t){this._headers=t}function I(){}function b(){this._listeners=Object.create(null)}function y(t){L(function(){throw t},0)}function v(t){this.type=t,this.target=void 0}function M(t,e){v.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function U(t,e){v.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function j(t,e){v.call(this,t),this.error=e.error}O.prototype.open=function(t,e){this._abort(!0);var o=this,i=this._xhr,s=1,n=0;this._abort=function(t){0!==o._sendTimeout&&(R(o._sendTimeout),o._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,i.onload=c,i.onerror=c,i.onabort=c,i.onprogress=c,i.onreadystatechange=c,i.abort(),0!==n&&(R(n),n=0),t||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0};function r(){if(1===s){var e=0,n="",r=void 0;if("contentType"in i)e=200,n="OK",r=i.contentType;else try{e=i.status,n=i.statusText,r=i.getResponseHeader("Content-Type")}catch(t){n="",r=void(e=0)}0!==e&&(s=2,o.readyState=2,o.status=e,o.statusText=n,o._contentType=r,o.onreadystatechange())}}function a(){if(r(),2===s||3===s){s=3;var t="";try{t=i.responseText}catch(t){}o.readyState=3,o.responseText=t,o.onprogress()}}function l(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:c}),a(),1===s||2===s||3===s){if(s=4,0!==n&&(R(n),n=0),o.readyState=4,"load"===t)o.onload(e);else if("error"===t)o.onerror(e);else{if("abort"!==t)throw new TypeError;o.onabort(e)}o.onreadystatechange()}}var u=function(){n=L(function(){u()},500),3===i.readyState&&a()};"onload"in i&&(i.onload=function(t){l("load",t)}),"onerror"in i&&(i.onerror=function(t){l("error",t)}),"onabort"in i&&(i.onabort=function(t){l("abort",t)}),"onprogress"in i&&(i.onprogress=a),"onreadystatechange"in i&&(i.onreadystatechange=function(t){t=t,null!=i&&(4===i.readyState?"onload"in i&&"onerror"in i&&"onabort"in i||l(""===i.responseText?"error":"load",t):3===i.readyState?"onprogress"in i||a():2===i.readyState&&r())}),!("contentType"in i)&&"ontimeout"in D.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),i.open(t,e,!0),"readyState"in i&&(n=L(function(){u()},0))},O.prototype.abort=function(){this._abort(!1)},O.prototype.getResponseHeader=function(t){return this._contentType},O.prototype.setRequestHeader=function(t,e){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(t,e)},O.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},O.prototype.send=function(){if("ontimeout"in D.prototype&&("sendAsBinary"in D.prototype||"mozAnon"in D.prototype)||null==i||null==i.readyState||"complete"===i.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var e=this;e._sendTimeout=L(function(){e._sendTimeout=0,e.send()},4)}},m.prototype.get=function(t){return this._map[u(t)]},null!=D&&null==D.HEADERS_RECEIVED&&(D.HEADERS_RECEIVED=2),N.prototype.open=function(o,i,e,n,t,r,s){o.open("GET",t);var a,l=0;for(a in o.onprogress=function(){var t=o.responseText.slice(l);l+=t.length,e(t)},o.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var t,e,n,r;o.readyState===D.HEADERS_RECEIVED&&(t=o.status,e=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),i(t,e,n,new m(r)))},o.withCredentials=r,s)Object.prototype.hasOwnProperty.call(s,a)&&o.setRequestHeader(a,s[a]);return o.send(),o},g.prototype.get=function(t){return this._headers.get(t)},I.prototype.open=function(t,e,o,n,r,i,s){var a=null,l=new f,u=l.signal,c=new p;return h(r,{headers:s,credentials:i?"include":"same-origin",signal:u,cache:"no-store"}).then(function(t){return a=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new g(t.headers)),new d(function(e,n){var r=function(){a.read().then(function(t){t.done?e(void 0):(t=c.decode(t.value,{stream:!0}),o(t),r())}).catch(function(t){n(t)})};r()})}).catch(function(t){return"AbortError"===t.name?void 0:t}).then(function(t){n(t)}),{abort:function(){null!=a&&a.cancel(),l.abort()}}},b.prototype.dispatchEvent=function(t){var e=(t.target=this)._listeners[t.type];if(null!=e)for(var n=e.length,r=0;r<n;r+=1){var o=e[r];try{"function"==typeof o.handleEvent?o.handleEvent(t):o.call(this,t)}catch(t){y(t)}}},b.prototype.addEventListener=function(t,e){t=String(t);var n=this._listeners,r=n[t];null==r&&(n[t]=r=[]);for(var o=!1,i=0;i<r.length;i+=1)r[i]===e&&(o=!0);o||r.push(e)},b.prototype.removeEventListener=function(t,e){t=String(t);var n=this._listeners,r=n[t];if(null!=r){for(var o=[],i=0;i<r.length;i+=1)r[i]!==e&&o.push(r[i]);0===o.length?delete n[t]:n[t]=o}},M.prototype=Object.create(v.prototype),U.prototype=Object.create(v.prototype),j.prototype=Object.create(v.prototype);function B(t,e){return t=null==t?e:parseInt(t,10),G(t=t!=t?e:t)}function z(t,e,n){try{"function"==typeof e&&e.call(t,n)}catch(t){y(t)}}var F=/^text\/event\-stream(;.*)?$/i,G=function(t){return Math.min(Math.max(t,1e3),18e6)};function w(t,e){b.call(this),e=e||{},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,function(l,i,t){i=String(i);function s(t,e,n,r){var o,i;0===E&&(200===t&&null!=n&&F.test(n)?(E=1,m=Date.now(),f=d,l.readyState=1,o=new U("open",{status:t,statusText:e,headers:r}),l.dispatchEvent(o),z(l,l.onopen,o)):(i="",i=200!==t?"EventSource's response has a status "+t+" "+(e=e&&e.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",$(),o=new U("error",{status:t,statusText:e,headers:r}),l.dispatchEvent(o),z(l,l.onerror,o),console.error(i)))}function a(t){if(1===E){for(var e=-1,n=0;n<t.length;n+=1)(s=t.charCodeAt(n))!=="\n".charCodeAt(0)&&s!=="\r".charCodeAt(0)||(e=n);var r=(-1!==e?C:"")+t.slice(0,e+1);C=(-1===e?C:"")+t.slice(e+1),""!==t&&(m=Date.now(),g+=t.length);for(var o=0;o<r.length;o+=1){var i,s=r.charCodeAt(o);if(-1===S&&s==="\n".charCodeAt(0))S=0;else if(-1===S&&(S=0),s==="\r".charCodeAt(0)||s==="\n".charCodeAt(0)){if(0!==S&&(1===S&&(P=o+1),i=r.slice(A,P-1),a=r.slice(P+(P<o&&r.charCodeAt(P)===" ".charCodeAt(0)?1:0),o),"data"===i?(T+="\n",T+=a):"id"===i?x=a:"event"===i?_=a:"retry"===i?(d=B(a,d),f=d):"heartbeatTimeout"===i&&(h=B(a,h),0!==w&&(R(w),w=L(function(){k()},h)))),0===S){if(""!==T){p=x;var a=new M(_=""===_?"message":_,{data:T.slice(1),lastEventId:x});if(l.dispatchEvent(a),"open"===_?z(l,l.onopen,a):"message"===_?z(l,l.onmessage,a):"error"===_&&z(l,l.onerror,a),2===E)return}_=T=""}S=s==="\r".charCodeAt(0)?-1:0}else 0===S&&(A=o,S=1),1===S?s===":".charCodeAt(0)&&(P=o+1,S=2):2===S&&(S=3)}}}function u(t){var e;1!==E&&0!==E||(E=-1,0!==w&&(R(w),w=0),w=L(function(){k()},f),f=G(Math.min(16*d,2*f)),l.readyState=0,e=new j("error",{error:t}),l.dispatchEvent(e),z(l,l.onerror,e),null!=t&&console.error(t))}var e=Boolean(t.withCredentials),c=t.lastEventIdQueryParameterName||"lastEventId",d=G(1e3),h=B(t.heartbeatTimeout,45e3),p="",f=d,m=!1,g=0,n=t.headers||{},t=t.Transport,b=H&&null==t?void 0:new O(new(null!=t?t:null!=D&&"withCredentials"in D.prototype||null==o?D:o)),y=new(null!=t&&"string"!=typeof t?t:null==b?I:N),v=void 0,w=0,E=-1,T="",x="",_="",C="",S=0,A=0,P=0,$=function(){E=2,null!=v&&(v.abort(),v=void 0),0!==w&&(R(w),w=0),l.readyState=2},k=function(){if(w=0,-1===E){m=!1,g=0,w=L(function(){k()},h),x=p,C=_=T="",S=P=A=E=0;var t=i;"data:"!==i.slice(0,5)&&"blob:"!==i.slice(0,5)&&""!==p&&(t=-1===(e=i.indexOf("?"))?i:i.slice(0,e+1)+i.slice(e+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(t,e){return e===c?"":t}),t+=(-1===i.indexOf("?")?"?":"&")+c+"="+encodeURIComponent(p));var e=l.withCredentials,n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{v=y.open(b,s,a,u,t,e,n)}catch(t){throw $(),t}}else m||null==v?(e=Math.max((m||Date.now())+h-Date.now(),1),m=!1,w=L(function(){k()},e)):(u(new Error("No activity within "+h+" milliseconds. "+(0===E?"No response received.":g+" chars received.")+" Reconnecting.")),null!=v&&(v.abort(),v=void 0))};l.url=i,l.readyState=0,l.withCredentials=e,l.headers=n,l._close=$,k()}(this,t,e)}var H=null!=h&&null!=s&&"body"in s.prototype;(w.prototype=Object.create(b.prototype)).CONNECTING=0,w.prototype.OPEN=1,w.prototype.CLOSED=2,w.prototype.close=function(){this._close()},w.CONNECTING=0,w.OPEN=1,w.CLOSED=2,w.prototype.withCredentials=void 0;t=n;null==D||null!=n&&"withCredentials"in n.prototype||(t=w),(s=mr).EventSourcePolyfill=w,s.NativeEventSource=n,s.EventSource=t}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:dt:globalThis),fr.exports);function br(t){let n;return{c(){n=P("div"),n.textContent="Simple Svelte Component",this.c=y,R(n,"class","casino-tournaments-page")},m(t,e){S(t,n,e)},p:y,i:y,o:y,d(t){t&&A(n)}}}function yr(n){let r,o,i,s,a,l,u;function c(t){return t[2]?vr:wr}let d=c(n),h=d(n);return{c(){r=P("div"),o=P("p"),i=$(n[0]),s=k(),a=P("div"),h.c(),R(o,"class","Title"),R(a,"class","CollapseButton"),R(r,"class","DetailsTitle")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,s),C(r,a),h.m(a,null),l||(u=L(a,"click",n[5]),l=!0)},p(t,e){1&e&&D(i,t[0]),d!==(d=c(t))&&(h.d(1),h=d(t),h&&(h.c(),h.m(a,null)))},d(t){t&&A(r),h.d(),l=!1,u()}}}function vr(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M6 9l6 6 6-6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function wr(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M18 15l-6-6-6 6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Er(n){let r,o,i,s;return{c(){r=P("div"),R(r,"class","DetailsContent sc")},m(t,e){S(t,r,e),i||(s=g(o=n[4].call(null,r,n[1])),i=!0)},p(t,e){o&&p(o.update)&&2&e&&o.update.call(null,t[1])},d(t){t&&A(r),i=!1,s()}}}function Tr(t){let n,r,o=t[0]&&yr(t),i=t[1]&&!t[2]&&Er(t);return{c(){n=P("div"),o&&o.c(),r=k(),i&&i.c(),this.c=y,R(n,"class","DetailsCard")},m(t,e){S(t,n,e),o&&o.m(n,null),C(n,r),i&&i.m(n,null)},p(t,[e]){t[0]?o?o.p(t,e):(o=yr(t),o.c(),o.m(n,r)):o&&(o.d(1),o=null),t[1]&&!t[2]?i?i.p(t,e):(i=Er(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},i:y,o:y,d(t){t&&A(n),o&&o.d(),i&&i.d()}}}function xr(t,e,n){let{title:r=""}=e,{text:o=""}=e,i=!1;const s=()=>{n(2,i=!i)};return t.$$set=t=>{"title"in t&&n(0,r=t.title),"text"in t&&n(1,o=t.text)},[r,o,i,s,(t,e)=>{let n=document.createElement("div");n.innerHTML=e,t.append(n)},()=>s()]}customElements.get("casino-tournaments-page")||customElements.define("casino-tournaments-page",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.casino-tournaments-page{background:#000;color:#fff}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},null,br,n,{}),t&&t.target&&S(t.target,this,t.anchor)}}),customElements.get("casino-tournaments-details")||customElements.define("casino-tournaments-details",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{text-transform:uppercase}.DetailsCard{border:solid #30313c 1px;background:#000;color:#ffffff;width:100%;margin:25px 0 25px 0}.DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:#0a0c19}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:#fff;border-radius:10px}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},xr,Tr,n,{title:0,text:1}),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["title","text"]}get title(){return this.$$.ctx[0]}set title(t){this.$set({title:t}),U()}get text(){return this.$$.ctx[1]}set text(t){this.$set({text:t}),U()}});const _r={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"There was an error joining the tournament - "}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά την διαδικασία εγγραφής στο τουρνουά - "}}},Cr={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet counts: ",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished",startingAt:"Starting at",mostRounds:"MostRounds"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"BAŞLAMA SAATİ:",mostRounds:"MostRounds"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων: ",seegames:"Μπορείε να δεις τα παιχνίδια",here:"εδώ",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",startingAt:"ΑΡΧΙΖΕΙ",mostRounds:"MostRounds"}}};function Sr(n){let r,o,i,s;return{c(){r=P("div"),o=$(n[12]),R(r,"class","Status")},m(t,e){S(t,r,e),C(r,o),i||(s=g(n[15].call(null,r)),i=!0)},p(t,e){4096&e&&D(o,t[12])},d(t){t&&A(r),i=!1,s()}}}function Ar(t){let n,r=t[5]&&Pr(t);return{c(){r&&r.c(),n=w()},m(t,e){r&&r.m(t,e),S(t,n,e)},p(t,e){t[5]?r?r.p(t,e):(r=Pr(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&A(n)}}}function Pr(t){let n,r,o=t[13]("tournamentsThumbnail.enrolled")+"";return{c(){n=P("div"),r=$(o),R(n,"class","Enrolled")},m(t,e){S(t,n,e),C(n,r)},p(t,e){8192&e&&o!==(o=t[13]("tournamentsThumbnail.enrolled")+"")&&D(r,o)},d(t){t&&A(n)}}}function $r(n){let r,o,i,s;return{c(){r=P("div"),R(r,"class",o="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),m(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(t,e){S(t,r,e),i||(s=g(n[15].call(null,r)),i=!0)},p(t,e){4&e&&o!==(o="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&R(r,"class",o)},d(t){t&&A(r),i=!1,s()}}}function kr(n){let r,o,i,s;return{c(){r=P("div"),R(r,"class",o="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),m(r,"background-image","url('"+n[4]+"')")},m(t,e){S(t,r,e),i||(s=g(n[15].call(null,r)),i=!0)},p(t,e){4&e&&o!==(o="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&R(r,"class",o),16&e&&m(r,"background-image","url('"+t[4]+"')")},d(t){t&&A(r),i=!1,s()}}}function Lr(n){let r,o,i,s,a;return{c(){r=P("div"),o=$(n[10]),R(r,"class","Date")},m(t,e){S(t,r,e),C(r,o),s||(a=g(i=n[14].call(null,r,n[1])),s=!0)},p(t,e){1024&e&&D(o,t[10]),i&&p(i.update)&&2&e&&i.update.call(null,t[1])},d(t){t&&A(r),s=!1,a()}}}function Rr(n){let r,o,i,s,a,l,u,c,d,h,p,f,m,g=n[13]("tournamentsThumbnail.scoreCriteria")+"",b=n[13]("tournamentsThumbnail.seegames")+"",y=n[13]("tournamentsThumbnail.here")+"";function v(t){return"BetCount"==t[6]?Or:Dr}let w=v(n),E=w(n);return{c(){r=P("div"),o=P("p"),i=$(g),s=$(":\n "),E.c(),a=k(),l=P("div"),u=P("p"),c=$(b),d=k(),h=P("a"),p=$(y),R(r,"class","ScoreCriteria"),R(h,"href",n[9]),R(h,"target","_blank"),R(l,"class","Games")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(o,s),E.m(o,null),S(t,a,e),S(t,l,e),C(l,u),C(u,c),C(u,d),C(u,h),C(h,p),f||(m=L(h,"click",n[20]),f=!0)},p(t,e){8192&e&&g!==(g=t[13]("tournamentsThumbnail.scoreCriteria")+"")&&D(i,g),w===(w=v(t))&&E?E.p(t,e):(E.d(1),E=w(t),E&&(E.c(),E.m(o,null))),8192&e&&b!==(b=t[13]("tournamentsThumbnail.seegames")+"")&&D(c,b),8192&e&&y!==(y=t[13]("tournamentsThumbnail.here")+"")&&D(p,y),512&e&&R(h,"href",t[9])},d(t){t&&A(r),E.d(),t&&A(a),t&&A(l),f=!1,m()}}}function Dr(t){let n;return{c(){n=$(t[6])},m(t,e){S(t,n,e)},p(t,e){64&e&&D(n,t[6])},d(t){t&&A(n)}}}function Or(t){let n,r,o,i,s,a,l=t[13]("tournamentsThumbnail.mostRounds")+"",u=t[13]("tournamentsThumbnail.minbet")+"";return{c(){n=$(l),r=$("\n ("),o=$(u),i=$(": "),s=$(t[7]),a=$(")")},m(t,e){S(t,n,e),S(t,r,e),S(t,o,e),S(t,i,e),S(t,s,e),S(t,a,e)},p(t,e){8192&e&&l!==(l=t[13]("tournamentsThumbnail.mostRounds")+"")&&D(n,l),8192&e&&u!==(u=t[13]("tournamentsThumbnail.minbet")+"")&&D(o,u),128&e&&D(s,t[7])},d(t){t&&A(n),t&&A(r),t&&A(o),t&&A(i),t&&A(s),t&&A(a)}}}function Nr(t){let n,r,o,i,s,a,l,u,c,d=t[2]&&Sr(t),h="true"==t[8]&&Ar(t);function p(t){return t[4]?kr:$r}let f=p(t),m=f(t),g=t[1]&&Lr(t),b=t[11]&&Rr(t);return{c(){n=P("div"),d&&d.c(),r=k(),h&&h.c(),o=k(),m.c(),i=k(),s=P("div"),a=P("div"),l=$(t[0]),u=k(),g&&g.c(),c=k(),b&&b.c(),this.c=y,R(a,"class","Title"),R(s,"class","Details"),R(n,"class","Thumbnail")},m(t,e){S(t,n,e),d&&d.m(n,null),C(n,r),h&&h.m(n,null),C(n,o),m.m(n,null),C(n,i),C(n,s),C(s,a),C(a,l),C(s,u),g&&g.m(s,null),C(s,c),b&&b.m(s,null)},p(t,[e]){t[2]?d?d.p(t,e):(d=Sr(t),d.c(),d.m(n,r)):d&&(d.d(1),d=null),"true"==t[8]?h?h.p(t,e):(h=Ar(t),h.c(),h.m(n,o)):h&&(h.d(1),h=null),f===(f=p(t))&&m?m.p(t,e):(m.d(1),m=f(t),m&&(m.c(),m.m(n,i))),1&e&&D(l,t[0]),t[1]?g?g.p(t,e):(g=Lr(t),g.c(),g.m(s,c)):g&&(g.d(1),g=null),t[11]?b?b.p(t,e):(b=Rr(t),b.c(),b.m(s,null)):b&&(b.d(1),b=null)},i:y,o:y,d(t){t&&A(n),d&&d.d(),h&&h.d(),m.d(),g&&g.d(),b&&b.d()}}}function Ir(t,e,o){let i;Y(t,cr,t=>o(13,i=t));let{session:n=""}=e,{userid:r=""}=e,{title:s=""}=e,{startdate:a=""}=e,{status:l=""}=e,{tourid:u=""}=e,{thumbnail:c=""}=e,{userenrolled:d=""}=e,{scorecriteria:h=""}=e,{minbetcount:p=""}=e,{showenrolled:f="false"}=e,{gameurl:m=""}=e,{lang:g="en"}=e,b,y=!1,v="";Object.keys(Cr).forEach(t=>{Hn(t,Cr[t])});const w=t=>{t.data&&"SessionID"==t.data.type&&o(11,y=!0)},E=(t,e)=>{window.postMessage({type:"tournamentGamesClicked",tourId:e},window.location.href)};return K(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),t.$$set=t=>{"session"in t&&o(17,n=t.session),"userid"in t&&o(18,r=t.userid),"title"in t&&o(0,s=t.title),"startdate"in t&&o(1,a=t.startdate),"status"in t&&o(2,l=t.status),"tourid"in t&&o(3,u=t.tourid),"thumbnail"in t&&o(4,c=t.thumbnail),"userenrolled"in t&&o(5,d=t.userenrolled),"scorecriteria"in t&&o(6,h=t.scorecriteria),"minbetcount"in t&&o(7,p=t.minbetcount),"showenrolled"in t&&o(8,f=t.showenrolled),"gameurl"in t&&o(9,m=t.gameurl),"lang"in t&&o(19,g=t.lang)},t.$$.update=()=>{131072&t.$$.dirty&&n&&(0<n.length&&"false"!=n?o(11,y=!0):o(11,y=!1))},[s,a,l,u,c,d,h,p,f,m,"",y,v,i,()=>{let t=new Date(a),e=new Intl.DateTimeFormat(g,{month:"long"}).format(t),n=t.getDate(),r=t.toLocaleString(g,{hour:"numeric",minute:"numeric",hour12:!1});o(10,b=`${n} ${e}, `+i("tournamentsThumbnail.startingAt")+` ${r}`)},()=>{"Unstarted"==l&&o(12,v=i("tournamentsThumbnail.scheduled")),"Running"==l&&o(12,v=i("tournamentsThumbnail.ongoing")),"Closed"!=l&&"Closing"!=l||o(12,v=i("tournamentsThumbnail.finished"))},E,n,r,g,()=>E()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}a{color:#48952a;text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url(\"https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png\");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:#000000;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:#2B2B5D;color:#aaaabe;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Ir,Nr,n,{session:17,userid:18,title:0,startdate:1,status:2,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:6,minbetcount:7,showenrolled:8,gameurl:9,lang:19}),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang"]}get session(){return this.$$.ctx[17]}set session(t){this.$set({session:t}),U()}get userid(){return this.$$.ctx[18]}set userid(t){this.$set({userid:t}),U()}get title(){return this.$$.ctx[0]}set title(t){this.$set({title:t}),U()}get startdate(){return this.$$.ctx[1]}set startdate(t){this.$set({startdate:t}),U()}get status(){return this.$$.ctx[2]}set status(t){this.$set({status:t}),U()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$set({tourid:t}),U()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$set({thumbnail:t}),U()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$set({userenrolled:t}),U()}get scorecriteria(){return this.$$.ctx[6]}set scorecriteria(t){this.$set({scorecriteria:t}),U()}get minbetcount(){return this.$$.ctx[7]}set minbetcount(t){this.$set({minbetcount:t}),U()}get showenrolled(){return this.$$.ctx[8]}set showenrolled(t){this.$set({showenrolled:t}),U()}get gameurl(){return this.$$.ctx[9]}set gameurl(t){this.$set({gameurl:t}),U()}get lang(){return this.$$.ctx[19]}set lang(t){this.$set({lang:t}),U()}});const Mr={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",days:"days",minutesleft:"minutes left",hoursleft:"hours left",daysleft:"days left"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",days:"gün",minutesleft:"dakika kaldı",hoursleft:"saat kaldı",daysleft:"gün kaldı"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",days:"ημέρες",minutesleft:"λεπτά απομένουν",hoursleft:"ώρες απομένουν",daysleft:"ημέρες απομένουν"}}};function Ur(n){let r,o,i,s,a,l,u,c,d,h;function p(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?zr:0<t[6]?Br:jr}let f=p(n),m=f(n);return{c(){r=P("div"),o=P("div"),i=$(n[3]),s=k(),a=P("div"),l=$(n[4]),u=k(),c=P("div"),m.c(),R(o,"class","StartDate"),R(a,"class","EndDate"),R(r,"class","TournamentDates"),R(c,"class","ProgressBar")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,s),C(r,a),C(a,l),S(t,u,e),S(t,c,e),m.m(c,null),d||(h=[g(n[12].call(null,o)),g(n[13].call(null,a)),g(n[14].call(null,c))],d=!0)},p(t,e){8&e&&D(i,t[3]),16&e&&D(l,t[4]),f===(f=p(t))&&m?m.p(t,e):(m.d(1),m=f(t),m&&(m.c(),m.m(c,null)))},d(t){t&&A(r),t&&A(u),t&&A(c),m.d(),d=!1,b(h)}}}function jr(t){let n,r,o,i=0<t[5]&&Fr(t);return{c(){n=P("div"),r=k(),i&&i.c(),o=w(),R(n,"class","ProgressBarFill"),m(n,"width",t[7]+"%")},m(t,e){S(t,n,e),S(t,r,e),i&&i.m(t,e),S(t,o,e)},p(t,e){128&e&&m(n,"width",t[7]+"%"),0<t[5]?i?i.p(t,e):(i=Fr(t),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},d(t){t&&A(n),t&&A(r),i&&i.d(t),t&&A(o)}}}function Br(t){let n,r,o,i,s,a,l,u,c=t[11]("tournamentsDuration.starting")+"",d=t[11]("tournamentsDuration.days")+"";return{c(){n=P("div"),r=k(),o=P("div"),i=$(c),s=k(),a=$(t[6]),l=k(),u=$(d),R(n,"class","ProgressBarFillStarting"),R(o,"class","Remaining")},m(t,e){S(t,n,e),S(t,r,e),S(t,o,e),C(o,i),C(o,s),C(o,a),C(o,l),C(o,u)},p(t,e){2048&e&&c!==(c=t[11]("tournamentsDuration.starting")+"")&&D(i,c),64&e&&D(a,t[6]),2048&e&&d!==(d=t[11]("tournamentsDuration.days")+"")&&D(u,d)},d(t){t&&A(n),t&&A(r),t&&A(o)}}}function zr(t){let n,r,o,i,s=t[11]("tournamentsDuration.finished")+"";return{c(){n=P("div"),r=k(),o=P("div"),i=$(s),R(n,"class","ProgressBarFillEnd"),R(o,"class","Finished")},m(t,e){S(t,n,e),S(t,r,e),S(t,o,e),C(o,i)},p(t,e){2048&e&&s!==(s=t[11]("tournamentsDuration.finished")+"")&&D(i,s)},d(t){t&&A(n),t&&A(r),t&&A(o)}}}function Fr(t){let n,r,o,i=t[8]&&Gr(t),s=t[9]&&Hr(t),a=t[10]&&Xr(t);return{c(){i&&i.c(),n=k(),s&&s.c(),r=k(),a&&a.c(),o=w()},m(t,e){i&&i.m(t,e),S(t,n,e),s&&s.m(t,e),S(t,r,e),a&&a.m(t,e),S(t,o,e)},p(t,e){t[8]?i?i.p(t,e):(i=Gr(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),t[9]?s?s.p(t,e):(s=Hr(t),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null),t[10]?a?a.p(t,e):(a=Xr(t),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(t){i&&i.d(t),t&&A(n),s&&s.d(t),t&&A(r),a&&a.d(t),t&&A(o)}}}function Gr(t){let n,r,o,i,s=t[11]("tournamentsDuration.minutesleft")+"";return{c(){n=P("div"),r=$(t[5]),o=k(),i=$(s),R(n,"class","Remaining")},m(t,e){S(t,n,e),C(n,r),C(n,o),C(n,i)},p(t,e){32&e&&D(r,t[5]),2048&e&&s!==(s=t[11]("tournamentsDuration.minutesleft")+"")&&D(i,s)},d(t){t&&A(n)}}}function Hr(t){let n,r,o,i,s=t[11]("tournamentsDuration.hoursleft")+"";return{c(){n=P("div"),r=$(t[5]),o=k(),i=$(s),R(n,"class","Remaining")},m(t,e){S(t,n,e),C(n,r),C(n,o),C(n,i)},p(t,e){32&e&&D(r,t[5]),2048&e&&s!==(s=t[11]("tournamentsDuration.hoursleft")+"")&&D(i,s)},d(t){t&&A(n)}}}function Xr(t){let n,r,o,i,s=t[11]("tournamentsDuration.daysleft")+"";return{c(){n=P("div"),r=$(t[5]),o=k(),i=$(s),R(n,"class","Remaining")},m(t,e){S(t,n,e),C(n,r),C(n,o),C(n,i)},p(t,e){32&e&&D(r,t[5]),2048&e&&s!==(s=t[11]("tournamentsDuration.daysleft")+"")&&D(i,s)},d(t){t&&A(n)}}}function Vr(t){let n,r=t[0]&&t[1]&&Ur(t);return{c(){n=P("div"),r&&r.c(),this.c=y,R(n,"class","TournamentDuration")},m(t,e){S(t,n,e),r&&r.m(n,null)},p(t,[e]){t[0]&&t[1]?r?r.p(t,e):(r=Ur(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:y,o:y,d(t){t&&A(n),r&&r.d()}}}function qr(t,e,r){let n;Y(t,cr,t=>r(11,n=t));let{startdate:o=""}=e,{enddate:i=""}=e,{status:s=""}=e,{lang:a="en"}=e,l,u,c,d,h,p,f,m=!1,g=!1,b=!1;Object.keys(Mr).forEach(t=>{Hn(t,Mr[t])});const y=t=>{let e=new Date(t),n=new Intl.DateTimeFormat(a,{month:"long"}).format(e);return`${e.getDate()} ${n}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${e.getUTCFullYear()}`},v=(t,e,n)=>{t=new Date(t),t=(new Date(e)-t)/6e4;return 1==n?t<60?(r(8,m=!0),Math.ceil(t)):t<1440?(r(9,g=!0),Math.ceil(t/60)):(r(10,b=!0),Math.ceil(t/1440)):Math.ceil(t/1440)};return t.$$set=t=>{"startdate"in t&&r(0,o=t.startdate),"enddate"in t&&r(1,i=t.enddate),"status"in t&&r(2,s=t.status),"lang"in t&&r(15,a=t.lang)},[o,i,s,"","","","","",m,g,b,n,()=>{r(3,l=y(new Date(o)))},()=>{r(4,u=y(new Date(i)))},()=>{c=v(o,i,!1),r(5,d=v(new Date,i,!0)),r(6,h=v(new Date,o,!1)),0<d&&(p=100/c,r(7,f=Math.floor((c-d)*p)))},a]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:#58586B}.EndDate{font-size:11px;align-content:flex-end;color:#58586B}.ProgressBar{margin:5px 20px;height:8px;background:#fff}.ProgressBarFill{background-color:#48952a;height:8px}.ProgressBarFillEnd{background-color:#48952a;height:8px}.ProgressBarFillStarting{background-color:#58586B;height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:#1B9800}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},qr,Vr,n,{startdate:0,enddate:1,status:2,lang:15}),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(t){this.$set({startdate:t}),U()}get enddate(){return this.$$.ctx[1]}set enddate(t){this.$set({enddate:t}),U()}get status(){return this.$$.ctx[2]}set status(t){this.$set({status:t}),U()}get lang(){return this.$$.ctx[15]}set lang(t){this.$set({lang:t}),U()}});const Yr={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα"}}};function Kr(t,e,n){const r=t.slice();return r[4]=e[n],r[6]=n,r}function Wr(t,e,n){const r=t.slice();return r[7]=e[n],r[9]=n,r}function Zr(e){let r,o=e[0],i=[];for(let t=0;t<o.length;t+=1)i[t]=to(Kr(e,o,t));let s=null;return o.length||(s=Jr(e)),{c(){r=P("div");for(let t=0;t<i.length;t+=1)i[t].c();s&&s.c(),R(r,"class","Prizes")},m(t,e){S(t,r,e);for(let t=0;t<i.length;t+=1)i[t].m(r,null);s&&s.m(r,null)},p(e,n){if(3&n){let t;for(o=e[0],t=0;t<o.length;t+=1){const s=Kr(e,o,t);i[t]?i[t].p(s,n):(i[t]=to(s),i[t].c(),i[t].m(r,null))}for(;t<i.length;t+=1)i[t].d(1);i.length=o.length,!o.length&&s?s.p(e,n):o.length?s&&(s.d(1),s=null):(s=Jr(e),s.c(),s.m(r,null))}},d(t){t&&A(r),E(i,t),s&&s.d()}}}function Jr(t){let n,r,o=t[1]("tournamentsPrizes.noprizes")+"";return{c(){n=P("p"),r=$(o)},m(t,e){S(t,n,e),C(n,r)},p(t,e){2&e&&o!==(o=t[1]("tournamentsPrizes.noprizes")+"")&&D(r,o)},d(t){t&&A(n)}}}function Qr(t){let n,r,o,i,s,a,l,u=t[4].rank+t[9]+"",c=t[4].name+"";return{c(){n=P("div"),r=P("p"),o=P("span"),i=$(u),s=k(),a=$(c),l=k(),R(n,"class","Prize Prize"+t[6])},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(r,s),C(r,a),C(n,l)},p(t,e){1&e&&u!==(u=t[4].rank+t[9]+"")&&D(i,u),1&e&&c!==(c=t[4].name+"")&&D(a,c)},d(t){t&&A(n)}}}function to(e){let o,i={length:e[4].count},s=[];for(let t=0;t<i.length;t+=1)s[t]=Qr(Wr(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);S(e,o,n)},p(e,n){if(1&n){let t;for(i={length:e[4].count},t=0;t<i.length;t+=1){var r=Wr(e,i,t);s[t]?s[t].p(r,n):(s[t]=Qr(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&A(o)}}}function eo(t){let n,r,o,i,s,a,l,u,c,d,h=t[1]("tournamentsPrizes.prizes")+"",p=t[0]&&Zr(t);return{c(){n=P("div"),r=e("svg"),o=e("defs"),i=e("style"),s=$(".a{fill:#fff;}"),a=e("path"),l=k(),u=P("p"),c=$(h),d=k(),p&&p.c(),this.c=y,R(a,"class","a"),R(a,"d","M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z"),R(a,"transform","translate(-5.999 -9.76)"),R(r,"xmlns","http://www.w3.org/2000/svg"),R(r,"width","30"),R(r,"height","27.454"),R(r,"viewBox","0 0 30 27.454"),R(u,"class","PrizesTitle"),R(n,"class","TournamentPrizes")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(i,s),C(r,a),C(n,l),C(n,u),C(u,c),C(n,d),p&&p.m(n,null)},p(t,[e]){2&e&&h!==(h=t[1]("tournamentsPrizes.prizes")+"")&&D(c,h),t[0]?p?p.p(t,e):(p=Zr(t),p.c(),p.m(n,null)):p&&(p.d(1),p=null)},i:y,o:y,d(t){t&&A(n),p&&p.d()}}}function no(t,e,n){let r;Y(t,cr,t=>n(1,r=t));let o,{tourid:i=""}=e;Object.keys(Yr).forEach(t=>{Hn(t,Yr[t])});const s=t=>{t.data&&t.data.type==`TournamentPrizes_${i}`&&n(0,o=t.data.prizes)};return K(()=>(window.addEventListener("message",s,!1),()=>{window.removeEventListener("message",s)})),t.$$set=t=>{"tourid"in t&&n(2,i=t.tourid)},[o,r,i]}function ro(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function oo(n){let o,r,i,s,a,l,u,c,d=n[0],h=[];for(let t=0;t<d.length;t+=1)h[t]=io(ro(n,d,t));return{c(){o=P("div"),o.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',r=k(),i=P("main"),s=P("div");for(let t=0;t<h.length;t+=1)h[t].c();a=k(),l=P("div"),l.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',R(o,"class","SliderNavButton"),t(o,"disabled",n[6]),R(s,"class","items"),m(s,"transform","translateX("+n[1]+"px)"),R(l,"class","SliderNavButton"),t(l,"disabled",n[7])},m(t,e){S(t,o,e),S(t,r,e),S(t,i,e),C(i,s);for(let t=0;t<h.length;t+=1)h[t].m(s,null);n[21](s),S(t,a,e),S(t,l,e),u||(c=[L(o,"click",n[17]),L(l,"click",n[22])],u=!0)},p(e,n){if(64&n[0]&&t(o,"disabled",e[6]),2841&n[0]){let t;for(d=e[0],t=0;t<d.length;t+=1){var r=ro(e,d,t);h[t]?h[t].p(r,n):(h[t]=io(r),h[t].c(),h[t].m(s,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}2&n[0]&&m(s,"transform","translateX("+e[1]+"px)"),128&n[0]&&t(l,"disabled",e[7])},d(t){t&&A(o),t&&A(r),t&&A(i),E(h,t),n[21](null),t&&A(a),t&&A(l),u=!1,b(c)}}}function io(n){let r,o,i,s,a,l,u,c,d,h,p,f;function m(){return n[18](n[37])}function g(){return n[19](n[39])}return{c(){r=P("div"),o=P("span"),i=$("Play now"),a=k(),l=P("img"),h=k(),R(o,"class",s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":"")),l.src!==(u=n[37].thumbnail)&&R(l,"src",u),R(l,"width","132px"),R(l,"height","100px"),R(l,"alt",c=n[37].name),R(l,"title",d=n[37].name),R(r,"class","item")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,a),C(r,l),C(r,h),p||(f=[L(r,"click",m),L(r,"mouseenter",g),L(r,"mouseleave",n[20])],p=!0)},p(t,e){n=t,24&e[0]&&s!==(s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&R(o,"class",s),1&e[0]&&l.src!==(u=n[37].thumbnail)&&R(l,"src",u),1&e[0]&&c!==(c=n[37].name)&&R(l,"alt",c),1&e[0]&&d!==(d=n[37].name)&&R(l,"title",d)},d(t){t&&A(r),p=!1,b(f)}}}function so(n){let r,o=n[0]&&oo(n);return{c(){r=P("div"),o&&o.c(),this.c=y,R(r,"class","TournamentsGamesSlider")},m(t,e){S(t,r,e),o&&o.m(r,null),n[23](r)},p(t,e){t[0]?o?o.p(t,e):(o=oo(t),o.c(),o.m(r,null)):o&&(o.d(1),o=null)},i:y,o:y,d(t){t&&A(r),o&&o.d(),n[23](null)}}}function ao(t,e,n){let r,o,i,s,a,l,{tournamenturl:u=""}=e,{scrollby:c="3"}=e,{pagfactor:d="175"}=e,{lang:h=""}=e,p=window.navigator.userAgent,f=[],m=0,g=null,b=null,y=!1,v=0;const w=t=>{n(3,y=!0),n(4,a=t)},E=()=>{n(3,y=!1),n(4,a=-1)},T=t=>{t=(t.touches||t.originalEvent.touches)[0];g=t.clientX,b=t.clientY},x=t=>{var e;g&&b&&(e=t.touches[0].clientX,t=t.touches[0].clientY,e=g-e,t=b-t,Math.abs(e)>Math.abs(t)&&_(0<e?1:-1),g=null,b=null)},_=t=>{0<t&&!o?(n(1,m-=i),n(1,m=m<v?v:m)):t<0&&!r&&(n(1,m+=i),n(1,m=0<m?0:m))},C=t=>{window.postMessage({type:"TournamentGameAction",gameId:t.id,name:t.name},window.location.href)};return K(()=>(i=parseInt(c,10)*parseInt(d,10),()=>{s.removeEventListener("touchstart",T),s.removeEventListener("touchmove",x)})),t.$$set=t=>{"tournamenturl"in t&&n(13,u=t.tournamenturl),"scrollby"in t&&n(14,c=t.scrollby),"pagfactor"in t&&n(12,d=t.pagfactor),"lang"in t&&n(15,h=t.lang)},t.$$.update=()=>{2&t.$$.dirty[0]&&n(6,r=0===m),65538&t.$$.dirty[0]&&n(7,o=m<=v),8192&t.$$.dirty[0]&&u&&(()=>{let t=new URL(u),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("pagination",`games(limit=30,offset=${m})`),t.searchParams.append("fields","games(id,name,thumbnail)"),t.searchParams.append("language",h),t.searchParams.append("platform",hr(p)),fetch(t,{method:"GET",headers:e}).then(t=>t.json()).then(t=>{n(0,f=t.item.games.items),t.item.games.total})})(),4&t.$$.dirty[0]&&s&&(s.addEventListener("touchstart",T,{passive:!0}),s.addEventListener("touchmove",x,{passive:!0})),1&t.$$.dirty[0]&&f.length&&setTimeout(()=>{n(16,v=-1*(l.scrollWidth-l.clientWidth)),n(12,d=new String(l.scrollWidth/f.length)),i=parseInt(c,10)*parseFloat(d,2).toFixed(2)},1e3)},n(1,m=0),[f,m,s,y,a,l,r,o,w,E,_,C,d,u,c,h,v,()=>_(-1),t=>C(t),t=>w(t),()=>E(),function(t){O[t?"unshift":"push"](()=>{l=t,n(5,l)})},()=>_(1),function(t){O[t?"unshift":"push"](()=>{s=t,n(2,s)})}]}function lo(t){let n,r,o,i,s,a,l,u,c=t[9]&&co(t);function d(t){return t[9]?"Closed"!=t[17]&&"Closing"!=t[17]?fo:"true"==t[3]?po:void 0:mo}let h=d(t),p=h&&h(t),f=t[12]&&To(t),m="true"==t[4]&&xo(t);return{c(){n=P("div"),r=P("casino-tournaments-thumbnail"),o=k(),c&&c.c(),i=k(),s=P("div"),p&&p.c(),a=k(),f&&f.c(),l=k(),m&&m.c(),v(r,"session",t[0]),v(r,"userid",t[1]),v(r,"title",t[14]),v(r,"status",t[17]),v(r,"startdate",t[15]),v(r,"tourid",t[18]),v(r,"scorecriteria",t[21]),v(r,"minbetcount",t[22]),v(r,"thumbnail",t[19]),v(r,"userenrolled",t[20]),v(r,"showenrolled",t[5]),v(r,"gameurl",t[24]),v(r,"lang",t[8]),R(s,"class","TournamentButtons"),R(n,"class",u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))},m(t,e){S(t,n,e),C(n,r),C(n,o),c&&c.m(n,null),C(n,i),C(n,s),p&&p.m(s,null),C(n,a),f&&f.m(n,null),C(n,l),m&&m.m(n,null)},p(t,e){1&e[0]&&v(r,"session",t[0]),2&e[0]&&v(r,"userid",t[1]),16384&e[0]&&v(r,"title",t[14]),131072&e[0]&&v(r,"status",t[17]),32768&e[0]&&v(r,"startdate",t[15]),262144&e[0]&&v(r,"tourid",t[18]),2097152&e[0]&&v(r,"scorecriteria",t[21]),4194304&e[0]&&v(r,"minbetcount",t[22]),524288&e[0]&&v(r,"thumbnail",t[19]),1048576&e[0]&&v(r,"userenrolled",t[20]),32&e[0]&&v(r,"showenrolled",t[5]),16777216&e[0]&&v(r,"gameurl",t[24]),256&e[0]&&v(r,"lang",t[8]),t[9]?c?c.p(t,e):(c=co(t),c.c(),c.m(n,i)):c&&(c.d(1),c=null),h===(h=d(t))&&p?p.p(t,e):(p&&p.d(1),p=h&&h(t),p&&(p.c(),p.m(s,null))),t[12]?f?f.p(t,e):(f=To(t),f.c(),f.m(n,l)):f&&(f.d(1),f=null),"true"==t[4]?m?m.p(t,e):(m=xo(t),m.c(),m.m(n,null)):m&&(m.d(1),m=null),192&e[0]&&u!==(u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&R(n,"class",u)},d(t){t&&A(n),c&&c.d(),p&&p.d(),f&&f.d(),m&&m.d()}}}function uo(t){let n,r,o;return{c(){n=P("div"),r=P("div"),r.innerHTML='<div class="ph-col-12"><div class="ph-picture"></div> \n <div class="ph-row"><div class="ph-col-6 big"></div> \n <div class="ph-col-4 empty big"></div> \n <div class="ph-col-4"></div> \n <div class="ph-col-8 empty"></div> \n <div class="ph-col-6"></div> \n <div class="ph-col-6 empty"></div> \n <div class="ph-col-12"></div></div></div>',R(r,"class","ph-item"),R(n,"class",o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))},m(t,e){S(t,n,e),C(n,r)},p(t,e){192&e[0]&&o!==(o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&R(n,"class",o)},d(t){t&&A(n)}}}function co(t){let n,r,o=t[18]&&ho(t);return{c(){o&&o.c(),n=k(),r=P("casino-tournaments-thumbnail-duration"),v(r,"status",t[17]),v(r,"startdate",t[15]),v(r,"lang",t[8]),v(r,"enddate",t[16])},m(t,e){o&&o.m(t,e),S(t,n,e),S(t,r,e)},p(t,e){t[18]?o?o.p(t,e):(o=ho(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),131072&e[0]&&v(r,"status",t[17]),32768&e[0]&&v(r,"startdate",t[15]),256&e[0]&&v(r,"lang",t[8]),65536&e[0]&&v(r,"enddate",t[16])},d(t){o&&o.d(t),t&&A(n),t&&A(r)}}}function ho(n){let r,o,i,s;return{c(){r=P("casino-tournaments-thumbnail-prizes"),v(r,"tourid",n[18])},m(t,e){S(t,r,e),i||(s=g(o=n[30].call(null,r,n[18])),i=!0)},p(t,e){262144&e[0]&&v(r,"tourid",t[18]),o&&p(o.update)&&262144&e[0]&&o.update.call(null,t[18])},d(t){t&&A(r),i=!1,s()}}}function po(n){let r,o,i,s,a=n[25]("tournamentsThController.details")+"";return{c(){r=P("button"),o=$(a),R(r,"class","DetailsLargeButton")},m(t,e){S(t,r,e),C(r,o),i||(s=L(r,"click",n[42]),i=!0)},p(t,e){33554432&e[0]&&a!==(a=t[25]("tournamentsThController.details")+"")&&D(o,a)},d(t){t&&A(r),i=!1,s()}}}function fo(t){let n,r,o="true"==t[3]&&go(t);function i(t){return 1==t[20]?yo:bo}let s=i(t),a=s(t);return{c(){o&&o.c(),n=k(),a.c(),r=w()},m(t,e){o&&o.m(t,e),S(t,n,e),a.m(t,e),S(t,r,e)},p(t,e){"true"==t[3]?o?o.p(t,e):(o=go(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),s===(s=i(t))&&a?a.p(t,e):(a.d(1),a=s(t),a&&(a.c(),a.m(r.parentNode,r)))},d(t){o&&o.d(t),t&&A(n),a.d(t),t&&A(r)}}}function mo(n){let r,o,i,s,a,l,u,c=n[25]("tournamentsThController.login")+"",d=n[25]("tournamentsThController.register")+"";return{c(){r=P("button"),o=$(c),i=k(),s=P("button"),a=$(d),R(r,"class","LoginButton"),R(s,"class","RegisterButton")},m(t,e){S(t,r,e),C(r,o),S(t,i,e),S(t,s,e),C(s,a),l||(u=[L(r,"click",n[38]),L(s,"click",n[39])],l=!0)},p(t,e){33554432&e[0]&&c!==(c=t[25]("tournamentsThController.login")+"")&&D(o,c),33554432&e[0]&&d!==(d=t[25]("tournamentsThController.register")+"")&&D(a,d)},d(t){t&&A(r),t&&A(i),t&&A(s),l=!1,b(u)}}}function go(n){let r,o,i,s,a=n[25]("tournamentsThController.details")+"";return{c(){r=P("button"),o=$(a),R(r,"class","DetailsButton")},m(t,e){S(t,r,e),C(r,o),i||(s=L(r,"click",n[40]),i=!0)},p(t,e){33554432&e[0]&&a!==(a=t[25]("tournamentsThController.details")+"")&&D(o,a)},d(t){t&&A(r),i=!1,s()}}}function bo(n){let r,o,i,s;function a(t){return 1==t[11]?wo:vo}let l=a(n),u=l(n);return{c(){r=P("button"),u.c(),R(r,"class",o="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[12]},m(t,e){S(t,r,e),u.m(r,null),i||(s=L(r,"click",n[41]),i=!0)},p(t,e){l===(l=a(t))&&u?u.p(t,e):(u.d(1),u=l(t),u&&(u.c(),u.m(r,null))),128&e[0]&&o!==(o="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&R(r,"class",o),4096&e[0]&&(r.disabled=t[12])},d(t){t&&A(r),u.d(),i=!1,s()}}}function yo(t){let n,r="true"==t[3]&&Eo(t);return{c(){r&&r.c(),n=w()},m(t,e){r&&r.m(t,e),S(t,n,e)},p(t,e){"true"==t[3]?r?r.p(t,e):(r=Eo(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&A(n)}}}function vo(t){let n,r,o,i,s,a,l,u,c,d=t[25]("tournamentsThController.join")+"";return{c(){n=P("span"),r=$(d),o=k(),i=e("svg"),s=e("defs"),a=e("style"),l=$(".a{fill:#fff;}"),u=e("g"),c=e("path"),R(c,"class","a"),R(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),R(c,"transform","translate(26 26) rotate(180)"),R(u,"transform","translate(26 26) rotate(180)"),R(i,"xmlns","http://www.w3.org/2000/svg"),R(i,"width","26"),R(i,"height","26"),R(i,"viewBox","0 0 26 26")},m(t,e){S(t,n,e),C(n,r),S(t,o,e),S(t,i,e),C(i,s),C(s,a),C(a,l),C(i,u),C(u,c)},p(t,e){33554432&e[0]&&d!==(d=t[25]("tournamentsThController.join")+"")&&D(r,d)},d(t){t&&A(n),t&&A(o),t&&A(i)}}}function wo(t){let n,r;return{c(){n=e("svg"),r=e("circle"),R(r,"cx","20"),R(r,"cy","20"),R(r,"r","18"),R(n,"class","spinner")},m(t,e){S(t,n,e),C(n,r)},p:y,d(t){t&&A(n)}}}function Eo(t){let n,r,o=t[25]("tournamentsThController.enrolled")+"";return{c(){n=P("button"),r=$(o),R(n,"class","EnrolledButton"),n.disabled=!0},m(t,e){S(t,n,e),C(n,r)},p(t,e){33554432&e[0]&&o!==(o=t[25]("tournamentsThController.enrolled")+"")&&D(r,o)},d(t){t&&A(n)}}}function To(t){let n,r,o,i,s=t[25]("tournamentsThController.joinerror")+"";return{c(){n=P("span"),r=$(s),o=k(),i=$(t[13]),R(n,"class","ErrorText")},m(t,e){S(t,n,e),C(n,r),C(n,o),C(n,i)},p(t,e){33554432&e[0]&&s!==(s=t[25]("tournamentsThController.joinerror")+"")&&D(r,s),8192&e[0]&&D(i,t[13])},d(t){t&&A(n)}}}function xo(t){let n;return{c(){n=P("casino-tournaments-thumbnail-games-slider"),v(n,"tournamenturl",t[2]),v(n,"lang",t[8]),v(n,"scrollby","2")},m(t,e){S(t,n,e)},p(t,e){4&e[0]&&v(n,"tournamenturl",t[2]),256&e[0]&&v(n,"lang",t[8])},d(t){t&&A(n)}}}function _o(t){let n;function r(t){return t[10]?uo:lo}let o=r(t),i=o(t);return{c(){i.c(),n=w(),this.c=y},m(t,e){i.m(t,e),S(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:y,o:y,d(t){i.d(t),t&&A(n)}}}function Co(t,e,i){let n,r;Y(t,cr,t=>i(25,r=t));let o,s,a,l,u,c,d,h,p,{session:f=""}=e,{userid:m=""}=e,{tournamenturl:g=""}=e,{endpoint:b=""}=e,{showdetails:y=""}=e,{showslider:v=""}=e,{showenrolled:w=""}=e,{maxwidth:E=""}=e,{fullsize:T=""}=e,{lang:x=""}=e,{loginevent:_=""}=e,{registerevent:C=""}=e,{loginurl:S=""}=e,{registerurl:A=""}=e,{currency:P=""}=e,$=!1,k="",L=!0,R=window.navigator.userAgent,D=!1,O=!1,N="There was an error while trying to join the tournament",I=[],M=[],U="#";var j,B;[{withLocale:j,translations:B}]=[{withLocale:"en",translations:{}}],tr.subscribe(t=>{null==t&&(Fn.set(B),tr.set(j))}),Object.keys(_r).forEach(t=>{Hn(t,_r[t])});const z=t=>{t.data&&"UserSessionID"==t.data.type&&(i(9,$=!0),k=t.data.session),"UpdateTournamentView"==t.data.type&&(t=t.data.tournamentData,u&&u!=t.id||V(t))},F=()=>{_&&window.postMessage({type:_},window.location.href),S&&(window.location=S)},G=()=>{C&&window.postMessage({type:C},window.location.href),A&&(window.location=A)},H=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)},X=(t,e)=>{window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),i(11,D=!0);let n=new URL(`${b}/bonus/claim`),r=new Headers,o={};n.searchParams.append("language",x),r.append("platform",hr(R)),r.append("Content-Type","application/json"),r.append("X-SessionID",k),e&&1<=e.length&&(o={language:x,bonusCode:e[0].code,currency:P});e={method:"PUT",headers:r,body:JSON.stringify(o)};fetch(n,e).then(t=>t.json()).then(t=>{1==t.success?(i(11,D=!1),i(20,d=!0)):(i(11,D=!1),i(13,N=t.errorMessage),i(12,O=!0))},t=>{i(11,D=!1),i(12,O=!0)})},V=t=>{i(14,o=t.nameOrTitle),i(15,s=t.startTime),i(16,a=t.endTime),i(17,l=t.state),i(18,u=t.id),i(19,c=t.thumbnail),i(20,d=t.playerEnrolled||!1),i(21,h=t.scoreCriteria),i(22,p=t.minBetCount),I=t.prizes,i(23,M=t.wallets||[]),i(24,U=t.termsUrl||"#")},q=()=>{i(10,L=!0),(t=>{i(10,L=!0);let e=new URL(t),n=new Headers;e.searchParams.append("language",x),n.append("platform",hr(R)),$&&n.append("X-SessionID",k),fetch(e,{method:"GET",headers:n}).then(t=>t.json()).then(t=>{i(10,L=!1),V(t.item)})})(g)};return K(()=>(i(10,L=!1),window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)})),t.$$set=t=>{"session"in t&&i(0,f=t.session),"userid"in t&&i(1,m=t.userid),"tournamenturl"in t&&i(2,g=t.tournamenturl),"endpoint"in t&&i(31,b=t.endpoint),"showdetails"in t&&i(3,y=t.showdetails),"showslider"in t&&i(4,v=t.showslider),"showenrolled"in t&&i(5,w=t.showenrolled),"maxwidth"in t&&i(6,E=t.maxwidth),"fullsize"in t&&i(7,T=t.fullsize),"lang"in t&&i(8,x=t.lang),"loginevent"in t&&i(32,_=t.loginevent),"registerevent"in t&&i(33,C=t.registerevent),"loginurl"in t&&i(34,S=t.loginurl),"registerurl"in t&&i(35,A=t.registerurl),"currency"in t&&i(36,P=t.currency)},t.$$.update=()=>{1&t.$$.dirty[0]&&f&&(0<f.length&&"false"!=f?(k=f,i(9,$=!0)):i(9,$=!1)),260&t.$$.dirty[0]&&i(37,n=g&&x),64&t.$$.dirty[1]&&n&&q()},[f,m,g,y,v,w,E,T,x,$,L,D,O,N,o,s,a,l,u,c,d,h,p,M,U,r,F,G,H,X,(t,e)=>{window.postMessage({type:`TournamentPrizes_${e}`,prizes:I},window.location.href)},b,_,C,S,A,P,n,()=>F(),()=>G(),()=>H(u),()=>X(u,M),()=>H(u)]}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:#c3c3c3}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:#58586B}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:#FFF}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},no,eo,n,{tourid:2}),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(t){this.$set({tourid:t}),U()}}),customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:#0a0c19;color:#fff;display:flex;justify-content:center}.disabled{color:#3B3C47}.SliderNavButton{background:#0a0c19;border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:#ef4322;color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:#28a745;display:block;box-sizing:border-box;padding:0.8rem .5rem;color:#fff;text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ao,so,n,{tournamenturl:13,scrollby:14,pagfactor:12,lang:15},[-1,-1]),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[13]}set tournamenturl(t){this.$set({tournamenturl:t}),U()}get scrollby(){return this.$$.ctx[14]}set scrollby(t){this.$set({scrollby:t}),U()}get pagfactor(){return this.$$.ctx[12]}set pagfactor(t){this.$set({pagfactor:t}),U()}get lang(){return this.$$.ctx[15]}set lang(t){this.$set({lang:t}),U()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:#0A0B19;color:#fff;border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.LoginButton{background:#0A0B19;width:50%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:#0A0B19;width:50%;height:60px;text-align:center;color:#48952a;border:solid #48952a 1px;text-transform:uppercase;font-size:18px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:#0A0B19;width:40%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:#0A0B19;width:100%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:16px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:#2a2c5a;width:60%;height:60px;text-align:center;color:#aaaabe;border:0;text-transform:uppercase;font-size:18px;cursor:default}.JoinButton{background:#48952a;width:60%;height:60px;text-align:center;color:#fff;border:solid #48952a 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:18px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:#0A0B19;border:1px solid black;border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(10, 11, 25, 0) 46%, rgba(10, 11, 25, 0.35) 50%, rgba(10, 11, 25, 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:#ced4da}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(10, 11, 25, 0)}.ph-col-4{flex:0 0 33.33333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.66667%}.ph-col-12{flex:0 0 100%}[class*="ph-col"]{direction:ltr}[class*="ph-col"]>*+.ph-row{margin-top:0}[class*="ph-col"]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:#ced4da}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:#212121;stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Co,_o,n,{session:0,userid:1,tournamenturl:2,endpoint:31,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:32,registerevent:33,loginurl:34,registerurl:35,currency:36},[-1,-1]),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["session","userid","tournamenturl","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency"]}get session(){return this.$$.ctx[0]}set session(t){this.$set({session:t}),U()}get userid(){return this.$$.ctx[1]}set userid(t){this.$set({userid:t}),U()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$set({tournamenturl:t}),U()}get endpoint(){return this.$$.ctx[31]}set endpoint(t){this.$set({endpoint:t}),U()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$set({showdetails:t}),U()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$set({showslider:t}),U()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$set({showenrolled:t}),U()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$set({maxwidth:t}),U()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$set({fullsize:t}),U()}get lang(){return this.$$.ctx[8]}set lang(t){this.$set({lang:t}),U()}get loginevent(){return this.$$.ctx[32]}set loginevent(t){this.$set({loginevent:t}),U()}get registerevent(){return this.$$.ctx[33]}set registerevent(t){this.$set({registerevent:t}),U()}get loginurl(){return this.$$.ctx[34]}set loginurl(t){this.$set({loginurl:t}),U()}get registerurl(){return this.$$.ctx[35]}set registerurl(t){this.$set({registerurl:t}),U()}get currency(){return this.$$.ctx[36]}set currency(t){this.$set({currency:t}),U()}});const So={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Position:"Position",Name:"Name",Score:"Score"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Position:"Pozisyon",Name:"İsim",Score:"Skor"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Position:"Θέση",Name:"Ονομα",Score:"Σκορ"}}};function Ao(t,e,n){const r=t.slice();return r[30]=e[n],r}function Po(t,e,n){const r=t.slice();return r[25]=e[n],r}function $o(t,e,n){const r=t.slice();return r[30]=e[n],r}function ko(t,e,n){const r=t.slice();return r[25]=e[n],r}function Lo(e){let n,r,o,i,s,a,l,u,c,t=e[8]("tournamentsTable.nowinners")+"",d=e[3],h=[];for(let t=0;t<d.length;t+=1)h[t]=Io(Ao(e,d,t));return{c(){n=P("div"),r=P("table"),o=P("thead"),i=P("tr");for(let t=0;t<h.length;t+=1)h[t].c();s=k(),a=P("tbody"),l=P("tr"),u=P("td"),c=$(t),R(u,"colspan","3"),R(r,"class","LeftTable"),R(n,"class","TournamentsTable")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i);for(let t=0;t<h.length;t+=1)h[t].m(i,null);C(r,s),C(r,a),C(a,l),C(l,u),C(u,c)},p(e,n){if(1417&n[0]){let t;for(d=e[3],t=0;t<d.length;t+=1){var r=Ao(e,d,t);h[t]?h[t].p(r,n):(h[t]=Io(r),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}256&n[0]&&t!==(t=e[8]("tournamentsTable.nowinners")+"")&&D(c,t)},d(t){t&&A(n),E(h,t)}}}function Ro(n){let r,o,i,s,a,l,u,c,d,h,p=n[8]("tournamentsTable.leaderboard")+"";function f(t){return t[5]?Uo:Mo}let m=f(n),g=m(n),b=n[5]&&jo(n);return{c(){r=P("div"),o=P("div"),i=$(p),s=k(),a=P("div"),l=P("div"),g.c(),u=k(),b&&b.c(),c=w(),R(o,"class","Leaderboard"),R(l,"class","CollapseButton"),R(a,"class","RightButton "+(dr(n[9])?"MobileClass":"")),R(r,"class","LeaderboardContainer")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,s),C(r,a),C(a,l),g.m(l,null),S(t,u,e),b&&b.m(t,e),S(t,c,e),d||(h=L(l,"click",n[18]),d=!0)},p(t,e){256&e[0]&&p!==(p=t[8]("tournamentsTable.leaderboard")+"")&&D(i,p),m!==(m=f(t))&&(g.d(1),g=m(t),g&&(g.c(),g.m(l,null))),t[5]?b?b.p(t,e):(b=jo(t),b.c(),b.m(c.parentNode,c)):b&&(b.d(1),b=null)},d(t){t&&A(r),g.d(),t&&A(u),b&&b.d(t),t&&A(c),d=!1,h()}}}function Do(t){let n,r=(e=t,(1==dr(e[9])?zo:Bo)(t));var e;return{c(){r.c(),n=w()},m(t,e){r.m(t,e),S(t,n,e)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&A(n)}}}function Oo(t){let n,r,o=t[8](`tournamentsTable.${t[30]}`)+"";return{c(){n=P("p"),r=$(o),R(n,"data-sort",t[7])},m(t,e){S(t,n,e),C(n,r)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[30]}`)+"")&&D(r,o),128&e[0]&&R(n,"data-sort",t[7])},d(t){t&&A(n)}}}function No(n){let r,o,i,s,a=n[8](`tournamentsTable.${n[30]}`)+"";function l(){return n[19](n[30])}return{c(){r=P("button"),o=$(a),R(r,"data-sort",n[7])},m(t,e){S(t,r,e),C(r,o),i||(s=L(r,"click",l),i=!0)},p(t,e){n=t,264&e[0]&&a!==(a=n[8](`tournamentsTable.${n[30]}`)+"")&&D(o,a),128&e[0]&&R(r,"data-sort",n[7])},d(t){t&&A(r),i=!1,s()}}}function Io(t){let n,r;function o(t){return"true"==t[0]?No:Oo}let i=o(t),s=i(t);return{c(){n=P("th"),s.c(),r=k()},m(t,e){S(t,n,e),s.m(n,null),C(n,r)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(n,r)))},d(t){t&&A(n),s.d()}}}function Mo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M6 9l6 6 6-6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Uo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M18 15l-6-6-6 6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function jo(t){let n,r,o,i,s=t[8]("tournamentsTable.nowinners")+"";return{c(){n=P("div"),r=P("div"),o=P("p"),i=$(s),R(r,"class","TableUser"),R(n,"class","TableContent")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i)},p(t,e){256&e[0]&&s!==(s=t[8]("tournamentsTable.nowinners")+"")&&D(i,s)},d(t){t&&A(n)}}}function Bo(n){let r,o,i,s,a,l,u,c,d,h,p,f,m=n[3],g=[];for(let t=0;t<m.length;t+=1)g[t]=Ho($o(n,m,t));let b="true"==n[1]&&n[4]&&Xo(n),y=n[5]&&Vo(n);function t(t){return t[5]?Ko:Yo}let v=t(n),w=v(n);return{c(){r=P("div"),o=P("table"),i=P("thead"),s=P("tr");for(let t=0;t<g.length;t+=1)g[t].c();a=k(),l=P("tbody"),b&&b.c(),u=k(),y&&y.c(),c=k(),d=P("div"),h=P("div"),w.c(),R(o,"class","LeftTable"),R(h,"class","CollapseButton"),R(d,"class","RightButton"),R(r,"class","TournamentsTable")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(i,s);for(let t=0;t<g.length;t+=1)g[t].m(s,null);C(o,a),C(o,l),b&&b.m(l,null),C(l,u),y&&y.m(l,null),C(r,c),C(r,d),C(d,h),w.m(h,null),p||(f=L(h,"click",n[17]),p=!0)},p(e,n){if(1417&n[0]){let t;for(m=e[3],t=0;t<m.length;t+=1){var r=$o(e,m,t);g[t]?g[t].p(r,n):(g[t]=Ho(r),g[t].c(),g[t].m(s,null))}for(;t<g.length;t+=1)g[t].d(1);g.length=m.length}"true"==e[1]&&e[4]?b?b.p(e,n):(b=Xo(e),b.c(),b.m(l,u)):b&&(b.d(1),b=null),e[5]?y?y.p(e,n):(y=Vo(e),y.c(),y.m(l,null)):y&&(y.d(1),y=null),v!==(v=t(e))&&(w.d(1),w=v(e),w&&(w.c(),w.m(h,null)))},d(t){t&&A(r),E(g,t),b&&b.d(),y&&y.d(),w.d(),p=!1,f()}}}function zo(n){let r,o,i,s,a,l,u,c,d,h,p,f=n[8]("tournamentsTable.leaderboard")+"";function m(t){return t[5]?Zo:Wo}let g=m(n),b=g(n),y="true"==n[1]&&n[4]&&Jo(n),v=n[5]&&Qo(n);return{c(){r=P("div"),o=P("div"),i=$(f),s=k(),a=P("div"),l=P("div"),b.c(),u=k(),y&&y.c(),c=k(),v&&v.c(),d=w(),R(o,"class","Leaderboard"),R(l,"class","CollapseButton"),R(a,"class","RightButton "+(dr(n[9])?"MobileClass":"")),R(r,"class","LeaderboardContainer")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(r,s),C(r,a),C(a,l),b.m(l,null),S(t,u,e),y&&y.m(t,e),S(t,c,e),v&&v.m(t,e),S(t,d,e),h||(p=L(l,"click",n[15]),h=!0)},p(t,e){256&e[0]&&f!==(f=t[8]("tournamentsTable.leaderboard")+"")&&D(i,f),g!==(g=m(t))&&(b.d(1),b=g(t),b&&(b.c(),b.m(l,null))),"true"==t[1]&&t[4]?y?y.p(t,e):(y=Jo(t),y.c(),y.m(c.parentNode,c)):y&&(y.d(1),y=null),t[5]?v?v.p(t,e):(v=Qo(t),v.c(),v.m(d.parentNode,d)):v&&(v.d(1),v=null)},d(t){t&&A(r),b.d(),t&&A(u),y&&y.d(t),t&&A(c),v&&v.d(t),t&&A(d),h=!1,p()}}}function Fo(t){let n,r,o=t[8](`tournamentsTable.${t[30]}`)+"";return{c(){n=P("p"),r=$(o),R(n,"data-sort",t[7])},m(t,e){S(t,n,e),C(n,r)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[30]}`)+"")&&D(r,o),128&e[0]&&R(n,"data-sort",t[7])},d(t){t&&A(n)}}}function Go(n){let r,o,i,s,a=n[8](`tournamentsTable.${n[30]}`)+"";function l(){return n[16](n[30])}return{c(){r=P("button"),o=$(a),R(r,"data-sort",n[7])},m(t,e){S(t,r,e),C(r,o),i||(s=L(r,"click",l),i=!0)},p(t,e){n=t,264&e[0]&&a!==(a=n[8](`tournamentsTable.${n[30]}`)+"")&&D(o,a),128&e[0]&&R(r,"data-sort",n[7])},d(t){t&&A(r),i=!1,s()}}}function Ho(t){let n,r;function o(t){return"true"==t[0]?Go:Fo}let i=o(t),s=i(t);return{c(){n=P("th"),s.c(),r=k()},m(t,e){S(t,n,e),s.m(n,null),C(n,r)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(n,r)))},d(t){t&&A(n),s.d()}}}function Xo(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m=t[4].Position+"",g=t[4].Name+"",b=t[4].Score+"";return{c(){n=P("tr"),r=P("td"),o=P("strong"),i=P("em"),s=$("#"),a=$(m),l=k(),u=P("td"),c=$(g),d=k(),h=P("td"),p=P("div"),f=$(b),R(p,"class","Flex"),R(n,"class","FirstRow")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(i,s),C(i,a),C(n,l),C(n,u),C(u,c),C(n,d),C(n,h),C(h,p),C(p,f)},p(t,e){16&e[0]&&m!==(m=t[4].Position+"")&&D(a,m),16&e[0]&&g!==(g=t[4].Name+"")&&D(c,g),16&e[0]&&b!==(b=t[4].Score+"")&&D(f,b)},d(t){t&&A(n)}}}function Vo(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=qo(Po(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);S(e,o,n)},p(e,n){if(64&n[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var r=Po(e,i,t);s[t]?s[t].p(r,n):(s[t]=qo(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&A(o)}}}function qo(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m,g=t[25].Position+"",b=t[25].Name+"",y=t[25].Score+"";return{c(){n=P("tr"),r=P("td"),o=P("strong"),i=P("em"),s=$("#"),a=$(g),l=k(),u=P("td"),c=$(b),d=k(),h=P("td"),p=P("div"),f=$(y),m=k(),R(p,"class","Flex")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(i,s),C(i,a),C(n,l),C(n,u),C(u,c),C(n,d),C(n,h),C(h,p),C(p,f),C(n,m)},p(t,e){64&e[0]&&g!==(g=t[25].Position+"")&&D(a,g),64&e[0]&&b!==(b=t[25].Name+"")&&D(c,b),64&e[0]&&y!==(y=t[25].Score+"")&&D(f,y)},d(t){t&&A(n)}}}function Yo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M6 9l6 6 6-6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Ko(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M18 15l-6-6-6 6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Wo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M6 9l6 6 6-6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Zo(t){let n,r;return{c(){n=e("svg"),r=e("path"),R(r,"d","M18 15l-6-6-6 6"),R(n,"xmlns","http://www.w3.org/2000/svg"),R(n,"width","24"),R(n,"height","24"),R(n,"viewBox","0 0 24 24"),R(n,"fill","none"),R(n,"stroke","#ffffff"),R(n,"stroke-width","2"),R(n,"stroke-linecap","round"),R(n,"stroke-linejoin","round")},m(t,e){S(t,n,e),C(n,r)},d(t){t&&A(n)}}}function Jo(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m,g=t[4].Position+"",b=t[4].Name+"",y=t[8]("tournamentsTable.score")+"",v=t[4].Score+"";return{c(){n=P("div"),r=P("div"),o=P("span"),i=$(g),s=P("span"),a=$(b),l=k(),u=P("div"),c=P("div"),d=P("p"),h=$(y),p=k(),f=P("p"),m=$(v),R(r,"class","TableUser"),R(u,"class","TableUserDetails"),R(n,"class","TableContent TableContentFirstRow")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(r,s),C(s,a),C(n,l),C(n,u),C(u,c),C(c,d),C(d,h),C(c,p),C(c,f),C(f,m)},p(t,e){16&e[0]&&g!==(g=t[4].Position+"")&&D(i,g),16&e[0]&&b!==(b=t[4].Name+"")&&D(a,b),256&e[0]&&y!==(y=t[8]("tournamentsTable.score")+"")&&D(h,y),16&e[0]&&v!==(v=t[4].Score+"")&&D(m,v)},d(t){t&&A(n)}}}function Qo(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=ti(ko(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);S(e,o,n)},p(e,n){if(320&n[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var r=ko(e,i,t);s[t]?s[t].p(r,n):(s[t]=ti(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&A(o)}}}function ti(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m,g,b=t[25].Position+"",y=t[25].Name+"",v=t[8]("tournamentsTable.score")+"",w=t[25].Score+"";return{c(){n=P("div"),r=P("div"),o=P("span"),i=$(b),s=P("span"),a=$(y),l=k(),u=P("div"),c=P("div"),d=P("p"),h=$(v),p=k(),f=P("p"),m=$(w),g=k(),R(r,"class","TableUser"),R(u,"class","TableUserDetails"),R(n,"class","TableContent")},m(t,e){S(t,n,e),C(n,r),C(r,o),C(o,i),C(r,s),C(s,a),C(n,l),C(n,u),C(u,c),C(c,d),C(d,h),C(c,p),C(c,f),C(f,m),C(n,g)},p(t,e){64&e[0]&&b!==(b=t[25].Position+"")&&D(i,b),64&e[0]&&y!==(y=t[25].Name+"")&&D(a,y),256&e[0]&&v!==(v=t[8]("tournamentsTable.score")+"")&&D(h,v),64&e[0]&&w!==(w=t[25].Score+"")&&D(m,w)},d(t){t&&A(n)}}}function ei(t){let e,n;function r(t){return 0<t[2].length||t[4]?Do:(null==e&&(e=!(1!=dr(t[9]))),e?Ro:Lo)}let o=r(t),i=o(t);return{c(){i.c(),n=w(),this.c=y},m(t,e){i.m(t,e),S(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:y,o:y,d(t){i.d(t),t&&A(n)}}}function ni(t,e,o){let n,r,i;Y(t,cr,t=>o(8,i=t));let{sortable:s=!1}=e,{firstrow:a=!1}=e,{lang:l="en"}=e,u=[],c=[],d=null,h=null,p=null,f=!0,m=window.navigator.userAgent;Object.keys(So).forEach(t=>{Hn(t,So[t])});const g=t=>{if(t.data&&"CasinoTableData"===t.data.type&&(o(2,c=t.data.tableData),o(6,n=c)),t.data&&"CasinoTableColumns"===t.data.type&&o(3,u=t.data.tableColumns),a&&t.data&&"CasinoTableFirstRowData"===t.data.type&&o(4,p=t.data.tableData),t.data&&"CasinoTableDataUpdate"===t.data.type&&t.data.tableData){let r=t.data.tableData;c instanceof Array&&c.forEach(function(t,e){var n,t=(n=t.Position,r.find(t=>t.Position==n));t&&o(2,c[e]=t,c)})}},b=t=>{var e=t===d,n="ASC"===h,r=e&&!n;o(13,d=r?null:t),o(14,h=r?null:e&&n?"DESC":"ASC")},y=()=>{o(5,f=!f)};return K(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),t.$$set=t=>{"sortable"in t&&o(0,s=t.sortable),"firstrow"in t&&o(1,a=t.firstrow),"lang"in t&&o(12,l=t.lang)},t.$$.update=()=>{24580&t.$$.dirty[0]&&o(6,n=d&&h?(()=>{let t=[];if(c&&(t=[...c]),!c.length)return c;var e=typeof c[0][d.toLowerCase()];return t.sort((t=>{const n=d.toLowerCase();return"string"==t?(t,e)=>t[n].localeCompare(e[n]):"number"==t||"object"==t?(t,e)=>t[n]-e[n]:void 0})(e)),"ASC"===h?t:t.reverse()})():[...c]),24576&t.$$.dirty[0]&&o(7,r=null===d?h:null)},[s,a,c,u,p,f,n,r,i,m,b,y,l,d,h,()=>y(),t=>b(t),()=>y(),()=>y(),t=>b(t)]}function ri(t,e,n){const r=t.slice();return r[38]=e[n],r}function oi(n){let r,o,i,s,a,l,u,c,d,h,p,f,m,g,b,y,v,w,E=n[10]("tournamentsPage.back")+"",T=n[8]&&si(n),x=0<n[7].length&&ai(n),_="true"==n[3]&&ui(n);return{c(){r=P("div"),o=P("div"),i=P("div"),s=e("svg"),a=e("path"),l=k(),u=P("p"),c=$(E),d=k(),h=P("div"),p=P("div"),T&&T.c(),f=k(),x&&x.c(),g=k(),b=P("div"),_&&_.c(),R(a,"stroke-linecap","round"),R(a,"stroke-linejoin","round"),R(a,"stroke-width","2"),R(a,"d","M15 19l-7-7 7-7"),R(s,"fill","none"),R(s,"stroke","currentColor"),R(s,"width","24"),R(s,"height","24"),R(s,"viewBox","0 0 24 24"),R(s,"xmlns","http://www.w3.org/2000/svg"),R(i,"class","BackButton"),R(o,"class","TopButtons"),R(p,"class",m=(dr(n[11])?"MobileClass":"")+("true"==n[3]?"TournamentCardDetails":"FullSize")),R(b,"class",y="true"==n[3]?"TournamentTableDetails ":"DisplayNone"),R(h,"class","TournamentContentDetails "+(dr(n[11])?"MobileClass":"")),R(r,"class","TournamentsPage")},m(t,e){S(t,r,e),C(r,o),C(o,i),C(i,s),C(s,a),C(i,l),C(i,u),C(u,c),C(r,d),C(r,h),C(h,p),T&&T.m(p,null),C(p,f),x&&x.m(p,null),C(h,g),C(h,b),_&&_.m(b,null),v||(w=L(i,"click",n[19]),v=!0)},p(t,e){1024&e[0]&&E!==(E=t[10]("tournamentsPage.back")+"")&&D(c,E),t[8]?T?T.p(t,e):(T=si(t),T.c(),T.m(p,f)):T&&(T.d(1),T=null),0<t[7].length?x?x.p(t,e):(x=ai(t),x.c(),x.m(p,null)):x&&(x.d(1),x=null),8&e[0]&&m!==(m=(dr(t[11])?"MobileClass":"")+("true"==t[3]?"TournamentCardDetails":"FullSize"))&&R(p,"class",m),"true"==t[3]?_?_.p(t,e):(_=ui(t),_.c(),_.m(b,null)):_&&(_.d(1),_=null),8&e[0]&&y!==(y="true"==t[3]?"TournamentTableDetails ":"DisplayNone")&&R(b,"class",y)},d(t){t&&A(r),T&&T.d(),x&&x.d(),_&&_.d(),v=!1,w()}}}function ii(t){let n,r,o=t[10]("tournamentsPage.loading")+"";return{c(){n=P("p"),r=$(o)},m(t,e){S(t,n,e),C(n,r)},p(t,e){1024&e[0]&&o!==(o=t[10]("tournamentsPage.loading")+"")&&D(r,o)},d(t){t&&A(n)}}}function si(t){let n,r,o;return{c(){n=P("casino-tournaments-thumbnail-controller"),v(n,"session",t[0]),v(n,"userid",t[1]),v(n,"endpoint",t[2]),v(n,"tournamenturl",r=t[8].href),v(n,"showdetails","false"),v(n,"showslider","true"),v(n,"showenrolled","true"),v(n,"fullsize",o=!!t[3]),v(n,"lang",t[4]),v(n,"currency",t[5])},m(t,e){S(t,n,e)},p(t,e){1&e[0]&&v(n,"session",t[0]),2&e[0]&&v(n,"userid",t[1]),4&e[0]&&v(n,"endpoint",t[2]),256&e[0]&&r!==(r=t[8].href)&&v(n,"tournamenturl",r),8&e[0]&&o!==(o=!!t[3])&&v(n,"fullsize",o),16&e[0]&&v(n,"lang",t[4]),32&e[0]&&v(n,"currency",t[5])},d(t){t&&A(n)}}}function ai(e){let o,i=e[7],s=[];for(let t=0;t<i.length;t+=1)s[t]=li(ri(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);S(e,o,n)},p(e,n){if(128&n[0]){let t;for(i=e[7],t=0;t<i.length;t+=1){var r=ri(e,i,t);s[t]?s[t].p(r,n):(s[t]=li(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&A(o)}}}function li(t){let n,r,o;return{c(){n=P("casino-tournaments-details"),v(n,"title",r=t[38].title),v(n,"text",o=t[38].description)},m(t,e){S(t,n,e)},p(t,e){128&e[0]&&r!==(r=t[38].title)&&v(n,"title",r),128&e[0]&&o!==(o=t[38].description)&&v(n,"text",o)},d(t){t&&A(n)}}}function ui(t){let n,r=1==t[9]&&ci(t);return{c(){r&&r.c(),n=w()},m(t,e){r&&r.m(t,e),S(t,n,e)},p(t,e){1==t[9]?r?r.p(t,e):(r=ci(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&A(n)}}}function ci(t){let n;return{c(){n=P("casino-tournaments-table"),v(n,"firstrow","true"),v(n,"sortable","false"),v(n,"lang",t[4])},m(t,e){S(t,n,e)},p(t,e){16&e[0]&&v(n,"lang",t[4])},d(t){t&&A(n)}}}function di(t){let n;function r(t){return t[6]?ii:oi}let o=r(t),i=o(t);return{c(){i.c(),n=w(),this.c=y},m(t,e){i.m(t,e),S(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:y,o:y,d(t){i.d(t),t&&A(n)}}}function hi(t,e,o){let n,r;Y(t,cr,t=>o(10,r=t));let i,s,a,{session:l=""}=e,{userid:u=""}=e,{tourid:c=""}=e,{endpoint:d=""}=e,{showleaderboard:h=""}=e,{cmsendpoint:p=""}=e,{lang:f=""}=e,{navigationbackbutton:m="Default"}=e,{currency:g="EUR"}=e,{tablelimit:b="30"}=e,{namemask:y=""}=e,v="",w=!0,E=[],T=window.navigator.userAgent,x=!1,_={},C=!1;var S,A;[{withLocale:S,translations:A}]=[{withLocale:"en",translations:{}}],tr.subscribe(t=>{null==t&&(Fn.set(A),tr.set(S))}),Object.keys(pr).forEach(t=>{Hn(t,pr[t])});const P=["Position","Name","Score"],$=t=>{let e=[];return t&&0<t.length&&t.forEach(t=>{0==t.unqualified&&(t.userID==v?(C=!0,_={Position:t.rank,Name:t.shortName,Score:t.score}):e.push({Position:t.rank,Name:t.shortName,Score:t.score}))}),e},k=t=>{if(t.data)try{var e,n=t.data,r=JSON.parse(n);r&&r.Items&&(e=$(r.Items),C&&_&&window.postMessage({type:"CasinoTableFirstRowData",tableData:_},window.location.href),window.postMessage({type:"CasinoTableDataUpdate",tableData:e},window.location.href))}catch(t){console.error(t)}},L=(t,e)=>{let n=new URL(t+`/tournaments/${e}/leaderboard`),r=new Headers;n.searchParams.append("language",f),y&&n.searchParams.append("filter",`shortNameMask=${y}`),r.append("platform",hr(T)),fetch(n,{method:"GET",headers:r}).then(t=>t.json()).then(t=>{s=$(t.items),o(9,x=!0),window.postMessage({type:"CasinoTableData",tableData:s.slice(0,b)},window.location.href),window.postMessage({type:"CasinoTableColumns",tableColumns:P},window.location.href),C&&window.postMessage({type:"CasinoTableFirstRowData",tableData:_},window.location.href),((t,e)=>{t=`${d}/tournaments/${t}/leaderboard/updates?HeartBeat=false&`;t+=e.toString(),a=new gr.EventSourcePolyfill(t,{headers:{accept:"text/event-stream","X-SessionID":l}}),void 0!==a&&a.addEventListener("message",k)})(e,n.searchParams)})},R=t=>{t.data&&"UserSessionID"==t.data.type&&t.data.session,t.data&&"PlayerID"==t.data.type&&(v=t.data.playerID)},D=()=>{"Event"==m?window.postMessage({type:"RedirectBack"},window.location.href):"Default"==m&&window.history.back()},O=()=>{var t=f;tr.set(t),((t,e)=>{let n=new URL(t+`/tournaments/${e}`),r=new Headers;n.searchParams.append("expand","games"),n.searchParams.append("language",f),r.append("platform",hr(T));e={method:"GET",headers:r};fetch(n.href,e).then(t=>t.json()).then(t=>{o(8,i=t.item)})})(d,c),L(d,c)};return K(()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R),a.removeEventListener("message",k)})),t.$$set=t=>{"session"in t&&o(0,l=t.session),"userid"in t&&o(1,u=t.userid),"tourid"in t&&o(13,c=t.tourid),"endpoint"in t&&o(2,d=t.endpoint),"showleaderboard"in t&&o(3,h=t.showleaderboard),"cmsendpoint"in t&&o(14,p=t.cmsendpoint),"lang"in t&&o(4,f=t.lang),"navigationbackbutton"in t&&o(15,m=t.navigationbackbutton),"currency"in t&&o(5,g=t.currency),"tablelimit"in t&&o(16,b=t.tablelimit),"namemask"in t&&o(17,y=t.namemask)},t.$$.update=()=>{3&t.$$.dirty[0]&&l&&u&&(0<l.length&&"false"!=l&&(v=u),o(6,w=!1)),8213&t.$$.dirty[0]&&o(18,n=c&&d&&l&&f),262144&t.$$.dirty[0]&&n&&O(),24576&t.$$.dirty[0]&&c&&p&&fetch(`${p}?tournamentId=${c}`).then(t=>t.json()).then(t=>{t&&t.details&&o(7,E=t.details)})},[l,u,d,h,f,g,w,E,i,x,r,T,D,c,p,m,b,y,n,()=>D()]}customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LeaderboardContainer{background:#232633;display:flex;width:100%;justify-content:space-between}.Leaderboard{width:calc(100% - 50px);height:52px;display:flex;align-items:center;padding-left:20px}.TableContent{width:calc(100% - 46px);font-size:14px;margin-bottom:2px;border-bottom:solid 1px #FFFFFF}.TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid #1B9800}.TableUser{background:#121522;height:52px;display:flex;align-items:center;gap:20px;padding-left:20px;font-weight:bold}.TableUserDetails{background:#232633;display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.TournamentsTable{width:100%;min-width:600px;display:flex;justify-content:space-between;text-align:center}.LeftTable{width:100%}.RightButton{cursor:pointer;background:#00020f;width:50px;height:70px;border:2px solid #232632}.RightButton.MobileClass{height:50px}.FirstRow{outline:2px solid #1B9800}table{width:100%;min-width:600px;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}th{padding:1.5rem 1.25rem;height:70px;background-color:#232632;border-bottom:1px solid #00020f;top:0;color:#fff}td{margin:0;padding:1.25rem;vertical-align:top;text-align:inherit;color:#fff;font-size:0.9rem;max-width:20%;background-color:#121521;border-bottom:1px solid #00020f}td:first-child{left:0;top:auto;width:10rem}svg{width:1.25rem;height:1.25rem;fill:rgba(0, 0, 0, 0.5);flex-shrink:0}button{font-weight:bold;font-size:inherit;text-transform:capitalize;background-color:transparent;border:none;cursor:pointer;display:block;padding:0 1rem 0 0;background-size:0.75rem;background-repeat:no-repeat;background-position:center right;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M16.29 14.29L12 18.59l-4.29-4.3a1 1 0 00-1.42 1.42l5 5a1 1 0 001.42 0l5-5a1 1 0 00-1.42-1.42zM7.71 9.71L12 5.41l4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42l-5-5a1 1 0 00-1.42 0l-5 5a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}.CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#00020f;color:#fff}[data-sort=\"ASC\"],[data-sort=\"DESC\"]{background-size:1rem;background-position:right -0.15rem center}[data-sort=\"ASC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M11.29 11.46a1 1 0 001.42 0l3-3A1 1 0 1014.29 7L12 9.34 9.71 7a1 1 0 10-1.42 1.46zm3 1.08L12 14.84l-2.29-2.3A1 1 0 008.29 14l3 3a1 1 0 001.42 0l3-3a1 1 0 00-1.42-1.42z'/%3E%3C/svg%3E\")}[data-sort=\"DESC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M12.71 12.54a1 1 0 00-1.42 0l-3 3A1 1 0 009.71 17L12 14.66 14.29 17a1 1 0 001.42 0 1 1 0 000-1.42zm-3-1.08L12 9.16l2.29 2.3a1 1 0 001.42 0 1 1 0 000-1.42l-3-3a1 1 0 00-1.42 0l-3 3a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ni,ei,n,{sortable:0,firstrow:1,lang:12},[-1,-1]),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(t){this.$set({sortable:t}),U()}get firstrow(){return this.$$.ctx[1]}set firstrow(t){this.$set({firstrow:t}),U()}get lang(){return this.$$.ctx[12]}set lang(t){this.$set({lang:t}),U()}});class pi extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsPage{background:#00020f;width:100%;height:100%;color:#fff}.FullSize{width:100%}.DisplayNone{display:none}.TopButtons{display:inline-flex;flex-direction:column;padding-bottom:20px;font-size:10px}.BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButton p{font-size:24px}.TournamentContentDetails{display:flex;gap:20px}.TournamentContentDetails.MobileClass{flex-direction:column}.TournamentCardDetails{width:420px}.TournamentTableDetails{width:100%}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},hi,di,n,{session:0,userid:1,tourid:13,endpoint:2,showleaderboard:3,cmsendpoint:14,lang:4,navigationbackbutton:15,currency:5,tablelimit:16,namemask:17},[-1,-1]),t&&(t.target&&S(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["session","userid","tourid","endpoint","showleaderboard","cmsendpoint","lang","navigationbackbutton","currency","tablelimit","namemask"]}get session(){return this.$$.ctx[0]}set session(t){this.$set({session:t}),U()}get userid(){return this.$$.ctx[1]}set userid(t){this.$set({userid:t}),U()}get tourid(){return this.$$.ctx[13]}set tourid(t){this.$set({tourid:t}),U()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$set({endpoint:t}),U()}get showleaderboard(){return this.$$.ctx[3]}set showleaderboard(t){this.$set({showleaderboard:t}),U()}get cmsendpoint(){return this.$$.ctx[14]}set cmsendpoint(t){this.$set({cmsendpoint:t}),U()}get lang(){return this.$$.ctx[4]}set lang(t){this.$set({lang:t}),U()}get navigationbackbutton(){return this.$$.ctx[15]}set navigationbackbutton(t){this.$set({navigationbackbutton:t}),U()}get currency(){return this.$$.ctx[5]}set currency(t){this.$set({currency:t}),U()}get tablelimit(){return this.$$.ctx[16]}set tablelimit(t){this.$set({tablelimit:t}),U()}get namemask(){return this.$$.ctx[17]}set namemask(t){this.$set({namemask:t}),U()}}return customElements.get("casino-tournaments-page-controller")||customElements.define("casino-tournaments-page-controller",pi),pi});
2
2
  //# sourceMappingURL=casino-tournaments-page-controller.js.map