@everymatrix/casino-tournaments-controller 0.0.220 → 0.0.224

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 b(){}function h(e){return e()}function d(){return Object.create(null)}function y(e){e.forEach(h)}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 b;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function X(e,t,n){e.$$.on_destroy.push(m(t,n))}function g(e){return e&&f(e.destroy)?e.destroy:b}function T(e,t){e.appendChild(t)}function E(e,t,n){e.insertBefore(t,n||null)}function x(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 S(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function M(e){return document.createTextNode(e)}function k(){return M(" ")}function l(){return M("")}function D(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function O(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function v(e,t,n){t in e?e[t]=n:O(e,t,n)}function C(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function _(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 w;function A(e){w=e}function Z(e){!function(){if(!w)throw new Error("Function called outside component initialization");return w}().$$.on_mount.push(e)}const P=[],N=[],i=[],s=[],$=Promise.resolve();let R=!1;function L(e){i.push(e)}let o=!1;const a=new Set;function I(){if(!o){o=!0;do{for(let e=0;e<P.length;e+=1){var t=P[e];A(t),function(e){{var t;null!==e.fragment&&(e.update(),y(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L))}}(t.$$)}for(A(null),P.length=0;N.length;)N.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,P.length);for(;s.length;)s.pop()();R=!1,o=!1,a.clear()}}const Y=new Set;function u(r,e,t,n,i,s,o=[-1]){var a,l=w;A(r);const u=r.$$={fragment:null,ctx:null,props:s,update:b,not_equal:i,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:d(),dirty:o,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]&&(P.push(e),R||(R=!0,$.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],u.update(),c=!0,y(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){const b=(n=e.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(b),b.forEach(x)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(Y.delete(a),a.i(void 0)),function(t,e,n,r){const{fragment:i,on_mount:s,on_destroy:o,after_update:a}=t.$$;i&&i.m(e,n),r||L(()=>{var e=s.map(h).filter(f);o?o.push(...e):y(e),t.$$.on_mount=[]}),a.forEach(L)}(r,e.target,e.anchor,e.customElement),I()}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(h).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){y(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(y(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=b}$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,F,j="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==j&&j,G="URLSearchParams"in j,z="Symbol"in j&&"iterator"in Symbol,H="FileReader"in j&&"Blob"in j&&function(){try{return new Blob,!0}catch(e){return!1}}(),B="FormData"in j,W="ArrayBuffer"in j;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 q(e){return e="string"!=typeof e?String(e):e}function J(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return z&&(e[Symbol.iterator]=function(){return e}),e}function K(t){this.map={},t instanceof K?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 Q(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ee(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=ee(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:H&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:B&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:G&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():W&&H&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=ne(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):W&&(ArrayBuffer.prototype.isPrototypeOf(e)||F(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):G&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},H&&(this.blob=function(){var e=Q(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?Q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(te)}),this.text=function(){var e,t,n=Q(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,n=ee(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)},B&&(this.formData=function(){return this.text().then(oe)}),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]"],F=ArrayBuffer.isView||function(e){return e&&-1<U.indexOf(Object.prototype.toString.call(e))}),K.prototype.append=function(e,t){e=V(e),t=q(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},K.prototype.delete=function(e){delete this.map[V(e)]},K.prototype.get=function(e){return e=V(e),this.has(e)?this.map[e]:null},K.prototype.has=function(e){return this.map.hasOwnProperty(V(e))},K.prototype.set=function(e,t){this.map[V(e)]=q(t)},K.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},K.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),J(n)},K.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),J(t)},K.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),J(n)},z&&(K.prototype[Symbol.iterator]=K.prototype.entries);var ie=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function se(e,t){if(!(this instanceof se))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 se){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new K(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 K(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 oe(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 K(t.headers),this.url=t.url||"",this._initBody(e)}se.prototype.clone=function(){return new se(this,{body:this._bodyInit})},re.call(se.prototype),re.call(ae.prototype),ae.prototype.clone=function(){return new ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new K(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=j.DOMException;try{new ue}catch(b){(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,o){return new Promise(function(i,e){var t=new se(r,o);if(t.signal&&t.signal.aborted)return e(new ue("Aborted","AbortError"));var s=new XMLHttpRequest;function n(){s.abort()}s.onload=function(){var e,n,t={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",n=new K,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 s?s.responseURL:t.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;setTimeout(function(){i(new ae(r,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){e(new ue("Aborted","AbortError"))},0)},s.open(t.method,function(t){try{return""===t&&j.location.href?j.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?s.withCredentials=!0:"omit"===t.credentials&&(s.withCredentials=!1),"responseType"in s&&(H?s.responseType="blob":W&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof K?t.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(o.headers).forEach(function(e){s.setRequestHeader(e,q(o.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),s.onreadystatechange=function(){4===s.readyState&&t.signal.removeEventListener("abort",n)}),s.send(void 0===t._bodyInit?null:t._bodyInit)})}ce.polyfill=!0,j.fetch||(j.fetch=ce,j.Headers=K,j.Request=se,j.Response=ae);var he="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function de(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return Pn(null==t&&n.path)}},n.exports),n.exports}function Pn(){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,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}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 be(e){return"function"==typeof e}function ve(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 _e=ve(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 we(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var Te=(xe.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=pe(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(be(s))try{s()}catch(e){i=e instanceof _e?e.errors:[e]}s=this._teardowns;if(s){this._teardowns=null;try{for(var l=pe(s),u=l.next();!u.done;u=l.next()){var c=u.value;try{Me(c)}catch(e){i=null!=i?i:[],e instanceof _e?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 _e(i)}},xe.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Me(e);else{if(e instanceof xe){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},xe.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},xe.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},xe.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&we(t,e)},xe.prototype.remove=function(e){var t=this._teardowns;t&&we(t,e),e instanceof xe&&e._removeParent(this)},xe.EMPTY=((Xt=new xe).closed=!0,Xt),xe),Ee=Te.EMPTY;function xe(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function Se(e){return e instanceof Te||e&&"closed"in e&&be(e.remove)&&be(e.add)&&be(e.unsubscribe)}function Me(e){be(e)?e():e.unsubscribe()}var ke=void 0,De=!1,Oe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,ye([],ge(e)))};function Ce(){}function Ae(e){e()}var Pe,Ne,$e=(me(Ie,Ne=Te),Ie.create=function(e,t,n){return new Re(e,t,n)},Ie.prototype.next=function(e){this.isStopped||this._next(e)},Ie.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Ie.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ie.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ne.prototype.unsubscribe.call(this),this.destination=null)},Ie.prototype._next=function(e){this.destination.next(e)},Ie.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Ie.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ie),Re=(me(Le,Pe=$e),Le);function Le(e,t,n){var r,i,s=Pe.call(this)||this;return be(e)?i=e:e&&(i=e.next,t=e.error,n=e.complete,s&&De?(r=Object.create(e)).unsubscribe=function(){return s.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)),s.destination={next:i?Ye(i):Ce,error:Ye(null!=t?t:Ue),complete:n?Ye(n):Ce},s}function Ie(e){var t=Ne.call(this)||this;return t.isStopped=!1,e?Se(t.destination=e)&&e.add(t):t.destination=Fe,t}function Ye(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,Oe(function(){throw t})}}}function Ue(e){throw e}var Fe={closed:!0,next:Ce,error:Ue,complete:Ce},je="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ge(e){return e}var ze=(He.prototype.lift=function(e){var t=new He;return t.source=this,t.operator=e,t},He.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof $e||r&&be(r.next)&&be(r.error)&&be(r.complete)&&Se(r)?e:new Re(e,t,n);return Ae(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},He.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},He.prototype.forEach=function(r,e){var i=this;return new(e=Be(e))(function(e,t){var n=i.subscribe(function(e){try{r(e)}catch(e){t(e),null==n||n.unsubscribe()}},t,e)})},He.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},He.prototype[je]=function(){return this},He.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?Ge:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},He.prototype.toPromise=function(e){var r=this;return new(e=Be(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},He.create=function(e){return new He(e)},He);function He(e){e&&(this._subscribe=e)}function Be(e){return null!==(e=null!=e?e:ke)&&void 0!==e?e:Promise}var We,Ve,Xe,Ze=ve(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qe=(me(nt,Xe=ze),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(s){var o=this;Ae(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){var n=o.observers.slice();try{for(var r=pe(n),i=r.next();!i.done;i=r.next())i.value.next(s)}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?Ee:(r.push(e),new Te(function(){return we(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 ze;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:Ee},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,s=t._timestampProvider,t=t._windowTime;n||(r.push(e),i||r.push(s.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 s=t.now(),o=0,a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+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 st=[];function ot(r,i=b){let s;const o=[];function a(e){if(n(r,e)&&(r=e,s)){const e=!st.length;for(let e=0;e<o.length;e+=1){const t=o[e];t[1](),st.push(t,r)}if(e){for(let e=0;e<st.length;e+=2)st[e][0](st[e+1]);st.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=b){const n=[e,t];return o.push(n),1===o.length&&(s=i(a)||b),e(r),()=>{var e=o.indexOf(n);-1!==e&&o.splice(e,1),0===o.length&&(s(),s=null)}}}}function at(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:ot(t,t=>{let n=!1;const r=[];let i=0,s=b;const o=()=>{var e;i||(s(),e=a(l?r[0]:r,t),c?t(e):s=f(e)?e:b)},e=u.map((e,t)=>m(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){y(e),s()}}).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 ht(e,t,n){return e.concat(t).map(function(e){return ct(e,n)})}function dt(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,s){var o={};return s.isMergeableObject(r)&&dt(r).forEach(function(e){o[e]=ct(r[e],s)}),dt(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)&&s.isMergeableObject(i[t])?o[t]=function(){if(!s.customMerge)return pt;var e=s.customMerge(t);return"function"==typeof e?e:pt}()(r[t],i[t],s):o[t]=ct(i[t],s))}),o}function pt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ht,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 bt(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 vt,_t,wt,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 Et(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function xt(e){return e.type===_t.literal}function St(e){return e.type===_t.number}function Mt(e){return e.type===_t.date}function kt(e){return e.type===_t.time}function Dt(e){return e.type===_t.select}function Ot(e){return e.type===_t.plural}function Ct(e){return e.type===_t.tag}function At(e){return e&&"object"==typeof e&&e.type===wt.number}function Pt(e){return e&&"object"==typeof e&&e.type===wt.dateTime}(Zt=vt=vt||{})[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=_t=_t||{})[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=wt=wt||{})[Jt.number=0]="number",Jt[Jt.dateTime=1]="dateTime";var Nt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,$t=/(?:[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 Rt,Lt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,It=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Yt=/^(@+)?(\+|#+)?$/g,Ut=/(\*)(0+)|(#+)(0+)|(0+)/g,Ft=/^(0+)$/;function jt(e){var r={};return e.replace(Yt,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 Gt(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 zt(e){return Gt(e)||{}}function Ht(e){for(var o={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=Tt(Tt(Tt({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return Tt(Tt({},e),zt(t))},{}));continue;case"engineering":o=Tt(Tt(Tt({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return Tt(Tt({},e),zt(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.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,s){if(t)o.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ft.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(It.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(It,function(e,t,n,r,i,s){return"*"===n?o.minimumFractionDigits=t.length:r&&"#"===r[0]?o.maximumFractionDigits=r.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""}),i.options.length&&(o=Tt(Tt({},o),jt(i.options[0])))}else Yt.test(i.stem)?o=Tt(Tt({},o),jt(i.stem)):((r=Gt(i.stem))&&(o=Tt(Tt({},o),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)),!Ft.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=Tt(Tt({},o),r)))}return o}var Bt=new RegExp("^"+Nt.source+"*"),Wt=new RegExp(Nt.source+"*$");function Vt(e,t){return{start:e,end:t}}var Xt=!!String.prototype.startsWith,je=!!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},Nt=!0;try{Nt="a"===(null===(Rt=ln("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Rt?void 0:Rt[0])}catch(b){Nt=!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=je?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,s=0;s<i;){if(1114111<(n=e[s++]))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],s=i[0],i=i[1];t[s]=i}return t},sn=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}},on=qt?function(e){return e.trimStart()}:function(e){return e.replace(Bt,"")},an=Jt?function(e){return e.trimEnd()}:function(e){return e.replace(Wt,"")};function ln(e,t){return new RegExp(e,t)}en=Nt?(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=sn(e,t);if(void 0===i||dn(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,s=this.char();if(123===s){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(vt.UNMATCHED_CLOSING_TAG,Vt(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&hn(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{s=this.clonePosition();this.bump(),r.push({type:_t.pound,location:Vt(s,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:_t.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()||!hn(this.char()))return this.error(vt.INVALID_TAG,Vt(t,this.clonePosition()));i=this.clonePosition();return r!==this.parseTagName()?this.error(vt.UNMATCHED_CLOSING_TAG,Vt(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:_t.tag,value:r,children:e,location:Vt(n,this.clonePosition())},err:null}:this.error(vt.INVALID_TAG,Vt(t,this.clonePosition())))}return this.error(vt.UNCLOSED_TAG,Vt(n,this.clonePosition()))}return this.error(vt.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:_t.literal,value:r,location:n},err:null}},cn.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(hn(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(vt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(vt.EMPTY_ARGUMENT,Vt(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(vt.MALFORMED_ARGUMENT,Vt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(vt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:_t.argument,value:r,location:Vt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(vt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(vt.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,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(vt.EXPECT_ARGUMENT_TYPE,Vt(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(h=an(d.val)).length)return this.error(vt.EXPECT_ARGUMENT_STYLE,Vt(this.clonePosition(),this.clonePosition()));l={style:h,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=on(l.style.slice(2));if("number"===o)return(d=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?d:{val:{type:_t.number,value:n,location:c,style:d.val},err:null};if(0===u.length)return this.error(vt.EXPECT_DATE_TIME_SKELETON,c);var h={type:wt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace($t,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"===o?_t.date:_t.time,value:n,location:c,style:h},err:null}}return{val:{type:"number"===o?_t.number:"date"===o?_t.date:_t.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(vt.EXPECT_SELECT_ARGUMENT_OPTIONS,Vt(l,Tt({},l)));this.bumpSpace();var d,c=this.parseIdentifierIfPossible(),l=0;if("select"!==o&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(vt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(vt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,vt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=d.val}c=this.tryParsePluralOrSelectOptions(e,o,t,c);if(c.err)return c;if((f=this.tryParseArgumentClose(r)).err)return f;var f=Vt(r,this.clonePosition());return"select"===o?{val:{type:_t.select,value:n,options:rn(c.val),location:f},err:null}:{val:{type:_t.plural,value:n,options:rn(c.val),offset:l,pluralType:"plural"===o?"cardinal":"ordinal",location:f},err:null};default:return this.error(vt.INVALID_ARGUMENT_TYPE,Vt(s,a))}},cn.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(vt.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(vt.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(Lt).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 s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t}(e)}catch(e){return this.error(vt.INVALID_NUMBER_SKELETON,t)}return{val:{type:wt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Ht(n):{}},err:null}},cn.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,s=[],o=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(vt.EXPECT_PLURAL_ARGUMENT_SELECTOR,vt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Vt(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?vt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:vt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?vt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:vt.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(h);if(u.err)return u;s.push([a,{value:c.val,location:Vt(h,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===s.length?this.error("select"===t?vt.EXPECT_SELECT_ARGUMENT_SELECTOR:vt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(vt.MISSING_OTHER_CLAUSE,Vt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},cn.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}r=Vt(r,this.clonePosition());return i?Kt(s*=n)?{val:s,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=sn(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()&&dn(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 hn(e){return 97<=e&&e<=122||65<=e&&e<=90}function dn(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(vt[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,Dt(e)||Ot(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else St(e)&&At(e.style)||(Mt(e)||kt(e))&&Pt(e.style)?delete e.style.location:Ct(e)&&n(e.children)})}(n.val),n.val}function mn(e,t){var n=t&&t.cache?t.cache:wn,r=t&&t.serializer?t.serializer:bn;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 bn=function(){return JSON.stringify(arguments)};function vn(){this.cache=Object.create(null)}vn.prototype.has=function(e){return e in this.cache},vn.prototype.get=function(e){return this.cache[e]},vn.prototype.set=function(e,t){this.cache[e]=t};var _n,wn={create:function(){return new vn}},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)}};(Nt=_n=_n||{}).MISSING_VALUE="MISSING_VALUE",Nt.INVALID_VALUE="INVALID_VALUE",Nt.MISSING_INTL_API="MISSING_INTL_API";var En,xn,Sn,Mn,kn,Dn=(bt(Ln,kn=Error),Ln.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ln),On=(bt(Rn,Mn=Dn),Rn),Cn=(bt($n,Sn=Dn),$n),An=(bt(Nn,xn=Dn),Nn);function Nn(e,t){return xn.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',_n.MISSING_VALUE,t)||this}function $n(e,t,n){return Sn.call(this,'Value for "'+e+'" must be of type '+t,_n.INVALID_VALUE,n)||this}function Rn(e,t,n,r){return Mn.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',_n.INVALID_VALUE,r)||this}function Ln(e,t,n){e=kn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function In(e,t,n,r,i,s,o){if(1===e.length&&xt(e[0]))return[{type:En.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(xt(c))a.push({type:En.literal,value:c.value});else if(c.type===_t.pound)"number"==typeof s&&a.push({type:En.literal,value:n.getNumberFormat(t).format(s)});else{var h=c.value;if(!(i&&h in i))throw new An(h,o);var d=i[h];if(c.type===_t.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?En.literal:En.object,value:d});else if(Mt(c)){var f="string"==typeof c.style?r.date[c.style]:Pt(c.style)?c.style.parsedOptions:void 0;a.push({type:En.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(kt(c))f="string"==typeof c.style?r.time[c.style]:Pt(c.style)?c.style.parsedOptions:void 0,a.push({type:En.literal,value:n.getDateTimeFormat(t,f).format(d)});else if(St(c))(f="string"==typeof c.style?r.number[c.style]:At(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(d*=f.scale||1),a.push({type:En.literal,value:n.getNumberFormat(t,f).format(d)});else{if(Ct(c)){var m=c.children,p=c.value,h=i[p];if("function"!=typeof h)throw new Cn(p,"function",o);m=h(In(m,t,n,r,i,s).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?En.literal:En.object,value:e}}))}if(Dt(c)){if(!(g=c.options[d]||c.options.other))throw new On(c.value,d,Object.keys(c.options),o);a.push.apply(a,In(g.value,t,n,r,i))}else if(Ot(c)){if(!(g=c.options["="+d])){if(!Intl.PluralRules)throw new Dn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',_n.MISSING_INTL_API,o);var m=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0)),g=c.options[m]||c.options.other}if(!g)throw new On(c.value,d,Object.keys(c.options),o);a.push.apply(a,In(g.value,t,n,r,i,d-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===En.literal&&t.type===En.literal?n.value+=t.value:e.push(t),e},[])}function Yn(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}}}}}(Nt=En=En||{})[Nt.literal=0]="literal",Nt[Nt.object=1]="object";var Un=(Object.defineProperty(Fn,"defaultLocale",{get:function(){return Fn.memoizedDefaultLocale||(Fn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Fn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Fn.memoizedDefaultLocale=null,Fn.__parse=fn,Fn.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"}}},Fn);function Fn(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=Fn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=o.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===En.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 In(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof e){if(this.message=e,!Fn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Fn.__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=Fn.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[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,Et([void 0],t)))},{cache:Yn((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,Et([void 0],t)))},{cache:Yn(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,Et([void 0],t)))},{cache:Yn(r.pluralRules),strategy:Tn.variadic})}}const jn={},Gn=(t,n)=>{if(null!=n){if(n in jn&&t in jn[n])return jn[n][t];var r,i,s=ir(n);for(let e=0;e<s.length;e++){var o=(r=s[e],i=t,Bn(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 zn[e]||null}(r),i):null);if(o)return r=t,i=n,(o=o)&&(i in jn||(jn[i]={}),r in jn[i]||(jn[i][r]=o),o)}}};let zn;const Hn=ot({});function Bn(e){return e in zn}function Wn(t,...n){delete jn[t],Hn.update(e=>(e[t]=gt.all([e[t]||{},...n]),e))}at([Hn],([e])=>Object.keys(e)),Hn.subscribe(e=>zn=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=ot(!1);let tr;const nr=ot(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 sr=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(Bn(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(()=>{sr(t)}).finally(()=>{clearTimeout(e),er.set(!1)})}return sr(t)},nr.update=e=>sr(e(tr));const or=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=or(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=or(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=or(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)}),hr=or((e,t=tr)=>new Un(e,t,Qn.formats,{ignoreTag:Qn.ignoreTag})),dr=at([nr,Hn],()=>(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 s=Gn(e,r);if(s){if("string"!=typeof s)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof s}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),s}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.":""}`),s=i||e;if(!n)return s;let o=s;try{o=hr(s,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return o});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,Hn],()=>(e,t=tr)=>Gn(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",pr={en:{tournamentsController:{500:"500 - Internal server error",showMore:"Show more",Scheduled:"Scheduled",Ongoing:"OnGoing",Finished:"Finished",loading:"Loading, please wait ...",noTournaments:"No tournaments found"}},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:"Δεν βρέθηκαν τουρνουά"}}};var gr=de(function(e,w){!function(e){var r,A=e.setTimeout,P=e.clearTimeout,N=e.XMLHttpRequest,i=e.XDomainRequest,t=e.ActiveXObject,n=e.EventSource,s=e.document,h=e.Promise,d=e.fetch,o=e.Response,f=e.TextDecoder,a=e.TextEncoder,m=e.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",function(e){s.readyState="complete"},!1)),null==N&&null!=t&&(N=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=d,d=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,s=this.codePoint,o=0;o<e.length;o+=1){var a=e[o];0!==i&&(a<128||191<a||!t(s<<6|63&a,i-6,n(i,s)))&&(i=0,s=65533,r+=String.fromCharCode(s)),0===i?(s=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(s,i,n(i,s))||(i=0,s=65533)):(i-=6,s=s<<6|63&a),0===i&&(s<=65535?r+=String.fromCharCode(s):(r+=String.fromCharCode(55296+(s-65535-1>>10)),r+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=s,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 $(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(": "),s=i.shift(),i=i.join(": ");t[u(s)]=i}this._map=t}function R(){}function g(e){this._headers=e}function L(){}function y(){this._listeners=Object.create(null)}function b(e){A(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function I(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function Y(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function U(e,t){v.call(this,e),this.error=t.error}$.prototype.open=function(e,t){this._abort(!0);var i=this,s=this._xhr,o=1,n=0;this._abort=function(e){0!==i._sendTimeout&&(P(i._sendTimeout),i._sendTimeout=0),1!==o&&2!==o&&3!==o||(o=4,s.onload=c,s.onerror=c,s.onabort=c,s.onprogress=c,s.onreadystatechange=c,s.abort(),0!==n&&(P(n),n=0),e||(i.readyState=4,i.onabort(null),i.onreadystatechange())),o=0};function r(){if(1===o){var t=0,n="",r=void 0;if("contentType"in s)t=200,n="OK",r=s.contentType;else try{t=s.status,n=s.statusText,r=s.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(o=2,i.readyState=2,i.status=t,i.statusText=n,i._contentType=r,i.onreadystatechange())}}function a(){if(r(),2===o||3===o){o=3;var e="";try{e=s.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===o||2===o||3===o){if(o=4,0!==n&&(P(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===s.readyState&&a()};"onload"in s&&(s.onload=function(e){l("load",e)}),"onerror"in s&&(s.onerror=function(e){l("error",e)}),"onabort"in s&&(s.onabort=function(e){l("abort",e)}),"onprogress"in s&&(s.onprogress=a),"onreadystatechange"in s&&(s.onreadystatechange=function(e){e=e,null!=s&&(4===s.readyState?"onload"in s&&"onerror"in s&&"onabort"in s||l(""===s.responseText?"error":"load",e):3===s.readyState?"onprogress"in s||a():2===s.readyState&&r())}),!("contentType"in s)&&"ontimeout"in N.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),s.open(e,t,!0),"readyState"in s&&(n=A(function(){u()},0))},$.prototype.abort=function(){this._abort(!1)},$.prototype.getResponseHeader=function(e){return this._contentType},$.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},$.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},$.prototype.send=function(){if("ontimeout"in N.prototype&&("sendAsBinary"in N.prototype||"mozAnon"in N.prototype)||null==s||null==s.readyState||"complete"===s.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!=N&&null==N.HEADERS_RECEIVED&&(N.HEADERS_RECEIVED=2),R.prototype.open=function(i,s,t,n,e,r,o){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===N.HEADERS_RECEIVED&&(e=i.status,t=i.statusText,n=i.getResponseHeader("Content-Type"),r=i.getAllResponseHeaders(),s(e,t,n,new p(r)))},i.withCredentials=r,o)Object.prototype.hasOwnProperty.call(o,a)&&i.setRequestHeader(a,o[a]);return i.send(),i},g.prototype.get=function(e){return this._headers.get(e)},L.prototype.open=function(e,t,i,n,r,s,o){var a=null,l=new m,u=l.signal,c=new f;return d(r,{headers:o,credentials:s?"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 h(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){b(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,s=0;s<r.length;s+=1)r[s]===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=[],s=0;s<r.length;s+=1)r[s]!==t&&i.push(r[s]);0===i.length?delete n[e]:n[e]=i}},I.prototype=Object.create(v.prototype),Y.prototype=Object.create(v.prototype),U.prototype=Object.create(v.prototype);function F(e,t){return e=null==e?t:parseInt(e,10),z(e=e!=e?t:e)}function j(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}}var G=/^text\/event\-stream(;.*)?$/i,z=function(e){return Math.min(Math.max(e,1e3),18e6)};function _(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,s,e){s=String(s);function o(e,t,n,r){var i,s;0===w&&(200===e&&null!=n&&G.test(n)?(w=1,p=Date.now(),m=h,l.readyState=1,i=new Y("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),j(l,l.onopen,i)):(s="",s=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.",O(),i=new Y("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),j(l,l.onerror,i),console.error(s)))}function a(e){if(1===w){for(var t=-1,n=0;n<e.length;n+=1)(o=e.charCodeAt(n))!=="\n".charCodeAt(0)&&o!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?S:"")+e.slice(0,t+1);S=(-1===t?S:"")+e.slice(t+1),""!==e&&(p=Date.now(),g+=e.length);for(var i=0;i<r.length;i+=1){var s,o=r.charCodeAt(i);if(-1===M&&o==="\n".charCodeAt(0))M=0;else if(-1===M&&(M=0),o==="\r".charCodeAt(0)||o==="\n".charCodeAt(0)){if(0!==M&&(1===M&&(D=i+1),s=r.slice(k,D-1),a=r.slice(D+(D<i&&r.charCodeAt(D)===" ".charCodeAt(0)?1:0),i),"data"===s?(T+="\n",T+=a):"id"===s?E=a:"event"===s?x=a:"retry"===s?(h=F(a,h),m=h):"heartbeatTimeout"===s&&(d=F(a,d),0!==_&&(P(_),_=A(function(){C()},d)))),0===M){if(""!==T){f=E;var a=new I(x=""===x?"message":x,{data:T.slice(1),lastEventId:E});if(l.dispatchEvent(a),"open"===x?j(l,l.onopen,a):"message"===x?j(l,l.onmessage,a):"error"===x&&j(l,l.onerror,a),2===w)return}x=T=""}M=o==="\r".charCodeAt(0)?-1:0}else 0===M&&(k=i,M=1),1===M?o===":".charCodeAt(0)&&(D=i+1,M=2):2===M&&(M=3)}}}function u(e){var t;1!==w&&0!==w||(w=-1,0!==_&&(P(_),_=0),_=A(function(){C()},m),m=z(Math.min(16*h,2*m)),l.readyState=0,t=new U("error",{error:e}),l.dispatchEvent(t),j(l,l.onerror,t),null!=e&&console.error(e))}var t=Boolean(e.withCredentials),c=e.lastEventIdQueryParameterName||"lastEventId",h=z(1e3),d=F(e.heartbeatTimeout,45e3),f="",m=h,p=!1,g=0,n=e.headers||{},e=e.Transport,y=H&&null==e?void 0:new $(new(null!=e?e:null!=N&&"withCredentials"in N.prototype||null==i?N:i)),b=new(null!=e&&"string"!=typeof e?e:null==y?L:R),v=void 0,_=0,w=-1,T="",E="",x="",S="",M=0,k=0,D=0,O=function(){w=2,null!=v&&(v.abort(),v=void 0),0!==_&&(P(_),_=0),l.readyState=2},C=function(){if(_=0,-1===w){p=!1,g=0,_=A(function(){C()},d),E=f,S=x=T="",M=D=k=w=0;var e=s;"data:"!==s.slice(0,5)&&"blob:"!==s.slice(0,5)&&""!==f&&(e=-1===(t=s.indexOf("?"))?s:s.slice(0,t+1)+s.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===c?"":e}),e+=(-1===s.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{v=b.open(y,o,a,u,e,t,n)}catch(e){throw O(),e}}else p||null==v?(t=Math.max((p||Date.now())+d-Date.now(),1),p=!1,_=A(function(){C()},t)):(u(new Error("No activity within "+d+" milliseconds. "+(0===w?"No response received.":g+" chars received.")+" Reconnecting.")),null!=v&&(v.abort(),v=void 0))};l.url=s,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=O,C()}(this,e,t)}var H=null!=d&&null!=o&&"body"in o.prototype;(_.prototype=Object.create(y.prototype)).CONNECTING=0,_.prototype.OPEN=1,_.prototype.CLOSED=2,_.prototype.close=function(){this._close()},_.CONNECTING=0,_.OPEN=1,_.CLOSED=2,_.prototype.withCredentials=void 0;e=n;null==N||null!=n&&"withCredentials"in n.prototype||(e=_),(o=w).EventSourcePolyfill=_,o.NativeEventSource=n,o.EventSource=e}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:he:globalThis)});const yr={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:"ΟΛΟΚΛΗΡΩΜΕΝΑ"}}};function br(e,t,n){const r=e.slice();return r[13]=t[n],r[15]=n,r}function vr(t){let i,n,s,r,o,e=t[3]("tournamentsFilter.tournaments")+"",a=t[0],l=[];for(let e=0;e<a.length;e+=1)l[e]=Sr(br(t,a,e));return{c(){i=S("ul"),n=S("li"),s=M(e),r=M(":"),o=k();for(let e=0;e<l.length;e+=1)l[e].c();O(n,"class",fr(t[4])?"MobileClass":"Non-MobileClass/empty"),O(i,"class",fr(t[4])?"MobileClass":"Non-MobileClass/empty")},m(e,t){E(e,i,t),T(i,n),T(n,s),T(n,r),T(i,o);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")+"")&&C(s,e),63&n){let e;for(a=t[0],e=0;e<a.length;e+=1){var r=br(t,a,e);l[e]?l[e].p(r,n):(l[e]=Sr(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&&x(i),p(l,e)}}}function _r(){let n,r;return{c(){n=t("svg"),r=t("path"),O(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"),O(n,"xmlns","http://www.w3.org/2000/svg"),O(n,"width","16"),O(n,"height","16"),O(n,"fill","currentColor"),O(n,"class","bi bi-check"),O(n,"viewBox","0 0 16 16")},m(e,t){E(e,n,t),T(n,r)},d(e){e&&x(n)}}}function wr(e){let n,r=e[3]("tournamentsFilter.scheduled")+"";return{c(){n=M(r)},m(e,t){E(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.scheduled")+"")&&C(n,r)},d(e){e&&x(n)}}}function Tr(e){let n,r=e[3]("tournamentsFilter.ongoing")+"";return{c(){n=M(r)},m(e,t){E(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.ongoing")+"")&&C(n,r)},d(e){e&&x(n)}}}function Er(e){let n,r=e[3]("tournamentsFilter.finished")+"";return{c(){n=M(r)},m(e,t){E(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.finished")+"")&&C(n,r)},d(e){e&&x(n)}}}function xr(e){let n,r=e[3]("tournamentsFilter.all")+"";return{c(){n=M(r)},m(e,t){E(e,n,t)},p(e,t){8&t&&r!==(r=e[3]("tournamentsFilter.all")+"")&&C(n,r)},d(e){e&&x(n)}}}function Sr(n){let r,i,s,o,a,l,u,c,h,d,f,m=(1==n[1][n[15]]||n[2]&&0==n[15])&&_r(),p="Scheduled"==n[13]&&wr(n),g="Ongoing"==n[13]&&Tr(n),y="Finished"==n[13]&&Er(n),b="All"==n[13]&&xr(n);function v(){return n[8](n[13],n[15])}return{c(){r=S("li"),i=S("button"),m&&m.c(),s=k(),o=S("div"),p&&p.c(),a=k(),g&&g.c(),l=k(),y&&y.c(),u=k(),b&&b.c(),h=k(),O(o,"class","FilterButton "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),O(i,"class",c=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){E(e,r,t),T(r,i),m&&m.m(i,null),T(i,s),T(i,o),p&&p.m(o,null),T(o,a),g&&g.m(o,null),T(o,l),y&&y.m(o,null),T(o,u),b&&b.m(o,null),T(r,h),d||(f=D(r,"click",v),d=!0)},p(e,t){1==(n=e)[1][n[15]]||n[2]&&0==n[15]?m||(m=_r(),m.c(),m.m(i,s)):m&&(m.d(1),m=null),"Scheduled"==n[13]?p?p.p(n,t):(p=wr(n),p.c(),p.m(o,a)):p&&(p.d(1),p=null),"Ongoing"==n[13]?g?g.p(n,t):(g=Tr(n),g.c(),g.m(o,l)):g&&(g.d(1),g=null),"Finished"==n[13]?y?y.p(n,t):(y=Er(n),y.c(),y.m(o,u)):y&&(y.d(1),y=null),"All"==n[13]?b?b.p(n,t):(b=xr(n),b.c(),b.m(o,null)):b&&(b.d(1),b=null),6&t&&c!==(c=(1==n[1][n[15]]||n[2]&&0==n[15]?"Active":"")+" "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty"))&&O(i,"class",c)},d(e){e&&x(r),m&&m.d(),p&&p.d(),g&&g.d(),y&&y.d(),b&&b.d(),d=!1,f()}}}function Mr(e){let n,r=0<e[0].length&&vr(e);return{c(){n=S("div"),r&&r.c(),this.c=b,O(n,"class","FiltersController "+(fr(e[4])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){E(e,n,t),r&&r.m(n,null)},p(e,[t]){0<e[0].length?r?r.p(e,t):(r=vr(e),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:b,o:b,d(e){e&&x(n),r&&r.d()}}}function kr(e,t,n){let r;X(e,dr,e=>n(3,r=e));let{filters:i=""}=t,{activefilters:s=""}=t,o=[],a=0,l=new Array(100),u=!0,c=window.navigator.userAgent;Object.keys(yr).forEach(e=>{Wn(e,yr[e])});const h=(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<o.length;e++)1==l[e]&&t.push(o[e]);window.postMessage({type:"TournamentsFiltersSelected",filters:t})}};return e.$$set=e=>{"filters"in e&&n(6,i=e.filters),"activefilters"in e&&n(7,s=e.activefilters)},e.$$.update=()=>{64&e.$$.dirty&&i&&(n(0,o=i.split(",")),a=o.length),128&e.$$.dirty&&s&&(()=>{let e=s.split(",");n(1,l=new Array(a)),-1!=e.indexOf("All")?n(2,u=!0):(n(2,u=!1),e.forEach(e=>{e=o.indexOf(e);0<e&&n(1,l[e]=1,l)}))})()},[o,l,u,r,c,h,i,s,(e,t)=>h(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:#FFFFFF;opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:#00000029;justify-content:center;padding:10px;height:40px;border:1px solid #fff;min-width:40px;text-align:center;color:#fff}button.MobileClass{height:30px}button:hover{background-color:#c3c3c3;border:1px solid #c3c3c3;color:#000;cursor:pointer}.FiltersController{background:#000;color:#fff;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:#58586B;border:1px solid #58586B}.FiltersController .Active:hover{background-color:#58586B;border:1px solid #58586B}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},kr,Mr,n,{filters:6,activefilters:7}),e&&(e.target&&E(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["filters","activefilters"]}get filters(){return this.$$.ctx[6]}set filters(e){this.$set({filters:e}),I()}get activefilters(){return this.$$.ctx[7]}set activefilters(e){this.$set({activefilters:e}),I()}});var Dr=de(function(An,e){An.exports=function(){var e;function m(){return e.apply(null,arguments)}function o(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 s(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 h(e,t,n,r){return Ot(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 d(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=h(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},b=m.momentProperties=[],t=!1;function v(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),0<b.length)for(n=0;n<b.length;n++)s(i=t[r=b[n]])||(e[r]=i);return e}function _(e){v(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 w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function T(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,s){var o=!0;return c(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,i),o){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),o=!1}return s.apply(this,arguments)},s)}var E={};function x(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),E[e]||(T(t),E[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(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 k(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var D=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function O(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 C=/(\[[^\[]*\])|(\\)?([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,P={},N={};function $(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(N[e]=i),t&&(N[t[0]]=function(){return O(i.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=L(t,e.localeData()),P[t]=P[t]||function(r){for(var e,i=r.match(C),t=0,s=i.length;t<s;t++)N[i[t]]?i[t]=N[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<s;n++)t+=S(i[n])?i[n].call(e,r):i[n];return t}}(t),P[t](e)):e.localeData().invalidDate()}function L(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 I={};function Y(e,t){var n=e.toLowerCase();I[n]=I[n+"s"]=I[t]=e}function U(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)f(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var j={};function G(e,t){j[e]=t}function z(e){return e%4==0&&e%100!=0||e%400==0}function H(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function B(e){var t=+e,e=0;return e=0!=t&&isFinite(t)?H(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&&z(e.year())&&1===e.month()&&29===e.date()?(n=B(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),De(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}/,se=/[+-]?\d{1,6}/,oe=/\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 he(e,n,r){me[e]=S(n)?n:function(e,t){return e&&r?r:n}}function de(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]=B(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 be,ve=0,_e=1,we=2,Te=3,Ee=4,xe=5,Se=6,Me=7,ke=8;function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?z(e)?29:28:31-n%7%2}be=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Y("month","M"),G("month",8),he("M",ee),he("MM",ee,q),he("MMM",function(e,t){return t.monthsShortRegex(e)}),he("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[_e]=B(e)-1}),ge(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[_e]=r:p(n).invalidMonth=e});var Oe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ce="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe=ce,Ne=ce;function $e(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=B(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),De(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Re(e){return null!=e?($e(this,e),m.updateOffset(this,!0),this):V(this,"Month")}function Le(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],s=0;s<12;s++)t=h([2e3,s]),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),s=0;s<12;s++)n[s]=fe(n[s]),r[s]=fe(r[s]);for(s=0;s<24;s++)i[s]=fe(i[s]);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 Ie(e){return z(e)?366:365}$("Y",0,0,function(){var e=this.year();return e<=9999?O(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),G("year",1),he("Y",ae),he("YY",ee,q),he("YYYY",ie,K),he("YYYYY",se,Q),he("YYYYYY",se,Q),ge(["YYYYY","YYYYYY"],ve),ge("YYYY",function(e,t){t[ve]=2===e.length?m.parseTwoDigitYear(e):B(e)}),ge("YY",function(e,t){t[ve]=m.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[ve]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return B(e)+(68<B(e)?1900:2e3)};var Ye=W("FullYear",!0);function Ue(e,t,n,r,i,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,s,o),a}function Fe(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 je(e,t,n){n=7+t-n;return-(7+Fe(e,0,n).getUTCDay()-t)%7+n-1}function Ge(e,t,n,r,i){var s,i=1+7*(t-1)+(7+n-r)%7+je(e,r,i),i=i<=0?Ie(s=e-1)+i:i>Ie(e)?(s=e+1,i-Ie(e)):(s=e,i);return{year:s,dayOfYear:i}}function ze(e,t,n){var r,i,s=je(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+He(i=e.year()-1,t,n):s>He(e.year(),t,n)?(r=s-He(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function He(e,t,n){var r=je(e,t,n),n=je(e+1,t,n);return(Ie(e)-r+n)/7}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),G("week",5),G("isoWeek",5),he("w",ee),he("ww",ee,q),he("W",ee),he("WW",ee,q),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=B(e)});function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),G("day",11),G("weekday",11),G("isoWeekday",11),he("d",ee),he("e",ee),he("E",ee),he("dd",function(e,t){return t.weekdaysMinRegex(e)}),he("ddd",function(e,t){return t.weekdaysShortRegex(e)}),he("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]=B(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=[],s=[],o=[],a=[],l=0;l<7;l++)r=h([2e3,1]).day(l),t=fe(this.weekdaysMin(r,"")),n=fe(this.weekdaysShort(r,"")),r=fe(this.weekdays(r,"")),i.push(t),s.push(n),o.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Qe),$("k",["kk",2],0,function(){return this.hours()||24}),$("hmm",0,0,function(){return""+Qe.apply(this)+O(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Qe.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),et("a",!0),et("A",!1),Y("hour","h"),G("hour",13),he("a",tt),he("A",tt),he("H",ee),he("h",ee),he("k",ee),he("HH",ee,q),he("hh",ee,q),he("kk",ee,q),he("hmm",te),he("hmmss",ne),he("Hmm",te),he("Hmmss",ne),ge(["H","HH"],Te),ge(["k","kk"],function(e,t,n){e=B(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]=B(e),p(n).bigHour=!0}),ge("hmm",function(e,t,n){var r=e.length-2;t[Te]=B(e.substr(0,r)),t[Ee]=B(e.substr(r)),p(n).bigHour=!0}),ge("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Te]=B(e.substr(0,r)),t[Ee]=B(e.substr(r,2)),t[xe]=B(e.substr(i)),p(n).bigHour=!0}),ge("Hmm",function(e,t,n){var r=e.length-2;t[Te]=B(e.substr(0,r)),t[Ee]=B(e.substr(r))}),ge("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Te]=B(e.substr(0,r)),t[Ee]=B(e.substr(r,2)),t[xe]=B(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:Oe,monthsShort:Ce,week:{dow:0,doy:6},weekdays:We,weekdaysMin:Xe,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},st={},ot={};function at(e){return e&&e.toLowerCase().replace("_","-")}function lt(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=at(e[s]).split("-")).length,n=(n=at(e[s+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--}s++}return rt}function ut(t){var e;if(void 0===st[t]&&An&&An.exports)try{e=rt._abbr,Pn(),ct(e)}catch(e){st[t]=null}return st[t]}function ct(e,t){return e&&((t=s(t)?dt(e):ht(e,t))?rt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function ht(e,t){if(null===t)return delete st[e],null;var n,r=it;if(t.abbr=e,null!=st[e])x("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=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new k(M(r,t)),ot[e]&&ot[e].forEach(function(e){ht(e.name,e.config)}),ct(e),st[e]}function dt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return rt;if(!o(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[_e]<0||11<t[_e]?_e:t[we]<1||t[we]>De(t[ve],t[_e])?we:t[Te]<0||24<t[Te]||24===t[Te]&&(0!==t[Ee]||0!==t[xe]||0!==t[Se])?Te:t[Ee]<0||59<t[Ee]?Ee:t[xe]<0||59<t[xe]?xe:t[Se]<0||999<t[Se]?Se:-1,p(e)._overflowDayOfYear&&(t<ve||we<t)&&(t=we),p(e)._overflowWeeks&&-1===t&&(t=Me),p(e)._overflowWeekday&&-1===t&&(t=ke),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]],bt=[["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/]],vt=/^\/?Date\((-?\d+)/i,_t=/^(?:(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}))$/,wt={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,s,o,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=bt.length;t<n;t++)if(bt[t][1].exec(l[3])){s=(l[2]||" ")+bt[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),kt(e)}else e._isValid=!1}function Et(e,t,n,r,i,s){i=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ce.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&i.push(parseInt(s,10)),i}function xt(e){var t,n,r,i,s=_t.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=Et(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[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=s[8],t=s[9],s=s[10],i?wt[i]:t?0:((t=parseInt(s,10))-(s=t%100))/100*60+s),e._d=Fe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function St(e,t,n){return null!=e?e:null!=t?t:n}function Mt(e){var t,n,r,i,s,o,a,l,u,c,h,d,f=[];if(!e._d){for(h=e,d=new Date(m.now()),n=h._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[we]&&null==e._a[_e]&&(null!=(h=(i=e)._w).GG||null!=h.W||null!=h.E?(l=1,u=4,s=St(h.GG,i._a[ve],ze(Ct(),1,4).year),o=St(h.W,1),((a=St(h.E,1))<1||7<a)&&(c=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,d=ze(Ct(),l,u),s=St(h.gg,i._a[ve],d.year),o=St(h.w,d.week),null!=h.d?((a=h.d)<0||6<a)&&(c=!0):null!=h.e?(a=h.e+l,(h.e<0||6<h.e)&&(c=!0)):a=l),o<1||o>He(s,l,u)?p(i)._overflowWeeks=!0:null!=c?p(i)._overflowWeekday=!0:(u=Ge(s,o,a,l,u),i._a[ve]=u.year,i._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(r=St(e._a[ve],n[ve]),(e._dayOfYear>Ie(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),r=Fe(r,0,e._dayOfYear),e._a[_e]=r.getUTCMonth(),e._a[we]=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[Ee]&&0===e._a[xe]&&0===e._a[Se]&&(e._nextDay=!0,e._a[Te]=0),e._d=(e._useUTC?Fe: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 kt(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,s=0,o=L(e._f,e._locale).match(C)||[],a=0;a<o.length;a++)n=o[a],(t=(r.match(de(n,e))||[])[0])&&(0<(h=r.substr(0,r.indexOf(t))).length&&p(e).unusedInput.push(h),r=r.slice(r.indexOf(t)+t.length),s+=t.length),N[n]?(t?p(e).empty=!1:p(e).unusedTokens.push(n),c=n,d=e,null!=(h=t)&&f(pe,c)&&pe[c](h,d._a,d,c)):e._strict&&!t&&p(e).unusedTokens.push(n);p(e).charsLeftOver=i-s,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[ve]=e._locale.erasConvertYear(u,e._a[ve])),Mt(e),ft(e)}else xt(e);else Tt(e);var l,u,c,h,d}function Dt(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(ft(t)):(i(t)?e._d=t:o(n)?function(e){var t,n,r,i,s,o,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++)s=0,o=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),d(t)&&(o=!0),s+=p(t).charsLeftOver,s+=10*p(t).unusedTokens.length,p(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o&&(a=!0));c(e,n||t)}(e):n?kt(e):s(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=vt.exec(e._i);null===t?(Tt(e),!1===e._isValid&&(delete e._isValid,xt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:m.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):o(n)?(t._a=r(n.slice(0),function(e){return parseInt(e,10)}),Mt(t)):a(n)?function(e){var t,n;e._d||(n=void 0===(t=F(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)}),Mt(e))}(t):u(n)?t._d=new Date(n):m.createFromInputFallback(t),d(e)||(e._d=null),e))}function Ot(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,(s=new _(ft(Dt(s=s))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ct(e,t,n,r){return Ot(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=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Pt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:g()});function Nt(e,t){var n,r;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return Ct();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var $t=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var t=F(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||t.isoWeek||0,o=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===be.call($t,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<$t.length;++n)if(e[$t[n]]){if(r)return!1;parseFloat(e[$t[n]])!==B(e[$t[n]])&&(r=!0)}return!0}(t),this._milliseconds=+e+1e3*u+6e4*l+1e3*a*60*60,this._days=+o+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=dt(),this._bubble()}function Lt(e){return e instanceof Rt}function It(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Yt(e,n){$(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+O(~~(e/60),2)+n+O(~~e%60,2)})}Yt("Z",":"),Yt("ZZ",""),he("Z",ue),he("ZZ",ue),ge(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(ue,e)});var Ut=/([\+\-]|\d\d)/gi;function Ft(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ut)||["-",0,0])[1]+B(e[2]))?0:"+"===e[0]?t:-t}function jt(e,t){var n;return t._isUTC?(n=t.clone(),t=(w(e)||i(e)?e:Ct(e)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+t),m.updateOffset(n,!1),n):Ct(e).local()}function Gt(e){return-Math.round(e._d.getTimezoneOffset())}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var Ht=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?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,s=null;return Lt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=Ht.exec(e))?(n="-"===s[1]?-1:1,i={y:0,d:B(s[we])*n,h:B(s[Te])*n,m:B(s[Ee])*n,s:B(s[xe])*n,ms:B(It(1e3*s[Se]))*n}):(s=Bt.exec(e))?(n="-"===s[1]?-1:1,i={y:Vt(s[2],n),M:Vt(s[3],n),w:Vt(s[4],n),d:Vt(s[5],n),h:Vt(s[6],n),m:Vt(s[7],n),s:Vt(s[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=Ct(i.from),n=Ct(i.to),r=s.isValid()&&n.isValid()?(n=jt(n,s),s.isBefore(n)?r=Xt(s,n):((r=Xt(n,s)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=r.milliseconds,i.M=r.months),i=new Rt(i),Lt(e)&&f(e,"_locale")&&(i._locale=e._locale),Lt(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)||(x(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,s=It(t._days),t=It(t._months);e.isValid()&&(r=null==r||r,t&&$e(e,V(e,"Month")+t*n),s&&X(e,"Date",V(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&m.updateOffset(e,s||t))}Wt.fn=Rt.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 w(e)||i(e)||Kt(e)||u(e)||(n=o(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,s=["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<s.length;t+=1)n=s[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=dt(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 sn(e,t){return(e%t+t)%t}function on(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(),s=0,o=i.length;s<o;++s)t.push(fe(i[s].name)),e.push(fe(i[s].abbr)),n.push(fe(i[s].narrow)),r.push(fe(i[s].name)),r.push(fe(i[s].abbr)),r.push(fe(i[s].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){$(0,[e,e.length],0,t)}function hn(e,t,n,r,i){var s;return null==e?ze(this,r,i).year:(t>(s=He(e,r,i))&&(t=s),function(e,t,n,r,i){i=Ge(e,t,n,r,i),i=Fe(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))}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),he("N",ln),he("NN",ln),he("NNN",ln),he("NNNN",function(e,t){return t.erasNameRegex(e)}),he("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}),he("y",oe),he("yy",oe),he("yyy",oe),he("yyyy",oe),he("yo",function(e,t){return t._eraYearOrdinalRegex||oe}),ge(["y","yy","yyy","yyyy"],ve),ge(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,i):t[ve]=parseInt(e,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),G("weekYear",1),G("isoWeekYear",1),he("G",ae),he("g",ae),he("GG",ee,q),he("gg",ee,q),he("GGGG",ie,K),he("gggg",ie,K),he("GGGGG",se,Q),he("ggggg",se,Q),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=B(e)}),ye(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),Y("quarter","Q"),G("quarter",7),he("Q",Z),ge("Q",function(e,t){t[_e]=3*(B(e)-1)}),$("D",["DD",2],"Do","date"),Y("date","D"),G("date",9),he("D",ee),he("DD",ee,q),he("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],we),ge("Do",function(e,t){t[we]=B(e.match(ee)[0])});ne=W("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),G("dayOfYear",4),he("DDD",re),he("DDDD",J),ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=B(e)}),$("m",["mm",2],0,"minute"),Y("minute","m"),G("minute",14),he("m",ee),he("mm",ee,q),ge(["m","mm"],Ee);Oe=W("Minutes",!1);$("s",["ss",2],0,"second"),Y("second","s"),G("second",15),he("s",ee),he("ss",ee,q),ge(["s","ss"],xe);var dn,We=W("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),G("millisecond",16),he("S",re,Z),he("SS",re,q),he("SSS",re,J),dn="SSSS";dn.length<=9;dn+="S")he(dn,oe);function fn(e,t){t[Se]=B(1e3*("0."+e))}for(dn="S";dn.length<=9;dn+="S")ge(dn,fn);Xe=W("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");ie=_.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||Ct(),e=jt(n,this).startOf("day"),e=m.calendarFormat(this,e)||"sameElse",t=t&&(S(t[e])?t[e].call(this,n):t[e]);return this.format(t||this.localeData().calendar(e,this,Ct(n)))},ie.clone=function(){return new _(this)},ie.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=jt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":s=en(this,r)/12;break;case"month":s=en(this,r);break;case"quarter":s=en(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:H(s)},ie.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:on,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-sn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-sn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-sn(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=R(this,e),this.localeData().postformat(e)},ie.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.fromNow=function(e){return this.from(Ct(),e)},ie.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.toNow=function(e){return this.to(Ct(),e)},ie.get=function(e){return S(this[e=U(e)])?this[e]():this},ie.invalidAt=function(){return p(this).overflow},ie.isAfter=function(e,t){return e=w(e)?e:Ct(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=w(e)?e:Ct(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=w(e)?e:Ct(e),t=w(t)?t:Ct(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=w(e)?e:Ct(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 d(this)},ie.lang=te,ie.locale=tn,ie.localeData=nn,ie.max=Pt,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:j[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=F(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(S(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:on,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-=sn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=sn(t,6e4);break;case"second":t=this._d.valueOf(),t-=sn(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()?R(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(e,"Z")):R(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=Ye,ie.isLeapYear=function(){return z(this.year())},ie.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ie.isoWeekYear=function(e){return hn.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=Re,ie.daysInMonth=function(){return De(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=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ie.weeksInYear=function(){var e=this.localeData()._week;return He(this.year(),e.dow,e.doy)},ie.weeksInWeekYear=function(){var e=this.localeData()._week;return He(this.weekYear(),e.dow,e.doy)},ie.isoWeeksInYear=function(){return He(this.year(),1,4)},ie.isoWeeksInISOWeekYear=function(){return He(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=Oe,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:Gt(this);if("string"==typeof e){if(null===(e=Ft(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Gt(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(Gt(this),"m")),this},ie.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Ft(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},ie.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ct(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=zt,ie.isUTC=zt,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",Re),ie.years=n("years accessor is deprecated. Use year instead",Ye),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(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Dt(t))._a?(e=(t._isUTC?h:Ct)(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),s=0,o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&B(e[o])!==B(t[o]))&&s++;return s+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});K=k.prototype;function pn(e,t,n,r){var i=dt(),t=h().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,s=dt(),o=e?s._week.dow:0,a=[];if(null!=n)return pn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=pn(t,(i+o)%7,r,"day");return a}K.calendar=function(e,t,n){return S(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(C).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 S(i)?i(e,t,n,r):i.replace(/%d/i,e)},K.pastFuture=function(e,t){return S(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)&&(S(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||dt("en")._eras,i=0,s=r.length;i<s;++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,s,o,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(s=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(s===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[s,o,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?(o(this._months)?this._months:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},K.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Ae.test(t)?"format":"standalone"])[e.month()]:o(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,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,e))?i:null:-1!==(i=be.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,e))||-1!==(i=be.call(this._longMonthsParse,e))?i:null:-1!==(i=be.call(this._longMonthsParse,e))||-1!==(i=be.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=h([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")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Ne),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Pe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(e){return ze(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=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Be(t,this._week.dow):e?t[e.day()]:t},K.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},K.weekdaysShort=function(e){return!0===e?Be(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,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=be.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=be.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=be.call(this._weekdaysParse,e))||-1!==(i=be.call(this._shortWeekdaysParse,e))||-1!==(i=be.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,e))||-1!==(i=be.call(this._weekdaysParse,e))||-1!==(i=be.call(this._minWeekdaysParse,e))?i:null:-1!==(i=be.call(this._minWeekdaysParse,e))||-1!==(i=be.call(this._weekdaysParse,e))||-1!==(i=be.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=h([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===B(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.",dt);var bn=Math.abs;function vn(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 _n(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}se=En("ms"),Q=En("s"),Z=En("m"),q=En("h"),re=En("d"),J=En("w"),Jt=En("M"),Pt=En("Q"),At=En("y");function xn(e){return function(){return this.isValid()?this._data[e]:NaN}}ce=xn("milliseconds"),nt=xn("seconds"),Oe=xn("minutes"),We=xn("hours"),Xe=xn("days"),ne=xn("months"),Ye=xn("years");var Sn=Math.round,Mn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kn(e,t,n,r){var i=Wt(e).abs(),s=Sn(i.as("s")),o=Sn(i.as("m")),a=Sn(i.as("h")),l=Sn(i.as("d")),u=Sn(i.as("M")),c=Sn(i.as("w")),i=Sn(i.as("y")),l=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||o<=1&&["m"]||o<n.m&&["mm",o]||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 Dn=Math.abs;function On(e){return(0<e)-(e<0)||+e}function Cn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,s,o,a=Dn(this._milliseconds)/1e3,l=Dn(this._days),u=Dn(this._months),c=this.asSeconds();return c?(e=H(a/60),t=H(e/60),a%=60,e%=60,n=H(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=On(this._months)!==On(c)?"-":"",s=On(this._days)!==On(c)?"-":"",o=On(this._milliseconds)!==On(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"}K=Rt.prototype;return K.isValid=function(){return this._isValid},K.abs=function(){var e=this._data;return this._milliseconds=bn(this._milliseconds),this._days=bn(this._days),this._months=bn(this._months),e.milliseconds=bn(e.milliseconds),e.seconds=bn(e.seconds),e.minutes=bn(e.minutes),e.hours=bn(e.hours),e.months=bn(e.months),e.years=bn(e.years),this},K.add=function(e,t){return vn(this,e,t,1)},K.subtract=function(e,t){return vn(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+wn(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=se,K.asSeconds=Q,K.asMinutes=Z,K.asHours=q,K.asDays=re,K.asWeeks=J,K.asMonths=Jt,K.asQuarters=Pt,K.asYears=At,K.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*B(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*_n(Tn(n)+t),n=t=0),r.milliseconds=e%1e3,e=H(e/1e3),r.seconds=e%60,e=H(e/60),r.minutes=e%60,e=H(e/60),r.hours=e%24,t+=H(e/24),n+=e=H(wn(t)),t-=_n(Tn(e)),e=H(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=Oe,K.hours=We,K.days=Xe,K.weeks=function(){return H(this.days()/7)},K.months=ne,K.years=Ye,K.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Mn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Mn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),r=kn(this,!n,r,t=this.localeData()),n&&(r=t.pastFuture(+this,r)),t.postformat(r)},K.toISOString=Cn,K.toString=Cn,K.toJSON=Cn,K.locale=tn,K.localeData=nn,K.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cn),K.lang=te,$("X",0,0,"unix"),$("x",0,0,"valueOf"),he("x",ae),he("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(B(e))}),m.version="2.29.1",e=Ct,m.fn=ie,m.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=h,m.unix=function(e){return Ct(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=w,m.weekdays=function(e,t,n){return yn(e,t,n,"weekdays")},m.parseZone=function(){return Ct.apply(null,arguments).parseZone()},m.localeData=dt,m.isDuration=Lt,m.monthsShort=function(e,t){return gn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return yn(e,t,n,"weekdaysMin")},m.defineLocale=ht,m.updateLocale=function(e,t){var n,r;return null!=t?(r=it,null!=st[e]&&null!=st[e].parentLocale?st[e].set(M(st[e]._config,t)):(t=M(r=null!=(n=ut(e))?n._config:r,t),null==n&&(t.abbr=e),(t=new k(t)).parentLocale=st[e],st[e]=t),ct(e)):null!=st[e]&&(null!=st[e].parentLocale?(st[e]=st[e].parentLocale,e===ct()&&ct(e)):null!=st[e]&&delete st[e]),st[e]},m.locales=function(){return D(st)},m.weekdaysShort=function(e,t,n){return yn(e,t,n,"weekdaysShort")},m.normalizeUnits=U,m.relativeTimeRounding=function(e){return void 0===e?Sn:"function"==typeof e&&(Sn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Mn[e]&&(void 0===t?Mn[e]:(Mn[e]=t,"s"===e&&(Mn.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 Or={en:{tournamentsList:{nothing:"Nothing to show here."}},tr:{tournamentsList:{nothing:"Gösterilecek."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}}},Cr={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"There was an error joining the tournament - "}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά την διαδικασία εγγραφής στο τουρνουά - "}}},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"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"BAŞLAMA SAATİ:",mostRounds:"MostRounds"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων: ",seegames:"Μπορείε να δεις τα παιχνίδια",here:"εδώ",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",startingAt:"ΑΡΧΙΖΕΙ",mostRounds:"MostRounds"}}};function Pr(n){let r,i,s,o;return{c(){r=S("div"),i=M(n[12]),O(r,"class","Status")},m(e,t){E(e,r,t),T(r,i),s||(o=g(n[15].call(null,r)),s=!0)},p(e,t){4096&t&&C(i,e[12])},d(e){e&&x(r),s=!1,o()}}}function Nr(e){let n,r=e[5]&&$r(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),E(e,n,t)},p(e,t){e[5]?r?r.p(e,t):(r=$r(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&x(n)}}}function $r(e){let n,r,i=e[13]("tournamentsThumbnail.enrolled")+"";return{c(){n=S("div"),r=M(i),O(n,"class","Enrolled")},m(e,t){E(e,n,t),T(n,r)},p(e,t){8192&t&&i!==(i=e[13]("tournamentsThumbnail.enrolled")+"")&&C(r,i)},d(e){e&&x(n)}}}function Rr(n){let r,i,s,o;return{c(){r=S("div"),O(r,"class",i="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),_(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){E(e,r,t),s||(o=g(n[15].call(null,r)),s=!0)},p(e,t){4&t&&i!==(i="CardImg "+("Closing"==e[2]||"Closed"==e[2]?"CardImgFinished":""))&&O(r,"class",i)},d(e){e&&x(r),s=!1,o()}}}function Lr(n){let r,i,s,o;return{c(){r=S("div"),O(r,"class",i="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),_(r,"background-image","url('"+n[4]+"')")},m(e,t){E(e,r,t),s||(o=g(n[15].call(null,r)),s=!0)},p(e,t){4&t&&i!==(i="CardImg "+("Closing"==e[2]||"Closed"==e[2]?"CardImgFinished":""))&&O(r,"class",i),16&t&&_(r,"background-image","url('"+e[4]+"')")},d(e){e&&x(r),s=!1,o()}}}function Ir(n){let r,i,s,o,a;return{c(){r=S("div"),i=M(n[10]),O(r,"class","Date")},m(e,t){E(e,r,t),T(r,i),o||(a=g(s=n[14].call(null,r,n[1])),o=!0)},p(e,t){1024&t&&C(i,e[10]),s&&f(s.update)&&2&t&&s.update.call(null,e[1])},d(e){e&&x(r),o=!1,a()}}}function Yr(n){let r,i,s,o,a,l,u,c,h,d,f,m,p,g=n[13]("tournamentsThumbnail.scoreCriteria")+"",y=n[13]("tournamentsThumbnail.seegames")+"",b=n[13]("tournamentsThumbnail.here")+"";function v(e){return"BetCount"==e[6]?Fr:Ur}let _=v(n),w=_(n);return{c(){r=S("div"),i=S("p"),s=M(g),o=M(":\n "),w.c(),a=k(),l=S("div"),u=S("p"),c=M(y),h=k(),d=S("a"),f=M(b),O(r,"class","ScoreCriteria"),O(d,"href",n[9]),O(d,"target","_blank"),O(l,"class","Games")},m(e,t){E(e,r,t),T(r,i),T(i,s),T(i,o),w.m(i,null),E(e,a,t),E(e,l,t),T(l,u),T(u,c),T(u,h),T(u,d),T(d,f),m||(p=D(d,"click",n[20]),m=!0)},p(e,t){8192&t&&g!==(g=e[13]("tournamentsThumbnail.scoreCriteria")+"")&&C(s,g),_===(_=v(e))&&w?w.p(e,t):(w.d(1),w=_(e),w&&(w.c(),w.m(i,null))),8192&t&&y!==(y=e[13]("tournamentsThumbnail.seegames")+"")&&C(c,y),8192&t&&b!==(b=e[13]("tournamentsThumbnail.here")+"")&&C(f,b),512&t&&O(d,"href",e[9])},d(e){e&&x(r),w.d(),e&&x(a),e&&x(l),m=!1,p()}}}function Ur(e){let n;return{c(){n=M(e[6])},m(e,t){E(e,n,t)},p(e,t){64&t&&C(n,e[6])},d(e){e&&x(n)}}}function Fr(e){let n,r,i,s,o,a,l=e[13]("tournamentsThumbnail.mostRounds")+"",u=e[13]("tournamentsThumbnail.minbet")+"";return{c(){n=M(l),r=M("\n ("),i=M(u),s=M(": "),o=M(e[7]),a=M(")")},m(e,t){E(e,n,t),E(e,r,t),E(e,i,t),E(e,s,t),E(e,o,t),E(e,a,t)},p(e,t){8192&t&&l!==(l=e[13]("tournamentsThumbnail.mostRounds")+"")&&C(n,l),8192&t&&u!==(u=e[13]("tournamentsThumbnail.minbet")+"")&&C(i,u),128&t&&C(o,e[7])},d(e){e&&x(n),e&&x(r),e&&x(i),e&&x(s),e&&x(o),e&&x(a)}}}function jr(e){let n,r,i,s,o,a,l,u,c,h=e[2]&&Pr(e),d="true"==e[8]&&Nr(e);function f(e){return e[4]?Lr:Rr}let m=f(e),p=m(e),g=e[1]&&Ir(e),y=e[11]&&Yr(e);return{c(){n=S("div"),h&&h.c(),r=k(),d&&d.c(),i=k(),p.c(),s=k(),o=S("div"),a=S("div"),l=M(e[0]),u=k(),g&&g.c(),c=k(),y&&y.c(),this.c=b,O(a,"class","Title"),O(o,"class","Details"),O(n,"class","Thumbnail")},m(e,t){E(e,n,t),h&&h.m(n,null),T(n,r),d&&d.m(n,null),T(n,i),p.m(n,null),T(n,s),T(n,o),T(o,a),T(a,l),T(o,u),g&&g.m(o,null),T(o,c),y&&y.m(o,null)},p(e,[t]){e[2]?h?h.p(e,t):(h=Pr(e),h.c(),h.m(n,r)):h&&(h.d(1),h=null),"true"==e[8]?d?d.p(e,t):(d=Nr(e),d.c(),d.m(n,i)):d&&(d.d(1),d=null),m===(m=f(e))&&p?p.p(e,t):(p.d(1),p=m(e),p&&(p.c(),p.m(n,s))),1&t&&C(l,e[0]),e[1]?g?g.p(e,t):(g=Ir(e),g.c(),g.m(o,c)):g&&(g.d(1),g=null),e[11]?y?y.p(e,t):(y=Yr(e),y.c(),y.m(o,null)):y&&(y.d(1),y=null)},i:b,o:b,d(e){e&&x(n),h&&h.d(),d&&d.d(),p.d(),g&&g.d(),y&&y.d()}}}function Gr(e,t,i){let s;X(e,dr,e=>i(13,s=e));let{session:n=""}=t,{userid:r=""}=t,{title:o=""}=t,{startdate:a=""}=t,{status:l=""}=t,{tourid:u=""}=t,{thumbnail:c=""}=t,{userenrolled:h=""}=t,{scorecriteria:d=""}=t,{minbetcount:f=""}=t,{showenrolled:m="false"}=t,{gameurl:p=""}=t,{lang:g="en"}=t,y,b=!1,v="";Object.keys(Ar).forEach(e=>{Wn(e,Ar[e])});const _=e=>{e.data&&"SessionID"==e.data.type&&i(11,b=!0)},w=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};return Z(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)})),e.$$set=e=>{"session"in e&&i(17,n=e.session),"userid"in e&&i(18,r=e.userid),"title"in e&&i(0,o=e.title),"startdate"in e&&i(1,a=e.startdate),"status"in e&&i(2,l=e.status),"tourid"in e&&i(3,u=e.tourid),"thumbnail"in e&&i(4,c=e.thumbnail),"userenrolled"in e&&i(5,h=e.userenrolled),"scorecriteria"in e&&i(6,d=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(19,g=e.lang)},e.$$.update=()=>{131072&e.$$.dirty&&n&&(0<n.length&&"false"!=n?i(11,b=!0):i(11,b=!1))},[o,a,l,u,c,h,d,f,m,p,"",b,v,s,()=>{let e=new Date(a),t=new Intl.DateTimeFormat(g,{month:"long"}).format(e),n=e.getDate(),r=e.toLocaleString(g,{hour:"numeric",minute:"numeric",hour12:!1});i(10,y=`${n} ${t}, `+s("tournamentsThumbnail.startingAt")+` ${r}`)},()=>{"Unstarted"==l&&i(12,v=s("tournamentsThumbnail.scheduled")),"Running"==l&&i(12,v=s("tournamentsThumbnail.ongoing")),"Closed"!=l&&"Closing"!=l||i(12,v=s("tournamentsThumbnail.finished"))},w,n,r,g,()=>w()]}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:#48952a;text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url(\"https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png\");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:#000000;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:#2B2B5D;color:#aaaabe;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Gr,jr,n,{session:17,userid:18,title:0,startdate:1,status:2,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:6,minbetcount:7,showenrolled:8,gameurl:9,lang:19}),e&&(e.target&&E(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang"]}get session(){return this.$$.ctx[17]}set session(e){this.$set({session:e}),I()}get userid(){return this.$$.ctx[18]}set userid(e){this.$set({userid:e}),I()}get title(){return this.$$.ctx[0]}set title(e){this.$set({title:e}),I()}get startdate(){return this.$$.ctx[1]}set startdate(e){this.$set({startdate:e}),I()}get status(){return this.$$.ctx[2]}set status(e){this.$set({status:e}),I()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$set({tourid:e}),I()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$set({thumbnail:e}),I()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$set({userenrolled:e}),I()}get scorecriteria(){return this.$$.ctx[6]}set scorecriteria(e){this.$set({scorecriteria:e}),I()}get minbetcount(){return this.$$.ctx[7]}set minbetcount(e){this.$set({minbetcount:e}),I()}get showenrolled(){return this.$$.ctx[8]}set showenrolled(e){this.$set({showenrolled:e}),I()}get gameurl(){return this.$$.ctx[9]}set gameurl(e){this.$set({gameurl:e}),I()}get lang(){return this.$$.ctx[19]}set lang(e){this.$set({lang:e}),I()}});const zr={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",days:"days",minutesleft:"minutes left",hoursleft:"hours left",daysleft:"days left"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",days:"gün",minutesleft:"dakika kaldı",hoursleft:"saat kaldı",daysleft:"gün kaldı"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",days:"ημέρες",minutesleft:"λεπτά απομένουν",hoursleft:"ώρες απομένουν",daysleft:"ημέρες απομένουν"}}};function Hr(n){let r,i,s,o,a,l,u,c,h,d;function f(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Vr:0<e[6]?Wr:Br}let m=f(n),p=m(n);return{c(){r=S("div"),i=S("div"),s=M(n[3]),o=k(),a=S("div"),l=M(n[4]),u=k(),c=S("div"),p.c(),O(i,"class","StartDate"),O(a,"class","EndDate"),O(r,"class","TournamentDates"),O(c,"class","ProgressBar")},m(e,t){E(e,r,t),T(r,i),T(i,s),T(r,o),T(r,a),T(a,l),E(e,u,t),E(e,c,t),p.m(c,null),h||(d=[g(n[12].call(null,i)),g(n[13].call(null,a)),g(n[14].call(null,c))],h=!0)},p(e,t){8&t&&C(s,e[3]),16&t&&C(l,e[4]),m===(m=f(e))&&p?p.p(e,t):(p.d(1),p=m(e),p&&(p.c(),p.m(c,null)))},d(e){e&&x(r),e&&x(u),e&&x(c),p.d(),h=!1,y(d)}}}function Br(e){let n,r,i,s=0<e[5]&&Xr(e);return{c(){n=S("div"),r=k(),s&&s.c(),i=l(),O(n,"class","ProgressBarFill"),_(n,"width",e[7]+"%")},m(e,t){E(e,n,t),E(e,r,t),s&&s.m(e,t),E(e,i,t)},p(e,t){128&t&&_(n,"width",e[7]+"%"),0<e[5]?s?s.p(e,t):(s=Xr(e),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(e){e&&x(n),e&&x(r),s&&s.d(e),e&&x(i)}}}function Wr(e){let n,r,i,s,o,a,l,u,c=e[11]("tournamentsDuration.starting")+"",h=e[11]("tournamentsDuration.days")+"";return{c(){n=S("div"),r=k(),i=S("div"),s=M(c),o=k(),a=M(e[6]),l=k(),u=M(h),O(n,"class","ProgressBarFillStarting"),O(i,"class","Remaining")},m(e,t){E(e,n,t),E(e,r,t),E(e,i,t),T(i,s),T(i,o),T(i,a),T(i,l),T(i,u)},p(e,t){2048&t&&c!==(c=e[11]("tournamentsDuration.starting")+"")&&C(s,c),64&t&&C(a,e[6]),2048&t&&h!==(h=e[11]("tournamentsDuration.days")+"")&&C(u,h)},d(e){e&&x(n),e&&x(r),e&&x(i)}}}function Vr(e){let n,r,i,s,o=e[11]("tournamentsDuration.finished")+"";return{c(){n=S("div"),r=k(),i=S("div"),s=M(o),O(n,"class","ProgressBarFillEnd"),O(i,"class","Finished")},m(e,t){E(e,n,t),E(e,r,t),E(e,i,t),T(i,s)},p(e,t){2048&t&&o!==(o=e[11]("tournamentsDuration.finished")+"")&&C(s,o)},d(e){e&&x(n),e&&x(r),e&&x(i)}}}function Xr(e){let n,r,i,s=e[8]&&Zr(e),o=e[9]&&qr(e),a=e[10]&&Jr(e);return{c(){s&&s.c(),n=k(),o&&o.c(),r=k(),a&&a.c(),i=l()},m(e,t){s&&s.m(e,t),E(e,n,t),o&&o.m(e,t),E(e,r,t),a&&a.m(e,t),E(e,i,t)},p(e,t){e[8]?s?s.p(e,t):(s=Zr(e),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null),e[9]?o?o.p(e,t):(o=qr(e),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),e[10]?a?a.p(e,t):(a=Jr(e),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},d(e){s&&s.d(e),e&&x(n),o&&o.d(e),e&&x(r),a&&a.d(e),e&&x(i)}}}function Zr(e){let n,r,i,s,o=e[11]("tournamentsDuration.minutesleft")+"";return{c(){n=S("div"),r=M(e[5]),i=k(),s=M(o),O(n,"class","Remaining")},m(e,t){E(e,n,t),T(n,r),T(n,i),T(n,s)},p(e,t){32&t&&C(r,e[5]),2048&t&&o!==(o=e[11]("tournamentsDuration.minutesleft")+"")&&C(s,o)},d(e){e&&x(n)}}}function qr(e){let n,r,i,s,o=e[11]("tournamentsDuration.hoursleft")+"";return{c(){n=S("div"),r=M(e[5]),i=k(),s=M(o),O(n,"class","Remaining")},m(e,t){E(e,n,t),T(n,r),T(n,i),T(n,s)},p(e,t){32&t&&C(r,e[5]),2048&t&&o!==(o=e[11]("tournamentsDuration.hoursleft")+"")&&C(s,o)},d(e){e&&x(n)}}}function Jr(e){let n,r,i,s,o=e[11]("tournamentsDuration.daysleft")+"";return{c(){n=S("div"),r=M(e[5]),i=k(),s=M(o),O(n,"class","Remaining")},m(e,t){E(e,n,t),T(n,r),T(n,i),T(n,s)},p(e,t){32&t&&C(r,e[5]),2048&t&&o!==(o=e[11]("tournamentsDuration.daysleft")+"")&&C(s,o)},d(e){e&&x(n)}}}function Kr(e){let n,r=e[0]&&e[1]&&Hr(e);return{c(){n=S("div"),r&&r.c(),this.c=b,O(n,"class","TournamentDuration")},m(e,t){E(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:b,o:b,d(e){e&&x(n),r&&r.d()}}}function Qr(e,t,r){let n;X(e,dr,e=>r(11,n=e));let{startdate:i=""}=t,{enddate:s=""}=t,{status:o=""}=t,{lang:a="en"}=t,l,u,c,h,d,f,m,p=!1,g=!1,y=!1;Object.keys(zr).forEach(e=>{Wn(e,zr[e])});const b=e=>{let t=new Date(e),n=new Intl.DateTimeFormat(a,{month:"long"}).format(t);return`${t.getDate()} ${n}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${t.getUTCFullYear()}`},v=(e,t,n)=>{e=new Date(e),e=(new Date(t)-e)/6e4;return 1==n?e<60?(r(8,p=!0),Math.ceil(e)):e<1440?(r(9,g=!0),Math.ceil(e/60)):(r(10,y=!0),Math.ceil(e/1440)):Math.ceil(e/1440)};return e.$$set=e=>{"startdate"in e&&r(0,i=e.startdate),"enddate"in e&&r(1,s=e.enddate),"status"in e&&r(2,o=e.status),"lang"in e&&r(15,a=e.lang)},[i,s,o,"","","","","",p,g,y,n,()=>{r(3,l=b(new Date(i)))},()=>{r(4,u=b(new Date(s)))},()=>{c=v(i,s,!1),r(5,h=v(new Date,s,!0)),r(6,d=v(new Date,i,!1)),0<h&&(f=100/c,r(7,m=Math.floor((c-h)*f)))},a]}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:#58586B}.EndDate{font-size:11px;align-content:flex-end;color:#58586B}.ProgressBar{margin:5px 20px;height:8px;background:#fff}.ProgressBarFill{background-color:#48952a;height:8px}.ProgressBarFillEnd{background-color:#48952a;height:8px}.ProgressBarFillStarting{background-color:#58586B;height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:#1B9800}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Qr,Kr,n,{startdate:0,enddate:1,status:2,lang:15}),e&&(e.target&&E(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$set({startdate:e}),I()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$set({enddate:e}),I()}get status(){return this.$$.ctx[2]}set status(e){this.$set({status:e}),I()}get lang(){return this.$$.ctx[15]}set lang(e){this.$set({lang:e}),I()}});const ei={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα"}}};function ti(e,t,n){const r=e.slice();return r[4]=t[n],r[6]=n,r}function ni(e,t,n){const r=e.slice();return r[7]=t[n],r[9]=n,r}function ri(t){let r,i=t[0],s=[];for(let e=0;e<i.length;e+=1)s[e]=oi(ti(t,i,e));let o=null;return i.length||(o=ii(t)),{c(){r=S("div");for(let e=0;e<s.length;e+=1)s[e].c();o&&o.c(),O(r,"class","Prizes")},m(e,t){E(e,r,t);for(let e=0;e<s.length;e+=1)s[e].m(r,null);o&&o.m(r,null)},p(t,n){if(3&n){let e;for(i=t[0],e=0;e<i.length;e+=1){const o=ti(t,i,e);s[e]?s[e].p(o,n):(s[e]=oi(o),s[e].c(),s[e].m(r,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length,!i.length&&o?o.p(t,n):i.length?o&&(o.d(1),o=null):(o=ii(t),o.c(),o.m(r,null))}},d(e){e&&x(r),p(s,e),o&&o.d()}}}function ii(e){let n,r,i=e[1]("tournamentsPrizes.noprizes")+"";return{c(){n=S("p"),r=M(i)},m(e,t){E(e,n,t),T(n,r)},p(e,t){2&t&&i!==(i=e[1]("tournamentsPrizes.noprizes")+"")&&C(r,i)},d(e){e&&x(n)}}}function si(e){let n,r,i,s,o,a,l,u=e[4].rank+e[9]+"",c=e[4].name+"";return{c(){n=S("div"),r=S("p"),i=S("span"),s=M(u),o=k(),a=M(c),l=k(),O(n,"class","Prize Prize"+e[6])},m(e,t){E(e,n,t),T(n,r),T(r,i),T(i,s),T(r,o),T(r,a),T(n,l)},p(e,t){1&t&&u!==(u=e[4].rank+e[9]+"")&&C(s,u),1&t&&c!==(c=e[4].name+"")&&C(a,c)},d(e){e&&x(n)}}}function oi(t){let i,s={length:t[4].count},o=[];for(let e=0;e<s.length;e+=1)o[e]=si(ni(t,s,e));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();i=l()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);E(t,i,n)},p(t,n){if(1&n){let e;for(s={length:t[4].count},e=0;e<s.length;e+=1){var r=ni(t,s,e);o[e]?o[e].p(r,n):(o[e]=si(r),o[e].c(),o[e].m(i.parentNode,i))}for(;e<o.length;e+=1)o[e].d(1);o.length=s.length}},d(e){p(o,e),e&&x(i)}}}function ai(e){let n,r,i,s,o,a,l,u,c,h,d=e[1]("tournamentsPrizes.prizes")+"",f=e[0]&&ri(e);return{c(){n=S("div"),r=t("svg"),i=t("defs"),s=t("style"),o=M(".a{fill:#fff;}"),a=t("path"),l=k(),u=S("p"),c=M(d),h=k(),f&&f.c(),this.c=b,O(a,"class","a"),O(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"),O(a,"transform","translate(-5.999 -9.76)"),O(r,"xmlns","http://www.w3.org/2000/svg"),O(r,"width","30"),O(r,"height","27.454"),O(r,"viewBox","0 0 30 27.454"),O(u,"class","PrizesTitle"),O(n,"class","TournamentPrizes")},m(e,t){E(e,n,t),T(n,r),T(r,i),T(i,s),T(s,o),T(r,a),T(n,l),T(n,u),T(u,c),T(n,h),f&&f.m(n,null)},p(e,[t]){2&t&&d!==(d=e[1]("tournamentsPrizes.prizes")+"")&&C(c,d),e[0]?f?f.p(e,t):(f=ri(e),f.c(),f.m(n,null)):f&&(f.d(1),f=null)},i:b,o:b,d(e){e&&x(n),f&&f.d()}}}function li(e,t,n){let r;X(e,dr,e=>n(1,r=e));let i,{tourid:s=""}=t;Object.keys(ei).forEach(e=>{Wn(e,ei[e])});const o=e=>{e.data&&e.data.type==`TournamentPrizes_${s}`&&n(0,i=e.data.prizes)};return Z(()=>(window.addEventListener("message",o,!1),()=>{window.removeEventListener("message",o)})),e.$$set=e=>{"tourid"in e&&n(2,s=e.tourid)},[i,r,s]}function ui(e,t,n){const r=e.slice();return r[37]=t[n],r[39]=n,r}function ci(n){let i,r,s,o,a,l,u,c,h=n[0],d=[];for(let e=0;e<h.length;e+=1)d[e]=hi(ui(n,h,e));return{c(){i=S("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=k(),s=S("main"),o=S("div");for(let e=0;e<d.length;e+=1)d[e].c();a=k(),l=S("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>',O(i,"class","SliderNavButton"),e(i,"disabled",n[6]),O(o,"class","items"),_(o,"transform","translateX("+n[1]+"px)"),O(l,"class","SliderNavButton"),e(l,"disabled",n[7])},m(e,t){E(e,i,t),E(e,r,t),E(e,s,t),T(s,o);for(let e=0;e<d.length;e+=1)d[e].m(o,null);n[21](o),E(e,a,t),E(e,l,t),u||(c=[D(i,"click",n[17]),D(l,"click",n[22])],u=!0)},p(t,n){if(64&n[0]&&e(i,"disabled",t[6]),2841&n[0]){let e;for(h=t[0],e=0;e<h.length;e+=1){var r=ui(t,h,e);d[e]?d[e].p(r,n):(d[e]=hi(r),d[e].c(),d[e].m(o,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=h.length}2&n[0]&&_(o,"transform","translateX("+t[1]+"px)"),128&n[0]&&e(l,"disabled",t[7])},d(e){e&&x(i),e&&x(r),e&&x(s),p(d,e),n[21](null),e&&x(a),e&&x(l),u=!1,y(c)}}}function hi(n){let r,i,s,o,a,l,u,c,h,d,f,m;function p(){return n[18](n[37])}function g(){return n[19](n[39])}return{c(){r=S("div"),i=S("span"),s=M("Play now"),a=k(),l=S("img"),d=k(),O(i,"class",o="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":"")),l.src!==(u=n[37].thumbnail)&&O(l,"src",u),O(l,"width","132px"),O(l,"height","100px"),O(l,"alt",c=n[37].name),O(l,"title",h=n[37].name),O(r,"class","item")},m(e,t){E(e,r,t),T(r,i),T(i,s),T(r,a),T(r,l),T(r,d),f||(m=[D(r,"click",p),D(r,"mouseenter",g),D(r,"mouseleave",n[20])],f=!0)},p(e,t){n=e,24&t[0]&&o!==(o="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&O(i,"class",o),1&t[0]&&l.src!==(u=n[37].thumbnail)&&O(l,"src",u),1&t[0]&&c!==(c=n[37].name)&&O(l,"alt",c),1&t[0]&&h!==(h=n[37].name)&&O(l,"title",h)},d(e){e&&x(r),f=!1,y(m)}}}function di(n){let r,i=n[0]&&ci(n);return{c(){r=S("div"),i&&i.c(),this.c=b,O(r,"class","TournamentsGamesSlider")},m(e,t){E(e,r,t),i&&i.m(r,null),n[23](r)},p(e,t){e[0]?i?i.p(e,t):(i=ci(e),i.c(),i.m(r,null)):i&&(i.d(1),i=null)},i:b,o:b,d(e){e&&x(r),i&&i.d(),n[23](null)}}}function fi(e,t,n){let r,i,s,o,a,l,{tournamenturl:u=""}=t,{scrollby:c="3"}=t,{pagfactor:h="175"}=t,{lang:d=""}=t,f=window.navigator.userAgent,m=[],p=0,g=null,y=null,b=!1,v=0;const _=e=>{n(3,b=!0),n(4,a=e)},w=()=>{n(3,b=!1),n(4,a=-1)},T=e=>{e=(e.touches||e.originalEvent.touches)[0];g=e.clientX,y=e.clientY},E=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)&&x(0<t?1:-1),g=null,y=null)},x=e=>{0<e&&!i?(n(1,p-=s),n(1,p=p<v?v:p)):e<0&&!r&&(n(1,p+=s),n(1,p=0<p?0:p))},S=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return Z(()=>(s=parseInt(c,10)*parseInt(h,10),()=>{o.removeEventListener("touchstart",T),o.removeEventListener("touchmove",E)})),e.$$set=e=>{"tournamenturl"in e&&n(13,u=e.tournamenturl),"scrollby"in e&&n(14,c=e.scrollby),"pagfactor"in e&&n(12,h=e.pagfactor),"lang"in e&&n(15,d=e.lang)},e.$$.update=()=>{2&e.$$.dirty[0]&&n(6,r=0===p),65538&e.$$.dirty[0]&&n(7,i=p<=v),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",d),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]&&o&&(o.addEventListener("touchstart",T,{passive:!0}),o.addEventListener("touchmove",E,{passive:!0})),1&e.$$.dirty[0]&&m.length&&setTimeout(()=>{n(16,v=-1*(l.scrollWidth-l.clientWidth)),n(12,h=new String(l.scrollWidth/m.length)),s=parseInt(c,10)*parseFloat(h,2).toFixed(2)},1e3)},n(1,p=0),[m,p,o,b,a,l,r,i,_,w,x,S,h,u,c,d,v,()=>x(-1),e=>S(e),e=>_(e),()=>w(),function(e){N[e?"unshift":"push"](()=>{l=e,n(5,l)})},()=>x(1),function(e){N[e?"unshift":"push"](()=>{o=e,n(2,o)})}]}function mi(e){let n,r,i,s,o,a,l,u,c=e[9]&&gi(e);function h(e){return e[9]?"Closed"!=e[17]&&"Closing"!=e[17]?vi:"true"==e[3]?bi:void 0:_i}let d=h(e),f=d&&d(e),m=e[12]&&ki(e),p="true"==e[4]&&Di(e);return{c(){n=S("div"),r=S("casino-tournaments-thumbnail"),i=k(),c&&c.c(),s=k(),o=S("div"),f&&f.c(),a=k(),m&&m.c(),l=k(),p&&p.c(),v(r,"session",e[0]),v(r,"userid",e[1]),v(r,"title",e[14]),v(r,"status",e[17]),v(r,"startdate",e[15]),v(r,"tourid",e[18]),v(r,"scorecriteria",e[21]),v(r,"minbetcount",e[22]),v(r,"thumbnail",e[19]),v(r,"userenrolled",e[20]),v(r,"showenrolled",e[5]),v(r,"gameurl",e[24]),v(r,"lang",e[8]),O(o,"class","TournamentButtons"),O(n,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":""))},m(e,t){E(e,n,t),T(n,r),T(n,i),c&&c.m(n,null),T(n,s),T(n,o),f&&f.m(o,null),T(n,a),m&&m.m(n,null),T(n,l),p&&p.m(n,null)},p(e,t){1&t[0]&&v(r,"session",e[0]),2&t[0]&&v(r,"userid",e[1]),16384&t[0]&&v(r,"title",e[14]),131072&t[0]&&v(r,"status",e[17]),32768&t[0]&&v(r,"startdate",e[15]),262144&t[0]&&v(r,"tourid",e[18]),2097152&t[0]&&v(r,"scorecriteria",e[21]),4194304&t[0]&&v(r,"minbetcount",e[22]),524288&t[0]&&v(r,"thumbnail",e[19]),1048576&t[0]&&v(r,"userenrolled",e[20]),32&t[0]&&v(r,"showenrolled",e[5]),16777216&t[0]&&v(r,"gameurl",e[24]),256&t[0]&&v(r,"lang",e[8]),e[9]?c?c.p(e,t):(c=gi(e),c.c(),c.m(n,s)):c&&(c.d(1),c=null),d===(d=h(e))&&f?f.p(e,t):(f&&f.d(1),f=d&&d(e),f&&(f.c(),f.m(o,null))),e[12]?m?m.p(e,t):(m=ki(e),m.c(),m.m(n,l)):m&&(m.d(1),m=null),"true"==e[4]?p?p.p(e,t):(p=Di(e),p.c(),p.m(n,null)):p&&(p.d(1),p=null),192&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":""))&&O(n,"class",u)},d(e){e&&x(n),c&&c.d(),f&&f.d(),m&&m.d(),p&&p.d()}}}function pi(e){let n,r,i;return{c(){n=S("div"),r=S("div"),r.innerHTML='<div class="ph-col-12"><div class="ph-picture"></div> \n <div class="ph-row"><div class="ph-col-6 big"></div> \n <div class="ph-col-4 empty big"></div> \n <div class="ph-col-4"></div> \n <div class="ph-col-8 empty"></div> \n <div class="ph-col-6"></div> \n <div class="ph-col-6 empty"></div> \n <div class="ph-col-12"></div></div></div>',O(r,"class","ph-item"),O(n,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":""))},m(e,t){E(e,n,t),T(n,r)},p(e,t){192&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":""))&&O(n,"class",i)},d(e){e&&x(n)}}}function gi(e){let n,r,i=e[18]&&yi(e);return{c(){i&&i.c(),n=k(),r=S("casino-tournaments-thumbnail-duration"),v(r,"status",e[17]),v(r,"startdate",e[15]),v(r,"lang",e[8]),v(r,"enddate",e[16])},m(e,t){i&&i.m(e,t),E(e,n,t),E(e,r,t)},p(e,t){e[18]?i?i.p(e,t):(i=yi(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),131072&t[0]&&v(r,"status",e[17]),32768&t[0]&&v(r,"startdate",e[15]),256&t[0]&&v(r,"lang",e[8]),65536&t[0]&&v(r,"enddate",e[16])},d(e){i&&i.d(e),e&&x(n),e&&x(r)}}}function yi(n){let r,i,s,o;return{c(){r=S("casino-tournaments-thumbnail-prizes"),v(r,"tourid",n[18])},m(e,t){E(e,r,t),s||(o=g(i=n[30].call(null,r,n[18])),s=!0)},p(e,t){262144&t[0]&&v(r,"tourid",e[18]),i&&f(i.update)&&262144&t[0]&&i.update.call(null,e[18])},d(e){e&&x(r),s=!1,o()}}}function bi(n){let r,i,s,o,a=n[25]("tournamentsThController.details")+"";return{c(){r=S("button"),i=M(a),O(r,"class","DetailsLargeButton")},m(e,t){E(e,r,t),T(r,i),s||(o=D(r,"click",n[42]),s=!0)},p(e,t){33554432&t[0]&&a!==(a=e[25]("tournamentsThController.details")+"")&&C(i,a)},d(e){e&&x(r),s=!1,o()}}}function vi(e){let n,r,i="true"==e[3]&&wi(e);function s(e){return 1==e[20]?Ei:Ti}let o=s(e),a=o(e);return{c(){i&&i.c(),n=k(),a.c(),r=l()},m(e,t){i&&i.m(e,t),E(e,n,t),a.m(e,t),E(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),o===(o=s(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r.parentNode,r)))},d(e){i&&i.d(e),e&&x(n),a.d(e),e&&x(r)}}}function _i(n){let r,i,s,o,a,l,u,c=n[25]("tournamentsThController.login")+"",h=n[25]("tournamentsThController.register")+"";return{c(){r=S("button"),i=M(c),s=k(),o=S("button"),a=M(h),O(r,"class","LoginButton"),O(o,"class","RegisterButton")},m(e,t){E(e,r,t),T(r,i),E(e,s,t),E(e,o,t),T(o,a),l||(u=[D(r,"click",n[38]),D(o,"click",n[39])],l=!0)},p(e,t){33554432&t[0]&&c!==(c=e[25]("tournamentsThController.login")+"")&&C(i,c),33554432&t[0]&&h!==(h=e[25]("tournamentsThController.register")+"")&&C(a,h)},d(e){e&&x(r),e&&x(s),e&&x(o),l=!1,y(u)}}}function wi(n){let r,i,s,o,a=n[25]("tournamentsThController.details")+"";return{c(){r=S("button"),i=M(a),O(r,"class","DetailsButton")},m(e,t){E(e,r,t),T(r,i),s||(o=D(r,"click",n[40]),s=!0)},p(e,t){33554432&t[0]&&a!==(a=e[25]("tournamentsThController.details")+"")&&C(i,a)},d(e){e&&x(r),s=!1,o()}}}function Ti(n){let r,i,s,o;function a(e){return 1==e[11]?Si:xi}let l=a(n),u=l(n);return{c(){r=S("button"),u.c(),O(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[12]},m(e,t){E(e,r,t),u.m(r,null),s||(o=D(r,"click",n[41]),s=!0)},p(e,t){l===(l=a(e))&&u?u.p(e,t):(u.d(1),u=l(e),u&&(u.c(),u.m(r,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&O(r,"class",i),4096&t[0]&&(r.disabled=e[12])},d(e){e&&x(r),u.d(),s=!1,o()}}}function Ei(e){let n,r="true"==e[3]&&Mi(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),E(e,n,t)},p(e,t){"true"==e[3]?r?r.p(e,t):(r=Mi(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&x(n)}}}function xi(e){let n,r,i,s,o,a,l,u,c,h=e[25]("tournamentsThController.join")+"";return{c(){n=S("span"),r=M(h),i=k(),s=t("svg"),o=t("defs"),a=t("style"),l=M(".a{fill:#fff;}"),u=t("g"),c=t("path"),O(c,"class","a"),O(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),O(c,"transform","translate(26 26) rotate(180)"),O(u,"transform","translate(26 26) rotate(180)"),O(s,"xmlns","http://www.w3.org/2000/svg"),O(s,"width","26"),O(s,"height","26"),O(s,"viewBox","0 0 26 26")},m(e,t){E(e,n,t),T(n,r),E(e,i,t),E(e,s,t),T(s,o),T(o,a),T(a,l),T(s,u),T(u,c)},p(e,t){33554432&t[0]&&h!==(h=e[25]("tournamentsThController.join")+"")&&C(r,h)},d(e){e&&x(n),e&&x(i),e&&x(s)}}}function Si(e){let n,r;return{c(){n=t("svg"),r=t("circle"),O(r,"cx","20"),O(r,"cy","20"),O(r,"r","18"),O(n,"class","spinner")},m(e,t){E(e,n,t),T(n,r)},p:b,d(e){e&&x(n)}}}function Mi(e){let n,r,i=e[25]("tournamentsThController.enrolled")+"";return{c(){n=S("button"),r=M(i),O(n,"class","EnrolledButton"),n.disabled=!0},m(e,t){E(e,n,t),T(n,r)},p(e,t){33554432&t[0]&&i!==(i=e[25]("tournamentsThController.enrolled")+"")&&C(r,i)},d(e){e&&x(n)}}}function ki(e){let n,r,i,s,o=e[25]("tournamentsThController.joinerror")+"";return{c(){n=S("span"),r=M(o),i=k(),s=M(e[13]),O(n,"class","ErrorText")},m(e,t){E(e,n,t),T(n,r),T(n,i),T(n,s)},p(e,t){33554432&t[0]&&o!==(o=e[25]("tournamentsThController.joinerror")+"")&&C(r,o),8192&t[0]&&C(s,e[13])},d(e){e&&x(n)}}}function Di(e){let n;return{c(){n=S("casino-tournaments-thumbnail-games-slider"),v(n,"tournamenturl",e[2]),v(n,"lang",e[8]),v(n,"scrollby","2")},m(e,t){E(e,n,t)},p(e,t){4&t[0]&&v(n,"tournamenturl",e[2]),256&t[0]&&v(n,"lang",e[8])},d(e){e&&x(n)}}}function Oi(e){let n;function r(e){return e[10]?pi:mi}let i=r(e),s=i(e);return{c(){s.c(),n=l(),this.c=b},m(e,t){s.m(e,t),E(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),s=i(e),s&&(s.c(),s.m(n.parentNode,n)))},i:b,o:b,d(e){s.d(e),e&&x(n)}}}function Ci(e,t,s){let n,r;X(e,dr,e=>s(25,r=e));let i,o,a,l,u,c,h,d,f,{session:m=""}=t,{userid:p=""}=t,{tournamenturl:g=""}=t,{endpoint:y=""}=t,{showdetails:b=""}=t,{showslider:v=""}=t,{showenrolled:_=""}=t,{maxwidth:w=""}=t,{fullsize:T=""}=t,{lang:E=""}=t,{loginevent:x=""}=t,{registerevent:S=""}=t,{loginurl:M=""}=t,{registerurl:k=""}=t,{currency:D=""}=t,O=!1,C="",A=!0,P=window.navigator.userAgent,N=!1,$=!1,R="There was an error while trying to join the tournament",L=[],I=[],Y="#";var U,F;[{withLocale:U,translations:F}]=[{withLocale:"en",translations:{}}],nr.subscribe(e=>{null==e&&(Hn.set(F),nr.set(U))}),Object.keys(Cr).forEach(e=>{Wn(e,Cr[e])});const j=e=>{e.data&&"UserSessionID"==e.data.type&&(s(9,O=!0),C=e.data.session),"UpdateTournamentView"==e.data.type&&(e=e.data.tournamentData,u&&u!=e.id||W(e))},G=()=>{x&&window.postMessage({type:x,transition:"Login"},window.location.href),M&&(window.location=M)},z=()=>{S&&window.postMessage({type:S,transition:"Register"},window.location.href),k&&(window.location=k)},H=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},B=(e,t)=>{window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),s(11,N=!0);let n=new URL(`${y}/bonus/claim`),r=new Headers,i={};n.searchParams.append("language",E),r.append("platform",mr(P)),r.append("Content-Type","application/json"),r.append("X-SessionID",C),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?(s(11,N=!1),s(20,h=!0)):(s(11,N=!1),s(13,R=e.errorMessage),s(12,$=!0))},e=>{s(11,N=!1),s(12,$=!0)})},W=e=>{s(14,i=e.nameOrTitle),s(15,o=e.startTime),s(16,a=e.endTime),s(17,l=e.state),s(18,u=e.id),s(19,c=e.thumbnail),s(20,h=e.playerEnrolled||!1),s(21,d=e.scoreCriteria),s(22,f=e.minBetCount),L=e.prizes,s(23,I=e.wallets||[]),s(24,Y=e.termsUrl||"#")},V=()=>{s(10,A=!0),(e=>{s(10,A=!0);let t=new URL(e),n=new Headers;t.searchParams.append("language",E),n.append("platform",mr(P)),O&&n.append("X-SessionID",C),fetch(t,{method:"GET",headers:n}).then(e=>e.json()).then(e=>{s(10,A=!1),W(e.item)})})(g)};return Z(()=>(s(10,A=!1),window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j)})),e.$$set=e=>{"session"in e&&s(0,m=e.session),"userid"in e&&s(1,p=e.userid),"tournamenturl"in e&&s(2,g=e.tournamenturl),"endpoint"in e&&s(31,y=e.endpoint),"showdetails"in e&&s(3,b=e.showdetails),"showslider"in e&&s(4,v=e.showslider),"showenrolled"in e&&s(5,_=e.showenrolled),"maxwidth"in e&&s(6,w=e.maxwidth),"fullsize"in e&&s(7,T=e.fullsize),"lang"in e&&s(8,E=e.lang),"loginevent"in e&&s(32,x=e.loginevent),"registerevent"in e&&s(33,S=e.registerevent),"loginurl"in e&&s(34,M=e.loginurl),"registerurl"in e&&s(35,k=e.registerurl),"currency"in e&&s(36,D=e.currency)},e.$$.update=()=>{1&e.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?(C=m,s(9,O=!0)):s(9,O=!1)),260&e.$$.dirty[0]&&s(37,n=g&&E),64&e.$$.dirty[1]&&n&&V()},[m,p,g,b,v,_,w,T,E,O,A,N,$,R,i,o,a,l,u,c,h,d,f,I,Y,r,G,z,H,B,(e,t)=>{window.postMessage({type:`TournamentPrizes_${t}`,prizes:L},window.location.href)},y,x,S,M,k,D,n,()=>G(),()=>z(),()=>H(u),()=>B(u,I),()=>H(u)]}function Ai(e,t,n){const r=e.slice();return r[20]=t[n],r[22]=n,r}function Pi(t){let r,i=t[10],s=[];for(let e=0;e<i.length;e+=1)s[e]=$i(Ai(t,i,e));let o=null;return i.length||(o=Ni(t)),{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l(),o&&o.c()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);E(t,r,n),o&&o.m(t,n)},p(t,n){if(3583&n){let e;for(i=t[10],e=0;e<i.length;e+=1){const o=Ai(t,i,e);s[e]?s[e].p(o,n):(s[e]=$i(o),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length,!i.length&&o?o.p(t,n):i.length?o&&(o.d(1),o=null):(o=Ni(t),o.c(),o.m(r.parentNode,r))}},d(e){p(s,e),e&&x(r),o&&o.d(e)}}}function Ni(e){let n,r,i=e[11]("tournamentsList.nothing")+"";return{c(){n=S("p"),r=M(i)},m(e,t){E(e,n,t),T(n,r)},p(e,t){2048&t&&i!==(i=e[11]("tournamentsList.nothing")+"")&&C(r,i)},d(e){e&&x(n)}}}function $i(e){let n,r,i;return{c(){n=S("casino-tournaments-thumbnail-controller"),v(n,"session",e[0]),v(n,"userid",e[1]),v(n,"endpoint",e[2]),v(n,"showdetails","true"),v(n,"showslider","false"),v(n,"tournamenturl",r=e[20].href),v(n,"maxwidth",i=e[10].length<=2),v(n,"loginurl",e[5]),v(n,"loginevent",e[3]),v(n,"registerurl",e[6]),v(n,"registerevent",e[4]),v(n,"lang",e[8]),v(n,"currency",e[7])},m(e,t){E(e,n,t)},p(e,t){1&t&&v(n,"session",e[0]),2&t&&v(n,"userid",e[1]),4&t&&v(n,"endpoint",e[2]),1024&t&&r!==(r=e[20].href)&&v(n,"tournamenturl",r),1024&t&&i!==(i=e[10].length<=2)&&v(n,"maxwidth",i),32&t&&v(n,"loginurl",e[5]),8&t&&v(n,"loginevent",e[3]),64&t&&v(n,"registerurl",e[6]),16&t&&v(n,"registerevent",e[4]),256&t&&v(n,"lang",e[8]),128&t&&v(n,"currency",e[7])},d(e){e&&x(n)}}}function Ri(e){let n,r=!e[9]&&Pi(e);return{c(){n=S("div"),r&&r.c(),this.c=b,O(n,"class","TournamentList")},m(e,t){E(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:b,o:b,d(e){e&&x(n),r&&r.d()}}}function Li(e,t,n){let r;X(e,dr,e=>n(11,r=e));let{session:i=""}=t,{userid:s=""}=t,{numberoftournaments:o="6"}=t,{endpoint:a=""}=t,{loginevent:l=""}=t,{registerevent:u=""}=t,{loginurl:c=""}=t,{registerurl:h=""}=t,{currency:d=""}=t,{lang:f="en"}=t,m=!1;Dr();let p="";Object.keys(Or).forEach(e=>{Wn(e,Or[e])});const g=e=>{e.data&&"TournamentList"==e.data.type&&(n(10,p=[]),n(9,m=!0),n(10,p=e.data.tournamentList),setTimeout(()=>{n(9,m=!1)},10)),e.data&&"UserSessionID"==e.data.type&&e.data.session};return Z(()=>(window.addEventListener("message",g,!0),()=>{window.removeEventListener("message",g)})),e.$$set=e=>{"session"in e&&n(0,i=e.session),"userid"in e&&n(1,s=e.userid),"numberoftournaments"in e&&n(12,o=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,h=e.registerurl),"currency"in e&&n(7,d=e.currency),"lang"in e&&n(8,f=e.lang)},e.$$.update=()=>{1&e.$$.dirty&&i&&i.length,e.$$.dirty},[i,s,a,l,u,c,h,d,f,m,p,r,o]}function Ii(e){let n,r,i,s,o,a,l=e[15]&&Ui(e);function u(e){return 0==e[16]?ji:Fi}let c=u(e),h=c(e),d=!e[17]&&Hi(e);return{c(){n=S("div"),r=S("div"),i=S("div"),l&&l.c(),s=k(),o=S("div"),h.c(),a=k(),d&&d.c(),O(i,"class","FirstRow"),O(o,"class","SecondRow"),O(r,"class","Tournaments"),_(r,"max-width",e[11]+"px"),O(n,"class","TournamentsWrapper")},m(e,t){E(e,n,t),T(n,r),T(r,i),l&&l.m(i,null),T(r,s),T(r,o),h.m(o,null),T(r,a),d&&d.m(r,null)},p(e,t){e[15]?l?l.p(e,t):(l=Ui(e),l.c(),l.m(i,null)):l&&(l.d(1),l=null),c===(c=u(e))&&h?h.p(e,t):(h.d(1),h=c(e),h&&(h.c(),h.m(o,null))),e[17]?d&&(d.d(1),d=null):d?d.p(e,t):(d=Hi(e),d.c(),d.m(r,null)),2048&t[0]&&_(r,"max-width",e[11]+"px")},d(e){e&&x(n),l&&l.d(),h.d(),d&&d.d()}}}function Yi(e){let n,r,i,s,o,a=e[18]("tournamentsController.500")+"";return{c(){n=S("p"),r=M(a),i=k(),s=S("p"),o=M(e[13])},m(e,t){E(e,n,t),T(n,r),E(e,i,t),E(e,s,t),T(s,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("tournamentsController.500")+"")&&C(r,a),8192&t[0]&&C(o,e[13])},d(e){e&&x(n),e&&x(i),e&&x(s)}}}function Ui(e){let n;return{c(){n=S("casino-tournaments-filter-controller"),v(n,"filters",Wi),v(n,"activefilters",e[5])},m(e,t){E(e,n,t)},p(e,t){32&t[0]&&v(n,"activefilters",e[5])},d(e){e&&x(n)}}}function Fi(e){let n;return{c(){n=S("casino-tournaments-list-controller"),v(n,"session",e[0]),v(n,"userid",e[1]),v(n,"numberoftournaments",e[4]),v(n,"endpoint",e[2]),v(n,"loginurl",e[8]),v(n,"loginevent",e[6]),v(n,"registerurl",e[9]),v(n,"registerevent",e[7]),v(n,"lang",e[3]),v(n,"currency",e[10])},m(e,t){E(e,n,t)},p(e,t){1&t[0]&&v(n,"session",e[0]),2&t[0]&&v(n,"userid",e[1]),16&t[0]&&v(n,"numberoftournaments",e[4]),4&t[0]&&v(n,"endpoint",e[2]),256&t[0]&&v(n,"loginurl",e[8]),64&t[0]&&v(n,"loginevent",e[6]),512&t[0]&&v(n,"registerurl",e[9]),128&t[0]&&v(n,"registerevent",e[7]),8&t[0]&&v(n,"lang",e[3]),1024&t[0]&&v(n,"currency",e[10])},d(e){e&&x(n)}}}function ji(e){let n;function r(e){return e[14]?zi:Gi}let i=r(e),s=i(e);return{c(){s.c(),n=l()},m(e,t){s.m(e,t),E(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),s=i(e),s&&(s.c(),s.m(n.parentNode,n)))},d(e){s.d(e),e&&x(n)}}}function Gi(e){let n,r,i=e[18]("tournamentsController.noTournaments")+"";return{c(){n=S("p"),r=M(i)},m(e,t){E(e,n,t),T(n,r)},p(e,t){262144&t[0]&&i!==(i=e[18]("tournamentsController.noTournaments")+"")&&C(r,i)},d(e){e&&x(n)}}}function zi(e){let n,r,i=e[18]("tournamentsController.loading")+"";return{c(){n=S("p"),r=M(i)},m(e,t){E(e,n,t),T(n,r)},p(e,t){262144&t[0]&&i!==(i=e[18]("tournamentsController.loading")+"")&&C(r,i)},d(e){e&&x(n)}}}function Hi(n){let r,i,s,o,a,l,u=n[18]("tournamentsController.showMore")+"";return{c(){r=S("div"),i=S("div"),s=S("button"),o=M(u),O(s,"class","ShowMoreButton"),O(s,"title","Show More"),O(i,"class","CenterButton"),O(r,"class","ThirdRow")},m(e,t){E(e,r,t),T(r,i),T(i,s),T(s,o),a||(l=D(s,"click",n[23]),a=!0)},p(e,t){262144&t[0]&&u!==(u=e[18]("tournamentsController.showMore")+"")&&C(o,u)},d(e){e&&x(r),a=!1,l()}}}function Bi(e){let n;function r(e){return e[12]?Yi:Ii}let i=r(e),s=i(e);return{c(){s.c(),n=l(),this.c=b},m(e,t){s.m(e,t),E(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),s=i(e),s&&(s.c(),s.m(n.parentNode,n)))},i:b,o:b,d(e){s.d(e),e&&x(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:#c3c3c3}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:#58586B}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:#FFF}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},li,ai,n,{tourid:2}),e&&(e.target&&E(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(e){this.$set({tourid:e}),I()}}),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:#0a0c19;color:#fff;display:flex;justify-content:center}.disabled{color:#3B3C47}.SliderNavButton{background:#0a0c19;border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:#ef4322;color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:#28a745;display:block;box-sizing:border-box;padding:0.8rem .5rem;color:#fff;text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},fi,di,n,{tournamenturl:13,scrollby:14,pagfactor:12,lang:15},[-1,-1]),e&&(e.target&&E(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[13]}set tournamenturl(e){this.$set({tournamenturl:e}),I()}get scrollby(){return this.$$.ctx[14]}set scrollby(e){this.$set({scrollby:e}),I()}get pagfactor(){return this.$$.ctx[12]}set pagfactor(e){this.$set({pagfactor:e}),I()}get lang(){return this.$$.ctx[15]}set lang(e){this.$set({lang:e}),I()}}),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:#0A0B19;color:#fff;border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.LoginButton{background:#0A0B19;width:50%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:#0A0B19;width:50%;height:60px;text-align:center;color:#48952a;border:solid #48952a 1px;text-transform:uppercase;font-size:18px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:#0A0B19;width:40%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:#0A0B19;width:100%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:16px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:#2a2c5a;width:60%;height:60px;text-align:center;color:#aaaabe;border:0;text-transform:uppercase;font-size:18px;cursor:default}.JoinButton{background:#48952a;width:60%;height:60px;text-align:center;color:#fff;border:solid #48952a 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:18px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:#0A0B19;border:1px solid black;border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(10, 11, 25, 0) 46%, rgba(10, 11, 25, 0.35) 50%, rgba(10, 11, 25, 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:#ced4da}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(10, 11, 25, 0)}.ph-col-4{flex:0 0 33.33333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.66667%}.ph-col-12{flex:0 0 100%}[class*="ph-col"]{direction:ltr}[class*="ph-col"]>*+.ph-row{margin-top:0}[class*="ph-col"]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:#ced4da}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:#212121;stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}</style>',u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Ci,Oi,n,{session:0,userid:1,tournamenturl:2,endpoint:31,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:32,registerevent:33,loginurl:34,registerurl:35,currency:36},[-1,-1]),e&&(e.target&&E(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["session","userid","tournamenturl","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency"]}get session(){return this.$$.ctx[0]}set session(e){this.$set({session:e}),I()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),I()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$set({tournamenturl:e}),I()}get endpoint(){return this.$$.ctx[31]}set endpoint(e){this.$set({endpoint:e}),I()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$set({showdetails:e}),I()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$set({showslider:e}),I()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$set({showenrolled:e}),I()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$set({maxwidth:e}),I()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$set({fullsize:e}),I()}get lang(){return this.$$.ctx[8]}set lang(e){this.$set({lang:e}),I()}get loginevent(){return this.$$.ctx[32]}set loginevent(e){this.$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[33]}set registerevent(e){this.$set({registerevent:e}),I()}get loginurl(){return this.$$.ctx[34]}set loginurl(e){this.$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[35]}set registerurl(e){this.$set({registerurl:e}),I()}get currency(){return this.$$.ctx[36]}set currency(e){this.$set({currency:e}),I()}}),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},Li,Ri,n,{session:0,userid:1,numberoftournaments:12,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8}),e&&(e.target&&E(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}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}),I()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),I()}get numberoftournaments(){return this.$$.ctx[12]}set numberoftournaments(e){this.$set({numberoftournaments:e}),I()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$set({endpoint:e}),I()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$set({registerevent:e}),I()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$set({registerurl:e}),I()}get currency(){return this.$$.ctx[7]}set currency(e){this.$set({currency:e}),I()}get lang(){return this.$$.ctx[8]}set lang(e){this.$set({lang:e}),I()}});let Wi="All,Scheduled,Ongoing,Finished";function Vi(e,t,s){let n,r,i;X(e,dr,e=>s(18,i=e));let o,a,{session:l=""}=t,{userid:u=""}=t,{endpoint:c=""}=t,{lang:h="en"}=t,{numberoftournaments:d="6"}=t,{showmorestep:f="2"}=t,{filters:m="All"}=t,{loginevent:p=""}=t,{registerevent:g=""}=t,{loginurl:y=""}=t,{registerurl:b=""}=t,{currency:v="EUR"}=t,{containermaxwidth:_=""}=t,w=!1,T="",E=!1,x="",S=window.navigator.userAgent,M=!0,k=!1,D=!1,O=0,C=6,A=!0,P=[],N=new Date;var $,R;N.setMonth(N.getMonth()-1),N=N.toISOString().substring(0,10),[{withLocale:$,translations:R}]=[{withLocale:"en",translations:{}}],nr.subscribe(e=>{null==e&&(Hn.set(R),nr.set($))}),Object.keys(pr).forEach(e=>{Wn(e,pr[e])});const L=e=>{e.data&&"UserSessionID"===e.data.type&&(E=!0,x=e.data.session,e.data.userid,I(c,0,C)),e.data&&"TournamentsFiltersSelected"===e.data.type&&(P=e.data.filters,I(c,0,C))},I=(e,t,n)=>{s(14,M=!0),s(16,O=0);let r=new URL(`${e}/tournaments`),i=new Headers;r.searchParams.append("pagination",`offset=${t},limit=${n}`),r.searchParams.append("sortField","StartTime"),r.searchParams.append("sortOrder","desc"),r.searchParams.append("language",h),0<P.length&&"All"!=P[0]?(n=P.map(e=>{return"Scheduled"==e?"Unstarted":"Ongoing"==e?"Running":"Closing|Closed"}).join("|"),r.searchParams.append("filter",`state=${n},StartTimeAfter=${N}`)):r.searchParams.append("filter",`StartTimeAfter=${N}`),i.append("platform",mr(S)),i.append("sortType",'""|type1'),E&&i.append("X-SessionID",x),fetch(r,{method:"GET",headers:i,cache:"no-cache"}).then(e=>e.json()).then(e=>{s(16,O=0),o=r.searchParams.toString(),setTimeout(()=>{s(16,O=e.total),s(17,A=C>=O),D||U(),window.postMessage({type:"TournamentList",tournamentList:e.items},window.location.href),s(14,M=!1)},50)})},Y=e=>{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),"TournamentDelete"==r.MessageType&&window.postMessage({type:"UpdateTournamentListView",tournamentId:r.id},window.location.href))}catch(e){console.error(e)}},U=()=>{D=!0,setTimeout(()=>{D=!1},1e3),a&&(a.removeEventListener("message",Y),a.close());var e=`${c}/tournaments/updates?HeartBeat=false&${o}`;a=new gr.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionID":l}}),void 0!==a&&a.addEventListener("message",Y)},F=()=>{C+=parseInt(f,10),window.postMessage({type:"TournamentsPagination",offset:0,limit:C},window.location.href),I(c,0,C),C>=O&&s(17,A=!0)},j=()=>{var e;c||(s(13,T="Endpoint is missing! Please provide a valid endpointURL."),s(12,w=!0),console.error(T)),h&&2==h.length||(s(13,T="Language is missing! Please provide a valid language (alpha2code)"),s(12,w=!0),console.error(T)),w||(C=parseInt(d,10),e=h,nr.set(e),I(c,0,C))};return Z(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L),a.removeEventListener("message",Y)})),e.$$set=e=>{"session"in e&&s(0,l=e.session),"userid"in e&&s(1,u=e.userid),"endpoint"in e&&s(2,c=e.endpoint),"lang"in e&&s(3,h=e.lang),"numberoftournaments"in e&&s(4,d=e.numberoftournaments),"showmorestep"in e&&s(20,f=e.showmorestep),"filters"in e&&s(5,m=e.filters),"loginevent"in e&&s(6,p=e.loginevent),"registerevent"in e&&s(7,g=e.registerevent),"loginurl"in e&&s(8,y=e.loginurl),"registerurl"in e&&s(9,b=e.registerurl),"currency"in e&&s(10,v=e.currency),"containermaxwidth"in e&&s(11,_=e.containermaxwidth)},e.$$.update=()=>{1&e.$$.dirty[0]&&l&&(0<l.length&&"false"!=l?(E=!0,s(14,M=!0),x=l):(E=!1,j())),e.$$.dirty[0],32&e.$$.dirty[0]&&m&&(P=m.split(","),s(15,k=!0)),1048604&e.$$.dirty[0]&&s(21,n=c&&d&&f&&h),2097153&e.$$.dirty[0]&&s(22,r=l?n&&l:n),4194304&e.$$.dirty[0]&&r&&j()},[l,u,c,h,d,m,p,g,y,b,v,_,w,T,M,k,O,A,i,F,f,n,r,()=>F()]}class Xi 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:#0a0c19;font-size:18px;width:280px;height:60px;text-align:center;color:#48952a;border:solid #48952a 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{background:#00020f}.Tournaments{color:#ffffff;display:flex;flex-direction:column;position:relative;margin:0 auto;padding:0 10px}.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},Vi,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&&E(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}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}),I()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),I()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$set({endpoint:e}),I()}get lang(){return this.$$.ctx[3]}set lang(e){this.$set({lang:e}),I()}get numberoftournaments(){return this.$$.ctx[4]}set numberoftournaments(e){this.$set({numberoftournaments:e}),I()}get showmorestep(){return this.$$.ctx[20]}set showmorestep(e){this.$set({showmorestep:e}),I()}get filters(){return this.$$.ctx[5]}set filters(e){this.$set({filters:e}),I()}get loginevent(){return this.$$.ctx[6]}set loginevent(e){this.$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[7]}set registerevent(e){this.$set({registerevent:e}),I()}get loginurl(){return this.$$.ctx[8]}set loginurl(e){this.$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[9]}set registerurl(e){this.$set({registerurl:e}),I()}get currency(){return this.$$.ctx[10]}set currency(e){this.$set({currency:e}),I()}get containermaxwidth(){return this.$$.ctx[11]}set containermaxwidth(e){this.$set({containermaxwidth:e}),I()}}return customElements.get("casino-tournaments-controller")||customElements.define("casino-tournaments-controller",Xi),Xi});
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function b(){}function d(t){return t()}function h(){return Object.create(null)}function v(t){t.forEach(d)}function f(t){return"function"==typeof t}function n(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function p(t,...e){if(null==t)return b;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function X(t,e,n){t.$$.on_destroy.push(p(e,n))}function g(t){return t&&f(t.destroy)?t.destroy:b}function T(t,e){t.appendChild(e)}function E(t,e,n){t.insertBefore(e,n||null)}function x(t){t.parentNode.removeChild(t)}function m(e,n){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}function S(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function M(t){return document.createTextNode(t)}function k(){return M(" ")}function l(){return M("")}function C(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function D(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function y(t,e,n){e in t?t[e]=n:D(t,e,n)}function O(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function _(t,e,n,r){t.style.setProperty(e,n,r?"important":"")}function t(t,e,n){t.classList[n?"add":"remove"](e)}function r(t){const e={};for(const n of t)e[n.name]=n.value;return e}let w;function A(t){w=t}function Z(t){!function(){if(!w)throw new Error("Function called outside component initialization");return w}().$$.on_mount.push(t)}const P=[],N=[],i=[],s=[],R=Promise.resolve();let $=!1;function L(t){i.push(t)}let o=!1;const a=new Set;function I(){if(!o){o=!0;do{for(let t=0;t<P.length;t+=1){var e=P[t];A(e),function(t){{var e;null!==t.fragment&&(t.update(),v(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(L))}}(e.$$)}for(A(null),P.length=0;N.length;)N.pop()();for(let t=0;t<i.length;t+=1){const n=i[t];a.has(n)||(a.add(n),n())}}while(i.length=0,P.length);for(;s.length;)s.pop()();$=!1,o=!1,a.clear()}}const Y=new Set;function u(r,t,e,n,i,s,o=[-1]){var a,l=w;A(r);const u=r.$$={fragment:null,ctx:null,props:s,update:b,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:h(),dirty:o,skip_bound:!1};let c=!1;if(u.ctx=e?e(r,t.props||{},(t,e,...n)=>{n=n.length?n[0]:e;return u.ctx&&i(u.ctx[t],u.ctx[t]=n)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](n),c&&(n=t,-1===(t=r).$$.dirty[0]&&(P.push(t),$||($=!0,R.then(I)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],u.update(),c=!0,v(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){const b=(n=t.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(b),b.forEach(x)}else u.fragment&&u.fragment.c();t.intro&&(a=r.$$.fragment)&&a.i&&(Y.delete(a),a.i(void 0)),function(e,t,n,r){const{fragment:i,on_mount:s,on_destroy:o,after_update:a}=e.$$;i&&i.m(t,n),r||L(()=>{var t=s.map(d).filter(f);o?o.push(...t):v(t),e.$$.on_mount=[]}),a.forEach(L)}(r,t.target,t.anchor,t.customElement),I()}A(l)}let c;"function"==typeof HTMLElement&&(c=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(d).filter(f);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){v(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(v(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=b}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var U,F,j="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==j&&j,G="URLSearchParams"in j,z="Symbol"in j&&"iterator"in Symbol,B="FileReader"in j&&"Blob"in j&&function(){try{return new Blob,!0}catch(t){return!1}}(),H="FormData"in j,W="ArrayBuffer"in j;function V(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function q(t){return t="string"!=typeof t?String(t):t}function J(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return z&&(t[Symbol.iterator]=function(){return t}),t}function K(e){this.map={},e instanceof K?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function Q(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function tt(n){return new Promise(function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}})}function et(t){var e=new FileReader,n=tt(e);return e.readAsArrayBuffer(t),n}function nt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function rt(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:B&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:H&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:G&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():W&&B&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=nt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):W&&(ArrayBuffer.prototype.isPrototypeOf(t)||F(t))?this._bodyArrayBuffer=nt(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):G&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},B&&(this.blob=function(){var t=Q(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(et)}),this.text=function(){var t,e,n=Q(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,n=tt(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},H&&(this.formData=function(){return this.text().then(ot)}),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]"],F=ArrayBuffer.isView||function(t){return t&&-1<U.indexOf(Object.prototype.toString.call(t))}),K.prototype.append=function(t,e){t=V(t),e=q(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},K.prototype.delete=function(t){delete this.map[V(t)]},K.prototype.get=function(t){return t=V(t),this.has(t)?this.map[t]:null},K.prototype.has=function(t){return this.map.hasOwnProperty(V(t))},K.prototype.set=function(t,e){this.map[V(t)]=q(e)},K.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},K.prototype.keys=function(){var n=[];return this.forEach(function(t,e){n.push(e)}),J(n)},K.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),J(e)},K.prototype.entries=function(){var n=[];return this.forEach(function(t,e){n.push([e,t])}),J(n)},z&&(K.prototype[Symbol.iterator]=K.prototype.entries);var it=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function st(t,e){if(!(this instanceof st))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(e=e||{}).body;if(t instanceof st){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new K(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new K(e.headers)),this.method=(t=(n=e.method||this.method||"GET").toUpperCase(),-1<it.indexOf(t)?t:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function ot(t){var n=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function at(t,e){if(!(this instanceof at))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new K(e.headers),this.url=e.url||"",this._initBody(t)}st.prototype.clone=function(){return new st(this,{body:this._bodyInit})},rt.call(st.prototype),rt.call(at.prototype),at.prototype.clone=function(){return new at(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new K(this.headers),url:this.url})},at.error=function(){var t=new at(null,{status:0,statusText:""});return t.type="error",t};var lt=[301,302,303,307,308];at.redirect=function(t,e){if(-1===lt.indexOf(e))throw new RangeError("Invalid status code");return new at(null,{status:e,headers:{location:t}})};var ut=j.DOMException;try{new ut}catch(b){(ut=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),ut.prototype.constructor=ut}function ct(r,o){return new Promise(function(i,t){var e=new st(r,o);if(e.signal&&e.signal.aborted)return t(new ut("Aborted","AbortError"));var s=new XMLHttpRequest;function n(){s.abort()}s.onload=function(){var t,n,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",n=new K,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;setTimeout(function(){i(new at(r,e))},0)},s.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){t(new ut("Aborted","AbortError"))},0)},s.open(e.method,function(e){try{return""===e&&j.location.href?j.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?s.withCredentials=!0:"omit"===e.credentials&&(s.withCredentials=!1),"responseType"in s&&(B?s.responseType="blob":W&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof K?e.headers.forEach(function(t,e){s.setRequestHeader(e,t)}):Object.getOwnPropertyNames(o.headers).forEach(function(t){s.setRequestHeader(t,q(o.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",n),s.onreadystatechange=function(){4===s.readyState&&e.signal.removeEventListener("abort",n)}),s.send(void 0===e._bodyInit?null:e._bodyInit)})}ct.polyfill=!0,j.fetch||(j.fetch=ct,j.Headers=K,j.Request=st,j.Response=at);var dt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ht(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return Pn(null==e&&n.path)}},n.exports),n.exports}function Pn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}self.fetch.bind(self);var ft=function(t,e){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ft(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function mt(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,s=n.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(r=s.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function yt(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}function bt(t){return"function"==typeof t}function vt(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var _t=vt(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function wt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var Tt=(xt.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=mt(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}else s.remove(this);s=this.initialTeardown;if(bt(s))try{s()}catch(t){i=t instanceof _t?t.errors:[t]}s=this._teardowns;if(s){this._teardowns=null;try{for(var l=mt(s),u=l.next();!u.done;u=l.next()){var c=u.value;try{Mt(c)}catch(t){i=null!=i?i:[],t instanceof _t?i=yt(yt([],gt(i)),gt(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new _t(i)}},xt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Mt(t);else{if(t instanceof xt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},xt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},xt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},xt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&wt(e,t)},xt.prototype.remove=function(t){var e=this._teardowns;e&&wt(e,t),t instanceof xt&&t._removeParent(this)},xt.EMPTY=((Xe=new xt).closed=!0,Xe),xt),Et=Tt.EMPTY;function xt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function St(t){return t instanceof Tt||t&&"closed"in t&&bt(t.remove)&&bt(t.add)&&bt(t.unsubscribe)}function Mt(t){bt(t)?t():t.unsubscribe()}var kt=void 0,Ct=!1,Dt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,yt([],gt(t)))};function Ot(){}function At(t){t()}var Pt,Nt,Rt=(pt(It,Nt=Tt),It.create=function(t,e,n){return new $t(t,e,n)},It.prototype.next=function(t){this.isStopped||this._next(t)},It.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},It.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},It.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Nt.prototype.unsubscribe.call(this),this.destination=null)},It.prototype._next=function(t){this.destination.next(t)},It.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},It.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},It),$t=(pt(Lt,Pt=Rt),Lt);function Lt(t,e,n){var r,i,s=Pt.call(this)||this;return bt(t)?i=t:t&&(i=t.next,e=t.error,n=t.complete,s&&Ct?(r=Object.create(t)).unsubscribe=function(){return s.unsubscribe()}:r=t,i=null==i?void 0:i.bind(r),e=null==e?void 0:e.bind(r),n=null==n?void 0:n.bind(r)),s.destination={next:i?Yt(i):Ot,error:Yt(null!=e?e:Ut),complete:n?Yt(n):Ot},s}function It(t){var e=Nt.call(this)||this;return e.isStopped=!1,t?St(e.destination=t)&&t.add(e):e.destination=Ft,e}function Yt(r){return function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{r.apply(void 0,yt([],gt(t)))}catch(t){e=t,Dt(function(){throw e})}}}function Ut(t){throw t}var Ft={closed:!0,next:Ot,error:Ut,complete:Ot},jt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gt(t){return t}var zt=(Bt.prototype.lift=function(t){var e=new Bt;return e.source=this,e.operator=t,e},Bt.prototype.subscribe=function(t,e,n){var r,i=this,s=(r=t)&&r instanceof Rt||r&&bt(r.next)&&bt(r.error)&&bt(r.complete)&&St(r)?t:new $t(t,e,n);return At(function(){var t=i.operator,e=i.source;s.add(t?t.call(s,e):e?i._subscribe(s):i._trySubscribe(s))}),s},Bt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Bt.prototype.forEach=function(r,t){var i=this;return new(t=Ht(t))(function(t,e){var n=i.subscribe(function(t){try{r(t)}catch(t){e(t),null==n||n.unsubscribe()}},e,t)})},Bt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Bt.prototype[jt]=function(){return this},Bt.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Gt:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Bt.prototype.toPromise=function(t){var r=this;return new(t=Ht(t))(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},Bt.create=function(t){return new Bt(t)},Bt);function Bt(t){t&&(this._subscribe=t)}function Ht(t){return null!==(t=null!=t?t:kt)&&void 0!==t?t:Promise}var Wt,Vt,Xt,Zt=vt(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qt=(pt(ne,Xt=zt),ne.prototype.lift=function(t){var e=new Jt(this,this);return e.operator=t,e},ne.prototype._throwIfClosed=function(){if(this.closed)throw new Zt},ne.prototype.next=function(s){var o=this;At(function(){var e,t;if(o._throwIfClosed(),!o.isStopped){var n=o.observers.slice();try{for(var r=mt(n),i=r.next();!i.done;i=r.next())i.value.next(s)}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},ne.prototype.error=function(e){var n=this;At(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var t=n.observers;t.length;)t.shift().error(e)}})},ne.prototype.complete=function(){var e=this;At(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},ne.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(ne.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),ne.prototype._trySubscribe=function(t){return this._throwIfClosed(),Xt.prototype._trySubscribe.call(this,t)},ne.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},ne.prototype._innerSubscribe=function(t){var e=this.hasError,n=this.isStopped,r=this.observers;return e||n?Et:(r.push(t),new Tt(function(){return wt(r,t)}))},ne.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,n=this.thrownError,r=this.isStopped;e?t.error(n):r&&t.complete()},ne.prototype.asObservable=function(){var t=new zt;return t.source=this,t},ne.create=function(t,e){return new Jt(t,e)},ne),Jt=(pt(ee,Vt=qt),ee.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},ee.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},ee.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},ee.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:Et},ee),Kt={now:function(){return(Kt.delegate||Date).now()},delegate:void 0},Qt=(pt(te,Wt=qt),te.prototype.next=function(t){var e=this,n=e.isStopped,r=e._buffer,i=e._infiniteTimeWindow,s=e._timestampProvider,e=e._windowTime;n||(r.push(t),i||r.push(s.now()+e)),this._trimBuffer(),Wt.prototype.next.call(this,t)},te.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},te.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var s=e.now(),o=0,a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+1)}},te);function te(t,e,n){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===n&&(n=Kt);var r=Wt.call(this)||this;return r._bufferSize=t,r._windowTime=e,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=e===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,e),r}function ee(t,e){var n=Vt.call(this)||this;return n.destination=t,n.source=e,n}function ne(){var t=Xt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let re=[],ie={};const se=[];function oe(r,i=b){let s;const o=[];function a(t){if(n(r,t)&&(r=t,s)){const t=!se.length;for(let t=0;t<o.length;t+=1){const e=o[t];e[1](),se.push(e,r)}if(t){for(let t=0;t<se.length;t+=2)se[t][0](se[t+1]);se.length=0}}}return{set:a,update:function(t){a(t(r))},subscribe:function(t,e=b){const n=[t,e];return o.push(n),1===o.length&&(s=i(a)||b),t(r),()=>{var t=o.indexOf(n);-1!==t&&o.splice(t,1),0===o.length&&(s(),s=null)}}}}function ae(t,a,e){const l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return{subscribe:oe(e,e=>{let n=!1;const r=[];let i=0,s=b;const o=()=>{var t;i||(s(),t=a(l?r[0]:r,e),c?e(t):s=f(t)?t:b)},t=u.map((t,e)=>p(t,t=>{r[e]=t,i&=~(1<<e),n&&o()},()=>{i|=1<<e}));return n=!0,o(),function(){v(t),s()}}).subscribe}}var le=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===ue));var e},ue="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ce(t,e){return!1!==e.clone&&e.isMergeableObject(t)?me(Array.isArray(t)?[]:{},t,e):t}function de(t,e,n){return t.concat(e).map(function(t){return ce(t,n)})}function he(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function fe(t,e){try{return e in t}catch(t){return!1}}function pe(r,i,s){var o={};return s.isMergeableObject(r)&&he(r).forEach(function(t){o[t]=ce(r[t],s)}),he(i).forEach(function(e){var t,n;(!fe(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(fe(r,e)&&s.isMergeableObject(i[e])?o[e]=function(){if(!s.customMerge)return me;var t=s.customMerge(e);return"function"==typeof t?t:me}()(r[e],i[e],s):o[e]=ce(i[e],s))}),o}function me(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||de,n.isMergeableObject=n.isMergeableObject||le,n.cloneUnlessOtherwiseSpecified=ce;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):pe(t,e,n):ce(e,n)}me.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return me(t,e,n)},{})};var ge=me,ye=function(t,e){return(ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function be(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ye(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ve,_e,we,Te=function(){return(Te=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Ee(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}function xe(t){return t.type===_e.literal}function Se(t){return t.type===_e.number}function Me(t){return t.type===_e.date}function ke(t){return t.type===_e.time}function Ce(t){return t.type===_e.select}function De(t){return t.type===_e.plural}function Oe(t){return t.type===_e.tag}function Ae(t){return t&&"object"==typeof t&&t.type===we.number}function Pe(t){return t&&"object"==typeof t&&t.type===we.dateTime}(Ze=ve=ve||{})[Ze.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Ze[Ze.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Ze[Ze.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Ze[Ze.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Ze[Ze.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Ze[Ze.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Ze[Ze.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Ze[Ze.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Ze[Ze.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Ze[Ze.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Ze[Ze.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Ze[Ze.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Ze[Ze.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Ze[Ze.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Ze[Ze.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Ze[Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Ze[Ze.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Ze[Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Ze[Ze.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Ze[Ze.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Ze[Ze.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Ze[Ze.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Ze[Ze.INVALID_TAG=23]="INVALID_TAG",Ze[Ze.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Ze[Ze.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Ze[Ze.UNCLOSED_TAG=27]="UNCLOSED_TAG",(qe=_e=_e||{})[qe.literal=0]="literal",qe[qe.argument=1]="argument",qe[qe.number=2]="number",qe[qe.date=3]="date",qe[qe.time=4]="time",qe[qe.select=5]="select",qe[qe.plural=6]="plural",qe[qe.pound=7]="pound",qe[qe.tag=8]="tag",(Je=we=we||{})[Je.number=0]="number",Je[Je.dateTime=1]="dateTime";var Ne=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Re=/(?:[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 $e,Le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ie=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ye=/^(@+)?(\+|#+)?$/g,Ue=/(\*)(0+)|(#+)(0+)|(0+)/g,Fe=/^(0+)$/;function je(t){var r={};return t.replace(Ye,function(t,e,n){return"string"!=typeof n?(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length):"+"===n?r.minimumSignificantDigits=e.length:"#"===e[0]?r.maximumSignificantDigits=e.length:(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length+("string"==typeof n?n.length:0)),""}),r}function Ge(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ze(t){return Ge(t)||{}}function Be(t){for(var o={},e=0,n=t;e<n.length;e++){var r,i=n[e];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=Te(Te(Te({},o),{notation:"scientific"}),i.options.reduce(function(t,e){return Te(Te({},t),ze(e))},{}));continue;case"engineering":o=Te(Te(Te({},o),{notation:"engineering"}),i.options.reduce(function(t,e){return Te(Te({},t),ze(e))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.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(Ue,function(t,e,n,r,i,s){if(e)o.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Fe.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Ie.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ie,function(t,e,n,r,i,s){return"*"===n?o.minimumFractionDigits=e.length:r&&"#"===r[0]?o.maximumFractionDigits=r.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=e.length,o.maximumFractionDigits=e.length),""}),i.options.length&&(o=Te(Te({},o),je(i.options[0])))}else Ye.test(i.stem)?o=Te(Te({},o),je(i.stem)):((r=Ge(i.stem))&&(o=Te(Te({},o),r)),(r=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!Fe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(i.stem))&&(o=Te(Te({},o),r)))}return o}var He=new RegExp("^"+Ne.source+"*"),We=new RegExp(Ne.source+"*$");function Ve(t,e){return{start:t,end:e}}var Xe=!!String.prototype.startsWith,jt=!!String.fromCodePoint,qt=!!Object.fromEntries,Ze=!!String.prototype.codePointAt,qe=!!String.prototype.trimStart,Je=!!String.prototype.trimEnd,Ke=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ne=!0;try{Ne="a"===(null===($e=ln("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===$e?void 0:$e[0])}catch(b){Ne=!1}var Qe,tn,en=Xe?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},nn=jt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,r="",i=t.length,s=0;s<i;){if(1114111<(n=t[s++]))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=qt?Object.fromEntries:function(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n],s=i[0],i=i[1];e[s]=i}return e},sn=Ze?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||n<=e)){var r,i=t.charCodeAt(e);return i<55296||56319<i||e+1===n||(r=t.charCodeAt(e+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536}},on=qe?function(t){return t.trimStart()}:function(t){return t.replace(He,"")},an=Je?function(t){return t.trimEnd()}:function(t){return t.replace(We,"")};function ln(t,e){return new RegExp(t,e)}tn=Ne?(Qe=ln("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Qe.lastIndex=e,null!==(t=Qe.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var n,r=[];;){var i=sn(t,e);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),e+=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(t,e,n){for(var r=[];!this.isEOF();){var i,s=this.char();if(123===s){if((i=this.parseArgument(t,n)).err)return i;r.push(i.val)}else{if(125===s&&0<t)break;if(35!==s||"plural"!==e&&"selectordinal"!==e){if(60===s&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(ve.UNMATCHED_CLOSING_TAG,Ve(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&dn(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(t,e)).err)return i;r.push(i.val)}}else{s=this.clonePosition();this.bump(),r.push({type:_e.pound,location:Ve(s,this.clonePosition())})}}}return{val:r,err:null}},cn.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:_e.literal,value:"<"+r+"/>",location:Ve(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,e,!0);if(i.err)return i;t=i.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!dn(this.char()))return this.error(ve.INVALID_TAG,Ve(e,this.clonePosition()));i=this.clonePosition();return r!==this.parseTagName()?this.error(ve.UNMATCHED_CLOSING_TAG,Ve(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:_e.tag,value:r,children:t,location:Ve(n,this.clonePosition())},err:null}:this.error(ve.INVALID_TAG,Ve(e,this.clonePosition())))}return this.error(ve.UNCLOSED_TAG,Ve(n,this.clonePosition()))}return this.error(ve.INVALID_TAG,Ve(n,this.clonePosition()))},cn.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},cn.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(e);if(i)r+=i;else{i=this.tryParseUnquoted(t,e);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=Ve(n,this.clonePosition());return{val:{type:_e.literal,value:r,location:n},err:null}},cn.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(dn(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},cn.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return nn.apply(void 0,e)},cn.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&0<t?null:(this.bump(),nn(n))},cn.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ve.EMPTY_ARGUMENT,Ve(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(ve.MALFORMED_ARGUMENT,Ve(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:_e.argument,value:r,location:Ve(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(ve.MALFORMED_ARGUMENT,Ve(n,this.clonePosition()))}},cn.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=tn(this.message,e),e=e+n.length;return this.bumpTo(e),{value:n,location:Ve(t,this.clonePosition())}},cn.prototype.parseArgumentOptions=function(t,e,n,r){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(ve.EXPECT_ARGUMENT_TYPE,Ve(s,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(ve.EXPECT_ARGUMENT_STYLE,Ve(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Ve(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(r)).err)return f;var c=Ve(r,this.clonePosition());if(l&&en(null==l?void 0:l.style,"::",0)){u=on(l.style.slice(2));if("number"===o)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:_e.number,value:n,location:c,style:h.val},err:null};if(0===u.length)return this.error(ve.EXPECT_DATE_TIME_SKELETON,c);var d={type:we.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Re,function(t){var e=t.length;switch(t[0]){case"G":i.era=4===e?"long":5===e?"narrow":"short";break;case"y":i.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][e-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"][e-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][e-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][e-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][e-1];break;case"s":i.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===o?_e.date:_e.time,value:n,location:c,style:d},err:null}}return{val:{type:"number"===o?_e.number:"date"===o?_e.date:_e.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(ve.EXPECT_SELECT_ARGUMENT_OPTIONS,Ve(l,Te({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==o&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(ve.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ve(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ve.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ve.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(t,o,e,c);if(c.err)return c;if((f=this.tryParseArgumentClose(r)).err)return f;var f=Ve(r,this.clonePosition());return"select"===o?{val:{type:_e.select,value:n,options:rn(c.val),location:f},err:null}:{val:{type:_e.plural,value:n,options:rn(c.val),offset:l,pluralType:"plural"===o?"cardinal":"ordinal",location:f},err:null};default:return this.error(ve.INVALID_ARGUMENT_TYPE,Ve(s,a))}},cn.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE,Ve(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},cn.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ve.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ve(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},cn.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(Le).filter(function(t){return 0<t.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");e.push({stem:s,options:i})}return e}(t)}catch(t){return this.error(ve.INVALID_NUMBER_SKELETON,e)}return{val:{type:we.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?Be(n):{}},err:null}},cn.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){for(var i=!1,s=[],o=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(ve.EXPECT_PLURAL_ARGUMENT_SELECTOR,ve.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ve(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===e?ve.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ve.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?ve.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ve.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ve(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,n);if(c.err)return c;u=this.tryParseArgumentClose(d);if(u.err)return u;s.push([a,{value:c.val,location:Ve(d,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===s.length?this.error("select"===e?ve.EXPECT_SELECT_ARGUMENT_SELECTOR:ve.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ve(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ve.MISSING_OTHER_CLAUSE,Ve(this.clonePosition(),this.clonePosition())):{val:s,err:null}},cn.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}r=Ve(r,this.clonePosition());return i?Ke(s*=n)?{val:s,err:null}:this.error(e,r):this.error(t,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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=sn(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},cn.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},cn.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},cn.prototype.bumpIf=function(t){if(en(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},cn.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},cn.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},cn.prototype.bumpSpace=function(){for(;!this.isEOF()&&hn(this.char());)this.bump()},cn.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},cn);function cn(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function dn(t){return 97<=t&&t<=122||65<=t&&t<=90}function hn(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function fn(t,e){e=Te({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var n=new un(t,e).parse();if(n.err){t=SyntaxError(ve[n.err.kind]);throw t.location=n.err.location,t.originalMessage=n.err.message,t}return null!=e&&e.captureLocation||function n(t){t.forEach(function(t){if(delete t.location,Ce(t)||De(t))for(var e in t.options)delete t.options[e].location,n(t.options[e].value);else Se(t)&&Ae(t.style)||(Me(t)||ke(t))&&Pe(t.style)?delete t.style.location:Oe(t)&&n(t.children)})}(n.val),n.val}function pn(t,e){var n=e&&e.cache?e.cache:wn,r=e&&e.serializer?e.serializer:bn;return(e&&e.strategy?e.strategy:function(t,e){return yn(t,this,1===t.length?mn:gn,e.cache.create(),e.serializer)})(t,{cache:n,serializer:r})}function mn(t,e,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=e.get(i);return void 0===n&&(n=t.call(this,r),e.set(i,n)),n}function gn(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),n=e.get(i);return void 0===n&&(n=t.apply(this,r),e.set(i,n)),n}function yn(t,e,n,r,i){return n.bind(e,t,r,i)}var bn=function(){return JSON.stringify(arguments)};function vn(){this.cache=Object.create(null)}vn.prototype.has=function(t){return t in this.cache},vn.prototype.get=function(t){return this.cache[t]},vn.prototype.set=function(t,e){this.cache[t]=e};var _n,wn={create:function(){return new vn}},Tn={variadic:function(t,e){return yn(t,this,gn,e.cache.create(),e.serializer)},monadic:function(t,e){return yn(t,this,mn,e.cache.create(),e.serializer)}};(Ne=_n=_n||{}).MISSING_VALUE="MISSING_VALUE",Ne.INVALID_VALUE="INVALID_VALUE",Ne.MISSING_INTL_API="MISSING_INTL_API";var En,xn,Sn,Mn,kn,Cn=(be(Ln,kn=Error),Ln.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ln),Dn=(be($n,Mn=Cn),$n),On=(be(Rn,Sn=Cn),Rn),An=(be(Nn,xn=Cn),Nn);function Nn(t,e){return xn.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',_n.MISSING_VALUE,e)||this}function Rn(t,e,n){return Sn.call(this,'Value for "'+t+'" must be of type '+e,_n.INVALID_VALUE,n)||this}function $n(t,e,n,r){return Mn.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(n).join('", "')+'"',_n.INVALID_VALUE,r)||this}function Ln(t,e,n){t=kn.call(this,t)||this;return t.code=e,t.originalMessage=n,t}function In(t,e,n,r,i,s,o){if(1===t.length&&xe(t[0]))return[{type:En.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(xe(c))a.push({type:En.literal,value:c.value});else if(c.type===_e.pound)"number"==typeof s&&a.push({type:En.literal,value:n.getNumberFormat(e).format(s)});else{var d=c.value;if(!(i&&d in i))throw new An(d,o);var h=i[d];if(c.type===_e.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?En.literal:En.object,value:h});else if(Me(c)){var f="string"==typeof c.style?r.date[c.style]:Pe(c.style)?c.style.parsedOptions:void 0;a.push({type:En.literal,value:n.getDateTimeFormat(e,f).format(h)})}else if(ke(c))f="string"==typeof c.style?r.time[c.style]:Pe(c.style)?c.style.parsedOptions:void 0,a.push({type:En.literal,value:n.getDateTimeFormat(e,f).format(h)});else if(Se(c))(f="string"==typeof c.style?r.number[c.style]:Ae(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:En.literal,value:n.getNumberFormat(e,f).format(h)});else{if(Oe(c)){var p=c.children,m=c.value,d=i[m];if("function"!=typeof d)throw new On(m,"function",o);p=d(In(p,e,n,r,i,s).map(function(t){return t.value}));Array.isArray(p)||(p=[p]),a.push.apply(a,p.map(function(t){return{type:"string"==typeof t?En.literal:En.object,value:t}}))}if(Ce(c)){if(!(g=c.options[h]||c.options.other))throw new Dn(c.value,h,Object.keys(c.options),o);a.push.apply(a,In(g.value,e,n,r,i))}else if(De(c)){if(!(g=c.options["="+h])){if(!Intl.PluralRules)throw new Cn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',_n.MISSING_INTL_API,o);var p=n.getPluralRules(e,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[p]||c.options.other}if(!g)throw new Dn(c.value,h,Object.keys(c.options),o);a.push.apply(a,In(g.value,e,n,r,i,h-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===En.literal&&e.type===En.literal?n.value+=e.value:t.push(e),t},[])}function Yn(n){return{create:function(){return{has:function(t){return t in n},get:function(t){return n[t]},set:function(t,e){n[t]=e}}}}}(Ne=En=En||{})[Ne.literal=0]="literal",Ne[Ne.object=1]="object";var Un=(Object.defineProperty(Fn,"defaultLocale",{get:function(){return Fn.memoizedDefaultLocale||(Fn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Fn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Fn.memoizedDefaultLocale=null,Fn.__parse=fn,Fn.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"}}},Fn);function Fn(t,e,n,r){var i,s,o=this;if(void 0===e&&(e=Fn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=o.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===En.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return In(o.ast,o.locales,o.formatters,o.formats,t,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof t){if(this.message=t,!Fn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Fn.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=Fn.formats,(s=n)?Object.keys(i).reduce(function(t,e){var n,r;return t[e]=(n=i[e],(r=s[e])?Te(Te(Te({},n||{}),r||{}),Object.keys(n).reduce(function(t,e){return t[e]=Te(Te({},n[e]),r[e]||{}),t},{})):n),t},Te({},i)):i),this.locales=e,this.formatters=r&&r.formatters||{getNumberFormat:pn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ee([void 0],e)))},{cache:Yn((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:Tn.variadic}),getDateTimeFormat:pn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ee([void 0],e)))},{cache:Yn(r.dateTime),strategy:Tn.variadic}),getPluralRules:pn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ee([void 0],e)))},{cache:Yn(r.pluralRules),strategy:Tn.variadic})}}const jn={},Gn=(e,n)=>{if(null!=n){if(n in jn&&e in jn[n])return jn[n][e];var r,i,s=ir(n);for(let t=0;t<s.length;t++){var o=(r=s[t],i=e,Hn(r)?function(t,e){if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(0<t){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(function(t){return zn[t]||null}(r),i):null);if(o)return r=e,i=n,(o=o)&&(i in jn||(jn[i]={}),r in jn[i]||(jn[i][r]=o),o)}}};let zn;const Bn=oe({});function Hn(t){return t in zn}function Wn(e,...n){delete jn[e],Bn.update(t=>(t[e]=ge.all([t[e]||{},...n]),t))}ae([Bn],([t])=>Object.keys(t)),Bn.subscribe(t=>zn=t);const Vn={};function Xn(t){return Vn[t]}function Zn(t){return ir(t).some(t=>{return null===(t=Xn(t))||void 0===t?void 0:t.size})}const qn={};function Jn(t){if(!Zn(t))return t in qn?qn[t]:void 0;const e=ir(t).map(t=>{var e=Xn(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return qn[t]=Promise.all(e.map(([t,n])=>function(e){return Promise.all(n.map(t=>(function(t,e){Vn[t].delete(e),0===Vn[t].size&&delete Vn[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Wn(e,...t))}(t))).then(()=>Zn(t)?Jn(t):void delete qn[t]),qn[t]}function Kn(t,e){var n={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[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 tr=oe(!1);let er;const nr=oe(null);function rr(t){return t.split("-").map((t,e,n)=>n.slice(0,e+1).join("-")).reverse()}function ir(t,e=Qn.fallbackLocale){t=rr(t);return e?[...new Set([...t,...rr(e)])]:t}nr.subscribe(t=>{er=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const sr=nr.set;nr.set=e=>{if(function(t){if(null!=t){var e=ir(t);for(let t=0;t<e.length;t++){var n=e[t];if(Hn(n))return n}}}(e)&&Zn(e)){var{loadingDelay:n}=Qn;let t;return"undefined"!=typeof window&&null!=er&&n?t=window.setTimeout(()=>tr.set(!0),n):tr.set(!0),Jn(e).then(()=>{sr(e)}).finally(()=>{clearTimeout(t),tr.set(!1)})}return sr(e)},nr.update=t=>sr(t(er));const or=n=>{const r=Object.create(null);return t=>{var e=JSON.stringify(t);return e in r?r[e]:r[e]=n(t)}},ar=(t,e)=>{var{formats:n}=Qn;if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},lr=or(t=>{var{locale:e,format:n}=t,t=Kn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(t=ar("number",n)),new Intl.NumberFormat(e,t)}),ur=or(t=>{var{locale:e,format:n}=t,t=Kn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?t=ar("date",n):0===Object.keys(t).length&&(t=ar("date","short")),new Intl.DateTimeFormat(e,t)}),cr=or(t=>{var{locale:e,format:n}=t,t=Kn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?t=ar("time",n):0===Object.keys(t).length&&(t=ar("time","short")),new Intl.DateTimeFormat(e,t)}),dr=or((t,e=er)=>new Un(t,e,Qn.formats,{ignoreTag:Qn.ignoreTag})),hr=ae([nr,Bn],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:n,locale:r=er,default:i}=e;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let s=Gn(t,r);if(s){if("string"!=typeof s)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof s}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),s}else Qn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${ir(r).join('", "')}".${Zn(er)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),s=i||t;if(!n)return s;let o=s;try{o=dr(s,r).format(n)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return o});ae([nr],()=>(t,e)=>((t={})=>{var{locale:e=er}=t,t=Kn(t,["locale"]);return cr(Object.assign({locale:e},t))})(e).format(t)),ae([nr],()=>(t,e)=>((t={})=>{var{locale:e=er}=t,t=Kn(t,["locale"]);return ur(Object.assign({locale:e},t))})(e).format(t)),ae([nr],()=>(t,e)=>((t={})=>{var{locale:e=er}=t,t=Kn(t,["locale"]);return lr(Object.assign({locale:e},t))})(e).format(t)),ae([nr,Bn],()=>(t,e=er)=>Gn(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==re.indexOf(t)&&(e=new Qt(e),ie[t]=e,re.push(t)),ie[t]}};const fr=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),pr=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",mr={en:{tournamentsController:{500:"500 - Internal server error",showMore:"Show more",Scheduled:"Scheduled",Ongoing:"OnGoing",Finished:"Finished",loading:"Loading, please wait ...",noTournaments:"No tournaments found"}},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:"Δεν βρέθηκαν τουρνουά"}}};var gr=ht(function(t,w){!function(t){var r,A=t.setTimeout,P=t.clearTimeout,N=t.XMLHttpRequest,i=t.XDomainRequest,e=t.ActiveXObject,n=t.EventSource,s=t.document,d=t.Promise,h=t.fetch,o=t.Response,f=t.TextDecoder,a=t.TextEncoder,p=t.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",function(t){s.readyState="complete"},!1)),null==N&&null!=e&&(N=function(){return new e("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p&&(r=h,h=function(t,e){var n=e.signal;return r(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then(function(t){var e=t.body.getReader();return n._reader=e,n._aborted&&n._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}})},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),l.prototype.decode=function(t){function e(t,e,n){if(1===n)return 128>>e<=t&&t<<e<=2047;if(2===n)return 2048>>e<=t&&t<<e<=55295||57344>>e<=t&&t<<e<=65535;if(3===n)return 65536>>e<=t&&t<<e<=1114111;throw new Error}function n(t,e){if(6===t)return 15<e>>6?3:31<e?2:1;if(12===t)return 15<e?3:2;if(18===t)return 3;throw new Error}for(var r="",i=this.bitsNeeded,s=this.codePoint,o=0;o<t.length;o+=1){var a=t[o];0!==i&&(a<128||191<a||!e(s<<6|63&a,i-6,n(i,s)))&&(i=0,s=65533,r+=String.fromCharCode(s)),0===i?(s=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||e(s,i,n(i,s))||(i=0,s=65533)):(i-=6,s=s<<6|63&a),0===i&&(s<=65535?r+=String.fromCharCode(s):(r+=String.fromCharCode(55296+(s-65535-1>>10)),r+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=s,r},null!=f&&null!=a&&function(){try{return"test"===(new f).decode((new a).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}}()||(f=l);var c=function(){};function R(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=c,this.onload=c,this.onerror=c,this.onreadystatechange=c,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=c}function u(t){return t.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)+32)})}function m(t){for(var e=Object.create(null),n=t.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),s=i.shift(),i=i.join(": ");e[u(s)]=i}this._map=e}function $(){}function g(t){this._headers=t}function L(){}function y(){this._listeners=Object.create(null)}function b(t){A(function(){throw t},0)}function v(t){this.type=t,this.target=void 0}function I(t,e){v.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function Y(t,e){v.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function U(t,e){v.call(this,t),this.error=e.error}R.prototype.open=function(t,e){this._abort(!0);var i=this,s=this._xhr,o=1,n=0;this._abort=function(t){0!==i._sendTimeout&&(P(i._sendTimeout),i._sendTimeout=0),1!==o&&2!==o&&3!==o||(o=4,s.onload=c,s.onerror=c,s.onabort=c,s.onprogress=c,s.onreadystatechange=c,s.abort(),0!==n&&(P(n),n=0),t||(i.readyState=4,i.onabort(null),i.onreadystatechange())),o=0};function r(){if(1===o){var e=0,n="",r=void 0;if("contentType"in s)e=200,n="OK",r=s.contentType;else try{e=s.status,n=s.statusText,r=s.getResponseHeader("Content-Type")}catch(t){n="",r=void(e=0)}0!==e&&(o=2,i.readyState=2,i.status=e,i.statusText=n,i._contentType=r,i.onreadystatechange())}}function a(){if(r(),2===o||3===o){o=3;var t="";try{t=s.responseText}catch(t){}i.readyState=3,i.responseText=t,i.onprogress()}}function l(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:c}),a(),1===o||2===o||3===o){if(o=4,0!==n&&(P(n),n=0),i.readyState=4,"load"===t)i.onload(e);else if("error"===t)i.onerror(e);else{if("abort"!==t)throw new TypeError;i.onabort(e)}i.onreadystatechange()}}var u=function(){n=A(function(){u()},500),3===s.readyState&&a()};"onload"in s&&(s.onload=function(t){l("load",t)}),"onerror"in s&&(s.onerror=function(t){l("error",t)}),"onabort"in s&&(s.onabort=function(t){l("abort",t)}),"onprogress"in s&&(s.onprogress=a),"onreadystatechange"in s&&(s.onreadystatechange=function(t){t=t,null!=s&&(4===s.readyState?"onload"in s&&"onerror"in s&&"onabort"in s||l(""===s.responseText?"error":"load",t):3===s.readyState?"onprogress"in s||a():2===s.readyState&&r())}),!("contentType"in s)&&"ontimeout"in N.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),s.open(t,e,!0),"readyState"in s&&(n=A(function(){u()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(t){return this._contentType},R.prototype.setRequestHeader=function(t,e){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(t,e)},R.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if("ontimeout"in N.prototype&&("sendAsBinary"in N.prototype||"mozAnon"in N.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var e=this;e._sendTimeout=A(function(){e._sendTimeout=0,e.send()},4)}},m.prototype.get=function(t){return this._map[u(t)]},null!=N&&null==N.HEADERS_RECEIVED&&(N.HEADERS_RECEIVED=2),$.prototype.open=function(i,s,e,n,t,r,o){i.open("GET",t);var a,l=0;for(a in i.onprogress=function(){var t=i.responseText.slice(l);l+=t.length,e(t)},i.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},i.onload=function(){n(null)},i.onabort=function(){n(null)},i.onreadystatechange=function(){var t,e,n,r;i.readyState===N.HEADERS_RECEIVED&&(t=i.status,e=i.statusText,n=i.getResponseHeader("Content-Type"),r=i.getAllResponseHeaders(),s(t,e,n,new m(r)))},i.withCredentials=r,o)Object.prototype.hasOwnProperty.call(o,a)&&i.setRequestHeader(a,o[a]);return i.send(),i},g.prototype.get=function(t){return this._headers.get(t)},L.prototype.open=function(t,e,i,n,r,s,o){var a=null,l=new p,u=l.signal,c=new f;return h(r,{headers:o,credentials:s?"include":"same-origin",signal:u,cache:"no-store"}).then(function(t){return a=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new g(t.headers)),new d(function(e,n){var r=function(){a.read().then(function(t){t.done?e(void 0):(t=c.decode(t.value,{stream:!0}),i(t),r())}).catch(function(t){n(t)})};r()})}).catch(function(t){return"AbortError"===t.name?void 0:t}).then(function(t){n(t)}),{abort:function(){null!=a&&a.cancel(),l.abort()}}},y.prototype.dispatchEvent=function(t){var e=(t.target=this)._listeners[t.type];if(null!=e)for(var n=e.length,r=0;r<n;r+=1){var i=e[r];try{"function"==typeof i.handleEvent?i.handleEvent(t):i.call(this,t)}catch(t){b(t)}}},y.prototype.addEventListener=function(t,e){t=String(t);var n=this._listeners,r=n[t];null==r&&(n[t]=r=[]);for(var i=!1,s=0;s<r.length;s+=1)r[s]===e&&(i=!0);i||r.push(e)},y.prototype.removeEventListener=function(t,e){t=String(t);var n=this._listeners,r=n[t];if(null!=r){for(var i=[],s=0;s<r.length;s+=1)r[s]!==e&&i.push(r[s]);0===i.length?delete n[t]:n[t]=i}},I.prototype=Object.create(v.prototype),Y.prototype=Object.create(v.prototype),U.prototype=Object.create(v.prototype);function F(t,e){return t=null==t?e:parseInt(t,10),z(t=t!=t?e:t)}function j(t,e,n){try{"function"==typeof e&&e.call(t,n)}catch(t){b(t)}}var G=/^text\/event\-stream(;.*)?$/i,z=function(t){return Math.min(Math.max(t,1e3),18e6)};function _(t,e){y.call(this),e=e||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(l,s,t){s=String(s);function o(t,e,n,r){var i,s;0===w&&(200===t&&null!=n&&G.test(n)?(w=1,m=Date.now(),p=d,l.readyState=1,i=new Y("open",{status:t,statusText:e,headers:r}),l.dispatchEvent(i),j(l,l.onopen,i)):(s="",s=200!==t?"EventSource's response has a status "+t+" "+(e=e&&e.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",D(),i=new Y("error",{status:t,statusText:e,headers:r}),l.dispatchEvent(i),j(l,l.onerror,i),console.error(s)))}function a(t){if(1===w){for(var e=-1,n=0;n<t.length;n+=1)(o=t.charCodeAt(n))!=="\n".charCodeAt(0)&&o!=="\r".charCodeAt(0)||(e=n);var r=(-1!==e?S:"")+t.slice(0,e+1);S=(-1===e?S:"")+t.slice(e+1),""!==t&&(m=Date.now(),g+=t.length);for(var i=0;i<r.length;i+=1){var s,o=r.charCodeAt(i);if(-1===M&&o==="\n".charCodeAt(0))M=0;else if(-1===M&&(M=0),o==="\r".charCodeAt(0)||o==="\n".charCodeAt(0)){if(0!==M&&(1===M&&(C=i+1),s=r.slice(k,C-1),a=r.slice(C+(C<i&&r.charCodeAt(C)===" ".charCodeAt(0)?1:0),i),"data"===s?(T+="\n",T+=a):"id"===s?E=a:"event"===s?x=a:"retry"===s?(d=F(a,d),p=d):"heartbeatTimeout"===s&&(h=F(a,h),0!==_&&(P(_),_=A(function(){O()},h)))),0===M){if(""!==T){f=E;var a=new I(x=""===x?"message":x,{data:T.slice(1),lastEventId:E});if(l.dispatchEvent(a),"open"===x?j(l,l.onopen,a):"message"===x?j(l,l.onmessage,a):"error"===x&&j(l,l.onerror,a),2===w)return}x=T=""}M=o==="\r".charCodeAt(0)?-1:0}else 0===M&&(k=i,M=1),1===M?o===":".charCodeAt(0)&&(C=i+1,M=2):2===M&&(M=3)}}}function u(t){var e;1!==w&&0!==w||(w=-1,0!==_&&(P(_),_=0),_=A(function(){O()},p),p=z(Math.min(16*d,2*p)),l.readyState=0,e=new U("error",{error:t}),l.dispatchEvent(e),j(l,l.onerror,e),null!=t&&console.error(t))}var e=Boolean(t.withCredentials),c=t.lastEventIdQueryParameterName||"lastEventId",d=z(1e3),h=F(t.heartbeatTimeout,45e3),f="",p=d,m=!1,g=0,n=t.headers||{},t=t.Transport,y=B&&null==t?void 0:new R(new(null!=t?t:null!=N&&"withCredentials"in N.prototype||null==i?N:i)),b=new(null!=t&&"string"!=typeof t?t:null==y?L:$),v=void 0,_=0,w=-1,T="",E="",x="",S="",M=0,k=0,C=0,D=function(){w=2,null!=v&&(v.abort(),v=void 0),0!==_&&(P(_),_=0),l.readyState=2},O=function(){if(_=0,-1===w){m=!1,g=0,_=A(function(){O()},h),E=f,S=x=T="",M=C=k=w=0;var t=s;"data:"!==s.slice(0,5)&&"blob:"!==s.slice(0,5)&&""!==f&&(t=-1===(e=s.indexOf("?"))?s:s.slice(0,e+1)+s.slice(e+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(t,e){return e===c?"":t}),t+=(-1===s.indexOf("?")?"?":"&")+c+"="+encodeURIComponent(f));var e=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{v=b.open(y,o,a,u,t,e,n)}catch(t){throw D(),t}}else m||null==v?(e=Math.max((m||Date.now())+h-Date.now(),1),m=!1,_=A(function(){O()},e)):(u(new Error("No activity within "+h+" milliseconds. "+(0===w?"No response received.":g+" chars received.")+" Reconnecting.")),null!=v&&(v.abort(),v=void 0))};l.url=s,l.readyState=0,l.withCredentials=e,l.headers=n,l._close=D,O()}(this,t,e)}var B=null!=h&&null!=o&&"body"in o.prototype;(_.prototype=Object.create(y.prototype)).CONNECTING=0,_.prototype.OPEN=1,_.prototype.CLOSED=2,_.prototype.close=function(){this._close()},_.CONNECTING=0,_.OPEN=1,_.CLOSED=2,_.prototype.withCredentials=void 0;t=n;null==N||null!=n&&"withCredentials"in n.prototype||(t=_),(o=w).EventSourcePolyfill=_,o.NativeEventSource=n,o.EventSource=t}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:dt:globalThis)});const yr={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:"ΟΛΟΚΛΗΡΩΜΕΝΑ"}}};function br(t,e,n){const r=t.slice();return r[13]=e[n],r[15]=n,r}function vr(e){let i,n,s,r,o,t=e[3]("tournamentsFilter.tournaments")+"",a=e[0],l=[];for(let t=0;t<a.length;t+=1)l[t]=Sr(br(e,a,t));return{c(){i=S("ul"),n=S("li"),s=M(t),r=M(":"),o=k();for(let t=0;t<l.length;t+=1)l[t].c();D(n,"class",fr(e[4])?"MobileClass":"Non-MobileClass/empty"),D(n,"part",fr(e[4])?"MobileClass":"Non-MobileClass/empty"),D(i,"class",fr(e[4])?"MobileClass":"Non-MobileClass/empty"),D(i,"part",fr(e[4])?"MobileClass":"Non-MobileClass/empty")},m(t,e){E(t,i,e),T(i,n),T(n,s),T(n,r),T(i,o);for(let t=0;t<l.length;t+=1)l[t].m(i,null)},p(e,n){if(8&n&&t!==(t=e[3]("tournamentsFilter.tournaments")+"")&&O(s,t),63&n){let t;for(a=e[0],t=0;t<a.length;t+=1){var r=br(e,a,t);l[t]?l[t].p(r,n):(l[t]=Sr(r),l[t].c(),l[t].m(i,null))}for(;t<l.length;t+=1)l[t].d(1);l.length=a.length}},d(t){t&&x(i),m(l,t)}}}function _r(){let n,r;return{c(){n=e("svg"),r=e("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(t,e){E(t,n,e),T(n,r)},d(t){t&&x(n)}}}function wr(t){let n,r=t[3]("tournamentsFilter.scheduled")+"";return{c(){n=M(r)},m(t,e){E(t,n,e)},p(t,e){8&e&&r!==(r=t[3]("tournamentsFilter.scheduled")+"")&&O(n,r)},d(t){t&&x(n)}}}function Tr(t){let n,r=t[3]("tournamentsFilter.ongoing")+"";return{c(){n=M(r)},m(t,e){E(t,n,e)},p(t,e){8&e&&r!==(r=t[3]("tournamentsFilter.ongoing")+"")&&O(n,r)},d(t){t&&x(n)}}}function Er(t){let n,r=t[3]("tournamentsFilter.finished")+"";return{c(){n=M(r)},m(t,e){E(t,n,e)},p(t,e){8&e&&r!==(r=t[3]("tournamentsFilter.finished")+"")&&O(n,r)},d(t){t&&x(n)}}}function xr(t){let n,r=t[3]("tournamentsFilter.all")+"";return{c(){n=M(r)},m(t,e){E(t,n,e)},p(t,e){8&e&&r!==(r=t[3]("tournamentsFilter.all")+"")&&O(n,r)},d(t){t&&x(n)}}}function Sr(n){let r,i,s,o,a,l,u,c,d,h,f,p,m=(1==n[1][n[15]]||n[2]&&0==n[15])&&_r(),g="Scheduled"==n[13]&&wr(n),y="Ongoing"==n[13]&&Tr(n),b="Finished"==n[13]&&Er(n),v="All"==n[13]&&xr(n);function _(){return n[8](n[13],n[15])}return{c(){r=S("li"),i=S("button"),m&&m.c(),s=k(),o=S("div"),g&&g.c(),a=k(),y&&y.c(),l=k(),b&&b.c(),u=k(),v&&v.c(),h=k(),D(o,"class","FilterButton "+(fr(n[4])?"MobileClass":"Non-MobileClass/empty")),D(o,"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"))},m(t,e){E(t,r,e),T(r,i),m&&m.m(i,null),T(i,s),T(i,o),g&&g.m(o,null),T(o,a),y&&y.m(o,null),T(o,l),b&&b.m(o,null),T(o,u),v&&v.m(o,null),T(r,h),f||(p=C(r,"click",_),f=!0)},p(t,e){1==(n=t)[1][n[15]]||n[2]&&0==n[15]?m||(m=_r(),m.c(),m.m(i,s)):m&&(m.d(1),m=null),"Scheduled"==n[13]?g?g.p(n,e):(g=wr(n),g.c(),g.m(o,a)):g&&(g.d(1),g=null),"Ongoing"==n[13]?y?y.p(n,e):(y=Tr(n),y.c(),y.m(o,l)):y&&(y.d(1),y=null),"Finished"==n[13]?b?b.p(n,e):(b=Er(n),b.c(),b.m(o,u)):b&&(b.d(1),b=null),"All"==n[13]?v?v.p(n,e):(v=xr(n),v.c(),v.m(o,null)):v&&(v.d(1),v=null),6&e&&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&e&&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(t){t&&x(r),m&&m.d(),g&&g.d(),y&&y.d(),b&&b.d(),v&&v.d(),f=!1,p()}}}function Mr(t){let n,r=0<t[0].length&&vr(t);return{c(){n=S("div"),r&&r.c(),this.c=b,D(n,"class","FiltersController "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty")),D(n,"part","FiltersController "+(fr(t[4])?"MobileClass":"Non-MobileClass/empty"))},m(t,e){E(t,n,e),r&&r.m(n,null)},p(t,[e]){0<t[0].length?r?r.p(t,e):(r=vr(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:b,o:b,d(t){t&&x(n),r&&r.d()}}}function kr(t,e,n){let r;X(t,hr,t=>n(3,r=t));let{filters:i=""}=e,{activefilters:s=""}=e,o=[],a=0,l=new Array(100),u=!0,c=window.navigator.userAgent;Object.keys(yr).forEach(t=>{Wn(t,yr[t])});const d=(t,e)=>{if(0==e)n(2,u=!0),n(1,l=new Array(a)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]});else if(n(2,u=!1),1==l[e]?(n(1,l[e]=0,l),-1==l.indexOf(1)&&n(2,u=!0)):n(1,l[e]=1,l),-1==l.indexOf(1))window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]});else{let e=[];for(let t=0;t<o.length;t++)1==l[t]&&e.push(o[t]);window.postMessage({type:"TournamentsFiltersSelected",filters:e})}};return t.$$set=t=>{"filters"in t&&n(6,i=t.filters),"activefilters"in t&&n(7,s=t.activefilters)},t.$$.update=()=>{64&t.$$.dirty&&i&&(n(0,o=i.split(",")),a=o.length),128&t.$$.dirty&&s&&(()=>{let t=s.split(",");n(1,l=new Array(a)),-1!=t.indexOf("All")?n(2,u=!0):(n(2,u=!1),t.forEach(t=>{t=o.indexOf(t);0<t&&n(1,l[t]=1,l)}))})()},[o,l,u,r,c,d,i,s,(t,e)=>d(0,e)]}customElements.get("casino-tournaments-filter-controller")||customElements.define("casino-tournaments-filter-controller",class extends c{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}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:#FFFFFF;opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:#00000029;justify-content:center;padding:10px;height:40px;border:1px solid #fff;min-width:40px;text-align:center;color:#fff}button.MobileClass{height:30px}button:hover{background-color:#c3c3c3;border:1px solid #c3c3c3;color:#000;cursor:pointer}.FiltersController{background:#000;color:#fff;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:#58586B;border:1px solid #58586B}.FiltersController .Active:hover{background-color:#58586B;border:1px solid #58586B}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},kr,Mr,n,{filters:6,activefilters:7}),t&&(t.target&&E(t.target,this,t.anchor),t.props&&(this.$set(t.props),I()))}static get observedAttributes(){return["filters","activefilters"]}get filters(){return this.$$.ctx[6]}set filters(t){this.$set({filters:t}),I()}get activefilters(){return this.$$.ctx[7]}set activefilters(t){this.$set({activefilters:t}),I()}});var Cr=ht(function(An,t){An.exports=function(){var t;function p(){return t.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(f(t,e))return;return 1}function s(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){for(var n=[],r=0;r<t.length;++r)n.push(e(t[r],r));return n}function c(t,e){for(var n in e)f(e,n)&&(t[n]=e[n]);return f(e,"toString")&&(t.toString=e.toString),f(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,r){return De(t,e,n,r,!0).utc()}function m(t){return null==t._pf&&(t._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}),t._pf}function h(t){if(null==t._isValid){var e=m(t),n=y.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function g(t){var e=d(NaN);return null!=t?c(m(e),t):m(e).userInvalidated=!0,e}var y=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1},b=p.momentProperties=[],e=!1;function v(t,e){var n,r,i;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=m(e)),s(e._locale)||(t._locale=e._locale),0<b.length)for(n=0;n<b.length;n++)s(i=e[r=b[n]])||(t[r]=i);return t}function _(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===e&&(e=!0,p.updateOffset(this),e=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function T(t){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function n(i,s){var o=!0;return c(function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,i),o){for(var t,e,n=[],r=0;r<arguments.length;r++){if(t="","object"==typeof arguments[r]){for(e in t+="\n["+r+"] ",arguments[0])f(arguments[0],e)&&(t+=e+": "+arguments[0][e]+", ");t=t.slice(0,-2)}else t=arguments[r];n.push(t)}T(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return s.apply(this,arguments)},s)}var E={};function x(t,e){null!=p.deprecationHandler&&p.deprecationHandler(t,e),E[t]||(T(e),E[t]=!0)}function S(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t,e){var n,r=c({},t);for(n in e)f(e,n)&&(a(t[n])&&a(e[n])?(r[n]={},c(r[n],t[n]),c(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)f(t,n)&&!f(e,n)&&a(t[n])&&(r[n]=c({},r[n]));return r}function k(t){null!=t&&this.set(t)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;var C=Object.keys||function(t){var e,n=[];for(e in t)f(t,e)&&n.push(e);return n};function D(t,e,n){var r=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-r.length)).toString().substr(1)+r}var O=/(\[[^\[]*\])|(\\)?([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,P={},N={};function R(t,e,n,r){var i="string"==typeof r?function(){return this[r]()}:r;t&&(N[t]=i),e&&(N[e[0]]=function(){return D(i.apply(this,arguments),e[1],e[2])}),n&&(N[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function $(t,e){return t.isValid()?(e=L(e,t.localeData()),P[e]=P[e]||function(r){for(var t,i=r.match(O),e=0,s=i.length;e<s;e++)N[i[e]]?i[e]=N[i[e]]:i[e]=(t=i[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<s;n++)e+=S(i[n])?i[n].call(t,r):i[n];return e}}(e),P[e](t)):t.localeData().invalidDate()}function L(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(A.lastIndex=0;0<=n&&A.test(t);)t=t.replace(A,r),A.lastIndex=0,--n;return t}var I={};function Y(t,e){var n=t.toLowerCase();I[n]=I[n+"s"]=I[e]=t}function U(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function F(t){var e,n,r={};for(n in t)f(t,n)&&(e=U(n))&&(r[e]=t[n]);return r}var j={};function G(t,e){j[t]=e}function z(t){return t%4==0&&t%100!=0||t%400==0}function B(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function H(t){var e=+t,t=0;return t=0!=e&&isFinite(e)?B(e):t}function W(e,n){return function(t){return null!=t?(X(this,e,t),p.updateOffset(this,n),this):V(this,e)}}function V(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function X(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&z(t.year())&&1===t.month()&&29===t.date()?(n=H(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Ct(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var Z=/\d/,q=/\d\d/,J=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,tt=/\d\d?/,et=/\d\d\d\d?/,nt=/\d\d\d\d\d\d?/,rt=/\d{1,3}/,it=/\d{1,4}/,st=/[+-]?\d{1,6}/,ot=/\d+/,at=/[+-]?\d+/,lt=/Z|[+-]\d\d:?\d\d/gi,ut=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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 dt(t,n,r){pt[t]=S(n)?n:function(t,e){return t&&r?r:n}}function ht(t,e){return f(pt,t)?pt[t](e._strict,e._locale):new RegExp(ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i})))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={},mt={};function gt(t,n){var e,r=n;for("string"==typeof t&&(t=[t]),u(n)&&(r=function(t,e){e[n]=H(t)}),e=0;e<t.length;e++)mt[t[e]]=r}function yt(t,i){gt(t,function(t,e,n,r){n._w=n._w||{},i(t,n._w,n,r)})}var bt,vt=0,_t=1,wt=2,Tt=3,Et=4,xt=5,St=6,Mt=7,kt=8;function Ct(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,n=(e%(n=12)+n)%n;return t+=(e-n)/12,1==n?z(t)?29:28:31-n%7%2}bt=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),R("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),G("month",8),dt("M",tt),dt("MM",tt,q),dt("MMM",function(t,e){return e.monthsShortRegex(t)}),dt("MMMM",function(t,e){return e.monthsRegex(t)}),gt(["M","MM"],function(t,e){e[_t]=H(t)-1}),gt(["MMM","MMMM"],function(t,e,n,r){r=n._locale.monthsParse(t,r,n._strict);null!=r?e[_t]=r:m(n).invalidMonth=t});var Dt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),At=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pt=ct,Nt=ct;function Rt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=H(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Ct(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function $t(t){return null!=t?(Rt(this,t),p.updateOffset(this,!0),this):V(this,"Month")}function Lt(){function t(t,e){return e.length-t.length}for(var e,n=[],r=[],i=[],s=0;s<12;s++)e=d([2e3,s]),n.push(this.monthsShort(e,"")),r.push(this.months(e,"")),i.push(this.months(e,"")),i.push(this.monthsShort(e,""));for(n.sort(t),r.sort(t),i.sort(t),s=0;s<12;s++)n[s]=ft(n[s]),r[s]=ft(r[s]);for(s=0;s<24;s++)i[s]=ft(i[s]);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 It(t){return z(t)?366:365}R("Y",0,0,function(){var t=this.year();return t<=9999?D(t,4):"+"+t}),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"),Y("year","y"),G("year",1),dt("Y",at),dt("YY",tt,q),dt("YYYY",it,K),dt("YYYYY",st,Q),dt("YYYYYY",st,Q),gt(["YYYYY","YYYYYY"],vt),gt("YYYY",function(t,e){e[vt]=2===t.length?p.parseTwoDigitYear(t):H(t)}),gt("YY",function(t,e){e[vt]=p.parseTwoDigitYear(t)}),gt("Y",function(t,e){e[vt]=parseInt(t,10)}),p.parseTwoDigitYear=function(t){return H(t)+(68<H(t)?1900:2e3)};var Yt=W("FullYear",!0);function Ut(t,e,n,r,i,s,o){var a;return t<100&&0<=t?(a=new Date(t+400,e,n,r,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,r,i,s,o),a}function Ft(t){var e;return t<100&&0<=t?((e=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,e)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function jt(t,e,n){n=7+e-n;return-(7+Ft(t,0,n).getUTCDay()-e)%7+n-1}function Gt(t,e,n,r,i){var s,i=1+7*(e-1)+(7+n-r)%7+jt(t,r,i),i=i<=0?It(s=t-1)+i:i>It(t)?(s=t+1,i-It(t)):(s=t,i);return{year:s,dayOfYear:i}}function zt(t,e,n){var r,i,s=jt(t.year(),e,n),s=Math.floor((t.dayOfYear()-s-1)/7)+1;return s<1?r=s+Bt(i=t.year()-1,e,n):s>Bt(t.year(),e,n)?(r=s-Bt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=s),{week:r,year:i}}function Bt(t,e,n){var r=jt(t,e,n),n=jt(t+1,e,n);return(It(t)-r+n)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),G("week",5),G("isoWeek",5),dt("w",tt),dt("ww",tt,q),dt("W",tt),dt("WW",tt,q),yt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=H(t)});function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}R("d",0,"do","day"),R("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),R("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),R("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),G("day",11),G("weekday",11),G("isoWeekday",11),dt("d",tt),dt("e",tt),dt("E",tt),dt("dd",function(t,e){return e.weekdaysMinRegex(t)}),dt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),dt("dddd",function(t,e){return e.weekdaysRegex(t)}),yt(["dd","ddd","dddd"],function(t,e,n,r){r=n._locale.weekdaysParse(t,r,n._strict);null!=r?e.d=r:m(n).invalidWeekday=t}),yt(["d","e","E"],function(t,e,n,r){e[r]=H(t)});var Wt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Zt=ct,qt=ct,Jt=ct;function Kt(){function t(t,e){return e.length-t.length}for(var e,n,r,i=[],s=[],o=[],a=[],l=0;l<7;l++)r=d([2e3,1]).day(l),e=ft(this.weekdaysMin(r,"")),n=ft(this.weekdaysShort(r,"")),r=ft(this.weekdays(r,"")),i.push(e),s.push(n),o.push(r),a.push(e),a.push(n),a.push(r);i.sort(t),s.sort(t),o.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Qt(){return this.hours()%12||12}function te(t,e){R(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ee(t,e){return e._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Qt),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+Qt.apply(this)+D(this.minutes(),2)}),R("hmmss",0,0,function(){return""+Qt.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)}),te("a",!0),te("A",!1),Y("hour","h"),G("hour",13),dt("a",ee),dt("A",ee),dt("H",tt),dt("h",tt),dt("k",tt),dt("HH",tt,q),dt("hh",tt,q),dt("kk",tt,q),dt("hmm",et),dt("hmmss",nt),dt("Hmm",et),dt("Hmmss",nt),gt(["H","HH"],Tt),gt(["k","kk"],function(t,e,n){t=H(t);e[Tt]=24===t?0:t}),gt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),gt(["h","hh"],function(t,e,n){e[Tt]=H(t),m(n).bigHour=!0}),gt("hmm",function(t,e,n){var r=t.length-2;e[Tt]=H(t.substr(0,r)),e[Et]=H(t.substr(r)),m(n).bigHour=!0}),gt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Tt]=H(t.substr(0,r)),e[Et]=H(t.substr(r,2)),e[xt]=H(t.substr(i)),m(n).bigHour=!0}),gt("Hmm",function(t,e,n){var r=t.length-2;e[Tt]=H(t.substr(0,r)),e[Et]=H(t.substr(r))}),gt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Tt]=H(t.substr(0,r)),e[Et]=H(t.substr(r,2)),e[xt]=H(t.substr(i))});var ne=W("Hours",!0);var re,ie={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:Dt,monthsShort:Ot,week:{dow:0,doy:6},weekdays:Wt,weekdaysMin:Xt,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},se={},oe={};function ae(t){return t&&t.toLowerCase().replace("_","-")}function le(t){for(var e,n,r,i,s=0;s<t.length;){for(e=(i=ae(t[s]).split("-")).length,n=(n=ae(t[s+1]))?n.split("-"):null;0<e;){if(r=ue(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r+=1)if(t[r]!==e[r])return r;return n}(i,n)>=e-1)break;e--}s++}return re}function ue(e){var t;if(void 0===se[e]&&An&&An.exports)try{t=re._abbr,Pn(),ce(t)}catch(t){se[e]=null}return se[e]}function ce(t,e){return t&&((e=s(e)?he(t):de(t,e))?re=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),re._abbr}function de(t,e){if(null===e)return delete se[t],null;var n,r=ie;if(e.abbr=t,null!=se[t])x("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=se[t]._config;else if(null!=e.parentLocale)if(null!=se[e.parentLocale])r=se[e.parentLocale]._config;else{if(null==(n=ue(e.parentLocale)))return oe[e.parentLocale]||(oe[e.parentLocale]=[]),oe[e.parentLocale].push({name:t,config:e}),null;r=n._config}return se[t]=new k(M(r,e)),oe[t]&&oe[t].forEach(function(t){de(t.name,t.config)}),ce(t),se[t]}function he(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return re;if(!o(t)){if(e=ue(t))return e;t=[t]}return le(t)}function fe(t){var e=t._a;return e&&-2===m(t).overflow&&(e=e[_t]<0||11<e[_t]?_t:e[wt]<1||e[wt]>Ct(e[vt],e[_t])?wt:e[Tt]<0||24<e[Tt]||24===e[Tt]&&(0!==e[Et]||0!==e[xt]||0!==e[St])?Tt:e[Et]<0||59<e[Et]?Et:e[xt]<0||59<e[xt]?xt:e[St]<0||999<e[St]?St:-1,m(t)._overflowDayOfYear&&(e<vt||wt<e)&&(e=wt),m(t)._overflowWeeks&&-1===e&&(e=Mt),m(t)._overflowWeekday&&-1===e&&(e=kt),m(t).overflow=e),t}var pe=/^\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)?)?$/,me=/^\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)?)?$/,ge=/Z|[+-]\d\d(?::?\d\d)?/,ye=[["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]],be=[["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/]],ve=/^\/?Date\((-?\d+)/i,_e=/^(?:(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}))$/,we={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Te(t){var e,n,r,i,s,o,a=t._i,l=pe.exec(a)||me.exec(a);if(l){for(m(t).iso=!0,e=0,n=ye.length;e<n;e++)if(ye[e][1].exec(l[1])){i=ye[e][0],r=!1!==ye[e][2];break}if(null==i)return t._isValid=!1;if(l[3]){for(e=0,n=be.length;e<n;e++)if(be[e][1].exec(l[3])){s=(l[2]||" ")+be[e][0];break}if(null==s)return t._isValid=!1}if(!r&&null!=s)return t._isValid=!1;if(l[4]){if(!ge.exec(l[4]))return t._isValid=!1;o="Z"}t._f=i+(s||"")+(o||""),ke(t)}else t._isValid=!1}function Ee(t,e,n,r,i,s){i=[function(t){t=parseInt(t,10);return t<=49?2e3+t:t<=999?1900+t:t}(t),Ot.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&i.push(parseInt(s,10)),i}function xe(t){var e,n,r,i,s=_e.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(e=Ee(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[1],r=e,i=t,n&&Vt.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(m(i).weekdayMismatch=!0,i._isValid=!1):(t._a=e,t._tzm=(i=s[8],e=s[9],s=s[10],i?we[i]:e?0:((e=parseInt(s,10))-(s=e%100))/100*60+s),t._d=Ft.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0)):t._isValid=!1}function Se(t,e,n){return null!=t?t:null!=e?e:n}function Me(t){var e,n,r,i,s,o,a,l,u,c,d,h,f=[];if(!t._d){for(d=t,h=new Date(p.now()),n=d._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],t._w&&null==t._a[wt]&&null==t._a[_t]&&(null!=(d=(i=t)._w).GG||null!=d.W||null!=d.E?(l=1,u=4,s=Se(d.GG,i._a[vt],zt(Oe(),1,4).year),o=Se(d.W,1),((a=Se(d.E,1))<1||7<a)&&(c=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,h=zt(Oe(),l,u),s=Se(d.gg,i._a[vt],h.year),o=Se(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),o<1||o>Bt(s,l,u)?m(i)._overflowWeeks=!0:null!=c?m(i)._overflowWeekday=!0:(u=Gt(s,o,a,l,u),i._a[vt]=u.year,i._dayOfYear=u.dayOfYear)),null!=t._dayOfYear&&(r=Se(t._a[vt],n[vt]),(t._dayOfYear>It(r)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),r=Ft(r,0,t._dayOfYear),t._a[_t]=r.getUTCMonth(),t._a[wt]=r.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=f[e]=n[e];for(;e<7;e++)t._a[e]=f[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Tt]&&0===t._a[Et]&&0===t._a[xt]&&0===t._a[St]&&(t._nextDay=!0,t._a[Tt]=0),t._d=(t._useUTC?Ft:Ut).apply(null,f),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Tt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(m(t).weekdayMismatch=!0)}}function ke(t){if(t._f!==p.ISO_8601)if(t._f!==p.RFC_2822){t._a=[],m(t).empty=!0;for(var e,n,r=""+t._i,i=r.length,s=0,o=L(t._f,t._locale).match(O)||[],a=0;a<o.length;a++)n=o[a],(e=(r.match(ht(n,t))||[])[0])&&(0<(d=r.substr(0,r.indexOf(e))).length&&m(t).unusedInput.push(d),r=r.slice(r.indexOf(e)+e.length),s+=e.length),N[n]?(e?m(t).empty=!1:m(t).unusedTokens.push(n),c=n,h=t,null!=(d=e)&&f(mt,c)&&mt[c](d,h._a,h,c)):t._strict&&!e&&m(t).unusedTokens.push(n);m(t).charsLeftOver=i-s,0<r.length&&m(t).unusedInput.push(r),t._a[Tt]<=12&&!0===m(t).bigHour&&0<t._a[Tt]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[Tt]=(l=t._locale,u=t._a[Tt],null==(i=t._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=m(t).era)&&(t._a[vt]=t._locale.erasConvertYear(u,t._a[vt])),Me(t),fe(t)}else xe(t);else Te(t);var l,u,c,d,h}function Ce(t){var e=t._i,n=t._f;return t._locale=t._locale||he(t._l),null===e||void 0===n&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(fe(e)):(i(e)?t._d=e:o(n)?function(t){var e,n,r,i,s,o,a=!1;if(0===t._f.length)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)s=0,o=!1,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],ke(e),h(e)&&(o=!0),s+=m(e).charsLeftOver,s+=10*m(e).unusedTokens.length,m(e).score=s,a?s<r&&(r=s,n=e):(null==r||s<r||o)&&(r=s,n=e,o&&(a=!0));c(t,n||e)}(t):n?ke(t):s(n=(e=t)._i)?e._d=new Date(p.now()):i(n)?e._d=new Date(n.valueOf()):"string"==typeof n?function(t){var e=ve.exec(t._i);null===e?(Te(t),!1===t._isValid&&(delete t._isValid,xe(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:p.createFromInputFallback(t)))):t._d=new Date(+e[1])}(e):o(n)?(e._a=r(n.slice(0),function(t){return parseInt(t,10)}),Me(e)):a(n)?function(t){var e,n;t._d||(n=void 0===(e=F(t._i)).day?e.date:e.day,t._a=r([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),Me(t))}(e):u(n)?e._d=new Date(n):p.createFromInputFallback(e),h(t)||(t._d=null),t))}function De(t,e,n,r,i){var s={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(t)&&l(t)||o(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=t,s._f=e,s._strict=r,(s=new _(fe(Ce(s=s))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Oe(t,e,n,r){return De(t,e,n,r,!1)}p.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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){};var Ae=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()}),Pe=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:g()});function Ne(t,e){var n,r;if(!(e=1===e.length&&o(e[0])?e[0]:e).length)return Oe();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Re=["year","quarter","month","week","day","hour","minute","second","millisecond"];function $e(t){var e=F(t),n=e.year||0,r=e.quarter||0,i=e.month||0,s=e.week||e.isoWeek||0,o=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,t=e.millisecond||0;this._isValid=function(t){var e,n,r=!1;for(e in t)if(f(t,e)&&(-1===bt.call(Re,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<Re.length;++n)if(t[Re[n]]){if(r)return!1;parseFloat(t[Re[n]])!==H(t[Re[n]])&&(r=!0)}return!0}(e),this._milliseconds=+t+1e3*u+6e4*l+1e3*a*60*60,this._days=+o+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=he(),this._bubble()}function Le(t){return t instanceof $e}function Ie(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ye(t,n){R(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+D(~~(t/60),2)+n+D(~~t%60,2)})}Ye("Z",":"),Ye("ZZ",""),dt("Z",ut),dt("ZZ",ut),gt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Fe(ut,t)});var Ue=/([\+\-]|\d\d)/gi;function Fe(t,e){var e=(e||"").match(t);return null===e?null:0===(e=60*(t=((e[e.length-1]||[])+"").match(Ue)||["-",0,0])[1]+H(t[2]))?0:"+"===t[0]?e:-e}function je(t,e){var n;return e._isUTC?(n=e.clone(),e=(w(t)||i(t)?t:Oe(t)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+e),p.updateOffset(n,!1),n):Oe(t).local()}function Ge(t){return-Math.round(t._d.getTimezoneOffset())}function ze(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var Be=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,He=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function We(t,e){var n,r,i=t,s=null;return Le(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:u(t)||!isNaN(+t)?(i={},e?i[e]=+t:i.milliseconds=+t):(s=Be.exec(t))?(n="-"===s[1]?-1:1,i={y:0,d:H(s[wt])*n,h:H(s[Tt])*n,m:H(s[Et])*n,s:H(s[xt])*n,ms:H(Ie(1e3*s[St]))*n}):(s=He.exec(t))?(n="-"===s[1]?-1:1,i={y:Ve(s[2],n),M:Ve(s[3],n),w:Ve(s[4],n),d:Ve(s[5],n),h:Ve(s[6],n),m:Ve(s[7],n),s:Ve(s[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=Oe(i.from),n=Oe(i.to),r=s.isValid()&&n.isValid()?(n=je(n,s),s.isBefore(n)?r=Xe(s,n):((r=Xe(n,s)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=r.milliseconds,i.M=r.months),i=new $e(i),Le(t)&&f(t,"_locale")&&(i._locale=t._locale),Le(t)&&f(t,"_isValid")&&(i._isValid=t._isValid),i}function Ve(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function Xe(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ze(r,i){return function(t,e){var n;return null===e||isNaN(+e)||(x(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=t,t=e,e=n),qe(this,We(t,e),r),this}}function qe(t,e,n,r){var i=e._milliseconds,s=Ie(e._days),e=Ie(e._months);t.isValid()&&(r=null==r||r,e&&Rt(t,V(t,"Month")+e*n),s&&X(t,"Date",V(t,"Date")+s*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&p.updateOffset(t,s||e))}We.fn=$e.prototype,We.invalid=function(){return We(NaN)};var Je=Ze(1,"add"),ct=Ze(-1,"subtract");function Ke(t){return"string"==typeof t||t instanceof String}function Qe(t){return w(t)||i(t)||Ke(t)||u(t)||(n=o(e=t),r=!1,n&&(r=0===e.filter(function(t){return!u(t)&&Ke(e)}).length),n&&r)||function(t){var e,n,r=a(t)&&!l(t),i=!1,s=["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(e=0;e<s.length;e+=1)n=s[e],i=i||f(t,n);return r&&i}(t)||null==t;var e,n,r}function tn(t,e){if(t.date()<e.date())return-tn(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(1+n,"months")-r)))||0}function en(t){return void 0===t?this._locale._abbr:(null!=(t=he(t))&&(this._locale=t),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";et=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function nn(){return this._locale}var rn=126227808e5;function sn(t,e){return(t%e+e)%e}function on(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-rn:new Date(t,e,n).valueOf()}function an(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-rn:Date.UTC(t,e,n)}function ln(t,e){return e.erasAbbrRegex(t)}function un(){for(var t=[],e=[],n=[],r=[],i=this.eras(),s=0,o=i.length;s<o;++s)e.push(ft(i[s].name)),t.push(ft(i[s].abbr)),n.push(ft(i[s].narrow)),r.push(ft(i[s].name)),r.push(ft(i[s].abbr)),r.push(ft(i[s].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function cn(t,e){R(0,[t,t.length],0,e)}function dn(t,e,n,r,i){var s;return null==t?zt(this,r,i).year:(e>(s=Bt(t,r,i))&&(e=s),function(t,e,n,r,i){i=Gt(t,e,n,r,i),i=Ft(i.year,0,i.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,t,e,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"),dt("N",ln),dt("NN",ln),dt("NNN",ln),dt("NNNN",function(t,e){return e.erasNameRegex(t)}),dt("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),gt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){r=n._locale.erasParse(t,r,n._strict);r?m(n).era=r:m(n).invalidEra=t}),dt("y",ot),dt("yy",ot),dt("yyy",ot),dt("yyyy",ot),dt("yo",function(t,e){return e._eraYearOrdinalRegex||ot}),gt(["y","yy","yyy","yyyy"],vt),gt(["yo"],function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[vt]=n._locale.eraYearOrdinalParse(t,i):e[vt]=parseInt(t,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"),Y("weekYear","gg"),Y("isoWeekYear","GG"),G("weekYear",1),G("isoWeekYear",1),dt("G",at),dt("g",at),dt("GG",tt,q),dt("gg",tt,q),dt("GGGG",it,K),dt("gggg",it,K),dt("GGGGG",st,Q),dt("ggggg",st,Q),yt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=H(t)}),yt(["gg","GG"],function(t,e,n,r){e[r]=p.parseTwoDigitYear(t)}),R("Q",0,"Qo","quarter"),Y("quarter","Q"),G("quarter",7),dt("Q",Z),gt("Q",function(t,e){e[_t]=3*(H(t)-1)}),R("D",["DD",2],"Do","date"),Y("date","D"),G("date",9),dt("D",tt),dt("DD",tt,q),dt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),gt(["D","DD"],wt),gt("Do",function(t,e){e[wt]=H(t.match(tt)[0])});nt=W("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),G("dayOfYear",4),dt("DDD",rt),dt("DDDD",J),gt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=H(t)}),R("m",["mm",2],0,"minute"),Y("minute","m"),G("minute",14),dt("m",tt),dt("mm",tt,q),gt(["m","mm"],Et);Dt=W("Minutes",!1);R("s",["ss",2],0,"second"),Y("second","s"),G("second",15),dt("s",tt),dt("ss",tt,q),gt(["s","ss"],xt);var hn,Wt=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()}),Y("millisecond","ms"),G("millisecond",16),dt("S",rt,Z),dt("SS",rt,q),dt("SSS",rt,J),hn="SSSS";hn.length<=9;hn+="S")dt(hn,ot);function fn(t,e){e[St]=H(1e3*("0."+t))}for(hn="S";hn.length<=9;hn+="S")gt(hn,fn);Xt=W("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");it=_.prototype;function pn(t){return t}it.add=Je,it.calendar=function(t,e){1===arguments.length&&(arguments[0]?Qe(arguments[0])?(t=arguments[0],e=void 0):function(t){for(var e=a(t)&&!l(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||f(t,r[i]);return e&&n}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var n=t||Oe(),t=je(n,this).startOf("day"),t=p.calendarFormat(this,t)||"sameElse",e=e&&(S(e[t])?e[t].call(this,n):e[t]);return this.format(e||this.localeData().calendar(t,this,Oe(n)))},it.clone=function(){return new _(this)},it.diff=function(t,e,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=je(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=U(e)){case"year":s=tn(this,r)/12;break;case"month":s=tn(this,r);break;case"quarter":s=tn(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:B(s)},it.endOf=function(t){var e,n;if(void 0===(t=U(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?an:on,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-sn(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-sn(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-sn(e,1e3)-1}return this._d.setTime(e),p.updateOffset(this,!0),this},it.format=function(t){return t=t||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),t=$(this,t),this.localeData().postformat(t)},it.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Oe(t).isValid())?We({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},it.fromNow=function(t){return this.from(Oe(),t)},it.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Oe(t).isValid())?We({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},it.toNow=function(t){return this.to(Oe(),t)},it.get=function(t){return S(this[t=U(t)])?this[t]():this},it.invalidAt=function(){return m(this).overflow},it.isAfter=function(t,e){return t=w(t)?t:Oe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=U(e)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},it.isBefore=function(t,e){return t=w(t)?t:Oe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=U(e)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},it.isBetween=function(t,e,n,r){return t=w(t)?t:Oe(t),e=w(e)?e:Oe(e),!!(this.isValid()&&t.isValid()&&e.isValid())&&("("===(r=r||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===r[1]?this.isBefore(e,n):!this.isAfter(e,n))},it.isSame=function(t,e){var t=w(t)?t:Oe(t);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=U(e)||"millisecond")?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},it.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},it.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},it.isValid=function(){return h(this)},it.lang=et,it.locale=en,it.localeData=nn,it.max=Pe,it.min=Ae,it.parsingFlags=function(){return c({},m(this))},it.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)f(t,e)&&n.push({unit:e,priority:j[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=F(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(S(this[t=U(t)]))return this[t](e);return this},it.startOf=function(t){var e,n;if(void 0===(t=U(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?an:on,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=sn(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=sn(e,6e4);break;case"second":e=this._d.valueOf(),e-=sn(e,1e3)}return this._d.setTime(e),p.updateOffset(this,!0),this},it.subtract=ct,it.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},it.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},it.toDate=function(){return new Date(this.valueOf())},it.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t;return(t=e?this.clone().utc():this).year()<0||9999<t.year()?$(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(t,"Z")):$(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},it.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e="moment",n="";return this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+e+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(it[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),it.toJSON=function(){return this.isValid()?this.toISOString():null},it.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},it.unix=function(){return Math.floor(this.valueOf()/1e3)},it.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},it.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},it.eraName=function(){for(var t,e=this.localeData().eras(),n=0,r=e.length;n<r;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].name;if(e[n].until<=t&&t<=e[n].since)return e[n].name}return""},it.eraNarrow=function(){for(var t,e=this.localeData().eras(),n=0,r=e.length;n<r;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].narrow;if(e[n].until<=t&&t<=e[n].since)return e[n].narrow}return""},it.eraAbbr=function(){for(var t,e=this.localeData().eras(),n=0,r=e.length;n<r;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].abbr;if(e[n].until<=t&&t<=e[n].since)return e[n].abbr}return""},it.eraYear=function(){for(var t,e,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(t=n[r].since<=n[r].until?1:-1,e=this.clone().startOf("day").valueOf(),n[r].since<=e&&e<=n[r].until||n[r].until<=e&&e<=n[r].since)return(this.year()-p(n[r].since).year())*t+n[r].offset;return this.year()},it.year=Yt,it.isLeapYear=function(){return z(this.year())},it.weekYear=function(t){return dn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},it.isoWeekYear=function(t){return dn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},it.quarter=it.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},it.month=$t,it.daysInMonth=function(){return Ct(this.year(),this.month())},it.week=it.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},it.isoWeek=it.isoWeeks=function(t){var e=zt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},it.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},it.weeksInWeekYear=function(){var t=this.localeData()._week;return Bt(this.weekYear(),t.dow,t.doy)},it.isoWeeksInYear=function(){return Bt(this.year(),1,4)},it.isoWeeksInISOWeekYear=function(){return Bt(this.isoWeekYear(),1,4)},it.date=nt,it.day=it.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-r,"d")):r},it.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},it.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e=(e=t,t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?e:e-7)},it.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},it.hour=it.hours=ne,it.minute=it.minutes=Dt,it.second=it.seconds=Wt,it.millisecond=it.milliseconds=Xt,it.utcOffset=function(t,e,n){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?i:Ge(this);if("string"==typeof t){if(null===(t=Fe(ut,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ge(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?qe(this,We(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this},it.utc=function(t){return this.utcOffset(0,t)},it.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ge(this),"m")),this},it.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Fe(lt,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},it.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Oe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},it.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},it.isLocal=function(){return!!this.isValid()&&!this._isUTC},it.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},it.isUtc=ze,it.isUTC=ze,it.zoneAbbr=function(){return this._isUTC?"UTC":""},it.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},it.dates=n("dates accessor is deprecated. Use date instead.",nt),it.months=n("months accessor is deprecated. Use month instead",$t),it.years=n("years accessor is deprecated. Use year instead",Yt),it.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),it.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t,e={};return v(e,this),(e=Ce(e))._a?(t=(e._isUTC?d:Oe)(e._a),this._isDSTShifted=this.isValid()&&0<function(t,e,n){for(var r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),s=0,o=0;o<r;o++)(n&&t[o]!==e[o]||!n&&H(t[o])!==H(e[o]))&&s++;return s+i}(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted});K=k.prototype;function mn(t,e,n,r){var i=he(),e=d().set(r,e);return i[n](e,t)}function gn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return mn(t,e,n,"month");for(var r=[],i=0;i<12;i++)r[i]=mn(t,i,n,"month");return r}function yn(t,e,n,r){e=("boolean"==typeof t||(n=e=t,t=!1),u(e)&&(n=e,e=void 0),e||"");var i,s=he(),o=t?s._week.dow:0,a=[];if(null!=n)return mn(e,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=mn(e,(i+o)%7,r,"day");return a}K.calendar=function(t,e,n){return S(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},K.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(O).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(t){return this._ordinal.replace("%d",t)},K.preparse=pn,K.postformat=pn,K.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return S(i)?i(t,e,n,r):i.replace(/%d/i,t)},K.pastFuture=function(t,e){return S(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},K.set=function(t){var e,n;for(n in t)f(t,n)&&(S(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},K.eras=function(t,e){for(var n,r=this._eras||he("en")._eras,i=0,s=r.length;i<s;++i)switch("string"==typeof r[i].since&&(n=p(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=p(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},K.erasParse=function(t,e,n){var r,i,s,o,a,l=this.eras();for(t=t.toUpperCase(),r=0,i=l.length;r<i;++r)if(s=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return l[r];break;case"NNNN":if(s===t)return l[r];break;case"NNNNN":if(a===t)return l[r]}else if(0<=[s,o,a].indexOf(t))return l[r]},K.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?p(t.since).year():p(t.since).year()+(e-t.offset)*n},K.erasAbbrRegex=function(t){return f(this,"_erasAbbrRegex")||un.call(this),t?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(t){return f(this,"_erasNameRegex")||un.call(this),t?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(t){return f(this,"_erasNarrowRegex")||un.call(this),t?this._erasNarrowRegex:this._erasRegex},K.months=function(t,e){return t?(o(this._months)?this._months:this._months[(this._months.isFormat||At).test(e)?"format":"standalone"])[t.month()]:o(this._months)?this._months:this._months.standalone},K.monthsShort=function(t,e){return t?(o(this._monthsShort)?this._monthsShort:this._monthsShort[At.test(e)?"format":"standalone"])[t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.monthsParse=function(t,e,n){var r,i;if(this._monthsParseExact)return function(t,e,n){var r,i,s,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=bt.call(this._shortMonthsParse,t))?i:null:-1!==(i=bt.call(this._longMonthsParse,t))?i:null:"MMM"===e?-1!==(i=bt.call(this._shortMonthsParse,t))||-1!==(i=bt.call(this._longMonthsParse,t))?i:null:-1!==(i=bt.call(this._longMonthsParse,t))||-1!==(i=bt.call(this._shortMonthsParse,t))?i:null}.call(this,t,e,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"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},K.monthsRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||Lt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Nt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||Lt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Pt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(t){return zt(t,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.weekdays=function(t,e){return e=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"],!0===t?Ht(e,this._week.dow):t?e[t.day()]:e},K.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},K.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},K.weekdaysParse=function(t,e,n){var r,i;if(this._weekdaysParseExact)return function(t,e,n){var r,i,s,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=bt.call(this._weekdaysParse,t))?i:null:"ddd"===e?-1!==(i=bt.call(this._shortWeekdaysParse,t))?i:null:-1!==(i=bt.call(this._minWeekdaysParse,t))?i:null:"dddd"===e?-1!==(i=bt.call(this._weekdaysParse,t))||-1!==(i=bt.call(this._shortWeekdaysParse,t))||-1!==(i=bt.call(this._minWeekdaysParse,t))?i:null:"ddd"===e?-1!==(i=bt.call(this._shortWeekdaysParse,t))||-1!==(i=bt.call(this._weekdaysParse,t))||-1!==(i=bt.call(this._minWeekdaysParse,t))?i:null:-1!==(i=bt.call(this._minWeekdaysParse,t))||-1!==(i=bt.call(this._weekdaysParse,t))||-1!==(i=bt.call(this._shortWeekdaysParse,t))?i:null}.call(this,t,e,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"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},K.weekdaysRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},K.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ce("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(t){var e=t%10;return t+(1===H(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),p.lang=n("moment.lang is deprecated. Use moment.locale instead.",ce),p.langData=n("moment.langData is deprecated. Use moment.localeData instead.",he);var bn=Math.abs;function vn(t,e,n,r){n=We(e,n);return t._milliseconds+=r*n._milliseconds,t._days+=r*n._days,t._months+=r*n._months,t._bubble()}function _n(t){return t<0?Math.floor(t):Math.ceil(t)}function wn(t){return 4800*t/146097}function Tn(t){return 146097*t/4800}function En(t){return function(){return this.as(t)}}st=En("ms"),Q=En("s"),Z=En("m"),q=En("h"),rt=En("d"),J=En("w"),Je=En("M"),Pe=En("Q"),Ae=En("y");function xn(t){return function(){return this.isValid()?this._data[t]:NaN}}ct=xn("milliseconds"),ne=xn("seconds"),Dt=xn("minutes"),Wt=xn("hours"),Xt=xn("days"),nt=xn("months"),Yt=xn("years");var Sn=Math.round,Mn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kn(t,e,n,r){var i=We(t).abs(),s=Sn(i.as("s")),o=Sn(i.as("m")),a=Sn(i.as("h")),l=Sn(i.as("d")),u=Sn(i.as("M")),c=Sn(i.as("w")),i=Sn(i.as("y")),l=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||o<=1&&["m"]||o<n.m&&["mm",o]||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]=e,l[3]=0<+t,l[4]=r,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,l)}var Cn=Math.abs;function Dn(t){return(0<t)-(t<0)||+t}function On(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,s,o,a=Cn(this._milliseconds)/1e3,l=Cn(this._days),u=Cn(this._months),c=this.asSeconds();return c?(t=B(a/60),e=B(t/60),a%=60,t%=60,n=B(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dn(this._months)!==Dn(c)?"-":"",s=Dn(this._days)!==Dn(c)?"-":"",o=Dn(this._milliseconds)!==Dn(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?s+l+"D":"")+(e||t||a?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(a?o+r+"S":"")):"P0D"}K=$e.prototype;return K.isValid=function(){return this._isValid},K.abs=function(){var t=this._data;return this._milliseconds=bn(this._milliseconds),this._days=bn(this._days),this._months=bn(this._months),t.milliseconds=bn(t.milliseconds),t.seconds=bn(t.seconds),t.minutes=bn(t.minutes),t.hours=bn(t.hours),t.months=bn(t.months),t.years=bn(t.years),this},K.add=function(t,e){return vn(this,t,e,1)},K.subtract=function(t,e){return vn(this,t,e,-1)},K.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=U(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+wn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Tn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},K.asMilliseconds=st,K.asSeconds=Q,K.asMinutes=Z,K.asHours=q,K.asDays=rt,K.asWeeks=J,K.asMonths=Je,K.asQuarters=Pe,K.asYears=Ae,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 t=this._milliseconds,e=this._days,n=this._months,r=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*_n(Tn(n)+e),n=e=0),r.milliseconds=t%1e3,t=B(t/1e3),r.seconds=t%60,t=B(t/60),r.minutes=t%60,t=B(t/60),r.hours=t%24,e+=B(t/24),n+=t=B(wn(e)),e-=_n(Tn(t)),t=B(n/12),n%=12,r.days=e,r.months=n,r.years=t,this},K.clone=function(){return We(this)},K.get=function(t){return t=U(t),this.isValid()?this[t+"s"]():NaN},K.milliseconds=ct,K.seconds=ne,K.minutes=Dt,K.hours=Wt,K.days=Xt,K.weeks=function(){return B(this.days()/7)},K.months=nt,K.years=Yt,K.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Mn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(n=t),"object"==typeof e&&(r=Object.assign({},Mn,e),null!=e.s&&null==e.ss&&(r.ss=e.s-1)),r=kn(this,!n,r,e=this.localeData()),n&&(r=e.pastFuture(+this,r)),e.postformat(r)},K.toISOString=On,K.toString=On,K.toJSON=On,K.locale=en,K.localeData=nn,K.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",On),K.lang=et,R("X",0,0,"unix"),R("x",0,0,"valueOf"),dt("x",at),dt("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),gt("x",function(t,e,n){n._d=new Date(H(t))}),p.version="2.29.1",t=Oe,p.fn=it,p.min=function(){return Ne("isBefore",[].slice.call(arguments,0))},p.max=function(){return Ne("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=d,p.unix=function(t){return Oe(1e3*t)},p.months=function(t,e){return gn(t,e,"months")},p.isDate=i,p.locale=ce,p.invalid=g,p.duration=We,p.isMoment=w,p.weekdays=function(t,e,n){return yn(t,e,n,"weekdays")},p.parseZone=function(){return Oe.apply(null,arguments).parseZone()},p.localeData=he,p.isDuration=Le,p.monthsShort=function(t,e){return gn(t,e,"monthsShort")},p.weekdaysMin=function(t,e,n){return yn(t,e,n,"weekdaysMin")},p.defineLocale=de,p.updateLocale=function(t,e){var n,r;return null!=e?(r=ie,null!=se[t]&&null!=se[t].parentLocale?se[t].set(M(se[t]._config,e)):(e=M(r=null!=(n=ue(t))?n._config:r,e),null==n&&(e.abbr=t),(e=new k(e)).parentLocale=se[t],se[t]=e),ce(t)):null!=se[t]&&(null!=se[t].parentLocale?(se[t]=se[t].parentLocale,t===ce()&&ce(t)):null!=se[t]&&delete se[t]),se[t]},p.locales=function(){return C(se)},p.weekdaysShort=function(t,e,n){return yn(t,e,n,"weekdaysShort")},p.normalizeUnits=U,p.relativeTimeRounding=function(t){return void 0===t?Sn:"function"==typeof t&&(Sn=t,!0)},p.relativeTimeThreshold=function(t,e){return void 0!==Mn[t]&&(void 0===e?Mn[t]:(Mn[t]=e,"s"===t&&(Mn.ss=e-1),!0))},p.calendarFormat=function(t,e){return(e=t.diff(e,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},p.prototype=it,p.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"},p}()});const Dr={en:{tournamentsList:{nothing:"Nothing to show here."}},tr:{tournamentsList:{nothing:"Gösterilecek."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}}},Or={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"There was an error joining the tournament - "}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά την διαδικασία εγγραφής στο τουρνουά - "}}},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",winStakeR:"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ı",winStakeR:"Kazanç / Bahis Oranı"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων: ",seegames:"Μπορείε να δεις τα παιχνίδια",here:"εδώ",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",startingAt:"ΑΡΧΙΖΕΙ",mostRounds:"Οι περισσότεροι γύροιs",betCount:"Καταμέτρηση στοιχημάτων",maxWinStakeRatio:"Μέγιστος λόγος πονταρίσματος κερδών",winStakeR:"Κερδίστε το Στοίχημα R"}}};function Pr(n){let r,i,s,o;return{c(){r=S("div"),i=M(n[12]),D(r,"class","Status"),D(r,"part","Status")},m(t,e){E(t,r,e),T(r,i),s||(o=g(n[16].call(null,r)),s=!0)},p(t,e){4096&e&&O(i,t[12])},d(t){t&&x(r),s=!1,o()}}}function Nr(t){let n,r=t[5]&&Rr(t);return{c(){r&&r.c(),n=l()},m(t,e){r&&r.m(t,e),E(t,n,e)},p(t,e){t[5]?r?r.p(t,e):(r=Rr(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&x(n)}}}function Rr(t){let n,r,i=t[14]("tournamentsThumbnail.enrolled")+"";return{c(){n=S("div"),r=M(i),D(n,"class","Enrolled"),D(n,"part","Enrolled")},m(t,e){E(t,n,e),T(n,r)},p(t,e){16384&e&&i!==(i=t[14]("tournamentsThumbnail.enrolled")+"")&&O(r,i)},d(t){t&&x(n)}}}function $r(n){let r,i,s,o,a;return{c(){r=S("div"),D(r,"class",i="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),D(r,"part",s="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),_(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(t,e){E(t,r,e),o||(a=g(n[16].call(null,r)),o=!0)},p(t,e){4&e&&i!==(i="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&D(r,"class",i),4&e&&s!==(s="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&D(r,"part",s)},d(t){t&&x(r),o=!1,a()}}}function Lr(n){let r,i,s,o,a;return{c(){r=S("div"),D(r,"class",i="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),D(r,"part",s="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),_(r,"background-image","url('"+n[4]+"')")},m(t,e){E(t,r,e),o||(a=g(n[16].call(null,r)),o=!0)},p(t,e){4&e&&i!==(i="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&D(r,"class",i),4&e&&s!==(s="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&D(r,"part",s),16&e&&_(r,"background-image","url('"+t[4]+"')")},d(t){t&&x(r),o=!1,a()}}}function Ir(n){let r,i,s,o,a;return{c(){r=S("div"),i=M(n[10]),D(r,"class","Date"),D(r,"part","Date")},m(t,e){E(t,r,e),T(r,i),o||(a=g(s=n[15].call(null,r,n[1])),o=!0)},p(t,e){1024&e&&O(i,t[10]),s&&f(s.update)&&2&e&&s.update.call(null,t[1])},d(t){t&&x(r),o=!1,a()}}}function Yr(n){let r,i,s,o,a,l,u,c,d,h,f,p,m,g=n[14]("tournamentsThumbnail.scoreCriteria")+"",y=n[14]("tournamentsThumbnail.seegames")+"",b=n[14]("tournamentsThumbnail.here")+"";function v(t){return"BetCount"==t[6]?Fr:Ur}let _=v(n),w=_(n);return{c(){r=S("div"),i=S("p"),s=M(g),o=M(":\n "),w.c(),a=k(),l=S("div"),u=S("p"),c=M(y),d=k(),h=S("a"),f=M(b),D(r,"class","ScoreCriteria"),D(r,"part","ScoreCriteria"),D(h,"href",n[9]),D(h,"target","_blank"),D(l,"class","Games"),D(l,"part","Games")},m(t,e){E(t,r,e),T(r,i),T(i,s),T(i,o),w.m(i,null),E(t,a,e),E(t,l,e),T(l,u),T(u,c),T(u,d),T(u,h),T(h,f),p||(m=C(h,"click",n[22]),p=!0)},p(t,e){16384&e&&g!==(g=t[14]("tournamentsThumbnail.scoreCriteria")+"")&&O(s,g),_===(_=v(t))&&w?w.p(t,e):(w.d(1),w=_(t),w&&(w.c(),w.m(i,null))),16384&e&&y!==(y=t[14]("tournamentsThumbnail.seegames")+"")&&O(c,y),16384&e&&b!==(b=t[14]("tournamentsThumbnail.here")+"")&&O(f,b),512&e&&D(h,"href",t[9])},d(t){t&&x(r),w.d(),t&&x(a),t&&x(l),p=!1,m()}}}function Ur(n){let r,i,s,o;return{c(){r=S("span"),i=M(n[13])},m(t,e){E(t,r,e),T(r,i),s||(o=g(n[17].call(null,r)),s=!0)},p(t,e){8192&e&&O(i,t[13])},d(t){t&&x(r),s=!1,o()}}}function Fr(t){let n,r,i,s,o,a,l=t[14]("tournamentsThumbnail.mostRounds")+"",u=t[14]("tournamentsThumbnail.minbet")+"";return{c(){n=M(l),r=M("\n ("),i=M(u),s=M(": "),o=M(t[7]),a=M(")")},m(t,e){E(t,n,e),E(t,r,e),E(t,i,e),E(t,s,e),E(t,o,e),E(t,a,e)},p(t,e){16384&e&&l!==(l=t[14]("tournamentsThumbnail.mostRounds")+"")&&O(n,l),16384&e&&u!==(u=t[14]("tournamentsThumbnail.minbet")+"")&&O(i,u),128&e&&O(o,t[7])},d(t){t&&x(n),t&&x(r),t&&x(i),t&&x(s),t&&x(o),t&&x(a)}}}function jr(t){let n,r,i,s,o,a,l,u,c,d=t[2]&&Pr(t),h="true"==t[8]&&Nr(t);function f(t){return t[4]?Lr:$r}let p=f(t),m=p(t),g=t[1]&&Ir(t),y=t[11]&&Yr(t);return{c(){n=S("div"),d&&d.c(),r=k(),h&&h.c(),i=k(),m.c(),s=k(),o=S("div"),a=S("div"),l=M(t[0]),u=k(),g&&g.c(),c=k(),y&&y.c(),this.c=b,D(a,"class","Title"),D(a,"part","Title"),D(o,"class","Details"),D(o,"part","Details"),D(n,"class","Thumbnail"),D(n,"part","Thumbnail")},m(t,e){E(t,n,e),d&&d.m(n,null),T(n,r),h&&h.m(n,null),T(n,i),m.m(n,null),T(n,s),T(n,o),T(o,a),T(a,l),T(o,u),g&&g.m(o,null),T(o,c),y&&y.m(o,null)},p(t,[e]){t[2]?d?d.p(t,e):(d=Pr(t),d.c(),d.m(n,r)):d&&(d.d(1),d=null),"true"==t[8]?h?h.p(t,e):(h=Nr(t),h.c(),h.m(n,i)):h&&(h.d(1),h=null),p===(p=f(t))&&m?m.p(t,e):(m.d(1),m=p(t),m&&(m.c(),m.m(n,s))),1&e&&O(l,t[0]),t[1]?g?g.p(t,e):(g=Ir(t),g.c(),g.m(o,c)):g&&(g.d(1),g=null),t[11]?y?y.p(t,e):(y=Yr(t),y.c(),y.m(o,null)):y&&(y.d(1),y=null)},i:b,o:b,d(t){t&&x(n),d&&d.d(),h&&h.d(),m.d(),g&&g.d(),y&&y.d()}}}function Gr(t,e,i){let s;X(t,hr,t=>i(14,s=t));let{session:n=""}=e,{userid:r=""}=e,{title:o=""}=e,{startdate:a=""}=e,{status:l=""}=e,{tourid:u=""}=e,{thumbnail:c=""}=e,{userenrolled:d=""}=e,{scorecriteria:h=""}=e,{minbetcount:f=""}=e,{showenrolled:p="false"}=e,{gameurl:m=""}=e,{lang:g="en"}=e,y,b=!1,v="",_="";Object.keys(Ar).forEach(t=>{Wn(t,Ar[t])});const w=t=>{t.data&&"SessionID"==t.data.type&&i(11,b=!0)},T=(t,e)=>{window.postMessage({type:"tournamentGamesClicked",tourId:e},window.location.href)};return Z(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),t.$$set=t=>{"session"in t&&i(19,n=t.session),"userid"in t&&i(20,r=t.userid),"title"in t&&i(0,o=t.title),"startdate"in t&&i(1,a=t.startdate),"status"in t&&i(2,l=t.status),"tourid"in t&&i(3,u=t.tourid),"thumbnail"in t&&i(4,c=t.thumbnail),"userenrolled"in t&&i(5,d=t.userenrolled),"scorecriteria"in t&&i(6,h=t.scorecriteria),"minbetcount"in t&&i(7,f=t.minbetcount),"showenrolled"in t&&i(8,p=t.showenrolled),"gameurl"in t&&i(9,m=t.gameurl),"lang"in t&&i(21,g=t.lang)},t.$$.update=()=>{524288&t.$$.dirty&&n&&(0<n.length&&"false"!=n?i(11,b=!0):i(11,b=!1))},[o,a,l,u,c,d,h,f,p,m,"",b,v,_,s,()=>{let t=new Date(a),e=new Intl.DateTimeFormat(g,{month:"long"}).format(t),n=t.getDate(),r=t.toLocaleString(g,{hour:"numeric",minute:"numeric",hour12:!1});i(10,y=`${n} ${e}, `+s("tournamentsThumbnail.startingAt")+` ${r}`)},()=>{"Unstarted"==l&&i(12,v=s("tournamentsThumbnail.scheduled")),"Running"==l&&i(12,v=s("tournamentsThumbnail.ongoing")),"Closed"!=l&&"Closing"!=l||i(12,v=s("tournamentsThumbnail.finished"))},()=>{"BetCount"==h&&i(13,_=s("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==h&&i(13,_=s("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeR"==h&&i(13,_=s("tournamentsThumbnail.winStakeR"))},T,n,r,g,()=>T()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends c{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}a{color:#48952a;text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url(\"https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png\");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:#000000;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:#2B2B5D;color:#aaaabe;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Gr,jr,n,{session:19,userid:20,title:0,startdate:1,status:2,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:6,minbetcount:7,showenrolled:8,gameurl:9,lang:21}),t&&(t.target&&E(t.target,this,t.anchor),t.props&&(this.$set(t.props),I()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang"]}get session(){return this.$$.ctx[19]}set session(t){this.$set({session:t}),I()}get userid(){return this.$$.ctx[20]}set userid(t){this.$set({userid:t}),I()}get title(){return this.$$.ctx[0]}set title(t){this.$set({title:t}),I()}get startdate(){return this.$$.ctx[1]}set startdate(t){this.$set({startdate:t}),I()}get status(){return this.$$.ctx[2]}set status(t){this.$set({status:t}),I()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$set({tourid:t}),I()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$set({thumbnail:t}),I()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$set({userenrolled:t}),I()}get scorecriteria(){return this.$$.ctx[6]}set scorecriteria(t){this.$set({scorecriteria:t}),I()}get minbetcount(){return this.$$.ctx[7]}set minbetcount(t){this.$set({minbetcount:t}),I()}get showenrolled(){return this.$$.ctx[8]}set showenrolled(t){this.$set({showenrolled:t}),I()}get gameurl(){return this.$$.ctx[9]}set gameurl(t){this.$set({gameurl:t}),I()}get lang(){return this.$$.ctx[21]}set lang(t){this.$set({lang:t}),I()}});const zr={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",days:"days",minutesleft:"minutes left",hoursleft:"hours left",daysleft:"days left"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",days:"gün",minutesleft:"dakika kaldı",hoursleft:"saat kaldı",daysleft:"gün kaldı"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",days:"ημέρες",minutesleft:"λεπτά απομένουν",hoursleft:"ώρες απομένουν",daysleft:"ημέρες απομένουν"}}};function Br(n){let r,i,s,o,a,l,u,c,d,h;function f(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?Vr:0<t[6]?Wr:Hr}let p=f(n),m=p(n);return{c(){r=S("div"),i=S("div"),s=M(n[3]),o=k(),a=S("div"),l=M(n[4]),u=k(),c=S("div"),m.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(t,e){E(t,r,e),T(r,i),T(i,s),T(r,o),T(r,a),T(a,l),E(t,u,e),E(t,c,e),m.m(c,null),d||(h=[g(n[12].call(null,i)),g(n[13].call(null,a)),g(n[14].call(null,c))],d=!0)},p(t,e){8&e&&O(s,t[3]),16&e&&O(l,t[4]),p===(p=f(t))&&m?m.p(t,e):(m.d(1),m=p(t),m&&(m.c(),m.m(c,null)))},d(t){t&&x(r),t&&x(u),t&&x(c),m.d(),d=!1,v(h)}}}function Hr(t){let n,r,i,s=0<t[5]&&Xr(t);return{c(){n=S("div"),r=k(),s&&s.c(),i=l(),D(n,"class","ProgressBarFill"),D(n,"part","ProgressBarFill"),_(n,"width",t[7]+"%")},m(t,e){E(t,n,e),E(t,r,e),s&&s.m(t,e),E(t,i,e)},p(t,e){128&e&&_(n,"width",t[7]+"%"),0<t[5]?s?s.p(t,e):(s=Xr(t),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(t){t&&x(n),t&&x(r),s&&s.d(t),t&&x(i)}}}function Wr(t){let n,r,i,s,o,a,l,u,c=t[11]("tournamentsDuration.starting")+"",d=t[11]("tournamentsDuration.days")+"";return{c(){n=S("div"),r=k(),i=S("div"),s=M(c),o=k(),a=M(t[6]),l=k(),u=M(d),D(n,"class","ProgressBarFillStarting"),D(n,"part","ProgressBarFillStarting"),D(i,"class","Remaining"),D(i,"part","Remaining")},m(t,e){E(t,n,e),E(t,r,e),E(t,i,e),T(i,s),T(i,o),T(i,a),T(i,l),T(i,u)},p(t,e){2048&e&&c!==(c=t[11]("tournamentsDuration.starting")+"")&&O(s,c),64&e&&O(a,t[6]),2048&e&&d!==(d=t[11]("tournamentsDuration.days")+"")&&O(u,d)},d(t){t&&x(n),t&&x(r),t&&x(i)}}}function Vr(t){let n,r,i,s,o=t[11]("tournamentsDuration.finished")+"";return{c(){n=S("div"),r=k(),i=S("div"),s=M(o),D(n,"class","ProgressBarFillEnd"),D(n,"part","ProgressBarFillEnd"),D(i,"class","Finished"),D(i,"part","Finished")},m(t,e){E(t,n,e),E(t,r,e),E(t,i,e),T(i,s)},p(t,e){2048&e&&o!==(o=t[11]("tournamentsDuration.finished")+"")&&O(s,o)},d(t){t&&x(n),t&&x(r),t&&x(i)}}}function Xr(t){let n,r,i,s=t[8]&&Zr(t),o=t[9]&&qr(t),a=t[10]&&Jr(t);return{c(){s&&s.c(),n=k(),o&&o.c(),r=k(),a&&a.c(),i=l()},m(t,e){s&&s.m(t,e),E(t,n,e),o&&o.m(t,e),E(t,r,e),a&&a.m(t,e),E(t,i,e)},p(t,e){t[8]?s?s.p(t,e):(s=Zr(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null),t[9]?o?o.p(t,e):(o=qr(t),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),t[10]?a?a.p(t,e):(a=Jr(t),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},d(t){s&&s.d(t),t&&x(n),o&&o.d(t),t&&x(r),a&&a.d(t),t&&x(i)}}}function Zr(t){let n,r,i,s,o=t[11]("tournamentsDuration.minutesleft")+"";return{c(){n=S("div"),r=M(t[5]),i=k(),s=M(o),D(n,"class","Remaining"),D(n,"part","Remaining")},m(t,e){E(t,n,e),T(n,r),T(n,i),T(n,s)},p(t,e){32&e&&O(r,t[5]),2048&e&&o!==(o=t[11]("tournamentsDuration.minutesleft")+"")&&O(s,o)},d(t){t&&x(n)}}}function qr(t){let n,r,i,s,o=t[11]("tournamentsDuration.hoursleft")+"";return{c(){n=S("div"),r=M(t[5]),i=k(),s=M(o),D(n,"class","Remaining"),D(n,"part","Remaining")},m(t,e){E(t,n,e),T(n,r),T(n,i),T(n,s)},p(t,e){32&e&&O(r,t[5]),2048&e&&o!==(o=t[11]("tournamentsDuration.hoursleft")+"")&&O(s,o)},d(t){t&&x(n)}}}function Jr(t){let n,r,i,s,o=t[11]("tournamentsDuration.daysleft")+"";return{c(){n=S("div"),r=M(t[5]),i=k(),s=M(o),D(n,"class","Remaining"),D(n,"part","Remaining")},m(t,e){E(t,n,e),T(n,r),T(n,i),T(n,s)},p(t,e){32&e&&O(r,t[5]),2048&e&&o!==(o=t[11]("tournamentsDuration.daysleft")+"")&&O(s,o)},d(t){t&&x(n)}}}function Kr(t){let n,r=t[0]&&t[1]&&Br(t);return{c(){n=S("div"),r&&r.c(),this.c=b,D(n,"class","TournamentDuration"),D(n,"part","TournamentDuration")},m(t,e){E(t,n,e),r&&r.m(n,null)},p(t,[e]){t[0]&&t[1]?r?r.p(t,e):(r=Br(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:b,o:b,d(t){t&&x(n),r&&r.d()}}}function Qr(t,e,r){let n;X(t,hr,t=>r(11,n=t));let{startdate:i=""}=e,{enddate:s=""}=e,{status:o=""}=e,{lang:a="en"}=e,l,u,c,d,h,f,p,m=!1,g=!1,y=!1;Object.keys(zr).forEach(t=>{Wn(t,zr[t])});const b=t=>{let e=new Date(t),n=new Intl.DateTimeFormat(a,{month:"long"}).format(e);return`${e.getDate()} ${n}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${e.getUTCFullYear()}`},v=(t,e,n)=>{t=new Date(t),t=(new Date(e)-t)/6e4;return 1==n?t<60?(r(8,m=!0),Math.ceil(t)):t<1440?(r(9,g=!0),Math.ceil(t/60)):(r(10,y=!0),Math.ceil(t/1440)):Math.ceil(t/1440)};return t.$$set=t=>{"startdate"in t&&r(0,i=t.startdate),"enddate"in t&&r(1,s=t.enddate),"status"in t&&r(2,o=t.status),"lang"in t&&r(15,a=t.lang)},[i,s,o,"","","","","",m,g,y,n,()=>{r(3,l=b(new Date(i)))},()=>{r(4,u=b(new Date(s)))},()=>{c=v(i,s,!1),r(5,d=v(new Date,s,!0)),r(6,h=v(new Date,i,!1)),0<d&&(f=100/c,r(7,p=Math.floor((c-d)*f)))},a]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends c{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:#58586B}.EndDate{font-size:11px;align-content:flex-end;color:#58586B}.ProgressBar{margin:5px 20px;height:8px;background:#fff}.ProgressBarFill{background-color:#48952a;height:8px}.ProgressBarFillEnd{background-color:#48952a;height:8px}.ProgressBarFillStarting{background-color:#58586B;height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:#1B9800}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Qr,Kr,n,{startdate:0,enddate:1,status:2,lang:15}),t&&(t.target&&E(t.target,this,t.anchor),t.props&&(this.$set(t.props),I()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(t){this.$set({startdate:t}),I()}get enddate(){return this.$$.ctx[1]}set enddate(t){this.$set({enddate:t}),I()}get status(){return this.$$.ctx[2]}set status(t){this.$set({status:t}),I()}get lang(){return this.$$.ctx[15]}set lang(t){this.$set({lang:t}),I()}});const ti={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα"}}};function ei(t,e,n){const r=t.slice();return r[4]=e[n],r[6]=n,r}function ni(t,e,n){const r=t.slice();return r[7]=e[n],r[9]=n,r}function ri(e){let r,i=e[0],s=[];for(let t=0;t<i.length;t+=1)s[t]=oi(ei(e,i,t));let o=null;return i.length||(o=ii(e)),{c(){r=S("div");for(let t=0;t<s.length;t+=1)s[t].c();o&&o.c(),D(r,"class","Prizes"),D(r,"part","Prizes")},m(t,e){E(t,r,e);for(let t=0;t<s.length;t+=1)s[t].m(r,null);o&&o.m(r,null)},p(e,n){if(3&n){let t;for(i=e[0],t=0;t<i.length;t+=1){const o=ei(e,i,t);s[t]?s[t].p(o,n):(s[t]=oi(o),s[t].c(),s[t].m(r,null))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length,!i.length&&o?o.p(e,n):i.length?o&&(o.d(1),o=null):(o=ii(e),o.c(),o.m(r,null))}},d(t){t&&x(r),m(s,t),o&&o.d()}}}function ii(t){let n,r,i=t[1]("tournamentsPrizes.noprizes")+"";return{c(){n=S("p"),r=M(i)},m(t,e){E(t,n,e),T(n,r)},p(t,e){2&e&&i!==(i=t[1]("tournamentsPrizes.noprizes")+"")&&O(r,i)},d(t){t&&x(n)}}}function si(t){let n,r,i,s,o,a,l,u=t[4].rank+t[9]+"",c=t[4].name+"";return{c(){n=S("div"),r=S("p"),i=S("span"),s=M(u),o=k(),a=M(c),l=k(),D(n,"class","Prize Prize"+t[6]),D(n,"part","Prize Prize"+t[6])},m(t,e){E(t,n,e),T(n,r),T(r,i),T(i,s),T(r,o),T(r,a),T(n,l)},p(t,e){1&e&&u!==(u=t[4].rank+t[9]+"")&&O(s,u),1&e&&c!==(c=t[4].name+"")&&O(a,c)},d(t){t&&x(n)}}}function oi(e){let i,s={length:e[4].count},o=[];for(let t=0;t<s.length;t+=1)o[t]=si(ni(e,s,t));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();i=l()},m(e,n){for(let t=0;t<o.length;t+=1)o[t].m(e,n);E(e,i,n)},p(e,n){if(1&n){let t;for(s={length:e[4].count},t=0;t<s.length;t+=1){var r=ni(e,s,t);o[t]?o[t].p(r,n):(o[t]=si(r),o[t].c(),o[t].m(i.parentNode,i))}for(;t<o.length;t+=1)o[t].d(1);o.length=s.length}},d(t){m(o,t),t&&x(i)}}}function ai(t){let n,r,i,s,o,a,l,u,c,d,h=t[1]("tournamentsPrizes.prizes")+"",f=t[0]&&ri(t);return{c(){n=S("div"),r=e("svg"),i=e("defs"),s=e("style"),o=M(".a{fill:#fff;}"),a=e("path"),l=k(),u=S("p"),c=M(h),d=k(),f&&f.c(),this.c=b,D(a,"class","a"),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,"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(t,e){E(t,n,e),T(n,r),T(r,i),T(i,s),T(s,o),T(r,a),T(n,l),T(n,u),T(u,c),T(n,d),f&&f.m(n,null)},p(t,[e]){2&e&&h!==(h=t[1]("tournamentsPrizes.prizes")+"")&&O(c,h),t[0]?f?f.p(t,e):(f=ri(t),f.c(),f.m(n,null)):f&&(f.d(1),f=null)},i:b,o:b,d(t){t&&x(n),f&&f.d()}}}function li(t,e,n){let r;X(t,hr,t=>n(1,r=t));let i,{tourid:s=""}=e;Object.keys(ti).forEach(t=>{Wn(t,ti[t])});const o=t=>{t.data&&t.data.type==`TournamentPrizes_${s}`&&n(0,i=t.data.prizes)};return Z(()=>(window.addEventListener("message",o,!1),()=>{window.removeEventListener("message",o)})),t.$$set=t=>{"tourid"in t&&n(2,s=t.tourid)},[i,r,s]}function ui(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function ci(n){let i,r,s,o,a,l,u,c,d=n[0],h=[];for(let t=0;t<d.length;t+=1)h[t]=di(ui(n,d,t));return{c(){i=S("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=k(),s=S("main"),o=S("div");for(let t=0;t<h.length;t+=1)h[t].c();a=k(),l=S("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"),t(i,"disabled",n[6]),D(o,"class","items"),D(o,"part","items"),_(o,"transform","translateX("+n[1]+"px)"),D(l,"class","SliderNavButton"),D(l,"part","SliderNavButton"),t(l,"disabled",n[7])},m(t,e){E(t,i,e),E(t,r,e),E(t,s,e),T(s,o);for(let t=0;t<h.length;t+=1)h[t].m(o,null);n[21](o),E(t,a,e),E(t,l,e),u||(c=[C(i,"click",n[17]),C(l,"click",n[22])],u=!0)},p(e,n){if(64&n[0]&&t(i,"disabled",e[6]),2841&n[0]){let t;for(d=e[0],t=0;t<d.length;t+=1){var r=ui(e,d,t);h[t]?h[t].p(r,n):(h[t]=di(r),h[t].c(),h[t].m(o,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}2&n[0]&&_(o,"transform","translateX("+e[1]+"px)"),128&n[0]&&t(l,"disabled",e[7])},d(t){t&&x(i),t&&x(r),t&&x(s),m(h,t),n[21](null),t&&x(a),t&&x(l),u=!1,v(c)}}}function di(n){let r,i,s,o,a,l,u,c,d,h,f,p,m;function g(){return n[18](n[37])}function y(){return n[19](n[39])}return{c(){r=S("div"),i=S("span"),s=M("Play now"),l=k(),u=S("img"),f=k(),D(i,"class",o="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(t,e){E(t,r,e),T(r,i),T(i,s),T(r,l),T(r,u),T(r,f),p||(m=[C(r,"click",g),C(r,"mouseenter",y),C(r,"mouseleave",n[20])],p=!0)},p(t,e){n=t,24&e[0]&&o!==(o="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&D(i,"class",o),24&e[0]&&a!==(a="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&D(i,"part",a),1&e[0]&&u.src!==(c=n[37].thumbnail)&&D(u,"src",c),1&e[0]&&d!==(d=n[37].name)&&D(u,"alt",d),1&e[0]&&h!==(h=n[37].name)&&D(u,"title",h)},d(t){t&&x(r),p=!1,v(m)}}}function hi(n){let r,i=n[0]&&ci(n);return{c(){r=S("div"),i&&i.c(),this.c=b,D(r,"class","TournamentsGamesSlider"),D(r,"part","TournamentsGamesSlider")},m(t,e){E(t,r,e),i&&i.m(r,null),n[23](r)},p(t,e){t[0]?i?i.p(t,e):(i=ci(t),i.c(),i.m(r,null)):i&&(i.d(1),i=null)},i:b,o:b,d(t){t&&x(r),i&&i.d(),n[23](null)}}}function fi(t,e,n){let r,i,s,o,a,l,{tournamenturl:u=""}=e,{scrollby:c="3"}=e,{pagfactor:d="175"}=e,{lang:h=""}=e,f=window.navigator.userAgent,p=[],m=0,g=null,y=null,b=!1,v=0;const _=t=>{n(3,b=!0),n(4,a=t)},w=()=>{n(3,b=!1),n(4,a=-1)},T=t=>{t=(t.touches||t.originalEvent.touches)[0];g=t.clientX,y=t.clientY},E=t=>{var e;g&&y&&(e=t.touches[0].clientX,t=t.touches[0].clientY,e=g-e,t=y-t,Math.abs(e)>Math.abs(t)&&x(0<e?1:-1),g=null,y=null)},x=t=>{0<t&&!i?(n(1,m-=s),n(1,m=m<v?v:m)):t<0&&!r&&(n(1,m+=s),n(1,m=0<m?0:m))},S=t=>{window.postMessage({type:"TournamentGameAction",gameId:t.id,name:t.name},window.location.href)};return Z(()=>(s=parseInt(c,10)*parseInt(d,10),()=>{o.removeEventListener("touchstart",T),o.removeEventListener("touchmove",E)})),t.$$set=t=>{"tournamenturl"in t&&n(13,u=t.tournamenturl),"scrollby"in t&&n(14,c=t.scrollby),"pagfactor"in t&&n(12,d=t.pagfactor),"lang"in t&&n(15,h=t.lang)},t.$$.update=()=>{2&t.$$.dirty[0]&&n(6,r=0===m),65538&t.$$.dirty[0]&&n(7,i=m<=v),8192&t.$$.dirty[0]&&u&&(()=>{let t=new URL(u),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("pagination",`games(limit=30,offset=${m})`),t.searchParams.append("fields","games(id,name,thumbnail)"),t.searchParams.append("language",h),t.searchParams.append("platform",pr(f)),fetch(t,{method:"GET",headers:e}).then(t=>t.json()).then(t=>{n(0,p=t.item.games.items),t.item.games.total})})(),4&t.$$.dirty[0]&&o&&(o.addEventListener("touchstart",T,{passive:!0}),o.addEventListener("touchmove",E,{passive:!0})),1&t.$$.dirty[0]&&p.length&&setTimeout(()=>{n(16,v=-1*(l.scrollWidth-l.clientWidth)),n(12,d=new String(l.scrollWidth/p.length)),s=parseInt(c,10)*parseFloat(d,2).toFixed(2)},1e3)},n(1,m=0),[p,m,o,b,a,l,r,i,_,w,x,S,d,u,c,h,v,()=>x(-1),t=>S(t),t=>_(t),()=>w(),function(t){N[t?"unshift":"push"](()=>{l=t,n(5,l)})},()=>x(1),function(t){N[t?"unshift":"push"](()=>{o=t,n(2,o)})}]}function pi(t){let n,r,i,s,o,a,l,u,c,d=t[9]&&gi(t);function h(t){return t[9]?"Closed"!=t[17]&&"Closing"!=t[17]?vi:"true"==t[3]?bi:void 0:_i}let f=h(t),p=f&&f(t),m=t[12]&&ki(t),g="true"==t[4]&&Ci(t);return{c(){n=S("div"),r=S("casino-tournaments-thumbnail"),i=k(),d&&d.c(),s=k(),o=S("div"),p&&p.c(),a=k(),m&&m.c(),l=k(),g&&g.c(),y(r,"session",t[0]),y(r,"userid",t[1]),y(r,"title",t[14]),y(r,"status",t[17]),y(r,"startdate",t[15]),y(r,"tourid",t[18]),y(r,"scorecriteria",t[21]),y(r,"minbetcount",t[22]),y(r,"thumbnail",t[19]),y(r,"userenrolled",t[20]),y(r,"showenrolled",t[5]),y(r,"gameurl",t[24]),y(r,"lang",t[8]),D(o,"class","TournamentButtons"),D(o,"part","TournamentButtons"),D(n,"class",u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")),D(n,"part",c="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))},m(t,e){E(t,n,e),T(n,r),T(n,i),d&&d.m(n,null),T(n,s),T(n,o),p&&p.m(o,null),T(n,a),m&&m.m(n,null),T(n,l),g&&g.m(n,null)},p(t,e){1&e[0]&&y(r,"session",t[0]),2&e[0]&&y(r,"userid",t[1]),16384&e[0]&&y(r,"title",t[14]),131072&e[0]&&y(r,"status",t[17]),32768&e[0]&&y(r,"startdate",t[15]),262144&e[0]&&y(r,"tourid",t[18]),2097152&e[0]&&y(r,"scorecriteria",t[21]),4194304&e[0]&&y(r,"minbetcount",t[22]),524288&e[0]&&y(r,"thumbnail",t[19]),1048576&e[0]&&y(r,"userenrolled",t[20]),32&e[0]&&y(r,"showenrolled",t[5]),16777216&e[0]&&y(r,"gameurl",t[24]),256&e[0]&&y(r,"lang",t[8]),t[9]?d?d.p(t,e):(d=gi(t),d.c(),d.m(n,s)):d&&(d.d(1),d=null),f===(f=h(t))&&p?p.p(t,e):(p&&p.d(1),p=f&&f(t),p&&(p.c(),p.m(o,null))),t[12]?m?m.p(t,e):(m=ki(t),m.c(),m.m(n,l)):m&&(m.d(1),m=null),"true"==t[4]?g?g.p(t,e):(g=Ci(t),g.c(),g.m(n,null)):g&&(g.d(1),g=null),192&e[0]&&u!==(u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&D(n,"class",u),192&e[0]&&c!==(c="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&D(n,"part",c)},d(t){t&&x(n),d&&d.d(),p&&p.d(),m&&m.d(),g&&g.d()}}}function mi(t){let n,r,i,s;return{c(){n=S("div"),r=S("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 "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")),D(n,"part",s="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))},m(t,e){E(t,n,e),T(n,r)},p(t,e){192&e[0]&&i!==(i="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&D(n,"class",i),192&e[0]&&s!==(s="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&D(n,"part",s)},d(t){t&&x(n)}}}function gi(t){let n,r,i=t[18]&&yi(t);return{c(){i&&i.c(),n=k(),r=S("casino-tournaments-thumbnail-duration"),y(r,"status",t[17]),y(r,"startdate",t[15]),y(r,"lang",t[8]),y(r,"enddate",t[16])},m(t,e){i&&i.m(t,e),E(t,n,e),E(t,r,e)},p(t,e){t[18]?i?i.p(t,e):(i=yi(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),131072&e[0]&&y(r,"status",t[17]),32768&e[0]&&y(r,"startdate",t[15]),256&e[0]&&y(r,"lang",t[8]),65536&e[0]&&y(r,"enddate",t[16])},d(t){i&&i.d(t),t&&x(n),t&&x(r)}}}function yi(n){let r,i,s,o;return{c(){r=S("casino-tournaments-thumbnail-prizes"),y(r,"tourid",n[18])},m(t,e){E(t,r,e),s||(o=g(i=n[30].call(null,r,n[18])),s=!0)},p(t,e){262144&e[0]&&y(r,"tourid",t[18]),i&&f(i.update)&&262144&e[0]&&i.update.call(null,t[18])},d(t){t&&x(r),s=!1,o()}}}function bi(n){let r,i,s,o,a=n[25]("tournamentsThController.details")+"";return{c(){r=S("button"),i=M(a),D(r,"class","DetailsLargeButton"),D(r,"part","DetailsLargeButton")},m(t,e){E(t,r,e),T(r,i),s||(o=C(r,"click",n[42]),s=!0)},p(t,e){33554432&e[0]&&a!==(a=t[25]("tournamentsThController.details")+"")&&O(i,a)},d(t){t&&x(r),s=!1,o()}}}function vi(t){let n,r,i="true"==t[3]&&wi(t);function s(t){return 1==t[20]?Ei:Ti}let o=s(t),a=o(t);return{c(){i&&i.c(),n=k(),a.c(),r=l()},m(t,e){i&&i.m(t,e),E(t,n,e),a.m(t,e),E(t,r,e)},p(t,e){"true"==t[3]?i?i.p(t,e):(i=wi(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),o===(o=s(t))&&a?a.p(t,e):(a.d(1),a=o(t),a&&(a.c(),a.m(r.parentNode,r)))},d(t){i&&i.d(t),t&&x(n),a.d(t),t&&x(r)}}}function _i(n){let r,i,s,o,a,l,u,c=n[25]("tournamentsThController.login")+"",d=n[25]("tournamentsThController.register")+"";return{c(){r=S("button"),i=M(c),s=k(),o=S("button"),a=M(d),D(r,"class","LoginButton"),D(r,"part","LoginButton"),D(o,"class","RegisterButton"),D(o,"part","RegisterButton")},m(t,e){E(t,r,e),T(r,i),E(t,s,e),E(t,o,e),T(o,a),l||(u=[C(r,"click",n[38]),C(o,"click",n[39])],l=!0)},p(t,e){33554432&e[0]&&c!==(c=t[25]("tournamentsThController.login")+"")&&O(i,c),33554432&e[0]&&d!==(d=t[25]("tournamentsThController.register")+"")&&O(a,d)},d(t){t&&x(r),t&&x(s),t&&x(o),l=!1,v(u)}}}function wi(n){let r,i,s,o,a=n[25]("tournamentsThController.details")+"";return{c(){r=S("button"),i=M(a),D(r,"class","DetailsButton"),D(r,"part","DetailsButton")},m(t,e){E(t,r,e),T(r,i),s||(o=C(r,"click",n[40]),s=!0)},p(t,e){33554432&e[0]&&a!==(a=t[25]("tournamentsThController.details")+"")&&O(i,a)},d(t){t&&x(r),s=!1,o()}}}function Ti(n){let r,i,s,o,a;function l(t){return 1==t[11]?Si:xi}let u=l(n),c=u(n);return{c(){r=S("button"),c.c(),D(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),D(r,"part",s="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[12]},m(t,e){E(t,r,e),c.m(r,null),o||(a=C(r,"click",n[41]),o=!0)},p(t,e){u===(u=l(t))&&c?c.p(t,e):(c.d(1),c=u(t),c&&(c.c(),c.m(r,null))),128&e[0]&&i!==(i="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&D(r,"class",i),128&e[0]&&s!==(s="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&D(r,"part",s),4096&e[0]&&(r.disabled=t[12])},d(t){t&&x(r),c.d(),o=!1,a()}}}function Ei(t){let n,r="true"==t[3]&&Mi(t);return{c(){r&&r.c(),n=l()},m(t,e){r&&r.m(t,e),E(t,n,e)},p(t,e){"true"==t[3]?r?r.p(t,e):(r=Mi(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&x(n)}}}function xi(t){let n,r,i,s,o,a,l,u,c,d=t[25]("tournamentsThController.join")+"";return{c(){n=S("span"),r=M(d),i=k(),s=e("svg"),o=e("defs"),a=e("style"),l=M(".a{fill:#fff;}"),u=e("g"),c=e("path"),D(c,"class","a"),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(s,"xmlns","http://www.w3.org/2000/svg"),D(s,"width","26"),D(s,"height","26"),D(s,"viewBox","0 0 26 26")},m(t,e){E(t,n,e),T(n,r),E(t,i,e),E(t,s,e),T(s,o),T(o,a),T(a,l),T(s,u),T(u,c)},p(t,e){33554432&e[0]&&d!==(d=t[25]("tournamentsThController.join")+"")&&O(r,d)},d(t){t&&x(n),t&&x(i),t&&x(s)}}}function Si(t){let n,r;return{c(){n=e("svg"),r=e("circle"),D(r,"cx","20"),D(r,"cy","20"),D(r,"r","18"),D(n,"class","spinner"),D(n,"part","spinner")},m(t,e){E(t,n,e),T(n,r)},p:b,d(t){t&&x(n)}}}function Mi(t){let n,r,i=t[25]("tournamentsThController.enrolled")+"";return{c(){n=S("button"),r=M(i),D(n,"class","EnrolledButton"),D(n,"part","EnrolledButton"),n.disabled=!0},m(t,e){E(t,n,e),T(n,r)},p(t,e){33554432&e[0]&&i!==(i=t[25]("tournamentsThController.enrolled")+"")&&O(r,i)},d(t){t&&x(n)}}}function ki(t){let n,r,i,s,o=t[25]("tournamentsThController.joinerror")+"";return{c(){n=S("span"),r=M(o),i=k(),s=M(t[13]),D(n,"class","ErrorText"),D(n,"part","ErrorText")},m(t,e){E(t,n,e),T(n,r),T(n,i),T(n,s)},p(t,e){33554432&e[0]&&o!==(o=t[25]("tournamentsThController.joinerror")+"")&&O(r,o),8192&e[0]&&O(s,t[13])},d(t){t&&x(n)}}}function Ci(t){let n;return{c(){n=S("casino-tournaments-thumbnail-games-slider"),y(n,"tournamenturl",t[2]),y(n,"lang",t[8]),y(n,"scrollby","2")},m(t,e){E(t,n,e)},p(t,e){4&e[0]&&y(n,"tournamenturl",t[2]),256&e[0]&&y(n,"lang",t[8])},d(t){t&&x(n)}}}function Di(t){let n;function r(t){return t[10]?mi:pi}let i=r(t),s=i(t);return{c(){s.c(),n=l(),this.c=b},m(t,e){s.m(t,e),E(t,n,e)},p(t,e){i===(i=r(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(n.parentNode,n)))},i:b,o:b,d(t){s.d(t),t&&x(n)}}}function Oi(t,e,s){let n,r;X(t,hr,t=>s(25,r=t));let i,o,a,l,u,c,d,h,f,{session:p=""}=e,{userid:m=""}=e,{tournamenturl:g=""}=e,{endpoint:y=""}=e,{showdetails:b=""}=e,{showslider:v=""}=e,{showenrolled:_=""}=e,{maxwidth:w=""}=e,{fullsize:T=""}=e,{lang:E=""}=e,{loginevent:x=""}=e,{registerevent:S=""}=e,{loginurl:M=""}=e,{registerurl:k=""}=e,{currency:C=""}=e,D=!1,O="",A=!0,P=window.navigator.userAgent,N=!1,R=!1,$="There was an error while trying to join the tournament",L=[],I=[],Y="#";var U,F;[{withLocale:U,translations:F}]=[{withLocale:"en",translations:{}}],nr.subscribe(t=>{null==t&&(Bn.set(F),nr.set(U))}),Object.keys(Or).forEach(t=>{Wn(t,Or[t])});const j=t=>{t.data&&"UserSessionID"==t.data.type&&(s(9,D=!0),O=t.data.session),"UpdateTournamentView"==t.data.type&&(t=t.data.tournamentData,u&&u!=t.id||W(t))},G=()=>{x&&window.postMessage({type:x,transition:"Login"},window.location.href),M&&(window.location=M)},z=()=>{S&&window.postMessage({type:S,transition:"Register"},window.location.href),k&&(window.location=k)},B=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)},H=(t,e)=>{window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),s(11,N=!0);let n=new URL(`${y}/bonus/claim`),r=new Headers,i={};n.searchParams.append("language",E),r.append("platform",pr(P)),r.append("Content-Type","application/json"),r.append("X-SessionID",O),e&&1<=e.length&&(i={language:E,bonusCode:e[0].code,currency:C});e={method:"PUT",headers:r,body:JSON.stringify(i)};fetch(n,e).then(t=>t.json()).then(t=>{1==t.success?(s(11,N=!1),s(20,d=!0)):(s(11,N=!1),s(13,$=t.errorMessage),s(12,R=!0))},t=>{s(11,N=!1),s(12,R=!0)})},W=t=>{s(14,i=t.nameOrTitle),s(15,o=t.startTime),s(16,a=t.endTime),s(17,l=t.state),s(18,u=t.id),s(19,c=t.thumbnail),s(20,d=t.playerEnrolled||!1),s(21,h=t.scoreCriteria),s(22,f=t.minBetCount),L=t.prizes,s(23,I=t.wallets||[]),s(24,Y=t.termsUrl||"#")},V=()=>{s(10,A=!0),(t=>{s(10,A=!0);let e=new URL(t),n=new Headers;e.searchParams.append("language",E),n.append("platform",pr(P)),D&&n.append("X-SessionID",O),fetch(e,{method:"GET",headers:n}).then(t=>t.json()).then(t=>{s(10,A=!1),W(t.item)})})(g)};return Z(()=>(s(10,A=!1),window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j)})),t.$$set=t=>{"session"in t&&s(0,p=t.session),"userid"in t&&s(1,m=t.userid),"tournamenturl"in t&&s(2,g=t.tournamenturl),"endpoint"in t&&s(31,y=t.endpoint),"showdetails"in t&&s(3,b=t.showdetails),"showslider"in t&&s(4,v=t.showslider),"showenrolled"in t&&s(5,_=t.showenrolled),"maxwidth"in t&&s(6,w=t.maxwidth),"fullsize"in t&&s(7,T=t.fullsize),"lang"in t&&s(8,E=t.lang),"loginevent"in t&&s(32,x=t.loginevent),"registerevent"in t&&s(33,S=t.registerevent),"loginurl"in t&&s(34,M=t.loginurl),"registerurl"in t&&s(35,k=t.registerurl),"currency"in t&&s(36,C=t.currency)},t.$$.update=()=>{1&t.$$.dirty[0]&&p&&(0<p.length&&"false"!=p?(O=p,s(9,D=!0)):s(9,D=!1)),260&t.$$.dirty[0]&&s(37,n=g&&E),64&t.$$.dirty[1]&&n&&V()},[p,m,g,b,v,_,w,T,E,D,A,N,R,$,i,o,a,l,u,c,d,h,f,I,Y,r,G,z,B,H,(t,e)=>{window.postMessage({type:`TournamentPrizes_${e}`,prizes:L},window.location.href)},y,x,S,M,k,C,n,()=>G(),()=>z(),()=>B(u),()=>H(u,I),()=>B(u)]}function Ai(t,e,n){const r=t.slice();return r[20]=e[n],r[22]=n,r}function Pi(e){let r,i=e[10],s=[];for(let t=0;t<i.length;t+=1)s[t]=Ri(Ai(e,i,t));let o=null;return i.length||(o=Ni(e)),{c(){for(let t=0;t<s.length;t+=1)s[t].c();r=l(),o&&o.c()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);E(e,r,n),o&&o.m(e,n)},p(e,n){if(3583&n){let t;for(i=e[10],t=0;t<i.length;t+=1){const o=Ai(e,i,t);s[t]?s[t].p(o,n):(s[t]=Ri(o),s[t].c(),s[t].m(r.parentNode,r))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length,!i.length&&o?o.p(e,n):i.length?o&&(o.d(1),o=null):(o=Ni(e),o.c(),o.m(r.parentNode,r))}},d(t){m(s,t),t&&x(r),o&&o.d(t)}}}function Ni(t){let n,r,i=t[11]("tournamentsList.nothing")+"";return{c(){n=S("p"),r=M(i)},m(t,e){E(t,n,e),T(n,r)},p(t,e){2048&e&&i!==(i=t[11]("tournamentsList.nothing")+"")&&O(r,i)},d(t){t&&x(n)}}}function Ri(t){let n,r,i;return{c(){n=S("casino-tournaments-thumbnail-controller"),y(n,"session",t[0]),y(n,"userid",t[1]),y(n,"endpoint",t[2]),y(n,"showdetails","true"),y(n,"showslider","false"),y(n,"tournamenturl",r=t[20].href),y(n,"maxwidth",i=t[10].length<=2),y(n,"loginurl",t[5]),y(n,"loginevent",t[3]),y(n,"registerurl",t[6]),y(n,"registerevent",t[4]),y(n,"lang",t[8]),y(n,"currency",t[7])},m(t,e){E(t,n,e)},p(t,e){1&e&&y(n,"session",t[0]),2&e&&y(n,"userid",t[1]),4&e&&y(n,"endpoint",t[2]),1024&e&&r!==(r=t[20].href)&&y(n,"tournamenturl",r),1024&e&&i!==(i=t[10].length<=2)&&y(n,"maxwidth",i),32&e&&y(n,"loginurl",t[5]),8&e&&y(n,"loginevent",t[3]),64&e&&y(n,"registerurl",t[6]),16&e&&y(n,"registerevent",t[4]),256&e&&y(n,"lang",t[8]),128&e&&y(n,"currency",t[7])},d(t){t&&x(n)}}}function $i(t){let n,r=!t[9]&&Pi(t);return{c(){n=S("div"),r&&r.c(),this.c=b,D(n,"class","TournamentList"),D(n,"part","TournamentList")},m(t,e){E(t,n,e),r&&r.m(n,null)},p(t,[e]){t[9]?r&&(r.d(1),r=null):r?r.p(t,e):(r=Pi(t),r.c(),r.m(n,null))},i:b,o:b,d(t){t&&x(n),r&&r.d()}}}function Li(t,e,n){let r;X(t,hr,t=>n(11,r=t));let{session:i=""}=e,{userid:s=""}=e,{numberoftournaments:o="6"}=e,{endpoint:a=""}=e,{loginevent:l=""}=e,{registerevent:u=""}=e,{loginurl:c=""}=e,{registerurl:d=""}=e,{currency:h=""}=e,{lang:f="en"}=e,p=!1;Cr();let m="";Object.keys(Dr).forEach(t=>{Wn(t,Dr[t])});const g=t=>{t.data&&"TournamentList"==t.data.type&&(n(10,m=[]),n(9,p=!0),n(10,m=t.data.tournamentList),setTimeout(()=>{n(9,p=!1)},10)),t.data&&"UserSessionID"==t.data.type&&t.data.session};return Z(()=>(window.addEventListener("message",g,!0),()=>{window.removeEventListener("message",g)})),t.$$set=t=>{"session"in t&&n(0,i=t.session),"userid"in t&&n(1,s=t.userid),"numberoftournaments"in t&&n(12,o=t.numberoftournaments),"endpoint"in t&&n(2,a=t.endpoint),"loginevent"in t&&n(3,l=t.loginevent),"registerevent"in t&&n(4,u=t.registerevent),"loginurl"in t&&n(5,c=t.loginurl),"registerurl"in t&&n(6,d=t.registerurl),"currency"in t&&n(7,h=t.currency),"lang"in t&&n(8,f=t.lang)},t.$$.update=()=>{1&t.$$.dirty&&i&&i.length,t.$$.dirty},[i,s,a,l,u,c,d,h,f,p,m,r,o]}function Ii(t){let n,r,i,s,o,a,l=t[15]&&Ui(t);function u(t){return 0==t[16]?ji:Fi}let c=u(t),d=c(t),h=!t[17]&&Bi(t);return{c(){n=S("div"),r=S("div"),i=S("div"),l&&l.c(),s=k(),o=S("div"),d.c(),a=k(),h&&h.c(),D(i,"class","FirstRow"),D(i,"part","FirstRow"),D(o,"class","SecondRow"),D(o,"part","SecondRow"),D(r,"class","Tournaments"),_(r,"max-width",t[11]+"px"),D(r,"part","Tournaments"),D(n,"class","TournamentsWrapper"),D(n,"part","TournamentsWrapper")},m(t,e){E(t,n,e),T(n,r),T(r,i),l&&l.m(i,null),T(r,s),T(r,o),d.m(o,null),T(r,a),h&&h.m(r,null)},p(t,e){t[15]?l?l.p(t,e):(l=Ui(t),l.c(),l.m(i,null)):l&&(l.d(1),l=null),c===(c=u(t))&&d?d.p(t,e):(d.d(1),d=c(t),d&&(d.c(),d.m(o,null))),t[17]?h&&(h.d(1),h=null):h?h.p(t,e):(h=Bi(t),h.c(),h.m(r,null)),2048&e[0]&&_(r,"max-width",t[11]+"px")},d(t){t&&x(n),l&&l.d(),d.d(),h&&h.d()}}}function Yi(t){let n,r,i,s,o,a=t[18]("tournamentsController.500")+"";return{c(){n=S("p"),r=M(a),i=k(),s=S("p"),o=M(t[13])},m(t,e){E(t,n,e),T(n,r),E(t,i,e),E(t,s,e),T(s,o)},p(t,e){262144&e[0]&&a!==(a=t[18]("tournamentsController.500")+"")&&O(r,a),8192&e[0]&&O(o,t[13])},d(t){t&&x(n),t&&x(i),t&&x(s)}}}function Ui(t){let n;return{c(){n=S("casino-tournaments-filter-controller"),y(n,"filters",Wi),y(n,"activefilters",t[5])},m(t,e){E(t,n,e)},p(t,e){32&e[0]&&y(n,"activefilters",t[5])},d(t){t&&x(n)}}}function Fi(t){let n;return{c(){n=S("casino-tournaments-list-controller"),y(n,"session",t[0]),y(n,"userid",t[1]),y(n,"numberoftournaments",t[4]),y(n,"endpoint",t[2]),y(n,"loginurl",t[8]),y(n,"loginevent",t[6]),y(n,"registerurl",t[9]),y(n,"registerevent",t[7]),y(n,"lang",t[3]),y(n,"currency",t[10])},m(t,e){E(t,n,e)},p(t,e){1&e[0]&&y(n,"session",t[0]),2&e[0]&&y(n,"userid",t[1]),16&e[0]&&y(n,"numberoftournaments",t[4]),4&e[0]&&y(n,"endpoint",t[2]),256&e[0]&&y(n,"loginurl",t[8]),64&e[0]&&y(n,"loginevent",t[6]),512&e[0]&&y(n,"registerurl",t[9]),128&e[0]&&y(n,"registerevent",t[7]),8&e[0]&&y(n,"lang",t[3]),1024&e[0]&&y(n,"currency",t[10])},d(t){t&&x(n)}}}function ji(t){let n;function r(t){return t[14]?zi:Gi}let i=r(t),s=i(t);return{c(){s.c(),n=l()},m(t,e){s.m(t,e),E(t,n,e)},p(t,e){i===(i=r(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(n.parentNode,n)))},d(t){s.d(t),t&&x(n)}}}function Gi(t){let n,r,i=t[18]("tournamentsController.noTournaments")+"";return{c(){n=S("p"),r=M(i)},m(t,e){E(t,n,e),T(n,r)},p(t,e){262144&e[0]&&i!==(i=t[18]("tournamentsController.noTournaments")+"")&&O(r,i)},d(t){t&&x(n)}}}function zi(t){let n,r,i=t[18]("tournamentsController.loading")+"";return{c(){n=S("p"),r=M(i)},m(t,e){E(t,n,e),T(n,r)},p(t,e){262144&e[0]&&i!==(i=t[18]("tournamentsController.loading")+"")&&O(r,i)},d(t){t&&x(n)}}}function Bi(n){let r,i,s,o,a,l,u=n[18]("tournamentsController.showMore")+"";return{c(){r=S("div"),i=S("div"),s=S("button"),o=M(u),D(s,"class","ShowMoreButton"),D(s,"part","ShowMoreButton"),D(s,"title","Show More"),D(i,"class","CenterButton"),D(i,"part","CenterButton"),D(r,"class","ThirdRow"),D(r,"part","ThirdRow")},m(t,e){E(t,r,e),T(r,i),T(i,s),T(s,o),a||(l=C(s,"click",n[23]),a=!0)},p(t,e){262144&e[0]&&u!==(u=t[18]("tournamentsController.showMore")+"")&&O(o,u)},d(t){t&&x(r),a=!1,l()}}}function Hi(t){let n;function r(t){return t[12]?Yi:Ii}let i=r(t),s=i(t);return{c(){s.c(),n=l(),this.c=b},m(t,e){s.m(t,e),E(t,n,e)},p(t,e){i===(i=r(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(n.parentNode,n)))},i:b,o:b,d(t){s.d(t),t&&x(n)}}}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends c{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:#c3c3c3}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:#58586B}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:#FFF}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},li,ai,n,{tourid:2}),t&&(t.target&&E(t.target,this,t.anchor),t.props&&(this.$set(t.props),I()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(t){this.$set({tourid:t}),I()}}),customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends c{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:#0a0c19;color:#fff;display:flex;justify-content:center}.disabled{color:#3B3C47}.SliderNavButton{background:#0a0c19;border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:#ef4322;color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:#28a745;display:block;box-sizing:border-box;padding:0.8rem .5rem;color:#fff;text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},fi,hi,n,{tournamenturl:13,scrollby:14,pagfactor:12,lang:15},[-1,-1]),t&&(t.target&&E(t.target,this,t.anchor),t.props&&(this.$set(t.props),I()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[13]}set tournamenturl(t){this.$set({tournamenturl:t}),I()}get scrollby(){return this.$$.ctx[14]}set scrollby(t){this.$set({scrollby:t}),I()}get pagfactor(){return this.$$.ctx[12]}set pagfactor(t){this.$set({pagfactor:t}),I()}get lang(){return this.$$.ctx[15]}set lang(t){this.$set({lang:t}),I()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends c{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:#0A0B19;color:#fff;border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.LoginButton{background:#0A0B19;width:50%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:#0A0B19;width:50%;height:60px;text-align:center;color:#48952a;border:solid #48952a 1px;text-transform:uppercase;font-size:18px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:#0A0B19;width:40%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:#0A0B19;width:100%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:16px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:#2a2c5a;width:60%;height:60px;text-align:center;color:#aaaabe;border:0;text-transform:uppercase;font-size:18px;cursor:default}.JoinButton{background:#48952a;width:60%;height:60px;text-align:center;color:#fff;border:solid #48952a 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:18px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:#0A0B19;border:1px solid black;border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(10, 11, 25, 0) 46%, rgba(10, 11, 25, 0.35) 50%, rgba(10, 11, 25, 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:#ced4da}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(10, 11, 25, 0)}.ph-col-4{flex:0 0 33.33333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.66667%}.ph-col-12{flex:0 0 100%}[class*="ph-col"]{direction:ltr}[class*="ph-col"]>*+.ph-row{margin-top:0}[class*="ph-col"]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:#ced4da}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:#212121;stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}</style>',u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Oi,Di,n,{session:0,userid:1,tournamenturl:2,endpoint:31,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:32,registerevent:33,loginurl:34,registerurl:35,currency:36},[-1,-1]),t&&(t.target&&E(t.target,this,t.anchor),t.props&&(this.$set(t.props),I()))}static get observedAttributes(){return["session","userid","tournamenturl","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency"]}get session(){return this.$$.ctx[0]}set session(t){this.$set({session:t}),I()}get userid(){return this.$$.ctx[1]}set userid(t){this.$set({userid:t}),I()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$set({tournamenturl:t}),I()}get endpoint(){return this.$$.ctx[31]}set endpoint(t){this.$set({endpoint:t}),I()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$set({showdetails:t}),I()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$set({showslider:t}),I()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$set({showenrolled:t}),I()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$set({maxwidth:t}),I()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$set({fullsize:t}),I()}get lang(){return this.$$.ctx[8]}set lang(t){this.$set({lang:t}),I()}get loginevent(){return this.$$.ctx[32]}set loginevent(t){this.$set({loginevent:t}),I()}get registerevent(){return this.$$.ctx[33]}set registerevent(t){this.$set({registerevent:t}),I()}get loginurl(){return this.$$.ctx[34]}set loginurl(t){this.$set({loginurl:t}),I()}get registerurl(){return this.$$.ctx[35]}set registerurl(t){this.$set({registerurl:t}),I()}get currency(){return this.$$.ctx[36]}set currency(t){this.$set({currency:t}),I()}}),customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",class extends c{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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},Li,$i,n,{session:0,userid:1,numberoftournaments:12,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8}),t&&(t.target&&E(t.target,this,t.anchor),t.props&&(this.$set(t.props),I()))}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang"]}get session(){return this.$$.ctx[0]}set session(t){this.$set({session:t}),I()}get userid(){return this.$$.ctx[1]}set userid(t){this.$set({userid:t}),I()}get numberoftournaments(){return this.$$.ctx[12]}set numberoftournaments(t){this.$set({numberoftournaments:t}),I()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$set({endpoint:t}),I()}get loginevent(){return this.$$.ctx[3]}set loginevent(t){this.$set({loginevent:t}),I()}get registerevent(){return this.$$.ctx[4]}set registerevent(t){this.$set({registerevent:t}),I()}get loginurl(){return this.$$.ctx[5]}set loginurl(t){this.$set({loginurl:t}),I()}get registerurl(){return this.$$.ctx[6]}set registerurl(t){this.$set({registerurl:t}),I()}get currency(){return this.$$.ctx[7]}set currency(t){this.$set({currency:t}),I()}get lang(){return this.$$.ctx[8]}set lang(t){this.$set({lang:t}),I()}});let Wi="All,Scheduled,Ongoing,Finished";function Vi(t,e,s){let n,r,i;X(t,hr,t=>s(18,i=t));let o,a,{session:l=""}=e,{userid:u=""}=e,{endpoint:c=""}=e,{lang:d="en"}=e,{numberoftournaments:h="6"}=e,{showmorestep:f="2"}=e,{filters:p="All"}=e,{loginevent:m=""}=e,{registerevent:g=""}=e,{loginurl:y=""}=e,{registerurl:b=""}=e,{currency:v="EUR"}=e,{containermaxwidth:_=""}=e,w=!1,T="",E=!1,x="",S=window.navigator.userAgent,M=!0,k=!1,C=!1,D=0,O=6,A=!0,P=[],N=new Date;var R,$;N.setMonth(N.getMonth()-1),N=N.toISOString().substring(0,10),[{withLocale:R,translations:$}]=[{withLocale:"en",translations:{}}],nr.subscribe(t=>{null==t&&(Bn.set($),nr.set(R))}),Object.keys(mr).forEach(t=>{Wn(t,mr[t])});const L=t=>{t.data&&"UserSessionID"===t.data.type&&(E=!0,x=t.data.session,t.data.userid,I(c,0,O)),t.data&&"TournamentsFiltersSelected"===t.data.type&&(P=t.data.filters,I(c,0,O))},I=(t,e,n)=>{s(14,M=!0),s(16,D=0);let r=new URL(`${t}/tournaments`),i=new Headers;r.searchParams.append("pagination",`offset=${e},limit=${n}`),r.searchParams.append("sortField","StartTime"),r.searchParams.append("sortOrder","desc"),r.searchParams.append("language",d),0<P.length&&"All"!=P[0]?(n=P.map(t=>{return"Scheduled"==t?"Unstarted":"Ongoing"==t?"Running":"Closing|Closed"}).join("|"),r.searchParams.append("filter",`state=${n},StartTimeAfter=${N}`)):r.searchParams.append("filter",`StartTimeAfter=${N}`),i.append("platform",pr(S)),i.append("sortType",'""|type1'),E&&i.append("X-SessionID",x),fetch(r,{method:"GET",headers:i,cache:"no-cache"}).then(t=>t.json()).then(t=>{s(16,D=0),o=r.searchParams.toString(),setTimeout(()=>{s(16,D=t.total),s(17,A=O>=D),C||U(),window.postMessage({type:"TournamentList",tournamentList:t.items},window.location.href),s(14,M=!1)},50)})},Y=t=>{var e=t.data;if(e)try{var n,r=JSON.parse(e);r&&r.Item&&(n=r.Item,"TournamentUpdate"==r.MessageType&&window.postMessage({type:"UpdateTournamentView",tournamentData:n},window.location.href),"TournamentDelete"==r.MessageType&&window.postMessage({type:"UpdateTournamentListView",tournamentId:r.id},window.location.href))}catch(t){console.error(t)}},U=()=>{C=!0,setTimeout(()=>{C=!1},1e3),a&&(a.removeEventListener("message",Y),a.close());var t=`${c}/tournaments/updates?HeartBeat=false&${o}`;a=new gr.EventSourcePolyfill(t,{headers:{accept:"text/event-stream","X-SessionID":l}}),void 0!==a&&a.addEventListener("message",Y)},F=()=>{O+=parseInt(f,10),window.postMessage({type:"TournamentsPagination",offset:0,limit:O},window.location.href),I(c,0,O),O>=D&&s(17,A=!0)},j=()=>{var t;c||(s(13,T="Endpoint is missing! Please provide a valid endpointURL."),s(12,w=!0),console.error(T)),d&&2==d.length||(s(13,T="Language is missing! Please provide a valid language (alpha2code)"),s(12,w=!0),console.error(T)),w||(O=parseInt(h,10),t=d,nr.set(t),I(c,0,O))};return Z(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L),a.removeEventListener("message",Y)})),t.$$set=t=>{"session"in t&&s(0,l=t.session),"userid"in t&&s(1,u=t.userid),"endpoint"in t&&s(2,c=t.endpoint),"lang"in t&&s(3,d=t.lang),"numberoftournaments"in t&&s(4,h=t.numberoftournaments),"showmorestep"in t&&s(20,f=t.showmorestep),"filters"in t&&s(5,p=t.filters),"loginevent"in t&&s(6,m=t.loginevent),"registerevent"in t&&s(7,g=t.registerevent),"loginurl"in t&&s(8,y=t.loginurl),"registerurl"in t&&s(9,b=t.registerurl),"currency"in t&&s(10,v=t.currency),"containermaxwidth"in t&&s(11,_=t.containermaxwidth)},t.$$.update=()=>{1&t.$$.dirty[0]&&l&&(0<l.length&&"false"!=l?(E=!0,s(14,M=!0),x=l):(E=!1,j())),t.$$.dirty[0],32&t.$$.dirty[0]&&p&&(P=p.split(","),s(15,k=!0)),1048604&t.$$.dirty[0]&&s(21,n=c&&h&&f&&d),2097153&t.$$.dirty[0]&&s(22,r=l?n&&l:n),4194304&t.$$.dirty[0]&&r&&j()},[l,u,c,d,h,p,m,g,y,b,v,_,w,T,M,k,D,A,i,F,f,n,r,()=>F()]}class Xi extends c{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:#0a0c19;font-size:18px;width:280px;height:60px;text-align:center;color:#48952a;border:solid #48952a 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{background:#00020f}.Tournaments{color:#ffffff;display:flex;flex-direction:column;position:relative;margin:0 auto;padding:0 10px}.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},Vi,Hi,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]),t&&(t.target&&E(t.target,this,t.anchor),t.props&&(this.$set(t.props),I()))}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(t){this.$set({session:t}),I()}get userid(){return this.$$.ctx[1]}set userid(t){this.$set({userid:t}),I()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$set({endpoint:t}),I()}get lang(){return this.$$.ctx[3]}set lang(t){this.$set({lang:t}),I()}get numberoftournaments(){return this.$$.ctx[4]}set numberoftournaments(t){this.$set({numberoftournaments:t}),I()}get showmorestep(){return this.$$.ctx[20]}set showmorestep(t){this.$set({showmorestep:t}),I()}get filters(){return this.$$.ctx[5]}set filters(t){this.$set({filters:t}),I()}get loginevent(){return this.$$.ctx[6]}set loginevent(t){this.$set({loginevent:t}),I()}get registerevent(){return this.$$.ctx[7]}set registerevent(t){this.$set({registerevent:t}),I()}get loginurl(){return this.$$.ctx[8]}set loginurl(t){this.$set({loginurl:t}),I()}get registerurl(){return this.$$.ctx[9]}set registerurl(t){this.$set({registerurl:t}),I()}get currency(){return this.$$.ctx[10]}set currency(t){this.$set({currency:t}),I()}get containermaxwidth(){return this.$$.ctx[11]}set containermaxwidth(t){this.$set({containermaxwidth:t}),I()}}return customElements.get("casino-tournaments-controller")||customElements.define("casino-tournaments-controller",Xi),Xi});
2
2
  //# sourceMappingURL=casino-tournaments-controller.js.map