@everymatrix/casino-tournaments-thumbnail-controller 0.0.403 → 0.0.404

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(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function y(){}function S(e){return e()}function A(){return Object.create(null)}function C(e){e.forEach(S)}function _(e){return"function"==typeof e}function B(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let P,D;function z(e,t){return(P=P||document.createElement("a")).href=t,e===P.href}function U(e,...t){if(null==e)return y;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function te(e,t,r){e.$$.on_destroy.push(U(t,r))}function H(e){return e&&_(e.destroy)?e.destroy:y}function F(e,t){e.appendChild(t)}function $(e,t,r){e.insertBefore(t,r||null)}function I(e){e.parentNode.removeChild(e)}function j(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function O(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function k(e){return document.createTextNode(e)}function R(){return k(" ")}function G(){return k("")}function L(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function M(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function b(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:M(e,t,r)}function N(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function d(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function J(e,t,r){e.classList[r?"add":"remove"](t)}function V(e){const t={};for(const r of e)t[r.name]=r.value;return t}function W(e){D=e}function re(e){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const X=[],K=[],Y=[],Z=[],q=Promise.resolve();let Q=!1;function ne(e){Y.push(e)}const oe=new Set;let ie=0;function g(){const e=D;do{for(;ie<X.length;){const e=X[ie];ie++,W(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),C(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(ne))}for(W(null),X.length=0,ie=0;K.length;)K.pop()();for(let e=0;e<Y.length;e+=1){const n=Y[e];oe.has(n)||(oe.add(n),n())}}while(Y.length=0,X.length);for(;Z.length;)Z.pop()();Q=!1,oe.clear(),W(e)}const se=new Set;function ae(n,e,t,r,o,i,s,a=[-1]){var l=D;W(n);const u=n.$$={fragment:null,ctx:null,props:i,update:y,not_equal:o,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:A(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(X.push(e),Q||(Q=!0,q.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,C(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){i=e.target;const y=Array.from(i.childNodes);u.fragment&&u.fragment.l(y),y.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(se.delete(a),a.i(void 0));{var h=n;s=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:d,on_destroy:m,after_update:f}=h.$$;p&&p.m(s,t),r||ne(()=>{var e=d.map(S).filter(_);m?m.push(...e):C(e),h.$$.on_mount=[]}),f.forEach(ne)}g()}W(l)}let le;"function"==typeof HTMLElement&&(le=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(_);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){C(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(C(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=y}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ue,ce,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,he="URLSearchParams"in a,pe="Symbol"in a&&"iterator"in Symbol,de="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),me="FormData"in a,fe="ArrayBuffer"in a;function ge(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function be(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return pe&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ve(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function we(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Ee(e){var t=new FileReader,r=we(t);return t.readAsArrayBuffer(e),r}function Te(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function xe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:de&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:he&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():fe&&de&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Te(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):fe&&(ArrayBuffer.prototype.isPrototypeOf(e)||ce(e))?this._bodyArrayBuffer=Te(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):he&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},de&&(this.blob=function(){var e=ve(this);if(e)return e;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?ve(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(Ee)}),this.text=function(){var e,t,r=ve(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=we(e=new FileReader),e.readAsText(r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},me&&(this.formData=function(){return this.text().then(Ae)}),this.json=function(){return this.text().then(JSON.parse)},this}fe&&(ue=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ce=ArrayBuffer.isView||function(e){return e&&-1<ue.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=ge(e),t=be(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[ge(e)]},l.prototype.get=function(e){return e=ge(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(ge(e))},l.prototype.set=function(e,t){this.map[ge(e)]=be(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ye(r)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},l.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ye(r)},pe&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Se=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof u){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<Se.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ae(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}u.prototype.clone=function(){return new u(this,{body:this._bodyInit})},xe.call(u.prototype),xe.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:0,statusText:""});return e.type="error",e};var _e=[301,302,303,307,308],Be=(c.redirect=function(e,t){if(-1===_e.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},a.DOMException);try{new Be}catch(y){(Be=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Be.prototype.constructor=Be}function Pe(n,s){return new Promise(function(o,e){var t=new u(n,s);if(t.signal&&t.signal.aborted)return e(new Be("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},n=(t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){o(new c(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new Be("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(de?i.responseType="blob":fe&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,be(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}Pe.polyfill=!0,a.fetch||(a.fetch=Pe,a.Headers=l,a.Request=u,a.Response=c),self.fetch.bind(self);var Ce=function(e,t){return(Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function He(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ce(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Fe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $e(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Ie(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Oe(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var ke=Oe(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Re(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Fe(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(h(i))try{i()}catch(e){o=e instanceof ke?e.errors:[e]}i=this._finalizers;if(i){this._finalizers=null;try{for(var l=Fe(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{De(c)}catch(e){o=null!=o?o:[],e instanceof ke?o=Ie(Ie([],$e(o)),$e(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new ke(o)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)De(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Re(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Re(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((n=new r).closed=!0,n);var Le=r,Me=Le.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ne(e){return e instanceof Le||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function De(e){h(e)?e():e.unsubscribe()}var ze=void 0,Ue=!1,je=!1,Ge={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ge.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,Ie([e,t],$e(r))):setTimeout.apply(void 0,Ie([e,t],$e(r)))},clearTimeout:function(e){var t=Ge.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Je(){}var Ve=null;function We(e){if(Ue){var t=!Ve;if(t&&(Ve={errorThrown:!1,error:null}),e(),t){var t=Ve,r=t.errorThrown,t=t.error;if(Ve=null,r)throw t}}else e()}He(e,Xe=Le),e.create=function(e,t,r){return new et(e,t,r)},e.prototype.next=function(e){this.isStopped||this._next(e)},e.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Xe.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(e){this.destination.next(e)},e.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Xe,Ke=e,Ye=Function.prototype.bind;function e(e){var t=Xe.call(this)||this;return t.isStopped=!1,e?Ne(t.destination=e)&&e.add(t):t.destination=ot,t}function Ze(e,t){return Ye.call(e,t)}rt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){nt(e)}},rt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){nt(e)}else nt(e)},rt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){nt(e)}};var qe,Qe=rt,et=(He(tt,qe=Ke),tt);function tt(e,t,r){var n=qe.call(this)||this,r=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&je?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&Ze(e.next,t),error:e.error&&Ze(e.error,t),complete:e.complete&&Ze(e.complete,t)}):e;return n.destination=new Qe(r),n}function rt(e){this.partialObserver=e}function nt(e){var t=e;Ge.setTimeout(function(){throw t})}var ot={closed:!0,next:Je,error:function(e){throw e},complete:Je},n="function"==typeof Symbol&&Symbol.observable||"@@observable";function it(e){return e}o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Ke||n&&h(n.next)&&h(n.error)&&h(n.complete)&&Ne(n)?e:new et(e,t,r);return We(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(n,e){var o=this;return new(e=at(e))(function(e,t){var r=new et({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});o.subscribe(r)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[n]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?it:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var n=this;return new(e=at(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},o.create=function(e){return new o(e)};var st=o;function o(e){e&&(this._subscribe=e)}function at(e){return null!=(e=null!=e?e:ze)?e:Promise}var lt,ut,ct,ht=Oe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n=(He(i,ct=st),i.prototype.lift=function(e){var t=new pt(this,this);return t.operator=e,t},i.prototype._throwIfClosed=function(){if(this.closed)throw new ht},i.prototype.next=function(o){var i=this;We(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var r=Fe(i.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(o)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},i.prototype.error=function(t){var r=this;We(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},i.prototype.complete=function(){var t=this;We(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),ct.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,o=this.observers;return r||n?Me:(this.currentObservers=null,o.push(e),new Le(function(){t.currentObservers=null,Re(o,e)}))},i.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},i.prototype.asObservable=function(){var e=new st;return e.source=this,e},i.create=function(e,t){return new pt(e,t)},i),pt=(He(gt,ut=n),gt.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},gt.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},gt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},gt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Me},gt),dt={now:function(){return(dt.delegate||Date).now()},delegate:void 0},mt=(He(ft,lt=n),ft.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),lt.prototype.next.call(this,e)},ft.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},ft.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},ft);function ft(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=dt);var n=lt.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function gt(e,t){var r=ut.call(this)||this;return r.destination=e,r.source=t,r}function i(){var e=ct.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let bt=[],yt={};const vt=[];function wt(n,o=y){let i;const s=new Set;function a(e){if(B(n,e)&&(n=e,i)){const e=!vt.length;for(const e of s)e[1](),vt.push(e,n);if(e){for(let e=0;e<vt.length;e+=2)vt[e][0](vt[e+1]);vt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=y){const r=[e,t];return s.add(r),1===s.size&&(i=o(a)||y),e(n),()=>{s.delete(r),0===s.size&&(i(),i=null)}}}}function Et(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:wt(t,t=>{let r=!1;const n=[];let o=0,i=y;const s=()=>{var e;o||(i(),e=a(l?n[0]:n,t),c?t(e):i=_(e)?e:y)},e=u.map((e,t)=>U(e,e=>{n[t]=e,o&=~(1<<t),r&&s()},()=>{o|=1<<t}));return r=!0,s(),function(){C(e),i()}}).subscribe}}function Tt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===xt));var t}var xt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function St(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ct(Array.isArray(e)?[]:{},e,t):e}function At(e,t,r){return e.concat(t).map(function(e){return St(e,r)})}function _t(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Bt(e,t){try{return t in e}catch(e){return!1}}function Pt(n,o,i){var s={};return i.isMergeableObject(n)&&_t(n).forEach(function(e){s[e]=St(n[e],i)}),_t(o).forEach(function(t){var e,r;(!Bt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Bt(n,t)&&i.isMergeableObject(o[t])?s[t]=function(e){if(!e.customMerge)return Ct;e=e.customMerge(t);return"function"==typeof e?e:Ct}(i)(n[t],o[t],i):s[t]=St(o[t],i))}),s}function Ct(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||At,r.isMergeableObject=r.isMergeableObject||Tt,r.cloneUnlessOtherwiseSpecified=St;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Pt(e,t,r):St(t,r)}Ct.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return Ct(e,t,r)},{});throw new Error("first argument should be an array")};var Ht=Ct,Ft=function(e,t){return(Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function $t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ft(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,v,It,w=function(){return(w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Ot(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function kt(e){return e.type===v.literal}function Rt(e){return e.type===v.number}function Lt(e){return e.type===v.date}function Mt(e){return e.type===v.time}function Nt(e){return e.type===v.select}function Dt(e){return e.type===v.plural}function zt(e){return e.type===v.tag}function Ut(e){return e&&"object"==typeof e&&e.type===It.number}function jt(e){return e&&"object"==typeof e&&e.type===It.dateTime}(n=f=f||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=v=v||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=It=It||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gt=/(?:[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 Jt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Vt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Wt=/^(@+)?(\+|#+)?[rs]?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function Yt(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Wt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Zt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function qt(e){return Zt(e)||{}}function Qt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,o=r[t];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=w(w(w({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return w(w({},e),qt(t))},{}));continue;case"engineering":s=w(w(w({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return w(w({},e),qt(t))},{}));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(Xt,function(e,t,r,n,o,i){if(t)s.minimumIntegerDigits=r.length;else{if(n&&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(Kt.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Vt.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Vt,function(e,t,r,n,o,i){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var i=o.options[0];"w"===i?s=w(w({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=w(w({},s),Yt(i)))}else Wt.test(o.stem)?s=w(w({},s),Yt(o.stem)):((i=Zt(o.stem))&&(s=w(w({},s),i)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=w(w({},s),n)))}return s}var er={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var tr=new RegExp("^".concat(n.source,"*")),rr=new RegExp("".concat(n.source,"*$"));function E(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,nr=!!String.fromCodePoint,or=!!Object.fromEntries,ir=!!String.prototype.codePointAt,sr=!!String.prototype.trimStart,ar=!!String.prototype.trimEnd,lr=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ur=!0;try{ur="a"===(null==(Hr=yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Hr[0])}catch(y){ur=!1}var cr,hr,pr=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},dr=nr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},mr=or?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},fr=ir?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},gr=sr?function(e){return e.trimStart()}:function(e){return e.replace(tr,"")},br=ar?function(e){return e.trimEnd()}:function(e){return e.replace(rr,"")};function yr(e,t){return new RegExp(e,t)}hr=ur?(cr=yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return cr.lastIndex=t,null!=(t=cr.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var o=fr(e,t);if(void 0===o||Er(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),t+=65536<=o?2:1}return dr.apply(void 0,n)};s.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&wr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:v.pound,location:E(i,this.clonePosition())})}}}return{val:n,err:null}},s.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(n,"/>"),location:E(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wr(this.char()))return this.error(f.INVALID_TAG,E(e,this.clonePosition()));var o=this.clonePosition();return n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,E(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:n,children:t,location:E(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,E(e,this.clonePosition())))}return this.error(f.UNCLOSED_TAG,E(r,this.clonePosition()))}return this.error(f.INVALID_TAG,E(r,this.clonePosition()))},s.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},s.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=E(r,this.clonePosition());return{val:{type:v.literal,value:n,location:r},err:null}},s.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(wr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},s.prototype.tryParseQuote=function(e){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"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return dr.apply(void 0,t)},s.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),dr(r))},s.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,E(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:n,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=hr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:E(e,this.clonePosition())}},s.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,E(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(d=br(m.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:E(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(n)).err)return u;var c=E(n,this.clonePosition());if(l&&pr(null==l?void 0:l.style,"::",0)){var h=gr(l.style.slice(2));if("number"===s)return(m=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?m:{val:{type:v.number,value:r,location:c,style:m.val},err:null};if(0===h.length)return this.error(f.EXPECT_DATE_TIME_SKELETON,c);var p=h,d=(this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(er[t||""]||er[r||""]||er["".concat(r,"-001")]||er["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale)),{type:It.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},p.replace(Gt,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"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"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-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!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-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"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-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"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<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?v.date:v.time,value:r,location:c,style:d},err:null}}return{val:{type:"number"===s?v.number:"date"===s?v.date:v.time,value:r,location:c,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,E(p,w({},p)));this.bumpSpace();var m,d=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),d=this.parseIdentifierIfPossible(),c=m.val}l=this.tryParsePluralOrSelectOptions(e,s,t,d);if(l.err)return l;if((u=this.tryParseArgumentClose(n)).err)return u;h=E(n,this.clonePosition());return"select"===s?{val:{type:v.select,value:r,options:mr(l.val),location:h},err:null}:{val:{type:v.plural,value:r,options:mr(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(f.INVALID_ARGUMENT_TYPE,E(i,a))}},s.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},s.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Jt).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].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");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:It.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Qt(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=E(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;i.push([a,{value:u.val,location:E(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===i.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(f.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:i,err:null}},s.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-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()}n=E(n,this.clonePosition());return o?lr(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=fr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},s.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},s.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},s.prototype.bumpIf=function(e){if(pr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},s.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},s.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&Er(this.char());)this.bump()},s.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var vr=s;function s(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function wr(e){return 97<=e&&e<=122||65<=e&&e<=90}function Er(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Tr(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new vr(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Nt(e)||Dt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Rt(e)&&Ut(e.style)||(Lt(e)||Mt(e))&&jt(e.style)?delete e.style.location:zt(e)&&r(e.children)})}(e.val),e.val}function xr(e,t){var r=t&&t.cache?t.cache:Fr,n=t&&t.serializer?t.serializer:Br;return(t&&t.strategy?t.strategy:function(e,t){return _r(e,this,1===e.length?Sr:Ar,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Sr(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(r);return void 0===o&&(o=e.call(this,n),t.set(r,o)),o}function Ar(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),o=t.get(r);return void 0===o&&(o=e.apply(this,n),t.set(r,o)),o}function _r(e,t,r,n,o){return r.bind(t,e,n,o)}var Br=function(){return JSON.stringify(arguments)};function Pr(){this.cache=Object.create(null)}Pr.prototype.get=function(e){return this.cache[e]},Pr.prototype.set=function(e,t){this.cache[e]=t};var Cr,Hr,Fr={create:function(){return new Pr}},$r={variadic:function(e,t){return _r(e,this,Ar,t.cache.create(),t.serializer)},monadic:function(e,t){return _r(e,this,Sr,t.cache.create(),t.serializer)}};(Hr=Cr=Cr||{}).MISSING_VALUE="MISSING_VALUE",Hr.INVALID_VALUE="INVALID_VALUE",Hr.MISSING_INTL_API="MISSING_INTL_API";$t(Gr,Rr=Error),Gr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,Ir,Or,kr,Rr,Lr=Gr,Mr=($t(jr,kr=Lr),jr),Nr=($t(Ur,Or=Lr),Ur),Dr=($t(zr,Ir=Lr),zr);function zr(e,t){return Ir.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Cr.MISSING_VALUE,t)||this}function Ur(e,t,r){return Or.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Cr.INVALID_VALUE,r)||this}function jr(e,t,r,n){return kr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Cr.INVALID_VALUE,n)||this}function Gr(e,t,r){e=Rr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Jr(e,t,r,n,o,i,s){if(1===e.length&&kt(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(kt(c))a.push({type:T.literal,value:c.value});else if(c.type===v.pound)"number"==typeof i&&a.push({type:T.literal,value:r.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new Dr(h,s);h=o[h];if(c.type===v.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?T.literal:T.object,value:h});else if(Lt(c)){var p="string"==typeof c.style?n.date[c.style]:jt(c.style)?c.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Mt(c))p="string"==typeof c.style?n.time[c.style]:jt(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(Rt(c))(p="string"==typeof c.style?n.number[c.style]:Ut(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(t,p).format(h)});else{if(zt(c)){var d=c.children,m=c.value,f=o[m];if("function"!=typeof f)throw new Nr(m,"function",s);m=f(Jr(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(Nt(c)){if(!(g=c.options[h]||c.options.other))throw new Mr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Jr(g.value,t,r,n,o))}else if(Dt(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Lr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Cr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Mr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Jr(g.value,t,r,n,o,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===T.literal&&t.type===T.literal?r.value+=t.value:e.push(t),e},[])}function Vr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=T=T||{})[n.literal=0]="literal",n[n.object=1]="object",Object.defineProperty(p,"defaultLocale",{get:function(){return p.memoizedDefaultLocale||(p.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),p.memoizedDefaultLocale},enumerable:!1,configurable:!0}),p.memoizedDefaultLocale=null,p.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},p.__parse=Tr,p.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"}}};var Wr=p;function p(e,t,r,n){var o,i,s=this;if(void 0===t&&(t=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Jr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=p.resolveLocale(t),"string"==typeof e){if(this.message=e,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=p.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?w(w(w({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=w(w({},r[t]),n[t]||{}),e},{})):r),e},w({},o)):o),this.formatters=n&&n.formatters||{getNumberFormat:xr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Ot([void 0],t,!1)))},{cache:Vr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:$r.variadic}),getDateTimeFormat:xr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Ot([void 0],t,!1)))},{cache:Vr(t.dateTime),strategy:$r.variadic}),getPluralRules:xr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Ot([void 0],t,!1)))},{cache:Vr(t.pluralRules),strategy:$r.variadic})}}const m={},Xr=(e,t,r)=>r&&(t in m||(m[t]={}),e in m[t]||(m[t][e]=r),r),Kr=(t,r)=>{if(null!=r){if(r in m&&t in m[r])return m[r][t];var n=pn(r);for(let e=0;e<n.length;e++){var o=function(e,r){if(!qr(e))return null;e=function(e){return Yr[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const o=n.split(".");let t=e;for(let e=0;e<o.length;e++)if("object"==typeof t){if(0<e){const n=o.slice(e,o.length).join(".");if(n in t){t=t[n];break}}t=t[o[e]]}else t=void 0;return t}}(n[e],t);if(o)return Xr(t,r,o)}}};let Yr;const Zr=wt({});function qr(e){return e in Yr}function Qr(t,...r){delete m[t],Zr.update(e=>(e[t]=Ht.all([e[t]||{},...r]),e))}Et([Zr],([e])=>Object.keys(e)),Zr.subscribe(e=>Yr=e);const en={};function tn(e){return en[e]}function rn(e){return null!=e&&pn(e).some(e=>{return null==(e=tn(e))?void 0:e.size})}const nn={};function on(e){if(!rn(e))return e in nn?nn[e]:Promise.resolve();const t=pn(e).map(e=>{var t=tn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return nn[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return en[t].delete(r),0===en[t].size&&delete en[t],e().then(e=>e.default||e)}));return r.then(e=>Qr(n,...e))}})).then(()=>{if(rn(e))return on(e);delete nn[e]}),nn[e]}function sn(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const an={fallbackLocale: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,handleMissingMessage:void 0,ignoreTag:!0};const ln=wt(!1);let un;const cn=wt(null);function hn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function pn(e,t=an.fallbackLocale){e=hn(e);return t?[...new Set([...e,...hn(t)])]:e}function x(){return null!=un?un:void 0}cn.subscribe(e=>{un=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ee=Object.assign(Object.assign({},cn),{set:t=>{if(t&&function(e){if(null!=e){var t=pn(e);for(let e=0;e<t.length;e++){var r=t[e];if(qr(r))return r}}}(t)&&rn(t)){var r=an["loadingDelay"];let e;return"undefined"!=typeof window&&null!=x()&&r?e=window.setTimeout(()=>ln.set(!0),r):ln.set(!0),on(t).then(()=>{cn.set(t)}).finally(()=>{clearTimeout(e),ln.set(!1)})}return cn.set(t)}}),dn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},mn=(e,t)=>{var r=an["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},fn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=mn("number",r)),new Intl.NumberFormat(t,e)}),gn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=mn("date",r):0===Object.keys(e).length&&(e=mn("date","short")),new Intl.DateTimeFormat(t,e)}),bn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=mn("time",r):0===Object.keys(e).length&&(e=mn("time","short")),new Intl.DateTimeFormat(t,e)}),yn=dn((e,t=x())=>new Wr(e,t,an.formats,{ignoreTag:an.ignoreTag})),vn=Et([ee,Zr],()=>(e,t={})=>{var r,n;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:i,locale:s=x(),default:a}=o;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kr(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=an).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!i)return l;let u=l;try{u=yn(l,s).format(i)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),wn=(Et([ee],()=>(e,t)=>((e={})=>{var{locale:t=x()}=e,e=sn(e,["locale"]);return bn(Object.assign({locale:t},e))})(t).format(e)),Et([ee],()=>(e,t)=>((e={})=>{var{locale:t=x()}=e,e=sn(e,["locale"]);return gn(Object.assign({locale:t},e))})(t).format(e)),Et([ee],()=>(e,t)=>((e={})=>{var{locale:t=x()}=e,e=sn(e,["locale"]);return fn(Object.assign({locale:t},e))})(t).format(e)),Et([ee,Zr],()=>(e,t=x())=>Kr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==bt.indexOf(e)&&(t=new mt(t),yt[e]=t,bt.push(e)),yt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),En={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},zh:{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{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:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}},Tn={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:",startedAt:"Started at:",mostRounds:"MostRounds",betCount:"BetCount",maxWinStakeRatio:"MaxWinStakeRatio",winStakeRatio:"WinStakeRatio",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},zh:{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscrisă",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Terminat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei în/la câștig",winStakeRatio:"Pondere a mizei în/la câștig",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{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şlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"RecuentoDeApuestas",maxWinStakeRatio:"RatioDeGananciaMáxima",winStakeRatio:"RatioDeGanancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"MaxWinStakeRatio",winStakeRatio:"WinStakeRatio",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function xn(r){let n,o,i,s,a,l,u;return{c(){n=O("div"),o=k(r[12]),M(n,"class",i="Status "+r[14]),M(n,"part",s="Status "+r[14])},m(e,t){$(e,n,t),F(n,o),l||(u=H(a=r[17].call(null,n)),l=!0)},p(e,t){4096&t&&N(o,e[12]),16384&t&&i!==(i="Status "+e[14])&&M(n,"class",i),16384&t&&s!==(s="Status "+e[14])&&M(n,"part",s)},d(e){e&&I(n),l=!1,u()}}}function Sn(e){let r,n=e[5]&&An(e);return{c(){n&&n.c(),r=G()},m(e,t){n&&n.m(e,t),$(e,r,t)},p(e,t){e[5]?n?n.p(e,t):((n=An(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&I(r)}}}function An(e){let r,n,o=e[15]("tournamentsThumbnail.enrolled")+"";return{c(){r=O("div"),n=k(o),M(r,"class","Enrolled"),M(r,"part","Enrolled")},m(e,t){$(e,r,t),F(r,n)},p(e,t){32768&t&&o!==(o=e[15]("tournamentsThumbnail.enrolled")+"")&&N(n,o)},d(e){e&&I(r)}}}function _n(r){let n,o,i,s,a;return{c(){M(n=O("div"),"class",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),d(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){$(e,n,t),s||(a=H(r[17].call(null,n)),s=!0)},p(e,t){1&t&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"class",o),1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"part",i)},d(e){e&&I(n),s=!1,a()}}}function Bn(r){let n,o,i,s,a;return{c(){M(n=O("div"),"class",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),d(n,"background-image","url('"+r[4]+"')")},m(e,t){$(e,n,t),s||(a=H(r[17].call(null,n)),s=!0)},p(e,t){1&t&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"class",o),1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"part",i),16&t&&d(n,"background-image","url('"+e[4]+"')")},d(e){e&&I(n),s=!1,a()}}}function Pn(r){let n,o,i,s,a;return{c(){n=O("div"),o=k(r[10]),M(n,"class","Date"),M(n,"part","Date")},m(e,t){$(e,n,t),F(n,o),s||(a=H(i=r[16].call(null,n,r[2])),s=!0)},p(e,t){1024&t&&N(o,e[10]),i&&_(i.update)&&4&t&&i.update.call(null,e[2])},d(e){e&&I(n),s=!1,a()}}}function Cn(r){let n,o,i,s,a,l,u,c,h,p,d,m,f,g,b,y,v,w,E,T,x,S,A=r[15]("tournamentsThumbnail.scoreCriteria")+"",_=r[15]("tournamentsThumbnail.minbet")+"",B=r[15]("tournamentsThumbnail.seegames")+"",P=r[15]("tournamentsThumbnail.here")+"";return{c(){n=O("div"),o=O("p"),i=k(A),s=k(":\n \n "),a=O("span"),l=k(r[13]),c=k("\n ("),h=k(_),p=R(),d=k(r[6]),m=k(")"),f=R(),g=O("div"),b=O("p"),y=k(B),v=R(),w=O("a"),E=k(P),M(a,"part","ScoreCriteriaSpan"),M(o,"part","ScoreCriteriaP"),M(n,"class","ScoreCriteria"),M(n,"part","ScoreCriteria"),M(w,"part","GamesAnchor"),M(w,"href",r[8]),M(w,"target",T="true"===r[9]?"_self":"_blank"),M(b,"part","GamesP"),M(g,"class","Games"),M(g,"part","Games")},m(e,t){$(e,n,t),F(n,o),F(o,i),F(o,s),F(o,a),F(a,l),F(o,c),F(o,h),F(o,p),F(o,d),F(o,m),$(e,f,t),$(e,g,t),F(g,b),F(b,y),F(b,v),F(b,w),F(w,E),x||(S=[H(u=r[18].call(null,a)),L(w,"click",r[24])],x=!0)},p(e,t){32768&t&&A!==(A=e[15]("tournamentsThumbnail.scoreCriteria")+"")&&N(i,A),8192&t&&N(l,e[13]),32768&t&&_!==(_=e[15]("tournamentsThumbnail.minbet")+"")&&N(h,_),64&t&&N(d,e[6]),32768&t&&B!==(B=e[15]("tournamentsThumbnail.seegames")+"")&&N(y,B),32768&t&&P!==(P=e[15]("tournamentsThumbnail.here")+"")&&N(E,P),256&t&&M(w,"href",e[8]),512&t&&T!==(T="true"===e[9]?"_self":"_blank")&&M(w,"target",T)},d(e){e&&I(n),e&&I(f),e&&I(g),x=!1,C(S)}}}function Hn(e){let r,n,o,i,s,a,l,u,c,h=e[0]&&xn(e),p="true"==e[7]&&Sn(e);function d(e){return e[4]?Bn:_n}let m=d(e),f=m(e),g=e[2]&&Pn(e),b=e[11]&&Cn(e);return{c(){r=O("div"),h&&h.c(),n=R(),p&&p.c(),o=R(),f.c(),i=R(),s=O("div"),a=O("div"),l=k(e[1]),u=R(),g&&g.c(),c=R(),b&&b.c(),this.c=y,M(a,"class","Title"),M(a,"part","Title"),M(s,"class","Details"),M(s,"part","Details"),M(r,"class","Thumbnail"),M(r,"part","Thumbnail")},m(e,t){$(e,r,t),h&&h.m(r,null),F(r,n),p&&p.m(r,null),F(r,o),f.m(r,null),F(r,i),F(r,s),F(s,a),F(a,l),F(s,u),g&&g.m(s,null),F(s,c),b&&b.m(s,null)},p(e,[t]){e[0]?h?h.p(e,t):((h=xn(e)).c(),h.m(r,n)):h&&(h.d(1),h=null),"true"==e[7]?p?p.p(e,t):((p=Sn(e)).c(),p.m(r,o)):p&&(p.d(1),p=null),m===(m=d(e))&&f?f.p(e,t):(f.d(1),(f=m(e))&&(f.c(),f.m(r,i))),2&t&&N(l,e[1]),e[2]?g?g.p(e,t):((g=Pn(e)).c(),g.m(s,c)):g&&(g.d(1),g=null),e[11]?b?b.p(e,t):((b=Cn(e)).c(),b.m(s,null)):b&&(b.d(1),b=null)},i:y,o:y,d(e){e&&I(r),h&&h.d(),p&&p.d(),f.d(),g&&g.d(),b&&b.d()}}}function Fn(t,e,o){let i,{session:r=""}=(te(t,vn,e=>o(15,i=e)),e),{userid:n=""}=e,{title:s=""}=e,{startdate:a=""}=e,{status:l=""}=e,{tourid:u=""}=e,{thumbnail:c=""}=e,{userenrolled:h=""}=e,{scorecriteria:p=""}=e,{minbetcount:d=""}=e,{showenrolled:m="false"}=e,{gameurl:f=""}=e,{lang:g="en"}=e,{keepbrowsercontext:b="false"}=e,y="",v=!1,w="",E="",T="";Object.keys(Tn).forEach(e=>{Qr(e,Tn[e])});const x=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&o(11,v=!0),e.data.type=="TournamentStatus_"+u&&o(0,l=e.data.status))},S=()=>{let e=new Date(a),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),r=e.getDate(),n=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});o(10,y=r+" "+i("tournamentsThumbnail."+t)+", "+i("Running"===l?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+n)},A=()=>{"Unstarted"==l&&(o(12,w=i("tournamentsThumbnail.scheduled")),o(14,T="StatusUnstarted")),"Running"==l&&(o(12,w=i("tournamentsThumbnail.ongoing")),o(14,T="StatusRunning")),"Closed"!=l&&"Closing"!=l||o(12,w=i("tournamentsThumbnail.finished")),"Closed"==l&&o(14,T="StatusClosed"),"Closing"==l&&o(14,T="StatusClosing")},_=()=>{"BetCount"==p&&o(13,E=i("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==p&&o(13,E=i("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==p&&o(13,E=i("tournamentsThumbnail.winStakeRatio"))},B=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};re(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));return t.$$set=e=>{"session"in e&&o(20,r=e.session),"userid"in e&&o(21,n=e.userid),"title"in e&&o(1,s=e.title),"startdate"in e&&o(2,a=e.startdate),"status"in e&&o(0,l=e.status),"tourid"in e&&o(3,u=e.tourid),"thumbnail"in e&&o(4,c=e.thumbnail),"userenrolled"in e&&o(5,h=e.userenrolled),"scorecriteria"in e&&o(22,p=e.scorecriteria),"minbetcount"in e&&o(6,d=e.minbetcount),"showenrolled"in e&&o(7,m=e.showenrolled),"gameurl"in e&&o(8,f=e.gameurl),"lang"in e&&o(23,g=e.lang),"keepbrowsercontext"in e&&o(9,b=e.keepbrowsercontext)},t.$$.update=()=>{var e;1048576&t.$$.dirty&&r&&(0<r.length&&"false"!=r?o(11,v=!0):o(11,v=!1)),1&t.$$.dirty&&l&&A(),8388610&t.$$.dirty&&g&&s&&(e=g,ee.set(e),_(),A(),a&&S()),4&t.$$.dirty&&a&&S(),4194304&t.$$.dirty&&p&&_()},[l,s,a,u,c,h,d,m,f,b,y,v,w,E,T,i,S,A,_,B,r,n,p,g,()=>B()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends le{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:'Roboto'}a{color:var(--emfe-w-color-green, #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:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{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>",ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Fn,Hn,B,{session:20,userid:21,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:22,minbetcount:6,showenrolled:7,gameurl:8,lang:23,keepbrowsercontext:9},null),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext"]}get session(){return this.$$.ctx[20]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[21]}set userid(e){this.$$set({userid:e}),g()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),g()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),g()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),g()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),g()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),g()}get scorecriteria(){return this.$$.ctx[22]}set scorecriteria(e){this.$$set({scorecriteria:e}),g()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),g()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),g()}get lang(){return this.$$.ctx[23]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}});const $n={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},zh:{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămas",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function In(r){let n,o,i,s,a,l,u,c,h,p,d,m,f,g=r[9](r[0])+"",b=r[9](r[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Rn:0<e[4]?kn:On}let v=y(r),w=v(r);function E(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Nn:0<e[4]?Mn:0<e[3]?Ln:void 0}let T=E(r),x=T&&T(r);return{c(){n=O("div"),o=O("div"),i=k(g),s=R(),a=O("div"),l=k(b),u=R(),c=O("div"),h=O("div"),w.c(),p=R(),x&&x.c(),M(o,"class","StartDate"),M(o,"part","StartDate"),M(a,"class","EndDate"),M(a,"part","EndDate"),M(n,"class","TournamentDates"),M(n,"part","TournamentDates"),M(h,"class","ProgressBar"),M(h,"part","ProgressBar"),M(c,"class","ProgressBarWrapper"),M(c,"part","ProgressBarWrapper")},m(e,t){$(e,n,t),F(n,o),F(o,i),F(n,s),F(n,a),F(a,l),$(e,u,t),$(e,c,t),F(c,h),w.m(h,null),F(h,p),x&&x.m(h,null),m||(f=H(d=r[8].call(null,c)),m=!0)},p(e,t){1&t&&g!==(g=e[9](e[0])+"")&&N(i,g),2&t&&b!==(b=e[9](e[1])+"")&&N(l,b),v===(v=y(e))&&w?w.p(e,t):(w.d(1),(w=v(e))&&(w.c(),w.m(h,p))),T===(T=E(e))&&x?x.p(e,t):(x&&x.d(1),(x=T&&T(e))&&(x.c(),x.m(h,null)))},d(e){e&&I(n),e&&I(u),e&&I(c),w.d(),x&&x.d(),m=!1,f()}}}function On(e){let r;return{c(){M(r=O("div"),"class","ProgressBarFill"),M(r,"part","ProgressBarFill"),d(r,"width",e[6]()+"%")},m(e,t){$(e,r,t)},p(e,t){64&t&&d(r,"width",e[6]()+"%")},d(e){e&&I(r)}}}function kn(e){let r;return{c(){M(r=O("div"),"class","ProgressBarFillStarting"),M(r,"part","ProgressBarFillStarting")},m(e,t){$(e,r,t)},p:y,d(e){e&&I(r)}}}function Rn(e){let r;return{c(){M(r=O("div"),"class","ProgressBarFillEnd"),M(r,"part","ProgressBarFillEnd")},m(e,t){$(e,r,t)},p:y,d(e){e&&I(r)}}}function Ln(e){let r,n,o,i,s=e[7]("tournamentsDuration.left")+"";return{c(){r=O("div"),n=k(e[5]),o=R(),i=k(s),M(r,"class","Remaining"),M(r,"part","Remaining")},m(e,t){$(e,r,t),F(r,n),F(r,o),F(r,i)},p(e,t){32&t&&N(n,e[5]),128&t&&s!==(s=e[7]("tournamentsDuration.left")+"")&&N(i,s)},d(e){e&&I(r)}}}function Mn(e){let r,n,o,i,s=e[7]("tournamentsDuration.starting")+"",a=e[10](e[4])+"";return{c(){r=O("div"),n=k(s),o=R(),i=k(a),M(r,"class","Remaining"),M(r,"part","Remaining")},m(e,t){$(e,r,t),F(r,n),F(r,o),F(r,i)},p(e,t){128&t&&s!==(s=e[7]("tournamentsDuration.starting")+"")&&N(n,s),16&t&&a!==(a=e[10](e[4])+"")&&N(i,a)},d(e){e&&I(r)}}}function Nn(e){let r,n,o=e[7]("tournamentsDuration.finished")+"";return{c(){r=O("div"),n=k(o),M(r,"class","Finished"),M(r,"part","Finished")},m(e,t){$(e,r,t),F(r,n)},p(e,t){128&t&&o!==(o=e[7]("tournamentsDuration.finished")+"")&&N(n,o)},d(e){e&&I(r)}}}function Dn(e){let r,n=e[0]&&e[1]&&In(e);return{c(){r=O("div"),n&&n.c(),this.c=y,M(r,"class","TournamentDuration"),M(r,"part","TournamentDuration")},m(e,t){$(e,r,t),n&&n.m(r,null)},p(e,[t]){e[0]&&e[1]?n?n.p(e,t):((n=In(e)).c(),n.m(r,null)):n&&(n.d(1),n=null)},i:y,o:y,d(e){e&&I(r),n&&n.d()}}}function zn(e,t,r){let n,o,{startdate:i=""}=(te(e,vn,e=>r(7,o=e)),t),{enddate:s=""}=t,{status:a=""}=t,{lang:l="en"}=t,u="",c="",h="";Object.keys($n).forEach(e=>{Qr(e,$n[e])});const p=e=>new Date(e).getTime(),d=(e,t)=>(p(t)-p(e))/6e4,m=()=>{var e=new Date;r(3,u=d(e,s)),r(4,c=d(e,i)),r(5,h=f(u))},f=e=>{if(e<1440){const t=e%60;return[e/60,t,60*(t-Math.floor(t))].map(e=>{e=Math.floor(e);return e<10?"0"+e:""+e}).join(":")}return Math.ceil(e/1440)+" "+o("tournamentsDuration.days")};return re(()=>{const e=setInterval(()=>{i&&s&&m()},1e3);return()=>clearInterval(e)}),e.$$set=e=>{"startdate"in e&&r(0,i=e.startdate),"enddate"in e&&r(1,s=e.enddate),"status"in e&&r(2,a=e.status),"lang"in e&&r(11,l=e.lang)},e.$$.update=()=>{11&e.$$.dirty&&r(6,n=()=>{if(u<=0)return 100;var e=d(i,s),t=100/e;return Math.floor((e-u)*t)}),11&e.$$.dirty&&i&&s&&m(),2048&e.$$.dirty&&l&&m(),2056&e.$$.dirty&&l&&f(u)},[i,s,a,u,c,h,n,o,m,e=>{let t=new Date(e),r=new Intl.DateTimeFormat(l,{month:"long"}).format(t);return`${t.getDate()} ${r}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+t.getUTCFullYear()},f,l]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends le{constructor(e){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:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}</style>",ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},zn,Dn,B,{startdate:0,enddate:1,status:2,lang:11},null),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),g()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),g()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),g()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),g()}});const Un={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},zh:{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"place"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function jn(e,t,r){const n=e.slice();return n[4]=t[r],n[6]=r,n}function Gn(t){let n,o=t[0],i=[];for(let e=0;e<o.length;e+=1)i[e]=Vn(jn(t,o,e));let s=null;return o.length||(s=Jn(t)),{c(){n=O("div");for(let e=0;e<i.length;e+=1)i[e].c();s&&s.c(),M(n,"class","Prizes"),M(n,"part","Prizes")},m(e,t){$(e,n,t);for(let e=0;e<i.length;e+=1)i[e].m(n,null);s&&s.m(n,null)},p(t,r){if(3&r){let e;for(o=t[0],e=0;e<o.length;e+=1){const s=jn(t,o,e);i[e]?i[e].p(s,r):(i[e]=Vn(s),i[e].c(),i[e].m(n,null))}for(;e<i.length;e+=1)i[e].d(1);i.length=o.length,!o.length&&s?s.p(t,r):o.length?s&&(s.d(1),s=null):((s=Jn(t)).c(),s.m(n,null))}},d(e){e&&I(n),j(i,e),s&&s.d()}}}function Jn(e){let r,n,o=e[1]("tournamentsPrizes.noprizes")+"";return{c(){r=O("p"),n=k(o)},m(e,t){$(e,r,t),F(r,n)},p(e,t){2&t&&o!==(o=e[1]("tournamentsPrizes.noprizes")+"")&&N(n,o)},d(e){e&&I(r)}}}function Vn(e){let r,n,o,i,s,a,l,u,c,t,h,p=(1<e[4].count?e[4].rank+"~"+(e[4].rank+e[4].count-1):e[4].rank)+"",d=e[1]("tournamentsPrizes.place")+"",m=e[4].name+"";return{c(){r=O("div"),n=O("p"),o=O("span"),i=k(p),s=R(),a=k(d),l=k(": "),u=k(m),c=R(),M(o,"class","PrizeRank"),M(o,"part","PrizeRank"),M(n,"class","PrizeText"),M(n,"part","PrizeText"),M(r,"class",t="Prize Prize"+e[6]),M(r,"part",h="Prize Prize"+e[6])},m(e,t){$(e,r,t),F(r,n),F(n,o),F(o,i),F(n,s),F(n,a),F(n,l),F(n,u),F(r,c)},p(e,t){1&t&&p!==(p=(1<e[4].count?e[4].rank+"~"+(e[4].rank+e[4].count-1):e[4].rank)+"")&&N(i,p),2&t&&d!==(d=e[1]("tournamentsPrizes.place")+"")&&N(a,d),1&t&&m!==(m=e[4].name+"")&&N(u,m)},d(e){e&&I(r)}}}function Wn(e){let r,n,o,i,s,a,l,u=e[1]("tournamentsPrizes.prizes")+"",c=e[0]&&Gn(e);return{c(){r=O("div"),n=O("div"),(o=O("span")).innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',i=R(),s=O("p"),a=k(u),l=R(),c&&c.c(),this.c=y,M(o,"class","TournamentPrizesIconWrapper"),M(o,"part","TournamentPrizesIconWrapper"),M(s,"class","PrizesTitle"),M(s,"part","PrizesTitle"),M(n,"class","TournamentPrizesIconSection"),M(n,"part","TournamentPrizesIconSection"),M(r,"class","TournamentPrizes"),M(r,"part","TournamentPrizes")},m(e,t){$(e,r,t),F(r,n),F(n,o),F(n,i),F(n,s),F(s,a),F(r,l),c&&c.m(r,null)},p(e,[t]){2&t&&u!==(u=e[1]("tournamentsPrizes.prizes")+"")&&N(a,u),e[0]?c?c.p(e,t):((c=Gn(e)).c(),c.m(r,null)):c&&(c.d(1),c=null)},i:y,o:y,d(e){e&&I(r),c&&c.d()}}}function Xn(e,t,r){let n;te(e,vn,e=>r(1,n=e));let o,{tourid:i=""}=t;Object.keys(Un).forEach(e=>{Qr(e,Un[e])});const s=e=>{e.data&&e.data.type=="TournamentPrizes_"+i&&r(0,o=e.data.prizes)};return re(()=>(window.addEventListener("message",s,!1),()=>{window.removeEventListener("message",s)})),e.$$set=e=>{"tourid"in e&&r(2,i=e.tourid)},[o,n,i]}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends le{constructor(e){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:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}</style>",ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Xn,Wn,B,{tourid:2},null),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(e){this.$$set({tourid:e}),g()}});const Kn={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Reproducir ahora"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function Yn(e,t,r){const n=e.slice();return n[38]=t[r],n[40]=r,n}function Zn(r){let o,n,i,s,a,l,u,c,h=r[0],p=[];for(let e=0;e<h.length;e+=1)p[e]=qn(Yn(r,h,e));return{c(){(o=O("div")).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>',n=R(),i=O("main"),s=O("div");for(let e=0;e<p.length;e+=1)p[e].c();a=R(),(l=O("div")).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>',M(o,"class","SliderNavButton"),M(o,"part","SliderNavButton"),J(o,"disabled",r[6]),M(s,"class","items"),M(s,"part","items"),d(s,"transform","translateX("+r[1]+"px)"),M(l,"class","SliderNavButton"),M(l,"part","SliderNavButton"),J(l,"disabled",r[7])},m(e,t){$(e,o,t),$(e,n,t),$(e,i,t),F(i,s);for(let e=0;e<p.length;e+=1)p[e].m(s,null);r[22](s),$(e,a,t),$(e,l,t),u||(c=[L(o,"click",r[18]),L(l,"click",r[23])],u=!0)},p(t,r){if(64&r[0]&&J(o,"disabled",t[6]),5913&r[0]){let e;for(h=t[0],e=0;e<h.length;e+=1){var n=Yn(t,h,e);p[e]?p[e].p(n,r):(p[e]=qn(n),p[e].c(),p[e].m(s,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=h.length}2&r[0]&&d(s,"transform","translateX("+t[1]+"px)"),128&r[0]&&J(l,"disabled",t[7])},d(e){e&&I(o),e&&I(n),e&&I(i),j(p,e),r[22](null),e&&I(a),e&&I(l),u=!1,C(c)}}}function qn(r){let n,o,i,s,a,l,u,c,h,p,d,m,f,g=r[8]("gamesSlider.playNow")+"";function b(){return r[19](r[38])}function y(){return r[20](r[40])}return{c(){n=O("div"),o=O("span"),i=k(g),l=R(),u=O("img"),d=R(),M(o,"class",s="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),M(o,"part",a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),z(u.src,c=r[38].thumbnail)||M(u,"src",c),M(u,"width","132px"),M(u,"height","100px"),M(u,"alt",h=r[38].name),M(u,"title",p=r[38].name),M(n,"class","item"),M(n,"part","item")},m(e,t){$(e,n,t),F(n,o),F(o,i),F(n,l),F(n,u),F(n,d),m||(f=[L(n,"click",b),L(n,"mouseenter",y),L(n,"mouseleave",r[21])],m=!0)},p(e,t){r=e,256&t[0]&&g!==(g=r[8]("gamesSlider.playNow")+"")&&N(i,g),24&t[0]&&s!==(s="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&M(o,"class",s),24&t[0]&&a!==(a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&M(o,"part",a),1&t[0]&&!z(u.src,c=r[38].thumbnail)&&M(u,"src",c),1&t[0]&&h!==(h=r[38].name)&&M(u,"alt",h),1&t[0]&&p!==(p=r[38].name)&&M(u,"title",p)},d(e){e&&I(n),m=!1,C(f)}}}function Qn(r){let n,o=r[0]&&Zn(r);return{c(){n=O("div"),o&&o.c(),this.c=y,M(n,"class","TournamentsGamesSlider"),M(n,"part","TournamentsGamesSlider")},m(e,t){$(e,n,t),o&&o.m(n,null),r[24](n)},p(e,t){e[0]?o?o.p(e,t):((o=Zn(e)).c(),o.m(n,null)):o&&(o.d(1),o=null)},i:y,o:y,d(e){e&&I(n),o&&o.d(),r[24](null)}}}function eo(e,t,r){let n,o,i;te(e,vn,e=>r(8,i=e));let s,a,l,u,{tournamenturl:c=""}=t,{scrollby:h="3"}=t,{pagfactor:p="175"}=t,{lang:d=""}=t,m=window.navigator.userAgent,f=[],g=0,b=null,y=null,v=!1,w=0;Object.keys(Kn).forEach(e=>{Qr(e,Kn[e])});const E=e=>{r(3,v=!0),r(4,l=e)},T=()=>{r(3,v=!1),r(4,l=-1)},x=e=>{e=(e.touches||e.originalEvent.touches)[0];b=e.clientX,y=e.clientY},S=e=>{var t;b&&y&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=b-t,e=y-e,Math.abs(t)>Math.abs(e)&&A(0<t?1:-1),b=null,y=null)},A=e=>{0<e&&!o?(r(1,g-=s),r(1,g=g<w?w:g)):e<0&&!n&&(r(1,g+=s),r(1,g=0<g?0:g))},_=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return re(()=>(s=parseInt(h,10)*parseInt(p,10),()=>{a.removeEventListener("touchstart",x),a.removeEventListener("touchmove",S)})),e.$$set=e=>{"tournamenturl"in e&&r(14,c=e.tournamenturl),"scrollby"in e&&r(15,h=e.scrollby),"pagfactor"in e&&r(13,p=e.pagfactor),"lang"in e&&r(16,d=e.lang)},e.$$.update=()=>{if(2&e.$$.dirty[0]&&r(6,n=0===g),131074&e.$$.dirty[0]&&r(7,o=g<=w),16384&e.$$.dirty[0]&&c){let e=new URL(c),t=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${g})`),e.searchParams.append("fields","games(id,name,thumbnail)"),e.searchParams.append("language",d),e.searchParams.append("platform",wn(m)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(0,f=e.item.games.items),e.item.games.total})}4&e.$$.dirty[0]&&a&&(a.addEventListener("touchstart",x,{passive:!0}),a.addEventListener("touchmove",S,{passive:!0})),1&e.$$.dirty[0]&&f.length&&setTimeout(()=>{r(17,w=-1*(u.scrollWidth-u.clientWidth)),r(13,p=new String(u.scrollWidth/f.length)),s=parseInt(h,10)*parseFloat(p,2).toFixed(2)},1e3)},r(1,g=0),[f,g,a,v,l,u,n,o,i,E,T,A,_,p,c,h,d,w,()=>A(-1),e=>_(e),e=>E(e),()=>T(),function(e){K[e?"unshift":"push"](()=>{u=e,r(5,u)})},()=>A(1),function(e){K[e?"unshift":"push"](()=>{a=e,r(2,a)})}]}function to(e){let r,n,o,i,s,a,l,u,c,h=e[10]&&no(e);function p(e){return e[10]?"Closed"!=e[19]&&"Closing"!=e[19]?so:"true"==e[3]?io:void 0:ao}let d=p(e),m=d&&d(e),f=(e[13]||e[15])&&fo(e),g="true"==e[4]&&go(e);return{c(){r=O("div"),n=O("casino-tournaments-thumbnail"),o=R(),h&&h.c(),i=R(),s=O("div"),m&&m.c(),a=R(),f&&f.c(),l=R(),g&&g.c(),b(n,"session",e[0]),b(n,"userid",e[1]),b(n,"title",e[16]),b(n,"status",e[19]),b(n,"startdate",e[17]),b(n,"tourid",e[20]),b(n,"scorecriteria",e[23]),b(n,"minbetcount",e[24]),b(n,"thumbnail",e[21]),b(n,"userenrolled",e[22]),b(n,"showenrolled",e[5]),b(n,"gameurl",e[26]),b(n,"lang",e[8]),b(n,"keepbrowsercontext",e[9]),b(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),M(s,"class","TournamentButtons"),M(s,"part","TournamentButtons"),M(r,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")),M(r,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){$(e,r,t),F(r,n),F(r,o),h&&h.m(r,null),F(r,i),F(r,s),m&&m.m(s,null),F(r,a),f&&f.m(r,null),F(r,l),g&&g.m(r,null)},p(e,t){1&t[0]&&b(n,"session",e[0]),2&t[0]&&b(n,"userid",e[1]),65536&t[0]&&b(n,"title",e[16]),524288&t[0]&&b(n,"status",e[19]),131072&t[0]&&b(n,"startdate",e[17]),1048576&t[0]&&b(n,"tourid",e[20]),8388608&t[0]&&b(n,"scorecriteria",e[23]),16777216&t[0]&&b(n,"minbetcount",e[24]),2097152&t[0]&&b(n,"thumbnail",e[21]),4194304&t[0]&&b(n,"userenrolled",e[22]),32&t[0]&&b(n,"showenrolled",e[5]),67108864&t[0]&&b(n,"gameurl",e[26]),256&t[0]&&b(n,"lang",e[8]),512&t[0]&&b(n,"keepbrowsercontext",e[9]),e[10]?h?h.p(e,t):((h=no(e)).c(),h.m(r,i)):h&&(h.d(1),h=null),d===(d=p(e))&&m?m.p(e,t):(m&&m.d(1),(m=d&&d(e))&&(m.c(),m.m(s,null))),e[13]||e[15]?f?f.p(e,t):((f=fo(e)).c(),f.m(r,l)):f&&(f.d(1),f=null),"true"==e[4]?g?g.p(e,t):((g=go(e)).c(),g.m(r,null)):g&&(g.d(1),g=null),134217920&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"class",u),134217920&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"part",c)},d(e){e&&I(r),h&&h.d(),m&&m.d(),f&&f.d(),g&&g.d()}}}function ro(e){let r,n,o,i;return{c(){r=O("div"),(n=O("div")).innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> \n <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> \n <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> \n <div class="ph-col-4" part="ph-col-4"></div> \n <div class="ph-col-8 empty" part="ph-col-8 empty"></div> \n <div class="ph-col-6" part="ph-col-6"></div> \n <div class="ph-col-6 empty" part="ph-col-6 empty"></div> \n <div class="ph-col-12" part="ph-col-12"></div></div></div>',M(n,"class","ph-item"),M(n,"part","ph-item"),M(r,"class",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")),M(r,"part",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){$(e,r,t),F(r,n)},p(e,t){134217920&t[0]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"class",o),134217920&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"part",i)},d(e){e&&I(r)}}}function no(e){let r,n,o=e[20]&&oo(e);return{c(){o&&o.c(),r=R(),b(n=O("casino-tournaments-thumbnail-duration"),"status",e[19]),b(n,"startdate",e[17]),b(n,"lang",e[8]),b(n,"enddate",e[18]),b(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){o&&o.m(e,t),$(e,r,t),$(e,n,t)},p(e,t){e[20]?o?o.p(e,t):((o=oo(e)).c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),524288&t[0]&&b(n,"status",e[19]),131072&t[0]&&b(n,"startdate",e[17]),256&t[0]&&b(n,"lang",e[8]),262144&t[0]&&b(n,"enddate",e[18])},d(e){o&&o.d(e),e&&I(r),e&&I(n)}}}function oo(r){let n,o,i,s;return{c(){b(n=O("casino-tournaments-thumbnail-prizes"),"tourid",r[20]),b(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){$(e,n,t),i||(s=H(o=r[33].call(null,n,r[20])),i=!0)},p(e,t){1048576&t[0]&&b(n,"tourid",e[20]),o&&_(o.update)&&1048576&t[0]&&o.update.call(null,e[20])},d(e){e&&I(n),i=!1,s()}}}function io(r){let n,o,i,s,a=r[28]("tournamentsThController.details")+"";return{c(){n=O("button"),o=k(a),M(n,"class","DetailsLargeButton"),M(n,"part","DetailsLargeButton")},m(e,t){$(e,n,t),F(n,o),i||(s=L(n,"click",r[46]),i=!0)},p(e,t){268435456&t[0]&&a!==(a=e[28]("tournamentsThController.details")+"")&&N(o,a)},d(e){e&&I(n),i=!1,s()}}}function so(e){let r,n,o="true"==e[3]&&lo(e);function i(e){return 1==e[22]?co:uo}let s=i(e),a=s(e);return{c(){o&&o.c(),r=R(),a.c(),n=G()},m(e,t){o&&o.m(e,t),$(e,r,t),a.m(e,t),$(e,n,t)},p(e,t){"true"==e[3]?o?o.p(e,t):((o=lo(e)).c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),s===(s=i(e))&&a?a.p(e,t):(a.d(1),(a=s(e))&&(a.c(),a.m(n.parentNode,n)))},d(e){o&&o.d(e),e&&I(r),a.d(e),e&&I(n)}}}function ao(r){let n,o,i,s,a,l,u,c=r[28]("tournamentsThController.login")+"",h=r[28]("tournamentsThController.register")+"";return{c(){n=O("button"),o=k(c),i=R(),s=O("button"),a=k(h),M(n,"class","LoginButton"),M(n,"part","LoginButton"),M(s,"class","RegisterButton"),M(s,"part","RegisterButton")},m(e,t){$(e,n,t),F(n,o),$(e,i,t),$(e,s,t),F(s,a),l||(u=[L(n,"click",r[42]),L(s,"click",r[43])],l=!0)},p(e,t){268435456&t[0]&&c!==(c=e[28]("tournamentsThController.login")+"")&&N(o,c),268435456&t[0]&&h!==(h=e[28]("tournamentsThController.register")+"")&&N(a,h)},d(e){e&&I(n),e&&I(i),e&&I(s),l=!1,C(u)}}}function lo(r){let n,o,i,s,a=r[28]("tournamentsThController.details")+"";return{c(){n=O("button"),o=k(a),M(n,"class","DetailsButton"),M(n,"part","DetailsButton")},m(e,t){$(e,n,t),F(n,o),i||(s=L(n,"click",r[44]),i=!0)},p(e,t){268435456&t[0]&&a!==(a=e[28]("tournamentsThController.details")+"")&&N(o,a)},d(e){e&&I(n),i=!1,s()}}}function uo(r){let n,o,i,s,a;function l(e){return 1==e[12]?po:ho}let u=l(r),c=u(r);return{c(){n=O("button"),c.c(),M(n,"class",o="JoinButton "+(r[7]?"JoinButtonFullSize":"")),M(n,"part",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[13]},m(e,t){$(e,n,t),c.m(n,null),s||(a=L(n,"click",r[45]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(n,null))),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&M(n,"class",o),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&M(n,"part",i),8192&t[0]&&(n.disabled=e[13])},d(e){e&&I(n),c.d(),s=!1,a()}}}function co(e){let r,n="true"==e[3]&&mo(e);return{c(){n&&n.c(),r=G()},m(e,t){n&&n.m(e,t),$(e,r,t)},p(e,t){"true"==e[3]?n?n.p(e,t):((n=mo(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&I(r)}}}function ho(e){let r,n,o,i,s,a,l,u,c,h=e[28]("tournamentsThController.join")+"";return{c(){r=O("span"),n=k(h),o=R(),i=t("svg"),s=t("defs"),a=t("style"),l=k(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("g"),c=t("path"),M(r,"part","JoinButtonSpan"),M(c,"class","a"),M(c,"part","a JoinButtonSvgA"),M(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),M(c,"transform","translate(26 26) rotate(180)"),M(u,"transform","translate(26 26) rotate(180)"),M(i,"part","JoinButtonSvg"),M(i,"xmlns","http://www.w3.org/2000/svg"),M(i,"width","26"),M(i,"height","26"),M(i,"viewBox","0 0 26 26")},m(e,t){$(e,r,t),F(r,n),$(e,o,t),$(e,i,t),F(i,s),F(s,a),F(a,l),F(i,u),F(u,c)},p(e,t){268435456&t[0]&&h!==(h=e[28]("tournamentsThController.join")+"")&&N(n,h)},d(e){e&&I(r),e&&I(o),e&&I(i)}}}function po(e){let r,n;return{c(){r=t("svg"),M(n=t("circle"),"cx","20"),M(n,"cy","20"),M(n,"r","18"),M(r,"class","spinner"),M(r,"part","spinner")},m(e,t){$(e,r,t),F(r,n)},p:y,d(e){e&&I(r)}}}function mo(e){let r,n,o=e[28]("tournamentsThController.enrolled")+"";return{c(){r=O("button"),n=k(o),M(r,"class","EnrolledButton"),M(r,"part","EnrolledButton"),r.disabled=!0},m(e,t){$(e,r,t),F(r,n)},p(e,t){268435456&t[0]&&o!==(o=e[28]("tournamentsThController.enrolled")+"")&&N(n,o)},d(e){e&&I(r)}}}function fo(e){let r,n,o,i,s=e[28]("tournamentsThController.joinerror")+"";return{c(){r=O("span"),n=k(s),o=R(),i=k(e[14]),M(r,"class","ErrorText"),M(r,"part","ErrorText")},m(e,t){$(e,r,t),F(r,n),F(r,o),F(r,i)},p(e,t){268435456&t[0]&&s!==(s=e[28]("tournamentsThController.joinerror")+"")&&N(n,s),16384&t[0]&&N(i,e[14])},d(e){e&&I(r)}}}function go(e){let r;return{c(){b(r=O("casino-tournaments-thumbnail-games-slider"),"tournamenturl",e[2]),b(r,"lang",e[8]),b(r,"scrollby","2"),b(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){$(e,r,t)},p(e,t){4&t[0]&&b(r,"tournamenturl",e[2]),256&t[0]&&b(r,"lang",e[8])},d(e){e&&I(r)}}}function bo(e){let r;function n(e){return e[11]?ro:e[16]?to:void 0}let o=n(e),i=o&&o(e);return{c(){i&&i.c(),r=G(),this.c=y},m(e,t){i&&i.m(e,t),$(e,r,t)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i&&i.d(1),(i=o&&o(e))&&(i.c(),i.m(r.parentNode,r)))},i:y,o:y,d(e){i&&i.d(e),e&&I(r)}}}function yo(e,t,u){let r;te(e,vn,e=>u(28,r=e));let n,o,i,s,c,a,h,l,p,d,{session:m=""}=t,{userid:f=""}=t,{tournamenturl:g=""}=t,b=t["touridx"],{endpoint:y=""}=t,{showdetails:v=""}=t,{showslider:w=""}=t,{showenrolled:R=""}=t,{maxwidth:L=""}=t,{fullsize:M=""}=t,{lang:E=""}=t,{loginevent:T=""}=t,{registerevent:x=""}=t,{loginurl:S=""}=t,{registerurl:A=""}=t,{currency:_=""}=t,{keepbrowsercontext:N="false"}=t,B=!1,P="",C=!0,D=window.navigator.userAgent,H=!1,F=!1,z="There was an error while trying to join the tournament",$=!1,U=[],I=[],j="#",O=!1;var G,J;({withLocale:G,translations:J}={withLocale:"en",translations:{}}),ee.subscribe(e=>{null==e&&(Zr.set(J),ee.set(G))}),Object.keys(En).forEach(e=>{Qr(e,En[e])});const V=e=>{X(e),Q(e),q(this,c)},W=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(10,B=!0),P=r.data.session),"UpdateTournamentView"==r.data.type){var e=r.data.tournamentData;if(c&&c!=e.id)return;V(e)}if(r.data&&r.data.type=="UpdateSingleTournament_"+b){let e=r.data.tournamentData,t=b<4?100*b:300*Math.random()+300;u(27,O=1==b),setTimeout(()=>{u(27,O=!0),u(20,c=e.id),V(e)},t),setTimeout(()=>{u(27,O=!1)},200+t)}},X=e=>{e.state!=s&&(u(19,s=e.state),window.postMessage({type:"TournamentStatus_"+c,status:s},window.location.href))},K=()=>{T&&window.postMessage({type:T,transition:"Login"},window.location.href),S&&(window.location=S)},Y=()=>{x&&window.postMessage({type:x,transition:"Register"},window.location.href),A&&(window.location=A)},k=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},Z=async(t,e)=>{u(13,F=!1),u(15,$=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(12,H=!0);let r=new URL(y+"/bonus/claim"),n=new Headers,o={},i=(r.searchParams.append("language",E),r.searchParams.append("platform",wn(D)),n.append("Content-Type","application/json"),n.append("X-SessionID",P),e&&1<=e.length&&(o={language:E,bonusCode:e[0].code,currency:_}),{method:"PUT",headers:n,body:JSON.stringify(o)});const s=()=>{u(12,H=!1),u(22,h=!0)},a=e=>{u(12,H=!1),e&&u(14,z=e),u(13,F=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(r,i)).json()}catch(e){a()}return e})();if(l)if(1==l.success)s();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(y+"/tournaments/"+c,{headers:{"X-SessionID":m}})).json())?void 0:e.item)&&t.playerEnrolled?s():(a(l.errorMessage),u(15,$=!0),u(13,F=!1))}else a(l.errorMessage)},q=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:U},window.location.href)},Q=e=>{e&&(u(16,n=e.nameOrTitle||""),u(17,o=e.startTime),u(18,i=e.endTime),u(19,s=e.state),u(20,c=e.id),u(21,a=e.thumbnail),u(22,h=e.playerEnrolled||!1),u(23,l=e.scoreCriteria),u(24,p=e.minBetCount),U=e.prizes,u(25,I=e.wallets||[]),u(26,j=e.termsUrl||"#"))};return re(()=>(u(11,C=!1),window.addEventListener("message",W,!1),()=>{window.removeEventListener("message",W)})),e.$$set=e=>{"session"in e&&u(0,m=e.session),"userid"in e&&u(1,f=e.userid),"tournamenturl"in e&&u(2,g=e.tournamenturl),"touridx"in e&&u(34,b=e.touridx),"endpoint"in e&&u(35,y=e.endpoint),"showdetails"in e&&u(3,v=e.showdetails),"showslider"in e&&u(4,w=e.showslider),"showenrolled"in e&&u(5,R=e.showenrolled),"maxwidth"in e&&u(6,L=e.maxwidth),"fullsize"in e&&u(7,M=e.fullsize),"lang"in e&&u(8,E=e.lang),"loginevent"in e&&u(36,T=e.loginevent),"registerevent"in e&&u(37,x=e.registerevent),"loginurl"in e&&u(38,S=e.loginurl),"registerurl"in e&&u(39,A=e.registerurl),"currency"in e&&u(40,_=e.currency),"keepbrowsercontext"in e&&u(9,N=e.keepbrowsercontext)},e.$$.update=()=>{if(1&e.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?(P=m,u(10,B=!0)):u(10,B=!1)),260&e.$$.dirty[0]&&u(41,d=g&&E),1024&e.$$.dirty[1]&&d){u(11,C=!0);{var r=g;u(11,C=!0);let e=new URL(r),t=new Headers;e.searchParams.append("language",E),e.searchParams.append("platform",wn(D)),B&&t.append("X-SessionID",P),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{u(11,C=!1),Q(e.item)})}}},[m,f,g,v,w,R,L,M,E,N,B,C,H,F,z,$,n,o,i,s,c,a,h,l,p,I,j,O,r,K,Y,k,Z,q,b,y,T,x,S,A,_,d,()=>K(),()=>Y(),()=>k(c),()=>Z(c,I),()=>k(c)]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends le{constructor(e){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:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);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:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem .5rem;color:var(--emfe-w-color-white, #FFFFFF);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>",ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},eo,Qn,B,{tournamenturl:14,scrollby:15,pagfactor:13,lang:16},null,[-1,-1]),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[14]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),g()}get pagfactor(){return this.$$.ctx[13]}set pagfactor(e){this.$$set({pagfactor:e}),g()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),g()}});class vo extends le{constructor(e){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:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 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:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}</style>',ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},yo,bo,B,{session:0,userid:1,tournamenturl:2,touridx:34,endpoint:35,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:36,registerevent:37,loginurl:38,registerurl:39,currency:40,keepbrowsercontext:9},null,[-1,-1]),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get touridx(){return this.$$.ctx[34]}set touridx(e){this.$$set({touridx:e}),g()}get endpoint(){return this.$$.ctx[35]}set endpoint(e){this.$$set({endpoint:e}),g()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),g()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),g()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),g()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get loginevent(){return this.$$.ctx[36]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[37]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[38]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[39]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[40]}set currency(e){this.$$set({currency:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}}return customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",vo),vo});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function y(){}function S(e){return e()}function A(){return Object.create(null)}function C(e){e.forEach(S)}function _(e){return"function"==typeof e}function B(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let P,D;function z(e,t){return(P=P||document.createElement("a")).href=t,e===P.href}function U(e,...t){if(null==e)return y;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function te(e,t,r){e.$$.on_destroy.push(U(t,r))}function H(e){return e&&_(e.destroy)?e.destroy:y}function F(e,t){e.appendChild(t)}function $(e,t,r){e.insertBefore(t,r||null)}function I(e){e.parentNode.removeChild(e)}function j(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function O(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function k(e){return document.createTextNode(e)}function L(){return k(" ")}function G(){return k("")}function R(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function M(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function b(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:M(e,t,r)}function N(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function d(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function J(e,t,r){e.classList[r?"add":"remove"](t)}function V(e){const t={};for(const r of e)t[r.name]=r.value;return t}function W(e){D=e}function re(e){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const X=[],K=[],Y=[],Z=[],q=Promise.resolve();let Q=!1;function ne(e){Y.push(e)}const oe=new Set;let ie=0;function g(){const e=D;do{for(;ie<X.length;){const e=X[ie];ie++,W(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),C(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(ne))}for(W(null),X.length=0,ie=0;K.length;)K.pop()();for(let e=0;e<Y.length;e+=1){const n=Y[e];oe.has(n)||(oe.add(n),n())}}while(Y.length=0,X.length);for(;Z.length;)Z.pop()();Q=!1,oe.clear(),W(e)}const se=new Set;function ae(n,e,t,r,o,i,s,a=[-1]){var l=D;W(n);const u=n.$$={fragment:null,ctx:null,props:i,update:y,not_equal:o,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:A(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(X.push(e),Q||(Q=!0,q.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,C(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){i=e.target;const y=Array.from(i.childNodes);u.fragment&&u.fragment.l(y),y.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(se.delete(a),a.i(void 0));{var h=n;s=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:d,on_destroy:m,after_update:f}=h.$$;p&&p.m(s,t),r||ne(()=>{var e=d.map(S).filter(_);m?m.push(...e):C(e),h.$$.on_mount=[]}),f.forEach(ne)}g()}W(l)}let le;"function"==typeof HTMLElement&&(le=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(_);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){C(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(C(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=y}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ue,ce,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,he="URLSearchParams"in a,pe="Symbol"in a&&"iterator"in Symbol,de="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),me="FormData"in a,fe="ArrayBuffer"in a;function ge(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function be(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return pe&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ve(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function we(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Ee(e){var t=new FileReader,r=we(t);return t.readAsArrayBuffer(e),r}function Te(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function xe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:de&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:he&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():fe&&de&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Te(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):fe&&(ArrayBuffer.prototype.isPrototypeOf(e)||ce(e))?this._bodyArrayBuffer=Te(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):he&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},de&&(this.blob=function(){var e=ve(this);if(e)return e;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?ve(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(Ee)}),this.text=function(){var e,t,r=ve(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=we(e=new FileReader),e.readAsText(r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},me&&(this.formData=function(){return this.text().then(Ae)}),this.json=function(){return this.text().then(JSON.parse)},this}fe&&(ue=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ce=ArrayBuffer.isView||function(e){return e&&-1<ue.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=ge(e),t=be(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[ge(e)]},l.prototype.get=function(e){return e=ge(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(ge(e))},l.prototype.set=function(e,t){this.map[ge(e)]=be(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ye(r)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},l.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ye(r)},pe&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Se=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof u){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<Se.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ae(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}u.prototype.clone=function(){return new u(this,{body:this._bodyInit})},xe.call(u.prototype),xe.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:0,statusText:""});return e.type="error",e};var _e=[301,302,303,307,308],Be=(c.redirect=function(e,t){if(-1===_e.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},a.DOMException);try{new Be}catch(y){(Be=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Be.prototype.constructor=Be}function Pe(n,s){return new Promise(function(o,e){var t=new u(n,s);if(t.signal&&t.signal.aborted)return e(new Be("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},n=(t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){o(new c(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new Be("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(de?i.responseType="blob":fe&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,be(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}Pe.polyfill=!0,a.fetch||(a.fetch=Pe,a.Headers=l,a.Request=u,a.Response=c),self.fetch.bind(self);var Ce=function(e,t){return(Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function He(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ce(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Fe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $e(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Ie(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Oe(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var ke=Oe(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Le(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Fe(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(h(i))try{i()}catch(e){o=e instanceof ke?e.errors:[e]}i=this._finalizers;if(i){this._finalizers=null;try{for(var l=Fe(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{De(c)}catch(e){o=null!=o?o:[],e instanceof ke?o=Ie(Ie([],$e(o)),$e(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new ke(o)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)De(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Le(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Le(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((n=new r).closed=!0,n);var Re=r,Me=Re.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ne(e){return e instanceof Re||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function De(e){h(e)?e():e.unsubscribe()}var ze=void 0,Ue=!1,je=!1,Ge={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ge.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,Ie([e,t],$e(r))):setTimeout.apply(void 0,Ie([e,t],$e(r)))},clearTimeout:function(e){var t=Ge.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Je(){}var Ve=null;function We(e){if(Ue){var t=!Ve;if(t&&(Ve={errorThrown:!1,error:null}),e(),t){var t=Ve,r=t.errorThrown,t=t.error;if(Ve=null,r)throw t}}else e()}He(e,Xe=Re),e.create=function(e,t,r){return new et(e,t,r)},e.prototype.next=function(e){this.isStopped||this._next(e)},e.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Xe.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(e){this.destination.next(e)},e.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Xe,Ke=e,Ye=Function.prototype.bind;function e(e){var t=Xe.call(this)||this;return t.isStopped=!1,e?Ne(t.destination=e)&&e.add(t):t.destination=ot,t}function Ze(e,t){return Ye.call(e,t)}rt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){nt(e)}},rt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){nt(e)}else nt(e)},rt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){nt(e)}};var qe,Qe=rt,et=(He(tt,qe=Ke),tt);function tt(e,t,r){var n=qe.call(this)||this,r=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&je?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&Ze(e.next,t),error:e.error&&Ze(e.error,t),complete:e.complete&&Ze(e.complete,t)}):e;return n.destination=new Qe(r),n}function rt(e){this.partialObserver=e}function nt(e){var t=e;Ge.setTimeout(function(){throw t})}var ot={closed:!0,next:Je,error:function(e){throw e},complete:Je},n="function"==typeof Symbol&&Symbol.observable||"@@observable";function it(e){return e}o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Ke||n&&h(n.next)&&h(n.error)&&h(n.complete)&&Ne(n)?e:new et(e,t,r);return We(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(n,e){var o=this;return new(e=at(e))(function(e,t){var r=new et({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});o.subscribe(r)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[n]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?it:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var n=this;return new(e=at(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},o.create=function(e){return new o(e)};var st=o;function o(e){e&&(this._subscribe=e)}function at(e){return null!=(e=null!=e?e:ze)?e:Promise}var lt,ut,ct,ht=Oe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n=(He(i,ct=st),i.prototype.lift=function(e){var t=new pt(this,this);return t.operator=e,t},i.prototype._throwIfClosed=function(){if(this.closed)throw new ht},i.prototype.next=function(o){var i=this;We(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var r=Fe(i.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(o)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},i.prototype.error=function(t){var r=this;We(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},i.prototype.complete=function(){var t=this;We(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),ct.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,o=this.observers;return r||n?Me:(this.currentObservers=null,o.push(e),new Re(function(){t.currentObservers=null,Le(o,e)}))},i.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},i.prototype.asObservable=function(){var e=new st;return e.source=this,e},i.create=function(e,t){return new pt(e,t)},i),pt=(He(gt,ut=n),gt.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},gt.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},gt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},gt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Me},gt),dt={now:function(){return(dt.delegate||Date).now()},delegate:void 0},mt=(He(ft,lt=n),ft.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),lt.prototype.next.call(this,e)},ft.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},ft.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},ft);function ft(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=dt);var n=lt.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function gt(e,t){var r=ut.call(this)||this;return r.destination=e,r.source=t,r}function i(){var e=ct.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let bt=[],yt={};const vt=[];function wt(n,o=y){let i;const s=new Set;function a(e){if(B(n,e)&&(n=e,i)){const e=!vt.length;for(const e of s)e[1](),vt.push(e,n);if(e){for(let e=0;e<vt.length;e+=2)vt[e][0](vt[e+1]);vt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=y){const r=[e,t];return s.add(r),1===s.size&&(i=o(a)||y),e(n),()=>{s.delete(r),0===s.size&&(i(),i=null)}}}}function Et(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:wt(t,t=>{let r=!1;const n=[];let o=0,i=y;const s=()=>{var e;o||(i(),e=a(l?n[0]:n,t),c?t(e):i=_(e)?e:y)},e=u.map((e,t)=>U(e,e=>{n[t]=e,o&=~(1<<t),r&&s()},()=>{o|=1<<t}));return r=!0,s(),function(){C(e),i()}}).subscribe}}function Tt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===xt));var t}var xt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function St(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ct(Array.isArray(e)?[]:{},e,t):e}function At(e,t,r){return e.concat(t).map(function(e){return St(e,r)})}function _t(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Bt(e,t){try{return t in e}catch(e){return!1}}function Pt(n,o,i){var s={};return i.isMergeableObject(n)&&_t(n).forEach(function(e){s[e]=St(n[e],i)}),_t(o).forEach(function(t){var e,r;(!Bt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Bt(n,t)&&i.isMergeableObject(o[t])?s[t]=function(e){if(!e.customMerge)return Ct;e=e.customMerge(t);return"function"==typeof e?e:Ct}(i)(n[t],o[t],i):s[t]=St(o[t],i))}),s}function Ct(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||At,r.isMergeableObject=r.isMergeableObject||Tt,r.cloneUnlessOtherwiseSpecified=St;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Pt(e,t,r):St(t,r)}Ct.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return Ct(e,t,r)},{});throw new Error("first argument should be an array")};var Ht=Ct,Ft=function(e,t){return(Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function $t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ft(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,v,It,w=function(){return(w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Ot(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function kt(e){return e.type===v.literal}function Lt(e){return e.type===v.number}function Rt(e){return e.type===v.date}function Mt(e){return e.type===v.time}function Nt(e){return e.type===v.select}function Dt(e){return e.type===v.plural}function zt(e){return e.type===v.tag}function Ut(e){return e&&"object"==typeof e&&e.type===It.number}function jt(e){return e&&"object"==typeof e&&e.type===It.dateTime}(n=f=f||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=v=v||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=It=It||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gt=/(?:[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 Jt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Vt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Wt=/^(@+)?(\+|#+)?[rs]?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function Yt(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Wt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Zt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function qt(e){return Zt(e)||{}}function Qt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,o=r[t];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=w(w(w({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return w(w({},e),qt(t))},{}));continue;case"engineering":s=w(w(w({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return w(w({},e),qt(t))},{}));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(Xt,function(e,t,r,n,o,i){if(t)s.minimumIntegerDigits=r.length;else{if(n&&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(Kt.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Vt.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Vt,function(e,t,r,n,o,i){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var i=o.options[0];"w"===i?s=w(w({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=w(w({},s),Yt(i)))}else Wt.test(o.stem)?s=w(w({},s),Yt(o.stem)):((i=Zt(o.stem))&&(s=w(w({},s),i)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=w(w({},s),n)))}return s}var er={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var tr=new RegExp("^".concat(n.source,"*")),rr=new RegExp("".concat(n.source,"*$"));function E(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,nr=!!String.fromCodePoint,or=!!Object.fromEntries,ir=!!String.prototype.codePointAt,sr=!!String.prototype.trimStart,ar=!!String.prototype.trimEnd,lr=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ur=!0;try{ur="a"===(null==(Hr=yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Hr[0])}catch(y){ur=!1}var cr,hr,pr=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},dr=nr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},mr=or?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},fr=ir?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},gr=sr?function(e){return e.trimStart()}:function(e){return e.replace(tr,"")},br=ar?function(e){return e.trimEnd()}:function(e){return e.replace(rr,"")};function yr(e,t){return new RegExp(e,t)}hr=ur?(cr=yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return cr.lastIndex=t,null!=(t=cr.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var o=fr(e,t);if(void 0===o||Er(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),t+=65536<=o?2:1}return dr.apply(void 0,n)};s.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&wr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:v.pound,location:E(i,this.clonePosition())})}}}return{val:n,err:null}},s.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(n,"/>"),location:E(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wr(this.char()))return this.error(f.INVALID_TAG,E(e,this.clonePosition()));var o=this.clonePosition();return n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,E(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:n,children:t,location:E(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,E(e,this.clonePosition())))}return this.error(f.UNCLOSED_TAG,E(r,this.clonePosition()))}return this.error(f.INVALID_TAG,E(r,this.clonePosition()))},s.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},s.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=E(r,this.clonePosition());return{val:{type:v.literal,value:n,location:r},err:null}},s.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(wr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},s.prototype.tryParseQuote=function(e){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"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return dr.apply(void 0,t)},s.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),dr(r))},s.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,E(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:n,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=hr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:E(e,this.clonePosition())}},s.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,E(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(d=br(m.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:E(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(n)).err)return u;var c=E(n,this.clonePosition());if(l&&pr(null==l?void 0:l.style,"::",0)){var h=gr(l.style.slice(2));if("number"===s)return(m=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?m:{val:{type:v.number,value:r,location:c,style:m.val},err:null};if(0===h.length)return this.error(f.EXPECT_DATE_TIME_SKELETON,c);var p=h,d=(this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(er[t||""]||er[r||""]||er["".concat(r,"-001")]||er["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale)),{type:It.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},p.replace(Gt,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"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"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-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!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-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"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-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"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<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?v.date:v.time,value:r,location:c,style:d},err:null}}return{val:{type:"number"===s?v.number:"date"===s?v.date:v.time,value:r,location:c,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,E(p,w({},p)));this.bumpSpace();var m,d=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),d=this.parseIdentifierIfPossible(),c=m.val}l=this.tryParsePluralOrSelectOptions(e,s,t,d);if(l.err)return l;if((u=this.tryParseArgumentClose(n)).err)return u;h=E(n,this.clonePosition());return"select"===s?{val:{type:v.select,value:r,options:mr(l.val),location:h},err:null}:{val:{type:v.plural,value:r,options:mr(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(f.INVALID_ARGUMENT_TYPE,E(i,a))}},s.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},s.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Jt).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].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");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:It.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Qt(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=E(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;i.push([a,{value:u.val,location:E(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===i.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(f.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:i,err:null}},s.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-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()}n=E(n,this.clonePosition());return o?lr(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=fr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},s.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},s.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},s.prototype.bumpIf=function(e){if(pr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},s.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},s.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&Er(this.char());)this.bump()},s.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var vr=s;function s(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function wr(e){return 97<=e&&e<=122||65<=e&&e<=90}function Er(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Tr(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new vr(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Nt(e)||Dt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Lt(e)&&Ut(e.style)||(Rt(e)||Mt(e))&&jt(e.style)?delete e.style.location:zt(e)&&r(e.children)})}(e.val),e.val}function xr(e,t){var r=t&&t.cache?t.cache:Fr,n=t&&t.serializer?t.serializer:Br;return(t&&t.strategy?t.strategy:function(e,t){return _r(e,this,1===e.length?Sr:Ar,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Sr(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(r);return void 0===o&&(o=e.call(this,n),t.set(r,o)),o}function Ar(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),o=t.get(r);return void 0===o&&(o=e.apply(this,n),t.set(r,o)),o}function _r(e,t,r,n,o){return r.bind(t,e,n,o)}var Br=function(){return JSON.stringify(arguments)};function Pr(){this.cache=Object.create(null)}Pr.prototype.get=function(e){return this.cache[e]},Pr.prototype.set=function(e,t){this.cache[e]=t};var Cr,Hr,Fr={create:function(){return new Pr}},$r={variadic:function(e,t){return _r(e,this,Ar,t.cache.create(),t.serializer)},monadic:function(e,t){return _r(e,this,Sr,t.cache.create(),t.serializer)}};(Hr=Cr=Cr||{}).MISSING_VALUE="MISSING_VALUE",Hr.INVALID_VALUE="INVALID_VALUE",Hr.MISSING_INTL_API="MISSING_INTL_API";$t(Gr,Lr=Error),Gr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,Ir,Or,kr,Lr,Rr=Gr,Mr=($t(jr,kr=Rr),jr),Nr=($t(Ur,Or=Rr),Ur),Dr=($t(zr,Ir=Rr),zr);function zr(e,t){return Ir.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Cr.MISSING_VALUE,t)||this}function Ur(e,t,r){return Or.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Cr.INVALID_VALUE,r)||this}function jr(e,t,r,n){return kr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Cr.INVALID_VALUE,n)||this}function Gr(e,t,r){e=Lr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Jr(e,t,r,n,o,i,s){if(1===e.length&&kt(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(kt(c))a.push({type:T.literal,value:c.value});else if(c.type===v.pound)"number"==typeof i&&a.push({type:T.literal,value:r.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new Dr(h,s);h=o[h];if(c.type===v.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?T.literal:T.object,value:h});else if(Rt(c)){var p="string"==typeof c.style?n.date[c.style]:jt(c.style)?c.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Mt(c))p="string"==typeof c.style?n.time[c.style]:jt(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(Lt(c))(p="string"==typeof c.style?n.number[c.style]:Ut(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(t,p).format(h)});else{if(zt(c)){var d=c.children,m=c.value,f=o[m];if("function"!=typeof f)throw new Nr(m,"function",s);m=f(Jr(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(Nt(c)){if(!(g=c.options[h]||c.options.other))throw new Mr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Jr(g.value,t,r,n,o))}else if(Dt(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Rr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Cr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Mr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Jr(g.value,t,r,n,o,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===T.literal&&t.type===T.literal?r.value+=t.value:e.push(t),e},[])}function Vr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=T=T||{})[n.literal=0]="literal",n[n.object=1]="object",Object.defineProperty(p,"defaultLocale",{get:function(){return p.memoizedDefaultLocale||(p.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),p.memoizedDefaultLocale},enumerable:!1,configurable:!0}),p.memoizedDefaultLocale=null,p.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},p.__parse=Tr,p.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"}}};var Wr=p;function p(e,t,r,n){var o,i,s=this;if(void 0===t&&(t=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Jr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=p.resolveLocale(t),"string"==typeof e){if(this.message=e,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=p.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?w(w(w({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=w(w({},r[t]),n[t]||{}),e},{})):r),e},w({},o)):o),this.formatters=n&&n.formatters||{getNumberFormat:xr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Ot([void 0],t,!1)))},{cache:Vr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:$r.variadic}),getDateTimeFormat:xr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Ot([void 0],t,!1)))},{cache:Vr(t.dateTime),strategy:$r.variadic}),getPluralRules:xr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Ot([void 0],t,!1)))},{cache:Vr(t.pluralRules),strategy:$r.variadic})}}const m={},Xr=(e,t,r)=>r&&(t in m||(m[t]={}),e in m[t]||(m[t][e]=r),r),Kr=(t,r)=>{if(null!=r){if(r in m&&t in m[r])return m[r][t];var n=pn(r);for(let e=0;e<n.length;e++){var o=function(e,r){if(!qr(e))return null;e=function(e){return Yr[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const o=n.split(".");let t=e;for(let e=0;e<o.length;e++)if("object"==typeof t){if(0<e){const n=o.slice(e,o.length).join(".");if(n in t){t=t[n];break}}t=t[o[e]]}else t=void 0;return t}}(n[e],t);if(o)return Xr(t,r,o)}}};let Yr;const Zr=wt({});function qr(e){return e in Yr}function Qr(t,...r){delete m[t],Zr.update(e=>(e[t]=Ht.all([e[t]||{},...r]),e))}Et([Zr],([e])=>Object.keys(e)),Zr.subscribe(e=>Yr=e);const en={};function tn(e){return en[e]}function rn(e){return null!=e&&pn(e).some(e=>{return null==(e=tn(e))?void 0:e.size})}const nn={};function on(e){if(!rn(e))return e in nn?nn[e]:Promise.resolve();const t=pn(e).map(e=>{var t=tn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return nn[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return en[t].delete(r),0===en[t].size&&delete en[t],e().then(e=>e.default||e)}));return r.then(e=>Qr(n,...e))}})).then(()=>{if(rn(e))return on(e);delete nn[e]}),nn[e]}function sn(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const an={fallbackLocale: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,handleMissingMessage:void 0,ignoreTag:!0};const ln=wt(!1);let un;const cn=wt(null);function hn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function pn(e,t=an.fallbackLocale){e=hn(e);return t?[...new Set([...e,...hn(t)])]:e}function x(){return null!=un?un:void 0}cn.subscribe(e=>{un=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ee=Object.assign(Object.assign({},cn),{set:t=>{if(t&&function(e){if(null!=e){var t=pn(e);for(let e=0;e<t.length;e++){var r=t[e];if(qr(r))return r}}}(t)&&rn(t)){var r=an["loadingDelay"];let e;return"undefined"!=typeof window&&null!=x()&&r?e=window.setTimeout(()=>ln.set(!0),r):ln.set(!0),on(t).then(()=>{cn.set(t)}).finally(()=>{clearTimeout(e),ln.set(!1)})}return cn.set(t)}}),dn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},mn=(e,t)=>{var r=an["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},fn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=mn("number",r)),new Intl.NumberFormat(t,e)}),gn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=mn("date",r):0===Object.keys(e).length&&(e=mn("date","short")),new Intl.DateTimeFormat(t,e)}),bn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=mn("time",r):0===Object.keys(e).length&&(e=mn("time","short")),new Intl.DateTimeFormat(t,e)}),yn=dn((e,t=x())=>new Wr(e,t,an.formats,{ignoreTag:an.ignoreTag})),vn=Et([ee,Zr],()=>(e,t={})=>{var r,n;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:i,locale:s=x(),default:a}=o;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kr(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=an).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!i)return l;let u=l;try{u=yn(l,s).format(i)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),wn=(Et([ee],()=>(e,t)=>((e={})=>{var{locale:t=x()}=e,e=sn(e,["locale"]);return bn(Object.assign({locale:t},e))})(t).format(e)),Et([ee],()=>(e,t)=>((e={})=>{var{locale:t=x()}=e,e=sn(e,["locale"]);return gn(Object.assign({locale:t},e))})(t).format(e)),Et([ee],()=>(e,t)=>((e={})=>{var{locale:t=x()}=e,e=sn(e,["locale"]);return fn(Object.assign({locale:t},e))})(t).format(e)),Et([ee,Zr],()=>(e,t=x())=>Kr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==bt.indexOf(e)&&(t=new mt(t),yt[e]=t,bt.push(e)),yt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),En={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},zh:{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{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:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}},Tn={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},zh:{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{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şlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function xn(r){let n,o,i,s,a,l,u;return{c(){n=O("div"),o=k(r[12]),M(n,"class",i="Status "+r[14]),M(n,"part",s="Status "+r[14])},m(e,t){$(e,n,t),F(n,o),l||(u=H(a=r[17].call(null,n)),l=!0)},p(e,t){4096&t&&N(o,e[12]),16384&t&&i!==(i="Status "+e[14])&&M(n,"class",i),16384&t&&s!==(s="Status "+e[14])&&M(n,"part",s)},d(e){e&&I(n),l=!1,u()}}}function Sn(e){let r,n=e[5]&&An(e);return{c(){n&&n.c(),r=G()},m(e,t){n&&n.m(e,t),$(e,r,t)},p(e,t){e[5]?n?n.p(e,t):((n=An(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&I(r)}}}function An(e){let r,n,o=e[15]("tournamentsThumbnail.enrolled")+"";return{c(){r=O("div"),n=k(o),M(r,"class","Enrolled"),M(r,"part","Enrolled")},m(e,t){$(e,r,t),F(r,n)},p(e,t){32768&t&&o!==(o=e[15]("tournamentsThumbnail.enrolled")+"")&&N(n,o)},d(e){e&&I(r)}}}function _n(r){let n,o,i,s,a;return{c(){M(n=O("div"),"class",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),d(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){$(e,n,t),s||(a=H(r[17].call(null,n)),s=!0)},p(e,t){1&t&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"class",o),1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"part",i)},d(e){e&&I(n),s=!1,a()}}}function Bn(r){let n,o,i,s,a;return{c(){M(n=O("div"),"class",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),d(n,"background-image","url('"+r[4]+"')")},m(e,t){$(e,n,t),s||(a=H(r[17].call(null,n)),s=!0)},p(e,t){1&t&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"class",o),1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"part",i),16&t&&d(n,"background-image","url('"+e[4]+"')")},d(e){e&&I(n),s=!1,a()}}}function Pn(r){let n,o,i,s,a;return{c(){n=O("div"),o=k(r[10]),M(n,"class","Date"),M(n,"part","Date")},m(e,t){$(e,n,t),F(n,o),s||(a=H(i=r[16].call(null,n,r[2])),s=!0)},p(e,t){1024&t&&N(o,e[10]),i&&_(i.update)&&4&t&&i.update.call(null,e[2])},d(e){e&&I(n),s=!1,a()}}}function Cn(r){let n,o,i,s,a,l,u,c,h,p,d,m,f,g,b,y,v,w,E,T,x,S,A=r[15]("tournamentsThumbnail.scoreCriteria")+"",_=r[15]("tournamentsThumbnail.minbet")+"",B=r[15]("tournamentsThumbnail.seegames")+"",P=r[15]("tournamentsThumbnail.here")+"";return{c(){n=O("div"),o=O("p"),i=k(A),s=k(":\n \n "),a=O("span"),l=k(r[13]),c=k("\n ("),h=k(_),p=L(),d=k(r[6]),m=k(")"),f=L(),g=O("div"),b=O("p"),y=k(B),v=L(),w=O("a"),E=k(P),M(a,"part","ScoreCriteriaSpan"),M(o,"part","ScoreCriteriaP"),M(n,"class","ScoreCriteria"),M(n,"part","ScoreCriteria"),M(w,"part","GamesAnchor"),M(w,"href",r[8]),M(w,"target",T="true"===r[9]?"_self":"_blank"),M(b,"part","GamesP"),M(g,"class","Games"),M(g,"part","Games")},m(e,t){$(e,n,t),F(n,o),F(o,i),F(o,s),F(o,a),F(a,l),F(o,c),F(o,h),F(o,p),F(o,d),F(o,m),$(e,f,t),$(e,g,t),F(g,b),F(b,y),F(b,v),F(b,w),F(w,E),x||(S=[H(u=r[18].call(null,a)),R(w,"click",r[24])],x=!0)},p(e,t){32768&t&&A!==(A=e[15]("tournamentsThumbnail.scoreCriteria")+"")&&N(i,A),8192&t&&N(l,e[13]),32768&t&&_!==(_=e[15]("tournamentsThumbnail.minbet")+"")&&N(h,_),64&t&&N(d,e[6]),32768&t&&B!==(B=e[15]("tournamentsThumbnail.seegames")+"")&&N(y,B),32768&t&&P!==(P=e[15]("tournamentsThumbnail.here")+"")&&N(E,P),256&t&&M(w,"href",e[8]),512&t&&T!==(T="true"===e[9]?"_self":"_blank")&&M(w,"target",T)},d(e){e&&I(n),e&&I(f),e&&I(g),x=!1,C(S)}}}function Hn(e){let r,n,o,i,s,a,l,u,c,h=e[0]&&xn(e),p="true"==e[7]&&Sn(e);function d(e){return e[4]?Bn:_n}let m=d(e),f=m(e),g=e[2]&&Pn(e),b=e[11]&&Cn(e);return{c(){r=O("div"),h&&h.c(),n=L(),p&&p.c(),o=L(),f.c(),i=L(),s=O("div"),a=O("div"),l=k(e[1]),u=L(),g&&g.c(),c=L(),b&&b.c(),this.c=y,M(a,"class","Title"),M(a,"part","Title"),M(s,"class","Details"),M(s,"part","Details"),M(r,"class","Thumbnail"),M(r,"part","Thumbnail")},m(e,t){$(e,r,t),h&&h.m(r,null),F(r,n),p&&p.m(r,null),F(r,o),f.m(r,null),F(r,i),F(r,s),F(s,a),F(a,l),F(s,u),g&&g.m(s,null),F(s,c),b&&b.m(s,null)},p(e,[t]){e[0]?h?h.p(e,t):((h=xn(e)).c(),h.m(r,n)):h&&(h.d(1),h=null),"true"==e[7]?p?p.p(e,t):((p=Sn(e)).c(),p.m(r,o)):p&&(p.d(1),p=null),m===(m=d(e))&&f?f.p(e,t):(f.d(1),(f=m(e))&&(f.c(),f.m(r,i))),2&t&&N(l,e[1]),e[2]?g?g.p(e,t):((g=Pn(e)).c(),g.m(s,c)):g&&(g.d(1),g=null),e[11]?b?b.p(e,t):((b=Cn(e)).c(),b.m(s,null)):b&&(b.d(1),b=null)},i:y,o:y,d(e){e&&I(r),h&&h.d(),p&&p.d(),f.d(),g&&g.d(),b&&b.d()}}}function Fn(t,e,o){let i,{session:r=""}=(te(t,vn,e=>o(15,i=e)),e),{userid:n=""}=e,{title:s=""}=e,{startdate:a=""}=e,{status:l=""}=e,{tourid:u=""}=e,{thumbnail:c=""}=e,{userenrolled:h=""}=e,{scorecriteria:p=""}=e,{minbetcount:d=""}=e,{showenrolled:m="false"}=e,{gameurl:f=""}=e,{lang:g="en"}=e,{keepbrowsercontext:b="false"}=e,y="",v=!1,w="",E="",T="";Object.keys(Tn).forEach(e=>{Qr(e,Tn[e])});const x=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&o(11,v=!0),e.data.type=="TournamentStatus_"+u&&o(0,l=e.data.status))},S=()=>{let e=new Date(a),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),r=e.getDate(),n=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});o(10,y=r+" "+i("tournamentsThumbnail."+t)+", "+i("Running"===l?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+n)},A=()=>{"Unstarted"==l&&(o(12,w=i("tournamentsThumbnail.scheduled")),o(14,T="StatusUnstarted")),"Running"==l&&(o(12,w=i("tournamentsThumbnail.ongoing")),o(14,T="StatusRunning")),"Closed"!=l&&"Closing"!=l||o(12,w=i("tournamentsThumbnail.finished")),"Closed"==l&&o(14,T="StatusClosed"),"Closing"==l&&o(14,T="StatusClosing")},_=()=>{"BetCount"==p&&o(13,E=i("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==p&&o(13,E=i("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==p&&o(13,E=i("tournamentsThumbnail.winStakeRatio"))},B=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};re(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));return t.$$set=e=>{"session"in e&&o(20,r=e.session),"userid"in e&&o(21,n=e.userid),"title"in e&&o(1,s=e.title),"startdate"in e&&o(2,a=e.startdate),"status"in e&&o(0,l=e.status),"tourid"in e&&o(3,u=e.tourid),"thumbnail"in e&&o(4,c=e.thumbnail),"userenrolled"in e&&o(5,h=e.userenrolled),"scorecriteria"in e&&o(22,p=e.scorecriteria),"minbetcount"in e&&o(6,d=e.minbetcount),"showenrolled"in e&&o(7,m=e.showenrolled),"gameurl"in e&&o(8,f=e.gameurl),"lang"in e&&o(23,g=e.lang),"keepbrowsercontext"in e&&o(9,b=e.keepbrowsercontext)},t.$$.update=()=>{var e;1048576&t.$$.dirty&&r&&(0<r.length&&"false"!=r?o(11,v=!0):o(11,v=!1)),1&t.$$.dirty&&l&&A(),8388610&t.$$.dirty&&g&&s&&(e=g,ee.set(e),_(),A(),a&&S()),4&t.$$.dirty&&a&&S(),4194304&t.$$.dirty&&p&&_()},[l,s,a,u,c,h,d,m,f,b,y,v,w,E,T,i,S,A,_,B,r,n,p,g,()=>B()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends le{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:'Roboto'}a{color:var(--emfe-w-color-green, #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:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{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>",ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Fn,Hn,B,{session:20,userid:21,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:22,minbetcount:6,showenrolled:7,gameurl:8,lang:23,keepbrowsercontext:9},null),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext"]}get session(){return this.$$.ctx[20]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[21]}set userid(e){this.$$set({userid:e}),g()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),g()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),g()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),g()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),g()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),g()}get scorecriteria(){return this.$$.ctx[22]}set scorecriteria(e){this.$$set({scorecriteria:e}),g()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),g()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),g()}get lang(){return this.$$.ctx[23]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}});const $n={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},zh:{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function In(r){let n,o,i,s,a,l,u,c,h,p,d,m,f,g=r[9](r[0])+"",b=r[9](r[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Ln:0<e[4]?kn:On}let v=y(r),w=v(r);function E(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Nn:0<e[4]?Mn:0<e[3]?Rn:void 0}let T=E(r),x=T&&T(r);return{c(){n=O("div"),o=O("div"),i=k(g),s=L(),a=O("div"),l=k(b),u=L(),c=O("div"),h=O("div"),w.c(),p=L(),x&&x.c(),M(o,"class","StartDate"),M(o,"part","StartDate"),M(a,"class","EndDate"),M(a,"part","EndDate"),M(n,"class","TournamentDates"),M(n,"part","TournamentDates"),M(h,"class","ProgressBar"),M(h,"part","ProgressBar"),M(c,"class","ProgressBarWrapper"),M(c,"part","ProgressBarWrapper")},m(e,t){$(e,n,t),F(n,o),F(o,i),F(n,s),F(n,a),F(a,l),$(e,u,t),$(e,c,t),F(c,h),w.m(h,null),F(h,p),x&&x.m(h,null),m||(f=H(d=r[8].call(null,c)),m=!0)},p(e,t){1&t&&g!==(g=e[9](e[0])+"")&&N(i,g),2&t&&b!==(b=e[9](e[1])+"")&&N(l,b),v===(v=y(e))&&w?w.p(e,t):(w.d(1),(w=v(e))&&(w.c(),w.m(h,p))),T===(T=E(e))&&x?x.p(e,t):(x&&x.d(1),(x=T&&T(e))&&(x.c(),x.m(h,null)))},d(e){e&&I(n),e&&I(u),e&&I(c),w.d(),x&&x.d(),m=!1,f()}}}function On(e){let r;return{c(){M(r=O("div"),"class","ProgressBarFill"),M(r,"part","ProgressBarFill"),d(r,"width",e[6]()+"%")},m(e,t){$(e,r,t)},p(e,t){64&t&&d(r,"width",e[6]()+"%")},d(e){e&&I(r)}}}function kn(e){let r;return{c(){M(r=O("div"),"class","ProgressBarFillStarting"),M(r,"part","ProgressBarFillStarting")},m(e,t){$(e,r,t)},p:y,d(e){e&&I(r)}}}function Ln(e){let r;return{c(){M(r=O("div"),"class","ProgressBarFillEnd"),M(r,"part","ProgressBarFillEnd")},m(e,t){$(e,r,t)},p:y,d(e){e&&I(r)}}}function Rn(e){let r,n,o,i,s=e[7]("tournamentsDuration.left")+"";return{c(){r=O("div"),n=k(e[5]),o=L(),i=k(s),M(r,"class","Remaining"),M(r,"part","Remaining")},m(e,t){$(e,r,t),F(r,n),F(r,o),F(r,i)},p(e,t){32&t&&N(n,e[5]),128&t&&s!==(s=e[7]("tournamentsDuration.left")+"")&&N(i,s)},d(e){e&&I(r)}}}function Mn(e){let r,n,o,i,s=e[7]("tournamentsDuration.starting")+"",a=e[10](e[4])+"";return{c(){r=O("div"),n=k(s),o=L(),i=k(a),M(r,"class","Remaining"),M(r,"part","Remaining")},m(e,t){$(e,r,t),F(r,n),F(r,o),F(r,i)},p(e,t){128&t&&s!==(s=e[7]("tournamentsDuration.starting")+"")&&N(n,s),16&t&&a!==(a=e[10](e[4])+"")&&N(i,a)},d(e){e&&I(r)}}}function Nn(e){let r,n,o=e[7]("tournamentsDuration.finished")+"";return{c(){r=O("div"),n=k(o),M(r,"class","Finished"),M(r,"part","Finished")},m(e,t){$(e,r,t),F(r,n)},p(e,t){128&t&&o!==(o=e[7]("tournamentsDuration.finished")+"")&&N(n,o)},d(e){e&&I(r)}}}function Dn(e){let r,n=e[0]&&e[1]&&In(e);return{c(){r=O("div"),n&&n.c(),this.c=y,M(r,"class","TournamentDuration"),M(r,"part","TournamentDuration")},m(e,t){$(e,r,t),n&&n.m(r,null)},p(e,[t]){e[0]&&e[1]?n?n.p(e,t):((n=In(e)).c(),n.m(r,null)):n&&(n.d(1),n=null)},i:y,o:y,d(e){e&&I(r),n&&n.d()}}}function zn(e,t,r){let n,o,{startdate:i=""}=(te(e,vn,e=>r(7,o=e)),t),{enddate:s=""}=t,{status:a=""}=t,{lang:l="en"}=t,u="",c="",h="";Object.keys($n).forEach(e=>{Qr(e,$n[e])});const p=e=>new Date(e).getTime(),d=(e,t)=>(p(t)-p(e))/6e4,m=()=>{var e=new Date;r(3,u=d(e,s)),r(4,c=d(e,i)),r(5,h=f(u))},f=e=>{if(e<1440){const t=e%60;return[e/60,t,60*(t-Math.floor(t))].map(e=>{e=Math.floor(e);return e<10?"0"+e:""+e}).join(":")}return Math.ceil(e/1440)+" "+o("tournamentsDuration.days")};return re(()=>{const e=setInterval(()=>{i&&s&&m()},1e3);return()=>clearInterval(e)}),e.$$set=e=>{"startdate"in e&&r(0,i=e.startdate),"enddate"in e&&r(1,s=e.enddate),"status"in e&&r(2,a=e.status),"lang"in e&&r(11,l=e.lang)},e.$$.update=()=>{11&e.$$.dirty&&r(6,n=()=>{if(u<=0)return 100;var e=d(i,s),t=100/e;return Math.floor((e-u)*t)}),11&e.$$.dirty&&i&&s&&m(),2048&e.$$.dirty&&l&&m(),2056&e.$$.dirty&&l&&f(u)},[i,s,a,u,c,h,n,o,m,e=>{let t=new Date(e),r=new Intl.DateTimeFormat(l,{month:"long"}).format(t);return`${t.getDate()} ${r}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+t.getUTCFullYear()},f,l]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends le{constructor(e){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:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}</style>",ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},zn,Dn,B,{startdate:0,enddate:1,status:2,lang:11},null),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),g()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),g()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),g()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),g()}});const Un={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},zh:{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"place"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function jn(e,t,r){const n=e.slice();return n[4]=t[r],n[6]=r,n}function Gn(t){let n,o=t[0],i=[];for(let e=0;e<o.length;e+=1)i[e]=Vn(jn(t,o,e));let s=null;return o.length||(s=Jn(t)),{c(){n=O("div");for(let e=0;e<i.length;e+=1)i[e].c();s&&s.c(),M(n,"class","Prizes"),M(n,"part","Prizes")},m(e,t){$(e,n,t);for(let e=0;e<i.length;e+=1)i[e].m(n,null);s&&s.m(n,null)},p(t,r){if(3&r){let e;for(o=t[0],e=0;e<o.length;e+=1){const s=jn(t,o,e);i[e]?i[e].p(s,r):(i[e]=Vn(s),i[e].c(),i[e].m(n,null))}for(;e<i.length;e+=1)i[e].d(1);i.length=o.length,!o.length&&s?s.p(t,r):o.length?s&&(s.d(1),s=null):((s=Jn(t)).c(),s.m(n,null))}},d(e){e&&I(n),j(i,e),s&&s.d()}}}function Jn(e){let r,n,o=e[1]("tournamentsPrizes.noprizes")+"";return{c(){r=O("p"),n=k(o)},m(e,t){$(e,r,t),F(r,n)},p(e,t){2&t&&o!==(o=e[1]("tournamentsPrizes.noprizes")+"")&&N(n,o)},d(e){e&&I(r)}}}function Vn(e){let r,n,o,i,s,a,l,u,c,t,h,p=(1<e[4].count?e[4].rank+"~"+(e[4].rank+e[4].count-1):e[4].rank)+"",d=e[1]("tournamentsPrizes.place")+"",m=e[4].name+"";return{c(){r=O("div"),n=O("p"),o=O("span"),i=k(p),s=L(),a=k(d),l=k(": "),u=k(m),c=L(),M(o,"class","PrizeRank"),M(o,"part","PrizeRank"),M(n,"class","PrizeText"),M(n,"part","PrizeText"),M(r,"class",t="Prize Prize"+e[6]),M(r,"part",h="Prize Prize"+e[6])},m(e,t){$(e,r,t),F(r,n),F(n,o),F(o,i),F(n,s),F(n,a),F(n,l),F(n,u),F(r,c)},p(e,t){1&t&&p!==(p=(1<e[4].count?e[4].rank+"~"+(e[4].rank+e[4].count-1):e[4].rank)+"")&&N(i,p),2&t&&d!==(d=e[1]("tournamentsPrizes.place")+"")&&N(a,d),1&t&&m!==(m=e[4].name+"")&&N(u,m)},d(e){e&&I(r)}}}function Wn(e){let r,n,o,i,s,a,l,u=e[1]("tournamentsPrizes.prizes")+"",c=e[0]&&Gn(e);return{c(){r=O("div"),n=O("div"),(o=O("span")).innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',i=L(),s=O("p"),a=k(u),l=L(),c&&c.c(),this.c=y,M(o,"class","TournamentPrizesIconWrapper"),M(o,"part","TournamentPrizesIconWrapper"),M(s,"class","PrizesTitle"),M(s,"part","PrizesTitle"),M(n,"class","TournamentPrizesIconSection"),M(n,"part","TournamentPrizesIconSection"),M(r,"class","TournamentPrizes"),M(r,"part","TournamentPrizes")},m(e,t){$(e,r,t),F(r,n),F(n,o),F(n,i),F(n,s),F(s,a),F(r,l),c&&c.m(r,null)},p(e,[t]){2&t&&u!==(u=e[1]("tournamentsPrizes.prizes")+"")&&N(a,u),e[0]?c?c.p(e,t):((c=Gn(e)).c(),c.m(r,null)):c&&(c.d(1),c=null)},i:y,o:y,d(e){e&&I(r),c&&c.d()}}}function Xn(e,t,r){let n;te(e,vn,e=>r(1,n=e));let o,{tourid:i=""}=t;Object.keys(Un).forEach(e=>{Qr(e,Un[e])});const s=e=>{e.data&&e.data.type=="TournamentPrizes_"+i&&r(0,o=e.data.prizes)};return re(()=>(window.addEventListener("message",s,!1),()=>{window.removeEventListener("message",s)})),e.$$set=e=>{"tourid"in e&&r(2,i=e.tourid)},[o,n,i]}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends le{constructor(e){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:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}</style>",ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Xn,Wn,B,{tourid:2},null),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(e){this.$$set({tourid:e}),g()}});const Kn={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Reproducir ahora"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function Yn(e,t,r){const n=e.slice();return n[38]=t[r],n[40]=r,n}function Zn(r){let o,n,i,s,a,l,u,c,h=r[0],p=[];for(let e=0;e<h.length;e+=1)p[e]=qn(Yn(r,h,e));return{c(){(o=O("div")).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>',n=L(),i=O("main"),s=O("div");for(let e=0;e<p.length;e+=1)p[e].c();a=L(),(l=O("div")).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>',M(o,"class","SliderNavButton"),M(o,"part","SliderNavButton"),J(o,"disabled",r[6]),M(s,"class","items"),M(s,"part","items"),d(s,"transform","translateX("+r[1]+"px)"),M(l,"class","SliderNavButton"),M(l,"part","SliderNavButton"),J(l,"disabled",r[7])},m(e,t){$(e,o,t),$(e,n,t),$(e,i,t),F(i,s);for(let e=0;e<p.length;e+=1)p[e].m(s,null);r[22](s),$(e,a,t),$(e,l,t),u||(c=[R(o,"click",r[18]),R(l,"click",r[23])],u=!0)},p(t,r){if(64&r[0]&&J(o,"disabled",t[6]),5913&r[0]){let e;for(h=t[0],e=0;e<h.length;e+=1){var n=Yn(t,h,e);p[e]?p[e].p(n,r):(p[e]=qn(n),p[e].c(),p[e].m(s,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=h.length}2&r[0]&&d(s,"transform","translateX("+t[1]+"px)"),128&r[0]&&J(l,"disabled",t[7])},d(e){e&&I(o),e&&I(n),e&&I(i),j(p,e),r[22](null),e&&I(a),e&&I(l),u=!1,C(c)}}}function qn(r){let n,o,i,s,a,l,u,c,h,p,d,m,f,g=r[8]("gamesSlider.playNow")+"";function b(){return r[19](r[38])}function y(){return r[20](r[40])}return{c(){n=O("div"),o=O("span"),i=k(g),l=L(),u=O("img"),d=L(),M(o,"class",s="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),M(o,"part",a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),z(u.src,c=r[38].thumbnail)||M(u,"src",c),M(u,"width","132px"),M(u,"height","100px"),M(u,"alt",h=r[38].name),M(u,"title",p=r[38].name),M(n,"class","item"),M(n,"part","item")},m(e,t){$(e,n,t),F(n,o),F(o,i),F(n,l),F(n,u),F(n,d),m||(f=[R(n,"click",b),R(n,"mouseenter",y),R(n,"mouseleave",r[21])],m=!0)},p(e,t){r=e,256&t[0]&&g!==(g=r[8]("gamesSlider.playNow")+"")&&N(i,g),24&t[0]&&s!==(s="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&M(o,"class",s),24&t[0]&&a!==(a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&M(o,"part",a),1&t[0]&&!z(u.src,c=r[38].thumbnail)&&M(u,"src",c),1&t[0]&&h!==(h=r[38].name)&&M(u,"alt",h),1&t[0]&&p!==(p=r[38].name)&&M(u,"title",p)},d(e){e&&I(n),m=!1,C(f)}}}function Qn(r){let n,o=r[0]&&Zn(r);return{c(){n=O("div"),o&&o.c(),this.c=y,M(n,"class","TournamentsGamesSlider"),M(n,"part","TournamentsGamesSlider")},m(e,t){$(e,n,t),o&&o.m(n,null),r[24](n)},p(e,t){e[0]?o?o.p(e,t):((o=Zn(e)).c(),o.m(n,null)):o&&(o.d(1),o=null)},i:y,o:y,d(e){e&&I(n),o&&o.d(),r[24](null)}}}function eo(e,t,r){let n,o,i;te(e,vn,e=>r(8,i=e));let s,a,l,u,{tournamenturl:c=""}=t,{scrollby:h="3"}=t,{pagfactor:p="175"}=t,{lang:d=""}=t,m=window.navigator.userAgent,f=[],g=0,b=null,y=null,v=!1,w=0;Object.keys(Kn).forEach(e=>{Qr(e,Kn[e])});const E=e=>{r(3,v=!0),r(4,l=e)},T=()=>{r(3,v=!1),r(4,l=-1)},x=e=>{e=(e.touches||e.originalEvent.touches)[0];b=e.clientX,y=e.clientY},S=e=>{var t;b&&y&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=b-t,e=y-e,Math.abs(t)>Math.abs(e)&&A(0<t?1:-1),b=null,y=null)},A=e=>{0<e&&!o?(r(1,g-=s),r(1,g=g<w?w:g)):e<0&&!n&&(r(1,g+=s),r(1,g=0<g?0:g))},_=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return re(()=>(s=parseInt(h,10)*parseInt(p,10),()=>{a.removeEventListener("touchstart",x),a.removeEventListener("touchmove",S)})),e.$$set=e=>{"tournamenturl"in e&&r(14,c=e.tournamenturl),"scrollby"in e&&r(15,h=e.scrollby),"pagfactor"in e&&r(13,p=e.pagfactor),"lang"in e&&r(16,d=e.lang)},e.$$.update=()=>{if(2&e.$$.dirty[0]&&r(6,n=0===g),131074&e.$$.dirty[0]&&r(7,o=g<=w),16384&e.$$.dirty[0]&&c){let e=new URL(c),t=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${g})`),e.searchParams.append("fields","games(id,name,thumbnail)"),e.searchParams.append("language",d),e.searchParams.append("platform",wn(m)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(0,f=e.item.games.items),e.item.games.total})}4&e.$$.dirty[0]&&a&&(a.addEventListener("touchstart",x,{passive:!0}),a.addEventListener("touchmove",S,{passive:!0})),1&e.$$.dirty[0]&&f.length&&setTimeout(()=>{r(17,w=-1*(u.scrollWidth-u.clientWidth)),r(13,p=new String(u.scrollWidth/f.length)),s=parseInt(h,10)*parseFloat(p,2).toFixed(2)},1e3)},r(1,g=0),[f,g,a,v,l,u,n,o,i,E,T,A,_,p,c,h,d,w,()=>A(-1),e=>_(e),e=>E(e),()=>T(),function(e){K[e?"unshift":"push"](()=>{u=e,r(5,u)})},()=>A(1),function(e){K[e?"unshift":"push"](()=>{a=e,r(2,a)})}]}function to(e){let r,n,o,i,s,a,l,u,c,h=e[10]&&no(e);function p(e){return e[10]?"Closed"!=e[19]&&"Closing"!=e[19]?so:"true"==e[3]?io:void 0:ao}let d=p(e),m=d&&d(e),f=(e[13]||e[15])&&fo(e),g="true"==e[4]&&go(e);return{c(){r=O("div"),n=O("casino-tournaments-thumbnail"),o=L(),h&&h.c(),i=L(),s=O("div"),m&&m.c(),a=L(),f&&f.c(),l=L(),g&&g.c(),b(n,"session",e[0]),b(n,"userid",e[1]),b(n,"title",e[16]),b(n,"status",e[19]),b(n,"startdate",e[17]),b(n,"tourid",e[20]),b(n,"scorecriteria",e[23]),b(n,"minbetcount",e[24]),b(n,"thumbnail",e[21]),b(n,"userenrolled",e[22]),b(n,"showenrolled",e[5]),b(n,"gameurl",e[26]),b(n,"lang",e[8]),b(n,"keepbrowsercontext",e[9]),b(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),M(s,"class","TournamentButtons"),M(s,"part","TournamentButtons"),M(r,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")),M(r,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){$(e,r,t),F(r,n),F(r,o),h&&h.m(r,null),F(r,i),F(r,s),m&&m.m(s,null),F(r,a),f&&f.m(r,null),F(r,l),g&&g.m(r,null)},p(e,t){1&t[0]&&b(n,"session",e[0]),2&t[0]&&b(n,"userid",e[1]),65536&t[0]&&b(n,"title",e[16]),524288&t[0]&&b(n,"status",e[19]),131072&t[0]&&b(n,"startdate",e[17]),1048576&t[0]&&b(n,"tourid",e[20]),8388608&t[0]&&b(n,"scorecriteria",e[23]),16777216&t[0]&&b(n,"minbetcount",e[24]),2097152&t[0]&&b(n,"thumbnail",e[21]),4194304&t[0]&&b(n,"userenrolled",e[22]),32&t[0]&&b(n,"showenrolled",e[5]),67108864&t[0]&&b(n,"gameurl",e[26]),256&t[0]&&b(n,"lang",e[8]),512&t[0]&&b(n,"keepbrowsercontext",e[9]),e[10]?h?h.p(e,t):((h=no(e)).c(),h.m(r,i)):h&&(h.d(1),h=null),d===(d=p(e))&&m?m.p(e,t):(m&&m.d(1),(m=d&&d(e))&&(m.c(),m.m(s,null))),e[13]||e[15]?f?f.p(e,t):((f=fo(e)).c(),f.m(r,l)):f&&(f.d(1),f=null),"true"==e[4]?g?g.p(e,t):((g=go(e)).c(),g.m(r,null)):g&&(g.d(1),g=null),134217920&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"class",u),134217920&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"part",c)},d(e){e&&I(r),h&&h.d(),m&&m.d(),f&&f.d(),g&&g.d()}}}function ro(e){let r,n,o,i;return{c(){r=O("div"),(n=O("div")).innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> \n <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> \n <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> \n <div class="ph-col-4" part="ph-col-4"></div> \n <div class="ph-col-8 empty" part="ph-col-8 empty"></div> \n <div class="ph-col-6" part="ph-col-6"></div> \n <div class="ph-col-6 empty" part="ph-col-6 empty"></div> \n <div class="ph-col-12" part="ph-col-12"></div></div></div>',M(n,"class","ph-item"),M(n,"part","ph-item"),M(r,"class",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")),M(r,"part",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){$(e,r,t),F(r,n)},p(e,t){134217920&t[0]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"class",o),134217920&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"part",i)},d(e){e&&I(r)}}}function no(e){let r,n,o=e[20]&&oo(e);return{c(){o&&o.c(),r=L(),b(n=O("casino-tournaments-thumbnail-duration"),"status",e[19]),b(n,"startdate",e[17]),b(n,"lang",e[8]),b(n,"enddate",e[18]),b(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){o&&o.m(e,t),$(e,r,t),$(e,n,t)},p(e,t){e[20]?o?o.p(e,t):((o=oo(e)).c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),524288&t[0]&&b(n,"status",e[19]),131072&t[0]&&b(n,"startdate",e[17]),256&t[0]&&b(n,"lang",e[8]),262144&t[0]&&b(n,"enddate",e[18])},d(e){o&&o.d(e),e&&I(r),e&&I(n)}}}function oo(r){let n,o,i,s;return{c(){b(n=O("casino-tournaments-thumbnail-prizes"),"tourid",r[20]),b(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){$(e,n,t),i||(s=H(o=r[33].call(null,n,r[20])),i=!0)},p(e,t){1048576&t[0]&&b(n,"tourid",e[20]),o&&_(o.update)&&1048576&t[0]&&o.update.call(null,e[20])},d(e){e&&I(n),i=!1,s()}}}function io(r){let n,o,i,s,a=r[28]("tournamentsThController.details")+"";return{c(){n=O("button"),o=k(a),M(n,"class","DetailsLargeButton"),M(n,"part","DetailsLargeButton")},m(e,t){$(e,n,t),F(n,o),i||(s=R(n,"click",r[46]),i=!0)},p(e,t){268435456&t[0]&&a!==(a=e[28]("tournamentsThController.details")+"")&&N(o,a)},d(e){e&&I(n),i=!1,s()}}}function so(e){let r,n,o="true"==e[3]&&lo(e);function i(e){return 1==e[22]?co:uo}let s=i(e),a=s(e);return{c(){o&&o.c(),r=L(),a.c(),n=G()},m(e,t){o&&o.m(e,t),$(e,r,t),a.m(e,t),$(e,n,t)},p(e,t){"true"==e[3]?o?o.p(e,t):((o=lo(e)).c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),s===(s=i(e))&&a?a.p(e,t):(a.d(1),(a=s(e))&&(a.c(),a.m(n.parentNode,n)))},d(e){o&&o.d(e),e&&I(r),a.d(e),e&&I(n)}}}function ao(r){let n,o,i,s,a,l,u,c=r[28]("tournamentsThController.login")+"",h=r[28]("tournamentsThController.register")+"";return{c(){n=O("button"),o=k(c),i=L(),s=O("button"),a=k(h),M(n,"class","LoginButton"),M(n,"part","LoginButton"),M(s,"class","RegisterButton"),M(s,"part","RegisterButton")},m(e,t){$(e,n,t),F(n,o),$(e,i,t),$(e,s,t),F(s,a),l||(u=[R(n,"click",r[42]),R(s,"click",r[43])],l=!0)},p(e,t){268435456&t[0]&&c!==(c=e[28]("tournamentsThController.login")+"")&&N(o,c),268435456&t[0]&&h!==(h=e[28]("tournamentsThController.register")+"")&&N(a,h)},d(e){e&&I(n),e&&I(i),e&&I(s),l=!1,C(u)}}}function lo(r){let n,o,i,s,a=r[28]("tournamentsThController.details")+"";return{c(){n=O("button"),o=k(a),M(n,"class","DetailsButton"),M(n,"part","DetailsButton")},m(e,t){$(e,n,t),F(n,o),i||(s=R(n,"click",r[44]),i=!0)},p(e,t){268435456&t[0]&&a!==(a=e[28]("tournamentsThController.details")+"")&&N(o,a)},d(e){e&&I(n),i=!1,s()}}}function uo(r){let n,o,i,s,a;function l(e){return 1==e[12]?po:ho}let u=l(r),c=u(r);return{c(){n=O("button"),c.c(),M(n,"class",o="JoinButton "+(r[7]?"JoinButtonFullSize":"")),M(n,"part",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[13]},m(e,t){$(e,n,t),c.m(n,null),s||(a=R(n,"click",r[45]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(n,null))),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&M(n,"class",o),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&M(n,"part",i),8192&t[0]&&(n.disabled=e[13])},d(e){e&&I(n),c.d(),s=!1,a()}}}function co(e){let r,n="true"==e[3]&&mo(e);return{c(){n&&n.c(),r=G()},m(e,t){n&&n.m(e,t),$(e,r,t)},p(e,t){"true"==e[3]?n?n.p(e,t):((n=mo(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&I(r)}}}function ho(e){let r,n,o,i,s,a,l,u,c,h=e[28]("tournamentsThController.join")+"";return{c(){r=O("span"),n=k(h),o=L(),i=t("svg"),s=t("defs"),a=t("style"),l=k(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("g"),c=t("path"),M(r,"part","JoinButtonSpan"),M(c,"class","a"),M(c,"part","a JoinButtonSvgA"),M(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),M(c,"transform","translate(26 26) rotate(180)"),M(u,"transform","translate(26 26) rotate(180)"),M(i,"part","JoinButtonSvg"),M(i,"xmlns","http://www.w3.org/2000/svg"),M(i,"width","26"),M(i,"height","26"),M(i,"viewBox","0 0 26 26")},m(e,t){$(e,r,t),F(r,n),$(e,o,t),$(e,i,t),F(i,s),F(s,a),F(a,l),F(i,u),F(u,c)},p(e,t){268435456&t[0]&&h!==(h=e[28]("tournamentsThController.join")+"")&&N(n,h)},d(e){e&&I(r),e&&I(o),e&&I(i)}}}function po(e){let r,n;return{c(){r=t("svg"),M(n=t("circle"),"cx","20"),M(n,"cy","20"),M(n,"r","18"),M(r,"class","spinner"),M(r,"part","spinner")},m(e,t){$(e,r,t),F(r,n)},p:y,d(e){e&&I(r)}}}function mo(e){let r,n,o=e[28]("tournamentsThController.enrolled")+"";return{c(){r=O("button"),n=k(o),M(r,"class","EnrolledButton"),M(r,"part","EnrolledButton"),r.disabled=!0},m(e,t){$(e,r,t),F(r,n)},p(e,t){268435456&t[0]&&o!==(o=e[28]("tournamentsThController.enrolled")+"")&&N(n,o)},d(e){e&&I(r)}}}function fo(e){let r,n,o,i,s=e[28]("tournamentsThController.joinerror")+"";return{c(){r=O("span"),n=k(s),o=L(),i=k(e[14]),M(r,"class","ErrorText"),M(r,"part","ErrorText")},m(e,t){$(e,r,t),F(r,n),F(r,o),F(r,i)},p(e,t){268435456&t[0]&&s!==(s=e[28]("tournamentsThController.joinerror")+"")&&N(n,s),16384&t[0]&&N(i,e[14])},d(e){e&&I(r)}}}function go(e){let r;return{c(){b(r=O("casino-tournaments-thumbnail-games-slider"),"tournamenturl",e[2]),b(r,"lang",e[8]),b(r,"scrollby","2"),b(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){$(e,r,t)},p(e,t){4&t[0]&&b(r,"tournamenturl",e[2]),256&t[0]&&b(r,"lang",e[8])},d(e){e&&I(r)}}}function bo(e){let r;function n(e){return e[11]?ro:e[16]?to:void 0}let o=n(e),i=o&&o(e);return{c(){i&&i.c(),r=G(),this.c=y},m(e,t){i&&i.m(e,t),$(e,r,t)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i&&i.d(1),(i=o&&o(e))&&(i.c(),i.m(r.parentNode,r)))},i:y,o:y,d(e){i&&i.d(e),e&&I(r)}}}function yo(e,t,u){let r;te(e,vn,e=>u(28,r=e));let n,o,i,s,c,a,h,l,p,d,{session:m=""}=t,{userid:f=""}=t,{tournamenturl:g=""}=t,b=t["touridx"],{endpoint:y=""}=t,{showdetails:v=""}=t,{showslider:w=""}=t,{showenrolled:L=""}=t,{maxwidth:R=""}=t,{fullsize:M=""}=t,{lang:E=""}=t,{loginevent:T=""}=t,{registerevent:x=""}=t,{loginurl:S=""}=t,{registerurl:A=""}=t,{currency:_=""}=t,{keepbrowsercontext:N="false"}=t,B=!1,P="",C=!0,D=window.navigator.userAgent,H=!1,F=!1,z="There was an error while trying to join the tournament",$=!1,U=[],I=[],j="#",O=!1;var G,J;({withLocale:G,translations:J}={withLocale:"en",translations:{}}),ee.subscribe(e=>{null==e&&(Zr.set(J),ee.set(G))}),Object.keys(En).forEach(e=>{Qr(e,En[e])});const V=e=>{X(e),Q(e),q(this,c)},W=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(10,B=!0),P=r.data.session),"UpdateTournamentView"==r.data.type){var e=r.data.tournamentData;if(c&&c!=e.id)return;V(e)}if(r.data&&r.data.type=="UpdateSingleTournament_"+b){let e=r.data.tournamentData,t=b<4?100*b:300*Math.random()+300;u(27,O=1==b),setTimeout(()=>{u(27,O=!0),u(20,c=e.id),V(e)},t),setTimeout(()=>{u(27,O=!1)},200+t)}},X=e=>{e.state!=s&&(u(19,s=e.state),window.postMessage({type:"TournamentStatus_"+c,status:s},window.location.href))},K=()=>{T&&window.postMessage({type:T,transition:"Login"},window.location.href),S&&(window.location=S)},Y=()=>{x&&window.postMessage({type:x,transition:"Register"},window.location.href),A&&(window.location=A)},k=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},Z=async(t,e)=>{u(13,F=!1),u(15,$=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(12,H=!0);let r=new URL(y+"/bonus/claim"),n=new Headers,o={},i=(r.searchParams.append("language",E),r.searchParams.append("platform",wn(D)),n.append("Content-Type","application/json"),n.append("X-SessionID",P),e&&1<=e.length&&(o={language:E,bonusCode:e[0].code,currency:_}),{method:"PUT",headers:n,body:JSON.stringify(o)});const s=()=>{u(12,H=!1),u(22,h=!0)},a=e=>{u(12,H=!1),e&&u(14,z=e),u(13,F=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(r,i)).json()}catch(e){a()}return e})();if(l)if(1==l.success)s();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(y+"/tournaments/"+c,{headers:{"X-SessionID":m}})).json())?void 0:e.item)&&t.playerEnrolled?s():(a(l.errorMessage),u(15,$=!0),u(13,F=!1))}else a(l.errorMessage)},q=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:U},window.location.href)},Q=e=>{e&&(u(16,n=e.nameOrTitle||""),u(17,o=e.startTime),u(18,i=e.endTime),u(19,s=e.state),u(20,c=e.id),u(21,a=e.thumbnail),u(22,h=e.playerEnrolled||!1),u(23,l=e.scoreCriteria),u(24,p=e.minBetCount),U=e.prizes,u(25,I=e.wallets||[]),u(26,j=e.termsUrl||"#"))};return re(()=>(u(11,C=!1),window.addEventListener("message",W,!1),()=>{window.removeEventListener("message",W)})),e.$$set=e=>{"session"in e&&u(0,m=e.session),"userid"in e&&u(1,f=e.userid),"tournamenturl"in e&&u(2,g=e.tournamenturl),"touridx"in e&&u(34,b=e.touridx),"endpoint"in e&&u(35,y=e.endpoint),"showdetails"in e&&u(3,v=e.showdetails),"showslider"in e&&u(4,w=e.showslider),"showenrolled"in e&&u(5,L=e.showenrolled),"maxwidth"in e&&u(6,R=e.maxwidth),"fullsize"in e&&u(7,M=e.fullsize),"lang"in e&&u(8,E=e.lang),"loginevent"in e&&u(36,T=e.loginevent),"registerevent"in e&&u(37,x=e.registerevent),"loginurl"in e&&u(38,S=e.loginurl),"registerurl"in e&&u(39,A=e.registerurl),"currency"in e&&u(40,_=e.currency),"keepbrowsercontext"in e&&u(9,N=e.keepbrowsercontext)},e.$$.update=()=>{if(1&e.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?(P=m,u(10,B=!0)):u(10,B=!1)),260&e.$$.dirty[0]&&u(41,d=g&&E),1024&e.$$.dirty[1]&&d){u(11,C=!0);{var r=g;u(11,C=!0);let e=new URL(r),t=new Headers;e.searchParams.append("language",E),e.searchParams.append("platform",wn(D)),B&&t.append("X-SessionID",P),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{u(11,C=!1),Q(e.item)})}}},[m,f,g,v,w,L,R,M,E,N,B,C,H,F,z,$,n,o,i,s,c,a,h,l,p,I,j,O,r,K,Y,k,Z,q,b,y,T,x,S,A,_,d,()=>K(),()=>Y(),()=>k(c),()=>Z(c,I),()=>k(c)]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends le{constructor(e){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:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);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:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem .5rem;color:var(--emfe-w-color-white, #FFFFFF);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>",ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},eo,Qn,B,{tournamenturl:14,scrollby:15,pagfactor:13,lang:16},null,[-1,-1]),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[14]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),g()}get pagfactor(){return this.$$.ctx[13]}set pagfactor(e){this.$$set({pagfactor:e}),g()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),g()}});class vo extends le{constructor(e){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:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 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:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}</style>',ae(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},yo,bo,B,{session:0,userid:1,tournamenturl:2,touridx:34,endpoint:35,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:36,registerevent:37,loginurl:38,registerurl:39,currency:40,keepbrowsercontext:9},null,[-1,-1]),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get touridx(){return this.$$.ctx[34]}set touridx(e){this.$$set({touridx:e}),g()}get endpoint(){return this.$$.ctx[35]}set endpoint(e){this.$$set({endpoint:e}),g()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),g()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),g()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),g()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get loginevent(){return this.$$.ctx[36]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[37]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[38]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[39]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[40]}set currency(e){this.$$set({currency:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}}return customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",vo),vo});
2
2
  //# sourceMappingURL=casino-tournaments-thumbnail-controller.js.map