@everymatrix/casino-tournaments-controller 0.0.284 → 0.0.287
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 v(){}function d(e){return e()}function h(){return Object.create(null)}function w(e){e.forEach(d)}function f(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Q(e,t,n){e.$$.on_destroy.push(m(t,n))}function b(e){return e&&f(e.destroy)?e.destroy:v}function T(e,t){e.appendChild(t)}function S(e,t,n){e.insertBefore(t,n||null)}function E(e){e.parentNode.removeChild(e)}function p(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function x(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function C(e){return document.createTextNode(e)}function M(){return C(" ")}function l(){return C("")}function k(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function D(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e,t,n){t in e?e[t]=n:D(e,t,n)}function P(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function g(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function e(e,t,n){e.classList[n?"add":"remove"](t)}function r(e){const t={};for(const n of e)t[n.name]=n.value;return t}let _;function O(e){_=e}function ee(e){!function(){if(!_)throw new Error("Function called outside component initialization");return _}().$$.on_mount.push(e)}const A=[],F=[],i=[],o=[],R=Promise.resolve();let N=!1;function $(e){i.push(e)}let s=!1;const a=new Set;function L(){if(!s){s=!0;do{for(let e=0;e<A.length;e+=1){var t=A[e];O(t),function(e){{var t;null!==e.fragment&&(e.update(),w(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach($))}}(t.$$)}for(O(null),A.length=0;F.length;)F.pop()();for(let e=0;e<i.length;e+=1){const n=i[e];a.has(n)||(a.add(n),n())}}while(i.length=0,A.length);for(;o.length;)o.pop()();N=!1,s=!1,a.clear()}}const I=new Set;function u(r,e,t,n,i,o,s=[-1]){var a,l=_;O(r);const u=r.$$={fragment:null,ctx:null,props:o,update:v,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=n)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(A.push(e),N||(N=!0,R.then(L)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],u.update(),c=!0,w(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){const v=(n=e.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(v),v.forEach(E)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(I.delete(a),a.i(void 0)),function(t,e,n,r){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,n),r||$(()=>{var e=o.map(d).filter(f);s?s.push(...e):w(e),t.$$.on_mount=[]}),a.forEach($)}(r,e.target,e.anchor,e.customElement),L()}O(l)}let c;"function"==typeof HTMLElement&&(c=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(d).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){w(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(w(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=v}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var U,Y,z="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==z&&z,j="URLSearchParams"in z,B="Symbol"in z&&"iterator"in Symbol,G="FileReader"in z&&"Blob"in z&&function(){try{return new Blob,!0}catch(e){return!1}}(),H="FormData"in z,W="ArrayBuffer"in z;function V(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 X(e){return e="string"!=typeof e?String(e):e}function Z(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return B&&(e[Symbol.iterator]=function(){return e}),e}function q(t){this.map={},t instanceof q?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 J(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function K(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function te(e){var t=new FileReader,n=K(t);return t.readAsArrayBuffer(e),n}function ne(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function re(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:G&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:H&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:j&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():W&&G&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=ne(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):W&&(ArrayBuffer.prototype.isPrototypeOf(e)||Y(e))?this._bodyArrayBuffer=ne(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):j&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},G&&(this.blob=function(){var e=J(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?J(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(te)}),this.text=function(){var e,t,n=J(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,n=K(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},H&&(this.formData=function(){return this.text().then(se)}),this.json=function(){return this.text().then(JSON.parse)},this}W&&(U=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(e){return e&&-1<U.indexOf(Object.prototype.toString.call(e))}),q.prototype.append=function(e,t){e=V(e),t=X(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},q.prototype.delete=function(e){delete this.map[V(e)]},q.prototype.get=function(e){return e=V(e),this.has(e)?this.map[e]:null},q.prototype.has=function(e){return this.map.hasOwnProperty(V(e))},q.prototype.set=function(e,t){this.map[V(e)]=X(t)},q.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},q.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Z(n)},q.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Z(t)},q.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Z(n)},B&&(q.prototype[Symbol.iterator]=q.prototype.entries);var ie=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function oe(e,t){if(!(this instanceof oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof oe){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new q(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=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 q(t.headers)),this.method=(e=(n=t.method||this.method||"GET").toUpperCase(),-1<ie.indexOf(e)?e:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function se(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),n.append(decodeURIComponent(e),decodeURIComponent(t)))}),n}function ae(e,t){if(!(this instanceof ae))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 q(t.headers),this.url=t.url||"",this._initBody(e)}oe.prototype.clone=function(){return new oe(this,{body:this._bodyInit})},re.call(oe.prototype),re.call(ae.prototype),ae.prototype.clone=function(){return new ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new q(this.headers),url:this.url})},ae.error=function(){var e=new ae(null,{status:0,statusText:""});return e.type="error",e};var le=[301,302,303,307,308];ae.redirect=function(e,t){if(-1===le.indexOf(t))throw new RangeError("Invalid status code");return new ae(null,{status:t,headers:{location:e}})};var ue=z.DOMException;try{new ue}catch(v){(ue=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),ue.prototype.constructor=ue}function ce(r,s){return new Promise(function(i,e){var t=new oe(r,s);if(t.signal&&t.signal.aborted)return e(new ue("Aborted","AbortError"));var o=new XMLHttpRequest;function n(){o.abort()}o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",n=new q,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 t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),n.append(e,t))}),n)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var r="response"in o?o.response:o.responseText;setTimeout(function(){i(new ae(r,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new ue("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&z.location.href?z.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(G?o.responseType="blob":W&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof q?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,X(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",n)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}ce.polyfill=!0,z.fetch||(z.fetch=ce,z.Headers=q,z.Request=oe,z.Response=ae);var de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function he(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return An(null==t&&n.path)}},n.exports),n.exports}function An(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}self.fetch.bind(self);var fe=function(e,t){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}fe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function pe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ge(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function ye(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function ve(e){return"function"==typeof e}function we(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 be=we(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 _e(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var Te=(Ee.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=pe(o),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 o.remove(this);o=this.initialTeardown;if(ve(o))try{o()}catch(e){i=e instanceof be?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=pe(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{Ce(c)}catch(e){i=null!=i?i:[],e instanceof be?i=ye(ye([],ge(i)),ge(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new be(i)}},Ee.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ce(e);else{if(e instanceof Ee){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},Ee.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ee.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ee.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&_e(t,e)},Ee.prototype.remove=function(e){var t=this._teardowns;t&&_e(t,e),e instanceof Ee&&e._removeParent(this)},Ee.EMPTY=((Xt=new Ee).closed=!0,Xt),Ee),Se=Te.EMPTY;function Ee(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function xe(e){return e instanceof Te||e&&"closed"in e&&ve(e.remove)&&ve(e.add)&&ve(e.unsubscribe)}function Ce(e){ve(e)?e():e.unsubscribe()}var Me=void 0,ke=!1,De=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,ye([],ge(e)))};function Pe(){}function Oe(e){e()}var Ae,Fe,Re=(me(Le,Fe=Te),Le.create=function(e,t,n){return new Ne(e,t,n)},Le.prototype.next=function(e){this.isStopped||this._next(e)},Le.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Le.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Le.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Fe.prototype.unsubscribe.call(this),this.destination=null)},Le.prototype._next=function(e){this.destination.next(e)},Le.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Le.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Le),Ne=(me($e,Ae=Re),$e);function $e(e,t,n){var r,i,o=Ae.call(this)||this;return ve(e)?i=e:e&&(i=e.next,t=e.error,n=e.complete,o&&ke?(r=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:r=e,i=null==i?void 0:i.bind(r),t=null==t?void 0:t.bind(r),n=null==n?void 0:n.bind(r)),o.destination={next:i?Ie(i):Pe,error:Ie(null!=t?t:Ue),complete:n?Ie(n):Pe},o}function Le(e){var t=Fe.call(this)||this;return t.isStopped=!1,e?xe(t.destination=e)&&e.add(t):t.destination=Ye,t}function Ie(r){return function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{r.apply(void 0,ye([],ge(e)))}catch(e){t=e,De(function(){throw t})}}}function Ue(e){throw e}var Ye={closed:!0,next:Pe,error:Ue,complete:Pe},ze="function"==typeof Symbol&&Symbol.observable||"@@observable";function je(e){return e}var Be=(Ge.prototype.lift=function(e){var t=new Ge;return t.source=this,t.operator=e,t},Ge.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Re||r&&ve(r.next)&&ve(r.error)&&ve(r.complete)&&xe(r)?e:new Ne(e,t,n);return Oe(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ge.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ge.prototype.forEach=function(r,e){var i=this;return new(e=He(e))(function(e,t){var n=i.subscribe(function(e){try{r(e)}catch(e){t(e),null==n||n.unsubscribe()}},t,e)})},Ge.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ge.prototype[ze]=function(){return this},Ge.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?je:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ge.prototype.toPromise=function(e){var r=this;return new(e=He(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},Ge.create=function(e){return new Ge(e)},Ge);function Ge(e){e&&(this._subscribe=e)}function He(e){return null!==(e=null!=e?e:Me)&&void 0!==e?e:Promise}var We,Ve,Xe,Ze=we(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qe=(me(nt,Xe=Be),nt.prototype.lift=function(e){var t=new Je(this,this);return t.operator=e,t},nt.prototype._throwIfClosed=function(){if(this.closed)throw new Ze},nt.prototype.next=function(o){var s=this;Oe(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var n=s.observers.slice();try{for(var r=pe(n),i=r.next();!i.done;i=r.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},nt.prototype.error=function(t){var n=this;Oe(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},nt.prototype.complete=function(){var t=this;Oe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},nt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(nt.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),nt.prototype._trySubscribe=function(e){return this._throwIfClosed(),Xe.prototype._trySubscribe.call(this,e)},nt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},nt.prototype._innerSubscribe=function(e){var t=this.hasError,n=this.isStopped,r=this.observers;return t||n?Se:(r.push(e),new Te(function(){return _e(r,e)}))},nt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},nt.prototype.asObservable=function(){var e=new Be;return e.source=this,e},nt.create=function(e,t){return new Je(e,t)},nt),Je=(me(tt,Ve=qe),tt.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},tt.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},tt.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},tt.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:Se},tt),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},Qe=(me(et,We=qe),et.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;n||(r.push(e),i||r.push(o.now()+t)),this._trimBuffer(),We.prototype.next.call(this,e)},et.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},et.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=t.now(),s=0,a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}},et);function et(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=Ke);var r=We.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function tt(e,t){var n=Ve.call(this)||this;return n.destination=e,n.source=t,n}function nt(){var e=Xe.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let rt=[],it={};const ot=[];function st(r,i=v){let o;const s=[];function a(e){if(n(r,e)&&(r=e,o)){const e=!ot.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),ot.push(t,r)}if(e){for(let e=0;e<ot.length;e+=2)ot[e][0](ot[e+1]);ot.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=v){const n=[e,t];return s.push(n),1===s.length&&(o=i(a)||v),e(r),()=>{var e=s.indexOf(n);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function at(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:st(t,t=>{let n=!1;const r=[];let i=0,o=v;const s=()=>{var e;i||(o(),e=a(l?r[0]:r,t),c?t(e):o=f(e)?e:v)},e=u.map((e,t)=>m(e,e=>{r[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}));return n=!0,s(),function(){w(e),o()}}).subscribe}}var lt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===ut));var t},ut="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ct(e,t){return!1!==t.clone&&t.isMergeableObject(e)?pt(Array.isArray(e)?[]:{},e,t):e}function dt(e,t,n){return e.concat(t).map(function(e){return ct(e,n)})}function ht(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ft(e,t){try{return t in e}catch(e){return!1}}function mt(r,i,o){var s={};return o.isMergeableObject(r)&&ht(r).forEach(function(e){s[e]=ct(r[e],o)}),ht(i).forEach(function(t){var e,n;(!ft(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(ft(r,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return pt;var e=o.customMerge(t);return"function"==typeof e?e:pt}()(r[t],i[t],o):s[t]=ct(i[t],o))}),s}function pt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||dt,n.isMergeableObject=n.isMergeableObject||lt,n.cloneUnlessOtherwiseSpecified=ct;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):mt(e,t,n):ct(t,n)}pt.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return pt(e,t,n)},{})};var gt=pt,yt=function(e,t){return(yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function vt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var wt,bt,_t,Tt=function(){return(Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function St(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function Et(e){return e.type===bt.literal}function xt(e){return e.type===bt.number}function Ct(e){return e.type===bt.date}function Mt(e){return e.type===bt.time}function kt(e){return e.type===bt.select}function Dt(e){return e.type===bt.plural}function Pt(e){return e.type===bt.tag}function Ot(e){return e&&"object"==typeof e&&e.type===_t.number}function At(e){return e&&"object"==typeof e&&e.type===_t.dateTime}(Zt=wt=wt||{})[Zt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Zt[Zt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Zt[Zt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Zt[Zt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Zt[Zt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Zt[Zt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Zt[Zt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Zt[Zt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Zt[Zt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Zt[Zt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Zt[Zt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Zt[Zt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Zt[Zt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Zt[Zt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Zt[Zt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Zt[Zt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Zt[Zt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Zt[Zt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Zt[Zt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Zt[Zt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Zt[Zt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Zt[Zt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Zt[Zt.INVALID_TAG=23]="INVALID_TAG",Zt[Zt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Zt[Zt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Zt[Zt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(qt=bt=bt||{})[qt.literal=0]="literal",qt[qt.argument=1]="argument",qt[qt.number=2]="number",qt[qt.date=3]="date",qt[qt.time=4]="time",qt[qt.select=5]="select",qt[qt.plural=6]="plural",qt[qt.pound=7]="pound",qt[qt.tag=8]="tag",(Jt=_t=_t||{})[Jt.number=0]="number",Jt[Jt.dateTime=1]="dateTime";var Ft=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Rt=/(?:[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 Nt,$t=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Lt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,It=/^(@+)?(\+|#+)?$/g,Ut=/(\*)(0+)|(#+)(0+)|(0+)/g,Yt=/^(0+)$/;function zt(e){var r={};return e.replace(It,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function jt(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 Bt(e){return jt(e)||{}}function Gt(e){for(var s={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.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=i.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=Tt(Tt(Tt({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return Tt(Tt({},e),Bt(t))},{}));continue;case"engineering":s=Tt(Tt(Tt({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return Tt(Tt({},e),Bt(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(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ut,function(e,t,n,r,i,o){if(t)s.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Yt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Lt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Lt,function(e,t,n,r,i,o){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=Tt(Tt({},s),zt(i.options[0])))}else It.test(i.stem)?s=Tt(Tt({},s),zt(i.stem)):((r=jt(i.stem))&&(s=Tt(Tt({},s),r)),(r=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Yt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=Tt(Tt({},s),r)))}return s}var Ht=new RegExp("^"+Ft.source+"*"),Wt=new RegExp(Ft.source+"*$");function Vt(e,t){return{start:e,end:t}}var Xt=!!String.prototype.startsWith,ze=!!String.fromCodePoint,qe=!!Object.fromEntries,Zt=!!String.prototype.codePointAt,qt=!!String.prototype.trimStart,Jt=!!String.prototype.trimEnd,Kt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ft=!0;try{Ft="a"===(null===(Nt=ln("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Nt?void 0:Nt[0])}catch(v){Ft=!1}var Qt,en,tn=Xt?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},nn=ze?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;o<i;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},rn=qe?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],i=i[1];t[o]=i}return t},on=Zt?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||n<=t)){var r,i=e.charCodeAt(t);return i<55296||56319<i||t+1===n||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536}},sn=qt?function(e){return e.trimStart()}:function(e){return e.replace(Ht,"")},an=Jt?function(e){return e.trimEnd()}:function(e){return e.replace(Wt,"")};function ln(e,t){return new RegExp(e,t)}en=Ft?(Qt=ln("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Qt.lastIndex=t,null!==(e=Qt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var n,r=[];;){var i=on(e,t);if(void 0===i||hn(i)||(33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(i),t+=65536<=i?2:1}return nn.apply(void 0,r)};var un=(cn.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},cn.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(wt.UNMATCHED_CLOSING_TAG,Vt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&dn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{o=this.clonePosition();this.bump(),r.push({type:bt.pound,location:Vt(o,this.clonePosition())})}}}return{val:r,err:null}},cn.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:bt.literal,value:"<"+r+"/>",location:Vt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!dn(this.char()))return this.error(wt.INVALID_TAG,Vt(t,this.clonePosition()));i=this.clonePosition();return r!==this.parseTagName()?this.error(wt.UNMATCHED_CLOSING_TAG,Vt(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:bt.tag,value:r,children:e,location:Vt(n,this.clonePosition())},err:null}:this.error(wt.INVALID_TAG,Vt(t,this.clonePosition())))}return this.error(wt.UNCLOSED_TAG,Vt(n,this.clonePosition()))}return this.error(wt.INVALID_TAG,Vt(n,this.clonePosition()))},cn.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())},cn.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=Vt(n,this.clonePosition());return{val:{type:bt.literal,value:r,location:n},err:null}},cn.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(dn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},cn.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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return nn.apply(void 0,t)},cn.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),nn(n))},cn.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(wt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(wt.EMPTY_ARGUMENT,Vt(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(wt.MALFORMED_ARGUMENT,Vt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(wt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:bt.argument,value:r,location:Vt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(wt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(wt.MALFORMED_ARGUMENT,Vt(n,this.clonePosition()))}},cn.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=en(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:Vt(e,this.clonePosition())}},cn.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(wt.EXPECT_ARGUMENT_TYPE,Vt(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=an(h.val)).length)return this.error(wt.EXPECT_ARGUMENT_STYLE,Vt(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Vt(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(r)).err)return f;var c=Vt(r,this.clonePosition());if(l&&tn(null==l?void 0:l.style,"::",0)){u=sn(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:bt.number,value:n,location:c,style:h.val},err:null};if(0===u.length)return this.error(wt.EXPECT_DATE_TIME_SKELETON,c);var d={type:_t.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Rt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.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":i.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":i.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":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.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":i.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""}),i):{}};return{val:{type:"date"===s?bt.date:bt.time,value:n,location:c,style:d},err:null}}return{val:{type:"number"===s?bt.number:"date"===s?bt.date:bt.time,value:n,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(wt.EXPECT_SELECT_ARGUMENT_OPTIONS,Vt(l,Tt({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(wt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(wt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,wt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((f=this.tryParseArgumentClose(r)).err)return f;var f=Vt(r,this.clonePosition());return"select"===s?{val:{type:bt.select,value:n,options:rn(c.val),location:f},err:null}:{val:{type:bt.plural,value:n,options:rn(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(wt.INVALID_ARGUMENT_TYPE,Vt(o,a))}},cn.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(wt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},cn.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(wt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Vt(n,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}},cn.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split($t).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(wt.INVALID_NUMBER_SKELETON,t)}return{val:{type:_t.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Gt(n):{}},err:null}},cn.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,o=[],s=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(wt.EXPECT_PLURAL_ARGUMENT_SELECTOR,wt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Vt(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?wt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:wt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?wt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:wt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Vt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;u=this.tryParseArgumentClose(d);if(u.err)return u;o.push([a,{value:c.val,location:Vt(d,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?wt.EXPECT_SELECT_ARGUMENT_SELECTOR:wt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(wt.MISSING_OTHER_CLAUSE,Vt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},cn.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}r=Vt(r,this.clonePosition());return i?Kt(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},cn.prototype.offset=function(){return this.position.offset},cn.prototype.isEOF=function(){return this.offset()===this.message.length},cn.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},cn.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=on(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},cn.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},cn.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))},cn.prototype.bumpIf=function(e){if(tn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},cn.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},cn.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},cn.prototype.bumpSpace=function(){for(;!this.isEOF()&&hn(this.char());)this.bump()},cn.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},cn);function cn(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function dn(e){return 97<=e&&e<=122||65<=e&&e<=90}function hn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function fn(e,t){t=Tt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n=new un(e,t).parse();if(n.err){e=SyntaxError(wt[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,kt(e)||Dt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else xt(e)&&Ot(e.style)||(Ct(e)||Mt(e))&&At(e.style)?delete e.style.location:Pt(e)&&n(e.children)})}(n.val),n.val}function mn(e,t){var n=t&&t.cache?t.cache:_n,r=t&&t.serializer?t.serializer:vn;return(t&&t.strategy?t.strategy:function(e,t){return yn(e,this,1===e.length?pn:gn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function pn(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function gn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function yn(e,t,n,r,i){return n.bind(t,e,r,i)}var vn=function(){return JSON.stringify(arguments)};function wn(){this.cache=Object.create(null)}wn.prototype.has=function(e){return e in this.cache},wn.prototype.get=function(e){return this.cache[e]},wn.prototype.set=function(e,t){this.cache[e]=t};var bn,_n={create:function(){return new wn}},Tn={variadic:function(e,t){return yn(e,this,gn,t.cache.create(),t.serializer)},monadic:function(e,t){return yn(e,this,pn,t.cache.create(),t.serializer)}};(Ft=bn=bn||{}).MISSING_VALUE="MISSING_VALUE",Ft.INVALID_VALUE="INVALID_VALUE",Ft.MISSING_INTL_API="MISSING_INTL_API";var Sn,En,xn,Cn,Mn,kn=(vt($n,Mn=Error),$n.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},$n),Dn=(vt(Nn,Cn=kn),Nn),Pn=(vt(Rn,xn=kn),Rn),On=(vt(Fn,En=kn),Fn);function Fn(e,t){return En.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',bn.MISSING_VALUE,t)||this}function Rn(e,t,n){return xn.call(this,'Value for "'+e+'" must be of type '+t,bn.INVALID_VALUE,n)||this}function Nn(e,t,n,r){return Cn.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',bn.INVALID_VALUE,r)||this}function $n(e,t,n){e=Mn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Ln(e,t,n,r,i,o,s){if(1===e.length&&Et(e[0]))return[{type:Sn.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Et(c))a.push({type:Sn.literal,value:c.value});else if(c.type===bt.pound)"number"==typeof o&&a.push({type:Sn.literal,value:n.getNumberFormat(t).format(o)});else{var d=c.value;if(!(i&&d in i))throw new On(d,s);var h=i[d];if(c.type===bt.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?Sn.literal:Sn.object,value:h});else if(Ct(c)){var f="string"==typeof c.style?r.date[c.style]:At(c.style)?c.style.parsedOptions:void 0;a.push({type:Sn.literal,value:n.getDateTimeFormat(t,f).format(h)})}else if(Mt(c))f="string"==typeof c.style?r.time[c.style]:At(c.style)?c.style.parsedOptions:void 0,a.push({type:Sn.literal,value:n.getDateTimeFormat(t,f).format(h)});else if(xt(c))(f="string"==typeof c.style?r.number[c.style]:Ot(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:Sn.literal,value:n.getNumberFormat(t,f).format(h)});else{if(Pt(c)){var m=c.children,p=c.value,d=i[p];if("function"!=typeof d)throw new Pn(p,"function",s);m=d(Ln(m,t,n,r,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?Sn.literal:Sn.object,value:e}}))}if(kt(c)){if(!(g=c.options[h]||c.options.other))throw new Dn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Ln(g.value,t,n,r,i))}else if(Dt(c)){if(!(g=c.options["="+h])){if(!Intl.PluralRules)throw new kn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',bn.MISSING_INTL_API,s);var m=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[m]||c.options.other}if(!g)throw new Dn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Ln(g.value,t,n,r,i,h-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===Sn.literal&&t.type===Sn.literal?n.value+=t.value:e.push(t),e},[])}function In(n){return{create:function(){return{has:function(e){return e in n},get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(Ft=Sn=Sn||{})[Ft.literal=0]="literal",Ft[Ft.object=1]="object";var Un=(Object.defineProperty(Yn,"defaultLocale",{get:function(){return Yn.memoizedDefaultLocale||(Yn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Yn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Yn.memoizedDefaultLocale=null,Yn.__parse=fn,Yn.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"}}},Yn);function Yn(e,t,n,r){var i,o,s=this;if(void 0===t&&(t=Yn.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===Sn.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 Ln(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Yn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Yn.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=Yn.formats,(o=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=o[t])?Tt(Tt(Tt({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=Tt(Tt({},n[t]),r[t]||{}),e},{})):n),e},Tt({},i)):i),this.locales=t,this.formatters=r&&r.formatters||{getNumberFormat:mn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,St([void 0],t)))},{cache:In((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:Tn.variadic}),getDateTimeFormat:mn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,St([void 0],t)))},{cache:In(r.dateTime),strategy:Tn.variadic}),getPluralRules:mn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,St([void 0],t)))},{cache:In(r.pluralRules),strategy:Tn.variadic})}}const zn={},jn=(t,n)=>{if(null!=n){if(n in zn&&t in zn[n])return zn[n][t];var r,i,o=ir(n);for(let e=0;e<o.length;e++){var s=(r=o[e],i=t,Hn(r)?function(e,t){if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(0<e){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(function(e){return Bn[e]||null}(r),i):null);if(s)return r=t,i=n,(s=s)&&(i in zn||(zn[i]={}),r in zn[i]||(zn[i][r]=s),s)}}};let Bn;const Gn=st({});function Hn(e){return e in Bn}function Wn(t,...n){delete zn[t],Gn.update(e=>(e[t]=gt.all([e[t]||{},...n]),e))}at([Gn],([e])=>Object.keys(e)),Gn.subscribe(e=>Bn=e);const Vn={};function Xn(e){return Vn[e]}function Zn(e){return ir(e).some(e=>{return null===(e=Xn(e))||void 0===e?void 0:e.size})}const qn={};function Jn(e){if(!Zn(e))return e in qn?qn[e]:void 0;const t=ir(e).map(e=>{var t=Xn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return qn[e]=Promise.all(t.map(([e,n])=>function(t){return Promise.all(n.map(e=>(function(e,t){Vn[e].delete(t),0===Vn[e].size&&delete Vn[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Wn(t,...e))}(e))).then(()=>Zn(e)?Jn(e):void delete qn[e]),qn[e]}function Kn(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const Qn={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const er=st(!1);let tr;const nr=st(null);function rr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function ir(e,t=Qn.fallbackLocale){e=rr(e);return t?[...new Set([...e,...rr(t)])]:e}nr.subscribe(e=>{tr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const or=nr.set;nr.set=t=>{if(function(e){if(null!=e){var t=ir(e);for(let e=0;e<t.length;e++){var n=t[e];if(Hn(n))return n}}}(t)&&Zn(t)){var{loadingDelay:n}=Qn;let e;return"undefined"!=typeof window&&null!=tr&&n?e=window.setTimeout(()=>er.set(!0),n):er.set(!0),Jn(t).then(()=>{or(t)}).finally(()=>{clearTimeout(e),er.set(!1)})}return or(t)},nr.update=e=>or(e(tr));const sr=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},ar=(e,t)=>{var{formats:n}=Qn;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},lr=sr(e=>{var{locale:t,format:n}=e,e=Kn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=ar("number",n)),new Intl.NumberFormat(t,e)}),ur=sr(e=>{var{locale:t,format:n}=e,e=Kn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=ar("date",n):0===Object.keys(e).length&&(e=ar("date","short")),new Intl.DateTimeFormat(t,e)}),cr=sr(e=>{var{locale:t,format:n}=e,e=Kn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=ar("time",n):0===Object.keys(e).length&&(e=ar("time","short")),new Intl.DateTimeFormat(t,e)}),dr=sr((e,t=tr)=>new Un(e,t,Qn.formats,{ignoreTag:Qn.ignoreTag})),hr=at([nr,Gn],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:n,locale:r=tr,default:i}=t;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=jn(e,r);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Qn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${ir(r).join('", "')}".${Zn(tr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!n)return o;let s=o;try{s=dr(o,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});at([nr],()=>(e,t)=>((e={})=>{var{locale:t=tr}=e,e=Kn(e,["locale"]);return cr(Object.assign({locale:t},e))})(t).format(e)),at([nr],()=>(e,t)=>((e={})=>{var{locale:t=tr}=e,e=Kn(e,["locale"]);return ur(Object.assign({locale:t},e))})(t).format(e)),at([nr],()=>(e,t)=>((e={})=>{var{locale:t=tr}=e,e=Kn(e,["locale"]);return lr(Object.assign({locale:t},e))})(t).format(e)),at([nr,Gn],()=>(e,t=tr)=>jn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==rt.indexOf(e)&&(t=new Qe(t),it[e]=t,rt.push(e)),it[e]}};const fr=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),mr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function pr(e){nr.set(e)}const gr={en:{tournamentsController:{500:"500 - Internal server error",showMore:"Show more",Scheduled:"Scheduled",Ongoing:"OnGoing",Finished:"Finished",loading:"Loading, please wait ...",noTournaments:"No tournaments found"}},ro:{tournamentsController:{500:"500 - Internal server error",showMore:"Mai mult",Scheduled:"Programate",Ongoing:"In desfasurare",Finished:"Finalizate",loading:"Se incarca, asteptati ...",noTournaments:"Niciun turneu gasit"}},tr:{tournamentsController:{500:"500 - Dahili sunucu hatası",showMore:"Daha fazla",Scheduled:"Scheduledddddd",Ongoing:"OnGoingggggg",Finished:"Finisheddddddd",loading:"Yükelniyor, lütfen bekleyin ...",noTournaments:"Herhangi bir turnuva bulunamadı."}},el:{tournamentsController:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",Scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",Ongoing:"ΤΡΕΧΟΝΤΑ",Finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά"}},es:{tournamentsController:{500:"Error 500 - Error Interno del Servidor",showMore:"Ver más",Scheduled:"Rrogramado",Ongoing:"En progreso",Finished:"Acabado",loading:"Cargando ... Por favor espere ...",noTournaments:"No se encontró ningún torneo"}},pt:{tournamentsController:{500:"Erro 500 - Erro interno do servidor",showMore:"Ver mais",Scheduled:"Agendado",Ongoing:"Em progresso",Finished:"Finalizado",loading:"Carregando, por favor espere ...",noTournaments:"Nenhum torneio encontrado"}}};var yr=he(function(e,_){!function(e){var r,O=e.setTimeout,A=e.clearTimeout,F=e.XMLHttpRequest,i=e.XDomainRequest,t=e.ActiveXObject,n=e.EventSource,o=e.document,d=e.Promise,h=e.fetch,s=e.Response,f=e.TextDecoder,a=e.TextEncoder,m=e.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===o||"readyState"in o||null!=o.body||(o.readyState="loading",window.addEventListener("load",function(e){o.readyState="complete"},!1)),null==F&&null!=t&&(F=function(){return new t("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==m&&(r=h,h=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},m=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),l.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",i=this.bitsNeeded,o=this.codePoint,s=0;s<e.length;s+=1){var a=e[s];0!==i&&(a<128||191<a||!t(o<<6|63&a,i-6,n(i,o)))&&(i=0,o=65533,r+=String.fromCharCode(o)),0===i?(o=0<=a&&a<=127?(i=0,a):192<=a&&a<=223?(i=6,31&a):224<=a&&a<=239?(i=12,15&a):240<=a&&a<=247?(i=18,7&a):(i=0,65533),0===i||t(o,i,n(i,o))||(i=0,o=65533)):(i-=6,o=o<<6|63&a),0===i&&(o<=65535?r+=String.fromCharCode(o):(r+=String.fromCharCode(55296+(o-65535-1>>10)),r+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=o,r},null!=f&&null!=a&&function(){try{return"test"===(new f).decode((new a).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(f=l);var c=function(){};function R(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=c,this.onload=c,this.onerror=c,this.onreadystatechange=c,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=c}function u(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function p(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),i=i.join(": ");t[u(o)]=i}this._map=t}function N(){}function g(e){this._headers=e}function $(){}function y(){this._listeners=Object.create(null)}function v(e){O(function(){throw e},0)}function w(e){this.type=e,this.target=void 0}function L(e,t){w.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function I(e,t){w.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function U(e,t){w.call(this,e),this.error=t.error}R.prototype.open=function(e,t){this._abort(!0);var i=this,o=this._xhr,s=1,n=0;this._abort=function(e){0!==i._sendTimeout&&(A(i._sendTimeout),i._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,o.onload=c,o.onerror=c,o.onabort=c,o.onprogress=c,o.onreadystatechange=c,o.abort(),0!==n&&(A(n),n=0),e||(i.readyState=4,i.onabort(null),i.onreadystatechange())),s=0};function r(){if(1===s){var t=0,n="",r=void 0;if("contentType"in o)t=200,n="OK",r=o.contentType;else try{t=o.status,n=o.statusText,r=o.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(s=2,i.readyState=2,i.status=t,i.statusText=n,i._contentType=r,i.onreadystatechange())}}function a(){if(r(),2===s||3===s){s=3;var e="";try{e=o.responseText}catch(e){}i.readyState=3,i.responseText=e,i.onprogress()}}function l(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:c}),a(),1===s||2===s||3===s){if(s=4,0!==n&&(A(n),n=0),i.readyState=4,"load"===e)i.onload(t);else if("error"===e)i.onerror(t);else{if("abort"!==e)throw new TypeError;i.onabort(t)}i.onreadystatechange()}}var u=function(){n=O(function(){u()},500),3===o.readyState&&a()};"onload"in o&&(o.onload=function(e){l("load",e)}),"onerror"in o&&(o.onerror=function(e){l("error",e)}),"onabort"in o&&(o.onabort=function(e){l("abort",e)}),"onprogress"in o&&(o.onprogress=a),"onreadystatechange"in o&&(o.onreadystatechange=function(e){e=e,null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||l(""===o.responseText?"error":"load",e):3===o.readyState?"onprogress"in o||a():2===o.readyState&&r())}),!("contentType"in o)&&"ontimeout"in F.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),o.open(e,t,!0),"readyState"in o&&(n=O(function(){u()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(e){return this._contentType},R.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},R.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if("ontimeout"in F.prototype&&("sendAsBinary"in F.prototype||"mozAnon"in F.prototype)||null==o||null==o.readyState||"complete"===o.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=O(function(){t._sendTimeout=0,t.send()},4)}},p.prototype.get=function(e){return this._map[u(e)]},null!=F&&null==F.HEADERS_RECEIVED&&(F.HEADERS_RECEIVED=2),N.prototype.open=function(i,o,t,n,e,r,s){i.open("GET",e);var a,l=0;for(a in i.onprogress=function(){var e=i.responseText.slice(l);l+=e.length,t(e)},i.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},i.onload=function(){n(null)},i.onabort=function(){n(null)},i.onreadystatechange=function(){var e,t,n,r;i.readyState===F.HEADERS_RECEIVED&&(e=i.status,t=i.statusText,n=i.getResponseHeader("Content-Type"),r=i.getAllResponseHeaders(),o(e,t,n,new p(r)))},i.withCredentials=r,s)Object.prototype.hasOwnProperty.call(s,a)&&i.setRequestHeader(a,s[a]);return i.send(),i},g.prototype.get=function(e){return this._headers.get(e)},$.prototype.open=function(e,t,i,n,r,o,s){var a=null,l=new m,u=l.signal,c=new f;return h(r,{headers:s,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then(function(e){return a=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new g(e.headers)),new d(function(t,n){var r=function(){a.read().then(function(e){e.done?t(void 0):(e=c.decode(e.value,{stream:!0}),i(e),r())}).catch(function(e){n(e)})};r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=a&&a.cancel(),l.abort()}}},y.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){v(e)}}},y.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},y.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete n[e]:n[e]=i}},L.prototype=Object.create(w.prototype),I.prototype=Object.create(w.prototype),U.prototype=Object.create(w.prototype);function Y(e,t){return e=null==e?t:parseInt(e,10),B(e=e!=e?t:e)}function z(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){v(e)}}var j=/^text\/event\-stream(;.*)?$/i,B=function(e){return Math.min(Math.max(e,1e3),18e6)};function b(e,t){y.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(l,o,e){o=String(o);function s(e,t,n,r){var i,o;0===_&&(200===e&&null!=n&&j.test(n)?(_=1,p=Date.now(),m=d,l.readyState=1,i=new I("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),z(l,l.onopen,i)):(o="",o=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",D(),i=new I("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),z(l,l.onerror,i),console.error(o)))}function a(e){if(1===_){for(var t=-1,n=0;n<e.length;n+=1)(s=e.charCodeAt(n))!=="\n".charCodeAt(0)&&s!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?x:"")+e.slice(0,t+1);x=(-1===t?x:"")+e.slice(t+1),""!==e&&(p=Date.now(),g+=e.length);for(var i=0;i<r.length;i+=1){var o,s=r.charCodeAt(i);if(-1===C&&s==="\n".charCodeAt(0))C=0;else if(-1===C&&(C=0),s==="\r".charCodeAt(0)||s==="\n".charCodeAt(0)){if(0!==C&&(1===C&&(k=i+1),o=r.slice(M,k-1),a=r.slice(k+(k<i&&r.charCodeAt(k)===" ".charCodeAt(0)?1:0),i),"data"===o?(T+="\n",T+=a):"id"===o?S=a:"event"===o?E=a:"retry"===o?(d=Y(a,d),m=d):"heartbeatTimeout"===o&&(h=Y(a,h),0!==b&&(A(b),b=O(function(){P()},h)))),0===C){if(""!==T){f=S;var a=new L(E=""===E?"message":E,{data:T.slice(1),lastEventId:S});if(l.dispatchEvent(a),"open"===E?z(l,l.onopen,a):"message"===E?z(l,l.onmessage,a):"error"===E&&z(l,l.onerror,a),2===_)return}E=T=""}C=s==="\r".charCodeAt(0)?-1:0}else 0===C&&(M=i,C=1),1===C?s===":".charCodeAt(0)&&(k=i+1,C=2):2===C&&(C=3)}}}function u(e){var t;1!==_&&0!==_||(_=-1,0!==b&&(A(b),b=0),b=O(function(){P()},m),m=B(Math.min(16*d,2*m)),l.readyState=0,t=new U("error",{error:e}),l.dispatchEvent(t),z(l,l.onerror,t),null!=e&&console.error(e))}var t=Boolean(e.withCredentials),c=e.lastEventIdQueryParameterName||"lastEventId",d=B(1e3),h=Y(e.heartbeatTimeout,45e3),f="",m=d,p=!1,g=0,n=e.headers||{},e=e.Transport,y=G&&null==e?void 0:new R(new(null!=e?e:null!=F&&"withCredentials"in F.prototype||null==i?F:i)),v=new(null!=e&&"string"!=typeof e?e:null==y?$:N),w=void 0,b=0,_=-1,T="",S="",E="",x="",C=0,M=0,k=0,D=function(){_=2,null!=w&&(w.abort(),w=void 0),0!==b&&(A(b),b=0),l.readyState=2},P=function(){if(b=0,-1===_){p=!1,g=0,b=O(function(){P()},h),S=f,x=E=T="",C=k=M=_=0;var e=o;"data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==f&&(e=-1===(t=o.indexOf("?"))?o:o.slice(0,t+1)+o.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===c?"":e}),e+=(-1===o.indexOf("?")?"?":"&")+c+"="+encodeURIComponent(f));var t=l.withCredentials,n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);try{w=v.open(y,s,a,u,e,t,n)}catch(e){throw D(),e}}else p||null==w?(t=Math.max((p||Date.now())+h-Date.now(),1),p=!1,b=O(function(){P()},t)):(u(new Error("No activity within "+h+" milliseconds. "+(0===_?"No response received.":g+" chars received.")+" Reconnecting.")),null!=w&&(w.abort(),w=void 0))};l.url=o,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=D,P()}(this,e,t)}var G=null!=h&&null!=s&&"body"in s.prototype;(b.prototype=Object.create(y.prototype)).CONNECTING=0,b.prototype.OPEN=1,b.prototype.CLOSED=2,b.prototype.close=function(){this._close()},b.CONNECTING=0,b.OPEN=1,b.CLOSED=2,b.prototype.withCredentials=void 0;e=n;null==F||null!=n&&"withCredentials"in n.prototype||(e=b),(s=_).EventSourcePolyfill=b,s.NativeEventSource=n,s.EventSource=e}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:de:globalThis)});const vr={en:{tournamentsFilter:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished"}},ro:{tournamentsFilter:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"In desfasurare",finished:"Terminate"}},tr:{tournamentsFilter:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş"}},el:{tournamentsFilter:{tournaments:"Τουρνουά",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ"}},es:{tournamentsFilter:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished"}},pt:{tournamentsFilter:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"}}};function wr(e,t,n){const r=e.slice();return r[13]=t[n],r[15]=n,r}function br(t){let i,n,o,r,s,e=t[3]("tournamentsFilter.tournaments")+"",a=t[0],l=[];for(let e=0;e<a.length;e+=1)l[e]=Cr(wr(t,a,e));return{c(){i=x("ul"),n=x("li"),o=C(e),r=C(":"),s=M();for(let e=0;e<l.length;e+=1)l[e].c();D(n,"class","FiltersTitle "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty")),D(n,"part","FiltersTitle "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty")),D(i,"class","FiltersList "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty")),D(i,"part","FiltersList "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){S(e,i,t),T(i,n),T(n,o),T(n,r),T(i,s);for(let e=0;e<l.length;e+=1)l[e].m(i,null)},p(t,n){if(8&n&&e!==(e=t[3]("tournamentsFilter.tournaments")+"")&&P(o,e),63&n){let e;for(a=t[0],e=0;e<a.length;e+=1){var r=wr(t,a,e);l[e]?l[e].p(r,n):(l[e]=Cr(r),l[e].c(),l[e].m(i,null))}for(;e<l.length;e+=1)l[e].d(1);l.length=a.length}},d(e){e&&E(i),p(l,e)}}}function _r(){let n,r;return{c(){n=t("svg"),r=t("path"),D(r,"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),D(n,"xmlns","http://www.w3.org/2000/svg"),D(n,"width","16"),D(n,"height","16"),D(n,"fill","currentColor"),D(n,"class","bi bi-check"),D(n,"part","bi bi-check"),D(n,"viewBox","0 0 16 16")},m(e,t){S(e,n,t),T(n,r)},d(e){e&&E(n)}}}function Tr(e){let n,r=e[3]("tournamentsFilter.scheduled")+"";return{c(){n=C(r)},m(e,t){S(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.scheduled")+"")&&P(n,r)},d(e){e&&E(n)}}}function Sr(e){let n,r=e[3]("tournamentsFilter.ongoing")+"";return{c(){n=C(r)},m(e,t){S(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.ongoing")+"")&&P(n,r)},d(e){e&&E(n)}}}function Er(e){let n,r=e[3]("tournamentsFilter.finished")+"";return{c(){n=C(r)},m(e,t){S(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.finished")+"")&&P(n,r)},d(e){e&&E(n)}}}function xr(e){let n,r=e[3]("tournamentsFilter.all")+"";return{c(){n=C(r)},m(e,t){S(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.all")+"")&&P(n,r)},d(e){e&&E(n)}}}function Cr(n){let r,i,o,s,a,l,u,c,d,h,f,m,p=(1==n[1][n[15]]||n[2]&&0==n[15])&&_r(),g="Scheduled"==n[13]&&Tr(n),y="Ongoing"==n[13]&&Sr(n),v="Finished"==n[13]&&Er(n),w="All"==n[13]&&xr(n);function b(){return n[8](n[13],n[15])}return{c(){r=x("li"),i=x("button"),p&&p.c(),o=M(),s=x("div"),g&&g.c(),a=M(),y&&y.c(),l=M(),v&&v.c(),u=M(),w&&w.c(),h=M(),D(s,"class","FilterButton "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),D(s,"part","FilterButton "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),D(i,"class",c=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),D(i,"part",d=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),D(r,"class","FiltersItem"),D(r,"part","FiltersItem")},m(e,t){S(e,r,t),T(r,i),p&&p.m(i,null),T(i,o),T(i,s),g&&g.m(s,null),T(s,a),y&&y.m(s,null),T(s,l),v&&v.m(s,null),T(s,u),w&&w.m(s,null),T(r,h),f||(m=k(r,"click",b),f=!0)},p(e,t){1==(n=e)[1][n[15]]||n[2]&&0==n[15]?p||(p=_r(),p.c(),p.m(i,o)):p&&(p.d(1),p=null),"Scheduled"==n[13]?g?g.p(n,t):(g=Tr(n),g.c(),g.m(s,a)):g&&(g.d(1),g=null),"Ongoing"==n[13]?y?y.p(n,t):(y=Sr(n),y.c(),y.m(s,l)):y&&(y.d(1),y=null),"Finished"==n[13]?v?v.p(n,t):(v=Er(n),v.c(),v.m(s,u)):v&&(v.d(1),v=null),"All"==n[13]?w?w.p(n,t):(w=xr(n),w.c(),w.m(s,null)):w&&(w.d(1),w=null),6&t&&c!==(c=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty"))&&D(i,"class",c),6&t&&d!==(d=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty"))&&D(i,"part",d)},d(e){e&&E(r),p&&p.d(),g&&g.d(),y&&y.d(),v&&v.d(),w&&w.d(),f=!1,m()}}}function Mr(e){let n,r=0<e[0].length&&br(e);return{c(){n=x("div"),r&&r.c(),this.c=v,D(n,"class","FiltersController "+(fr(e[4])?"MobileClass":"Non-MobileClass/empty")),D(n,"part","FiltersController "+(fr(e[4])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){S(e,n,t),r&&r.m(n,null)},p(e,[t]){0<e[0].length?r?r.p(e,t):(r=br(e),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:v,o:v,d(e){e&&E(n),r&&r.d()}}}function kr(e,t,n){let r;Q(e,hr,e=>n(3,r=e));let{filters:i=""}=t,{activefilters:o=""}=t,s=[],a=0,l=new Array(100),u=!0,c=window.navigator.userAgent;Object.keys(vr).forEach(e=>{Wn(e,vr[e])});const d=(e,t)=>{if(0==t)n(2,u=!0),n(1,l=new Array(a)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]});else if(n(2,u=!1),1==l[t]?(n(1,l[t]=0,l),-1==l.indexOf(1)&&n(2,u=!0)):n(1,l[t]=1,l),-1==l.indexOf(1))window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]});else{let t=[];for(let e=0;e<s.length;e++)1==l[e]&&t.push(s[e]);window.postMessage({type:"TournamentsFiltersSelected",filters:t})}};return e.$$set=e=>{"filters"in e&&n(6,i=e.filters),"activefilters"in e&&n(7,o=e.activefilters)},e.$$.update=()=>{64&e.$$.dirty&&i&&(n(0,s=i.split(",")),a=s.length),128&e.$$.dirty&&o&&(()=>{let e=o.split(",");n(1,l=new Array(a)),-1!=e.indexOf("All")?n(2,u=!0):(n(2,u=!1),e.forEach(e=>{e=s.indexOf(e);0<e&&n(1,l[e]=1,l)}))})()},[s,l,u,r,c,d,i,o,(e,t)=>d(0,t)]}customElements.get("casino-tournaments-filter-controller")||customElements.define("casino-tournaments-filter-controller",class extends c{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}ul{display:flex;gap:10px}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},kr,Mr,n,{filters:6,activefilters:7}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["filters","activefilters"]}get filters(){return this.$$.ctx[6]}set filters(e){this.$set({filters:e}),L()}get activefilters(){return this.$$.ctx[7]}set activefilters(e){this.$set({activefilters:e}),L()}});var Dr=he(function(On,e){On.exports=function(){var e;function m(){return e.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function r(e,t){for(var n=[],r=0;r<e.length;++r)n.push(t(e[r],r));return n}function c(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return Dt(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function h(e){if(null==e._isValid){var t=p(e),n=y.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function g(e){var t=d(NaN);return null!=e?c(p(t),e):p(t).userInvalidated=!0,t}var y=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},v=m.momentProperties=[],t=!1;function w(e,t){var n,r,i;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=p(t)),o(t._locale)||(e._locale=t._locale),0<v.length)for(n=0;n<v.length;n++)o(i=t[r=v[n]])||(e[r]=i);return e}function b(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,m.updateOffset(this),t=!1)}function _(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function T(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,o){var s=!0;return c(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,i),s){for(var e,t,n=[],r=0;r<arguments.length;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];n.push(e)}T(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),s=!1}return o.apply(this,arguments)},o)}var S={};function E(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),S[e]||(T(t),S[e]=!0)}function x(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var n,r=c({},e);for(n in t)f(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},c(r[n],e[n]),c(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&a(e[n])&&(r[n]=c({},r[n]));return r}function M(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var k=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function D(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},F={};function R(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(F[e]=i),t&&(F[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=$(t,e.localeData()),A[t]=A[t]||function(r){for(var e,i=r.match(P),t=0,o=i.length;t<o;t++)F[i[t]]?i[t]=F[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<o;n++)t+=x(i[n])?i[n].call(e,r):i[n];return t}}(t),A[t](e)):e.localeData().invalidDate()}function $(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;0<=n&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,--n;return e}var L={};function I(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function U(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function Y(e){var t,n,r={};for(n in e)f(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var z={};function j(e,t){z[e]=t}function B(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function H(e){var t=+e,e=0;return e=0!=t&&isFinite(t)?G(t):e}function W(t,n){return function(e){return null!=e?(X(this,t,e),m.updateOffset(this,n),this):V(this,t)}}function V(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function X(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&B(e.year())&&1===e.month()&&29===e.date()?(n=H(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ke(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z=/\d/,q=/\d\d/,J=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,re=/\d{1,3}/,ie=/\d{1,4}/,oe=/[+-]?\d{1,6}/,se=/\d+/,ae=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,ue=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,n,r){me[e]=x(n)?n:function(e,t){return e&&r?r:n}}function he(e,t){return f(me,e)?me[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var me={},pe={};function ge(e,n){var t,r=n;for("string"==typeof e&&(e=[e]),u(n)&&(r=function(e,t){t[n]=H(e)}),t=0;t<e.length;t++)pe[e[t]]=r}function ye(e,i){ge(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var ve,we=0,be=1,_e=2,Te=3,Se=4,Ee=5,xe=6,Ce=7,Me=8;function ke(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?B(e)?29:28:31-n%7%2}ve=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),R("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),j("month",8),de("M",ee),de("MM",ee,q),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[be]=H(e)-1}),ge(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[be]=r:p(n).invalidMonth=e});var De="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ae=ce,Fe=ce;function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=H(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),ke(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ne(e){return null!=e?(Re(this,e),m.updateOffset(this,!0),this):V(this,"Month")}function $e(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],o=0;o<12;o++)t=d([2e3,o]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),i.sort(e),o=0;o<12;o++)n[o]=fe(n[o]),r[o]=fe(r[o]);for(o=0;o<24;o++)i[o]=fe(i[o]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Le(e){return B(e)?366:365}R("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),I("year","y"),j("year",1),de("Y",ae),de("YY",ee,q),de("YYYY",ie,K),de("YYYYY",oe,Q),de("YYYYYY",oe,Q),ge(["YYYYY","YYYYYY"],we),ge("YYYY",function(e,t){t[we]=2===e.length?m.parseTwoDigitYear(e):H(e)}),ge("YY",function(e,t){t[we]=m.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[we]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return H(e)+(68<H(e)?1900:2e3)};var Ie=W("FullYear",!0);function Ue(e,t,n,r,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function Ye(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,n){n=7+t-n;return-(7+Ye(e,0,n).getUTCDay()-t)%7+n-1}function je(e,t,n,r,i){var o,i=1+7*(t-1)+(7+n-r)%7+ze(e,r,i),i=i<=0?Le(o=e-1)+i:i>Le(e)?(o=e+1,i-Le(e)):(o=e,i);return{year:o,dayOfYear:i}}function Be(e,t,n){var r,i,o=ze(e.year(),t,n),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+Ge(i=e.year()-1,t,n):o>Ge(e.year(),t,n)?(r=o-Ge(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Ge(e,t,n){var r=ze(e,t,n),n=ze(e+1,t,n);return(Le(e)-r+n)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),j("week",5),j("isoWeek",5),de("w",ee),de("ww",ee,q),de("W",ee),de("WW",ee,q),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=H(e)});function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),de("d",ee),de("e",ee),de("E",ee),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,r){t[r]=H(e)});var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ce,qe=ce,Je=ce;function Ke(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],o=[],s=[],a=[],l=0;l<7;l++)r=d([2e3,1]).day(l),t=fe(this.weekdaysMin(r,"")),n=fe(this.weekdaysShort(r,"")),r=fe(this.weekdays(r,"")),i.push(t),o.push(n),s.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),o.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Qe),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)}),R("hmmss",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),et("a",!0),et("A",!1),I("hour","h"),j("hour",13),de("a",tt),de("A",tt),de("H",ee),de("h",ee),de("k",ee),de("HH",ee,q),de("hh",ee,q),de("kk",ee,q),de("hmm",te),de("hmmss",ne),de("Hmm",te),de("Hmmss",ne),ge(["H","HH"],Te),ge(["k","kk"],function(e,t,n){e=H(e);t[Te]=24===e?0:e}),ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ge(["h","hh"],function(e,t,n){t[Te]=H(e),p(n).bigHour=!0}),ge("hmm",function(e,t,n){var r=e.length-2;t[Te]=H(e.substr(0,r)),t[Se]=H(e.substr(r)),p(n).bigHour=!0}),ge("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Te]=H(e.substr(0,r)),t[Se]=H(e.substr(r,2)),t[Ee]=H(e.substr(i)),p(n).bigHour=!0}),ge("Hmm",function(e,t,n){var r=e.length-2;t[Te]=H(e.substr(0,r)),t[Se]=H(e.substr(r))}),ge("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Te]=H(e.substr(0,r)),t[Se]=H(e.substr(r,2)),t[Ee]=H(e.substr(i))});var nt=W("Hours",!0);var rt,it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Pe,week:{dow:0,doy:6},weekdays:We,weekdaysMin:Xe,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},ot={},st={};function at(e){return e&&e.toLowerCase().replace("_","-")}function lt(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=at(e[o]).split("-")).length,n=(n=at(e[o+1]))?n.split("-"):null;0<t;){if(r=ut(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,n)>=t-1)break;t--}o++}return rt}function ut(t){var e;if(void 0===ot[t]&&On&&On.exports)try{e=rt._abbr,An(),ct(e)}catch(e){ot[t]=null}return ot[t]}function ct(e,t){return e&&((t=o(t)?ht(e):dt(e,t))?rt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function dt(e,t){if(null===t)return delete ot[e],null;var n,r=it;if(t.abbr=e,null!=ot[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ot[e]._config;else if(null!=t.parentLocale)if(null!=ot[t.parentLocale])r=ot[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ot[e]=new M(C(r,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ct(e),ot[e]}function ht(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return rt;if(!s(e)){if(t=ut(e))return t;e=[e]}return lt(e)}function ft(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[be]<0||11<t[be]?be:t[_e]<1||t[_e]>ke(t[we],t[be])?_e:t[Te]<0||24<t[Te]||24===t[Te]&&(0!==t[Se]||0!==t[Ee]||0!==t[xe])?Te:t[Se]<0||59<t[Se]?Se:t[Ee]<0||59<t[Ee]?Ee:t[xe]<0||999<t[xe]?xe:-1,p(e)._overflowDayOfYear&&(t<we||_e<t)&&(t=_e),p(e)._overflowWeeks&&-1===t&&(t=Ce),p(e)._overflowWeekday&&-1===t&&(t=Me),p(e).overflow=t),e}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,bt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,i,o,s,a=e._i,l=mt.exec(a)||pt.exec(a);if(l){for(p(e).iso=!0,t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(l[1])){i=yt[t][0],r=!1!==yt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(l[3])){o=(l[2]||" ")+vt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=i+(o||"")+(s||""),Mt(e)}else e._isValid=!1}function St(e,t,n,r,i,o){i=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Pe.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&i.push(parseInt(o,10)),i}function Et(e){var t,n,r,i,o=bt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=St(o[4],o[3],o[2],o[5],o[6],o[7]),n=o[1],r=t,i=e,n&&Ve.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(p(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(i=o[8],t=o[9],o=o[10],i?_t[i]:t?0:((t=parseInt(o,10))-(o=t%100))/100*60+o),e._d=Ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function xt(e,t,n){return null!=e?e:null!=t?t:n}function Ct(e){var t,n,r,i,o,s,a,l,u,c,d,h,f=[];if(!e._d){for(d=e,h=new Date(m.now()),n=d._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[_e]&&null==e._a[be]&&(null!=(d=(i=e)._w).GG||null!=d.W||null!=d.E?(l=1,u=4,o=xt(d.GG,i._a[we],Be(Pt(),1,4).year),s=xt(d.W,1),((a=xt(d.E,1))<1||7<a)&&(c=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,h=Be(Pt(),l,u),o=xt(d.gg,i._a[we],h.year),s=xt(d.w,h.week),null!=d.d?((a=d.d)<0||6<a)&&(c=!0):null!=d.e?(a=d.e+l,(d.e<0||6<d.e)&&(c=!0)):a=l),s<1||s>Ge(o,l,u)?p(i)._overflowWeeks=!0:null!=c?p(i)._overflowWeekday=!0:(u=je(o,s,a,l,u),i._a[we]=u.year,i._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(r=xt(e._a[we],n[we]),(e._dayOfYear>Le(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),r=Ye(r,0,e._dayOfYear),e._a[be]=r.getUTCMonth(),e._a[_e]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=f[t]=n[t];for(;t<7;t++)e._a[t]=f[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Te]&&0===e._a[Se]&&0===e._a[Ee]&&0===e._a[xe]&&(e._nextDay=!0,e._a[Te]=0),e._d=(e._useUTC?Ye:Ue).apply(null,f),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Te]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],p(e).empty=!0;for(var t,n,r=""+e._i,i=r.length,o=0,s=$(e._f,e._locale).match(P)||[],a=0;a<s.length;a++)n=s[a],(t=(r.match(he(n,e))||[])[0])&&(0<(d=r.substr(0,r.indexOf(t))).length&&p(e).unusedInput.push(d),r=r.slice(r.indexOf(t)+t.length),o+=t.length),F[n]?(t?p(e).empty=!1:p(e).unusedTokens.push(n),c=n,h=e,null!=(d=t)&&f(pe,c)&&pe[c](d,h._a,h,c)):e._strict&&!t&&p(e).unusedTokens.push(n);p(e).charsLeftOver=i-o,0<r.length&&p(e).unusedInput.push(r),e._a[Te]<=12&&!0===p(e).bigHour&&0<e._a[Te]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Te]=(l=e._locale,u=e._a[Te],null==(i=e._meridiem)?u:null!=l.meridiemHour?l.meridiemHour(u,i):null!=l.isPM?((i=l.isPM(i))&&u<12&&(u+=12),u=i||12!==u?u:0):u),null!==(u=p(e).era)&&(e._a[we]=e._locale.erasConvertYear(u,e._a[we])),Ct(e),ft(e)}else Et(e);else Tt(e);var l,u,c,d,h}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new b(ft(t)):(i(t)?e._d=t:s(n)?function(e){var t,n,r,i,o,s,a=!1;if(0===e._f.length)return p(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)o=0,s=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Mt(t),h(t)&&(s=!0),o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));c(e,n||t)}(e):n?Mt(e):o(n=(t=e)._i)?t._d=new Date(m.now()):i(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(e){var t=wt.exec(e._i);null===t?(Tt(e),!1===e._isValid&&(delete e._isValid,Et(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:m.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):s(n)?(t._a=r(n.slice(0),function(e){return parseInt(e,10)}),Ct(t)):a(n)?function(e){var t,n;e._d||(n=void 0===(t=Y(e._i)).day?t.date:t.day,e._a=r([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Ct(e))}(t):u(n)?t._d=new Date(n):m.createFromInputFallback(t),h(e)||(e._d=null),e))}function Dt(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&l(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,(o=new b(ft(kt(o=o))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Pt(e,t,n,r){return Dt(e,t,n,r,!1)}m.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};var Ot=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),At=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:g()});function Ft(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return Pt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var t=Y(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,e=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(f(e,t)&&(-1===ve.call(Rt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Rt.length;++n)if(e[Rt[n]]){if(r)return!1;parseFloat(e[Rt[n]])!==H(e[Rt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+e+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ht(),this._bubble()}function $t(e){return e instanceof Nt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function It(e,n){R(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+D(~~(e/60),2)+n+D(~~e%60,2)})}It("Z",":"),It("ZZ",""),de("Z",ue),de("ZZ",ue),ge(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yt(ue,e)});var Ut=/([\+\-]|\d\d)/gi;function Yt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ut)||["-",0,0])[1]+H(e[2]))?0:"+"===e[0]?t:-t}function zt(e,t){var n;return t._isUTC?(n=t.clone(),t=(_(e)||i(e)?e:Pt(e)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+t),m.updateOffset(n,!1),n):Pt(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function Bt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var Gt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ht=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wt(e,t){var n,r,i=e,o=null;return $t(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Gt.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:H(o[_e])*n,h:H(o[Te])*n,m:H(o[Se])*n,s:H(o[Ee])*n,ms:H(Lt(1e3*o[xe]))*n}):(o=Ht.exec(e))?(n="-"===o[1]?-1:1,i={y:Vt(o[2],n),M:Vt(o[3],n),w:Vt(o[4],n),d:Vt(o[5],n),h:Vt(o[6],n),m:Vt(o[7],n),s:Vt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=Pt(i.from),n=Pt(i.to),r=o.isValid()&&n.isValid()?(n=zt(n,o),o.isBefore(n)?r=Xt(o,n):((r=Xt(n,o)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=r.milliseconds,i.M=r.months),i=new Nt(i),$t(e)&&f(e,"_locale")&&(i._locale=e._locale),$t(e)&&f(e,"_isValid")&&(i._isValid=e._isValid),i}function Vt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Xt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Zt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(E(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,Wt(e,t),r),this}}function qt(e,t,n,r){var i=t._milliseconds,o=Lt(t._days),t=Lt(t._months);e.isValid()&&(r=null==r||r,t&&Re(e,V(e,"Month")+t*n),o&&X(e,"Date",V(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&m.updateOffset(e,o||t))}Wt.fn=Nt.prototype,Wt.invalid=function(){return Wt(NaN)};var Jt=Zt(1,"add"),ce=Zt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Qt(e){return _(e)||i(e)||Kt(e)||u(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!u(e)&&Kt(t)}).length),n&&r)||function(e){var t,n,r=a(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],i=i||f(e,n);return r&&i}(e)||null==e;var t,n,r}function en(e,t){if(e.date()<t.date())return-en(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function tn(e){return void 0===e?this._locale._abbr:(null!=(e=ht(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";te=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function nn(){return this._locale}var rn=126227808e5;function on(e,t){return(e%t+t)%t}function sn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-rn:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-rn:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function un(){for(var e=[],t=[],n=[],r=[],i=this.eras(),o=0,s=i.length;o<s;++o)t.push(fe(i[o].name)),e.push(fe(i[o].abbr)),n.push(fe(i[o].narrow)),r.push(fe(i[o].name)),r.push(fe(i[o].abbr)),r.push(fe(i[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function cn(e,t){R(0,[e,e.length],0,t)}function dn(e,t,n,r,i){var o;return null==e?Be(this,r,i).year:(t>(o=Ge(e,r,i))&&(t=o),function(e,t,n,r,i){i=je(e,t,n,r,i),i=Ye(i.year,0,i.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,r,i))}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),de("N",ln),de("NN",ln),de("NNN",ln),de("NNNN",function(e,t){return t.erasNameRegex(e)}),de("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?p(n).era=r:p(n).invalidEra=e}),de("y",se),de("yy",se),de("yyy",se),de("yyyy",se),de("yo",function(e,t){return t._eraYearOrdinalRegex||se}),ge(["y","yy","yyy","yyyy"],we),ge(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[we]=n._locale.eraYearOrdinalParse(e,i):t[we]=parseInt(e,10)}),R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),de("G",ae),de("g",ae),de("GG",ee,q),de("gg",ee,q),de("GGGG",ie,K),de("gggg",ie,K),de("GGGGG",oe,Q),de("ggggg",oe,Q),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=H(e)}),ye(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),I("quarter","Q"),j("quarter",7),de("Q",Z),ge("Q",function(e,t){t[be]=3*(H(e)-1)}),R("D",["DD",2],"Do","date"),I("date","D"),j("date",9),de("D",ee),de("DD",ee,q),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],_e),ge("Do",function(e,t){t[_e]=H(e.match(ee)[0])});ne=W("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),j("dayOfYear",4),de("DDD",re),de("DDDD",J),ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=H(e)}),R("m",["mm",2],0,"minute"),I("minute","m"),j("minute",14),de("m",ee),de("mm",ee,q),ge(["m","mm"],Se);De=W("Minutes",!1);R("s",["ss",2],0,"second"),I("second","s"),j("second",15),de("s",ee),de("ss",ee,q),ge(["s","ss"],Ee);var hn,We=W("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),j("millisecond",16),de("S",re,Z),de("SS",re,q),de("SSS",re,J),hn="SSSS";hn.length<=9;hn+="S")de(hn,se);function fn(e,t){t[xe]=H(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")ge(hn,fn);Xe=W("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");ie=b.prototype;function mn(e){return e}ie.add=Jt,ie.calendar=function(e,t){1===arguments.length&&(arguments[0]?Qt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=a(e)&&!l(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||f(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var n=e||Pt(),e=zt(n,this).startOf("day"),e=m.calendarFormat(this,e)||"sameElse",t=t&&(x(t[e])?t[e].call(this,n):t[e]);return this.format(t||this.localeData().calendar(e,this,Pt(n)))},ie.clone=function(){return new b(this)},ie.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":o=en(this,r)/12;break;case"month":o=en(this,r);break;case"quarter":o=en(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:G(o)},ie.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:sn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-on(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-on(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-on(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),this},ie.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=N(this,e),this.localeData().postformat(e)},ie.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Pt(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.fromNow=function(e){return this.from(Pt(),e)},ie.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Pt(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.toNow=function(e){return this.to(Pt(),e)},ie.get=function(e){return x(this[e=U(e)])?this[e]():this},ie.invalidAt=function(){return p(this).overflow},ie.isAfter=function(e,t){return e=_(e)?e:Pt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},ie.isBefore=function(e,t){return e=_(e)?e:Pt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},ie.isBetween=function(e,t,n,r){return e=_(e)?e:Pt(e),t=_(t)?t:Pt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},ie.isSame=function(e,t){var e=_(e)?e:Pt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},ie.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ie.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ie.isValid=function(){return h(this)},ie.lang=te,ie.locale=tn,ie.localeData=nn,ie.max=At,ie.min=Ot,ie.parsingFlags=function(){return c({},p(this))},ie.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)f(e,t)&&n.push({unit:t,priority:z[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=Y(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(x(this[e=U(e)]))return this[e](t);return this},ie.startOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:sn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=on(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=on(t,6e4);break;case"second":t=this._d.valueOf(),t-=on(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},ie.subtract=ce,ie.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ie.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ie.toDate=function(){return new Date(this.valueOf())},ie.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e;return(e=t?this.clone().utc():this).year()<0||9999<e.year()?N(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(e,"Z")):N(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ie.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ie.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ie.eraName=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},ie.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},ie.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},ie.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-m(n[r].since).year())*e+n[r].offset;return this.year()},ie.year=Ie,ie.isLeapYear=function(){return B(this.year())},ie.weekYear=function(e){return dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ie.isoWeekYear=function(e){return dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ie.quarter=ie.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ie.month=Ne,ie.daysInMonth=function(){return ke(this.year(),this.month())},ie.week=ie.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ie.isoWeek=ie.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ie.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},ie.weeksInWeekYear=function(){var e=this.localeData()._week;return Ge(this.weekYear(),e.dow,e.doy)},ie.isoWeeksInYear=function(){return Ge(this.year(),1,4)},ie.isoWeeksInISOWeekYear=function(){return Ge(this.isoWeekYear(),1,4)},ie.date=ne,ie.day=ie.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},ie.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ie.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=(t=e,e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?t:t-7)},ie.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ie.hour=ie.hours=nt,ie.minute=ie.minutes=De,ie.second=ie.seconds=We,ie.millisecond=ie.milliseconds=Xe,ie.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:jt(this);if("string"==typeof e){if(null===(e=Yt(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?qt(this,Wt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},ie.utc=function(e){return this.utcOffset(0,e)},ie.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},ie.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Yt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},ie.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ie.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ie.isLocal=function(){return!!this.isValid()&&!this._isUTC},ie.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ie.isUtc=Bt,ie.isUTC=Bt,ie.zoneAbbr=function(){return this._isUTC?"UTC":""},ie.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ie.dates=n("dates accessor is deprecated. Use date instead.",ne),ie.months=n("months accessor is deprecated. Use month instead",Ne),ie.years=n("years accessor is deprecated. Use year instead",Ie),ie.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),ie.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=kt(t))._a?(e=(t._isUTC?d:Pt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&H(e[s])!==H(t[s]))&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});K=M.prototype;function pn(e,t,n,r){var i=ht(),t=d().set(r,t);return i[n](t,e)}function gn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=pn(e,i,n,"month");return r}function yn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),u(t)&&(n=t,t=void 0),t||"");var i,o=ht(),s=e?o._week.dow:0,a=[];if(null!=n)return pn(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=pn(t,(i+s)%7,r,"day");return a}K.calendar=function(e,t,n){return x(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},K.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(e){return this._ordinal.replace("%d",e)},K.preparse=mn,K.postformat=mn,K.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return x(i)?i(e,t,n,r):i.replace(/%d/i,e)},K.pastFuture=function(e,t){return x(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},K.set=function(e){var t,n;for(n in e)f(e,n)&&(x(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},K.eras=function(e,t){for(var n,r=this._eras||ht("en")._eras,i=0,o=r.length;i<o;++i)switch("string"==typeof r[i].since&&(n=m(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=m(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},K.erasParse=function(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[o,s,a].indexOf(e))return l[r]},K.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},K.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(e){return f(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},K.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},K.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Oe.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.monthsParse=function(e,t,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,e))?i:null:-1!==(i=ve.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,e))||-1!==(i=ve.call(this._longMonthsParse,e))?i:null:-1!==(i=ve.call(this._longMonthsParse,e))||-1!==(i=ve.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},K.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||$e.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||$e.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Ae),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(e){return Be(e,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?He(t,this._week.dow):e?t[e.day()]:t},K.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},K.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},K.weekdaysParse=function(e,t,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,e))||-1!==(i=ve.call(this._shortWeekdaysParse,e))||-1!==(i=ve.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,e))||-1!==(i=ve.call(this._weekdaysParse,e))||-1!==(i=ve.call(this._minWeekdaysParse,e))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,e))||-1!==(i=ve.call(this._weekdaysParse,e))||-1!==(i=ve.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},K.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},K.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ct("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===H(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=n("moment.lang is deprecated. Use moment.locale instead.",ct),m.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ht);var vn=Math.abs;function wn(e,t,n,r){n=Wt(t,n);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}oe=Sn("ms"),Q=Sn("s"),Z=Sn("m"),q=Sn("h"),re=Sn("d"),J=Sn("w"),Jt=Sn("M"),At=Sn("Q"),Ot=Sn("y");function En(e){return function(){return this.isValid()?this._data[e]:NaN}}ce=En("milliseconds"),nt=En("seconds"),De=En("minutes"),We=En("hours"),Xe=En("days"),ne=En("months"),Ie=En("years");var xn=Math.round,Cn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mn(e,t,n,r){var i=Wt(e).abs(),o=xn(i.as("s")),s=xn(i.as("m")),a=xn(i.as("h")),l=xn(i.as("d")),u=xn(i.as("M")),c=xn(i.as("w")),i=xn(i.as("y")),l=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return(l=(l=null!=n.w?l||c<=1&&["w"]||c<n.w&&["ww",c]:l)||u<=1&&["M"]||u<n.M&&["MM",u]||i<=1&&["y"]||["yy",i])[2]=t,l[3]=0<+e,l[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,l)}var kn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function Pn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a=kn(this._milliseconds)/1e3,l=kn(this._days),u=kn(this._months),c=this.asSeconds();return c?(e=G(a/60),t=G(e/60),a%=60,e%=60,n=G(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dn(this._months)!==Dn(c)?"-":"",o=Dn(this._days)!==Dn(c)?"-":"",s=Dn(this._milliseconds)!==Dn(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"}K=Nt.prototype;return K.isValid=function(){return this._isValid},K.abs=function(){var e=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),e.milliseconds=vn(e.milliseconds),e.seconds=vn(e.seconds),e.minutes=vn(e.minutes),e.hours=vn(e.hours),e.months=vn(e.months),e.years=vn(e.years),this},K.add=function(e,t){return wn(this,e,t,1)},K.subtract=function(e,t){return wn(this,e,t,-1)},K.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+_n(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},K.asMilliseconds=oe,K.asSeconds=Q,K.asMinutes=Z,K.asHours=q,K.asDays=re,K.asWeeks=J,K.asMonths=Jt,K.asQuarters=At,K.asYears=Ot,K.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*H(this._months/12):NaN},K._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*bn(Tn(n)+t),n=t=0),r.milliseconds=e%1e3,e=G(e/1e3),r.seconds=e%60,e=G(e/60),r.minutes=e%60,e=G(e/60),r.hours=e%24,t+=G(e/24),n+=e=G(_n(t)),t-=bn(Tn(e)),e=G(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},K.clone=function(){return Wt(this)},K.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},K.milliseconds=ce,K.seconds=nt,K.minutes=De,K.hours=We,K.days=Xe,K.weeks=function(){return G(this.days()/7)},K.months=ne,K.years=Ie,K.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Cn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Cn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),r=Mn(this,!n,r,t=this.localeData()),n&&(r=t.pastFuture(+this,r)),t.postformat(r)},K.toISOString=Pn,K.toString=Pn,K.toJSON=Pn,K.locale=tn,K.localeData=nn,K.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),K.lang=te,R("X",0,0,"unix"),R("x",0,0,"valueOf"),de("x",ae),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ge("x",function(e,t,n){n._d=new Date(H(e))}),m.version="2.29.1",e=Pt,m.fn=ie,m.min=function(){return Ft("isBefore",[].slice.call(arguments,0))},m.max=function(){return Ft("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=d,m.unix=function(e){return Pt(1e3*e)},m.months=function(e,t){return gn(e,t,"months")},m.isDate=i,m.locale=ct,m.invalid=g,m.duration=Wt,m.isMoment=_,m.weekdays=function(e,t,n){return yn(e,t,n,"weekdays")},m.parseZone=function(){return Pt.apply(null,arguments).parseZone()},m.localeData=ht,m.isDuration=$t,m.monthsShort=function(e,t){return gn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return yn(e,t,n,"weekdaysMin")},m.defineLocale=dt,m.updateLocale=function(e,t){var n,r;return null!=t?(r=it,null!=ot[e]&&null!=ot[e].parentLocale?ot[e].set(C(ot[e]._config,t)):(t=C(r=null!=(n=ut(e))?n._config:r,t),null==n&&(t.abbr=e),(t=new M(t)).parentLocale=ot[e],ot[e]=t),ct(e)):null!=ot[e]&&(null!=ot[e].parentLocale?(ot[e]=ot[e].parentLocale,e===ct()&&ct(e)):null!=ot[e]&&delete ot[e]),ot[e]},m.locales=function(){return k(ot)},m.weekdaysShort=function(e,t,n){return yn(e,t,n,"weekdaysShort")},m.normalizeUnits=U,m.relativeTimeRounding=function(e){return void 0===e?xn:"function"==typeof e&&(xn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Cn[e]&&(void 0===t?Cn[e]:(Cn[e]=t,"s"===e&&(Cn.ss=t-1),!0))},m.calendarFormat=function(e,t){return(t=e.diff(t,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},m.prototype=ie,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}()});const Pr={en:{tournamentsList:{nothing:"Nothing to show here."}},ro:{tournamentsList:{nothing:"Nimic de afisat."}},tr:{tournamentsList:{nothing:"Gösterilecek."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí.."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}},Or={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"There was an error joining the tournament - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Inregistrare",details:"Detalii",enrolled:"Inscris",join:"Participa",joinerror:"Eroare la participarea in turneu - "}},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:"Iniciar sesión",register:"Registro",details:"Detalles",enrolled:"Registrado",join:"Unirse",joinerror:"Hubo un error al ingresar al torneo -"}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}},Ar={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet counts: ",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished",startingAt:"Starting at",mostRounds:"MostRounds",betCount:"BetCount",maxWinStakeRatio:"MaxWinStakeRatio",winStakeRatio:"WinStakeRatio"}},ro:{tournamentsThumbnail:{enrolled:"Inscris",scoreCriteria:"Criteriu scor",minbet:"miza minima: ",seegames:"Vezi jocurile",here:"aici",scheduled:"Programate",ongoing:"In desfasurare",finished:"Finalizate",startingAt:"Incepe la",mostRounds:"Cele mai multe runde",betCount:"BetCount",maxWinStakeRatio:"Castig/miza",winStakeRatio:"WinStakeR"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"BAŞLAMA SAATİ:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων: ",seegames:"Μπορείε να δεις τα παιχνίδια",here:"εδώ",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",startingAt:"ΑΡΧΙΖΕΙ",mostRounds:"Οι περισσότεροι γύροιs",betCount:"Καταμέτρηση στοιχημάτων",maxWinStakeRatio:"Μέγιστος λόγος πονταρίσματος κερδών",winStakeRatio:"Κερδίστε το Στοίχημα R"}},es:{tournamentsThumbnail:{enrolled:"Registrado",scoreCriteria:"Criterios de puntuación",minbet:"La apuesta mínima cuenta: ",seegames:"Puedes ver los juegos",here:"Aqui",scheduled:"Programado",ongoing:"En progreso",finished:"Acabado",startingAt:"Comenzando en",mostRounds:"Más rondas",betCount:"Recuento de apuestas",maxWinStakeRatio:"Proporción máxima de ganancias",winStakeRatio:"proporción de victorias"}},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",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias"}}};function Fr(n){let r,i,o,s,a,l;return{c(){r=x("div"),i=C(n[12]),D(r,"class",o="Status "+n[14]),D(r,"part",s="Status "+n[14])},m(e,t){S(e,r,t),T(r,i),a||(l=b(n[17].call(null,r)),a=!0)},p(e,t){4096&t&&P(i,e[12]),16384&t&&o!==(o="Status "+e[14])&&D(r,"class",o),16384&t&&s!==(s="Status "+e[14])&&D(r,"part",s)},d(e){e&&E(r),a=!1,l()}}}function Rr(e){let n,r=e[5]&&Nr(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),S(e,n,t)},p(e,t){e[5]?r?r.p(e,t):(r=Nr(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&E(n)}}}function Nr(e){let n,r,i=e[15]("tournamentsThumbnail.enrolled")+"";return{c(){n=x("div"),r=C(i),D(n,"class","Enrolled"),D(n,"part","Enrolled")},m(e,t){S(e,n,t),T(n,r)},p(e,t){32768&t&&i!==(i=e[15]("tournamentsThumbnail.enrolled")+"")&&P(r,i)},d(e){e&&E(n)}}}function $r(n){let r,i,o,s,a;return{c(){r=x("div"),D(r,"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),D(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),g(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){S(e,r,t),s||(a=b(n[17].call(null,r)),s=!0)},p(e,t){1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&D(r,"class",i),1&t&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&D(r,"part",o)},d(e){e&&E(r),s=!1,a()}}}function Lr(n){let r,i,o,s,a;return{c(){r=x("div"),D(r,"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),D(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),g(r,"background-image","url('"+n[4]+"')")},m(e,t){S(e,r,t),s||(a=b(n[17].call(null,r)),s=!0)},p(e,t){1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&D(r,"class",i),1&t&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&D(r,"part",o),16&t&&g(r,"background-image","url('"+e[4]+"')")},d(e){e&&E(r),s=!1,a()}}}function Ir(n){let r,i,o,s,a;return{c(){r=x("div"),i=C(n[10]),D(r,"class","Date"),D(r,"part","Date")},m(e,t){S(e,r,t),T(r,i),s||(a=b(o=n[16].call(null,r,n[2])),s=!0)},p(e,t){1024&t&&P(i,e[10]),o&&f(o.update)&&4&t&&o.update.call(null,e[2])},d(e){e&&E(r),s=!1,a()}}}function Ur(n){let r,i,o,s,a,l,u,c,d,h,f,m,p,g=n[15]("tournamentsThumbnail.scoreCriteria")+"",y=n[15]("tournamentsThumbnail.seegames")+"",v=n[15]("tournamentsThumbnail.here")+"";function w(e){return"BetCount"==e[6]?zr:Yr}let b=w(n),_=b(n);return{c(){r=x("div"),i=x("p"),o=C(g),s=C(":\n "),_.c(),a=M(),l=x("div"),u=x("p"),c=C(y),d=M(),h=x("a"),f=C(v),D(i,"part","ScoreCriteriaP"),D(r,"class","ScoreCriteria"),D(r,"part","ScoreCriteria"),D(h,"part","GamesAnchor"),D(h,"href",n[9]),D(h,"target","_blank"),D(u,"part","GamesP"),D(l,"class","Games"),D(l,"part","Games")},m(e,t){S(e,r,t),T(r,i),T(i,o),T(i,s),_.m(i,null),S(e,a,t),S(e,l,t),T(l,u),T(u,c),T(u,d),T(u,h),T(h,f),m||(p=k(h,"click",n[23]),m=!0)},p(e,t){32768&t&&g!==(g=e[15]("tournamentsThumbnail.scoreCriteria")+"")&&P(o,g),b===(b=w(e))&&_?_.p(e,t):(_.d(1),_=b(e),_&&(_.c(),_.m(i,null))),32768&t&&y!==(y=e[15]("tournamentsThumbnail.seegames")+"")&&P(c,y),32768&t&&v!==(v=e[15]("tournamentsThumbnail.here")+"")&&P(f,v),512&t&&D(h,"href",e[9])},d(e){e&&E(r),_.d(),e&&E(a),e&&E(l),m=!1,p()}}}function Yr(n){let r,i,o,s;return{c(){r=x("span"),i=C(n[13]),D(r,"part","ScoreCriteriaSpan")},m(e,t){S(e,r,t),T(r,i),o||(s=b(n[18].call(null,r)),o=!0)},p(e,t){8192&t&&P(i,e[13])},d(e){e&&E(r),o=!1,s()}}}function zr(e){let n,r,i,o,s,a,l=e[15]("tournamentsThumbnail.mostRounds")+"",u=e[15]("tournamentsThumbnail.minbet")+"";return{c(){n=C(l),r=C("\n ("),i=C(u),o=C(": "),s=C(e[7]),a=C(")")},m(e,t){S(e,n,t),S(e,r,t),S(e,i,t),S(e,o,t),S(e,s,t),S(e,a,t)},p(e,t){32768&t&&l!==(l=e[15]("tournamentsThumbnail.mostRounds")+"")&&P(n,l),32768&t&&u!==(u=e[15]("tournamentsThumbnail.minbet")+"")&&P(i,u),128&t&&P(s,e[7])},d(e){e&&E(n),e&&E(r),e&&E(i),e&&E(o),e&&E(s),e&&E(a)}}}function jr(e){let n,r,i,o,s,a,l,u,c,d=e[0]&&Fr(e),h="true"==e[8]&&Rr(e);function f(e){return e[4]?Lr:$r}let m=f(e),p=m(e),g=e[2]&&Ir(e),y=e[11]&&Ur(e);return{c(){n=x("div"),d&&d.c(),r=M(),h&&h.c(),i=M(),p.c(),o=M(),s=x("div"),a=x("div"),l=C(e[1]),u=M(),g&&g.c(),c=M(),y&&y.c(),this.c=v,D(a,"class","Title"),D(a,"part","Title"),D(s,"class","Details"),D(s,"part","Details"),D(n,"class","Thumbnail"),D(n,"part","Thumbnail")},m(e,t){S(e,n,t),d&&d.m(n,null),T(n,r),h&&h.m(n,null),T(n,i),p.m(n,null),T(n,o),T(n,s),T(s,a),T(a,l),T(s,u),g&&g.m(s,null),T(s,c),y&&y.m(s,null)},p(e,[t]){e[0]?d?d.p(e,t):(d=Fr(e),d.c(),d.m(n,r)):d&&(d.d(1),d=null),"true"==e[8]?h?h.p(e,t):(h=Rr(e),h.c(),h.m(n,i)):h&&(h.d(1),h=null),m===(m=f(e))&&p?p.p(e,t):(p.d(1),p=m(e),p&&(p.c(),p.m(n,o))),2&t&&P(l,e[1]),e[2]?g?g.p(e,t):(g=Ir(e),g.c(),g.m(s,c)):g&&(g.d(1),g=null),e[11]?y?y.p(e,t):(y=Ur(e),y.c(),y.m(s,null)):y&&(y.d(1),y=null)},i:v,o:v,d(e){e&&E(n),d&&d.d(),h&&h.d(),p.d(),g&&g.d(),y&&y.d()}}}function Br(e,t,i){let o;Q(e,hr,e=>i(15,o=e));let{session:n=""}=t,{userid:r=""}=t,{title:s=""}=t,{startdate:a=""}=t,{status:l=""}=t,{tourid:u=""}=t,{thumbnail:c=""}=t,{userenrolled:d=""}=t,{scorecriteria:h=""}=t,{minbetcount:f=""}=t,{showenrolled:m="false"}=t,{gameurl:p=""}=t,{lang:g="en"}=t,y="",v=!1,w="",b="",_="";Object.keys(Ar).forEach(e=>{Wn(e,Ar[e])});const T=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&i(11,v=!0),e.data.type==`TournamentStatus_${u}`&&i(0,l=e.data.status))},S=()=>{let e=new Date(a),t=new Intl.DateTimeFormat(g,{month:"long"}).format(e),n=e.getDate(),r=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});i(10,y=`${n} ${t}, `+o("tournamentsThumbnail.startingAt")+` ${r}`)},E=()=>{"Unstarted"==l&&(i(12,w=o("tournamentsThumbnail.scheduled")),i(14,_="StatusUnstarted")),"Running"==l&&(i(12,w=o("tournamentsThumbnail.ongoing")),i(14,_="StatusRunning")),"Closed"!=l&&"Closing"!=l||i(12,w=o("tournamentsThumbnail.finished")),"Closed"==l&&i(14,_="StatusClosed"),"Closing"==l&&i(14,_="StatusClosing")},x=()=>{"BetCount"==h&&i(13,b=o("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==h&&i(13,b=o("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==h&&i(13,b=o("tournamentsThumbnail.winStakeRatio"))},C=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};return ee(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),e.$$set=e=>{"session"in e&&i(20,n=e.session),"userid"in e&&i(21,r=e.userid),"title"in e&&i(1,s=e.title),"startdate"in e&&i(2,a=e.startdate),"status"in e&&i(0,l=e.status),"tourid"in e&&i(3,u=e.tourid),"thumbnail"in e&&i(4,c=e.thumbnail),"userenrolled"in e&&i(5,d=e.userenrolled),"scorecriteria"in e&&i(6,h=e.scorecriteria),"minbetcount"in e&&i(7,f=e.minbetcount),"showenrolled"in e&&i(8,m=e.showenrolled),"gameurl"in e&&i(9,p=e.gameurl),"lang"in e&&i(22,g=e.lang)},e.$$.update=()=>{1048576&e.$$.dirty&&n&&(0<n.length&&"false"!=n?i(11,v=!0):i(11,v=!1)),1&e.$$.dirty&&l&&E(),4&e.$$.dirty&&a&&S(),64&e.$$.dirty&&h&&x()},[l,s,a,u,c,d,h,f,m,p,y,v,w,b,_,o,S,E,x,C,n,r,g,()=>C()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends c{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}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>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Br,jr,n,{session:20,userid:21,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:6,minbetcount:7,showenrolled:8,gameurl:9,lang:22}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang"]}get session(){return this.$$.ctx[20]}set session(e){this.$set({session:e}),L()}get userid(){return this.$$.ctx[21]}set userid(e){this.$set({userid:e}),L()}get title(){return this.$$.ctx[1]}set title(e){this.$set({title:e}),L()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$set({startdate:e}),L()}get status(){return this.$$.ctx[0]}set status(e){this.$set({status:e}),L()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$set({tourid:e}),L()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$set({thumbnail:e}),L()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$set({userenrolled:e}),L()}get scorecriteria(){return this.$$.ctx[6]}set scorecriteria(e){this.$set({scorecriteria:e}),L()}get minbetcount(){return this.$$.ctx[7]}set minbetcount(e){this.$set({minbetcount:e}),L()}get showenrolled(){return this.$$.ctx[8]}set showenrolled(e){this.$set({showenrolled:e}),L()}get gameurl(){return this.$$.ctx[9]}set gameurl(e){this.$set({gameurl:e}),L()}get lang(){return this.$$.ctx[22]}set lang(e){this.$set({lang:e}),L()}});const Gr={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Incepe in ",left:"ramase",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:"Acabado",starting:"Comenzando en",left:"Abandonado",minutes:"Minutos",hours:"Horas",days:"Dias"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function Hr(n){let r,i,o,s,a,l,u,c,d,h,f=n[8](n[0])+"",m=n[8](n[1])+"";function p(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Xr:0<e[4]?Vr:Wr}let g=p(n),y=g(n);return{c(){r=x("div"),i=x("div"),o=C(f),s=M(),a=x("div"),l=C(m),u=M(),c=x("div"),y.c(),D(i,"class","StartDate"),D(i,"part","StartDate"),D(a,"class","EndDate"),D(a,"part","EndDate"),D(r,"class","TournamentDates"),D(r,"part","TournamentDates"),D(c,"class","ProgressBar"),D(c,"part","ProgressBar")},m(e,t){S(e,r,t),T(r,i),T(i,o),T(r,s),T(r,a),T(a,l),S(e,u,t),S(e,c,t),y.m(c,null),d||(h=b(n[7].call(null,c)),d=!0)},p(e,t){1&t&&f!==(f=e[8](e[0])+"")&&P(o,f),2&t&&m!==(m=e[8](e[1])+"")&&P(l,m),g===(g=p(e))&&y?y.p(e,t):(y.d(1),y=g(e),y&&(y.c(),y.m(c,null)))},d(e){e&&E(r),e&&E(u),e&&E(c),y.d(),d=!1,h()}}}function Wr(e){let n,r,i,o=0<e[3]&&Zr(e);return{c(){n=x("div"),r=M(),o&&o.c(),i=l(),D(n,"class","ProgressBarFill"),D(n,"part","ProgressBarFill"),g(n,"width",e[6]()+"%")},m(e,t){S(e,n,t),S(e,r,t),o&&o.m(e,t),S(e,i,t)},p(e,t){64&t&&g(n,"width",e[6]()+"%"),0<e[3]?o?o.p(e,t):(o=Zr(e),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(e){e&&E(n),e&&E(r),o&&o.d(e),e&&E(i)}}}function Vr(e){let n,r,i,o,s,a,l=e[5]("tournamentsDuration.starting")+"",u=e[9](e[4])+"";return{c(){n=x("div"),r=M(),i=x("div"),o=C(l),s=M(),a=C(u),D(n,"class","ProgressBarFillStarting"),D(n,"part","ProgressBarFillStarting"),D(i,"class","Remaining"),D(i,"part","Remaining")},m(e,t){S(e,n,t),S(e,r,t),S(e,i,t),T(i,o),T(i,s),T(i,a)},p(e,t){32&t&&l!==(l=e[5]("tournamentsDuration.starting")+"")&&P(o,l),16&t&&u!==(u=e[9](e[4])+"")&&P(a,u)},d(e){e&&E(n),e&&E(r),e&&E(i)}}}function Xr(e){let n,r,i,o,s=e[5]("tournamentsDuration.finished")+"";return{c(){n=x("div"),r=M(),i=x("div"),o=C(s),D(n,"class","ProgressBarFillEnd"),D(n,"part","ProgressBarFillEnd"),D(i,"class","Finished"),D(i,"part","Finished")},m(e,t){S(e,n,t),S(e,r,t),S(e,i,t),T(i,o)},p(e,t){32&t&&s!==(s=e[5]("tournamentsDuration.finished")+"")&&P(o,s)},d(e){e&&E(n),e&&E(r),e&&E(i)}}}function Zr(e){let n,r,i,o,s=e[9](e[3])+"",a=e[5]("tournamentsDuration.left")+"";return{c(){n=x("div"),r=C(s),i=M(),o=C(a),D(n,"class","Remaining"),D(n,"part","Remaining")},m(e,t){S(e,n,t),T(n,r),T(n,i),T(n,o)},p(e,t){8&t&&s!==(s=e[9](e[3])+"")&&P(r,s),32&t&&a!==(a=e[5]("tournamentsDuration.left")+"")&&P(o,a)},d(e){e&&E(n)}}}function qr(e){let n,r=e[0]&&e[1]&&Hr(e);return{c(){n=x("div"),r&&r.c(),this.c=v,D(n,"class","TournamentDuration"),D(n,"part","TournamentDuration")},m(e,t){S(e,n,t),r&&r.m(n,null)},p(e,[t]){e[0]&&e[1]?r?r.p(e,t):(r=Hr(e),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:v,o:v,d(e){e&&E(n),r&&r.d()}}}function Jr(e,t,n){let r,i;Q(e,hr,e=>n(5,i=e));let{startdate:o=""}=t,{enddate:s=""}=t,{status:a=""}=t,{lang:l="en"}=t,u="",c="";Object.keys(Gr).forEach(e=>{Wn(e,Gr[e])});const d=e=>new Date(e).getTime(),h=(e,t)=>(d(t)-d(e))/6e4,f=new Date,m=()=>{n(3,u=h(f,s)),n(4,c=h(f,o))},p=e=>{var t=(e,t)=>e+" "+i(t);return e<60?t(Math.ceil(e),"tournamentsDuration.minutes"):e<1440?t(Math.ceil(e/60),"tournamentsDuration.hours"):t(Math.ceil(e/1440),"tournamentsDuration.days")};return e.$$set=e=>{"startdate"in e&&n(0,o=e.startdate),"enddate"in e&&n(1,s=e.enddate),"status"in e&&n(2,a=e.status),"lang"in e&&n(10,l=e.lang)},e.$$.update=()=>{11&e.$$.dirty&&n(6,r=()=>{if(u<=0)return 100;var e=h(o,s),t=100/e;return Math.floor((e-u)*t)}),11&e.$$.dirty&&o&&s&&m()&&p(u)},[o,s,a,u,c,i,r,m,e=>{let t=new Date(e),n=new Intl.DateTimeFormat(l,{month:"long"}).format(t);return`${t.getDate()} ${n}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${t.getUTCFullYear()}`},p,l]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends c{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>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Jr,qr,n,{startdate:0,enddate:1,status:2,lang:10}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$set({startdate:e}),L()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$set({enddate:e}),L()}get status(){return this.$$.ctx[2]}set status(e){this.$set({status:e}),L()}get lang(){return this.$$.ctx[10]}set lang(e){this.$set({lang:e}),L()}});const Kr={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Niciun premiu disponibil"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis"}}};function Qr(e,t,n){const r=e.slice();return r[4]=t[n],r[6]=n,r}function ei(e,t,n){const r=e.slice();return r[7]=t[n],r[9]=n,r}function ti(t){let r,i=t[0],o=[];for(let e=0;e<i.length;e+=1)o[e]=ii(Qr(t,i,e));let s=null;return i.length||(s=ni(t)),{c(){r=x("div");for(let e=0;e<o.length;e+=1)o[e].c();s&&s.c(),D(r,"class","Prizes"),D(r,"part","Prizes")},m(e,t){S(e,r,t);for(let e=0;e<o.length;e+=1)o[e].m(r,null);s&&s.m(r,null)},p(t,n){if(3&n){let e;for(i=t[0],e=0;e<i.length;e+=1){const s=Qr(t,i,e);o[e]?o[e].p(s,n):(o[e]=ii(s),o[e].c(),o[e].m(r,null))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):(s=ni(t),s.c(),s.m(r,null))}},d(e){e&&E(r),p(o,e),s&&s.d()}}}function ni(e){let n,r,i=e[1]("tournamentsPrizes.noprizes")+"";return{c(){n=x("p"),r=C(i)},m(e,t){S(e,n,t),T(n,r)},p(e,t){2&t&&i!==(i=e[1]("tournamentsPrizes.noprizes")+"")&&P(r,i)},d(e){e&&E(n)}}}function ri(e){let n,r,i,o,s,a,l,u=e[4].rank+e[9]+"",c=e[4].name+"";return{c(){n=x("div"),r=x("p"),i=x("span"),o=C(u),s=M(),a=C(c),l=M(),D(i,"class","PrizeRank"),D(i,"part","PrizeRank"),D(r,"class","PrizeText"),D(r,"part","PrizeText"),D(n,"class","Prize Prize"+e[6]),D(n,"part","Prize Prize"+e[6])},m(e,t){S(e,n,t),T(n,r),T(r,i),T(i,o),T(r,s),T(r,a),T(n,l)},p(e,t){1&t&&u!==(u=e[4].rank+e[9]+"")&&P(o,u),1&t&&c!==(c=e[4].name+"")&&P(a,c)},d(e){e&&E(n)}}}function ii(t){let i,o={length:t[4].count},s=[];for(let e=0;e<o.length;e+=1)s[e]=ri(ei(t,o,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();i=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);S(t,i,n)},p(t,n){if(1&n){let e;for(o={length:t[4].count},e=0;e<o.length;e+=1){var r=ei(t,o,e);s[e]?s[e].p(r,n):(s[e]=ri(r),s[e].c(),s[e].m(i.parentNode,i))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length}},d(e){p(s,e),e&&E(i)}}}function oi(e){let n,r,i,o,s,a,l,u,c,d,h=e[1]("tournamentsPrizes.prizes")+"",f=e[0]&&ti(e);return{c(){n=x("div"),r=t("svg"),i=t("defs"),o=t("style"),s=C(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=t("path"),l=M(),u=x("p"),c=C(h),d=M(),f&&f.c(),this.c=v,D(a,"class","a"),D(a,"part","a TournamentPrizesSvgA"),D(a,"d","M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z"),D(a,"transform","translate(-5.999 -9.76)"),D(r,"part","TournamentPrizesSvg"),D(r,"xmlns","http://www.w3.org/2000/svg"),D(r,"width","30"),D(r,"height","27.454"),D(r,"viewBox","0 0 30 27.454"),D(u,"class","PrizesTitle"),D(u,"part","PrizesTitle"),D(n,"class","TournamentPrizes"),D(n,"part","TournamentPrizes")},m(e,t){S(e,n,t),T(n,r),T(r,i),T(i,o),T(o,s),T(r,a),T(n,l),T(n,u),T(u,c),T(n,d),f&&f.m(n,null)},p(e,[t]){2&t&&h!==(h=e[1]("tournamentsPrizes.prizes")+"")&&P(c,h),e[0]?f?f.p(e,t):(f=ti(e),f.c(),f.m(n,null)):f&&(f.d(1),f=null)},i:v,o:v,d(e){e&&E(n),f&&f.d()}}}function si(e,t,n){let r;Q(e,hr,e=>n(1,r=e));let i,{tourid:o=""}=t;Object.keys(Kr).forEach(e=>{Wn(e,Kr[e])});const s=e=>{e.data&&e.data.type==`TournamentPrizes_${o}`&&n(0,i=e.data.prizes)};return ee(()=>(window.addEventListener("message",s,!1),()=>{window.removeEventListener("message",s)})),e.$$set=e=>{"tourid"in e&&n(2,o=e.tourid)},[i,r,o]}function ai(e,t,n){const r=e.slice();return r[37]=t[n],r[39]=n,r}function li(n){let i,r,o,s,a,l,u,c,d=n[0],h=[];for(let e=0;e<d.length;e+=1)h[e]=ui(ai(n,d,e));return{c(){i=x("div"),i.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',r=M(),o=x("main"),s=x("div");for(let e=0;e<h.length;e+=1)h[e].c();a=M(),l=x("div"),l.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',D(i,"class","SliderNavButton"),D(i,"part","SliderNavButton"),e(i,"disabled",n[6]),D(s,"class","items"),D(s,"part","items"),g(s,"transform","translateX("+n[1]+"px)"),D(l,"class","SliderNavButton"),D(l,"part","SliderNavButton"),e(l,"disabled",n[7])},m(e,t){S(e,i,t),S(e,r,t),S(e,o,t),T(o,s);for(let e=0;e<h.length;e+=1)h[e].m(s,null);n[21](s),S(e,a,t),S(e,l,t),u||(c=[k(i,"click",n[17]),k(l,"click",n[22])],u=!0)},p(t,n){if(64&n[0]&&e(i,"disabled",t[6]),2841&n[0]){let e;for(d=t[0],e=0;e<d.length;e+=1){var r=ai(t,d,e);h[e]?h[e].p(r,n):(h[e]=ui(r),h[e].c(),h[e].m(s,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=d.length}2&n[0]&&g(s,"transform","translateX("+t[1]+"px)"),128&n[0]&&e(l,"disabled",t[7])},d(e){e&&E(i),e&&E(r),e&&E(o),p(h,e),n[21](null),e&&E(a),e&&E(l),u=!1,w(c)}}}function ui(n){let r,i,o,s,a,l,u,c,d,h,f,m,p;function g(){return n[18](n[37])}function y(){return n[19](n[39])}return{c(){r=x("div"),i=x("span"),o=C("Play now"),l=M(),u=x("img"),f=M(),D(i,"class",s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":"")),D(i,"part",a="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":"")),u.src!==(c=n[37].thumbnail)&&D(u,"src",c),D(u,"width","132px"),D(u,"height","100px"),D(u,"alt",d=n[37].name),D(u,"title",h=n[37].name),D(r,"class","item"),D(r,"part","item")},m(e,t){S(e,r,t),T(r,i),T(i,o),T(r,l),T(r,u),T(r,f),m||(p=[k(r,"click",g),k(r,"mouseenter",y),k(r,"mouseleave",n[20])],m=!0)},p(e,t){n=e,24&t[0]&&s!==(s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&D(i,"class",s),24&t[0]&&a!==(a="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&D(i,"part",a),1&t[0]&&u.src!==(c=n[37].thumbnail)&&D(u,"src",c),1&t[0]&&d!==(d=n[37].name)&&D(u,"alt",d),1&t[0]&&h!==(h=n[37].name)&&D(u,"title",h)},d(e){e&&E(r),m=!1,w(p)}}}function ci(n){let r,i=n[0]&&li(n);return{c(){r=x("div"),i&&i.c(),this.c=v,D(r,"class","TournamentsGamesSlider"),D(r,"part","TournamentsGamesSlider")},m(e,t){S(e,r,t),i&&i.m(r,null),n[23](r)},p(e,t){e[0]?i?i.p(e,t):(i=li(e),i.c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&E(r),i&&i.d(),n[23](null)}}}function di(e,t,n){let r,i,o,s,a,l,{tournamenturl:u=""}=t,{scrollby:c="3"}=t,{pagfactor:d="175"}=t,{lang:h=""}=t,f=window.navigator.userAgent,m=[],p=0,g=null,y=null,v=!1,w=0;const b=e=>{n(3,v=!0),n(4,a=e)},_=()=>{n(3,v=!1),n(4,a=-1)},T=e=>{e=(e.touches||e.originalEvent.touches)[0];g=e.clientX,y=e.clientY},S=e=>{var t;g&&y&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=g-t,e=y-e,Math.abs(t)>Math.abs(e)&&E(0<t?1:-1),g=null,y=null)},E=e=>{0<e&&!i?(n(1,p-=o),n(1,p=p<w?w:p)):e<0&&!r&&(n(1,p+=o),n(1,p=0<p?0:p))},x=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return ee(()=>(o=parseInt(c,10)*parseInt(d,10),()=>{s.removeEventListener("touchstart",T),s.removeEventListener("touchmove",S)})),e.$$set=e=>{"tournamenturl"in e&&n(13,u=e.tournamenturl),"scrollby"in e&&n(14,c=e.scrollby),"pagfactor"in e&&n(12,d=e.pagfactor),"lang"in e&&n(15,h=e.lang)},e.$$.update=()=>{2&e.$$.dirty[0]&&n(6,r=0===p),65538&e.$$.dirty[0]&&n(7,i=p<=w),8192&e.$$.dirty[0]&&u&&(()=>{let e=new URL(u),t=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${p})`),e.searchParams.append("fields","games(id,name,thumbnail)"),e.searchParams.append("language",h),e.searchParams.append("platform",mr(f)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{n(0,m=e.item.games.items),e.item.games.total})})(),4&e.$$.dirty[0]&&s&&(s.addEventListener("touchstart",T,{passive:!0}),s.addEventListener("touchmove",S,{passive:!0})),1&e.$$.dirty[0]&&m.length&&setTimeout(()=>{n(16,w=-1*(l.scrollWidth-l.clientWidth)),n(12,d=new String(l.scrollWidth/m.length)),o=parseInt(c,10)*parseFloat(d,2).toFixed(2)},1e3)},n(1,p=0),[m,p,s,v,a,l,r,i,b,_,E,x,d,u,c,h,w,()=>E(-1),e=>x(e),e=>b(e),()=>_(),function(e){F[e?"unshift":"push"](()=>{l=e,n(5,l)})},()=>E(1),function(e){F[e?"unshift":"push"](()=>{s=e,n(2,s)})}]}function hi(e){let n,r,i,o,s,a,l,u,c,d=e[9]&&mi(e);function h(e){return e[9]?"Closed"!=e[17]&&"Closing"!=e[17]?yi:"true"==e[3]?gi:void 0:vi}let f=h(e),m=f&&f(e),p=e[12]&&xi(e),g="true"==e[4]&&Ci(e);return{c(){n=x("div"),r=x("casino-tournaments-thumbnail"),i=M(),d&&d.c(),o=M(),s=x("div"),m&&m.c(),a=M(),p&&p.c(),l=M(),g&&g.c(),y(r,"session",e[0]),y(r,"userid",e[1]),y(r,"title",e[14]),y(r,"status",e[17]),y(r,"startdate",e[15]),y(r,"tourid",e[18]),y(r,"scorecriteria",e[21]),y(r,"minbetcount",e[22]),y(r,"thumbnail",e[19]),y(r,"userenrolled",e[20]),y(r,"showenrolled",e[5]),y(r,"gameurl",e[24]),y(r,"lang",e[8]),y(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),D(s,"class","TournamentButtons"),D(s,"part","TournamentButtons"),D(n,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")),D(n,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){S(e,n,t),T(n,r),T(n,i),d&&d.m(n,null),T(n,o),T(n,s),m&&m.m(s,null),T(n,a),p&&p.m(n,null),T(n,l),g&&g.m(n,null)},p(e,t){1&t[0]&&y(r,"session",e[0]),2&t[0]&&y(r,"userid",e[1]),16384&t[0]&&y(r,"title",e[14]),131072&t[0]&&y(r,"status",e[17]),32768&t[0]&&y(r,"startdate",e[15]),262144&t[0]&&y(r,"tourid",e[18]),2097152&t[0]&&y(r,"scorecriteria",e[21]),4194304&t[0]&&y(r,"minbetcount",e[22]),524288&t[0]&&y(r,"thumbnail",e[19]),1048576&t[0]&&y(r,"userenrolled",e[20]),32&t[0]&&y(r,"showenrolled",e[5]),16777216&t[0]&&y(r,"gameurl",e[24]),256&t[0]&&y(r,"lang",e[8]),e[9]?d?d.p(e,t):(d=mi(e),d.c(),d.m(n,o)):d&&(d.d(1),d=null),f===(f=h(e))&&m?m.p(e,t):(m&&m.d(1),m=f&&f(e),m&&(m.c(),m.m(s,null))),e[12]?p?p.p(e,t):(p=xi(e),p.c(),p.m(n,l)):p&&(p.d(1),p=null),"true"==e[4]?g?g.p(e,t):(g=Ci(e),g.c(),g.m(n,null)):g&&(g.d(1),g=null),33554624&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))&&D(n,"class",u),33554624&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))&&D(n,"part",c)},d(e){e&&E(n),d&&d.d(),m&&m.d(),p&&p.d(),g&&g.d()}}}function fi(e){let n,r,i,o;return{c(){n=x("div"),r=x("div"),r.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>',D(r,"class","ph-item"),D(r,"part","ph-item"),D(n,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")),D(n,"part",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){S(e,n,t),T(n,r)},p(e,t){33554624&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))&&D(n,"class",i),33554624&t[0]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))&&D(n,"part",o)},d(e){e&&E(n)}}}function mi(e){let n,r,i=e[18]&&pi(e);return{c(){i&&i.c(),n=M(),r=x("casino-tournaments-thumbnail-duration"),y(r,"status",e[17]),y(r,"startdate",e[15]),y(r,"lang",e[8]),y(r,"enddate",e[16]),y(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),S(e,n,t),S(e,r,t)},p(e,t){e[18]?i?i.p(e,t):(i=pi(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),131072&t[0]&&y(r,"status",e[17]),32768&t[0]&&y(r,"startdate",e[15]),256&t[0]&&y(r,"lang",e[8]),65536&t[0]&&y(r,"enddate",e[16])},d(e){i&&i.d(e),e&&E(n),e&&E(r)}}}function pi(n){let r,i,o,s;return{c(){r=x("casino-tournaments-thumbnail-prizes"),y(r,"tourid",n[18]),y(r,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank")},m(e,t){S(e,r,t),o||(s=b(i=n[31].call(null,r,n[18])),o=!0)},p(e,t){262144&t[0]&&y(r,"tourid",e[18]),i&&f(i.update)&&262144&t[0]&&i.update.call(null,e[18])},d(e){e&&E(r),o=!1,s()}}}function gi(n){let r,i,o,s,a=n[26]("tournamentsThController.details")+"";return{c(){r=x("button"),i=C(a),D(r,"class","DetailsLargeButton"),D(r,"part","DetailsLargeButton")},m(e,t){S(e,r,t),T(r,i),o||(s=k(r,"click",n[44]),o=!0)},p(e,t){67108864&t[0]&&a!==(a=e[26]("tournamentsThController.details")+"")&&P(i,a)},d(e){e&&E(r),o=!1,s()}}}function yi(e){let n,r,i="true"==e[3]&&wi(e);function o(e){return 1==e[20]?_i:bi}let s=o(e),a=s(e);return{c(){i&&i.c(),n=M(),a.c(),r=l()},m(e,t){i&&i.m(e,t),S(e,n,t),a.m(e,t),S(e,r,t)},p(e,t){"true"==e[3]?i?i.p(e,t):(i=wi(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),s===(s=o(e))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(r.parentNode,r)))},d(e){i&&i.d(e),e&&E(n),a.d(e),e&&E(r)}}}function vi(n){let r,i,o,s,a,l,u,c=n[26]("tournamentsThController.login")+"",d=n[26]("tournamentsThController.register")+"";return{c(){r=x("button"),i=C(c),o=M(),s=x("button"),a=C(d),D(r,"class","LoginButton"),D(r,"part","LoginButton"),D(s,"class","RegisterButton"),D(s,"part","RegisterButton")},m(e,t){S(e,r,t),T(r,i),S(e,o,t),S(e,s,t),T(s,a),l||(u=[k(r,"click",n[40]),k(s,"click",n[41])],l=!0)},p(e,t){67108864&t[0]&&c!==(c=e[26]("tournamentsThController.login")+"")&&P(i,c),67108864&t[0]&&d!==(d=e[26]("tournamentsThController.register")+"")&&P(a,d)},d(e){e&&E(r),e&&E(o),e&&E(s),l=!1,w(u)}}}function wi(n){let r,i,o,s,a=n[26]("tournamentsThController.details")+"";return{c(){r=x("button"),i=C(a),D(r,"class","DetailsButton"),D(r,"part","DetailsButton")},m(e,t){S(e,r,t),T(r,i),o||(s=k(r,"click",n[42]),o=!0)},p(e,t){67108864&t[0]&&a!==(a=e[26]("tournamentsThController.details")+"")&&P(i,a)},d(e){e&&E(r),o=!1,s()}}}function bi(n){let r,i,o,s,a;function l(e){return 1==e[11]?Si:Ti}let u=l(n),c=u(n);return{c(){r=x("button"),c.c(),D(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),D(r,"part",o="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[12]},m(e,t){S(e,r,t),c.m(r,null),s||(a=k(r,"click",n[43]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),c=u(e),c&&(c.c(),c.m(r,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&D(r,"class",i),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&D(r,"part",o),4096&t[0]&&(r.disabled=e[12])},d(e){e&&E(r),c.d(),s=!1,a()}}}function _i(e){let n,r="true"==e[3]&&Ei(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),S(e,n,t)},p(e,t){"true"==e[3]?r?r.p(e,t):(r=Ei(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&E(n)}}}function Ti(e){let n,r,i,o,s,a,l,u,c,d=e[26]("tournamentsThController.join")+"";return{c(){n=x("span"),r=C(d),i=M(),o=t("svg"),s=t("defs"),a=t("style"),l=C(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("g"),c=t("path"),D(n,"part","JoinButtonSpan"),D(c,"class","a"),D(c,"part","a JoinButtonSvgA"),D(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),D(c,"transform","translate(26 26) rotate(180)"),D(u,"transform","translate(26 26) rotate(180)"),D(o,"part","JoinButtonSvg"),D(o,"xmlns","http://www.w3.org/2000/svg"),D(o,"width","26"),D(o,"height","26"),D(o,"viewBox","0 0 26 26")},m(e,t){S(e,n,t),T(n,r),S(e,i,t),S(e,o,t),T(o,s),T(s,a),T(a,l),T(o,u),T(u,c)},p(e,t){67108864&t[0]&&d!==(d=e[26]("tournamentsThController.join")+"")&&P(r,d)},d(e){e&&E(n),e&&E(i),e&&E(o)}}}function Si(e){let n,r;return{c(){n=t("svg"),r=t("circle"),D(r,"cx","20"),D(r,"cy","20"),D(r,"r","18"),D(n,"class","spinner"),D(n,"part","spinner")},m(e,t){S(e,n,t),T(n,r)},p:v,d(e){e&&E(n)}}}function Ei(e){let n,r,i=e[26]("tournamentsThController.enrolled")+"";return{c(){n=x("button"),r=C(i),D(n,"class","EnrolledButton"),D(n,"part","EnrolledButton"),n.disabled=!0},m(e,t){S(e,n,t),T(n,r)},p(e,t){67108864&t[0]&&i!==(i=e[26]("tournamentsThController.enrolled")+"")&&P(r,i)},d(e){e&&E(n)}}}function xi(e){let n,r,i,o,s=e[26]("tournamentsThController.joinerror")+"";return{c(){n=x("span"),r=C(s),i=M(),o=C(e[13]),D(n,"class","ErrorText"),D(n,"part","ErrorText")},m(e,t){S(e,n,t),T(n,r),T(n,i),T(n,o)},p(e,t){67108864&t[0]&&s!==(s=e[26]("tournamentsThController.joinerror")+"")&&P(r,s),8192&t[0]&&P(o,e[13])},d(e){e&&E(n)}}}function Ci(e){let n;return{c(){n=x("casino-tournaments-thumbnail-games-slider"),y(n,"tournamenturl",e[2]),y(n,"lang",e[8]),y(n,"scrollby","2"),y(n,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){S(e,n,t)},p(e,t){4&t[0]&&y(n,"tournamenturl",e[2]),256&t[0]&&y(n,"lang",e[8])},d(e){e&&E(n)}}}function Mi(e){let n;function r(e){return e[10]?fi:e[14]?hi:void 0}let i=r(e),o=i&&i(e);return{c(){o&&o.c(),n=l(),this.c=v},m(e,t){o&&o.m(e,t),S(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o&&o.d(1),o=i&&i(e),o&&(o.c(),o.m(n.parentNode,n)))},i:v,o:v,d(e){o&&o.d(e),e&&E(n)}}}function ki(e,t,o){let n;Q(e,hr,e=>o(26,n=e));let r,i,s,a,l,u,c,d,h,f,{session:m=""}=t,{userid:p=""}=t,{tournamenturl:g=""}=t,{touridx:y}=t,{endpoint:v=""}=t,{showdetails:w=""}=t,{showslider:b=""}=t,{showenrolled:_=""}=t,{maxwidth:T=""}=t,{fullsize:S=""}=t,{lang:E=""}=t,{loginevent:x=""}=t,{registerevent:C=""}=t,{loginurl:M=""}=t,{registerurl:k=""}=t,{currency:D=""}=t,P=!1,O="",A=!0,F=window.navigator.userAgent,R=!1,N=!1,$="There was an error while trying to join the tournament",L=[],I=[],U="#",Y=!1;var z,j;[{withLocale:z,translations:j}]=[{withLocale:"en",translations:{}}],nr.subscribe(e=>{null==e&&(Gn.set(j),nr.set(z))}),Object.keys(Or).forEach(e=>{Wn(e,Or[e])});const B=e=>{H(e),J(e),q(this,l)},G=n=>{if(n.data&&"UserSessionID"==n.data.type&&(o(9,P=!0),O=n.data.session),"UpdateTournamentView"==n.data.type){var e=n.data.tournamentData;if(l&&l!=e.id)return;B(e)}if(n.data&&n.data.type==`UpdateSingleTournament_${y}`){let e=n.data.tournamentData,t=y<4?100*y:300*Math.random()+300;o(25,Y=1==y),setTimeout(()=>{o(25,Y=!0),o(18,l=e.id),B(e)},t),setTimeout(()=>{o(25,Y=!1)},200+t)}},H=e=>{e.state!=a&&(o(17,a=e.state),window.postMessage({type:`TournamentStatus_${l}`,status:a},window.location.href))},W=()=>{x&&window.postMessage({type:x,transition:"Login"},window.location.href),M&&(window.location=M)},V=()=>{C&&window.postMessage({type:C,transition:"Register"},window.location.href),k&&(window.location=k)},X=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},Z=(e,t)=>{window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),o(11,R=!0);let n=new URL(`${v}/bonus/claim`),r=new Headers,i={};n.searchParams.append("language",E),n.searchParams.append("platform",mr(F)),r.append("Content-Type","application/json"),r.append("X-SessionID",O),t&&1<=t.length&&(i={language:E,bonusCode:t[0].code,currency:D});t={method:"PUT",headers:r,body:JSON.stringify(i)};fetch(n,t).then(e=>e.json()).then(e=>{1==e.success?(o(11,R=!1),o(20,c=!0)):(o(11,R=!1),o(13,$=e.errorMessage),o(12,N=!0))},e=>{o(11,R=!1),o(12,N=!0)})},q=(e,t)=>{window.postMessage({type:`TournamentPrizes_${t}`,prizes:L},window.location.href)},J=e=>{e&&(o(14,r=e.nameOrTitle||""),o(15,i=e.startTime),o(16,s=e.endTime),o(17,a=e.state),o(18,l=e.id),o(19,u=e.thumbnail),o(20,c=e.playerEnrolled||!1),o(21,d=e.scoreCriteria),o(22,h=e.minBetCount),L=e.prizes,o(23,I=e.wallets||[]),o(24,U=e.termsUrl||"#"))},K=()=>{o(10,A=!0),(e=>{o(10,A=!0);let t=new URL(e),n=new Headers;t.searchParams.append("language",E),t.searchParams.append("platform",mr(F)),P&&n.append("X-SessionID",O),fetch(t,{method:"GET",headers:n}).then(e=>e.json()).then(e=>{o(10,A=!1),J(e.item)})})(g)};return ee(()=>(o(10,A=!1),window.addEventListener("message",G,!1),()=>{window.removeEventListener("message",G)})),e.$$set=e=>{"session"in e&&o(0,m=e.session),"userid"in e&&o(1,p=e.userid),"tournamenturl"in e&&o(2,g=e.tournamenturl),"touridx"in e&&o(32,y=e.touridx),"endpoint"in e&&o(33,v=e.endpoint),"showdetails"in e&&o(3,w=e.showdetails),"showslider"in e&&o(4,b=e.showslider),"showenrolled"in e&&o(5,_=e.showenrolled),"maxwidth"in e&&o(6,T=e.maxwidth),"fullsize"in e&&o(7,S=e.fullsize),"lang"in e&&o(8,E=e.lang),"loginevent"in e&&o(34,x=e.loginevent),"registerevent"in e&&o(35,C=e.registerevent),"loginurl"in e&&o(36,M=e.loginurl),"registerurl"in e&&o(37,k=e.registerurl),"currency"in e&&o(38,D=e.currency)},e.$$.update=()=>{1&e.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?(O=m,o(9,P=!0)):o(9,P=!1)),260&e.$$.dirty[0]&&o(39,f=g&&E),256&e.$$.dirty[1]&&f&&K()},[m,p,g,w,b,_,T,S,E,P,A,R,N,$,r,i,s,a,l,u,c,d,h,I,U,Y,n,W,V,X,Z,q,y,v,x,C,M,k,D,f,()=>W(),()=>V(),()=>X(l),()=>Z(l,I),()=>X(l)]}function Di(e,t,n){const r=e.slice();return r[20]=t[n],r[22]=n,r}function Pi(t){let r,i=t[10],o=[];for(let e=0;e<i.length;e+=1)o[e]=Ai(Di(t,i,e));let s=null;return i.length||(s=Oi(t)),{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=l(),s&&s.c()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);S(t,r,n),s&&s.m(t,n)},p(t,n){if(3583&n){let e;for(i=t[10],e=0;e<i.length;e+=1){const s=Di(t,i,e);o[e]?o[e].p(s,n):(o[e]=Ai(s),o[e].c(),o[e].m(r.parentNode,r))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):(s=Oi(t),s.c(),s.m(r.parentNode,r))}},d(e){p(o,e),e&&E(r),s&&s.d(e)}}}function Oi(e){let n,r,i=e[11]("tournamentsList.nothing")+"";return{c(){n=x("p"),r=C(i)},m(e,t){S(e,n,t),T(n,r)},p(e,t){2048&t&&i!==(i=e[11]("tournamentsList.nothing")+"")&&P(r,i)},d(e){e&&E(n)}}}function Ai(e){let n,r,i;return{c(){n=x("casino-tournaments-thumbnail-controller"),y(n,"touridx",e[22]+1),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"endpoint",e[2]),y(n,"showdetails","true"),y(n,"showslider","false"),y(n,"tournamenturl",r=e[20].href),y(n,"maxwidth",i=e[10].length<=2),y(n,"loginurl",e[5]),y(n,"loginevent",e[3]),y(n,"registerurl",e[6]),y(n,"registerevent",e[4]),y(n,"lang",e[8]),y(n,"currency",e[7]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing")},m(e,t){S(e,n,t)},p(e,t){1&t&&y(n,"session",e[0]),2&t&&y(n,"userid",e[1]),4&t&&y(n,"endpoint",e[2]),1024&t&&r!==(r=e[20].href)&&y(n,"tournamenturl",r),1024&t&&i!==(i=e[10].length<=2)&&y(n,"maxwidth",i),32&t&&y(n,"loginurl",e[5]),8&t&&y(n,"loginevent",e[3]),64&t&&y(n,"registerurl",e[6]),16&t&&y(n,"registerevent",e[4]),256&t&&y(n,"lang",e[8]),128&t&&y(n,"currency",e[7])},d(e){e&&E(n)}}}function Fi(e){let n,r=!e[9]&&Pi(e);return{c(){n=x("div"),r&&r.c(),this.c=v,D(n,"class","TournamentList"),D(n,"part","TournamentList")},m(e,t){S(e,n,t),r&&r.m(n,null)},p(e,[t]){e[9]?r&&(r.d(1),r=null):r?r.p(e,t):(r=Pi(e),r.c(),r.m(n,null))},i:v,o:v,d(e){e&&E(n),r&&r.d()}}}function Ri(e,t,n){let r;Q(e,hr,e=>n(11,r=e));let{session:i=""}=t,{userid:o=""}=t,{numberoftournaments:s="6"}=t,{endpoint:a=""}=t,{loginevent:l=""}=t,{registerevent:u=""}=t,{loginurl:c=""}=t,{registerurl:d=""}=t,{currency:h=""}=t,{lang:f="en"}=t,m=!1;Dr();let p="";Object.keys(Pr).forEach(e=>{Wn(e,Pr[e])});const g=t=>{if(t.data&&"TournamentList"==t.data.type&&(n(10,p=[]),n(9,m=!0),n(10,p=t.data.tournamentList),setTimeout(()=>{n(9,m=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&n(10,p=[...p,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!p)return;0==p.filter(e=>e.id==t.data.tournamentData.id).length&&(p.pop(),n(10,p=[t.data.tournamentData,...p]),setTimeout(()=>{p.forEach((e,t)=>{window.postMessage({type:`UpdateSingleTournament_${t+1}`,tournamentData:e},window.location.href)})},100))}t.data&&"UserSessionID"==t.data.type&&t.data.session};return ee(()=>(window.addEventListener("message",g,!0),()=>{window.removeEventListener("message",g,!0)})),e.$$set=e=>{"session"in e&&n(0,i=e.session),"userid"in e&&n(1,o=e.userid),"numberoftournaments"in e&&n(12,s=e.numberoftournaments),"endpoint"in e&&n(2,a=e.endpoint),"loginevent"in e&&n(3,l=e.loginevent),"registerevent"in e&&n(4,u=e.registerevent),"loginurl"in e&&n(5,c=e.loginurl),"registerurl"in e&&n(6,d=e.registerurl),"currency"in e&&n(7,h=e.currency),"lang"in e&&n(8,f=e.lang)},e.$$.update=()=>{1&e.$$.dirty&&i&&i.length,e.$$.dirty},[i,o,a,l,u,c,d,h,f,m,p,r,s]}function Ni(e){let n,r,i,o,s,a,l=e[15]&&Li(e);function u(e){return 0==e[16]?Ui:Ii}let c=u(e),d=c(e),h=!e[17]&&ji(e);return{c(){n=x("div"),r=x("div"),i=x("div"),l&&l.c(),o=M(),s=x("div"),d.c(),a=M(),h&&h.c(),D(i,"class","FirstRow"),D(i,"part","FirstRow"),D(s,"class","SecondRow"),D(s,"part","SecondRow"),D(r,"class","Tournaments"),g(r,"max-width",e[11]+"px"),D(r,"part","Tournaments"),D(n,"class","TournamentsWrapper"),D(n,"part","TournamentsWrapper")},m(e,t){S(e,n,t),T(n,r),T(r,i),l&&l.m(i,null),T(r,o),T(r,s),d.m(s,null),T(r,a),h&&h.m(r,null)},p(e,t){e[15]?l?l.p(e,t):(l=Li(e),l.c(),l.m(i,null)):l&&(l.d(1),l=null),c===(c=u(e))&&d?d.p(e,t):(d.d(1),d=c(e),d&&(d.c(),d.m(s,null))),e[17]?h&&(h.d(1),h=null):h?h.p(e,t):(h=ji(e),h.c(),h.m(r,null)),2048&t[0]&&g(r,"max-width",e[11]+"px")},d(e){e&&E(n),l&&l.d(),d.d(),h&&h.d()}}}function $i(e){let n,r,i,o,s,a=e[18]("tournamentsController.500")+"";return{c(){n=x("p"),r=C(a),i=M(),o=x("p"),s=C(e[13])},m(e,t){S(e,n,t),T(n,r),S(e,i,t),S(e,o,t),T(o,s)},p(e,t){262144&t[0]&&a!==(a=e[18]("tournamentsController.500")+"")&&P(r,a),8192&t[0]&&P(s,e[13])},d(e){e&&E(n),e&&E(i),e&&E(o)}}}function Li(e){let n;return{c(){n=x("casino-tournaments-filter-controller"),y(n,"filters",Gi),y(n,"activefilters",e[5]),y(n,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(e,t){S(e,n,t)},p(e,t){32&t[0]&&y(n,"activefilters",e[5])},d(e){e&&E(n)}}}function Ii(e){let n;return{c(){n=x("casino-tournaments-list-controller"),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"numberoftournaments",e[4]),y(n,"endpoint",e[2]),y(n,"loginurl",e[8]),y(n,"loginevent",e[6]),y(n,"registerurl",e[9]),y(n,"registerevent",e[7]),y(n,"lang",e[3]),y(n,"currency",e[10]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing")},m(e,t){S(e,n,t)},p(e,t){1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),16&t[0]&&y(n,"numberoftournaments",e[4]),4&t[0]&&y(n,"endpoint",e[2]),256&t[0]&&y(n,"loginurl",e[8]),64&t[0]&&y(n,"loginevent",e[6]),512&t[0]&&y(n,"registerurl",e[9]),128&t[0]&&y(n,"registerevent",e[7]),8&t[0]&&y(n,"lang",e[3]),1024&t[0]&&y(n,"currency",e[10])},d(e){e&&E(n)}}}function Ui(e){let n;function r(e){return e[14]?zi:Yi}let i=r(e),o=i(e);return{c(){o.c(),n=l()},m(e,t){o.m(e,t),S(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&E(n)}}}function Yi(e){let n,r,i=e[18]("tournamentsController.noTournaments")+"";return{c(){n=x("p"),r=C(i)},m(e,t){S(e,n,t),T(n,r)},p(e,t){262144&t[0]&&i!==(i=e[18]("tournamentsController.noTournaments")+"")&&P(r,i)},d(e){e&&E(n)}}}function zi(e){let n,r,i=e[18]("tournamentsController.loading")+"";return{c(){n=x("p"),r=C(i)},m(e,t){S(e,n,t),T(n,r)},p(e,t){262144&t[0]&&i!==(i=e[18]("tournamentsController.loading")+"")&&P(r,i)},d(e){e&&E(n)}}}function ji(n){let r,i,o,s,a,l,u=n[18]("tournamentsController.showMore")+"";return{c(){r=x("div"),i=x("div"),o=x("button"),s=C(u),D(o,"class","ShowMoreButton"),D(o,"part","ShowMoreButton"),D(o,"title","Show More"),D(i,"class","CenterButton"),D(i,"part","CenterButton"),D(r,"class","ThirdRow"),D(r,"part","ThirdRow")},m(e,t){S(e,r,t),T(r,i),T(i,o),T(o,s),a||(l=k(o,"click",n[23]),a=!0)},p(e,t){262144&t[0]&&u!==(u=e[18]("tournamentsController.showMore")+"")&&P(s,u)},d(e){e&&E(r),a=!1,l()}}}function Bi(e){let n;function r(e){return e[12]?$i:Ni}let i=r(e),o=i(e);return{c(){o.c(),n=l(),this.c=v},m(e,t){o.m(e,t),S(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(n.parentNode,n)))},i:v,o:v,d(e){o.d(e),e&&E(n)}}}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends c{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>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},si,oi,n,{tourid:2}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(e){this.$set({tourid:e}),L()}}),customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends c{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>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},di,ci,n,{tournamenturl:13,scrollby:14,pagfactor:12,lang:15},[-1,-1]),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[13]}set tournamenturl(e){this.$set({tournamenturl:e}),L()}get scrollby(){return this.$$.ctx[14]}set scrollby(e){this.$set({scrollby:e}),L()}get pagfactor(){return this.$$.ctx[12]}set pagfactor(e){this.$set({pagfactor:e}),L()}get lang(){return this.$$.ctx[15]}set lang(e){this.$set({lang:e}),L()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends c{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}.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>',u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ki,Mi,n,{session:0,userid:1,tournamenturl:2,touridx:32,endpoint:33,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:34,registerevent:35,loginurl:36,registerurl:37,currency:38},[-1,-1]),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency"]}get session(){return this.$$.ctx[0]}set session(e){this.$set({session:e}),L()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),L()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$set({tournamenturl:e}),L()}get touridx(){return this.$$.ctx[32]}set touridx(e){this.$set({touridx:e}),L()}get endpoint(){return this.$$.ctx[33]}set endpoint(e){this.$set({endpoint:e}),L()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$set({showdetails:e}),L()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$set({showslider:e}),L()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$set({showenrolled:e}),L()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$set({maxwidth:e}),L()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$set({fullsize:e}),L()}get lang(){return this.$$.ctx[8]}set lang(e){this.$set({lang:e}),L()}get loginevent(){return this.$$.ctx[34]}set loginevent(e){this.$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[35]}set registerevent(e){this.$set({registerevent:e}),L()}get loginurl(){return this.$$.ctx[36]}set loginurl(e){this.$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[37]}set registerurl(e){this.$set({registerurl:e}),L()}get currency(){return this.$$.ctx[38]}set currency(e){this.$set({currency:e}),L()}}),customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",class extends c{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}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(Min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Ri,Fi,n,{session:0,userid:1,numberoftournaments:12,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang"]}get session(){return this.$$.ctx[0]}set session(e){this.$set({session:e}),L()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),L()}get numberoftournaments(){return this.$$.ctx[12]}set numberoftournaments(e){this.$set({numberoftournaments:e}),L()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$set({endpoint:e}),L()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$set({registerevent:e}),L()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$set({registerurl:e}),L()}get currency(){return this.$$.ctx[7]}set currency(e){this.$set({currency:e}),L()}get lang(){return this.$$.ctx[8]}set lang(e){this.$set({lang:e}),L()}});let Gi="All,Scheduled,Ongoing,Finished";function Hi(e,t,s){let n,r,i;Q(e,hr,e=>s(18,i=e));var o,a,l=this&&this.__awaiter||function(e,s,a,l){return new(a=a||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(r,i)}o((l=l.apply(e,s||[])).next())})};let u,c,{session:d=""}=t,{userid:h=""}=t,{endpoint:f=""}=t,{lang:m="en"}=t,{numberoftournaments:p="6"}=t,{showmorestep:g="2"}=t,{filters:y="All"}=t,{loginevent:v=""}=t,{registerevent:w=""}=t,{loginurl:b=""}=t,{registerurl:_=""}=t,{currency:T="EUR"}=t,{containermaxwidth:S=""}=t,E=!1,x="",C=!1,M="",k=window.navigator.userAgent,D=!0,P=!1,O=!1,A=0,F=6,R=!0,N=[],$=new Date;$.setMonth($.getMonth()-1),$=$.toISOString().substring(0,10),[{withLocale:o,translations:a}]=[{withLocale:"en",translations:{}}],nr.subscribe(e=>{null==e&&(Gn.set(a),nr.set(o))}),Object.keys(gr).forEach(e=>{Wn(e,gr[e])});const L=e=>{e.data&&"UserSessionID"===e.data.type&&(C=!0,M=e.data.session,e.data.userid,I(f,0,F)),e.data&&"TournamentsFiltersSelected"===e.data.type&&(N=e.data.filters,I(f,0,F))},I=(t,n,r)=>l(void 0,void 0,void 0,function*(){s(14,D=!0),s(16,A=0);const e=yield U(t,n,r);setTimeout(()=>{window.postMessage({type:"TournamentList",tournamentList:e.items},window.location.href)},50),s(14,D=!1)}),U=(r,i,o)=>l(void 0,void 0,void 0,function*(){let t=new URL(`${r}/tournaments`),e=new Headers;var n;return t.searchParams.append("pagination",`offset=${i},limit=${o}`),t.searchParams.append("sortField","StartTime"),t.searchParams.append("sortOrder","desc"),t.searchParams.append("language",m),0<N.length&&"All"!=N[0]?(n=N.map(e=>{return"Scheduled"==e?"Unstarted":"Ongoing"==e?"Running":"Closing|Closed"}).join("|"),t.searchParams.append("filter",`state=${n},StartTimeAfter=${$}`)):t.searchParams.append("filter",`StartTimeAfter=${$}`),t.searchParams.append("platform",mr(k)),C&&e.append("X-SessionID",M),fetch(t,{method:"GET",headers:e,cache:"no-cache"}).then(e=>e.json()).then(e=>(u=t.searchParams.toString(),s(16,A=e.total),s(17,R=F>=A),O||z(),e))}),Y=e=>{if("message"==e.type){var t=e.data;if(t)try{var n,r=JSON.parse(t);r&&r.item&&(n=r.item,"TournamentUpdate"==r.messageType&&window.postMessage({type:"UpdateTournamentView",tournamentData:n},window.location.href),"TournamentRemove"==r.messageType&&window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href))}catch(e){console.error(e)}}},z=()=>{O=!0,setTimeout(()=>{O=!1},1e3),c&&(c.removeEventListener("message",Y),c.close());var e=`${f}/tournaments/updates?${u}&XSessionId=${d}`;c=EventSource?new EventSource(e):new yr.EventSourcePolyfill(e,{headers:{accept:"text/event-stream"}}),void 0!==c&&c.addEventListener("message",Y)},j=()=>l(void 0,void 0,void 0,function*(){var t,n,r,e=F,i=parseInt(g,10);F+=i,window.postMessage({type:"TournamentsPagination",offset:0,limit:F},window.location.href),t=f,n=e,r=i,yield l(void 0,void 0,void 0,function*(){var e=yield U(t,n,r);window.postMessage({type:"TournamentListShowMore",tournamentList:e.items},window.location.href)}),F>=A&&s(17,R=!0)}),B=()=>{f||(s(13,x="Endpoint is missing! Please provide a valid endpointURL."),s(12,E=!0),console.error(x)),m&&2==m.length||(s(13,x="Language is missing! Please provide a valid language (alpha2code)"),s(12,E=!0),console.error(x)),E||(F=parseInt(p,10),pr(m),I(f,0,F))};return ee(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L),c&&c.removeEventListener("message",Y)})),e.$$set=e=>{"session"in e&&s(0,d=e.session),"userid"in e&&s(1,h=e.userid),"endpoint"in e&&s(2,f=e.endpoint),"lang"in e&&s(3,m=e.lang),"numberoftournaments"in e&&s(4,p=e.numberoftournaments),"showmorestep"in e&&s(20,g=e.showmorestep),"filters"in e&&s(5,y=e.filters),"loginevent"in e&&s(6,v=e.loginevent),"registerevent"in e&&s(7,w=e.registerevent),"loginurl"in e&&s(8,b=e.loginurl),"registerurl"in e&&s(9,_=e.registerurl),"currency"in e&&s(10,T=e.currency),"containermaxwidth"in e&&s(11,S=e.containermaxwidth)},e.$$.update=()=>{1&e.$$.dirty[0]&&d&&(0<d.length&&"false"!=d?(C=!0,s(14,D=!0),M=d):(C=!1,B())),e.$$.dirty[0],32&e.$$.dirty[0]&&y&&(N=y.split(","),s(15,P=!0)),8&e.$$.dirty[0]&&m&&pr(m),1048604&e.$$.dirty[0]&&s(21,n=f&&p&&g&&m),2097153&e.$$.dirty[0]&&s(22,r=d?n&&d:n),4194304&e.$$.dirty[0]&&r&&B()},[d,h,f,m,p,y,v,w,b,_,T,S,E,x,D,P,A,R,i,j,g,n,r,()=>j()]}class Wi extends c{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}.ShowMoreButton{background:var(--emfe-w-color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{background:var(--emfe-w-color-contrast, #07072A)}.Tournaments{color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Hi,Bi,n,{session:0,userid:1,endpoint:2,lang:3,numberoftournaments:4,showmorestep:20,filters:5,loginevent:6,registerevent:7,loginurl:8,registerurl:9,currency:10,containermaxwidth:11},[-1,-1]),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["session","userid","endpoint","lang","numberoftournaments","showmorestep","filters","loginevent","registerevent","loginurl","registerurl","currency","containermaxwidth"]}get session(){return this.$$.ctx[0]}set session(e){this.$set({session:e}),L()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),L()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$set({endpoint:e}),L()}get lang(){return this.$$.ctx[3]}set lang(e){this.$set({lang:e}),L()}get numberoftournaments(){return this.$$.ctx[4]}set numberoftournaments(e){this.$set({numberoftournaments:e}),L()}get showmorestep(){return this.$$.ctx[20]}set showmorestep(e){this.$set({showmorestep:e}),L()}get filters(){return this.$$.ctx[5]}set filters(e){this.$set({filters:e}),L()}get loginevent(){return this.$$.ctx[6]}set loginevent(e){this.$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[7]}set registerevent(e){this.$set({registerevent:e}),L()}get loginurl(){return this.$$.ctx[8]}set loginurl(e){this.$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[9]}set registerurl(e){this.$set({registerurl:e}),L()}get currency(){return this.$$.ctx[10]}set currency(e){this.$set({currency:e}),L()}get containermaxwidth(){return this.$$.ctx[11]}set containermaxwidth(e){this.$set({containermaxwidth:e}),L()}}return customElements.get("casino-tournaments-controller")||customElements.define("casino-tournaments-controller",Wi),Wi});
|
|
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 v(){}function d(e){return e()}function h(){return Object.create(null)}function w(e){e.forEach(d)}function f(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Q(e,t,n){e.$$.on_destroy.push(m(t,n))}function b(e){return e&&f(e.destroy)?e.destroy:v}function T(e,t){e.appendChild(t)}function S(e,t,n){e.insertBefore(t,n||null)}function E(e){e.parentNode.removeChild(e)}function p(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function x(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function C(e){return document.createTextNode(e)}function M(){return C(" ")}function l(){return C("")}function k(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function D(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e,t,n){t in e?e[t]=n:D(e,t,n)}function P(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function g(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function e(e,t,n){e.classList[n?"add":"remove"](t)}function r(e){const t={};for(const n of e)t[n.name]=n.value;return t}let _;function A(e){_=e}function ee(e){!function(){if(!_)throw new Error("Function called outside component initialization");return _}().$$.on_mount.push(e)}const O=[],F=[],i=[],o=[],R=Promise.resolve();let N=!1;function $(e){i.push(e)}let s=!1;const a=new Set;function L(){if(!s){s=!0;do{for(let e=0;e<O.length;e+=1){var t=O[e];A(t),function(e){{var t;null!==e.fragment&&(e.update(),w(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach($))}}(t.$$)}for(A(null),O.length=0;F.length;)F.pop()();for(let e=0;e<i.length;e+=1){const n=i[e];a.has(n)||(a.add(n),n())}}while(i.length=0,O.length);for(;o.length;)o.pop()();N=!1,s=!1,a.clear()}}const I=new Set;function u(r,e,t,n,i,o,s=[-1]){var a,l=_;A(r);const u=r.$$={fragment:null,ctx:null,props:o,update:v,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=n)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(O.push(e),N||(N=!0,R.then(L)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],u.update(),c=!0,w(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){const v=(n=e.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(v),v.forEach(E)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(I.delete(a),a.i(void 0)),function(t,e,n,r){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,n),r||$(()=>{var e=o.map(d).filter(f);s?s.push(...e):w(e),t.$$.on_mount=[]}),a.forEach($)}(r,e.target,e.anchor,e.customElement),L()}A(l)}let c;"function"==typeof HTMLElement&&(c=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(d).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){w(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(w(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=v}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var U,Y,z="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==z&&z,j="URLSearchParams"in z,B="Symbol"in z&&"iterator"in Symbol,G="FileReader"in z&&"Blob"in z&&function(){try{return new Blob,!0}catch(e){return!1}}(),H="FormData"in z,W="ArrayBuffer"in z;function V(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 X(e){return e="string"!=typeof e?String(e):e}function Z(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return B&&(e[Symbol.iterator]=function(){return e}),e}function q(t){this.map={},t instanceof q?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 J(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function K(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function te(e){var t=new FileReader,n=K(t);return t.readAsArrayBuffer(e),n}function ne(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function re(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:G&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:H&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:j&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():W&&G&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=ne(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):W&&(ArrayBuffer.prototype.isPrototypeOf(e)||Y(e))?this._bodyArrayBuffer=ne(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):j&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},G&&(this.blob=function(){var e=J(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?J(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(te)}),this.text=function(){var e,t,n=J(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,n=K(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},H&&(this.formData=function(){return this.text().then(se)}),this.json=function(){return this.text().then(JSON.parse)},this}W&&(U=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(e){return e&&-1<U.indexOf(Object.prototype.toString.call(e))}),q.prototype.append=function(e,t){e=V(e),t=X(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},q.prototype.delete=function(e){delete this.map[V(e)]},q.prototype.get=function(e){return e=V(e),this.has(e)?this.map[e]:null},q.prototype.has=function(e){return this.map.hasOwnProperty(V(e))},q.prototype.set=function(e,t){this.map[V(e)]=X(t)},q.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},q.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Z(n)},q.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Z(t)},q.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Z(n)},B&&(q.prototype[Symbol.iterator]=q.prototype.entries);var ie=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function oe(e,t){if(!(this instanceof oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof oe){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new q(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=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 q(t.headers)),this.method=(e=(n=t.method||this.method||"GET").toUpperCase(),-1<ie.indexOf(e)?e:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function se(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),n.append(decodeURIComponent(e),decodeURIComponent(t)))}),n}function ae(e,t){if(!(this instanceof ae))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 q(t.headers),this.url=t.url||"",this._initBody(e)}oe.prototype.clone=function(){return new oe(this,{body:this._bodyInit})},re.call(oe.prototype),re.call(ae.prototype),ae.prototype.clone=function(){return new ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new q(this.headers),url:this.url})},ae.error=function(){var e=new ae(null,{status:0,statusText:""});return e.type="error",e};var le=[301,302,303,307,308];ae.redirect=function(e,t){if(-1===le.indexOf(t))throw new RangeError("Invalid status code");return new ae(null,{status:t,headers:{location:e}})};var ue=z.DOMException;try{new ue}catch(v){(ue=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),ue.prototype.constructor=ue}function ce(r,s){return new Promise(function(i,e){var t=new oe(r,s);if(t.signal&&t.signal.aborted)return e(new ue("Aborted","AbortError"));var o=new XMLHttpRequest;function n(){o.abort()}o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",n=new q,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 t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),n.append(e,t))}),n)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var r="response"in o?o.response:o.responseText;setTimeout(function(){i(new ae(r,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new ue("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&z.location.href?z.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(G?o.responseType="blob":W&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof q?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,X(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",n)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}ce.polyfill=!0,z.fetch||(z.fetch=ce,z.Headers=q,z.Request=oe,z.Response=ae);var de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function he(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return On(null==t&&n.path)}},n.exports),n.exports}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}self.fetch.bind(self);var fe=function(e,t){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}fe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function pe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ge(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function ye(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function ve(e){return"function"==typeof e}function we(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 be=we(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 _e(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var Te=(Ee.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=pe(o),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 o.remove(this);o=this.initialTeardown;if(ve(o))try{o()}catch(e){i=e instanceof be?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=pe(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{Ce(c)}catch(e){i=null!=i?i:[],e instanceof be?i=ye(ye([],ge(i)),ge(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new be(i)}},Ee.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ce(e);else{if(e instanceof Ee){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},Ee.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ee.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ee.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&_e(t,e)},Ee.prototype.remove=function(e){var t=this._teardowns;t&&_e(t,e),e instanceof Ee&&e._removeParent(this)},Ee.EMPTY=((Xt=new Ee).closed=!0,Xt),Ee),Se=Te.EMPTY;function Ee(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function xe(e){return e instanceof Te||e&&"closed"in e&&ve(e.remove)&&ve(e.add)&&ve(e.unsubscribe)}function Ce(e){ve(e)?e():e.unsubscribe()}var Me=void 0,ke=!1,De=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,ye([],ge(e)))};function Pe(){}function Ae(e){e()}var Oe,Fe,Re=(me(Le,Fe=Te),Le.create=function(e,t,n){return new Ne(e,t,n)},Le.prototype.next=function(e){this.isStopped||this._next(e)},Le.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Le.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Le.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Fe.prototype.unsubscribe.call(this),this.destination=null)},Le.prototype._next=function(e){this.destination.next(e)},Le.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Le.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Le),Ne=(me($e,Oe=Re),$e);function $e(e,t,n){var r,i,o=Oe.call(this)||this;return ve(e)?i=e:e&&(i=e.next,t=e.error,n=e.complete,o&&ke?(r=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:r=e,i=null==i?void 0:i.bind(r),t=null==t?void 0:t.bind(r),n=null==n?void 0:n.bind(r)),o.destination={next:i?Ie(i):Pe,error:Ie(null!=t?t:Ue),complete:n?Ie(n):Pe},o}function Le(e){var t=Fe.call(this)||this;return t.isStopped=!1,e?xe(t.destination=e)&&e.add(t):t.destination=Ye,t}function Ie(r){return function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{r.apply(void 0,ye([],ge(e)))}catch(e){t=e,De(function(){throw t})}}}function Ue(e){throw e}var Ye={closed:!0,next:Pe,error:Ue,complete:Pe},ze="function"==typeof Symbol&&Symbol.observable||"@@observable";function je(e){return e}var Be=(Ge.prototype.lift=function(e){var t=new Ge;return t.source=this,t.operator=e,t},Ge.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Re||r&&ve(r.next)&&ve(r.error)&&ve(r.complete)&&xe(r)?e:new Ne(e,t,n);return Ae(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ge.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ge.prototype.forEach=function(r,e){var i=this;return new(e=He(e))(function(e,t){var n=i.subscribe(function(e){try{r(e)}catch(e){t(e),null==n||n.unsubscribe()}},t,e)})},Ge.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ge.prototype[ze]=function(){return this},Ge.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?je:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ge.prototype.toPromise=function(e){var r=this;return new(e=He(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},Ge.create=function(e){return new Ge(e)},Ge);function Ge(e){e&&(this._subscribe=e)}function He(e){return null!==(e=null!=e?e:Me)&&void 0!==e?e:Promise}var We,Ve,Xe,Ze=we(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qe=(me(nt,Xe=Be),nt.prototype.lift=function(e){var t=new Je(this,this);return t.operator=e,t},nt.prototype._throwIfClosed=function(){if(this.closed)throw new Ze},nt.prototype.next=function(o){var s=this;Ae(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var n=s.observers.slice();try{for(var r=pe(n),i=r.next();!i.done;i=r.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},nt.prototype.error=function(t){var n=this;Ae(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},nt.prototype.complete=function(){var t=this;Ae(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},nt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(nt.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),nt.prototype._trySubscribe=function(e){return this._throwIfClosed(),Xe.prototype._trySubscribe.call(this,e)},nt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},nt.prototype._innerSubscribe=function(e){var t=this.hasError,n=this.isStopped,r=this.observers;return t||n?Se:(r.push(e),new Te(function(){return _e(r,e)}))},nt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},nt.prototype.asObservable=function(){var e=new Be;return e.source=this,e},nt.create=function(e,t){return new Je(e,t)},nt),Je=(me(tt,Ve=qe),tt.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},tt.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},tt.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},tt.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:Se},tt),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},Qe=(me(et,We=qe),et.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;n||(r.push(e),i||r.push(o.now()+t)),this._trimBuffer(),We.prototype.next.call(this,e)},et.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},et.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=t.now(),s=0,a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}},et);function et(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=Ke);var r=We.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function tt(e,t){var n=Ve.call(this)||this;return n.destination=e,n.source=t,n}function nt(){var e=Xe.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let rt=[],it={};const ot=[];function st(r,i=v){let o;const s=[];function a(e){if(n(r,e)&&(r=e,o)){const e=!ot.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),ot.push(t,r)}if(e){for(let e=0;e<ot.length;e+=2)ot[e][0](ot[e+1]);ot.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=v){const n=[e,t];return s.push(n),1===s.length&&(o=i(a)||v),e(r),()=>{var e=s.indexOf(n);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function at(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:st(t,t=>{let n=!1;const r=[];let i=0,o=v;const s=()=>{var e;i||(o(),e=a(l?r[0]:r,t),c?t(e):o=f(e)?e:v)},e=u.map((e,t)=>m(e,e=>{r[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}));return n=!0,s(),function(){w(e),o()}}).subscribe}}var lt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===ut));var t},ut="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ct(e,t){return!1!==t.clone&&t.isMergeableObject(e)?pt(Array.isArray(e)?[]:{},e,t):e}function dt(e,t,n){return e.concat(t).map(function(e){return ct(e,n)})}function ht(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ft(e,t){try{return t in e}catch(e){return!1}}function mt(r,i,o){var s={};return o.isMergeableObject(r)&&ht(r).forEach(function(e){s[e]=ct(r[e],o)}),ht(i).forEach(function(t){var e,n;(!ft(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(ft(r,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return pt;var e=o.customMerge(t);return"function"==typeof e?e:pt}()(r[t],i[t],o):s[t]=ct(i[t],o))}),s}function pt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||dt,n.isMergeableObject=n.isMergeableObject||lt,n.cloneUnlessOtherwiseSpecified=ct;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):mt(e,t,n):ct(t,n)}pt.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return pt(e,t,n)},{})};var gt=pt,yt=function(e,t){return(yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function vt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var wt,bt,_t,Tt=function(){return(Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function St(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function Et(e){return e.type===bt.literal}function xt(e){return e.type===bt.number}function Ct(e){return e.type===bt.date}function Mt(e){return e.type===bt.time}function kt(e){return e.type===bt.select}function Dt(e){return e.type===bt.plural}function Pt(e){return e.type===bt.tag}function At(e){return e&&"object"==typeof e&&e.type===_t.number}function Ot(e){return e&&"object"==typeof e&&e.type===_t.dateTime}(Zt=wt=wt||{})[Zt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Zt[Zt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Zt[Zt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Zt[Zt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Zt[Zt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Zt[Zt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Zt[Zt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Zt[Zt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Zt[Zt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Zt[Zt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Zt[Zt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Zt[Zt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Zt[Zt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Zt[Zt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Zt[Zt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Zt[Zt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Zt[Zt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Zt[Zt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Zt[Zt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Zt[Zt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Zt[Zt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Zt[Zt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Zt[Zt.INVALID_TAG=23]="INVALID_TAG",Zt[Zt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Zt[Zt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Zt[Zt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(qt=bt=bt||{})[qt.literal=0]="literal",qt[qt.argument=1]="argument",qt[qt.number=2]="number",qt[qt.date=3]="date",qt[qt.time=4]="time",qt[qt.select=5]="select",qt[qt.plural=6]="plural",qt[qt.pound=7]="pound",qt[qt.tag=8]="tag",(Jt=_t=_t||{})[Jt.number=0]="number",Jt[Jt.dateTime=1]="dateTime";var Ft=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Rt=/(?:[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 Nt,$t=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Lt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,It=/^(@+)?(\+|#+)?$/g,Ut=/(\*)(0+)|(#+)(0+)|(0+)/g,Yt=/^(0+)$/;function zt(e){var r={};return e.replace(It,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function jt(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 Bt(e){return jt(e)||{}}function Gt(e){for(var s={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.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=i.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=Tt(Tt(Tt({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return Tt(Tt({},e),Bt(t))},{}));continue;case"engineering":s=Tt(Tt(Tt({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return Tt(Tt({},e),Bt(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(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ut,function(e,t,n,r,i,o){if(t)s.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Yt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Lt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Lt,function(e,t,n,r,i,o){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=Tt(Tt({},s),zt(i.options[0])))}else It.test(i.stem)?s=Tt(Tt({},s),zt(i.stem)):((r=jt(i.stem))&&(s=Tt(Tt({},s),r)),(r=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Yt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=Tt(Tt({},s),r)))}return s}var Ht=new RegExp("^"+Ft.source+"*"),Wt=new RegExp(Ft.source+"*$");function Vt(e,t){return{start:e,end:t}}var Xt=!!String.prototype.startsWith,ze=!!String.fromCodePoint,qe=!!Object.fromEntries,Zt=!!String.prototype.codePointAt,qt=!!String.prototype.trimStart,Jt=!!String.prototype.trimEnd,Kt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ft=!0;try{Ft="a"===(null===(Nt=ln("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Nt?void 0:Nt[0])}catch(v){Ft=!1}var Qt,en,tn=Xt?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},nn=ze?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;o<i;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},rn=qe?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],i=i[1];t[o]=i}return t},on=Zt?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||n<=t)){var r,i=e.charCodeAt(t);return i<55296||56319<i||t+1===n||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536}},sn=qt?function(e){return e.trimStart()}:function(e){return e.replace(Ht,"")},an=Jt?function(e){return e.trimEnd()}:function(e){return e.replace(Wt,"")};function ln(e,t){return new RegExp(e,t)}en=Ft?(Qt=ln("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Qt.lastIndex=t,null!==(e=Qt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var n,r=[];;){var i=on(e,t);if(void 0===i||hn(i)||(33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(i),t+=65536<=i?2:1}return nn.apply(void 0,r)};var un=(cn.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},cn.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(wt.UNMATCHED_CLOSING_TAG,Vt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&dn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{o=this.clonePosition();this.bump(),r.push({type:bt.pound,location:Vt(o,this.clonePosition())})}}}return{val:r,err:null}},cn.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:bt.literal,value:"<"+r+"/>",location:Vt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!dn(this.char()))return this.error(wt.INVALID_TAG,Vt(t,this.clonePosition()));i=this.clonePosition();return r!==this.parseTagName()?this.error(wt.UNMATCHED_CLOSING_TAG,Vt(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:bt.tag,value:r,children:e,location:Vt(n,this.clonePosition())},err:null}:this.error(wt.INVALID_TAG,Vt(t,this.clonePosition())))}return this.error(wt.UNCLOSED_TAG,Vt(n,this.clonePosition()))}return this.error(wt.INVALID_TAG,Vt(n,this.clonePosition()))},cn.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())},cn.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=Vt(n,this.clonePosition());return{val:{type:bt.literal,value:r,location:n},err:null}},cn.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(dn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},cn.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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return nn.apply(void 0,t)},cn.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),nn(n))},cn.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(wt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(wt.EMPTY_ARGUMENT,Vt(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(wt.MALFORMED_ARGUMENT,Vt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(wt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:bt.argument,value:r,location:Vt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(wt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(wt.MALFORMED_ARGUMENT,Vt(n,this.clonePosition()))}},cn.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=en(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:Vt(e,this.clonePosition())}},cn.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(wt.EXPECT_ARGUMENT_TYPE,Vt(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=an(h.val)).length)return this.error(wt.EXPECT_ARGUMENT_STYLE,Vt(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Vt(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(r)).err)return f;var c=Vt(r,this.clonePosition());if(l&&tn(null==l?void 0:l.style,"::",0)){u=sn(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:bt.number,value:n,location:c,style:h.val},err:null};if(0===u.length)return this.error(wt.EXPECT_DATE_TIME_SKELETON,c);var d={type:_t.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Rt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.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":i.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":i.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":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.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":i.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""}),i):{}};return{val:{type:"date"===s?bt.date:bt.time,value:n,location:c,style:d},err:null}}return{val:{type:"number"===s?bt.number:"date"===s?bt.date:bt.time,value:n,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(wt.EXPECT_SELECT_ARGUMENT_OPTIONS,Vt(l,Tt({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(wt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(wt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,wt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((f=this.tryParseArgumentClose(r)).err)return f;var f=Vt(r,this.clonePosition());return"select"===s?{val:{type:bt.select,value:n,options:rn(c.val),location:f},err:null}:{val:{type:bt.plural,value:n,options:rn(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(wt.INVALID_ARGUMENT_TYPE,Vt(o,a))}},cn.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(wt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},cn.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(wt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Vt(n,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}},cn.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split($t).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(wt.INVALID_NUMBER_SKELETON,t)}return{val:{type:_t.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Gt(n):{}},err:null}},cn.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,o=[],s=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(wt.EXPECT_PLURAL_ARGUMENT_SELECTOR,wt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Vt(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?wt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:wt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?wt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:wt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Vt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;u=this.tryParseArgumentClose(d);if(u.err)return u;o.push([a,{value:c.val,location:Vt(d,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?wt.EXPECT_SELECT_ARGUMENT_SELECTOR:wt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(wt.MISSING_OTHER_CLAUSE,Vt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},cn.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}r=Vt(r,this.clonePosition());return i?Kt(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},cn.prototype.offset=function(){return this.position.offset},cn.prototype.isEOF=function(){return this.offset()===this.message.length},cn.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},cn.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=on(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},cn.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},cn.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))},cn.prototype.bumpIf=function(e){if(tn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},cn.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},cn.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},cn.prototype.bumpSpace=function(){for(;!this.isEOF()&&hn(this.char());)this.bump()},cn.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},cn);function cn(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function dn(e){return 97<=e&&e<=122||65<=e&&e<=90}function hn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function fn(e,t){t=Tt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n=new un(e,t).parse();if(n.err){e=SyntaxError(wt[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,kt(e)||Dt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else xt(e)&&At(e.style)||(Ct(e)||Mt(e))&&Ot(e.style)?delete e.style.location:Pt(e)&&n(e.children)})}(n.val),n.val}function mn(e,t){var n=t&&t.cache?t.cache:_n,r=t&&t.serializer?t.serializer:vn;return(t&&t.strategy?t.strategy:function(e,t){return yn(e,this,1===e.length?pn:gn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function pn(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function gn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function yn(e,t,n,r,i){return n.bind(t,e,r,i)}var vn=function(){return JSON.stringify(arguments)};function wn(){this.cache=Object.create(null)}wn.prototype.has=function(e){return e in this.cache},wn.prototype.get=function(e){return this.cache[e]},wn.prototype.set=function(e,t){this.cache[e]=t};var bn,_n={create:function(){return new wn}},Tn={variadic:function(e,t){return yn(e,this,gn,t.cache.create(),t.serializer)},monadic:function(e,t){return yn(e,this,pn,t.cache.create(),t.serializer)}};(Ft=bn=bn||{}).MISSING_VALUE="MISSING_VALUE",Ft.INVALID_VALUE="INVALID_VALUE",Ft.MISSING_INTL_API="MISSING_INTL_API";var Sn,En,xn,Cn,Mn,kn=(vt($n,Mn=Error),$n.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},$n),Dn=(vt(Nn,Cn=kn),Nn),Pn=(vt(Rn,xn=kn),Rn),An=(vt(Fn,En=kn),Fn);function Fn(e,t){return En.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',bn.MISSING_VALUE,t)||this}function Rn(e,t,n){return xn.call(this,'Value for "'+e+'" must be of type '+t,bn.INVALID_VALUE,n)||this}function Nn(e,t,n,r){return Cn.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',bn.INVALID_VALUE,r)||this}function $n(e,t,n){e=Mn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Ln(e,t,n,r,i,o,s){if(1===e.length&&Et(e[0]))return[{type:Sn.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Et(c))a.push({type:Sn.literal,value:c.value});else if(c.type===bt.pound)"number"==typeof o&&a.push({type:Sn.literal,value:n.getNumberFormat(t).format(o)});else{var d=c.value;if(!(i&&d in i))throw new An(d,s);var h=i[d];if(c.type===bt.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?Sn.literal:Sn.object,value:h});else if(Ct(c)){var f="string"==typeof c.style?r.date[c.style]:Ot(c.style)?c.style.parsedOptions:void 0;a.push({type:Sn.literal,value:n.getDateTimeFormat(t,f).format(h)})}else if(Mt(c))f="string"==typeof c.style?r.time[c.style]:Ot(c.style)?c.style.parsedOptions:void 0,a.push({type:Sn.literal,value:n.getDateTimeFormat(t,f).format(h)});else if(xt(c))(f="string"==typeof c.style?r.number[c.style]:At(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:Sn.literal,value:n.getNumberFormat(t,f).format(h)});else{if(Pt(c)){var m=c.children,p=c.value,d=i[p];if("function"!=typeof d)throw new Pn(p,"function",s);m=d(Ln(m,t,n,r,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?Sn.literal:Sn.object,value:e}}))}if(kt(c)){if(!(g=c.options[h]||c.options.other))throw new Dn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Ln(g.value,t,n,r,i))}else if(Dt(c)){if(!(g=c.options["="+h])){if(!Intl.PluralRules)throw new kn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',bn.MISSING_INTL_API,s);var m=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[m]||c.options.other}if(!g)throw new Dn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Ln(g.value,t,n,r,i,h-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===Sn.literal&&t.type===Sn.literal?n.value+=t.value:e.push(t),e},[])}function In(n){return{create:function(){return{has:function(e){return e in n},get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(Ft=Sn=Sn||{})[Ft.literal=0]="literal",Ft[Ft.object=1]="object";var Un=(Object.defineProperty(Yn,"defaultLocale",{get:function(){return Yn.memoizedDefaultLocale||(Yn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Yn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Yn.memoizedDefaultLocale=null,Yn.__parse=fn,Yn.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"}}},Yn);function Yn(e,t,n,r){var i,o,s=this;if(void 0===t&&(t=Yn.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===Sn.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 Ln(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Yn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Yn.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=Yn.formats,(o=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=o[t])?Tt(Tt(Tt({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=Tt(Tt({},n[t]),r[t]||{}),e},{})):n),e},Tt({},i)):i),this.locales=t,this.formatters=r&&r.formatters||{getNumberFormat:mn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,St([void 0],t)))},{cache:In((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:Tn.variadic}),getDateTimeFormat:mn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,St([void 0],t)))},{cache:In(r.dateTime),strategy:Tn.variadic}),getPluralRules:mn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,St([void 0],t)))},{cache:In(r.pluralRules),strategy:Tn.variadic})}}const zn={},jn=(t,n)=>{if(null!=n){if(n in zn&&t in zn[n])return zn[n][t];var r,i,o=ir(n);for(let e=0;e<o.length;e++){var s=(r=o[e],i=t,Hn(r)?function(e,t){if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(0<e){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(function(e){return Bn[e]||null}(r),i):null);if(s)return r=t,i=n,(s=s)&&(i in zn||(zn[i]={}),r in zn[i]||(zn[i][r]=s),s)}}};let Bn;const Gn=st({});function Hn(e){return e in Bn}function Wn(t,...n){delete zn[t],Gn.update(e=>(e[t]=gt.all([e[t]||{},...n]),e))}at([Gn],([e])=>Object.keys(e)),Gn.subscribe(e=>Bn=e);const Vn={};function Xn(e){return Vn[e]}function Zn(e){return ir(e).some(e=>{return null===(e=Xn(e))||void 0===e?void 0:e.size})}const qn={};function Jn(e){if(!Zn(e))return e in qn?qn[e]:void 0;const t=ir(e).map(e=>{var t=Xn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return qn[e]=Promise.all(t.map(([e,n])=>function(t){return Promise.all(n.map(e=>(function(e,t){Vn[e].delete(t),0===Vn[e].size&&delete Vn[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Wn(t,...e))}(e))).then(()=>Zn(e)?Jn(e):void delete qn[e]),qn[e]}function Kn(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const Qn={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const er=st(!1);let tr;const nr=st(null);function rr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function ir(e,t=Qn.fallbackLocale){e=rr(e);return t?[...new Set([...e,...rr(t)])]:e}nr.subscribe(e=>{tr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const or=nr.set;nr.set=t=>{if(function(e){if(null!=e){var t=ir(e);for(let e=0;e<t.length;e++){var n=t[e];if(Hn(n))return n}}}(t)&&Zn(t)){var{loadingDelay:n}=Qn;let e;return"undefined"!=typeof window&&null!=tr&&n?e=window.setTimeout(()=>er.set(!0),n):er.set(!0),Jn(t).then(()=>{or(t)}).finally(()=>{clearTimeout(e),er.set(!1)})}return or(t)},nr.update=e=>or(e(tr));const sr=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},ar=(e,t)=>{var{formats:n}=Qn;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},lr=sr(e=>{var{locale:t,format:n}=e,e=Kn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=ar("number",n)),new Intl.NumberFormat(t,e)}),ur=sr(e=>{var{locale:t,format:n}=e,e=Kn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=ar("date",n):0===Object.keys(e).length&&(e=ar("date","short")),new Intl.DateTimeFormat(t,e)}),cr=sr(e=>{var{locale:t,format:n}=e,e=Kn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=ar("time",n):0===Object.keys(e).length&&(e=ar("time","short")),new Intl.DateTimeFormat(t,e)}),dr=sr((e,t=tr)=>new Un(e,t,Qn.formats,{ignoreTag:Qn.ignoreTag})),hr=at([nr,Gn],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:n,locale:r=tr,default:i}=t;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=jn(e,r);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Qn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${ir(r).join('", "')}".${Zn(tr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!n)return o;let s=o;try{s=dr(o,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});at([nr],()=>(e,t)=>((e={})=>{var{locale:t=tr}=e,e=Kn(e,["locale"]);return cr(Object.assign({locale:t},e))})(t).format(e)),at([nr],()=>(e,t)=>((e={})=>{var{locale:t=tr}=e,e=Kn(e,["locale"]);return ur(Object.assign({locale:t},e))})(t).format(e)),at([nr],()=>(e,t)=>((e={})=>{var{locale:t=tr}=e,e=Kn(e,["locale"]);return lr(Object.assign({locale:t},e))})(t).format(e)),at([nr,Gn],()=>(e,t=tr)=>jn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==rt.indexOf(e)&&(t=new Qe(t),it[e]=t,rt.push(e)),it[e]}};const fr=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),mr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function pr(e){nr.set(e)}const gr={en:{tournamentsController:{500:"500 - Internal server error",showMore:"Show more",Scheduled:"Scheduled",Ongoing:"OnGoing",Finished:"Finished",loading:"Loading, please wait ...",noTournaments:"No tournaments found"}},fr:{tournamentsController:{500:"500 - erreur de serveur interne",showMore:"Afficher plus",Scheduled:"Programmé",Ongoing:"En cours",Finished:"Fini",loading:"Chargement , veuillez patienter ...",noTournaments:"Aucun tournoi trouvé"}},ro:{tournamentsController:{500:"500 - Internal server error",showMore:"Mai mult",Scheduled:"Programate",Ongoing:"In desfasurare",Finished:"Finalizate",loading:"Se incarca, asteptati ...",noTournaments:"Niciun turneu gasit"}},tr:{tournamentsController:{500:"500 - Dahili sunucu hatası",showMore:"Daha fazla",Scheduled:"Scheduledddddd",Ongoing:"OnGoingggggg",Finished:"Finisheddddddd",loading:"Yükelniyor, lütfen bekleyin ...",noTournaments:"Herhangi bir turnuva bulunamadı."}},el:{tournamentsController:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",Scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",Ongoing:"ΤΡΕΧΟΝΤΑ",Finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά"}},es:{tournamentsController:{500:"Error 500 - Error Interno del Servidor",showMore:"Ver más",Scheduled:"Rrogramado",Ongoing:"En progreso",Finished:"Acabado",loading:"Cargando ... Por favor espere ...",noTournaments:"No se encontró ningún torneo"}},pt:{tournamentsController:{500:"Erro 500 - Erro interno do servidor",showMore:"Ver mais",Scheduled:"Agendado",Ongoing:"Em progresso",Finished:"Finalizado",loading:"Carregando, por favor espere ...",noTournaments:"Nenhum torneio encontrado"}}};var yr=he(function(e,_){!function(e){var r,A=e.setTimeout,O=e.clearTimeout,F=e.XMLHttpRequest,i=e.XDomainRequest,t=e.ActiveXObject,n=e.EventSource,o=e.document,d=e.Promise,h=e.fetch,s=e.Response,f=e.TextDecoder,a=e.TextEncoder,m=e.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===o||"readyState"in o||null!=o.body||(o.readyState="loading",window.addEventListener("load",function(e){o.readyState="complete"},!1)),null==F&&null!=t&&(F=function(){return new t("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==m&&(r=h,h=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},m=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),l.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",i=this.bitsNeeded,o=this.codePoint,s=0;s<e.length;s+=1){var a=e[s];0!==i&&(a<128||191<a||!t(o<<6|63&a,i-6,n(i,o)))&&(i=0,o=65533,r+=String.fromCharCode(o)),0===i?(o=0<=a&&a<=127?(i=0,a):192<=a&&a<=223?(i=6,31&a):224<=a&&a<=239?(i=12,15&a):240<=a&&a<=247?(i=18,7&a):(i=0,65533),0===i||t(o,i,n(i,o))||(i=0,o=65533)):(i-=6,o=o<<6|63&a),0===i&&(o<=65535?r+=String.fromCharCode(o):(r+=String.fromCharCode(55296+(o-65535-1>>10)),r+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=o,r},null!=f&&null!=a&&function(){try{return"test"===(new f).decode((new a).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(f=l);var c=function(){};function R(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=c,this.onload=c,this.onerror=c,this.onreadystatechange=c,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=c}function u(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function p(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),i=i.join(": ");t[u(o)]=i}this._map=t}function N(){}function g(e){this._headers=e}function $(){}function y(){this._listeners=Object.create(null)}function v(e){A(function(){throw e},0)}function w(e){this.type=e,this.target=void 0}function L(e,t){w.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function I(e,t){w.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function U(e,t){w.call(this,e),this.error=t.error}R.prototype.open=function(e,t){this._abort(!0);var i=this,o=this._xhr,s=1,n=0;this._abort=function(e){0!==i._sendTimeout&&(O(i._sendTimeout),i._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,o.onload=c,o.onerror=c,o.onabort=c,o.onprogress=c,o.onreadystatechange=c,o.abort(),0!==n&&(O(n),n=0),e||(i.readyState=4,i.onabort(null),i.onreadystatechange())),s=0};function r(){if(1===s){var t=0,n="",r=void 0;if("contentType"in o)t=200,n="OK",r=o.contentType;else try{t=o.status,n=o.statusText,r=o.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(s=2,i.readyState=2,i.status=t,i.statusText=n,i._contentType=r,i.onreadystatechange())}}function a(){if(r(),2===s||3===s){s=3;var e="";try{e=o.responseText}catch(e){}i.readyState=3,i.responseText=e,i.onprogress()}}function l(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:c}),a(),1===s||2===s||3===s){if(s=4,0!==n&&(O(n),n=0),i.readyState=4,"load"===e)i.onload(t);else if("error"===e)i.onerror(t);else{if("abort"!==e)throw new TypeError;i.onabort(t)}i.onreadystatechange()}}var u=function(){n=A(function(){u()},500),3===o.readyState&&a()};"onload"in o&&(o.onload=function(e){l("load",e)}),"onerror"in o&&(o.onerror=function(e){l("error",e)}),"onabort"in o&&(o.onabort=function(e){l("abort",e)}),"onprogress"in o&&(o.onprogress=a),"onreadystatechange"in o&&(o.onreadystatechange=function(e){e=e,null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||l(""===o.responseText?"error":"load",e):3===o.readyState?"onprogress"in o||a():2===o.readyState&&r())}),!("contentType"in o)&&"ontimeout"in F.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),o.open(e,t,!0),"readyState"in o&&(n=A(function(){u()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(e){return this._contentType},R.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},R.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if("ontimeout"in F.prototype&&("sendAsBinary"in F.prototype||"mozAnon"in F.prototype)||null==o||null==o.readyState||"complete"===o.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=A(function(){t._sendTimeout=0,t.send()},4)}},p.prototype.get=function(e){return this._map[u(e)]},null!=F&&null==F.HEADERS_RECEIVED&&(F.HEADERS_RECEIVED=2),N.prototype.open=function(i,o,t,n,e,r,s){i.open("GET",e);var a,l=0;for(a in i.onprogress=function(){var e=i.responseText.slice(l);l+=e.length,t(e)},i.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},i.onload=function(){n(null)},i.onabort=function(){n(null)},i.onreadystatechange=function(){var e,t,n,r;i.readyState===F.HEADERS_RECEIVED&&(e=i.status,t=i.statusText,n=i.getResponseHeader("Content-Type"),r=i.getAllResponseHeaders(),o(e,t,n,new p(r)))},i.withCredentials=r,s)Object.prototype.hasOwnProperty.call(s,a)&&i.setRequestHeader(a,s[a]);return i.send(),i},g.prototype.get=function(e){return this._headers.get(e)},$.prototype.open=function(e,t,i,n,r,o,s){var a=null,l=new m,u=l.signal,c=new f;return h(r,{headers:s,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then(function(e){return a=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new g(e.headers)),new d(function(t,n){var r=function(){a.read().then(function(e){e.done?t(void 0):(e=c.decode(e.value,{stream:!0}),i(e),r())}).catch(function(e){n(e)})};r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=a&&a.cancel(),l.abort()}}},y.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){v(e)}}},y.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},y.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete n[e]:n[e]=i}},L.prototype=Object.create(w.prototype),I.prototype=Object.create(w.prototype),U.prototype=Object.create(w.prototype);function Y(e,t){return e=null==e?t:parseInt(e,10),B(e=e!=e?t:e)}function z(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){v(e)}}var j=/^text\/event\-stream(;.*)?$/i,B=function(e){return Math.min(Math.max(e,1e3),18e6)};function b(e,t){y.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(l,o,e){o=String(o);function s(e,t,n,r){var i,o;0===_&&(200===e&&null!=n&&j.test(n)?(_=1,p=Date.now(),m=d,l.readyState=1,i=new I("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),z(l,l.onopen,i)):(o="",o=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",D(),i=new I("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),z(l,l.onerror,i),console.error(o)))}function a(e){if(1===_){for(var t=-1,n=0;n<e.length;n+=1)(s=e.charCodeAt(n))!=="\n".charCodeAt(0)&&s!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?x:"")+e.slice(0,t+1);x=(-1===t?x:"")+e.slice(t+1),""!==e&&(p=Date.now(),g+=e.length);for(var i=0;i<r.length;i+=1){var o,s=r.charCodeAt(i);if(-1===C&&s==="\n".charCodeAt(0))C=0;else if(-1===C&&(C=0),s==="\r".charCodeAt(0)||s==="\n".charCodeAt(0)){if(0!==C&&(1===C&&(k=i+1),o=r.slice(M,k-1),a=r.slice(k+(k<i&&r.charCodeAt(k)===" ".charCodeAt(0)?1:0),i),"data"===o?(T+="\n",T+=a):"id"===o?S=a:"event"===o?E=a:"retry"===o?(d=Y(a,d),m=d):"heartbeatTimeout"===o&&(h=Y(a,h),0!==b&&(O(b),b=A(function(){P()},h)))),0===C){if(""!==T){f=S;var a=new L(E=""===E?"message":E,{data:T.slice(1),lastEventId:S});if(l.dispatchEvent(a),"open"===E?z(l,l.onopen,a):"message"===E?z(l,l.onmessage,a):"error"===E&&z(l,l.onerror,a),2===_)return}E=T=""}C=s==="\r".charCodeAt(0)?-1:0}else 0===C&&(M=i,C=1),1===C?s===":".charCodeAt(0)&&(k=i+1,C=2):2===C&&(C=3)}}}function u(e){var t;1!==_&&0!==_||(_=-1,0!==b&&(O(b),b=0),b=A(function(){P()},m),m=B(Math.min(16*d,2*m)),l.readyState=0,t=new U("error",{error:e}),l.dispatchEvent(t),z(l,l.onerror,t),null!=e&&console.error(e))}var t=Boolean(e.withCredentials),c=e.lastEventIdQueryParameterName||"lastEventId",d=B(1e3),h=Y(e.heartbeatTimeout,45e3),f="",m=d,p=!1,g=0,n=e.headers||{},e=e.Transport,y=G&&null==e?void 0:new R(new(null!=e?e:null!=F&&"withCredentials"in F.prototype||null==i?F:i)),v=new(null!=e&&"string"!=typeof e?e:null==y?$:N),w=void 0,b=0,_=-1,T="",S="",E="",x="",C=0,M=0,k=0,D=function(){_=2,null!=w&&(w.abort(),w=void 0),0!==b&&(O(b),b=0),l.readyState=2},P=function(){if(b=0,-1===_){p=!1,g=0,b=A(function(){P()},h),S=f,x=E=T="",C=k=M=_=0;var e=o;"data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==f&&(e=-1===(t=o.indexOf("?"))?o:o.slice(0,t+1)+o.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===c?"":e}),e+=(-1===o.indexOf("?")?"?":"&")+c+"="+encodeURIComponent(f));var t=l.withCredentials,n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);try{w=v.open(y,s,a,u,e,t,n)}catch(e){throw D(),e}}else p||null==w?(t=Math.max((p||Date.now())+h-Date.now(),1),p=!1,b=A(function(){P()},t)):(u(new Error("No activity within "+h+" milliseconds. "+(0===_?"No response received.":g+" chars received.")+" Reconnecting.")),null!=w&&(w.abort(),w=void 0))};l.url=o,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=D,P()}(this,e,t)}var G=null!=h&&null!=s&&"body"in s.prototype;(b.prototype=Object.create(y.prototype)).CONNECTING=0,b.prototype.OPEN=1,b.prototype.CLOSED=2,b.prototype.close=function(){this._close()},b.CONNECTING=0,b.OPEN=1,b.CLOSED=2,b.prototype.withCredentials=void 0;e=n;null==F||null!=n&&"withCredentials"in n.prototype||(e=b),(s=_).EventSourcePolyfill=b,s.NativeEventSource=n,s.EventSource=e}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:de:globalThis)});const vr={en:{tournamentsFilter:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished"}},fr:{tournamentsFilter:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"}},ro:{tournamentsFilter:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"In desfasurare",finished:"Terminate"}},tr:{tournamentsFilter:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş"}},el:{tournamentsFilter:{tournaments:"Τουρνουά",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ"}},es:{tournamentsFilter:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished"}},pt:{tournamentsFilter:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"}}};function wr(e,t,n){const r=e.slice();return r[13]=t[n],r[15]=n,r}function br(t){let i,n,o,r,s,e=t[3]("tournamentsFilter.tournaments")+"",a=t[0],l=[];for(let e=0;e<a.length;e+=1)l[e]=Cr(wr(t,a,e));return{c(){i=x("ul"),n=x("li"),o=C(e),r=C(":"),s=M();for(let e=0;e<l.length;e+=1)l[e].c();D(n,"class","FiltersTitle "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty")),D(n,"part","FiltersTitle "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty")),D(i,"class","FiltersList "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty")),D(i,"part","FiltersList "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){S(e,i,t),T(i,n),T(n,o),T(n,r),T(i,s);for(let e=0;e<l.length;e+=1)l[e].m(i,null)},p(t,n){if(8&n&&e!==(e=t[3]("tournamentsFilter.tournaments")+"")&&P(o,e),63&n){let e;for(a=t[0],e=0;e<a.length;e+=1){var r=wr(t,a,e);l[e]?l[e].p(r,n):(l[e]=Cr(r),l[e].c(),l[e].m(i,null))}for(;e<l.length;e+=1)l[e].d(1);l.length=a.length}},d(e){e&&E(i),p(l,e)}}}function _r(){let n,r;return{c(){n=t("svg"),r=t("path"),D(r,"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),D(n,"xmlns","http://www.w3.org/2000/svg"),D(n,"width","16"),D(n,"height","16"),D(n,"fill","currentColor"),D(n,"class","bi bi-check"),D(n,"part","bi bi-check"),D(n,"viewBox","0 0 16 16")},m(e,t){S(e,n,t),T(n,r)},d(e){e&&E(n)}}}function Tr(e){let n,r=e[3]("tournamentsFilter.scheduled")+"";return{c(){n=C(r)},m(e,t){S(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.scheduled")+"")&&P(n,r)},d(e){e&&E(n)}}}function Sr(e){let n,r=e[3]("tournamentsFilter.ongoing")+"";return{c(){n=C(r)},m(e,t){S(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.ongoing")+"")&&P(n,r)},d(e){e&&E(n)}}}function Er(e){let n,r=e[3]("tournamentsFilter.finished")+"";return{c(){n=C(r)},m(e,t){S(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.finished")+"")&&P(n,r)},d(e){e&&E(n)}}}function xr(e){let n,r=e[3]("tournamentsFilter.all")+"";return{c(){n=C(r)},m(e,t){S(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.all")+"")&&P(n,r)},d(e){e&&E(n)}}}function Cr(n){let r,i,o,s,a,l,u,c,d,h,f,m,p=(1==n[1][n[15]]||n[2]&&0==n[15])&&_r(),g="Scheduled"==n[13]&&Tr(n),y="Ongoing"==n[13]&&Sr(n),v="Finished"==n[13]&&Er(n),w="All"==n[13]&&xr(n);function b(){return n[8](n[13],n[15])}return{c(){r=x("li"),i=x("button"),p&&p.c(),o=M(),s=x("div"),g&&g.c(),a=M(),y&&y.c(),l=M(),v&&v.c(),u=M(),w&&w.c(),h=M(),D(s,"class","FilterButton "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),D(s,"part","FilterButton "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),D(i,"class",c=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),D(i,"part",d=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),D(r,"class","FiltersItem"),D(r,"part","FiltersItem")},m(e,t){S(e,r,t),T(r,i),p&&p.m(i,null),T(i,o),T(i,s),g&&g.m(s,null),T(s,a),y&&y.m(s,null),T(s,l),v&&v.m(s,null),T(s,u),w&&w.m(s,null),T(r,h),f||(m=k(r,"click",b),f=!0)},p(e,t){1==(n=e)[1][n[15]]||n[2]&&0==n[15]?p||(p=_r(),p.c(),p.m(i,o)):p&&(p.d(1),p=null),"Scheduled"==n[13]?g?g.p(n,t):(g=Tr(n),g.c(),g.m(s,a)):g&&(g.d(1),g=null),"Ongoing"==n[13]?y?y.p(n,t):(y=Sr(n),y.c(),y.m(s,l)):y&&(y.d(1),y=null),"Finished"==n[13]?v?v.p(n,t):(v=Er(n),v.c(),v.m(s,u)):v&&(v.d(1),v=null),"All"==n[13]?w?w.p(n,t):(w=xr(n),w.c(),w.m(s,null)):w&&(w.d(1),w=null),6&t&&c!==(c=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty"))&&D(i,"class",c),6&t&&d!==(d=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty"))&&D(i,"part",d)},d(e){e&&E(r),p&&p.d(),g&&g.d(),y&&y.d(),v&&v.d(),w&&w.d(),f=!1,m()}}}function Mr(e){let n,r=0<e[0].length&&br(e);return{c(){n=x("div"),r&&r.c(),this.c=v,D(n,"class","FiltersController "+(fr(e[4])?"MobileClass":"Non-MobileClass/empty")),D(n,"part","FiltersController "+(fr(e[4])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){S(e,n,t),r&&r.m(n,null)},p(e,[t]){0<e[0].length?r?r.p(e,t):(r=br(e),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:v,o:v,d(e){e&&E(n),r&&r.d()}}}function kr(e,t,n){let r;Q(e,hr,e=>n(3,r=e));let{filters:i=""}=t,{activefilters:o=""}=t,s=[],a=0,l=new Array(100),u=!0,c=window.navigator.userAgent;Object.keys(vr).forEach(e=>{Wn(e,vr[e])});const d=(e,t)=>{if(0==t)n(2,u=!0),n(1,l=new Array(a)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]});else if(n(2,u=!1),1==l[t]?(n(1,l[t]=0,l),-1==l.indexOf(1)&&n(2,u=!0)):n(1,l[t]=1,l),-1==l.indexOf(1))window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]});else{let t=[];for(let e=0;e<s.length;e++)1==l[e]&&t.push(s[e]);window.postMessage({type:"TournamentsFiltersSelected",filters:t})}};return e.$$set=e=>{"filters"in e&&n(6,i=e.filters),"activefilters"in e&&n(7,o=e.activefilters)},e.$$.update=()=>{64&e.$$.dirty&&i&&(n(0,s=i.split(",")),a=s.length),128&e.$$.dirty&&o&&(()=>{let e=o.split(",");n(1,l=new Array(a)),-1!=e.indexOf("All")?n(2,u=!0):(n(2,u=!1),e.forEach(e=>{e=s.indexOf(e);0<e&&n(1,l[e]=1,l)}))})()},[s,l,u,r,c,d,i,o,(e,t)=>d(0,t)]}customElements.get("casino-tournaments-filter-controller")||customElements.define("casino-tournaments-filter-controller",class extends c{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}ul{display:flex;gap:10px}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},kr,Mr,n,{filters:6,activefilters:7}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["filters","activefilters"]}get filters(){return this.$$.ctx[6]}set filters(e){this.$set({filters:e}),L()}get activefilters(){return this.$$.ctx[7]}set activefilters(e){this.$set({activefilters:e}),L()}});var Dr=he(function(An,e){An.exports=function(){var e;function m(){return e.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function r(e,t){for(var n=[],r=0;r<e.length;++r)n.push(t(e[r],r));return n}function c(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return Dt(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function h(e){if(null==e._isValid){var t=p(e),n=y.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function g(e){var t=d(NaN);return null!=e?c(p(t),e):p(t).userInvalidated=!0,t}var y=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},v=m.momentProperties=[],t=!1;function w(e,t){var n,r,i;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=p(t)),o(t._locale)||(e._locale=t._locale),0<v.length)for(n=0;n<v.length;n++)o(i=t[r=v[n]])||(e[r]=i);return e}function b(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,m.updateOffset(this),t=!1)}function _(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function T(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,o){var s=!0;return c(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,i),s){for(var e,t,n=[],r=0;r<arguments.length;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];n.push(e)}T(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),s=!1}return o.apply(this,arguments)},o)}var S={};function E(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),S[e]||(T(t),S[e]=!0)}function x(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var n,r=c({},e);for(n in t)f(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},c(r[n],e[n]),c(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&a(e[n])&&(r[n]=c({},r[n]));return r}function M(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var k=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function D(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},F={};function R(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(F[e]=i),t&&(F[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=$(t,e.localeData()),O[t]=O[t]||function(r){for(var e,i=r.match(P),t=0,o=i.length;t<o;t++)F[i[t]]?i[t]=F[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<o;n++)t+=x(i[n])?i[n].call(e,r):i[n];return t}}(t),O[t](e)):e.localeData().invalidDate()}function $(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;0<=n&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,--n;return e}var L={};function I(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function U(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function Y(e){var t,n,r={};for(n in e)f(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var z={};function j(e,t){z[e]=t}function B(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function H(e){var t=+e,e=0;return e=0!=t&&isFinite(t)?G(t):e}function W(t,n){return function(e){return null!=e?(X(this,t,e),m.updateOffset(this,n),this):V(this,t)}}function V(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function X(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&B(e.year())&&1===e.month()&&29===e.date()?(n=H(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ke(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z=/\d/,q=/\d\d/,J=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,re=/\d{1,3}/,ie=/\d{1,4}/,oe=/[+-]?\d{1,6}/,se=/\d+/,ae=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,ue=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,n,r){me[e]=x(n)?n:function(e,t){return e&&r?r:n}}function he(e,t){return f(me,e)?me[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var me={},pe={};function ge(e,n){var t,r=n;for("string"==typeof e&&(e=[e]),u(n)&&(r=function(e,t){t[n]=H(e)}),t=0;t<e.length;t++)pe[e[t]]=r}function ye(e,i){ge(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var ve,we=0,be=1,_e=2,Te=3,Se=4,Ee=5,xe=6,Ce=7,Me=8;function ke(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?B(e)?29:28:31-n%7%2}ve=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),R("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),j("month",8),de("M",ee),de("MM",ee,q),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[be]=H(e)-1}),ge(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[be]=r:p(n).invalidMonth=e});var De="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe=ce,Fe=ce;function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=H(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),ke(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ne(e){return null!=e?(Re(this,e),m.updateOffset(this,!0),this):V(this,"Month")}function $e(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],o=0;o<12;o++)t=d([2e3,o]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),i.sort(e),o=0;o<12;o++)n[o]=fe(n[o]),r[o]=fe(r[o]);for(o=0;o<24;o++)i[o]=fe(i[o]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Le(e){return B(e)?366:365}R("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),I("year","y"),j("year",1),de("Y",ae),de("YY",ee,q),de("YYYY",ie,K),de("YYYYY",oe,Q),de("YYYYYY",oe,Q),ge(["YYYYY","YYYYYY"],we),ge("YYYY",function(e,t){t[we]=2===e.length?m.parseTwoDigitYear(e):H(e)}),ge("YY",function(e,t){t[we]=m.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[we]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return H(e)+(68<H(e)?1900:2e3)};var Ie=W("FullYear",!0);function Ue(e,t,n,r,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function Ye(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,n){n=7+t-n;return-(7+Ye(e,0,n).getUTCDay()-t)%7+n-1}function je(e,t,n,r,i){var o,i=1+7*(t-1)+(7+n-r)%7+ze(e,r,i),i=i<=0?Le(o=e-1)+i:i>Le(e)?(o=e+1,i-Le(e)):(o=e,i);return{year:o,dayOfYear:i}}function Be(e,t,n){var r,i,o=ze(e.year(),t,n),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+Ge(i=e.year()-1,t,n):o>Ge(e.year(),t,n)?(r=o-Ge(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Ge(e,t,n){var r=ze(e,t,n),n=ze(e+1,t,n);return(Le(e)-r+n)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),j("week",5),j("isoWeek",5),de("w",ee),de("ww",ee,q),de("W",ee),de("WW",ee,q),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=H(e)});function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),de("d",ee),de("e",ee),de("E",ee),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,r){t[r]=H(e)});var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ce,qe=ce,Je=ce;function Ke(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],o=[],s=[],a=[],l=0;l<7;l++)r=d([2e3,1]).day(l),t=fe(this.weekdaysMin(r,"")),n=fe(this.weekdaysShort(r,"")),r=fe(this.weekdays(r,"")),i.push(t),o.push(n),s.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),o.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Qe),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)}),R("hmmss",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),et("a",!0),et("A",!1),I("hour","h"),j("hour",13),de("a",tt),de("A",tt),de("H",ee),de("h",ee),de("k",ee),de("HH",ee,q),de("hh",ee,q),de("kk",ee,q),de("hmm",te),de("hmmss",ne),de("Hmm",te),de("Hmmss",ne),ge(["H","HH"],Te),ge(["k","kk"],function(e,t,n){e=H(e);t[Te]=24===e?0:e}),ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ge(["h","hh"],function(e,t,n){t[Te]=H(e),p(n).bigHour=!0}),ge("hmm",function(e,t,n){var r=e.length-2;t[Te]=H(e.substr(0,r)),t[Se]=H(e.substr(r)),p(n).bigHour=!0}),ge("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Te]=H(e.substr(0,r)),t[Se]=H(e.substr(r,2)),t[Ee]=H(e.substr(i)),p(n).bigHour=!0}),ge("Hmm",function(e,t,n){var r=e.length-2;t[Te]=H(e.substr(0,r)),t[Se]=H(e.substr(r))}),ge("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Te]=H(e.substr(0,r)),t[Se]=H(e.substr(r,2)),t[Ee]=H(e.substr(i))});var nt=W("Hours",!0);var rt,it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Pe,week:{dow:0,doy:6},weekdays:We,weekdaysMin:Xe,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},ot={},st={};function at(e){return e&&e.toLowerCase().replace("_","-")}function lt(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=at(e[o]).split("-")).length,n=(n=at(e[o+1]))?n.split("-"):null;0<t;){if(r=ut(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,n)>=t-1)break;t--}o++}return rt}function ut(t){var e;if(void 0===ot[t]&&An&&An.exports)try{e=rt._abbr,On(),ct(e)}catch(e){ot[t]=null}return ot[t]}function ct(e,t){return e&&((t=o(t)?ht(e):dt(e,t))?rt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function dt(e,t){if(null===t)return delete ot[e],null;var n,r=it;if(t.abbr=e,null!=ot[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ot[e]._config;else if(null!=t.parentLocale)if(null!=ot[t.parentLocale])r=ot[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ot[e]=new M(C(r,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ct(e),ot[e]}function ht(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return rt;if(!s(e)){if(t=ut(e))return t;e=[e]}return lt(e)}function ft(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[be]<0||11<t[be]?be:t[_e]<1||t[_e]>ke(t[we],t[be])?_e:t[Te]<0||24<t[Te]||24===t[Te]&&(0!==t[Se]||0!==t[Ee]||0!==t[xe])?Te:t[Se]<0||59<t[Se]?Se:t[Ee]<0||59<t[Ee]?Ee:t[xe]<0||999<t[xe]?xe:-1,p(e)._overflowDayOfYear&&(t<we||_e<t)&&(t=_e),p(e)._overflowWeeks&&-1===t&&(t=Ce),p(e)._overflowWeekday&&-1===t&&(t=Me),p(e).overflow=t),e}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,bt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,i,o,s,a=e._i,l=mt.exec(a)||pt.exec(a);if(l){for(p(e).iso=!0,t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(l[1])){i=yt[t][0],r=!1!==yt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(l[3])){o=(l[2]||" ")+vt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=i+(o||"")+(s||""),Mt(e)}else e._isValid=!1}function St(e,t,n,r,i,o){i=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Pe.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&i.push(parseInt(o,10)),i}function Et(e){var t,n,r,i,o=bt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=St(o[4],o[3],o[2],o[5],o[6],o[7]),n=o[1],r=t,i=e,n&&Ve.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(p(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(i=o[8],t=o[9],o=o[10],i?_t[i]:t?0:((t=parseInt(o,10))-(o=t%100))/100*60+o),e._d=Ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function xt(e,t,n){return null!=e?e:null!=t?t:n}function Ct(e){var t,n,r,i,o,s,a,l,u,c,d,h,f=[];if(!e._d){for(d=e,h=new Date(m.now()),n=d._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[_e]&&null==e._a[be]&&(null!=(d=(i=e)._w).GG||null!=d.W||null!=d.E?(l=1,u=4,o=xt(d.GG,i._a[we],Be(Pt(),1,4).year),s=xt(d.W,1),((a=xt(d.E,1))<1||7<a)&&(c=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,h=Be(Pt(),l,u),o=xt(d.gg,i._a[we],h.year),s=xt(d.w,h.week),null!=d.d?((a=d.d)<0||6<a)&&(c=!0):null!=d.e?(a=d.e+l,(d.e<0||6<d.e)&&(c=!0)):a=l),s<1||s>Ge(o,l,u)?p(i)._overflowWeeks=!0:null!=c?p(i)._overflowWeekday=!0:(u=je(o,s,a,l,u),i._a[we]=u.year,i._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(r=xt(e._a[we],n[we]),(e._dayOfYear>Le(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),r=Ye(r,0,e._dayOfYear),e._a[be]=r.getUTCMonth(),e._a[_e]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=f[t]=n[t];for(;t<7;t++)e._a[t]=f[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Te]&&0===e._a[Se]&&0===e._a[Ee]&&0===e._a[xe]&&(e._nextDay=!0,e._a[Te]=0),e._d=(e._useUTC?Ye:Ue).apply(null,f),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Te]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],p(e).empty=!0;for(var t,n,r=""+e._i,i=r.length,o=0,s=$(e._f,e._locale).match(P)||[],a=0;a<s.length;a++)n=s[a],(t=(r.match(he(n,e))||[])[0])&&(0<(d=r.substr(0,r.indexOf(t))).length&&p(e).unusedInput.push(d),r=r.slice(r.indexOf(t)+t.length),o+=t.length),F[n]?(t?p(e).empty=!1:p(e).unusedTokens.push(n),c=n,h=e,null!=(d=t)&&f(pe,c)&&pe[c](d,h._a,h,c)):e._strict&&!t&&p(e).unusedTokens.push(n);p(e).charsLeftOver=i-o,0<r.length&&p(e).unusedInput.push(r),e._a[Te]<=12&&!0===p(e).bigHour&&0<e._a[Te]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Te]=(l=e._locale,u=e._a[Te],null==(i=e._meridiem)?u:null!=l.meridiemHour?l.meridiemHour(u,i):null!=l.isPM?((i=l.isPM(i))&&u<12&&(u+=12),u=i||12!==u?u:0):u),null!==(u=p(e).era)&&(e._a[we]=e._locale.erasConvertYear(u,e._a[we])),Ct(e),ft(e)}else Et(e);else Tt(e);var l,u,c,d,h}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new b(ft(t)):(i(t)?e._d=t:s(n)?function(e){var t,n,r,i,o,s,a=!1;if(0===e._f.length)return p(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)o=0,s=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Mt(t),h(t)&&(s=!0),o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));c(e,n||t)}(e):n?Mt(e):o(n=(t=e)._i)?t._d=new Date(m.now()):i(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(e){var t=wt.exec(e._i);null===t?(Tt(e),!1===e._isValid&&(delete e._isValid,Et(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:m.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):s(n)?(t._a=r(n.slice(0),function(e){return parseInt(e,10)}),Ct(t)):a(n)?function(e){var t,n;e._d||(n=void 0===(t=Y(e._i)).day?t.date:t.day,e._a=r([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Ct(e))}(t):u(n)?t._d=new Date(n):m.createFromInputFallback(t),h(e)||(e._d=null),e))}function Dt(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&l(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,(o=new b(ft(kt(o=o))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Pt(e,t,n,r){return Dt(e,t,n,r,!1)}m.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};var At=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Ot=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:g()});function Ft(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return Pt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var t=Y(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,e=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(f(e,t)&&(-1===ve.call(Rt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Rt.length;++n)if(e[Rt[n]]){if(r)return!1;parseFloat(e[Rt[n]])!==H(e[Rt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+e+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ht(),this._bubble()}function $t(e){return e instanceof Nt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function It(e,n){R(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+D(~~(e/60),2)+n+D(~~e%60,2)})}It("Z",":"),It("ZZ",""),de("Z",ue),de("ZZ",ue),ge(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yt(ue,e)});var Ut=/([\+\-]|\d\d)/gi;function Yt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ut)||["-",0,0])[1]+H(e[2]))?0:"+"===e[0]?t:-t}function zt(e,t){var n;return t._isUTC?(n=t.clone(),t=(_(e)||i(e)?e:Pt(e)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+t),m.updateOffset(n,!1),n):Pt(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function Bt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var Gt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ht=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wt(e,t){var n,r,i=e,o=null;return $t(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Gt.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:H(o[_e])*n,h:H(o[Te])*n,m:H(o[Se])*n,s:H(o[Ee])*n,ms:H(Lt(1e3*o[xe]))*n}):(o=Ht.exec(e))?(n="-"===o[1]?-1:1,i={y:Vt(o[2],n),M:Vt(o[3],n),w:Vt(o[4],n),d:Vt(o[5],n),h:Vt(o[6],n),m:Vt(o[7],n),s:Vt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=Pt(i.from),n=Pt(i.to),r=o.isValid()&&n.isValid()?(n=zt(n,o),o.isBefore(n)?r=Xt(o,n):((r=Xt(n,o)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=r.milliseconds,i.M=r.months),i=new Nt(i),$t(e)&&f(e,"_locale")&&(i._locale=e._locale),$t(e)&&f(e,"_isValid")&&(i._isValid=e._isValid),i}function Vt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Xt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Zt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(E(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,Wt(e,t),r),this}}function qt(e,t,n,r){var i=t._milliseconds,o=Lt(t._days),t=Lt(t._months);e.isValid()&&(r=null==r||r,t&&Re(e,V(e,"Month")+t*n),o&&X(e,"Date",V(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&m.updateOffset(e,o||t))}Wt.fn=Nt.prototype,Wt.invalid=function(){return Wt(NaN)};var Jt=Zt(1,"add"),ce=Zt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Qt(e){return _(e)||i(e)||Kt(e)||u(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!u(e)&&Kt(t)}).length),n&&r)||function(e){var t,n,r=a(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],i=i||f(e,n);return r&&i}(e)||null==e;var t,n,r}function en(e,t){if(e.date()<t.date())return-en(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function tn(e){return void 0===e?this._locale._abbr:(null!=(e=ht(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";te=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function nn(){return this._locale}var rn=126227808e5;function on(e,t){return(e%t+t)%t}function sn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-rn:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-rn:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function un(){for(var e=[],t=[],n=[],r=[],i=this.eras(),o=0,s=i.length;o<s;++o)t.push(fe(i[o].name)),e.push(fe(i[o].abbr)),n.push(fe(i[o].narrow)),r.push(fe(i[o].name)),r.push(fe(i[o].abbr)),r.push(fe(i[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function cn(e,t){R(0,[e,e.length],0,t)}function dn(e,t,n,r,i){var o;return null==e?Be(this,r,i).year:(t>(o=Ge(e,r,i))&&(t=o),function(e,t,n,r,i){i=je(e,t,n,r,i),i=Ye(i.year,0,i.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,r,i))}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),de("N",ln),de("NN",ln),de("NNN",ln),de("NNNN",function(e,t){return t.erasNameRegex(e)}),de("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?p(n).era=r:p(n).invalidEra=e}),de("y",se),de("yy",se),de("yyy",se),de("yyyy",se),de("yo",function(e,t){return t._eraYearOrdinalRegex||se}),ge(["y","yy","yyy","yyyy"],we),ge(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[we]=n._locale.eraYearOrdinalParse(e,i):t[we]=parseInt(e,10)}),R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),de("G",ae),de("g",ae),de("GG",ee,q),de("gg",ee,q),de("GGGG",ie,K),de("gggg",ie,K),de("GGGGG",oe,Q),de("ggggg",oe,Q),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=H(e)}),ye(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),I("quarter","Q"),j("quarter",7),de("Q",Z),ge("Q",function(e,t){t[be]=3*(H(e)-1)}),R("D",["DD",2],"Do","date"),I("date","D"),j("date",9),de("D",ee),de("DD",ee,q),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],_e),ge("Do",function(e,t){t[_e]=H(e.match(ee)[0])});ne=W("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),j("dayOfYear",4),de("DDD",re),de("DDDD",J),ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=H(e)}),R("m",["mm",2],0,"minute"),I("minute","m"),j("minute",14),de("m",ee),de("mm",ee,q),ge(["m","mm"],Se);De=W("Minutes",!1);R("s",["ss",2],0,"second"),I("second","s"),j("second",15),de("s",ee),de("ss",ee,q),ge(["s","ss"],Ee);var hn,We=W("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),j("millisecond",16),de("S",re,Z),de("SS",re,q),de("SSS",re,J),hn="SSSS";hn.length<=9;hn+="S")de(hn,se);function fn(e,t){t[xe]=H(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")ge(hn,fn);Xe=W("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");ie=b.prototype;function mn(e){return e}ie.add=Jt,ie.calendar=function(e,t){1===arguments.length&&(arguments[0]?Qt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=a(e)&&!l(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||f(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var n=e||Pt(),e=zt(n,this).startOf("day"),e=m.calendarFormat(this,e)||"sameElse",t=t&&(x(t[e])?t[e].call(this,n):t[e]);return this.format(t||this.localeData().calendar(e,this,Pt(n)))},ie.clone=function(){return new b(this)},ie.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":o=en(this,r)/12;break;case"month":o=en(this,r);break;case"quarter":o=en(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:G(o)},ie.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:sn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-on(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-on(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-on(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),this},ie.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=N(this,e),this.localeData().postformat(e)},ie.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Pt(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.fromNow=function(e){return this.from(Pt(),e)},ie.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Pt(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.toNow=function(e){return this.to(Pt(),e)},ie.get=function(e){return x(this[e=U(e)])?this[e]():this},ie.invalidAt=function(){return p(this).overflow},ie.isAfter=function(e,t){return e=_(e)?e:Pt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},ie.isBefore=function(e,t){return e=_(e)?e:Pt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},ie.isBetween=function(e,t,n,r){return e=_(e)?e:Pt(e),t=_(t)?t:Pt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},ie.isSame=function(e,t){var e=_(e)?e:Pt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},ie.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ie.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ie.isValid=function(){return h(this)},ie.lang=te,ie.locale=tn,ie.localeData=nn,ie.max=Ot,ie.min=At,ie.parsingFlags=function(){return c({},p(this))},ie.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)f(e,t)&&n.push({unit:t,priority:z[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=Y(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(x(this[e=U(e)]))return this[e](t);return this},ie.startOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:sn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=on(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=on(t,6e4);break;case"second":t=this._d.valueOf(),t-=on(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},ie.subtract=ce,ie.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ie.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ie.toDate=function(){return new Date(this.valueOf())},ie.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e;return(e=t?this.clone().utc():this).year()<0||9999<e.year()?N(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(e,"Z")):N(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ie.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ie.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ie.eraName=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},ie.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},ie.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},ie.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-m(n[r].since).year())*e+n[r].offset;return this.year()},ie.year=Ie,ie.isLeapYear=function(){return B(this.year())},ie.weekYear=function(e){return dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ie.isoWeekYear=function(e){return dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ie.quarter=ie.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ie.month=Ne,ie.daysInMonth=function(){return ke(this.year(),this.month())},ie.week=ie.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ie.isoWeek=ie.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ie.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},ie.weeksInWeekYear=function(){var e=this.localeData()._week;return Ge(this.weekYear(),e.dow,e.doy)},ie.isoWeeksInYear=function(){return Ge(this.year(),1,4)},ie.isoWeeksInISOWeekYear=function(){return Ge(this.isoWeekYear(),1,4)},ie.date=ne,ie.day=ie.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},ie.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ie.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=(t=e,e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?t:t-7)},ie.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ie.hour=ie.hours=nt,ie.minute=ie.minutes=De,ie.second=ie.seconds=We,ie.millisecond=ie.milliseconds=Xe,ie.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:jt(this);if("string"==typeof e){if(null===(e=Yt(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?qt(this,Wt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},ie.utc=function(e){return this.utcOffset(0,e)},ie.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},ie.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Yt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},ie.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ie.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ie.isLocal=function(){return!!this.isValid()&&!this._isUTC},ie.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ie.isUtc=Bt,ie.isUTC=Bt,ie.zoneAbbr=function(){return this._isUTC?"UTC":""},ie.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ie.dates=n("dates accessor is deprecated. Use date instead.",ne),ie.months=n("months accessor is deprecated. Use month instead",Ne),ie.years=n("years accessor is deprecated. Use year instead",Ie),ie.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),ie.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=kt(t))._a?(e=(t._isUTC?d:Pt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&H(e[s])!==H(t[s]))&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});K=M.prototype;function pn(e,t,n,r){var i=ht(),t=d().set(r,t);return i[n](t,e)}function gn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=pn(e,i,n,"month");return r}function yn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),u(t)&&(n=t,t=void 0),t||"");var i,o=ht(),s=e?o._week.dow:0,a=[];if(null!=n)return pn(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=pn(t,(i+s)%7,r,"day");return a}K.calendar=function(e,t,n){return x(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},K.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(e){return this._ordinal.replace("%d",e)},K.preparse=mn,K.postformat=mn,K.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return x(i)?i(e,t,n,r):i.replace(/%d/i,e)},K.pastFuture=function(e,t){return x(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},K.set=function(e){var t,n;for(n in e)f(e,n)&&(x(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},K.eras=function(e,t){for(var n,r=this._eras||ht("en")._eras,i=0,o=r.length;i<o;++i)switch("string"==typeof r[i].since&&(n=m(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=m(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},K.erasParse=function(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[o,s,a].indexOf(e))return l[r]},K.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},K.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(e){return f(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},K.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},K.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Ae.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.monthsParse=function(e,t,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,e))?i:null:-1!==(i=ve.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,e))||-1!==(i=ve.call(this._longMonthsParse,e))?i:null:-1!==(i=ve.call(this._longMonthsParse,e))||-1!==(i=ve.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},K.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||$e.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||$e.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(e){return Be(e,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?He(t,this._week.dow):e?t[e.day()]:t},K.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},K.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},K.weekdaysParse=function(e,t,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,e))||-1!==(i=ve.call(this._shortWeekdaysParse,e))||-1!==(i=ve.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,e))||-1!==(i=ve.call(this._weekdaysParse,e))||-1!==(i=ve.call(this._minWeekdaysParse,e))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,e))||-1!==(i=ve.call(this._weekdaysParse,e))||-1!==(i=ve.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},K.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},K.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ct("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===H(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=n("moment.lang is deprecated. Use moment.locale instead.",ct),m.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ht);var vn=Math.abs;function wn(e,t,n,r){n=Wt(t,n);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}oe=Sn("ms"),Q=Sn("s"),Z=Sn("m"),q=Sn("h"),re=Sn("d"),J=Sn("w"),Jt=Sn("M"),Ot=Sn("Q"),At=Sn("y");function En(e){return function(){return this.isValid()?this._data[e]:NaN}}ce=En("milliseconds"),nt=En("seconds"),De=En("minutes"),We=En("hours"),Xe=En("days"),ne=En("months"),Ie=En("years");var xn=Math.round,Cn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mn(e,t,n,r){var i=Wt(e).abs(),o=xn(i.as("s")),s=xn(i.as("m")),a=xn(i.as("h")),l=xn(i.as("d")),u=xn(i.as("M")),c=xn(i.as("w")),i=xn(i.as("y")),l=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return(l=(l=null!=n.w?l||c<=1&&["w"]||c<n.w&&["ww",c]:l)||u<=1&&["M"]||u<n.M&&["MM",u]||i<=1&&["y"]||["yy",i])[2]=t,l[3]=0<+e,l[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,l)}var kn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function Pn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a=kn(this._milliseconds)/1e3,l=kn(this._days),u=kn(this._months),c=this.asSeconds();return c?(e=G(a/60),t=G(e/60),a%=60,e%=60,n=G(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dn(this._months)!==Dn(c)?"-":"",o=Dn(this._days)!==Dn(c)?"-":"",s=Dn(this._milliseconds)!==Dn(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"}K=Nt.prototype;return K.isValid=function(){return this._isValid},K.abs=function(){var e=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),e.milliseconds=vn(e.milliseconds),e.seconds=vn(e.seconds),e.minutes=vn(e.minutes),e.hours=vn(e.hours),e.months=vn(e.months),e.years=vn(e.years),this},K.add=function(e,t){return wn(this,e,t,1)},K.subtract=function(e,t){return wn(this,e,t,-1)},K.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+_n(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},K.asMilliseconds=oe,K.asSeconds=Q,K.asMinutes=Z,K.asHours=q,K.asDays=re,K.asWeeks=J,K.asMonths=Jt,K.asQuarters=Ot,K.asYears=At,K.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*H(this._months/12):NaN},K._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*bn(Tn(n)+t),n=t=0),r.milliseconds=e%1e3,e=G(e/1e3),r.seconds=e%60,e=G(e/60),r.minutes=e%60,e=G(e/60),r.hours=e%24,t+=G(e/24),n+=e=G(_n(t)),t-=bn(Tn(e)),e=G(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},K.clone=function(){return Wt(this)},K.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},K.milliseconds=ce,K.seconds=nt,K.minutes=De,K.hours=We,K.days=Xe,K.weeks=function(){return G(this.days()/7)},K.months=ne,K.years=Ie,K.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Cn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Cn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),r=Mn(this,!n,r,t=this.localeData()),n&&(r=t.pastFuture(+this,r)),t.postformat(r)},K.toISOString=Pn,K.toString=Pn,K.toJSON=Pn,K.locale=tn,K.localeData=nn,K.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),K.lang=te,R("X",0,0,"unix"),R("x",0,0,"valueOf"),de("x",ae),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ge("x",function(e,t,n){n._d=new Date(H(e))}),m.version="2.29.1",e=Pt,m.fn=ie,m.min=function(){return Ft("isBefore",[].slice.call(arguments,0))},m.max=function(){return Ft("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=d,m.unix=function(e){return Pt(1e3*e)},m.months=function(e,t){return gn(e,t,"months")},m.isDate=i,m.locale=ct,m.invalid=g,m.duration=Wt,m.isMoment=_,m.weekdays=function(e,t,n){return yn(e,t,n,"weekdays")},m.parseZone=function(){return Pt.apply(null,arguments).parseZone()},m.localeData=ht,m.isDuration=$t,m.monthsShort=function(e,t){return gn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return yn(e,t,n,"weekdaysMin")},m.defineLocale=dt,m.updateLocale=function(e,t){var n,r;return null!=t?(r=it,null!=ot[e]&&null!=ot[e].parentLocale?ot[e].set(C(ot[e]._config,t)):(t=C(r=null!=(n=ut(e))?n._config:r,t),null==n&&(t.abbr=e),(t=new M(t)).parentLocale=ot[e],ot[e]=t),ct(e)):null!=ot[e]&&(null!=ot[e].parentLocale?(ot[e]=ot[e].parentLocale,e===ct()&&ct(e)):null!=ot[e]&&delete ot[e]),ot[e]},m.locales=function(){return k(ot)},m.weekdaysShort=function(e,t,n){return yn(e,t,n,"weekdaysShort")},m.normalizeUnits=U,m.relativeTimeRounding=function(e){return void 0===e?xn:"function"==typeof e&&(xn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Cn[e]&&(void 0===t?Cn[e]:(Cn[e]=t,"s"===e&&(Cn.ss=t-1),!0))},m.calendarFormat=function(e,t){return(t=e.diff(t,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},m.prototype=ie,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}()});const Pr={en:{tournamentsList:{nothing:"Nothing to show here."}},fr:{tournamentsList:{nothing:"Rien à montrer ici."}},ro:{tournamentsList:{nothing:"Nimic de afisat."}},tr:{tournamentsList:{nothing:"Gösterilecek."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí.."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}},Ar={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"There was an error joining the tournament - "}},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:"Inregistrare",details:"Detalii",enrolled:"Inscris",join:"Participa",joinerror:"Eroare la participarea in turneu - "}},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:"Iniciar sesión",register:"Registro",details:"Detalles",enrolled:"Registrado",join:"Unirse",joinerror:"Hubo un error al ingresar al torneo -"}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}},Or={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet counts: ",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished",startingAt:"Starting at",mostRounds:"MostRounds",betCount:"BetCount",maxWinStakeRatio:"MaxWinStakeRatio",winStakeRatio:"WinStakeRatio"}},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:"Début dans",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"}},ro:{tournamentsThumbnail:{enrolled:"Inscris",scoreCriteria:"Criteriu scor",minbet:"miza minima: ",seegames:"Vezi jocurile",here:"aici",scheduled:"Programate",ongoing:"In desfasurare",finished:"Finalizate",startingAt:"Incepe la",mostRounds:"Cele mai multe runde",betCount:"BetCount",maxWinStakeRatio:"Castig/miza",winStakeRatio:"WinStakeR"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"BAŞLAMA SAATİ:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων: ",seegames:"Μπορείε να δεις τα παιχνίδια",here:"εδώ",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",startingAt:"ΑΡΧΙΖΕΙ",mostRounds:"Οι περισσότεροι γύροιs",betCount:"Καταμέτρηση στοιχημάτων",maxWinStakeRatio:"Μέγιστος λόγος πονταρίσματος κερδών",winStakeRatio:"Κερδίστε το Στοίχημα R"}},es:{tournamentsThumbnail:{enrolled:"Registrado",scoreCriteria:"Criterios de puntuación",minbet:"La apuesta mínima cuenta: ",seegames:"Puedes ver los juegos",here:"Aqui",scheduled:"Programado",ongoing:"En progreso",finished:"Acabado",startingAt:"Comenzando en",mostRounds:"Más rondas",betCount:"Recuento de apuestas",maxWinStakeRatio:"Proporción máxima de ganancias",winStakeRatio:"proporción de victorias"}},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",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias"}}};function Fr(n){let r,i,o,s,a,l;return{c(){r=x("div"),i=C(n[12]),D(r,"class",o="Status "+n[14]),D(r,"part",s="Status "+n[14])},m(e,t){S(e,r,t),T(r,i),a||(l=b(n[17].call(null,r)),a=!0)},p(e,t){4096&t&&P(i,e[12]),16384&t&&o!==(o="Status "+e[14])&&D(r,"class",o),16384&t&&s!==(s="Status "+e[14])&&D(r,"part",s)},d(e){e&&E(r),a=!1,l()}}}function Rr(e){let n,r=e[5]&&Nr(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),S(e,n,t)},p(e,t){e[5]?r?r.p(e,t):(r=Nr(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&E(n)}}}function Nr(e){let n,r,i=e[15]("tournamentsThumbnail.enrolled")+"";return{c(){n=x("div"),r=C(i),D(n,"class","Enrolled"),D(n,"part","Enrolled")},m(e,t){S(e,n,t),T(n,r)},p(e,t){32768&t&&i!==(i=e[15]("tournamentsThumbnail.enrolled")+"")&&P(r,i)},d(e){e&&E(n)}}}function $r(n){let r,i,o,s,a;return{c(){r=x("div"),D(r,"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),D(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),g(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){S(e,r,t),s||(a=b(n[17].call(null,r)),s=!0)},p(e,t){1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&D(r,"class",i),1&t&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&D(r,"part",o)},d(e){e&&E(r),s=!1,a()}}}function Lr(n){let r,i,o,s,a;return{c(){r=x("div"),D(r,"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),D(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),g(r,"background-image","url('"+n[4]+"')")},m(e,t){S(e,r,t),s||(a=b(n[17].call(null,r)),s=!0)},p(e,t){1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&D(r,"class",i),1&t&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&D(r,"part",o),16&t&&g(r,"background-image","url('"+e[4]+"')")},d(e){e&&E(r),s=!1,a()}}}function Ir(n){let r,i,o,s,a;return{c(){r=x("div"),i=C(n[10]),D(r,"class","Date"),D(r,"part","Date")},m(e,t){S(e,r,t),T(r,i),s||(a=b(o=n[16].call(null,r,n[2])),s=!0)},p(e,t){1024&t&&P(i,e[10]),o&&f(o.update)&&4&t&&o.update.call(null,e[2])},d(e){e&&E(r),s=!1,a()}}}function Ur(n){let r,i,o,s,a,l,u,c,d,h,f,m,p,g=n[15]("tournamentsThumbnail.scoreCriteria")+"",y=n[15]("tournamentsThumbnail.seegames")+"",v=n[15]("tournamentsThumbnail.here")+"";function w(e){return"BetCount"==e[6]?zr:Yr}let b=w(n),_=b(n);return{c(){r=x("div"),i=x("p"),o=C(g),s=C(":\n "),_.c(),a=M(),l=x("div"),u=x("p"),c=C(y),d=M(),h=x("a"),f=C(v),D(i,"part","ScoreCriteriaP"),D(r,"class","ScoreCriteria"),D(r,"part","ScoreCriteria"),D(h,"part","GamesAnchor"),D(h,"href",n[9]),D(h,"target","_blank"),D(u,"part","GamesP"),D(l,"class","Games"),D(l,"part","Games")},m(e,t){S(e,r,t),T(r,i),T(i,o),T(i,s),_.m(i,null),S(e,a,t),S(e,l,t),T(l,u),T(u,c),T(u,d),T(u,h),T(h,f),m||(p=k(h,"click",n[23]),m=!0)},p(e,t){32768&t&&g!==(g=e[15]("tournamentsThumbnail.scoreCriteria")+"")&&P(o,g),b===(b=w(e))&&_?_.p(e,t):(_.d(1),_=b(e),_&&(_.c(),_.m(i,null))),32768&t&&y!==(y=e[15]("tournamentsThumbnail.seegames")+"")&&P(c,y),32768&t&&v!==(v=e[15]("tournamentsThumbnail.here")+"")&&P(f,v),512&t&&D(h,"href",e[9])},d(e){e&&E(r),_.d(),e&&E(a),e&&E(l),m=!1,p()}}}function Yr(n){let r,i,o,s;return{c(){r=x("span"),i=C(n[13]),D(r,"part","ScoreCriteriaSpan")},m(e,t){S(e,r,t),T(r,i),o||(s=b(n[18].call(null,r)),o=!0)},p(e,t){8192&t&&P(i,e[13])},d(e){e&&E(r),o=!1,s()}}}function zr(e){let n,r,i,o,s,a,l=e[15]("tournamentsThumbnail.mostRounds")+"",u=e[15]("tournamentsThumbnail.minbet")+"";return{c(){n=C(l),r=C("\n ("),i=C(u),o=C(": "),s=C(e[7]),a=C(")")},m(e,t){S(e,n,t),S(e,r,t),S(e,i,t),S(e,o,t),S(e,s,t),S(e,a,t)},p(e,t){32768&t&&l!==(l=e[15]("tournamentsThumbnail.mostRounds")+"")&&P(n,l),32768&t&&u!==(u=e[15]("tournamentsThumbnail.minbet")+"")&&P(i,u),128&t&&P(s,e[7])},d(e){e&&E(n),e&&E(r),e&&E(i),e&&E(o),e&&E(s),e&&E(a)}}}function jr(e){let n,r,i,o,s,a,l,u,c,d=e[0]&&Fr(e),h="true"==e[8]&&Rr(e);function f(e){return e[4]?Lr:$r}let m=f(e),p=m(e),g=e[2]&&Ir(e),y=e[11]&&Ur(e);return{c(){n=x("div"),d&&d.c(),r=M(),h&&h.c(),i=M(),p.c(),o=M(),s=x("div"),a=x("div"),l=C(e[1]),u=M(),g&&g.c(),c=M(),y&&y.c(),this.c=v,D(a,"class","Title"),D(a,"part","Title"),D(s,"class","Details"),D(s,"part","Details"),D(n,"class","Thumbnail"),D(n,"part","Thumbnail")},m(e,t){S(e,n,t),d&&d.m(n,null),T(n,r),h&&h.m(n,null),T(n,i),p.m(n,null),T(n,o),T(n,s),T(s,a),T(a,l),T(s,u),g&&g.m(s,null),T(s,c),y&&y.m(s,null)},p(e,[t]){e[0]?d?d.p(e,t):(d=Fr(e),d.c(),d.m(n,r)):d&&(d.d(1),d=null),"true"==e[8]?h?h.p(e,t):(h=Rr(e),h.c(),h.m(n,i)):h&&(h.d(1),h=null),m===(m=f(e))&&p?p.p(e,t):(p.d(1),p=m(e),p&&(p.c(),p.m(n,o))),2&t&&P(l,e[1]),e[2]?g?g.p(e,t):(g=Ir(e),g.c(),g.m(s,c)):g&&(g.d(1),g=null),e[11]?y?y.p(e,t):(y=Ur(e),y.c(),y.m(s,null)):y&&(y.d(1),y=null)},i:v,o:v,d(e){e&&E(n),d&&d.d(),h&&h.d(),p.d(),g&&g.d(),y&&y.d()}}}function Br(e,t,i){let o;Q(e,hr,e=>i(15,o=e));let{session:n=""}=t,{userid:r=""}=t,{title:s=""}=t,{startdate:a=""}=t,{status:l=""}=t,{tourid:u=""}=t,{thumbnail:c=""}=t,{userenrolled:d=""}=t,{scorecriteria:h=""}=t,{minbetcount:f=""}=t,{showenrolled:m="false"}=t,{gameurl:p=""}=t,{lang:g="en"}=t,y="",v=!1,w="",b="",_="";Object.keys(Or).forEach(e=>{Wn(e,Or[e])});const T=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&i(11,v=!0),e.data.type==`TournamentStatus_${u}`&&i(0,l=e.data.status))},S=()=>{let e=new Date(a),t=new Intl.DateTimeFormat(g,{month:"long"}).format(e),n=e.getDate(),r=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});i(10,y=`${n} ${t}, `+o("tournamentsThumbnail.startingAt")+` ${r}`)},E=()=>{"Unstarted"==l&&(i(12,w=o("tournamentsThumbnail.scheduled")),i(14,_="StatusUnstarted")),"Running"==l&&(i(12,w=o("tournamentsThumbnail.ongoing")),i(14,_="StatusRunning")),"Closed"!=l&&"Closing"!=l||i(12,w=o("tournamentsThumbnail.finished")),"Closed"==l&&i(14,_="StatusClosed"),"Closing"==l&&i(14,_="StatusClosing")},x=()=>{"BetCount"==h&&i(13,b=o("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==h&&i(13,b=o("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==h&&i(13,b=o("tournamentsThumbnail.winStakeRatio"))},C=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};return ee(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),e.$$set=e=>{"session"in e&&i(20,n=e.session),"userid"in e&&i(21,r=e.userid),"title"in e&&i(1,s=e.title),"startdate"in e&&i(2,a=e.startdate),"status"in e&&i(0,l=e.status),"tourid"in e&&i(3,u=e.tourid),"thumbnail"in e&&i(4,c=e.thumbnail),"userenrolled"in e&&i(5,d=e.userenrolled),"scorecriteria"in e&&i(6,h=e.scorecriteria),"minbetcount"in e&&i(7,f=e.minbetcount),"showenrolled"in e&&i(8,m=e.showenrolled),"gameurl"in e&&i(9,p=e.gameurl),"lang"in e&&i(22,g=e.lang)},e.$$.update=()=>{1048576&e.$$.dirty&&n&&(0<n.length&&"false"!=n?i(11,v=!0):i(11,v=!1)),1&e.$$.dirty&&l&&E(),4&e.$$.dirty&&a&&S(),64&e.$$.dirty&&h&&x()},[l,s,a,u,c,d,h,f,m,p,y,v,w,b,_,o,S,E,x,C,n,r,g,()=>C()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends c{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}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>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Br,jr,n,{session:20,userid:21,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:6,minbetcount:7,showenrolled:8,gameurl:9,lang:22}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang"]}get session(){return this.$$.ctx[20]}set session(e){this.$set({session:e}),L()}get userid(){return this.$$.ctx[21]}set userid(e){this.$set({userid:e}),L()}get title(){return this.$$.ctx[1]}set title(e){this.$set({title:e}),L()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$set({startdate:e}),L()}get status(){return this.$$.ctx[0]}set status(e){this.$set({status:e}),L()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$set({tourid:e}),L()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$set({thumbnail:e}),L()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$set({userenrolled:e}),L()}get scorecriteria(){return this.$$.ctx[6]}set scorecriteria(e){this.$set({scorecriteria:e}),L()}get minbetcount(){return this.$$.ctx[7]}set minbetcount(e){this.$set({minbetcount:e}),L()}get showenrolled(){return this.$$.ctx[8]}set showenrolled(e){this.$set({showenrolled:e}),L()}get gameurl(){return this.$$.ctx[9]}set gameurl(e){this.$set({gameurl:e}),L()}get lang(){return this.$$.ctx[22]}set lang(e){this.$set({lang:e}),L()}});const Gr={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Incepe in ",left:"ramase",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:"Acabado",starting:"Comenzando en",left:"Abandonado",minutes:"Minutos",hours:"Horas",days:"Dias"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function Hr(n){let r,i,o,s,a,l,u,c,d,h,f=n[8](n[0])+"",m=n[8](n[1])+"";function p(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Xr:0<e[4]?Vr:Wr}let g=p(n),y=g(n);return{c(){r=x("div"),i=x("div"),o=C(f),s=M(),a=x("div"),l=C(m),u=M(),c=x("div"),y.c(),D(i,"class","StartDate"),D(i,"part","StartDate"),D(a,"class","EndDate"),D(a,"part","EndDate"),D(r,"class","TournamentDates"),D(r,"part","TournamentDates"),D(c,"class","ProgressBar"),D(c,"part","ProgressBar")},m(e,t){S(e,r,t),T(r,i),T(i,o),T(r,s),T(r,a),T(a,l),S(e,u,t),S(e,c,t),y.m(c,null),d||(h=b(n[7].call(null,c)),d=!0)},p(e,t){1&t&&f!==(f=e[8](e[0])+"")&&P(o,f),2&t&&m!==(m=e[8](e[1])+"")&&P(l,m),g===(g=p(e))&&y?y.p(e,t):(y.d(1),y=g(e),y&&(y.c(),y.m(c,null)))},d(e){e&&E(r),e&&E(u),e&&E(c),y.d(),d=!1,h()}}}function Wr(e){let n,r,i,o=0<e[3]&&Zr(e);return{c(){n=x("div"),r=M(),o&&o.c(),i=l(),D(n,"class","ProgressBarFill"),D(n,"part","ProgressBarFill"),g(n,"width",e[6]()+"%")},m(e,t){S(e,n,t),S(e,r,t),o&&o.m(e,t),S(e,i,t)},p(e,t){64&t&&g(n,"width",e[6]()+"%"),0<e[3]?o?o.p(e,t):(o=Zr(e),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(e){e&&E(n),e&&E(r),o&&o.d(e),e&&E(i)}}}function Vr(e){let n,r,i,o,s,a,l=e[5]("tournamentsDuration.starting")+"",u=e[9](e[4])+"";return{c(){n=x("div"),r=M(),i=x("div"),o=C(l),s=M(),a=C(u),D(n,"class","ProgressBarFillStarting"),D(n,"part","ProgressBarFillStarting"),D(i,"class","Remaining"),D(i,"part","Remaining")},m(e,t){S(e,n,t),S(e,r,t),S(e,i,t),T(i,o),T(i,s),T(i,a)},p(e,t){32&t&&l!==(l=e[5]("tournamentsDuration.starting")+"")&&P(o,l),16&t&&u!==(u=e[9](e[4])+"")&&P(a,u)},d(e){e&&E(n),e&&E(r),e&&E(i)}}}function Xr(e){let n,r,i,o,s=e[5]("tournamentsDuration.finished")+"";return{c(){n=x("div"),r=M(),i=x("div"),o=C(s),D(n,"class","ProgressBarFillEnd"),D(n,"part","ProgressBarFillEnd"),D(i,"class","Finished"),D(i,"part","Finished")},m(e,t){S(e,n,t),S(e,r,t),S(e,i,t),T(i,o)},p(e,t){32&t&&s!==(s=e[5]("tournamentsDuration.finished")+"")&&P(o,s)},d(e){e&&E(n),e&&E(r),e&&E(i)}}}function Zr(e){let n,r,i,o,s=e[9](e[3])+"",a=e[5]("tournamentsDuration.left")+"";return{c(){n=x("div"),r=C(s),i=M(),o=C(a),D(n,"class","Remaining"),D(n,"part","Remaining")},m(e,t){S(e,n,t),T(n,r),T(n,i),T(n,o)},p(e,t){8&t&&s!==(s=e[9](e[3])+"")&&P(r,s),32&t&&a!==(a=e[5]("tournamentsDuration.left")+"")&&P(o,a)},d(e){e&&E(n)}}}function qr(e){let n,r=e[0]&&e[1]&&Hr(e);return{c(){n=x("div"),r&&r.c(),this.c=v,D(n,"class","TournamentDuration"),D(n,"part","TournamentDuration")},m(e,t){S(e,n,t),r&&r.m(n,null)},p(e,[t]){e[0]&&e[1]?r?r.p(e,t):(r=Hr(e),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:v,o:v,d(e){e&&E(n),r&&r.d()}}}function Jr(e,t,n){let r,i;Q(e,hr,e=>n(5,i=e));let{startdate:o=""}=t,{enddate:s=""}=t,{status:a=""}=t,{lang:l="en"}=t,u="",c="";Object.keys(Gr).forEach(e=>{Wn(e,Gr[e])});const d=e=>new Date(e).getTime(),h=(e,t)=>(d(t)-d(e))/6e4,f=new Date,m=()=>{n(3,u=h(f,s)),n(4,c=h(f,o))},p=e=>{var t=(e,t)=>e+" "+i(t);return e<60?t(Math.ceil(e),"tournamentsDuration.minutes"):e<1440?t(Math.ceil(e/60),"tournamentsDuration.hours"):t(Math.ceil(e/1440),"tournamentsDuration.days")};return e.$$set=e=>{"startdate"in e&&n(0,o=e.startdate),"enddate"in e&&n(1,s=e.enddate),"status"in e&&n(2,a=e.status),"lang"in e&&n(10,l=e.lang)},e.$$.update=()=>{11&e.$$.dirty&&n(6,r=()=>{if(u<=0)return 100;var e=h(o,s),t=100/e;return Math.floor((e-u)*t)}),11&e.$$.dirty&&o&&s&&m()&&p(u)},[o,s,a,u,c,i,r,m,e=>{let t=new Date(e),n=new Intl.DateTimeFormat(l,{month:"long"}).format(t);return`${t.getDate()} ${n}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${t.getUTCFullYear()}`},p,l]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends c{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>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Jr,qr,n,{startdate:0,enddate:1,status:2,lang:10}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$set({startdate:e}),L()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$set({enddate:e}),L()}get status(){return this.$$.ctx[2]}set status(e){this.$set({status:e}),L()}get lang(){return this.$$.ctx[10]}set lang(e){this.$set({lang:e}),L()}});const Kr={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Niciun premiu disponibil"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis"}}};function Qr(e,t,n){const r=e.slice();return r[4]=t[n],r[6]=n,r}function ei(e,t,n){const r=e.slice();return r[7]=t[n],r[9]=n,r}function ti(t){let r,i=t[0],o=[];for(let e=0;e<i.length;e+=1)o[e]=ii(Qr(t,i,e));let s=null;return i.length||(s=ni(t)),{c(){r=x("div");for(let e=0;e<o.length;e+=1)o[e].c();s&&s.c(),D(r,"class","Prizes"),D(r,"part","Prizes")},m(e,t){S(e,r,t);for(let e=0;e<o.length;e+=1)o[e].m(r,null);s&&s.m(r,null)},p(t,n){if(3&n){let e;for(i=t[0],e=0;e<i.length;e+=1){const s=Qr(t,i,e);o[e]?o[e].p(s,n):(o[e]=ii(s),o[e].c(),o[e].m(r,null))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):(s=ni(t),s.c(),s.m(r,null))}},d(e){e&&E(r),p(o,e),s&&s.d()}}}function ni(e){let n,r,i=e[1]("tournamentsPrizes.noprizes")+"";return{c(){n=x("p"),r=C(i)},m(e,t){S(e,n,t),T(n,r)},p(e,t){2&t&&i!==(i=e[1]("tournamentsPrizes.noprizes")+"")&&P(r,i)},d(e){e&&E(n)}}}function ri(e){let n,r,i,o,s,a,l,u=e[4].rank+e[9]+"",c=e[4].name+"";return{c(){n=x("div"),r=x("p"),i=x("span"),o=C(u),s=M(),a=C(c),l=M(),D(i,"class","PrizeRank"),D(i,"part","PrizeRank"),D(r,"class","PrizeText"),D(r,"part","PrizeText"),D(n,"class","Prize Prize"+e[6]),D(n,"part","Prize Prize"+e[6])},m(e,t){S(e,n,t),T(n,r),T(r,i),T(i,o),T(r,s),T(r,a),T(n,l)},p(e,t){1&t&&u!==(u=e[4].rank+e[9]+"")&&P(o,u),1&t&&c!==(c=e[4].name+"")&&P(a,c)},d(e){e&&E(n)}}}function ii(t){let i,o={length:t[4].count},s=[];for(let e=0;e<o.length;e+=1)s[e]=ri(ei(t,o,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();i=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);S(t,i,n)},p(t,n){if(1&n){let e;for(o={length:t[4].count},e=0;e<o.length;e+=1){var r=ei(t,o,e);s[e]?s[e].p(r,n):(s[e]=ri(r),s[e].c(),s[e].m(i.parentNode,i))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length}},d(e){p(s,e),e&&E(i)}}}function oi(e){let n,r,i,o,s,a,l,u,c,d,h=e[1]("tournamentsPrizes.prizes")+"",f=e[0]&&ti(e);return{c(){n=x("div"),r=t("svg"),i=t("defs"),o=t("style"),s=C(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=t("path"),l=M(),u=x("p"),c=C(h),d=M(),f&&f.c(),this.c=v,D(a,"class","a"),D(a,"part","a TournamentPrizesSvgA"),D(a,"d","M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z"),D(a,"transform","translate(-5.999 -9.76)"),D(r,"part","TournamentPrizesSvg"),D(r,"xmlns","http://www.w3.org/2000/svg"),D(r,"width","30"),D(r,"height","27.454"),D(r,"viewBox","0 0 30 27.454"),D(u,"class","PrizesTitle"),D(u,"part","PrizesTitle"),D(n,"class","TournamentPrizes"),D(n,"part","TournamentPrizes")},m(e,t){S(e,n,t),T(n,r),T(r,i),T(i,o),T(o,s),T(r,a),T(n,l),T(n,u),T(u,c),T(n,d),f&&f.m(n,null)},p(e,[t]){2&t&&h!==(h=e[1]("tournamentsPrizes.prizes")+"")&&P(c,h),e[0]?f?f.p(e,t):(f=ti(e),f.c(),f.m(n,null)):f&&(f.d(1),f=null)},i:v,o:v,d(e){e&&E(n),f&&f.d()}}}function si(e,t,n){let r;Q(e,hr,e=>n(1,r=e));let i,{tourid:o=""}=t;Object.keys(Kr).forEach(e=>{Wn(e,Kr[e])});const s=e=>{e.data&&e.data.type==`TournamentPrizes_${o}`&&n(0,i=e.data.prizes)};return ee(()=>(window.addEventListener("message",s,!1),()=>{window.removeEventListener("message",s)})),e.$$set=e=>{"tourid"in e&&n(2,o=e.tourid)},[i,r,o]}function ai(e,t,n){const r=e.slice();return r[37]=t[n],r[39]=n,r}function li(n){let i,r,o,s,a,l,u,c,d=n[0],h=[];for(let e=0;e<d.length;e+=1)h[e]=ui(ai(n,d,e));return{c(){i=x("div"),i.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',r=M(),o=x("main"),s=x("div");for(let e=0;e<h.length;e+=1)h[e].c();a=M(),l=x("div"),l.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',D(i,"class","SliderNavButton"),D(i,"part","SliderNavButton"),e(i,"disabled",n[6]),D(s,"class","items"),D(s,"part","items"),g(s,"transform","translateX("+n[1]+"px)"),D(l,"class","SliderNavButton"),D(l,"part","SliderNavButton"),e(l,"disabled",n[7])},m(e,t){S(e,i,t),S(e,r,t),S(e,o,t),T(o,s);for(let e=0;e<h.length;e+=1)h[e].m(s,null);n[21](s),S(e,a,t),S(e,l,t),u||(c=[k(i,"click",n[17]),k(l,"click",n[22])],u=!0)},p(t,n){if(64&n[0]&&e(i,"disabled",t[6]),2841&n[0]){let e;for(d=t[0],e=0;e<d.length;e+=1){var r=ai(t,d,e);h[e]?h[e].p(r,n):(h[e]=ui(r),h[e].c(),h[e].m(s,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=d.length}2&n[0]&&g(s,"transform","translateX("+t[1]+"px)"),128&n[0]&&e(l,"disabled",t[7])},d(e){e&&E(i),e&&E(r),e&&E(o),p(h,e),n[21](null),e&&E(a),e&&E(l),u=!1,w(c)}}}function ui(n){let r,i,o,s,a,l,u,c,d,h,f,m,p;function g(){return n[18](n[37])}function y(){return n[19](n[39])}return{c(){r=x("div"),i=x("span"),o=C("Play now"),l=M(),u=x("img"),f=M(),D(i,"class",s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":"")),D(i,"part",a="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":"")),u.src!==(c=n[37].thumbnail)&&D(u,"src",c),D(u,"width","132px"),D(u,"height","100px"),D(u,"alt",d=n[37].name),D(u,"title",h=n[37].name),D(r,"class","item"),D(r,"part","item")},m(e,t){S(e,r,t),T(r,i),T(i,o),T(r,l),T(r,u),T(r,f),m||(p=[k(r,"click",g),k(r,"mouseenter",y),k(r,"mouseleave",n[20])],m=!0)},p(e,t){n=e,24&t[0]&&s!==(s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&D(i,"class",s),24&t[0]&&a!==(a="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&D(i,"part",a),1&t[0]&&u.src!==(c=n[37].thumbnail)&&D(u,"src",c),1&t[0]&&d!==(d=n[37].name)&&D(u,"alt",d),1&t[0]&&h!==(h=n[37].name)&&D(u,"title",h)},d(e){e&&E(r),m=!1,w(p)}}}function ci(n){let r,i=n[0]&&li(n);return{c(){r=x("div"),i&&i.c(),this.c=v,D(r,"class","TournamentsGamesSlider"),D(r,"part","TournamentsGamesSlider")},m(e,t){S(e,r,t),i&&i.m(r,null),n[23](r)},p(e,t){e[0]?i?i.p(e,t):(i=li(e),i.c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&E(r),i&&i.d(),n[23](null)}}}function di(e,t,n){let r,i,o,s,a,l,{tournamenturl:u=""}=t,{scrollby:c="3"}=t,{pagfactor:d="175"}=t,{lang:h=""}=t,f=window.navigator.userAgent,m=[],p=0,g=null,y=null,v=!1,w=0;const b=e=>{n(3,v=!0),n(4,a=e)},_=()=>{n(3,v=!1),n(4,a=-1)},T=e=>{e=(e.touches||e.originalEvent.touches)[0];g=e.clientX,y=e.clientY},S=e=>{var t;g&&y&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=g-t,e=y-e,Math.abs(t)>Math.abs(e)&&E(0<t?1:-1),g=null,y=null)},E=e=>{0<e&&!i?(n(1,p-=o),n(1,p=p<w?w:p)):e<0&&!r&&(n(1,p+=o),n(1,p=0<p?0:p))},x=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return ee(()=>(o=parseInt(c,10)*parseInt(d,10),()=>{s.removeEventListener("touchstart",T),s.removeEventListener("touchmove",S)})),e.$$set=e=>{"tournamenturl"in e&&n(13,u=e.tournamenturl),"scrollby"in e&&n(14,c=e.scrollby),"pagfactor"in e&&n(12,d=e.pagfactor),"lang"in e&&n(15,h=e.lang)},e.$$.update=()=>{2&e.$$.dirty[0]&&n(6,r=0===p),65538&e.$$.dirty[0]&&n(7,i=p<=w),8192&e.$$.dirty[0]&&u&&(()=>{let e=new URL(u),t=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${p})`),e.searchParams.append("fields","games(id,name,thumbnail)"),e.searchParams.append("language",h),e.searchParams.append("platform",mr(f)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{n(0,m=e.item.games.items),e.item.games.total})})(),4&e.$$.dirty[0]&&s&&(s.addEventListener("touchstart",T,{passive:!0}),s.addEventListener("touchmove",S,{passive:!0})),1&e.$$.dirty[0]&&m.length&&setTimeout(()=>{n(16,w=-1*(l.scrollWidth-l.clientWidth)),n(12,d=new String(l.scrollWidth/m.length)),o=parseInt(c,10)*parseFloat(d,2).toFixed(2)},1e3)},n(1,p=0),[m,p,s,v,a,l,r,i,b,_,E,x,d,u,c,h,w,()=>E(-1),e=>x(e),e=>b(e),()=>_(),function(e){F[e?"unshift":"push"](()=>{l=e,n(5,l)})},()=>E(1),function(e){F[e?"unshift":"push"](()=>{s=e,n(2,s)})}]}function hi(e){let n,r,i,o,s,a,l,u,c,d=e[9]&&mi(e);function h(e){return e[9]?"Closed"!=e[17]&&"Closing"!=e[17]?yi:"true"==e[3]?gi:void 0:vi}let f=h(e),m=f&&f(e),p=e[12]&&xi(e),g="true"==e[4]&&Ci(e);return{c(){n=x("div"),r=x("casino-tournaments-thumbnail"),i=M(),d&&d.c(),o=M(),s=x("div"),m&&m.c(),a=M(),p&&p.c(),l=M(),g&&g.c(),y(r,"session",e[0]),y(r,"userid",e[1]),y(r,"title",e[14]),y(r,"status",e[17]),y(r,"startdate",e[15]),y(r,"tourid",e[18]),y(r,"scorecriteria",e[21]),y(r,"minbetcount",e[22]),y(r,"thumbnail",e[19]),y(r,"userenrolled",e[20]),y(r,"showenrolled",e[5]),y(r,"gameurl",e[24]),y(r,"lang",e[8]),y(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),D(s,"class","TournamentButtons"),D(s,"part","TournamentButtons"),D(n,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")),D(n,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){S(e,n,t),T(n,r),T(n,i),d&&d.m(n,null),T(n,o),T(n,s),m&&m.m(s,null),T(n,a),p&&p.m(n,null),T(n,l),g&&g.m(n,null)},p(e,t){1&t[0]&&y(r,"session",e[0]),2&t[0]&&y(r,"userid",e[1]),16384&t[0]&&y(r,"title",e[14]),131072&t[0]&&y(r,"status",e[17]),32768&t[0]&&y(r,"startdate",e[15]),262144&t[0]&&y(r,"tourid",e[18]),2097152&t[0]&&y(r,"scorecriteria",e[21]),4194304&t[0]&&y(r,"minbetcount",e[22]),524288&t[0]&&y(r,"thumbnail",e[19]),1048576&t[0]&&y(r,"userenrolled",e[20]),32&t[0]&&y(r,"showenrolled",e[5]),16777216&t[0]&&y(r,"gameurl",e[24]),256&t[0]&&y(r,"lang",e[8]),e[9]?d?d.p(e,t):(d=mi(e),d.c(),d.m(n,o)):d&&(d.d(1),d=null),f===(f=h(e))&&m?m.p(e,t):(m&&m.d(1),m=f&&f(e),m&&(m.c(),m.m(s,null))),e[12]?p?p.p(e,t):(p=xi(e),p.c(),p.m(n,l)):p&&(p.d(1),p=null),"true"==e[4]?g?g.p(e,t):(g=Ci(e),g.c(),g.m(n,null)):g&&(g.d(1),g=null),33554624&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))&&D(n,"class",u),33554624&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))&&D(n,"part",c)},d(e){e&&E(n),d&&d.d(),m&&m.d(),p&&p.d(),g&&g.d()}}}function fi(e){let n,r,i,o;return{c(){n=x("div"),r=x("div"),r.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>',D(r,"class","ph-item"),D(r,"part","ph-item"),D(n,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")),D(n,"part",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){S(e,n,t),T(n,r)},p(e,t){33554624&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))&&D(n,"class",i),33554624&t[0]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn")+" "+(e[25]?"elementToFadeOut":"elementToFadeIn"))&&D(n,"part",o)},d(e){e&&E(n)}}}function mi(e){let n,r,i=e[18]&&pi(e);return{c(){i&&i.c(),n=M(),r=x("casino-tournaments-thumbnail-duration"),y(r,"status",e[17]),y(r,"startdate",e[15]),y(r,"lang",e[8]),y(r,"enddate",e[16]),y(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),S(e,n,t),S(e,r,t)},p(e,t){e[18]?i?i.p(e,t):(i=pi(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),131072&t[0]&&y(r,"status",e[17]),32768&t[0]&&y(r,"startdate",e[15]),256&t[0]&&y(r,"lang",e[8]),65536&t[0]&&y(r,"enddate",e[16])},d(e){i&&i.d(e),e&&E(n),e&&E(r)}}}function pi(n){let r,i,o,s;return{c(){r=x("casino-tournaments-thumbnail-prizes"),y(r,"tourid",n[18]),y(r,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank")},m(e,t){S(e,r,t),o||(s=b(i=n[31].call(null,r,n[18])),o=!0)},p(e,t){262144&t[0]&&y(r,"tourid",e[18]),i&&f(i.update)&&262144&t[0]&&i.update.call(null,e[18])},d(e){e&&E(r),o=!1,s()}}}function gi(n){let r,i,o,s,a=n[26]("tournamentsThController.details")+"";return{c(){r=x("button"),i=C(a),D(r,"class","DetailsLargeButton"),D(r,"part","DetailsLargeButton")},m(e,t){S(e,r,t),T(r,i),o||(s=k(r,"click",n[44]),o=!0)},p(e,t){67108864&t[0]&&a!==(a=e[26]("tournamentsThController.details")+"")&&P(i,a)},d(e){e&&E(r),o=!1,s()}}}function yi(e){let n,r,i="true"==e[3]&&wi(e);function o(e){return 1==e[20]?_i:bi}let s=o(e),a=s(e);return{c(){i&&i.c(),n=M(),a.c(),r=l()},m(e,t){i&&i.m(e,t),S(e,n,t),a.m(e,t),S(e,r,t)},p(e,t){"true"==e[3]?i?i.p(e,t):(i=wi(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),s===(s=o(e))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(r.parentNode,r)))},d(e){i&&i.d(e),e&&E(n),a.d(e),e&&E(r)}}}function vi(n){let r,i,o,s,a,l,u,c=n[26]("tournamentsThController.login")+"",d=n[26]("tournamentsThController.register")+"";return{c(){r=x("button"),i=C(c),o=M(),s=x("button"),a=C(d),D(r,"class","LoginButton"),D(r,"part","LoginButton"),D(s,"class","RegisterButton"),D(s,"part","RegisterButton")},m(e,t){S(e,r,t),T(r,i),S(e,o,t),S(e,s,t),T(s,a),l||(u=[k(r,"click",n[40]),k(s,"click",n[41])],l=!0)},p(e,t){67108864&t[0]&&c!==(c=e[26]("tournamentsThController.login")+"")&&P(i,c),67108864&t[0]&&d!==(d=e[26]("tournamentsThController.register")+"")&&P(a,d)},d(e){e&&E(r),e&&E(o),e&&E(s),l=!1,w(u)}}}function wi(n){let r,i,o,s,a=n[26]("tournamentsThController.details")+"";return{c(){r=x("button"),i=C(a),D(r,"class","DetailsButton"),D(r,"part","DetailsButton")},m(e,t){S(e,r,t),T(r,i),o||(s=k(r,"click",n[42]),o=!0)},p(e,t){67108864&t[0]&&a!==(a=e[26]("tournamentsThController.details")+"")&&P(i,a)},d(e){e&&E(r),o=!1,s()}}}function bi(n){let r,i,o,s,a;function l(e){return 1==e[11]?Si:Ti}let u=l(n),c=u(n);return{c(){r=x("button"),c.c(),D(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),D(r,"part",o="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[12]},m(e,t){S(e,r,t),c.m(r,null),s||(a=k(r,"click",n[43]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),c=u(e),c&&(c.c(),c.m(r,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&D(r,"class",i),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&D(r,"part",o),4096&t[0]&&(r.disabled=e[12])},d(e){e&&E(r),c.d(),s=!1,a()}}}function _i(e){let n,r="true"==e[3]&&Ei(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),S(e,n,t)},p(e,t){"true"==e[3]?r?r.p(e,t):(r=Ei(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&E(n)}}}function Ti(e){let n,r,i,o,s,a,l,u,c,d=e[26]("tournamentsThController.join")+"";return{c(){n=x("span"),r=C(d),i=M(),o=t("svg"),s=t("defs"),a=t("style"),l=C(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("g"),c=t("path"),D(n,"part","JoinButtonSpan"),D(c,"class","a"),D(c,"part","a JoinButtonSvgA"),D(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),D(c,"transform","translate(26 26) rotate(180)"),D(u,"transform","translate(26 26) rotate(180)"),D(o,"part","JoinButtonSvg"),D(o,"xmlns","http://www.w3.org/2000/svg"),D(o,"width","26"),D(o,"height","26"),D(o,"viewBox","0 0 26 26")},m(e,t){S(e,n,t),T(n,r),S(e,i,t),S(e,o,t),T(o,s),T(s,a),T(a,l),T(o,u),T(u,c)},p(e,t){67108864&t[0]&&d!==(d=e[26]("tournamentsThController.join")+"")&&P(r,d)},d(e){e&&E(n),e&&E(i),e&&E(o)}}}function Si(e){let n,r;return{c(){n=t("svg"),r=t("circle"),D(r,"cx","20"),D(r,"cy","20"),D(r,"r","18"),D(n,"class","spinner"),D(n,"part","spinner")},m(e,t){S(e,n,t),T(n,r)},p:v,d(e){e&&E(n)}}}function Ei(e){let n,r,i=e[26]("tournamentsThController.enrolled")+"";return{c(){n=x("button"),r=C(i),D(n,"class","EnrolledButton"),D(n,"part","EnrolledButton"),n.disabled=!0},m(e,t){S(e,n,t),T(n,r)},p(e,t){67108864&t[0]&&i!==(i=e[26]("tournamentsThController.enrolled")+"")&&P(r,i)},d(e){e&&E(n)}}}function xi(e){let n,r,i,o,s=e[26]("tournamentsThController.joinerror")+"";return{c(){n=x("span"),r=C(s),i=M(),o=C(e[13]),D(n,"class","ErrorText"),D(n,"part","ErrorText")},m(e,t){S(e,n,t),T(n,r),T(n,i),T(n,o)},p(e,t){67108864&t[0]&&s!==(s=e[26]("tournamentsThController.joinerror")+"")&&P(r,s),8192&t[0]&&P(o,e[13])},d(e){e&&E(n)}}}function Ci(e){let n;return{c(){n=x("casino-tournaments-thumbnail-games-slider"),y(n,"tournamenturl",e[2]),y(n,"lang",e[8]),y(n,"scrollby","2"),y(n,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){S(e,n,t)},p(e,t){4&t[0]&&y(n,"tournamenturl",e[2]),256&t[0]&&y(n,"lang",e[8])},d(e){e&&E(n)}}}function Mi(e){let n;function r(e){return e[10]?fi:e[14]?hi:void 0}let i=r(e),o=i&&i(e);return{c(){o&&o.c(),n=l(),this.c=v},m(e,t){o&&o.m(e,t),S(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o&&o.d(1),o=i&&i(e),o&&(o.c(),o.m(n.parentNode,n)))},i:v,o:v,d(e){o&&o.d(e),e&&E(n)}}}function ki(e,t,o){let n;Q(e,hr,e=>o(26,n=e));let r,i,s,a,l,u,c,d,h,f,{session:m=""}=t,{userid:p=""}=t,{tournamenturl:g=""}=t,{touridx:y}=t,{endpoint:v=""}=t,{showdetails:w=""}=t,{showslider:b=""}=t,{showenrolled:_=""}=t,{maxwidth:T=""}=t,{fullsize:S=""}=t,{lang:E=""}=t,{loginevent:x=""}=t,{registerevent:C=""}=t,{loginurl:M=""}=t,{registerurl:k=""}=t,{currency:D=""}=t,P=!1,A="",O=!0,F=window.navigator.userAgent,R=!1,N=!1,$="There was an error while trying to join the tournament",L=[],I=[],U="#",Y=!1;var z,j;[{withLocale:z,translations:j}]=[{withLocale:"en",translations:{}}],nr.subscribe(e=>{null==e&&(Gn.set(j),nr.set(z))}),Object.keys(Ar).forEach(e=>{Wn(e,Ar[e])});const B=e=>{H(e),J(e),q(this,l)},G=n=>{if(n.data&&"UserSessionID"==n.data.type&&(o(9,P=!0),A=n.data.session),"UpdateTournamentView"==n.data.type){var e=n.data.tournamentData;if(l&&l!=e.id)return;B(e)}if(n.data&&n.data.type==`UpdateSingleTournament_${y}`){let e=n.data.tournamentData,t=y<4?100*y:300*Math.random()+300;o(25,Y=1==y),setTimeout(()=>{o(25,Y=!0),o(18,l=e.id),B(e)},t),setTimeout(()=>{o(25,Y=!1)},200+t)}},H=e=>{e.state!=a&&(o(17,a=e.state),window.postMessage({type:`TournamentStatus_${l}`,status:a},window.location.href))},W=()=>{x&&window.postMessage({type:x,transition:"Login"},window.location.href),M&&(window.location=M)},V=()=>{C&&window.postMessage({type:C,transition:"Register"},window.location.href),k&&(window.location=k)},X=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},Z=(e,t)=>{window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),o(11,R=!0);let n=new URL(`${v}/bonus/claim`),r=new Headers,i={};n.searchParams.append("language",E),n.searchParams.append("platform",mr(F)),r.append("Content-Type","application/json"),r.append("X-SessionID",A),t&&1<=t.length&&(i={language:E,bonusCode:t[0].code,currency:D});t={method:"PUT",headers:r,body:JSON.stringify(i)};fetch(n,t).then(e=>e.json()).then(e=>{1==e.success?(o(11,R=!1),o(20,c=!0)):(o(11,R=!1),o(13,$=e.errorMessage),o(12,N=!0))},e=>{o(11,R=!1),o(12,N=!0)})},q=(e,t)=>{window.postMessage({type:`TournamentPrizes_${t}`,prizes:L},window.location.href)},J=e=>{e&&(o(14,r=e.nameOrTitle||""),o(15,i=e.startTime),o(16,s=e.endTime),o(17,a=e.state),o(18,l=e.id),o(19,u=e.thumbnail),o(20,c=e.playerEnrolled||!1),o(21,d=e.scoreCriteria),o(22,h=e.minBetCount),L=e.prizes,o(23,I=e.wallets||[]),o(24,U=e.termsUrl||"#"))},K=()=>{o(10,O=!0),(e=>{o(10,O=!0);let t=new URL(e),n=new Headers;t.searchParams.append("language",E),t.searchParams.append("platform",mr(F)),P&&n.append("X-SessionID",A),fetch(t,{method:"GET",headers:n}).then(e=>e.json()).then(e=>{o(10,O=!1),J(e.item)})})(g)};return ee(()=>(o(10,O=!1),window.addEventListener("message",G,!1),()=>{window.removeEventListener("message",G)})),e.$$set=e=>{"session"in e&&o(0,m=e.session),"userid"in e&&o(1,p=e.userid),"tournamenturl"in e&&o(2,g=e.tournamenturl),"touridx"in e&&o(32,y=e.touridx),"endpoint"in e&&o(33,v=e.endpoint),"showdetails"in e&&o(3,w=e.showdetails),"showslider"in e&&o(4,b=e.showslider),"showenrolled"in e&&o(5,_=e.showenrolled),"maxwidth"in e&&o(6,T=e.maxwidth),"fullsize"in e&&o(7,S=e.fullsize),"lang"in e&&o(8,E=e.lang),"loginevent"in e&&o(34,x=e.loginevent),"registerevent"in e&&o(35,C=e.registerevent),"loginurl"in e&&o(36,M=e.loginurl),"registerurl"in e&&o(37,k=e.registerurl),"currency"in e&&o(38,D=e.currency)},e.$$.update=()=>{1&e.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?(A=m,o(9,P=!0)):o(9,P=!1)),260&e.$$.dirty[0]&&o(39,f=g&&E),256&e.$$.dirty[1]&&f&&K()},[m,p,g,w,b,_,T,S,E,P,O,R,N,$,r,i,s,a,l,u,c,d,h,I,U,Y,n,W,V,X,Z,q,y,v,x,C,M,k,D,f,()=>W(),()=>V(),()=>X(l),()=>Z(l,I),()=>X(l)]}function Di(e,t,n){const r=e.slice();return r[20]=t[n],r[22]=n,r}function Pi(t){let r,i=t[10],o=[];for(let e=0;e<i.length;e+=1)o[e]=Oi(Di(t,i,e));let s=null;return i.length||(s=Ai(t)),{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=l(),s&&s.c()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);S(t,r,n),s&&s.m(t,n)},p(t,n){if(3583&n){let e;for(i=t[10],e=0;e<i.length;e+=1){const s=Di(t,i,e);o[e]?o[e].p(s,n):(o[e]=Oi(s),o[e].c(),o[e].m(r.parentNode,r))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):(s=Ai(t),s.c(),s.m(r.parentNode,r))}},d(e){p(o,e),e&&E(r),s&&s.d(e)}}}function Ai(e){let n,r,i=e[11]("tournamentsList.nothing")+"";return{c(){n=x("p"),r=C(i)},m(e,t){S(e,n,t),T(n,r)},p(e,t){2048&t&&i!==(i=e[11]("tournamentsList.nothing")+"")&&P(r,i)},d(e){e&&E(n)}}}function Oi(e){let n,r,i;return{c(){n=x("casino-tournaments-thumbnail-controller"),y(n,"touridx",e[22]+1),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"endpoint",e[2]),y(n,"showdetails","true"),y(n,"showslider","false"),y(n,"tournamenturl",r=e[20].href),y(n,"maxwidth",i=e[10].length<=2),y(n,"loginurl",e[5]),y(n,"loginevent",e[3]),y(n,"registerurl",e[6]),y(n,"registerevent",e[4]),y(n,"lang",e[8]),y(n,"currency",e[7]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing")},m(e,t){S(e,n,t)},p(e,t){1&t&&y(n,"session",e[0]),2&t&&y(n,"userid",e[1]),4&t&&y(n,"endpoint",e[2]),1024&t&&r!==(r=e[20].href)&&y(n,"tournamenturl",r),1024&t&&i!==(i=e[10].length<=2)&&y(n,"maxwidth",i),32&t&&y(n,"loginurl",e[5]),8&t&&y(n,"loginevent",e[3]),64&t&&y(n,"registerurl",e[6]),16&t&&y(n,"registerevent",e[4]),256&t&&y(n,"lang",e[8]),128&t&&y(n,"currency",e[7])},d(e){e&&E(n)}}}function Fi(e){let n,r=!e[9]&&Pi(e);return{c(){n=x("div"),r&&r.c(),this.c=v,D(n,"class","TournamentList"),D(n,"part","TournamentList")},m(e,t){S(e,n,t),r&&r.m(n,null)},p(e,[t]){e[9]?r&&(r.d(1),r=null):r?r.p(e,t):(r=Pi(e),r.c(),r.m(n,null))},i:v,o:v,d(e){e&&E(n),r&&r.d()}}}function Ri(e,t,n){let r;Q(e,hr,e=>n(11,r=e));let{session:i=""}=t,{userid:o=""}=t,{numberoftournaments:s="6"}=t,{endpoint:a=""}=t,{loginevent:l=""}=t,{registerevent:u=""}=t,{loginurl:c=""}=t,{registerurl:d=""}=t,{currency:h=""}=t,{lang:f="en"}=t,m=!1;Dr();let p="";Object.keys(Pr).forEach(e=>{Wn(e,Pr[e])});const g=t=>{if(t.data&&"TournamentList"==t.data.type&&(n(10,p=[]),n(9,m=!0),n(10,p=t.data.tournamentList),setTimeout(()=>{n(9,m=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&n(10,p=[...p,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!p)return;0==p.filter(e=>e.id==t.data.tournamentData.id).length&&(p.pop(),n(10,p=[t.data.tournamentData,...p]),setTimeout(()=>{p.forEach((e,t)=>{window.postMessage({type:`UpdateSingleTournament_${t+1}`,tournamentData:e},window.location.href)})},100))}t.data&&"UserSessionID"==t.data.type&&t.data.session};return ee(()=>(window.addEventListener("message",g,!0),()=>{window.removeEventListener("message",g,!0)})),e.$$set=e=>{"session"in e&&n(0,i=e.session),"userid"in e&&n(1,o=e.userid),"numberoftournaments"in e&&n(12,s=e.numberoftournaments),"endpoint"in e&&n(2,a=e.endpoint),"loginevent"in e&&n(3,l=e.loginevent),"registerevent"in e&&n(4,u=e.registerevent),"loginurl"in e&&n(5,c=e.loginurl),"registerurl"in e&&n(6,d=e.registerurl),"currency"in e&&n(7,h=e.currency),"lang"in e&&n(8,f=e.lang)},e.$$.update=()=>{1&e.$$.dirty&&i&&i.length,e.$$.dirty},[i,o,a,l,u,c,d,h,f,m,p,r,s]}function Ni(e){let n,r,i,o,s,a,l=e[15]&&Li(e);function u(e){return 0==e[16]?Ui:Ii}let c=u(e),d=c(e),h=!e[17]&&ji(e);return{c(){n=x("div"),r=x("div"),i=x("div"),l&&l.c(),o=M(),s=x("div"),d.c(),a=M(),h&&h.c(),D(i,"class","FirstRow"),D(i,"part","FirstRow"),D(s,"class","SecondRow"),D(s,"part","SecondRow"),D(r,"class","Tournaments"),g(r,"max-width",e[11]+"px"),D(r,"part","Tournaments"),D(n,"class","TournamentsWrapper"),D(n,"part","TournamentsWrapper")},m(e,t){S(e,n,t),T(n,r),T(r,i),l&&l.m(i,null),T(r,o),T(r,s),d.m(s,null),T(r,a),h&&h.m(r,null)},p(e,t){e[15]?l?l.p(e,t):(l=Li(e),l.c(),l.m(i,null)):l&&(l.d(1),l=null),c===(c=u(e))&&d?d.p(e,t):(d.d(1),d=c(e),d&&(d.c(),d.m(s,null))),e[17]?h&&(h.d(1),h=null):h?h.p(e,t):(h=ji(e),h.c(),h.m(r,null)),2048&t[0]&&g(r,"max-width",e[11]+"px")},d(e){e&&E(n),l&&l.d(),d.d(),h&&h.d()}}}function $i(e){let n,r,i,o,s,a=e[18]("tournamentsController.500")+"";return{c(){n=x("p"),r=C(a),i=M(),o=x("p"),s=C(e[13])},m(e,t){S(e,n,t),T(n,r),S(e,i,t),S(e,o,t),T(o,s)},p(e,t){262144&t[0]&&a!==(a=e[18]("tournamentsController.500")+"")&&P(r,a),8192&t[0]&&P(s,e[13])},d(e){e&&E(n),e&&E(i),e&&E(o)}}}function Li(e){let n;return{c(){n=x("casino-tournaments-filter-controller"),y(n,"filters",Gi),y(n,"activefilters",e[5]),y(n,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(e,t){S(e,n,t)},p(e,t){32&t[0]&&y(n,"activefilters",e[5])},d(e){e&&E(n)}}}function Ii(e){let n;return{c(){n=x("casino-tournaments-list-controller"),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"numberoftournaments",e[4]),y(n,"endpoint",e[2]),y(n,"loginurl",e[8]),y(n,"loginevent",e[6]),y(n,"registerurl",e[9]),y(n,"registerevent",e[7]),y(n,"lang",e[3]),y(n,"currency",e[10]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing")},m(e,t){S(e,n,t)},p(e,t){1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),16&t[0]&&y(n,"numberoftournaments",e[4]),4&t[0]&&y(n,"endpoint",e[2]),256&t[0]&&y(n,"loginurl",e[8]),64&t[0]&&y(n,"loginevent",e[6]),512&t[0]&&y(n,"registerurl",e[9]),128&t[0]&&y(n,"registerevent",e[7]),8&t[0]&&y(n,"lang",e[3]),1024&t[0]&&y(n,"currency",e[10])},d(e){e&&E(n)}}}function Ui(e){let n;function r(e){return e[14]?zi:Yi}let i=r(e),o=i(e);return{c(){o.c(),n=l()},m(e,t){o.m(e,t),S(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&E(n)}}}function Yi(e){let n,r,i=e[18]("tournamentsController.noTournaments")+"";return{c(){n=x("p"),r=C(i)},m(e,t){S(e,n,t),T(n,r)},p(e,t){262144&t[0]&&i!==(i=e[18]("tournamentsController.noTournaments")+"")&&P(r,i)},d(e){e&&E(n)}}}function zi(e){let n,r,i=e[18]("tournamentsController.loading")+"";return{c(){n=x("p"),r=C(i)},m(e,t){S(e,n,t),T(n,r)},p(e,t){262144&t[0]&&i!==(i=e[18]("tournamentsController.loading")+"")&&P(r,i)},d(e){e&&E(n)}}}function ji(n){let r,i,o,s,a,l,u=n[18]("tournamentsController.showMore")+"";return{c(){r=x("div"),i=x("div"),o=x("button"),s=C(u),D(o,"class","ShowMoreButton"),D(o,"part","ShowMoreButton"),D(o,"title","Show More"),D(i,"class","CenterButton"),D(i,"part","CenterButton"),D(r,"class","ThirdRow"),D(r,"part","ThirdRow")},m(e,t){S(e,r,t),T(r,i),T(i,o),T(o,s),a||(l=k(o,"click",n[23]),a=!0)},p(e,t){262144&t[0]&&u!==(u=e[18]("tournamentsController.showMore")+"")&&P(s,u)},d(e){e&&E(r),a=!1,l()}}}function Bi(e){let n;function r(e){return e[12]?$i:Ni}let i=r(e),o=i(e);return{c(){o.c(),n=l(),this.c=v},m(e,t){o.m(e,t),S(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(n.parentNode,n)))},i:v,o:v,d(e){o.d(e),e&&E(n)}}}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends c{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>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},si,oi,n,{tourid:2}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(e){this.$set({tourid:e}),L()}}),customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends c{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>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},di,ci,n,{tournamenturl:13,scrollby:14,pagfactor:12,lang:15},[-1,-1]),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[13]}set tournamenturl(e){this.$set({tournamenturl:e}),L()}get scrollby(){return this.$$.ctx[14]}set scrollby(e){this.$set({scrollby:e}),L()}get pagfactor(){return this.$$.ctx[12]}set pagfactor(e){this.$set({pagfactor:e}),L()}get lang(){return this.$$.ctx[15]}set lang(e){this.$set({lang:e}),L()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends c{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}.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>',u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ki,Mi,n,{session:0,userid:1,tournamenturl:2,touridx:32,endpoint:33,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:34,registerevent:35,loginurl:36,registerurl:37,currency:38},[-1,-1]),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency"]}get session(){return this.$$.ctx[0]}set session(e){this.$set({session:e}),L()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),L()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$set({tournamenturl:e}),L()}get touridx(){return this.$$.ctx[32]}set touridx(e){this.$set({touridx:e}),L()}get endpoint(){return this.$$.ctx[33]}set endpoint(e){this.$set({endpoint:e}),L()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$set({showdetails:e}),L()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$set({showslider:e}),L()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$set({showenrolled:e}),L()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$set({maxwidth:e}),L()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$set({fullsize:e}),L()}get lang(){return this.$$.ctx[8]}set lang(e){this.$set({lang:e}),L()}get loginevent(){return this.$$.ctx[34]}set loginevent(e){this.$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[35]}set registerevent(e){this.$set({registerevent:e}),L()}get loginurl(){return this.$$.ctx[36]}set loginurl(e){this.$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[37]}set registerurl(e){this.$set({registerurl:e}),L()}get currency(){return this.$$.ctx[38]}set currency(e){this.$set({currency:e}),L()}}),customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",class extends c{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}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(Min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Ri,Fi,n,{session:0,userid:1,numberoftournaments:12,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8}),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang"]}get session(){return this.$$.ctx[0]}set session(e){this.$set({session:e}),L()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),L()}get numberoftournaments(){return this.$$.ctx[12]}set numberoftournaments(e){this.$set({numberoftournaments:e}),L()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$set({endpoint:e}),L()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$set({registerevent:e}),L()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$set({registerurl:e}),L()}get currency(){return this.$$.ctx[7]}set currency(e){this.$set({currency:e}),L()}get lang(){return this.$$.ctx[8]}set lang(e){this.$set({lang:e}),L()}});let Gi="All,Scheduled,Ongoing,Finished";function Hi(e,t,s){let n,r,i;Q(e,hr,e=>s(18,i=e));var o,a,l=this&&this.__awaiter||function(e,s,a,l){return new(a=a||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(r,i)}o((l=l.apply(e,s||[])).next())})};let u,c,{session:d=""}=t,{userid:h=""}=t,{endpoint:f=""}=t,{lang:m="en"}=t,{numberoftournaments:p="6"}=t,{showmorestep:g="2"}=t,{filters:y="All"}=t,{loginevent:v=""}=t,{registerevent:w=""}=t,{loginurl:b=""}=t,{registerurl:_=""}=t,{currency:T="EUR"}=t,{containermaxwidth:S=""}=t,E=!1,x="",C=!1,M="",k=window.navigator.userAgent,D=!0,P=!1,A=!1,O=0,F=6,R=!0,N=[],$=new Date;$.setMonth($.getMonth()-1),$=$.toISOString().substring(0,10),[{withLocale:o,translations:a}]=[{withLocale:"en",translations:{}}],nr.subscribe(e=>{null==e&&(Gn.set(a),nr.set(o))}),Object.keys(gr).forEach(e=>{Wn(e,gr[e])});const L=e=>{e.data&&"UserSessionID"===e.data.type&&(C=!0,M=e.data.session,e.data.userid,I(f,0,F)),e.data&&"TournamentsFiltersSelected"===e.data.type&&(N=e.data.filters,I(f,0,F))},I=(t,n,r)=>l(void 0,void 0,void 0,function*(){s(14,D=!0),s(16,O=0);const e=yield U(t,n,r);setTimeout(()=>{window.postMessage({type:"TournamentList",tournamentList:e.items},window.location.href)},50),s(14,D=!1)}),U=(r,i,o)=>l(void 0,void 0,void 0,function*(){let t=new URL(`${r}/tournaments`),e=new Headers;var n;return t.searchParams.append("pagination",`offset=${i},limit=${o}`),t.searchParams.append("sortField","StartTime"),t.searchParams.append("sortOrder","desc"),t.searchParams.append("language",m),0<N.length&&"All"!=N[0]?(n=N.map(e=>{return"Scheduled"==e?"Unstarted":"Ongoing"==e?"Running":"Closing|Closed"}).join("|"),t.searchParams.append("filter",`state=${n},StartTimeAfter=${$}`)):t.searchParams.append("filter",`StartTimeAfter=${$}`),t.searchParams.append("platform",mr(k)),C&&e.append("X-SessionID",M),fetch(t,{method:"GET",headers:e,cache:"no-cache"}).then(e=>e.json()).then(e=>(u=t.searchParams.toString(),s(16,O=e.total),s(17,R=F>=O),A||z(),e))}),Y=e=>{if("message"==e.type){var t=e.data;if(t)try{var n,r=JSON.parse(t);r&&r.item&&(n=r.item,"TournamentUpdate"==r.messageType&&window.postMessage({type:"UpdateTournamentView",tournamentData:n},window.location.href),"TournamentRemove"==r.messageType&&window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href))}catch(e){console.error(e)}}},z=()=>{A=!0,setTimeout(()=>{A=!1},1e3),c&&(c.removeEventListener("message",Y),c.close());var e=`${f}/tournaments/updates?${u}&XSessionId=${d}`;c=EventSource?new EventSource(e):new yr.EventSourcePolyfill(e,{headers:{accept:"text/event-stream"}}),void 0!==c&&c.addEventListener("message",Y)},j=()=>l(void 0,void 0,void 0,function*(){var t,n,r,e=F,i=parseInt(g,10);F+=i,window.postMessage({type:"TournamentsPagination",offset:0,limit:F},window.location.href),t=f,n=e,r=i,yield l(void 0,void 0,void 0,function*(){var e=yield U(t,n,r);window.postMessage({type:"TournamentListShowMore",tournamentList:e.items},window.location.href)}),F>=O&&s(17,R=!0)}),B=()=>{f||(s(13,x="Endpoint is missing! Please provide a valid endpointURL."),s(12,E=!0),console.error(x)),m&&2==m.length||(s(13,x="Language is missing! Please provide a valid language (alpha2code)"),s(12,E=!0),console.error(x)),E||(F=parseInt(p,10),pr(m),I(f,0,F))};return ee(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L),c&&c.removeEventListener("message",Y)})),e.$$set=e=>{"session"in e&&s(0,d=e.session),"userid"in e&&s(1,h=e.userid),"endpoint"in e&&s(2,f=e.endpoint),"lang"in e&&s(3,m=e.lang),"numberoftournaments"in e&&s(4,p=e.numberoftournaments),"showmorestep"in e&&s(20,g=e.showmorestep),"filters"in e&&s(5,y=e.filters),"loginevent"in e&&s(6,v=e.loginevent),"registerevent"in e&&s(7,w=e.registerevent),"loginurl"in e&&s(8,b=e.loginurl),"registerurl"in e&&s(9,_=e.registerurl),"currency"in e&&s(10,T=e.currency),"containermaxwidth"in e&&s(11,S=e.containermaxwidth)},e.$$.update=()=>{1&e.$$.dirty[0]&&d&&(0<d.length&&"false"!=d?(C=!0,s(14,D=!0),M=d):(C=!1,B())),e.$$.dirty[0],32&e.$$.dirty[0]&&y&&(N=y.split(","),s(15,P=!0)),8&e.$$.dirty[0]&&m&&pr(m),1048604&e.$$.dirty[0]&&s(21,n=f&&p&&g&&m),2097153&e.$$.dirty[0]&&s(22,r=d?n&&d:n),4194304&e.$$.dirty[0]&&r&&B()},[d,h,f,m,p,y,v,w,b,_,T,S,E,x,D,P,O,R,i,j,g,n,r,()=>j()]}class Wi extends c{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}.ShowMoreButton{background:var(--emfe-w-color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{background:var(--emfe-w-color-contrast, #07072A)}.Tournaments{color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Hi,Bi,n,{session:0,userid:1,endpoint:2,lang:3,numberoftournaments:4,showmorestep:20,filters:5,loginevent:6,registerevent:7,loginurl:8,registerurl:9,currency:10,containermaxwidth:11},[-1,-1]),e&&(e.target&&S(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["session","userid","endpoint","lang","numberoftournaments","showmorestep","filters","loginevent","registerevent","loginurl","registerurl","currency","containermaxwidth"]}get session(){return this.$$.ctx[0]}set session(e){this.$set({session:e}),L()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),L()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$set({endpoint:e}),L()}get lang(){return this.$$.ctx[3]}set lang(e){this.$set({lang:e}),L()}get numberoftournaments(){return this.$$.ctx[4]}set numberoftournaments(e){this.$set({numberoftournaments:e}),L()}get showmorestep(){return this.$$.ctx[20]}set showmorestep(e){this.$set({showmorestep:e}),L()}get filters(){return this.$$.ctx[5]}set filters(e){this.$set({filters:e}),L()}get loginevent(){return this.$$.ctx[6]}set loginevent(e){this.$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[7]}set registerevent(e){this.$set({registerevent:e}),L()}get loginurl(){return this.$$.ctx[8]}set loginurl(e){this.$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[9]}set registerurl(e){this.$set({registerurl:e}),L()}get currency(){return this.$$.ctx[10]}set currency(e){this.$set({currency:e}),L()}get containermaxwidth(){return this.$$.ctx[11]}set containermaxwidth(e){this.$set({containermaxwidth:e}),L()}}return customElements.get("casino-tournaments-controller")||customElements.define("casino-tournaments-controller",Wi),Wi});
|
|
2
2
|
//# sourceMappingURL=casino-tournaments-controller.js.map
|