@everymatrix/casino-tournaments-list-controller 1.34.2 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function v(){}function E(e){return e()}function x(){return Object.create(null)}function P(e){e.forEach(E)}function d(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let k,M,F;function L(e,t){return(k=k||document.createElement("a")).href=t,e===k.href}function I(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function oe(e,t,n){e.$$.on_destroy.push(I(t,n))}function D(e){return e&&d(e.destroy)?e.destroy:v}function C(e,t){e.appendChild(t)}function A(e,t,n){e.insertBefore(t,n||null)}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function U(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function $(e){return document.createElement(e)}function Y(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function t(e){return document.createTextNode(e)}function B(){return t(" ")}function z(){return t("")}function N(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function H(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:H(e,t,n)}function R(e,t){e.data!==(t=""+t)&&(e.data=t)}function j(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function G(e,t,n){e.classList[n?"add":"remove"](t)}function W(e){var t={};for(const n of e)t[n.name]=n.value;return t}function V(e){F=e}function ae(e){!function(){if(F)return F;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const J=[],ie=[];let Z=[];const X=[],K=Promise.resolve();let q=!1;function Q(e){Z.push(e)}const ee=new Set;let te=0;function f(){if(0===te){const r=F;do{try{for(;te<J.length;){const r=J[te];te++,V(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),P(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Q))}}catch(r){throw J.length=0,te=0,r}for(V(null),J.length=0,te=0;ie.length;)ie.pop()();for(let e=0;e<Z.length;e+=1){var n=Z[e];ee.has(n)||(ee.add(n),n())}}while(Z.length=0,J.length);for(;X.length;)X.pop()();q=!1,ee.clear(),V(r)}}const ne=new Set;function re(r,e,t,n,i,s,o,a=[-1]){var l=F;V(r);const u=r.$$={fragment:null,ctx:[],props:s,update:v,not_equal:i,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:x(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=t?t(r,e.props||{},(e,t,...n)=>{var 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]&&(J.push(e),q||(q=!0,K.then(f)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],u.update(),c=!0,P(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){s=e.target;const v=Array.from(s.childNodes);u.fragment&&u.fragment.l(v),v.forEach(O)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(ne.delete(a),a.i(void 0));var h=r,o=e.target,t=e.anchor,n=e.customElement,{fragment:s,after_update:a}=h.$$;s&&s.m(o,t),n||Q(()=>{var e=h.$$.on_mount.map(E).filter(d);h.$$.on_destroy?h.$$.on_destroy.push(...e):P(e),h.$$.on_mount=[]}),a.forEach(Q),f()}V(l)}let le;function An(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}"function"==typeof HTMLElement&&(le=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(E).filter(d);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],i=[];Z.forEach(e=>(-1===n.indexOf(e)?r:i).push(e)),i.forEach(e=>e()),Z=r}P(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=v}$on(e,t){if(!d(t))return v;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)}});On=ue={path:void 0,exports:{},require:function(e,t){return An(null==t&&ue.path)}},ue.exports,On.exports=function(){var H;function m(){return H.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function a(e){return void 0===e}function L(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 U(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function Y(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,r){return At(e,t,n,r,!0).utc()}function g(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 z(e){if(null==e._isValid){var t=g(e),n=G.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 j(e){var t=u(NaN);return null!=e?Y(g(t),e):g(t).userInvalidated=!0,t}var G=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},W=m.momentProperties=[],V=!1;function J(e,t){var n,r,i,s=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),0<s)for(n=0;n<s;n++)a(i=t[r=W[n]])||(e[r]=i);return e}function Z(e){J(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,m.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,o){var a=!0;return Y(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,s),a){for(var e,t,n=[],r=arguments.length,i=0;i<r;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}X(s+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var K={};function q(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=Y({},e);for(n in t)p(t,n)&&(R(e[n])&&R(t[n])?(r[n]={},Y(r[n],e[n]),Y(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)p(e,n)&&!p(t,n)&&R(e[n])&&(r[n]=Y({},r[n]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function s(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 ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},se={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(se[e]=i),t&&(se[t[0]]=function(){return s(i.apply(this,arguments),t[1],t[2])}),n&&(se[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function oe(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(r){for(var e,i=r.match(ne),t=0,s=i.length;t<s;t++)se[i[t]]?i[t]=se[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+=c(i[n])?i[n].call(e,r):i[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function h(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,n,r={};for(n in e)p(e,n)&&(t=h(n))&&(r[t]=e[n]);return r}var ce={};function n(e,t){ce[e]=t}function he(e){return e%4==0&&e%100!=0||e%400==0}function d(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function f(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,n){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,n),this):fe(this,t)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&he(e.year())&&1===e.month()&&29===e.date()?(n=f(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Be(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var i=/\d/,y=/\d\d/,pe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,b=/\d\d?/,be=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,we=/\d{1,3}/,_e=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Se=/\d+/,Ee=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,ke=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[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 w(e,n,r){Pe[e]=c(n)?n:function(e,t){return e&&r?r:n}}function Me(e,t){return p(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},De={};function T(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),L(n)&&(i=function(e,t){t[n]=f(e)}),r=e.length,t=0;t<r;t++)De[e[t]]=i}function Ce(e,i){T(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var S,E=0,x=1,k=2,M=3,P=4,D=5,Ae=6,Oe=7,$e=8;function Be(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?he(e)?29:28:31-n%7%2)}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),w("M",b),w("MM",b,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),T(["M","MM"],function(e,t){t[x]=f(e)-1}),T(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[x]=r:g(n).invalidMonth=e});var Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=v,Le=v;function Ie(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!L(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Ue(e){return null!=e?(Ie(this,e),m.updateOffset(this,!0),this):fe(this,"Month")}function Ye(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],s=0;s<12;s++)t=u([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]=_(n[s]),r[s]=_(r[s]);for(s=0;s<24;s++)i[s]=_(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 ze(e){return he(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?s(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),w("Y",Ee),w("YY",b,y),w("YYYY",_e,ge),w("YYYYY",Te,ye),w("YYYYYY",Te,ye),T(["YYYYY","YYYYYY"],E),T("YYYY",function(e,t){t[E]=2===e.length?m.parseTwoDigitYear(e):f(e)}),T("YY",function(e,t){t[E]=m.parseTwoDigitYear(e)}),T("Y",function(e,t){t[E]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return f(e)+(68<f(e)?1900:2e3)};var je=de("FullYear",!0);function Ge(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 We(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 Ve(e,t,n){n=7+t-n;return-(7+We(e,0,n).getUTCDay()-t)%7+n-1}function Je(e,t,n,r,i){var s,t=1+7*(t-1)+(7+n-r)%7+Ve(e,r,i),n=t<=0?ze(s=e-1)+t:t>ze(e)?(s=e+1,t-ze(e)):(s=e,t);return{year:s,dayOfYear:n}}function Ze(e,t,n){var r,i,s=Ve(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+C(i=e.year()-1,t,n):s>C(e.year(),t,n)?(r=s-C(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function C(e,t,n){var r=Ve(e,t,n),t=Ve(e+1,t,n);return(ze(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",b),w("ww",b,y),w("W",b),w("WW",b,y),Ce(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=f(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",b),w("e",b),w("E",b),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Ce(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e}),Ce(["d","e","E"],function(e,t,n,r){t[r]=f(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,nt=v;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],s=[],o=[],a=[],l=0;l<7;l++)r=u([2e3,1]).day(l),t=_(this.weekdaysMin(r,"")),n=_(this.weekdaysShort(r,"")),r=_(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 it(){return this.hours()%12||12}function st(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),n("hour",13),w("a",ot),w("A",ot),w("H",b),w("h",b),w("k",b),w("HH",b,y),w("hh",b,y),w("kk",b,y),w("hmm",be),w("hmmss",ve),w("Hmm",be),w("Hmmss",ve),T(["H","HH"],M),T(["k","kk"],function(e,t,n){e=f(e);t[M]=24===e?0:e}),T(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),T(["h","hh"],function(e,t,n){t[M]=f(e),g(n).bigHour=!0}),T("hmm",function(e,t,n){var r=e.length-2;t[M]=f(e.substr(0,r)),t[P]=f(e.substr(r)),g(n).bigHour=!0}),T("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[M]=f(e.substr(0,r)),t[P]=f(e.substr(r,2)),t[D]=f(e.substr(i)),g(n).bigHour=!0}),T("Hmm",function(e,t,n){var r=e.length-2;t[M]=f(e.substr(0,r)),t[P]=f(e.substr(r))}),T("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[M]=f(e.substr(0,r)),t[P]=f(e.substr(r,2)),t[D]=f(e.substr(i))});v=de("Hours",!0);var at,lt={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:Ne,monthsShort:He,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},A={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=ct(e[s]).split("-")).length,n=(n=ct(e[s+1]))?n.split("-"):null;0<t;){if(r=dt(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 at}function dt(t){var e;if(void 0===A[t]&&On&&On.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,An(),ft(e)}catch(e){A[t]=null}return A[t]}function ft(e,t){return e&&((t=a(t)?O(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete A[e],null;var n,r=lt;if(t.abbr=e,null!=A[e])q("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=A[e]._config;else if(null!=t.parentLocale)if(null!=A[t.parentLocale])r=A[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return A[e]=new ee(Q(r,t)),ut[e]&&ut[e].forEach(function(e){mt(e.name,e.config)}),ft(e),A[e]}function O(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!o(e)){if(t=dt(e))return t;e=[e]}return ht(e)}function pt(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[x]<0||11<t[x]?x:t[k]<1||t[k]>Be(t[E],t[x])?k:t[M]<0||24<t[M]||24===t[M]&&(0!==t[P]||0!==t[D]||0!==t[Ae])?M:t[P]<0||59<t[P]?P:t[D]<0||59<t[D]?D:t[Ae]<0||999<t[Ae]?Ae:-1,g(e)._overflowDayOfYear&&(t<E||k<t)&&(t=k),g(e)._overflowWeeks&&-1===t&&(t=Oe),g(e)._overflowWeekday&&-1===t&&(t=$e),g(e).overflow=t),e}var gt=/^\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)?)?$/,yt=/^\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)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["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]],wt=[["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/]],_t=/^\/?Date\((-?\d+)/i,Tt=/^(?:(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}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,r,i,s,o,a=e._i,l=gt.exec(a)||yt.exec(a),a=vt.length,u=wt.length;if(l){for(g(e).iso=!0,t=0,n=a;t<n;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=u;t<n;t++)if(wt[t][1].exec(l[3])){s=(l[2]||" ")+wt[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!bt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),Dt(e)}else e._isValid=!1}function xt(e,t,n,r,i,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),He.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&e.push(parseInt(s,10)),e}function kt(e){var t,n,r,i,s=Tt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=xt(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[1],r=t,i=e,n&&qe.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(g(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=s[8],r=s[9],i=s[10],n?St[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Mt(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,r,i,s,o,a,l,u,c,h,d=[];if(!e._d){for(c=e,h=new Date(m.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[k]&&null==e._a[x]&&(null!=(h=(c=e)._w).GG||null!=h.W||null!=h.E?(o=1,a=4,r=Mt(h.GG,c._a[E],Ze($(),1,4).year),i=Mt(h.W,1),((s=Mt(h.E,1))<1||7<s)&&(l=!0)):(o=c._locale._week.dow,a=c._locale._week.doy,u=Ze($(),o,a),r=Mt(h.gg,c._a[E],u.year),i=Mt(h.w,u.week),null!=h.d?((s=h.d)<0||6<s)&&(l=!0):null!=h.e?(s=h.e+o,(h.e<0||6<h.e)&&(l=!0)):s=o),i<1||i>C(r,o,a)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=Je(r,i,s,o,a),c._a[E]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(h=Mt(e._a[E],n[E]),(e._dayOfYear>ze(h)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=We(h,0,e._dayOfYear),e._a[x]=l.getUTCMonth(),e._a[k]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[M]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Ae]&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?We:Ge).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[M]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,n,r,i=""+e._i,s=i.length,o=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Me(r,e))||[])[0])&&(0<(h=i.substr(0,i.indexOf(t))).length&&g(e).unusedInput.push(h),i=i.slice(i.indexOf(t)+t.length),o+=t.length),se[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),h=r,f=e,null!=(d=t)&&p(De,h)&&De[h](d,f._a,f,h)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=s-o,0<i.length&&g(e).unusedInput.push(i),e._a[M]<=12&&!0===g(e).bigHour&&0<e._a[M]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[M]=(s=e._locale,u=e._a[M],null==(c=e._meridiem)?u:null!=s.meridiemHour?s.meridiemHour(u,c):null!=s.isPM?((s=s.isPM(c))&&u<12&&(u+=12),u=s||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[E]=e._locale.erasConvertYear(c,e._a[E])),Pt(e),pt(e)}else kt(e);else Et(e);var u,c,h,d,f}function Ct(e){var t,n=e._i,r=e._f;{var i,s;return(e._locale=e._locale||O(e._l),null===n||void 0===r&&""===n)?j({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new Z(pt(n)):(I(n)?e._d=n:o(r)?function(e){var t,n,r,i,s,o,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)s=0,o=!1,t=J({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Dt(t),z(t)&&(o=!0),s=(s+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o)&&(a=!0);Y(e,n||t)}(e):r?Dt(e):a(r=(n=e)._i)?n._d=new Date(m.now()):I(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(s=_t.exec(i._i))?(Et(i),!1===i._isValid&&(delete i._isValid,kt(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i))):i._d=new Date(+s[1])):o(r)?(n._a=U(r.slice(0),function(e){return parseInt(e,10)}),Pt(n)):R(r)?(i=n)._d||(t=void 0===(s=ue(i._i)).day?s.date:s.day,i._a=U([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):L(r)?n._d=new Date(r):m.createFromInputFallback(n),z(e)||(e._d=null),e))}}function At(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),(R(e)&&F(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,(i=new Z(pt(Ct(i=s))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function $(e,t,n,r){return At(e,t,n,r,!1)}m.createFromInputFallback=e("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(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=$.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=$.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:j()});function Ot(e,t){var n,r;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return $();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 Bt(e){var e=ue(e),t=e.year||0,n=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,a=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=$t.length;for(t in e)if(p(e,t)&&(-1===S.call($t,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[$t[n]]){if(r)return!1;parseFloat(e[$t[n]])!==f(e[$t[n]])&&(r=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*a+1e3*o*60*60,this._days=+s+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=O(),this._bubble()}function Nt(e){return e instanceof Bt}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+n+s(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),w("Z",ke),w("ZZ",ke),T(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Lt(ke,e)});var Ft=/([\+\-]|\d\d)/gi;function Lt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ft)||["-",0,0])[1]+f(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||I(e)?e:$(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),m.updateOffset(t,!1),t):$(e).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}function Yt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B(e,t){var n,r,i=e;return Nt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:L(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=zt.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:f(t[k])*n,h:f(t[M])*n,m:f(t[P])*n,s:f(t[D])*n,ms:f(Ht(1e3*t[Ae]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,i={y:Gt(t[2],n),M:Gt(t[3],n),w:Gt(t[4],n),d:Gt(t[5],n),h:Gt(t[6],n),m:Gt(t[7],n),s:Gt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=$(i.from),n=$(i.to),t=t.isValid()&&n.isValid()?(n=It(n,t),t.isBefore(n)?r=Wt(t,n):((r=Wt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),r=new Bt(i),Nt(e)&&p(e,"_locale")&&(r._locale=e._locale),Nt(e)&&p(e,"_isValid")&&(r._isValid=e._isValid),r}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(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 Vt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(q(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),Jt(this,B(e,t),r),this}}function Jt(e,t,n,r){var i=t._milliseconds,s=Ht(t._days),t=Ht(t._months);e.isValid()&&(r=null==r||r,t&&Ie(e,fe(e,"Month")+t*n),s&&me(e,"Date",fe(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r)&&m.updateOffset(e,s||t)}B.fn=Bt.prototype,B.invalid=function(){return B(NaN)};Ne=Vt(1,"add"),Ke=Vt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||I(e)||Zt(e)||L(e)||(n=o(t=e),r=!1,n&&(r=0===t.filter(function(e){return!L(e)&&Zt(t)}).length),n&&r)||function(e){var t,n,r=R(e)&&!F(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"],o=s.length;for(t=0;t<o;t+=1)n=s[t],i=i||p(e,n);return r&&i}(e)||null==e;var t,n,r}function Kt(e,t){var n,r;return e.date()<t.date()?-Kt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=O(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("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 Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function sn(e,t){return t.erasAbbrRegex(e)}function on(){for(var e=[],t=[],n=[],r=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(_(i[s].name)),e.push(_(i[s].abbr)),n.push(_(i[s].narrow)),r.push(_(i[s].name)),r.push(_(i[s].abbr)),r.push(_(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 an(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var s;return null==e?Ze(this,r,i).year:(t>(s=C(e,r,i))&&(t=s),function(e,t,n,r,i){e=Je(e,t,n,r,i),t=We(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),w("N",sn),w("NN",sn),w("NNN",sn),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),T(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?g(n).era=r:g(n).invalidEra=e}),w("y",Se),w("yy",Se),w("yyy",Se),w("yyyy",Se),w("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),T(["y","yy","yyy","yyyy"],E),T(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[E]=n._locale.eraYearOrdinalParse(e,i):t[E]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",Ee),w("g",Ee),w("GG",b,y),w("gg",b,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",Te,ye),w("ggggg",Te,ye),Ce(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=f(e)}),Ce(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),w("Q",i),T("Q",function(e,t){t[x]=3*(f(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),w("D",b),w("DD",b,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),T(["D","DD"],k),T("Do",function(e,t){t[k]=f(e.match(b)[0])});_e=de("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",we),w("DDDD",pe),T(["DDD","DDDD"],function(e,t,n){n._dayOfYear=f(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),w("m",b),w("mm",b,y),T(["m","mm"],P);ge=de("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),w("s",b),w("ss",b,y),T(["s","ss"],D);var un,Te=de("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()}),t("millisecond","ms"),n("millisecond",16),w("S",we,i),w("SS",we,y),w("SSS",we,pe),un="SSSS";un.length<=9;un+="S")w(un,Se);function cn(e,t){t[Ae]=f(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")T(un,cn);ye=de("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");i=Z.prototype;function hn(e){return e}i.add=Ne,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!F(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||p(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||$(),n=It(e,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,$(e)))},i.clone=function(){return new Z(this)},i.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=h(t)){case"year":s=Kt(this,r)/12;break;case"month":s=Kt(this,r);break;case"quarter":s=Kt(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:d(s)},i.endOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,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-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=oe(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?B({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from($(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?B({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to($(),e)},i.get=function(e){return c(this[e=h(e)])?this[e]():this},i.invalidAt=function(){return g(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,r){return e=l(e)?e:$(e),t=l(t)?t:$(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))},i.isSame=function(e,t){var e=l(e)?e:$(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return z(this)},i.lang=Qe,i.locale=qt,i.localeData=Qt,i.max=ve,i.min=be,i.parsingFlags=function(){return Y({},g(this))},i.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ue(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(c(this[e=h(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,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-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.subtract=Ke,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.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()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?oe(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):c(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.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""},i.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""},i.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""},i.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()},i.year=je,i.isLeapYear=function(){return he(this.year())},i.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=Ue,i.daysInMonth=function(){return Be(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return C(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return C(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return C(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return C(this.isoWeekYear(),1,4)},i.date=_e,i.day=i.days=function(e){var t,n,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},i.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")},i.hour=i.hours=v,i.minute=i.minutes=ge,i.second=i.seconds=Te,i.millisecond=i.milliseconds=ye,i.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:Ut(this);if("string"==typeof e){if(null===(e=Lt(ke,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ut(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Jt(this,B(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Ut(this),"m"),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Lt(xe,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?$(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=Yt,i.isUTC=Yt,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",_e),i.months=e("months accessor is deprecated. Use month instead",Ue),i.years=e("years accessor is deprecated. Use year instead",je),i.zone=e("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()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(J(t={},this),(t=Ct(t))._a?(e=(t._isUTC?u:$)(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&&f(e[o])!==f(t[o]))&&s++;return s+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function dn(e,t,n,r){var i=O(),r=u().set(r,t);return i[n](r,e)}function fn(e,t,n){if(L(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=dn(e,i,n,"month");return r}function mn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),L(t)&&(n=t,t=void 0),t||"");var i,s=O(),o=e?s._week.dow:0,a=[];if(null!=n)return dn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=dn(t,(i+o)%7,r,"day");return a}y.calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=hn,y.postformat=hn,y.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return c(i)?i(e,t,n,r):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)p(e,n)&&(c(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)},y.eras=function(e,t){for(var n,r=this._eras||O("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},y.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]},y.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},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Re.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.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=u([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))||-1!==(i=S.call(this._longMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))||-1!==(i=S.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=u([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}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.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?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.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=u([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=S.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.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=u([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}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ft("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===f(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",O);var pn=Math.abs;function gn(e,t,n,r){t=B(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}we=wn("ms"),pe=wn("s"),Ne=wn("m"),ve=wn("h"),be=wn("d"),Ke=wn("w"),v=wn("M"),ge=wn("Q"),Te=wn("y");function _n(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=_n("milliseconds"),_e=_n("seconds"),je=_n("minutes"),y=_n("hours"),Tn=_n("days"),Sn=_n("months"),En=_n("years");var xn=Math.round,kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mn(e,t,n,r){var i=B(e).abs(),s=xn(i.as("s")),o=xn(i.as("m")),a=xn(i.as("h")),l=xn(i.as("d")),u=xn(i.as("M")),c=xn(i.as("w")),i=xn(i.as("y")),s=(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(s=(s=null!=n.w?s||(c<=1?["w"]:c<n.w&&["ww",c]):s)||(u<=1?["M"]:u<n.M&&["MM",u])||(i<=1?["y"]:["yy",i]))[2]=t,s[3]=0<+e,s[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,s)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function Cn(){var e,t,n,r,i,s,o,a,l,u,c;return this.isValid()?(a=Pn(this._milliseconds)/1e3,l=Pn(this._days),u=Pn(this._months),(c=this.asSeconds())?(e=d(a/60),t=d(e/60),a%=60,e%=60,n=d(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":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"):this.localeData().invalidDate()}var N=Bt.prototype;return N.isValid=function(){return this._isValid},N.abs=function(){var e=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),e.milliseconds=pn(e.milliseconds),e.seconds=pn(e.seconds),e.minutes=pn(e.minutes),e.hours=pn(e.hours),e.months=pn(e.months),e.years=pn(e.years),this},N.add=function(e,t){return gn(this,e,t,1)},N.subtract=function(e,t){return gn(this,e,t,-1)},N.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=h(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(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)}},N.asMilliseconds=we,N.asSeconds=pe,N.asMinutes=Ne,N.asHours=ve,N.asDays=be,N.asWeeks=Ke,N.asMonths=v,N.asQuarters=ge,N.asYears=Te,N.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN},N._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*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=d(e/1e3),r.seconds=e%60,e=d(e/60),r.minutes=e%60,e=d(e/60),r.hours=e%24,t+=d(e/24),n+=e=d(bn(t)),t-=yn(vn(e)),e=d(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},N.clone=function(){return B(this)},N.get=function(e){return e=h(e),this.isValid()?this[e+"s"]():NaN},N.milliseconds=ye,N.seconds=_e,N.minutes=je,N.hours=y,N.days=Tn,N.weeks=function(){return d(this.days()/7)},N.months=Sn,N.years=En,N.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=kn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},kn,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Mn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},N.toISOString=Cn,N.toString=Cn,N.toJSON=Cn,N.locale=qt,N.localeData=Qt,N.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cn),N.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),w("x",Ee),w("X",/[+-]?\d+(\.\d{1,3})?/),T("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),T("x",function(e,t,n){n._d=new Date(f(e))}),m.version="2.29.4",H=$,m.fn=i,m.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},m.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=u,m.unix=function(e){return $(1e3*e)},m.months=function(e,t){return fn(e,t,"months")},m.isDate=I,m.locale=ft,m.invalid=j,m.duration=B,m.isMoment=l,m.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},m.parseZone=function(){return $.apply(null,arguments).parseZone()},m.localeData=O,m.isDuration=Nt,m.monthsShort=function(e,t){return fn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=A[e]&&null!=A[e].parentLocale?A[e].set(Q(A[e]._config,t)):(t=Q(r=null!=(n=dt(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=A[e],A[e]=r),ft(e)):null!=A[e]&&(null!=A[e].parentLocale?(A[e]=A[e].parentLocale,e===ft()&&ft(e)):null!=A[e]&&delete A[e]),A[e]},m.locales=function(){return te(A)},m.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},m.normalizeUnits=h,m.relativeTimeRounding=function(e){return void 0===e?xn:"function"==typeof e&&(xn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==kn[e]&&(void 0===t?kn[e]:(kn[e]=t,"s"===e&&(kn.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=i,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}();var ue,On,ce=ue.exports;const he=[];function de(r,i=v){let s;const o=new Set;function a(e){if(n(r,e)&&(r=e,s)){const e=!he.length;for(const e of o)e[1](),he.push(e,r);if(e){for(let e=0;e<he.length;e+=2)he[e][0](he[e+1]);he.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=v){const n=[e,t];return o.add(n),1===o.size&&(s=i(a)||v),e(r),()=>{o.delete(n),0===o.size&&s&&(s(),s=null)}}}}function fe(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:de(t,t=>{let n=!1;const r=[];let i=0,s=v;const o=()=>{var e;i||(s(),e=a(l?r[0]:r,t),c?t(e):s=d(e)?e:v)},e=u.map((e,t)=>I(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){P(e),s(),n=!1}}).subscribe}}function me(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===pe);var t}var pe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ge(e,t){return!1!==t.clone&&t.isMergeableObject(e)?_e(Array.isArray(e)?[]:{},e,t):e}function ye(e,t,n){return e.concat(t).map(function(e){return ge(e,n)})}function be(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function ve(e,t){try{return t in e}catch(e){return!1}}function we(r,i,s){var o={};return s.isMergeableObject(r)&&be(r).forEach(function(e){o[e]=ge(r[e],s)}),be(i).forEach(function(e){var t,n;(!ve(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(ve(r,e)&&s.isMergeableObject(i[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:_e)(r[e],i[e],s):o[e]=ge(i[e],s))}),o}function _e(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ye,n.isMergeableObject=n.isMergeableObject||me,n.cloneUnlessOtherwiseSpecified=ge;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):we(e,t,n):ge(t,n)}_e.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return _e(e,t,n)},{});throw new Error("first argument should be an array")};var Te=_e,Se=function(e,t){return(Se=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 e(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}Se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p,b,Ee,g=function(){return(g=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 xe(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 ke(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 Me(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Pe(e){return e.type===b.literal}function De(e){return e.type===b.number}function Ce(e){return e.type===b.date}function Ae(e){return e.type===b.time}function Oe(e){return e.type===b.select}function $e(e){return e.type===b.plural}function Be(e){return e.type===b.tag}function Ne(e){return e&&"object"==typeof e&&e.type===Ee.number}function He(e){return e&&"object"==typeof e&&e.type===Ee.dateTime}(r=p=p||{})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=b=b||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(r=Ee=Ee||{})[r.number=0]="number",r[r.dateTime=1]="dateTime";var r=/[ \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 Fe=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ie=/^(@+)?(\+|#+)?[rs]?$/g,Ue=/(\*)(0+)|(#+)(0+)|(0+)/g,Ye=/^(0+)$/;function ze(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Ie,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 je(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 Ge(e){return je(e)||{}}function We(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=g(g(g({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return g(g({},e),Ge(t))},{}));continue;case"engineering":o=g(g(g({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return g(g({},e),Ge(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(Ue,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(Ye.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Le.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Le,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),""});var s=i.options[0];"w"===s?o=g(g({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=g(g({},o),ze(s)))}else Ie.test(i.stem)?o=g(g({},o),ze(i.stem)):((s=je(i.stem))&&(o=g(g({},o),s)),(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)),!Ye.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=g(g({},o),r)))}return o}var Ve={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Je=new RegExp("^".concat(r.source,"*")),Ze=new RegExp("".concat(r.source,"*$"));function w(e,t){return{start:e,end:t}}var r=!!String.prototype.startsWith,Xe=!!String.fromCodePoint,Ke=!!Object.fromEntries,qe=!!String.prototype.codePointAt,Qe=!!String.prototype.trimStart,et=!!String.prototype.trimEnd,tt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},nt=!0;try{nt="a"===(null==(St=ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:St[0])}catch(v){nt=!1}var rt,it,st=r?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},ot=Xe?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},at=Ke?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},lt=qe?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},ut=Qe?function(e){return e.trimStart()}:function(e){return e.replace(Je,"")},ct=et?function(e){return e.trimEnd()}:function(e){return e.replace(Ze,"")};function ht(e,t){return new RegExp(e,t)}it=nt?(rt=ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return rt.lastIndex=t,null!=(t=rt.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=lt(e,t);if(void 0===i||mt(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 ot.apply(void 0,r)};i.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},i.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(p.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&ft(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}else{s=this.clonePosition();this.bump(),r.push({type:b.pound,location:w(s,this.clonePosition())})}}}return{val:r,err:null}},i.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:w(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!ft(this.char())?this.error(p.INVALID_TAG,w(e,this.clonePosition())):(n=this.clonePosition(),i!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,w(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:w(r,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,w(e,this.clonePosition())))):this.error(p.UNCLOSED_TAG,w(r,this.clonePosition()))):this.error(p.INVALID_TAG,w(r,this.clonePosition()))},i.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())},i.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=w(n,this.clonePosition());return{val:{type:b.literal,value:r,location:n},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ft(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},i.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 ot.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),ot(n))},i.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,w(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(p.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(p.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=it(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:w(e,this.clonePosition())}},i.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(p.EXPECT_ARGUMENT_TYPE,w(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=ct(h.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:w(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(r)).err?u:(f=w(r,this.clonePosition()),l&&st(null==l?void 0:l.style,"::",0)?(m=ut(l.style.slice(2)),"number"===o?(h=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:f,style:h.val},err:null}:0===m.length?this.error(p.EXPECT_DATE_TIME_SKELETON,f):(c=m,this.locale&&(c=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Ve[t||""]||Ve[n||""]||Ve["".concat(n,"-001")]||Ve["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<o--;)n=l+n}else n+="J"===i?"H":i}return n}(m,this.locale)),d={type:Ee.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Re,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):{}},{val:{type:"date"===o?b.date:b.time,value:n,location:f,style:d},err:null})):{val:{type:"number"===o?b.number:"date"===o?b.date:b.time,value:n,location:f,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,w(c,g({},c)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),f=0;if("select"!==o&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),f=h.val}var m,l=this.tryParsePluralOrSelectOptions(e,o,t,d);return l.err?l:(u=this.tryParseArgumentClose(r)).err?u:(m=w(r,this.clonePosition()),"select"===o?{val:{type:b.select,value:n,options:at(l.val),location:m},err:null}:{val:{type:b.plural,value:n,options:at(l.val),offset:f,pluralType:"plural"===o?"cardinal":"ordinal",location:m},err:null});default:return this.error(p.INVALID_ARGUMENT_TYPE,w(s,a))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.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(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(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}},i.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(Fe).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(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ee.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?We(n):{}},err:null}},i.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(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=w(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,n);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;s.push([a,{value:u.val,location:w(c,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===s.length?this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(p.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:s,err:null}},i.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=w(r,this.clonePosition());return i?tt(s*=n)?{val:s,err:null}:this.error(t,r):this.error(e,r)},i.prototype.offset=function(){return this.position.offset},i.prototype.isEOF=function(){return this.offset()===this.message.length},i.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},i.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=lt(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},i.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},i.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))},i.prototype.bumpIf=function(e){if(st(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},i.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},i.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&mt(this.char());)this.bump()},i.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var dt=i;function i(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function ft(e){return 97<=e&&e<=122||65<=e&&e<=90}function mt(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function pt(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new dt(e,t).parse();if(e.err)throw(n=SyntaxError(p[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Oe(e)||$e(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else De(e)&&Ne(e.style)||(Ce(e)||Ae(e))&&He(e.style)?delete e.style.location:Be(e)&&n(e.children)})}(e.val),e.val}function gt(e,t){var n=t&&t.cache?t.cache:Et,r=t&&t.serializer?t.serializer:wt;return(t&&t.strategy?t.strategy:function(e,t){return vt(e,this,1===e.length?yt:bt,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function yt(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function bt(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function vt(e,t,n,r,i){return n.bind(t,e,r,i)}var wt=function(){return JSON.stringify(arguments)};function _t(){this.cache=Object.create(null)}_t.prototype.get=function(e){return this.cache[e]},_t.prototype.set=function(e,t){this.cache[e]=t};var Tt,St,Et={create:function(){return new _t}},xt={variadic:function(e,t){return vt(e,this,bt,t.cache.create(),t.serializer)},monadic:function(e,t){return vt(e,this,yt,t.cache.create(),t.serializer)}};(St=Tt=Tt||{}).MISSING_VALUE="MISSING_VALUE",St.INVALID_VALUE="INVALID_VALUE",St.MISSING_INTL_API="MISSING_INTL_API";e(Rt,Dt=Error),Rt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var _,kt,Mt,Pt,Dt,Ct=Rt,At=(e(Ht,Pt=Ct),Ht),Ot=(e(Nt,Mt=Ct),Nt),$t=(e(Bt,kt=Ct),Bt);function Bt(e,t){return kt.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Tt.MISSING_VALUE,t)||this}function Nt(e,t,n){return Mt.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Tt.INVALID_VALUE,n)||this}function Ht(e,t,n,r){return Pt.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Tt.INVALID_VALUE,r)||this}function Rt(e,t,n){e=Dt.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Ft(e,t,n,r,i,s,o){if(1===e.length&&Pe(e[0]))return[{type:_.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Pe(c))a.push({type:_.literal,value:c.value});else if(c.type===b.pound)"number"==typeof s&&a.push({type:_.literal,value:n.getNumberFormat(t).format(s)});else{var h=c.value;if(!(i&&h in i))throw new $t(h,o);h=i[h];if(c.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?_.literal:_.object,value:h});else if(Ce(c)){var d="string"==typeof c.style?r.date[c.style]:He(c.style)?c.style.parsedOptions:void 0;a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(Ae(c))d="string"==typeof c.style?r.time[c.style]:He(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(De(c))(d="string"==typeof c.style?r.number[c.style]:Ne(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:_.literal,value:n.getNumberFormat(t,d).format(h)});else{if(Be(c)){var f=c.children,m=c.value,p=i[m];if("function"!=typeof p)throw new Ot(m,"function",o);m=p(Ft(f,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?_.literal:_.object,value:e}}))}if(Oe(c)){if(!(g=c.options[h]||c.options.other))throw new At(c.value,h,Object.keys(c.options),o);a.push.apply(a,Ft(g.value,t,n,r,i))}else if($e(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Ct('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Tt.MISSING_INTL_API,o);var p=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[p]||c.options.other}if(!g)throw new At(c.value,h,Object.keys(c.options),o);a.push.apply(a,Ft(g.value,t,n,r,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===_.literal&&t.type===_.literal?n.value+=t.value:e.push(t),e},[])}function Lt(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(r=_=_||{})[r.literal=0]="literal",r[r.object=1]="object";Object.defineProperty(a,"defaultLocale",{get:function(){return a.memoizedDefaultLocale||(a.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),a.memoizedDefaultLocale},enumerable:!1,configurable:!0}),a.memoizedDefaultLocale=null,a.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},a.__parse=pt,a.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var It=a;function a(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=a.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===_.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Ft(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=a.resolveLocale(t),"string"==typeof e){if(this.message=e,!a.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=a.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=a.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[t])?g(g(g({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=g(g({},n[t]),r[t]||{}),e},{})):n),e},g({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:gt(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Me([void 0],t,!1)))},{cache:Lt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:xt.variadic}),getDateTimeFormat:gt(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Me([void 0],t,!1)))},{cache:Lt(t.dateTime),strategy:xt.variadic}),getPluralRules:gt(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Me([void 0],t,!1)))},{cache:Lt(t.pluralRules),strategy:xt.variadic})}}const s={},Ut=(e,t,n)=>n&&(t in s||(s[t]={}),e in s[t]||(s[t][e]=n),n),Yt=(t,n)=>{if(null!=n){if(n in s&&t in s[n])return s[n][t];var r=un(n);for(let e=0;e<r.length;e++){var i=function(e,t){if(!Gt(e))return null;e=function(e){return zt[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(i)return Ut(t,n,i)}}};let zt;const jt=de({});function Gt(e){return e in zt}function Wt(t,...n){delete s[t],jt.update(e=>(e[t]=Te.all([e[t]||{},...n]),e))}fe([jt],([e])=>Object.keys(e)),jt.subscribe(e=>zt=e);const Vt={};function Jt(e){return Vt[e]}function Zt(e){return null!=e&&un(e).some(e=>{return null==(e=Jt(e))?void 0:e.size})}function Xt(r,e){return Promise.all(e.map(e=>{return t=r,n=e,Vt[t].delete(n),0===Vt[t].size&&delete Vt[t],e().then(e=>e.default||e);var t,n})).then(e=>Wt(r,...e))}const Kt={};const qt={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Qt=de(!1);var en=Object.defineProperty,Xe=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,sn=(e,t,n)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let on;const an=de(null);function ln(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function un(e,t=qt.fallbackLocale){e=ln(e);return t?[...new Set([...e,...ln(t)])]:e}function cn(){return null!=on?on:void 0}an.subscribe(e=>{on=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const se=Xe(((e,t)=>{for(var n in t=t||{})nn.call(t,n)&&sn(e,n,t[n]);if(tn)for(var n of tn(t))rn.call(t,n)&&sn(e,n,t[n]);return e})({},an),Ke({set:t=>{if(t&&function(e){if(null!=e){var t=un(e);for(let e=0;e<t.length;e++){var n=t[e];if(Gt(n))return n}}}(t)&&Zt(t)){var n=qt["loadingDelay"];let e;return"undefined"!=typeof window&&null!=cn()&&n?e=window.setTimeout(()=>Qt.set(!0),n):Qt.set(!0),function e(t){var n;return Zt(t)?(n=un(t).map(e=>{var t=Jt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Kt[t]=Promise.all(n.map(([e,t])=>Xt(e,t))).then(()=>{if(Zt(t))return e(t);delete Kt[t]}),Kt[t]):t in Kt?Kt[t]:Promise.resolve()}(t).then(()=>{an.set(t)}).finally(()=>{clearTimeout(e),Qt.set(!1)})}return an.set(t)}}));var qe=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},hn=Object.defineProperty,dn=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,pn=(e,t,n)=>t in e?hn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gn=(e,t)=>{for(var n in t=t||{})fn.call(t,n)&&pn(e,n,t[n]);if(dn)for(var n of dn(t))mn.call(t,n)&&pn(e,n,t[n]);return e},yn=(e,t)=>{var n={};for(r in e)fn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&dn)for(var r of dn(e))t.indexOf(r)<0&&mn.call(e,r)&&(n[r]=e[r]);return n};const bn=(e,t)=>{var n=qt["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},vn=qe(e=>{var{locale:t,format:n}=e,e=yn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=bn("number",n)),new Intl.NumberFormat(t,e)}),wn=qe(e=>{var{locale:t,format:n}=e,e=yn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=bn("date",n):0===Object.keys(e).length&&(e=bn("date","short")),new Intl.DateTimeFormat(t,e)}),_n=qe(e=>{var{locale:t,format:n}=e,e=yn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=bn("time",n):0===Object.keys(e).length&&(e=bn("time","short")),new Intl.DateTimeFormat(t,e)}),Tn=qe((e,t=cn())=>new It(e,t,qt.formats,{ignoreTag:qt.ignoreTag})),Sn=fe([se,jt],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:s,locale:o=cn(),default:a}=i;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Yt(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=qt).handleMissingMessage)?void 0:n.call(r,{locale:o,id:e,defaultValue:a}))?n:a)?r:e;if(!s)return l;let u=l;try{u=Tn(l,o).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u});function En(e,t){Wt(e,t)}fe([se],()=>(e,t)=>((e={})=>{var{locale:t=cn()}=e,e=yn(e,["locale"]);return _n(gn({locale:t},e))})(t).format(e)),fe([se],()=>(e,t)=>((e={})=>{var{locale:t=cn()}=e,e=yn(e,["locale"]);return wn(gn({locale:t},e))})(t).format(e)),fe([se],()=>(e,t)=>((e={})=>{var{locale:t=cn()}=e,e=yn(e,["locale"]);return vn(gn({locale:t},e))})(t).format(e)),fe([se,jt],()=>(e,t=cn())=>Yt(e,t));const xn={en:{tournamentsList:{nothing:"Nothing to show here."}},hr:{tournamentsList:{nothing:"Nema ničega za prikazati ovdje."}},"zh-hk":{tournamentsList:{nothing:"這裡沒有什麼可顯示的。"}},fr:{tournamentsList:{nothing:"Rien à montrer ici."}},ro:{tournamentsList:{nothing:"Niciun turneu disponibil aici."}},tr:{tournamentsList:{nothing:"Gösterilecek."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí."}},hu:{tournamentsList:{nothing:"Nincs megjelenítendő adat."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}};var kn,Mn,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Pn="URLSearchParams"in l,Dn="Symbol"in l&&"iterator"in Symbol,Cn="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),$n="FormData"in l,Bn="ArrayBuffer"in l;function Nn(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 Hn(e){return e="string"!=typeof e?String(e):e}function Rn(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Dn&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Fn(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Ln(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function In(e){var t=new FileReader,n=Ln(t);return t.readAsArrayBuffer(e),n}function Un(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Yn(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Cn&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:$n&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Pn&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Bn&&Cn&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Un(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Bn&&(ArrayBuffer.prototype.isPrototypeOf(e)||Mn(e))?this._bodyArrayBuffer=Un(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):Pn&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Cn&&(this.blob=function(){var e=Fn(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(){if(this._bodyArrayBuffer)return Fn(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(Cn)return this.blob().then(In);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=Fn(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=Ln(e=new FileReader),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;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)},$n&&(this.formData=function(){return this.text().then(Gn)}),this.json=function(){return this.text().then(JSON.parse)},this}Bn&&(kn=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Mn=ArrayBuffer.isView||function(e){return e&&-1<kn.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=Nn(e),t=Hn(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[Nn(e)]},u.prototype.get=function(e){return e=Nn(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(Nn(e))},u.prototype.set=function(e,t){this.map[Nn(e)]=Hn(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Rn(n)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Rn(t)},u.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Rn(n)},Dn&&(u.prototype[Symbol.iterator]=u.prototype.entries);var zn=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function jn(e,t){if(!(this instanceof jn))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 jn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(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 u(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<zn.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).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||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Gn(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}jn.prototype.clone=function(){return new jn(this,{body:this._bodyInit})},Yn.call(jn.prototype),Yn.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Wn=[301,302,303,307,308],Vn=(c.redirect=function(e,t){if(-1===Wn.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},l.DOMException);try{new Vn}catch(v){(Vn=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Vn.prototype.constructor=Vn}function Jn(r,a){return new Promise(function(i,e){var s=new jn(r,a);if(s.signal&&s.signal.aborted)return e(new Vn("Aborted","AbortError"));var n,o=new XMLHttpRequest;function t(){o.abort()}o.onload=function(){var e,r,t={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new u,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(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(s.url.startsWith("file://")&&(o.status<200||599<o.status)?t.status=200:t.status=o.status,t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new c(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){e(new Vn("Aborted","AbortError"))},0)},o.open(s.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?o.withCredentials=!0:"omit"===s.credentials&&(o.withCredentials=!1),"responseType"in o&&(Cn?o.responseType="blob":Bn&&(o.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof u||l.Headers&&a.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push(Nn(e)),o.setRequestHeader(e,Hn(a.headers[e]))}),s.headers.forEach(function(e,t){-1===n.indexOf(t)&&o.setRequestHeader(t,e)})):s.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",t),o.onreadystatechange=function(){4===o.readyState&&s.signal.removeEventListener("abort",t)}),o.send(void 0===s._bodyInit?null:s._bodyInit)})}function h(e){return"function"==typeof e}function Zn(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}Jn.polyfill=!0,l.fetch||(l.fetch=Jn,l.Headers=u,l.Request=jn,l.Response=c),self.fetch.bind(self);var Xn=Zn(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 Kn(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}o.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=xe(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(h(s))try{s()}catch(e){i=e instanceof Xn?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=xe(s),u=l.next();!u.done;u=l.next()){var c=u.value;try{tr(c)}catch(e){i=null!=i?i:[],e instanceof Xn?i=Me(Me([],ke(i)),ke(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 Xn(i)}},o.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)tr(e);else{if(e instanceof o){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},o.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},o.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},o.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Kn(t,e)},o.prototype.remove=function(e){var t=this._finalizers;t&&Kn(t,e),e instanceof o&&e._removeParent(this)},o.EMPTY=((Qe=new o).closed=!0,Qe);var qn=o,Qn=qn.EMPTY;function o(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function er(e){return e instanceof qn||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function tr(e){h(e)?e():e.unsubscribe()}var nr=void 0,rr=!1,ir=!1,sr={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=sr.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Me([e,t],ke(n))):setTimeout.apply(void 0,Me([e,t],ke(n)))},clearTimeout:function(e){var t=sr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function or(){}var ar=null;function lr(e){if(rr){var t=!ar;if(t&&(ar={errorThrown:!1,error:null}),e(),t){var t=ar,n=t.errorThrown,t=t.error;if(ar=null,n)throw t}}else e()}e(m,ur=qn),m.create=function(e,t,n){return new pr(e,t,n)},m.prototype.next=function(e){this.isStopped||this._next(e)},m.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},m.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},m.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ur.prototype.unsubscribe.call(this),this.destination=null)},m.prototype._next=function(e){this.destination.next(e)},m.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},m.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var ur,cr=m,hr=Function.prototype.bind;function m(e){var t=ur.call(this)||this;return t.isStopped=!1,e?er(t.destination=e)&&e.add(t):t.destination=vr,t}function dr(e,t){return hr.call(e,t)}yr.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){br(e)}},yr.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){br(e)}else br(e)},yr.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){br(e)}};var fr,mr=yr,pr=(e(gr,fr=cr),gr);function gr(e,t,n){var r=fr.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&ir?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&dr(e.next,t),error:e.error&&dr(e.error,t),complete:e.complete&&dr(e.complete,t)}):e;return r.destination=new mr(n),r}function yr(e){this.partialObserver=e}function br(e){var t=e;sr.setTimeout(function(){throw t})}var vr={closed:!0,next:or,error:function(e){throw e},complete:or},et="function"==typeof Symbol&&Symbol.observable||"@@observable";T.prototype.lift=function(e){var t=new T;return t.source=this,t.operator=e,t},T.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof cr||r&&h(r.next)&&h(r.error)&&h(r.complete)&&er(r)?e:new pr(e,t,n);return lr(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},T.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},T.prototype.forEach=function(r,e){var i=this;return new(e=_r(e))(function(e,t){var n=new pr({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},T.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},T.prototype[et]=function(){return this},T.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},T.prototype.toPromise=function(e){var r=this;return new(e=_r(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},T.create=function(e){return new T(e)};var wr=T;function T(e){e&&(this._subscribe=e)}function _r(e){return null!=(e=null!=e?e:nr)?e:Promise}var Tr,Sr,Er,xr=Zn(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),nt=(e(S,Er=wr),S.prototype.lift=function(e){var t=new kr(this,this);return t.operator=e,t},S.prototype._throwIfClosed=function(){if(this.closed)throw new xr},S.prototype.next=function(i){var s=this;lr(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var n=xe(s.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},S.prototype.error=function(t){var n=this;lr(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)}})},S.prototype.complete=function(){var t=this;lr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},S.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(S.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),S.prototype._trySubscribe=function(e){return this._throwIfClosed(),Er.prototype._trySubscribe.call(this,e)},S.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},S.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?Qn:(this.currentObservers=null,i.push(e),new qn(function(){t.currentObservers=null,Kn(i,e)}))},S.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},S.prototype.asObservable=function(){var e=new wr;return e.source=this,e},S.create=function(e,t){return new kr(e,t)},S),kr=(e(Cr,Sr=nt),Cr.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},Cr.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},Cr.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Cr.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Qn},Cr),Mr={now:function(){return(Mr.delegate||Date).now()},delegate:void 0},Pr=(e(Dr,Tr=nt),Dr.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(),Tr.prototype.next.call(this,e)},Dr.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},Dr.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)}},Dr);function Dr(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=Mr);var r=Tr.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 Cr(e,t){var n=Sr.call(this)||this;return n.destination=e,n.source=t,n}function S(){var e=Er.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Ar=[],Or={};window.emWidgets={topic:(e,t=0)=>{return-1==Ar.indexOf(e)&&(t=new Pr(t),Or[e]=t,Ar.push(e)),Or[e]}};const $r=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Br(e,t){Wt(e,t)}const Nr={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},hr:{tournamentsThController:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."}},"zh-hk":{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu"}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}}};function Hr(e,t){Wt(e,t)}const Rr={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",stake:"Turnover",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function Fr(n){let r,i,s,o,a,l;return{c(){r=$("div"),i=t(n[13]),H(r,"class",s="Status "+n[15]),H(r,"part",o="Status "+n[15])},m(e,t){A(e,r,t),C(r,i),a||(l=D(n[18].call(null,r)),a=!0)},p(e,t){8192&t[0]&&R(i,e[13]),32768&t[0]&&s!==(s="Status "+e[15])&&H(r,"class",s),32768&t[0]&&o!==(o="Status "+e[15])&&H(r,"part",o)},d(e){e&&O(r),a=!1,l()}}}function Lr(e){let n,r=e[5]&&Ir(e);return{c(){r&&r.c(),n=z()},m(e,t){r&&r.m(e,t),A(e,n,t)},p(e,t){e[5]?r?r.p(e,t):((r=Ir(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&O(n)}}}function Ir(e){let n,r,i=e[16]("tournamentsThumbnail.enrolled")+"";return{c(){n=$("div"),r=t(i),H(n,"class","Enrolled"),H(n,"part","Enrolled")},m(e,t){A(e,n,t),C(n,r)},p(e,t){65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.enrolled")+"")&&R(r,i)},d(e){e&&O(n)}}}function Ur(n){let r,i,s,o,a;return{c(){H(r=$("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),H(r,"part",s="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),j(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){A(e,r,t),o||(a=D(n[18].call(null,r)),o=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&H(r,"class",i),1&t[0]&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&H(r,"part",s)},d(e){e&&O(r),o=!1,a()}}}function Yr(n){let r,i,s,o,a;return{c(){H(r=$("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),H(r,"part",s="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),j(r,"background-image","url('"+n[4]+"')")},m(e,t){A(e,r,t),o||(a=D(n[18].call(null,r)),o=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&H(r,"class",i),1&t[0]&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&H(r,"part",s),16&t[0]&&j(r,"background-image","url('"+e[4]+"')")},d(e){e&&O(r),o=!1,a()}}}function zr(n){let r,i,s,o,a;return{c(){r=$("div"),i=t(n[11]),H(r,"class","Date"),H(r,"part","Date")},m(e,t){A(e,r,t),C(r,i),o||(a=D(s=n[17].call(null,r,n[2])),o=!0)},p(e,t){2048&t[0]&&R(i,e[11]),s&&d(s.update)&&4&t[0]&&s.update.call(null,e[2])},d(e){e&&O(r),o=!1,a()}}}function jr(n){let r,i,s,o,a,l,u,c,h,d,f,m,p,g,y,b,v,w,_,T,S,E=n[16]("tournamentsThumbnail.scoreCriteria")+"",x=n[16]("tournamentsThumbnail.minbet")+"",k=n[16]("tournamentsThumbnail.seegames")+"",M=n[16]("tournamentsThumbnail.here")+"";return{c(){r=$("div"),i=$("p"),s=t(E),o=t(":\n \n "),a=$("span"),l=t(n[14]),u=t("\n ("),c=t(x),h=B(),d=t(n[6]),f=t(")"),m=B(),p=$("div"),g=$("p"),y=t(k),b=B(),v=$("a"),w=t(M),H(a,"part","ScoreCriteriaSpan"),H(i,"part","ScoreCriteriaP"),H(r,"class","ScoreCriteria"),H(r,"part","ScoreCriteria"),H(v,"part","GamesAnchor"),H(v,"href",n[8]),H(v,"target",_="true"===n[9]?"_self":"_blank"),H(g,"part","GamesP"),H(p,"class","Games"),H(p,"part","Games")},m(e,t){A(e,r,t),C(r,i),C(i,s),C(i,o),C(i,a),C(a,l),C(i,u),C(i,c),C(i,h),C(i,d),C(i,f),A(e,m,t),A(e,p,t),C(p,g),C(g,y),C(g,b),C(g,v),C(v,w),T||(S=[D(n[19].call(null,a)),N(v,"click",n[28])],T=!0)},p(e,t){65536&t[0]&&E!==(E=e[16]("tournamentsThumbnail.scoreCriteria")+"")&&R(s,E),16384&t[0]&&R(l,e[14]),65536&t[0]&&x!==(x=e[16]("tournamentsThumbnail.minbet")+"")&&R(c,x),64&t[0]&&R(d,e[6]),65536&t[0]&&k!==(k=e[16]("tournamentsThumbnail.seegames")+"")&&R(y,k),65536&t[0]&&M!==(M=e[16]("tournamentsThumbnail.here")+"")&&R(w,M),256&t[0]&&H(v,"href",e[8]),512&t[0]&&_!==(_="true"===e[9]?"_self":"_blank")&&H(v,"target",_)},d(e){e&&O(r),e&&O(m),e&&O(p),T=!1,P(S)}}}function Gr(n){let r,i,s,o,a,l,u,c,h,d=n[0]&&Fr(n),f="true"==n[7]&&Lr(n);function m(e){return e[4]?Yr:Ur}let p=m(n),g=p(n),y=n[2]&&zr(n),b=n[12]&&jr(n);return{c(){r=$("div"),d&&d.c(),i=B(),f&&f.c(),s=B(),g.c(),o=B(),a=$("div"),l=$("div"),u=t(n[1]),c=B(),y&&y.c(),h=B(),b&&b.c(),this.c=v,H(l,"class","Title"),H(l,"part","Title"),H(a,"class","Details"),H(a,"part","Details"),H(r,"class","Thumbnail"),H(r,"part","Thumbnail")},m(e,t){A(e,r,t),d&&d.m(r,null),C(r,i),f&&f.m(r,null),C(r,s),g.m(r,null),C(r,o),C(r,a),C(a,l),C(l,u),C(a,c),y&&y.m(a,null),C(a,h),b&&b.m(a,null),n[29](r)},p(e,t){e[0]?d?d.p(e,t):((d=Fr(e)).c(),d.m(r,i)):d&&(d.d(1),d=null),"true"==e[7]?f?f.p(e,t):((f=Lr(e)).c(),f.m(r,s)):f&&(f.d(1),f=null),p===(p=m(e))&&g?g.p(e,t):(g.d(1),(g=p(e))&&(g.c(),g.m(r,o))),2&t[0]&&R(u,e[1]),e[2]?y?y.p(e,t):((y=zr(e)).c(),y.m(a,h)):y&&(y.d(1),y=null),e[12]?b?b.p(e,t):((b=jr(e)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(e){e&&O(r),d&&d.d(),f&&f.d(),g.d(),y&&y.d(),b&&b.d(),n[29](null)}}}function Wr(t,e,r){let i;oe(t,Sn,e=>r(16,i=e));let n,{session:s=""}=e,{userid:o=""}=e,{title:a=""}=e,{startdate:l=""}=e,{status:u=""}=e,{tourid:c=""}=e,{thumbnail:h=""}=e,{userenrolled:d=""}=e,{scorecriteria:f=""}=e,{minbetcount:m=""}=e,{showenrolled:p="false"}=e,{gameurl:g=""}=e,{lang:y="en"}=e,{keepbrowsercontext:b="false"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:_=""}=e,T="",S=!1,E="",x="",k="";Object.keys(Rr).forEach(e=>{Hr(e,Rr[e])});const M=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&r(12,S=!0),e.data.type=="TournamentStatus_"+c)&&r(0,u=e.data.status)},P=()=>{var e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),n=e.getDate(),e=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});r(11,T=n+" "+i("tournamentsThumbnail."+t)+", "+i("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+e)},D=()=>{"Unstarted"==u&&(r(13,E=i("tournamentsThumbnail.scheduled")),r(15,k="StatusUnstarted")),"Running"==u&&(r(13,E=i("tournamentsThumbnail.ongoing")),r(15,k="StatusRunning")),"Closed"!=u&&"Closing"!=u||r(13,E=i("tournamentsThumbnail.finished")),"Closed"==u&&r(15,k="StatusClosed"),"Closing"==u&&r(15,k="StatusClosing")},C=()=>{"BetCount"==f&&r(14,x=i("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==f&&r(14,x=i("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==f&&r(14,x=i("tournamentsThumbnail.winStakeRatio")),"Stake"==f&&r(14,x=i("tournamentsThumbnail.stake"))},A=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};ae(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)}));return t.$$set=e=>{"session"in e&&r(21,s=e.session),"userid"in e&&r(22,o=e.userid),"title"in e&&r(1,a=e.title),"startdate"in e&&r(2,l=e.startdate),"status"in e&&r(0,u=e.status),"tourid"in e&&r(3,c=e.tourid),"thumbnail"in e&&r(4,h=e.thumbnail),"userenrolled"in e&&r(5,d=e.userenrolled),"scorecriteria"in e&&r(23,f=e.scorecriteria),"minbetcount"in e&&r(6,m=e.minbetcount),"showenrolled"in e&&r(7,p=e.showenrolled),"gameurl"in e&&r(8,g=e.gameurl),"lang"in e&&r(24,y=e.lang),"keepbrowsercontext"in e&&r(9,b=e.keepbrowsercontext),"clientstyling"in e&&r(25,v=e.clientstyling),"clientstylingurl"in e&&r(26,w=e.clientstylingurl),"translationurl"in e&&r(27,_=e.translationurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&n&&v&&((e=document.createElement("style")).innerHTML=v,n.appendChild(e)),67109888&t.$$.dirty[0]&&n&&w){let e=new URL(w),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e;134217728&t.$$.dirty[0]&&_&&fetch(_).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Hr(e,t[e])})}).catch(e=>{console.log(e)}),2097152&t.$$.dirty[0]&&s&&(0<s.length&&"false"!=s?r(12,S=!0):r(12,S=!1)),1&t.$$.dirty[0]&&u&&D(),16777218&t.$$.dirty[0]&&y&&a&&(e=y,se.set(e),C(),D(),l)&&P(),4&t.$$.dirty[0]&&l&&P(),8388608&t.$$.dirty[0]&&f&&C()},[u,a,l,c,h,d,m,p,g,b,n,T,S,E,x,k,i,P,D,C,A,s,o,f,y,v,w,_,()=>A(),function(e){ie[e?"unshift":"push"](()=>{n=e,r(10,n)})}]}function Vr(e,t){Wt(e,t)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends le{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}',this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},Wr,Gr,n,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),f()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),f()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),f()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),f()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),f()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),f()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),f()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),f()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),f()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),f()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),f()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),f()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),f()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),f()}});const Jr={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},hr:{tournamentsDuration:{finished:"Završeno",starting:"Počinje za ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"}},"zh-hk":{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function Zr(n){let r,i,s,o,a,l,u,c,h,d,f,m,p=n[10](n[0])+"",g=n[10](n[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?qr:0<e[5]?Kr:Xr}let b=y(n),v=b(n);function w(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?ti:0<e[5]?ei:0<e[4]?Qr:void 0}let _=w(n),T=_&&_(n);return{c(){r=$("div"),i=$("div"),s=t(p),o=B(),a=$("div"),l=t(g),u=B(),c=$("div"),h=$("div"),v.c(),d=B(),T&&T.c(),H(i,"class","StartDate"),H(i,"part","StartDate"),H(a,"class","EndDate"),H(a,"part","EndDate"),H(r,"class","TournamentDates"),H(r,"part","TournamentDates"),H(h,"class","ProgressBar"),H(h,"part","ProgressBar"),H(c,"class","ProgressBarWrapper"),H(c,"part","ProgressBarWrapper")},m(e,t){A(e,r,t),C(r,i),C(i,s),C(r,o),C(r,a),C(a,l),A(e,u,t),A(e,c,t),C(c,h),v.m(h,null),C(h,d),T&&T.m(h,null),f||(m=D(n[9].call(null,c)),f=!0)},p(e,t){1&t&&p!==(p=e[10](e[0])+"")&&R(s,p),2&t&&g!==(g=e[10](e[1])+"")&&R(l,g),b===(b=y(e))&&v?v.p(e,t):(v.d(1),(v=b(e))&&(v.c(),v.m(h,d))),_===(_=w(e))&&T?T.p(e,t):(T&&T.d(1),(T=_&&_(e))&&(T.c(),T.m(h,null)))},d(e){e&&O(r),e&&O(u),e&&O(c),v.d(),T&&T.d(),f=!1,m()}}}function Xr(e){let n;return{c(){H(n=$("div"),"class","ProgressBarFill"),H(n,"part","ProgressBarFill"),j(n,"width",e[7]()+"%")},m(e,t){A(e,n,t)},p(e,t){128&t&&j(n,"width",e[7]()+"%")},d(e){e&&O(n)}}}function Kr(e){let n;return{c(){H(n=$("div"),"class","ProgressBarFillStarting"),H(n,"part","ProgressBarFillStarting")},m(e,t){A(e,n,t)},p:v,d(e){e&&O(n)}}}function qr(e){let n;return{c(){H(n=$("div"),"class","ProgressBarFillEnd"),H(n,"part","ProgressBarFillEnd")},m(e,t){A(e,n,t)},p:v,d(e){e&&O(n)}}}function Qr(e){let n,r,i,s,o=e[8]("tournamentsDuration.left")+"";return{c(){n=$("div"),r=t(e[6]),i=B(),s=t(o),H(n,"class","Remaining"),H(n,"part","Remaining")},m(e,t){A(e,n,t),C(n,r),C(n,i),C(n,s)},p(e,t){64&t&&R(r,e[6]),256&t&&o!==(o=e[8]("tournamentsDuration.left")+"")&&R(s,o)},d(e){e&&O(n)}}}function ei(e){let n,r,i,s,o=e[8]("tournamentsDuration.starting")+"",a=e[11](e[5])+"";return{c(){n=$("div"),r=t(o),i=B(),s=t(a),H(n,"class","Remaining"),H(n,"part","Remaining")},m(e,t){A(e,n,t),C(n,r),C(n,i),C(n,s)},p(e,t){256&t&&o!==(o=e[8]("tournamentsDuration.starting")+"")&&R(r,o),32&t&&a!==(a=e[11](e[5])+"")&&R(s,a)},d(e){e&&O(n)}}}function ti(e){let n,r,i=e[8]("tournamentsDuration.finished")+"";return{c(){n=$("div"),r=t(i),H(n,"class","Finished"),H(n,"part","Finished")},m(e,t){A(e,n,t),C(n,r)},p(e,t){256&t&&i!==(i=e[8]("tournamentsDuration.finished")+"")&&R(r,i)},d(e){e&&O(n)}}}function ni(n){let r,i=n[0]&&n[1]&&Zr(n);return{c(){r=$("div"),i&&i.c(),this.c=v,H(r,"class","TournamentDuration"),H(r,"part","TournamentDuration")},m(e,t){A(e,r,t),i&&i.m(r,null),n[16](r)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=Zr(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&O(r),i&&i.d(),n[16](null)}}}function ri(t,e,n){let r,i;oe(t,Sn,e=>n(8,i=e));let s,{startdate:o=""}=e,{enddate:a=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,f="",m="",p="";Object.keys(Jr).forEach(e=>{Vr(e,Jr[e])});const g=e=>new Date(e).getTime(),y=(e,t)=>(g(t)-g(e))/6e4,b=()=>{var e=new Date;n(4,f=y(e,a)),n(5,m=y(e,o)),n(6,p=v(f))},v=e=>{var t;return e<1440?[e/60,t=e%60,60*(t-Math.floor(t))].map(e=>{return(e=Math.floor(e))<10?"0"+e:""+e}).join(":"):Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return ae(()=>{const e=setInterval(()=>{o&&a&&b()},1e3);return()=>clearInterval(e)}),t.$$set=e=>{"startdate"in e&&n(0,o=e.startdate),"enddate"in e&&n(1,a=e.enddate),"status"in e&&n(2,l=e.status),"lang"in e&&n(12,u=e.lang),"clientstyling"in e&&n(13,c=e.clientstyling),"clientstylingurl"in e&&n(14,h=e.clientstylingurl),"translationurl"in e&&n(15,d=e.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&n(7,r=()=>{var e,t;return f<=0?100:(t=100/(e=y(o,a)),Math.floor((e-f)*t))}),19&t.$$.dirty&&o&&a&&b(),4096&t.$$.dirty&&u&&b(),4112&t.$$.dirty&&u&&v(f),32768&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vr(e,t[e])})}).catch(e=>{console.log(e)}),8200&t.$$.dirty&&s&&c&&((e=document.createElement("style")).innerHTML=c,s.appendChild(e)),16392&t.$$.dirty&&s&&h){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[o,a,l,s,f,m,p,r,i,b,e=>{var e=new Date(e),t=new Intl.DateTimeFormat(u,{month:"long"}).format(e);return`${e.getDate()} ${t}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+e.getUTCFullYear()},v,u,c,h,d,function(e){ie[e?"unshift":"push"](()=>{s=e,n(3,s)})}]}function ii(e,t){Wt(e,t)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends le{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},ri,ni,n,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),f()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),f()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),f()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),f()}});const si={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},hr:{tournamentsPrizes:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},"zh-hk":{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function oi(e,t,n){e=e.slice();return e[13]=t[n],e[15]=n,e}function ai(t){let r,i=t[1],s=[];for(let e=0;e<i.length;e+=1)s[e]=ui(oi(t,i,e));let o=null;return i.length||(o=li(t)),{c(){r=$("div");for(let e=0;e<s.length;e+=1)s[e].c();o&&o.c(),H(r,"class","Prizes"),H(r,"part","Prizes")},m(e,t){A(e,r,t);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(r,null);o&&o.m(r,null)},p(t,n){if(6&n){let e;for(i=t[1],e=0;e<i.length;e+=1){const o=oi(t,i,e);s[e]?s[e].p(o,n):(s[e]=ui(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=li(t)).c(),o.m(r,null))}},d(e){e&&O(r),U(s,e),o&&o.d()}}}function li(e){let n,r,i=e[2]("tournamentsPrizes.noprizes")+"";return{c(){n=$("p"),r=t(i)},m(e,t){A(e,n,t),C(n,r)},p(e,t){4&t&&i!==(i=e[2]("tournamentsPrizes.noprizes")+"")&&R(r,i)},d(e){e&&O(n)}}}function ui(e){let n,r,i,s,o,a,l,u,c,h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"",d=e[2]("tournamentsPrizes.place")+"",f=e[13].name+"";return{c(){n=$("div"),r=$("p"),i=$("span"),s=t(h),o=B(),a=t(d),l=t(": "),u=t(f),c=B(),H(i,"class","PrizeRank"),H(i,"part","PrizeRank"),H(r,"class","PrizeText"),H(r,"part","PrizeText"),H(n,"class","Prize Prize"+e[15]),H(n,"part","Prize Prize"+e[15])},m(e,t){A(e,n,t),C(n,r),C(r,i),C(i,s),C(r,o),C(r,a),C(r,l),C(r,u),C(n,c)},p(e,t){2&t&&h!==(h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"")&&R(s,h),4&t&&d!==(d=e[2]("tournamentsPrizes.place")+"")&&R(a,d),2&t&&f!==(f=e[13].name+"")&&R(u,f)},d(e){e&&O(n)}}}function ci(n){let r,i,s,o,a,l,u,c=n[2]("tournamentsPrizes.prizes")+"",h=n[1]&&ai(n);return{c(){r=$("div"),i=$("div"),(s=$("span")).innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',o=B(),a=$("p"),l=t(c),u=B(),h&&h.c(),this.c=v,H(s,"class","TournamentPrizesIconWrapper"),H(s,"part","TournamentPrizesIconWrapper"),H(a,"class","PrizesTitle"),H(a,"part","PrizesTitle"),H(i,"class","TournamentPrizesIconSection"),H(i,"part","TournamentPrizesIconSection"),H(r,"class","TournamentPrizes"),H(r,"part","TournamentPrizes")},m(e,t){A(e,r,t),C(r,i),C(i,s),C(i,o),C(i,a),C(a,l),C(r,u),h&&h.m(r,null),n[7](r)},p(e,[t]){4&t&&c!==(c=e[2]("tournamentsPrizes.prizes")+"")&&R(l,c),e[1]?h?h.p(e,t):((h=ai(e)).c(),h.m(r,null)):h&&(h.d(1),h=null)},i:v,o:v,d(e){e&&O(r),h&&h.d(),n[7](null)}}}function hi(t,e,n){let r;oe(t,Sn,e=>n(2,r=e));let i,s,{tourid:o=""}=e,{clientstyling:a=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e;Object.keys(si).forEach(e=>{ii(e,si[e])});const c=e=>{e.data&&e.data.type=="TournamentPrizes_"+o&&n(1,s=e.data.prizes)};return ae(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"tourid"in e&&n(3,o=e.tourid),"clientstyling"in e&&n(4,a=e.clientstyling),"clientstylingurl"in e&&n(5,l=e.clientstylingurl),"translationurl"in e&&n(6,u=e.translationurl)},t.$$.update=()=>{if(17&t.$$.dirty&&i&&a&&((e=document.createElement("style")).innerHTML=a,i.appendChild(e)),33&t.$$.dirty&&i&&l){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;64&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ii(e,t[e])})}).catch(e=>{console.log(e)})},[i,s,r,o,a,l,u,function(e){ie[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}function di(e,t){Wt(e,t)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends le{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},hi,ci,n,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},null),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationurl"]}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),f()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),f()}});const fi={en:{gamesSlider:{playNow:"Play now"}},hr:{gamesSlider:{playNow:"Započni sada"}},"zh-hk":{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Jugar Ya"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function mi(e,t,n){e=e.slice();return e[50]=t[n],e[52]=n,e}function pi(n){let r,i,s,o,a,l,u,c,h,d,f=n[1],m=[];for(let e=0;e<f.length;e+=1)m[e]=gi(mi(n,f,e));return{c(){r=$("div"),(i=$("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',s=B(),o=$("main"),a=$("div");for(let e=0;e<m.length;e+=1)m[e].c();u=B(),(c=$("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',H(i,"class","SliderNavButton"),H(i,"part","SliderNavButton"),G(i,"disabled",n[8]),H(a,"class","items"),H(a,"part","items"),j(a,"transform","translateX("+n[2]+"px)"),Q(()=>n[28].call(o)),H(c,"class","SliderNavButton"),H(c,"part","SliderNavButton"),G(c,"disabled",n[9]),H(r,"class","TournamentsGamesSlider"),H(r,"part","TournamentsGamesSlider")},m(e,t){A(e,r,t),C(r,i),C(r,s),C(r,o),C(o,a);for(let e=0;e<m.length;e+=1)m[e]&&m[e].m(a,null);n[27](a),l=function(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=$("iframe"),r=(n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1,function(){if(void 0===M){M=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){M=!0}}return M}());let i;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=N(window,"message",e=>{e.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{i=N(n.contentWindow,"resize",t),t()}),C(e,n),()=>{(r||i&&n.contentWindow)&&i(),O(n)}}(o,n[28].bind(o)),C(r,u),C(r,c),n[30](r),h||(d=[N(i,"click",n[23]),N(c,"click",n[29])],h=!0)},p(t,n){if(256&n[0]&&G(i,"disabled",t[8]),23650&n[0]){let e;for(f=t[1],e=0;e<f.length;e+=1){var r=mi(t,f,e);m[e]?m[e].p(r,n):(m[e]=gi(r),m[e].c(),m[e].m(a,null))}for(;e<m.length;e+=1)m[e].d(1);m.length=f.length}4&n[0]&&j(a,"transform","translateX("+t[2]+"px)"),512&n[0]&&G(c,"disabled",t[9])},d(e){e&&O(r),U(m,e),n[27](null),l(),n[30](null),h=!1,P(d)}}}function gi(n){let r,i,s,o,a,l,u,c,h,d,f,m,p,g=n[10]("gamesSlider.playNow")+"";function y(){return n[24](n[50])}function b(){return n[25](n[52])}return{c(){r=$("div"),i=$("span"),s=t(g),l=B(),u=$("img"),f=B(),H(i,"class",o="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),H(i,"part",a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),L(u.src,c=n[50].thumbnail)||H(u,"src",c),H(u,"width","132px"),H(u,"height","100px"),H(u,"alt",h=n[50].name),H(u,"title",d=n[50].name),H(r,"class","item"),H(r,"part","item")},m(e,t){A(e,r,t),C(r,i),C(i,s),C(r,l),C(r,u),C(r,f),m||(p=[N(r,"click",y),N(r,"mouseenter",b),N(r,"mouseleave",n[26])],m=!0)},p(e,t){n=e,1024&t[0]&&g!==(g=n[10]("gamesSlider.playNow")+"")&&R(s,g),96&t[0]&&o!==(o="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&H(i,"class",o),96&t[0]&&a!==(a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&H(i,"part",a),2&t[0]&&!L(u.src,c=n[50].thumbnail)&&H(u,"src",c),2&t[0]&&h!==(h=n[50].name)&&H(u,"alt",h),2&t[0]&&d!==(d=n[50].name)&&H(u,"title",d)},d(e){e&&O(r),m=!1,P(p)}}}function yi(n){let r,i=n[1]&&0<n[1].length&&pi(n);return{c(){r=$("div"),i&&i.c(),this.c=v},m(e,t){A(e,r,t),i&&i.m(r,null),n[31](r)},p(e,t){e[1]&&0<e[1].length?i?i.p(e,t):((i=pi(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&O(r),i&&i.d(),n[31](null)}}}function bi(n,e,r){let i,s,t;oe(n,Sn,e=>r(10,t=e));let o,a,l,u,c,h,{tournamenturl:d=""}=e,{scrollby:f="3"}=e,{pagfactor:m="175"}=e,{lang:p=""}=e,{translationurl:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,v=window.navigator.userAgent,w=[],_=0,T=null,S=null,E=!1,x=0;Object.keys(fi).forEach(e=>{di(e,fi[e])});const k=e=>{r(5,E=!0),r(6,u=e)},M=()=>{r(5,E=!1),r(6,u=-1)},P=e=>{e=(e.touches||e.originalEvent.touches)[0];T=e.clientX,S=e.clientY},D=e=>{var t;T&&S&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=T-t,e=S-e,Math.abs(t)>Math.abs(e)&&C(0<t?1:-1),T=null,S=null)},C=e=>{0<e&&!s?(r(2,_-=a),r(2,_=_<x?x:_)):e<0&&!i&&(r(2,_+=a),r(2,_=0<_?0:_))},A=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name,launchUrl:e.launchUrl},window.location.href)};return ae(()=>(a=parseInt(f,10)*parseInt(m,10),()=>{l.removeEventListener("touchstart",P),l.removeEventListener("touchmove",D)})),n.$$set=e=>{"tournamenturl"in e&&r(17,d=e.tournamenturl),"scrollby"in e&&r(15,f=e.scrollby),"pagfactor"in e&&r(16,m=e.pagfactor),"lang"in e&&r(18,p=e.lang),"translationurl"in e&&r(19,g=e.translationurl),"clientstyling"in e&&r(20,y=e.clientstyling),"clientstylingurl"in e&&r(21,b=e.clientstylingurl)},n.$$.update=()=>{if(4&n.$$.dirty[0]&&r(8,i=0===_),4194308&n.$$.dirty[0]&&r(9,s=_<=x),16&n.$$.dirty[0]&&h&&0<h&&h<Math.floor((parseInt(f)+1)*m)&&r(15,f=Math.ceil(h/m).toString()),131072&n.$$.dirty[0]&&d&&(e=new URL(d),t=new Headers,e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${_})`),e.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),e.searchParams.append("language",p),e.searchParams.append("platform",$r(v)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(1,w=e.item.games.items),e.item.games.total})),8&n.$$.dirty[0]&&l&&(l.addEventListener("touchstart",P,{passive:!0}),l.addEventListener("touchmove",D,{passive:!0})),524288&n.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{di(e,t[e])})}).catch(e=>{console.log(e)}),2&n.$$.dirty[0]&&w.length&&setTimeout(()=>{r(22,x=-1*(c.scrollWidth-c.clientWidth)),r(16,m=new String(c.scrollWidth/w.length)),a=parseInt(f,10)*parseFloat(m,2).toFixed(2)},1e3),1048577&n.$$.dirty[0]&&y&&o&&((e=document.createElement("style")).innerHTML=y,o.appendChild(e)),2097153&n.$$.dirty[0]&&b&&o){let e=new URL(b),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t},r(2,_=0),[o,w,_,l,h,E,u,c,i,s,t,k,M,C,A,f,m,d,p,g,y,b,x,()=>C(-1),e=>A(e),e=>k(e),()=>M(),function(e){ie[e?"unshift":"push"](()=>{c=e,r(7,c)})},function(){h=this.clientWidth,r(4,h)},()=>C(1),function(e){ie[e?"unshift":"push"](()=>{l=e,r(3,l)})},function(e){ie[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function vi(e){let n,r,i,s,o,a,l,u,c,h=e[13]&&_i(e);function d(e){return e[13]?"Closed"!=e[22]&&"Closing"!=e[22]?Ei:"true"==e[3]?Si:void 0:xi}let f=d(e),m=f&&f(e),p=(e[16]||e[18])&&Oi(e),g="true"==e[4]&&$i(e);return{c(){n=$("div"),r=$("casino-tournaments-thumbnail"),i=B(),h&&h.c(),s=B(),o=$("div"),m&&m.c(),a=B(),p&&p.c(),l=B(),g&&g.c(),y(r,"session",e[0]),y(r,"userid",e[1]),y(r,"title",e[19]),y(r,"status",e[22]),y(r,"startdate",e[20]),y(r,"tourid",e[23]),y(r,"scorecriteria",e[26]),y(r,"minbetcount",e[27]),y(r,"thumbnail",e[24]),y(r,"userenrolled",e[25]),y(r,"showenrolled",e[5]),y(r,"gameurl",e[29]),y(r,"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"lang",e[8]),y(r,"keepbrowsercontext",e[9]),y(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),H(o,"class","TournamentButtons"),H(o,"part","TournamentButtons"),H(n,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")),H(n,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){A(e,n,t),C(n,r),C(n,i),h&&h.m(n,null),C(n,s),C(n,o),m&&m.m(o,null),C(n,a),p&&p.m(n,null),C(n,l),g&&g.m(n,null)},p(e,t){1&t[0]&&y(r,"session",e[0]),2&t[0]&&y(r,"userid",e[1]),524288&t[0]&&y(r,"title",e[19]),4194304&t[0]&&y(r,"status",e[22]),1048576&t[0]&&y(r,"startdate",e[20]),8388608&t[0]&&y(r,"tourid",e[23]),67108864&t[0]&&y(r,"scorecriteria",e[26]),134217728&t[0]&&y(r,"minbetcount",e[27]),16777216&t[0]&&y(r,"thumbnail",e[24]),33554432&t[0]&&y(r,"userenrolled",e[25]),32&t[0]&&y(r,"showenrolled",e[5]),536870912&t[0]&&y(r,"gameurl",e[29]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),256&t[0]&&y(r,"lang",e[8]),512&t[0]&&y(r,"keepbrowsercontext",e[9]),e[13]?h?h.p(e,t):((h=_i(e)).c(),h.m(n,s)):h&&(h.d(1),h=null),f===(f=d(e))&&m?m.p(e,t):(m&&m.d(1),(m=f&&f(e))&&(m.c(),m.m(o,null))),e[16]||e[18]?p?p.p(e,t):((p=Oi(e)).c(),p.m(n,l)):p&&(p.d(1),p=null),"true"==e[4]?g?g.p(e,t):((g=$i(e)).c(),g.m(n,null)):g&&(g.d(1),g=null),1073742016&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&H(n,"class",u),1073742016&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&H(n,"part",c)},d(e){e&&O(n),h&&h.d(),m&&m.d(),p&&p.d(),g&&g.d()}}}function wi(e){let n,r,i,s;return{c(){n=$("div"),(r=$("div")).innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> \n <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> \n <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> \n <div class="ph-col-4" part="ph-col-4"></div> \n <div class="ph-col-8 empty" part="ph-col-8 empty"></div> \n <div class="ph-col-6" part="ph-col-6"></div> \n <div class="ph-col-6 empty" part="ph-col-6 empty"></div> \n <div class="ph-col-12" part="ph-col-12"></div></div></div>',H(r,"class","ph-item"),H(r,"part","ph-item"),H(n,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")),H(n,"part",s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){A(e,n,t),C(n,r)},p(e,t){1073742016&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&H(n,"class",i),1073742016&t[0]&&s!==(s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&H(n,"part",s)},d(e){e&&O(n)}}}function _i(e){let n,r,i=e[23]&&Ti(e);return{c(){i&&i.c(),n=B(),y(r=$("casino-tournaments-thumbnail-duration"),"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"status",e[22]),y(r,"startdate",e[20]),y(r,"lang",e[8]),y(r,"enddate",e[21]),y(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),A(e,n,t),A(e,r,t)},p(e,t){e[23]?i?i.p(e,t):((i=Ti(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),4194304&t[0]&&y(r,"status",e[22]),1048576&t[0]&&y(r,"startdate",e[20]),256&t[0]&&y(r,"lang",e[8]),2097152&t[0]&&y(r,"enddate",e[21])},d(e){i&&i.d(e),e&&O(n),e&&O(r)}}}function Ti(n){let r,i,s,o;return{c(){y(r=$("casino-tournaments-thumbnail-prizes"),"tourid",n[23]),y(r,"clientstyling",n[10]),y(r,"clientstylingurl",n[11]),y(r,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){A(e,r,t),s||(o=D(i=n[36].call(null,r,n[23])),s=!0)},p(e,t){8388608&t[0]&&y(r,"tourid",e[23]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),i&&d(i.update)&&8388608&t[0]&&i.update.call(null,e[23])},d(e){e&&O(r),s=!1,o()}}}function Si(n){let r,i,s,o,a=n[31]("tournamentsThController.details")+"";return{c(){r=$("button"),i=t(a),H(r,"class","DetailsLargeButton"),H(r,"part","DetailsLargeButton")},m(e,t){A(e,r,t),C(r,i),s||(o=N(r,"click",n[50]),s=!0)},p(e,t){1&t[1]&&a!==(a=e[31]("tournamentsThController.details")+"")&&R(i,a)},d(e){e&&O(r),s=!1,o()}}}function Ei(e){let n,r,i="true"==e[3]&&ki(e);function s(e){return 1==e[25]?Pi:Mi}let o=s(e),a=o(e);return{c(){i&&i.c(),n=B(),a.c(),r=z()},m(e,t){i&&i.m(e,t),A(e,n,t),a.m(e,t),A(e,r,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=ki(e)).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.c(),a.m(r.parentNode,r)))},d(e){i&&i.d(e),e&&O(n),a.d(e),e&&O(r)}}}function xi(n){let r,i,s,o,a,l,u,c=n[31]("tournamentsThController.login")+"",h=n[31]("tournamentsThController.register")+"";return{c(){r=$("button"),i=t(c),s=B(),o=$("button"),a=t(h),H(r,"class","LoginButton"),H(r,"part","LoginButton"),H(o,"class","RegisterButton"),H(o,"part","RegisterButton")},m(e,t){A(e,r,t),C(r,i),A(e,s,t),A(e,o,t),C(o,a),l||(u=[N(r,"click",n[46]),N(o,"click",n[47])],l=!0)},p(e,t){1&t[1]&&c!==(c=e[31]("tournamentsThController.login")+"")&&R(i,c),1&t[1]&&h!==(h=e[31]("tournamentsThController.register")+"")&&R(a,h)},d(e){e&&O(r),e&&O(s),e&&O(o),l=!1,P(u)}}}function ki(n){let r,i,s,o,a=n[31]("tournamentsThController.details")+"";return{c(){r=$("button"),i=t(a),H(r,"class","DetailsButton"),H(r,"part","DetailsButton")},m(e,t){A(e,r,t),C(r,i),s||(o=N(r,"click",n[48]),s=!0)},p(e,t){1&t[1]&&a!==(a=e[31]("tournamentsThController.details")+"")&&R(i,a)},d(e){e&&O(r),s=!1,o()}}}function Mi(n){let r,i,s,o,a;function l(e){return 1==e[15]?Ci:Di}let u=l(n),c=u(n);return{c(){r=$("button"),c.c(),H(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),H(r,"part",s="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[16]},m(e,t){A(e,r,t),c.m(r,null),o||(a=N(r,"click",n[49]),o=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(r,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&H(r,"class",i),128&t[0]&&s!==(s="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&H(r,"part",s),65536&t[0]&&(r.disabled=e[16])},d(e){e&&O(r),c.d(),o=!1,a()}}}function Pi(e){let n,r="true"==e[3]&&Ai(e);return{c(){r&&r.c(),n=z()},m(e,t){r&&r.m(e,t),A(e,n,t)},p(e,t){"true"==e[3]?r?r.p(e,t):((r=Ai(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&O(n)}}}function Di(e){let n,r,i,s,o,a,l,u,c,h=e[31]("tournamentsThController.join")+"";return{c(){n=$("span"),r=t(h),i=B(),s=Y("svg"),o=Y("defs"),a=Y("style"),l=t(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=Y("g"),c=Y("path"),H(n,"part","JoinButtonSpan"),H(c,"class","a"),H(c,"part","a JoinButtonSvgA"),H(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),H(c,"transform","translate(26 26) rotate(180)"),H(u,"transform","translate(26 26) rotate(180)"),H(s,"part","JoinButtonSvg"),H(s,"xmlns","http://www.w3.org/2000/svg"),H(s,"width","26"),H(s,"height","26"),H(s,"viewBox","0 0 26 26")},m(e,t){A(e,n,t),C(n,r),A(e,i,t),A(e,s,t),C(s,o),C(o,a),C(a,l),C(s,u),C(u,c)},p(e,t){1&t[1]&&h!==(h=e[31]("tournamentsThController.join")+"")&&R(r,h)},d(e){e&&O(n),e&&O(i),e&&O(s)}}}function Ci(e){let n,r;return{c(){n=Y("svg"),H(r=Y("circle"),"cx","20"),H(r,"cy","20"),H(r,"r","18"),H(n,"class","spinner"),H(n,"part","spinner")},m(e,t){A(e,n,t),C(n,r)},p:v,d(e){e&&O(n)}}}function Ai(e){let n,r,i=e[31]("tournamentsThController.enrolled")+"";return{c(){n=$("button"),r=t(i),H(n,"class","EnrolledButton"),H(n,"part","EnrolledButton"),n.disabled=!0},m(e,t){A(e,n,t),C(n,r)},p(e,t){1&t[1]&&i!==(i=e[31]("tournamentsThController.enrolled")+"")&&R(r,i)},d(e){e&&O(n)}}}function Oi(e){let n,r,i,s,o=e[31]("tournamentsThController.joinerror")+"";return{c(){n=$("span"),r=t(o),i=B(),s=t(e[17]),H(n,"class","ErrorText"),H(n,"part","ErrorText")},m(e,t){A(e,n,t),C(n,r),C(n,i),C(n,s)},p(e,t){1&t[1]&&o!==(o=e[31]("tournamentsThController.joinerror")+"")&&R(r,o),131072&t[0]&&R(s,e[17])},d(e){e&&O(n)}}}function $i(e){let n;return{c(){y(n=$("casino-tournaments-thumbnail-games-slider"),"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"tournamenturl",e[2]),y(n,"lang",e[8]),y(n,"scrollby","2"),y(n,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){A(e,n,t)},p(e,t){1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),4&t[0]&&y(n,"tournamenturl",e[2]),256&t[0]&&y(n,"lang",e[8])},d(e){e&&O(n)}}}function Bi(n){let r;function i(e){return e[14]?wi:e[19]?vi:void 0}let s=i(n),o=s&&s(n);return{c(){r=$("div"),o&&o.c(),this.c=v},m(e,t){A(e,r,t),o&&o.m(r,null),n[51](r)},p(e,t){s===(s=i(e))&&o?o.p(e,t):(o&&o.d(1),(o=s&&s(e))&&(o.c(),o.m(r,null)))},i:v,o:v,d(e){e&&O(r),o&&o.d(),n[51](null)}}}function Ni(n,e,u){let t;oe(n,Sn,e=>u(31,t=e));let r,i,s,o,a,c,l,h,d,H,f,{session:m=""}=e,{userid:R=""}=e,{tournamenturl:p=""}=e,g=e["touridx"],{endpoint:y=""}=e,{showdetails:F=""}=e,{showslider:L=""}=e,{showenrolled:I=""}=e,{maxwidth:U=""}=e,{fullsize:Y=""}=e,{lang:b=""}=e,{loginevent:v=""}=e,{registerevent:w=""}=e,{loginurl:_=""}=e,{registerurl:T=""}=e,{currency:S=""}=e,{keepbrowsercontext:z="false"}=e,{clientstyling:E=""}=e,{clientstylingurl:x=""}=e,{translationurl:k=""}=e,M=!1,P="",D=!0,j=window.navigator.userAgent,C=!1,A=!1,G="There was an error while trying to join the tournament",O=!1,W=[],$=[],V="#",B=!1;var J,Z;({withLocale:J,translations:Z}={withLocale:"en",translations:{}}),se.subscribe(e=>{null==e&&(jt.set(Z),se.set(J))}),Object.keys(Nr).forEach(e=>{Br(e,Nr[e])});const X=e=>{q(e),re(e),ne(this,c)},K=n=>{if(n.data&&"UserSessionID"==n.data.type&&(u(13,M=!0),P=n.data.session),"UpdateTournamentView"==n.data.type){var e=n.data.tournamentData;if(c&&c!=e.id)return;X(e)}if(n.data&&n.data.type=="UpdateSingleTournament_"+g){let e=n.data.tournamentData,t=g<4?100*g:300*Math.random()+300;u(30,B=1==g),setTimeout(()=>{u(30,B=!0),u(23,c=e.id),X(e)},t),setTimeout(()=>{u(30,B=!1)},200+t)}},q=e=>{e.state!=a&&(u(22,a=e.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},Q=()=>{v&&(window.postMessage({type:v,transition:"Login"},window.location.href),"function"==typeof gtag)&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"}),_&&(window.location=_)},ee=()=>{w&&(window.postMessage({type:w,transition:"Register"},window.location.href),"function"==typeof gtag)&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"}),T&&(window.location=T)},N=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},te=async(t,e)=>{u(16,A=!1),u(18,O=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(15,C=!0);let n=new URL(y+"/v1/bonus/claim"),r=new Headers,i={},s=(n.searchParams.append("language",b),n.searchParams.append("platform",$r(j)),r.append("Content-Type","application/json"),r.append("X-SessionID",P),e&&1<=e.length&&(i={language:b,bonusCode:e[0].code,currency:S}),{method:"PUT",headers:r,body:JSON.stringify(i)});const o=()=>{u(15,C=!1),u(25,h=!0)},a=e=>{u(15,C=!1),e&&u(17,G=e),u(16,A=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(n,s)).json()}catch(e){a()}return e})();if(l)if(1==l.success)o();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(y+"/tournaments/"+c,{headers:{"X-SessionID":m}})).json())?void 0:e.item)&&t.playerEnrolled?o():(a(l.errorMessage),u(18,O=!0),u(16,A=!1))}else a(l.errorMessage)},ne=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:W},window.location.href)},re=e=>{e&&(u(19,i=e.nameOrTitle||""),u(20,s=e.startTime),u(21,o=e.endTime),u(22,a=e.state),u(23,c=e.id),u(24,l=e.thumbnail),u(25,h=e.playerEnrolled||!1),u(26,d=e.scoreCriteria),u(27,H=e.minBetCount),W=e.prizes,u(28,$=e.wallets||[]),u(29,V=e.termsUrl||"#"))};return ae(()=>(u(14,D=!1),window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),n.$$set=e=>{"session"in e&&u(0,m=e.session),"userid"in e&&u(1,R=e.userid),"tournamenturl"in e&&u(2,p=e.tournamenturl),"touridx"in e&&u(37,g=e.touridx),"endpoint"in e&&u(38,y=e.endpoint),"showdetails"in e&&u(3,F=e.showdetails),"showslider"in e&&u(4,L=e.showslider),"showenrolled"in e&&u(5,I=e.showenrolled),"maxwidth"in e&&u(6,U=e.maxwidth),"fullsize"in e&&u(7,Y=e.fullsize),"lang"in e&&u(8,b=e.lang),"loginevent"in e&&u(39,v=e.loginevent),"registerevent"in e&&u(40,w=e.registerevent),"loginurl"in e&&u(41,_=e.loginurl),"registerurl"in e&&u(42,T=e.registerurl),"currency"in e&&u(43,S=e.currency),"keepbrowsercontext"in e&&u(9,z=e.keepbrowsercontext),"clientstyling"in e&&u(10,E=e.clientstyling),"clientstylingurl"in e&&u(11,x=e.clientstylingurl),"translationurl"in e&&u(44,k=e.translationurl)},n.$$.update=()=>{if(5120&n.$$.dirty[0]&&r&&E&&((t=document.createElement("style")).innerHTML=E,r.appendChild(t)),6144&n.$$.dirty[0]&&r&&x){let e=new URL(x),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t;8192&n.$$.dirty[1]&&k&&fetch(k).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Br(e,t[e])})}).catch(e=>{console.log(e)}),1&n.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?(P=m,u(13,M=!0)):u(13,M=!1)),260&n.$$.dirty[0]&&u(45,f=p&&b),16384&n.$$.dirty[1]&&f&&(u(14,D=!0),t=p,u(14,D=!0),t=new URL(t),e=new Headers,t.searchParams.append("language",b),t.searchParams.append("platform",$r(j)),M&&e.append("X-SessionID",P),fetch(t,{method:"GET",headers:e}).then(e=>e.json()).then(e=>{u(14,D=!1),re(e.item)}))},[m,R,p,F,L,I,U,Y,b,z,E,x,r,M,D,C,A,G,O,i,s,o,a,c,l,h,d,H,$,V,B,t,Q,ee,N,te,ne,g,y,v,w,_,T,S,k,f,()=>Q(),()=>ee(),()=>N(c),()=>te(c,$),()=>N(c),function(e){ie[e?"unshift":"push"](()=>{r=e,u(12,r)})}]}function Hi(e,t,n){e=e.slice();return e[30]=t[n],e[32]=n,e}function Ri(t){let r,i=t[14],s=[];for(let e=0;e<i.length;e+=1)s[e]=Li(Hi(t,i,e));let o=null;return i.length||(o=Fi(t)),{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=z(),o&&o.c()},m(t,n){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,n);A(t,r,n),o&&o.m(t,n)},p(t,n){if(53247&n[0]){let e;for(i=t[14],e=0;e<i.length;e+=1){const o=Hi(t,i,e);s[e]?s[e].p(o,n):(s[e]=Li(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=Fi(t)).c(),o.m(r.parentNode,r))}},d(e){U(s,e),e&&O(r),o&&o.d(e)}}}function Fi(e){let n,r,i=e[15]("tournamentsList.nothing")+"";return{c(){n=$("p"),r=t(i)},m(e,t){A(e,n,t),C(n,r)},p(e,t){32768&t[0]&&i!==(i=e[15]("tournamentsList.nothing")+"")&&R(r,i)},d(e){e&&O(n)}}}function Li(e){let n,r,i;return{c(){y(n=$("casino-tournaments-thumbnail-controller"),"touridx",e[32]+1),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"endpoint",e[2]),y(n,"showdetails","true"),y(n,"showslider","false"),y(n,"tournamenturl",r=e[30].href),y(n,"maxwidth",i=e[14].length<=2),y(n,"loginurl",e[5]),y(n,"loginevent",e[3]),y(n,"registerurl",e[6]),y(n,"registerevent",e[4]),y(n,"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"lang",e[8]),y(n,"currency",e[7]),y(n,"keepbrowsercontext",e[9]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){A(e,n,t)},p(e,t){1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),4&t[0]&&y(n,"endpoint",e[2]),16384&t[0]&&r!==(r=e[30].href)&&y(n,"tournamenturl",r),16384&t[0]&&i!==(i=e[14].length<=2)&&y(n,"maxwidth",i),32&t[0]&&y(n,"loginurl",e[5]),8&t[0]&&y(n,"loginevent",e[3]),64&t[0]&&y(n,"registerurl",e[6]),16&t[0]&&y(n,"registerevent",e[4]),1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),256&t[0]&&y(n,"lang",e[8]),128&t[0]&&y(n,"currency",e[7]),512&t[0]&&y(n,"keepbrowsercontext",e[9])},d(e){e&&O(n)}}}function Ii(n){let r,i=!n[13]&&Ri(n);return{c(){r=$("div"),i&&i.c(),this.c=v,H(r,"class","TournamentList"),H(r,"part","TournamentList")},m(e,t){A(e,r,t),i&&i.m(r,null),n[18](r)},p(e,t){e[13]?i&&(i.d(1),i=null):i?i.p(e,t):((i=Ri(e)).c(),i.m(r,null))},i:v,o:v,d(e){e&&O(r),i&&i.d(),n[18](null)}}}function Ui(t,e,n){let r;oe(t,Sn,e=>n(15,r=e));let i,{session:s=""}=e,{userid:o=""}=e,{numberoftournaments:a="6"}=e,{endpoint:l=""}=e,{loginevent:u=""}=e,{registerevent:c=""}=e,{loginurl:h=""}=e,{registerurl:d=""}=e,{currency:f=""}=e,{lang:m="en"}=e,{keepbrowsercontext:p="false"}=e,{clientstyling:g=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,v=!1,w=(ce(),"");Object.keys(xn).forEach(e=>{En(e,xn[e])});const _=t=>{if(t.data&&"TournamentList"==t.data.type&&(n(14,w=[]),n(13,v=!0),n(14,w=t.data.tournamentList),setTimeout(()=>{n(13,v=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&n(14,w=[...w,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!w)return;0==w.filter(e=>e.id==t.data.tournamentData.id).length&&(w.pop(),n(14,w=[t.data.tournamentData,...w]),setTimeout(()=>{w.forEach((e,t)=>{window.postMessage({type:"UpdateSingleTournament_"+(t+1),tournamentData:e},window.location.href)})},100))}t.data&&"UserSessionID"==t.data.type&&t.data.session};return ae(()=>(window.addEventListener("message",_,!0),()=>{window.removeEventListener("message",_,!0)})),t.$$set=e=>{"session"in e&&n(0,s=e.session),"userid"in e&&n(1,o=e.userid),"numberoftournaments"in e&&n(16,a=e.numberoftournaments),"endpoint"in e&&n(2,l=e.endpoint),"loginevent"in e&&n(3,u=e.loginevent),"registerevent"in e&&n(4,c=e.registerevent),"loginurl"in e&&n(5,h=e.loginurl),"registerurl"in e&&n(6,d=e.registerurl),"currency"in e&&n(7,f=e.currency),"lang"in e&&n(8,m=e.lang),"keepbrowsercontext"in e&&n(9,p=e.keepbrowsercontext),"clientstyling"in e&&n(10,g=e.clientstyling),"clientstylingurl"in e&&n(11,y=e.clientstylingurl),"translationurl"in e&&n(17,b=e.translationurl)},t.$$.update=()=>{if(5120&t.$$.dirty[0]&&i&&g&&((e=document.createElement("style")).innerHTML=g,i.appendChild(e)),6144&t.$$.dirty[0]&&i&&y){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;131072&t.$$.dirty[0]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{En(e,t[e])})}).catch(e=>{console.log(e)}),1&t.$$.dirty[0]&&s&&s.length,t.$$.dirty[0]},[s,o,l,u,c,h,d,f,m,p,g,y,i,v,w,r,a,b,function(e){ie[e?"unshift":"push"](()=>{i=e,n(12,i)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends le{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.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}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},bi,yi,n,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationurl","clientstyling","clientstylingurl"]}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(e){this.$$set({tournamenturl:e}),f()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),f()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(e){this.$$set({pagfactor:e}),f()}get lang(){return this.$$.ctx[18]}set lang(e){this.$$set({lang:e}),f()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),f()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends le{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}',this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},Ni,Bi,n,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:44},null,[-1,-1,-1]),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),f()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),f()}get touridx(){return this.$$.ctx[37]}set touridx(e){this.$$set({touridx:e}),f()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),f()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),f()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),f()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),f()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),f()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),f()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),f()}get loginevent(){return this.$$.ctx[39]}set loginevent(e){this.$$set({loginevent:e}),f()}get registerevent(){return this.$$.ctx[40]}set registerevent(e){this.$$set({registerevent:e}),f()}get loginurl(){return this.$$.ctx[41]}set loginurl(e){this.$$set({loginurl:e}),f()}get registerurl(){return this.$$.ctx[42]}set registerurl(e){this.$$set({registerurl:e}),f()}get currency(){return this.$$.ctx[43]}set currency(e){this.$$set({currency:e}),f()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),f()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),f()}});class Yi extends le{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},Ui,Ii,n,{session:0,userid:1,numberoftournaments:16,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:17},null,[-1,-1]),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),f()}get numberoftournaments(){return this.$$.ctx[16]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),f()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),f()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$$set({loginevent:e}),f()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$$set({registerevent:e}),f()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$$set({loginurl:e}),f()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$$set({registerurl:e}),f()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),f()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),f()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),f()}}return customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",Yi),Yi});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function v(){}function S(e){return e()}function E(){return Object.create(null)}function P(e){e.forEach(S)}function d(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let x,k,M;function L(e,t){return(x=x||document.createElement("a")).href=t,e===x.href}function I(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function oe(e,t,n){e.$$.on_destroy.push(I(t,n))}function D(e){return e&&d(e.destroy)?e.destroy:v}function A(e,t){e.appendChild(t)}function C(e,t,n){e.insertBefore(t,n||null)}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function U(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function $(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function B(e){return document.createTextNode(e)}function N(){return B(" ")}function Y(){return B("")}function H(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function R(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:R(e,t,n)}function F(e,t){e.data!==(t=""+t)&&(e.data=t)}function z(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function j(e,t,n){e.classList[n?"add":"remove"](t)}function G(e){var t={};for(const n of e)t[n.name]=n.value;return t}function W(e){M=e}function ae(e){!function(){if(M)return M;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const V=[],ie=[];let J=[];const Z=[],X=Promise.resolve();let K=!1;function q(e){J.push(e)}const Q=new Set;let ee=0;function f(){if(0===ee){const r=M;do{try{for(;ee<V.length;){const r=V[ee];ee++,W(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),P(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(q))}}catch(r){throw V.length=0,ee=0,r}for(W(null),V.length=0,ee=0;ie.length;)ie.pop()();for(let e=0;e<J.length;e+=1){var n=J[e];Q.has(n)||(Q.add(n),n())}}while(J.length=0,V.length);for(;Z.length;)Z.pop()();K=!1,Q.clear(),W(r)}}const te=new Set;function ne(r,e,t,n,i,s,o,a=[-1]){var l=M;W(r);const u=r.$$={fragment:null,ctx:[],props:s,update:v,not_equal:i,bound:E(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:E(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=t?t(r,e.props||{},(e,t,...n)=>{var 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]&&(V.push(e),K||(K=!0,X.then(f)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],u.update(),c=!0,P(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){s=e.target;const v=Array.from(s.childNodes);u.fragment&&u.fragment.l(v),v.forEach(O)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(te.delete(a),a.i(void 0));var h=r,o=e.target,t=e.anchor,n=e.customElement,{fragment:s,after_update:a}=h.$$;s&&s.m(o,t),n||q(()=>{var e=h.$$.on_mount.map(S).filter(d);h.$$.on_destroy?h.$$.on_destroy.push(...e):P(e),h.$$.on_mount=[]}),a.forEach(q),f()}W(l)}let re;function Cn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}"function"==typeof HTMLElement&&(re=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(d);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],i=[];J.forEach(e=>(-1===n.indexOf(e)?r:i).push(e)),i.forEach(e=>e()),J=r}P(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=v}$on(e,t){if(!d(t))return v;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)}});On=le={path:void 0,exports:{},require:function(e,t){return Cn(null==t&&le.path)}},le.exports,On.exports=function(){var H;function m(){return H.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function a(e){return void 0===e}function L(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 U(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function Y(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,r){return Ct(e,t,n,r,!0).utc()}function g(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 z(e){if(null==e._isValid){var t=g(e),n=G.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 j(e){var t=u(NaN);return null!=e?Y(g(t),e):g(t).userInvalidated=!0,t}var G=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},W=m.momentProperties=[],V=!1;function J(e,t){var n,r,i,s=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),0<s)for(n=0;n<s;n++)a(i=t[r=W[n]])||(e[r]=i);return e}function Z(e){J(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,m.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,o){var a=!0;return Y(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,s),a){for(var e,t,n=[],r=arguments.length,i=0;i<r;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}X(s+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var K={};function q(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=Y({},e);for(n in t)p(t,n)&&(R(e[n])&&R(t[n])?(r[n]={},Y(r[n],e[n]),Y(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)p(e,n)&&!p(t,n)&&R(e[n])&&(r[n]=Y({},r[n]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function s(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 ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},se={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(se[e]=i),t&&(se[t[0]]=function(){return s(i.apply(this,arguments),t[1],t[2])}),n&&(se[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function oe(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(r){for(var e,i=r.match(ne),t=0,s=i.length;t<s;t++)se[i[t]]?i[t]=se[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+=c(i[n])?i[n].call(e,r):i[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function h(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,n,r={};for(n in e)p(e,n)&&(t=h(n))&&(r[t]=e[n]);return r}var ce={};function n(e,t){ce[e]=t}function he(e){return e%4==0&&e%100!=0||e%400==0}function d(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function f(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,n){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,n),this):fe(this,t)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&he(e.year())&&1===e.month()&&29===e.date()?(n=f(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Be(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var i=/\d/,y=/\d\d/,pe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,b=/\d\d?/,be=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,we=/\d{1,3}/,_e=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Se=/\d+/,Ee=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,ke=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[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 w(e,n,r){Pe[e]=c(n)?n:function(e,t){return e&&r?r:n}}function Me(e,t){return p(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},De={};function T(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),L(n)&&(i=function(e,t){t[n]=f(e)}),r=e.length,t=0;t<r;t++)De[e[t]]=i}function Ae(e,i){T(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var S,E=0,x=1,k=2,M=3,P=4,D=5,Ce=6,Oe=7,$e=8;function Be(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?he(e)?29:28:31-n%7%2)}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),w("M",b),w("MM",b,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),T(["M","MM"],function(e,t){t[x]=f(e)-1}),T(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[x]=r:g(n).invalidMonth=e});var Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=v,Le=v;function Ie(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!L(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Ue(e){return null!=e?(Ie(this,e),m.updateOffset(this,!0),this):fe(this,"Month")}function Ye(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],s=0;s<12;s++)t=u([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]=_(n[s]),r[s]=_(r[s]);for(s=0;s<24;s++)i[s]=_(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 ze(e){return he(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?s(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),w("Y",Ee),w("YY",b,y),w("YYYY",_e,ge),w("YYYYY",Te,ye),w("YYYYYY",Te,ye),T(["YYYYY","YYYYYY"],E),T("YYYY",function(e,t){t[E]=2===e.length?m.parseTwoDigitYear(e):f(e)}),T("YY",function(e,t){t[E]=m.parseTwoDigitYear(e)}),T("Y",function(e,t){t[E]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return f(e)+(68<f(e)?1900:2e3)};var je=de("FullYear",!0);function Ge(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 We(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 Ve(e,t,n){n=7+t-n;return-(7+We(e,0,n).getUTCDay()-t)%7+n-1}function Je(e,t,n,r,i){var s,t=1+7*(t-1)+(7+n-r)%7+Ve(e,r,i),n=t<=0?ze(s=e-1)+t:t>ze(e)?(s=e+1,t-ze(e)):(s=e,t);return{year:s,dayOfYear:n}}function Ze(e,t,n){var r,i,s=Ve(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+A(i=e.year()-1,t,n):s>A(e.year(),t,n)?(r=s-A(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function A(e,t,n){var r=Ve(e,t,n),t=Ve(e+1,t,n);return(ze(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",b),w("ww",b,y),w("W",b),w("WW",b,y),Ae(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=f(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",b),w("e",b),w("E",b),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Ae(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e}),Ae(["d","e","E"],function(e,t,n,r){t[r]=f(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,nt=v;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],s=[],o=[],a=[],l=0;l<7;l++)r=u([2e3,1]).day(l),t=_(this.weekdaysMin(r,"")),n=_(this.weekdaysShort(r,"")),r=_(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 it(){return this.hours()%12||12}function st(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),n("hour",13),w("a",ot),w("A",ot),w("H",b),w("h",b),w("k",b),w("HH",b,y),w("hh",b,y),w("kk",b,y),w("hmm",be),w("hmmss",ve),w("Hmm",be),w("Hmmss",ve),T(["H","HH"],M),T(["k","kk"],function(e,t,n){e=f(e);t[M]=24===e?0:e}),T(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),T(["h","hh"],function(e,t,n){t[M]=f(e),g(n).bigHour=!0}),T("hmm",function(e,t,n){var r=e.length-2;t[M]=f(e.substr(0,r)),t[P]=f(e.substr(r)),g(n).bigHour=!0}),T("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[M]=f(e.substr(0,r)),t[P]=f(e.substr(r,2)),t[D]=f(e.substr(i)),g(n).bigHour=!0}),T("Hmm",function(e,t,n){var r=e.length-2;t[M]=f(e.substr(0,r)),t[P]=f(e.substr(r))}),T("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[M]=f(e.substr(0,r)),t[P]=f(e.substr(r,2)),t[D]=f(e.substr(i))});v=de("Hours",!0);var at,lt={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:Ne,monthsShort:He,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},C={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=ct(e[s]).split("-")).length,n=(n=ct(e[s+1]))?n.split("-"):null;0<t;){if(r=dt(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 at}function dt(t){var e;if(void 0===C[t]&&On&&On.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,Cn(),ft(e)}catch(e){C[t]=null}return C[t]}function ft(e,t){return e&&((t=a(t)?O(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete C[e],null;var n,r=lt;if(t.abbr=e,null!=C[e])q("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=C[e]._config;else if(null!=t.parentLocale)if(null!=C[t.parentLocale])r=C[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return C[e]=new ee(Q(r,t)),ut[e]&&ut[e].forEach(function(e){mt(e.name,e.config)}),ft(e),C[e]}function O(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!o(e)){if(t=dt(e))return t;e=[e]}return ht(e)}function pt(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[x]<0||11<t[x]?x:t[k]<1||t[k]>Be(t[E],t[x])?k:t[M]<0||24<t[M]||24===t[M]&&(0!==t[P]||0!==t[D]||0!==t[Ce])?M:t[P]<0||59<t[P]?P:t[D]<0||59<t[D]?D:t[Ce]<0||999<t[Ce]?Ce:-1,g(e)._overflowDayOfYear&&(t<E||k<t)&&(t=k),g(e)._overflowWeeks&&-1===t&&(t=Oe),g(e)._overflowWeekday&&-1===t&&(t=$e),g(e).overflow=t),e}var gt=/^\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)?)?$/,yt=/^\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)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["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]],wt=[["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/]],_t=/^\/?Date\((-?\d+)/i,Tt=/^(?:(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}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,r,i,s,o,a=e._i,l=gt.exec(a)||yt.exec(a),a=vt.length,u=wt.length;if(l){for(g(e).iso=!0,t=0,n=a;t<n;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=u;t<n;t++)if(wt[t][1].exec(l[3])){s=(l[2]||" ")+wt[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!bt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),Dt(e)}else e._isValid=!1}function xt(e,t,n,r,i,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),He.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&e.push(parseInt(s,10)),e}function kt(e){var t,n,r,i,s=Tt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=xt(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[1],r=t,i=e,n&&qe.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(g(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=s[8],r=s[9],i=s[10],n?St[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Mt(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,r,i,s,o,a,l,u,c,h,d=[];if(!e._d){for(c=e,h=new Date(m.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[k]&&null==e._a[x]&&(null!=(h=(c=e)._w).GG||null!=h.W||null!=h.E?(o=1,a=4,r=Mt(h.GG,c._a[E],Ze($(),1,4).year),i=Mt(h.W,1),((s=Mt(h.E,1))<1||7<s)&&(l=!0)):(o=c._locale._week.dow,a=c._locale._week.doy,u=Ze($(),o,a),r=Mt(h.gg,c._a[E],u.year),i=Mt(h.w,u.week),null!=h.d?((s=h.d)<0||6<s)&&(l=!0):null!=h.e?(s=h.e+o,(h.e<0||6<h.e)&&(l=!0)):s=o),i<1||i>A(r,o,a)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=Je(r,i,s,o,a),c._a[E]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(h=Mt(e._a[E],n[E]),(e._dayOfYear>ze(h)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=We(h,0,e._dayOfYear),e._a[x]=l.getUTCMonth(),e._a[k]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[M]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?We:Ge).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[M]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,n,r,i=""+e._i,s=i.length,o=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Me(r,e))||[])[0])&&(0<(h=i.substr(0,i.indexOf(t))).length&&g(e).unusedInput.push(h),i=i.slice(i.indexOf(t)+t.length),o+=t.length),se[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),h=r,f=e,null!=(d=t)&&p(De,h)&&De[h](d,f._a,f,h)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=s-o,0<i.length&&g(e).unusedInput.push(i),e._a[M]<=12&&!0===g(e).bigHour&&0<e._a[M]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[M]=(s=e._locale,u=e._a[M],null==(c=e._meridiem)?u:null!=s.meridiemHour?s.meridiemHour(u,c):null!=s.isPM?((s=s.isPM(c))&&u<12&&(u+=12),u=s||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[E]=e._locale.erasConvertYear(c,e._a[E])),Pt(e),pt(e)}else kt(e);else Et(e);var u,c,h,d,f}function At(e){var t,n=e._i,r=e._f;{var i,s;return(e._locale=e._locale||O(e._l),null===n||void 0===r&&""===n)?j({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new Z(pt(n)):(I(n)?e._d=n:o(r)?function(e){var t,n,r,i,s,o,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)s=0,o=!1,t=J({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Dt(t),z(t)&&(o=!0),s=(s+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o)&&(a=!0);Y(e,n||t)}(e):r?Dt(e):a(r=(n=e)._i)?n._d=new Date(m.now()):I(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(s=_t.exec(i._i))?(Et(i),!1===i._isValid&&(delete i._isValid,kt(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i))):i._d=new Date(+s[1])):o(r)?(n._a=U(r.slice(0),function(e){return parseInt(e,10)}),Pt(n)):R(r)?(i=n)._d||(t=void 0===(s=ue(i._i)).day?s.date:s.day,i._a=U([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):L(r)?n._d=new Date(r):m.createFromInputFallback(n),z(e)||(e._d=null),e))}}function Ct(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),(R(e)&&F(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,(i=new Z(pt(At(i=s))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function $(e,t,n,r){return Ct(e,t,n,r,!1)}m.createFromInputFallback=e("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(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=$.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=$.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:j()});function Ot(e,t){var n,r;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return $();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 Bt(e){var e=ue(e),t=e.year||0,n=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,a=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=$t.length;for(t in e)if(p(e,t)&&(-1===S.call($t,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[$t[n]]){if(r)return!1;parseFloat(e[$t[n]])!==f(e[$t[n]])&&(r=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*a+1e3*o*60*60,this._days=+s+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=O(),this._bubble()}function Nt(e){return e instanceof Bt}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+n+s(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),w("Z",ke),w("ZZ",ke),T(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Lt(ke,e)});var Ft=/([\+\-]|\d\d)/gi;function Lt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ft)||["-",0,0])[1]+f(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||I(e)?e:$(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),m.updateOffset(t,!1),t):$(e).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}function Yt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B(e,t){var n,r,i=e;return Nt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:L(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=zt.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:f(t[k])*n,h:f(t[M])*n,m:f(t[P])*n,s:f(t[D])*n,ms:f(Ht(1e3*t[Ce]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,i={y:Gt(t[2],n),M:Gt(t[3],n),w:Gt(t[4],n),d:Gt(t[5],n),h:Gt(t[6],n),m:Gt(t[7],n),s:Gt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=$(i.from),n=$(i.to),t=t.isValid()&&n.isValid()?(n=It(n,t),t.isBefore(n)?r=Wt(t,n):((r=Wt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),r=new Bt(i),Nt(e)&&p(e,"_locale")&&(r._locale=e._locale),Nt(e)&&p(e,"_isValid")&&(r._isValid=e._isValid),r}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(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 Vt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(q(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),Jt(this,B(e,t),r),this}}function Jt(e,t,n,r){var i=t._milliseconds,s=Ht(t._days),t=Ht(t._months);e.isValid()&&(r=null==r||r,t&&Ie(e,fe(e,"Month")+t*n),s&&me(e,"Date",fe(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r)&&m.updateOffset(e,s||t)}B.fn=Bt.prototype,B.invalid=function(){return B(NaN)};Ne=Vt(1,"add"),Ke=Vt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||I(e)||Zt(e)||L(e)||(n=o(t=e),r=!1,n&&(r=0===t.filter(function(e){return!L(e)&&Zt(t)}).length),n&&r)||function(e){var t,n,r=R(e)&&!F(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"],o=s.length;for(t=0;t<o;t+=1)n=s[t],i=i||p(e,n);return r&&i}(e)||null==e;var t,n,r}function Kt(e,t){var n,r;return e.date()<t.date()?-Kt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=O(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("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 Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function sn(e,t){return t.erasAbbrRegex(e)}function on(){for(var e=[],t=[],n=[],r=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(_(i[s].name)),e.push(_(i[s].abbr)),n.push(_(i[s].narrow)),r.push(_(i[s].name)),r.push(_(i[s].abbr)),r.push(_(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 an(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var s;return null==e?Ze(this,r,i).year:(t>(s=A(e,r,i))&&(t=s),function(e,t,n,r,i){e=Je(e,t,n,r,i),t=We(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),w("N",sn),w("NN",sn),w("NNN",sn),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),T(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?g(n).era=r:g(n).invalidEra=e}),w("y",Se),w("yy",Se),w("yyy",Se),w("yyyy",Se),w("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),T(["y","yy","yyy","yyyy"],E),T(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[E]=n._locale.eraYearOrdinalParse(e,i):t[E]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",Ee),w("g",Ee),w("GG",b,y),w("gg",b,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",Te,ye),w("ggggg",Te,ye),Ae(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=f(e)}),Ae(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),w("Q",i),T("Q",function(e,t){t[x]=3*(f(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),w("D",b),w("DD",b,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),T(["D","DD"],k),T("Do",function(e,t){t[k]=f(e.match(b)[0])});_e=de("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",we),w("DDDD",pe),T(["DDD","DDDD"],function(e,t,n){n._dayOfYear=f(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),w("m",b),w("mm",b,y),T(["m","mm"],P);ge=de("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),w("s",b),w("ss",b,y),T(["s","ss"],D);var un,Te=de("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()}),t("millisecond","ms"),n("millisecond",16),w("S",we,i),w("SS",we,y),w("SSS",we,pe),un="SSSS";un.length<=9;un+="S")w(un,Se);function cn(e,t){t[Ce]=f(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")T(un,cn);ye=de("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");i=Z.prototype;function hn(e){return e}i.add=Ne,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!F(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||p(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||$(),n=It(e,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,$(e)))},i.clone=function(){return new Z(this)},i.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=h(t)){case"year":s=Kt(this,r)/12;break;case"month":s=Kt(this,r);break;case"quarter":s=Kt(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:d(s)},i.endOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,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-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=oe(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?B({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from($(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?B({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to($(),e)},i.get=function(e){return c(this[e=h(e)])?this[e]():this},i.invalidAt=function(){return g(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,r){return e=l(e)?e:$(e),t=l(t)?t:$(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))},i.isSame=function(e,t){var e=l(e)?e:$(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return z(this)},i.lang=Qe,i.locale=qt,i.localeData=Qt,i.max=ve,i.min=be,i.parsingFlags=function(){return Y({},g(this))},i.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ue(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(c(this[e=h(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,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-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.subtract=Ke,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.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()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?oe(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):c(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.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""},i.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""},i.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""},i.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()},i.year=je,i.isLeapYear=function(){return he(this.year())},i.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=Ue,i.daysInMonth=function(){return Be(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return A(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return A(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return A(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return A(this.isoWeekYear(),1,4)},i.date=_e,i.day=i.days=function(e){var t,n,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},i.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")},i.hour=i.hours=v,i.minute=i.minutes=ge,i.second=i.seconds=Te,i.millisecond=i.milliseconds=ye,i.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:Ut(this);if("string"==typeof e){if(null===(e=Lt(ke,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ut(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Jt(this,B(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Ut(this),"m"),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Lt(xe,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?$(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=Yt,i.isUTC=Yt,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",_e),i.months=e("months accessor is deprecated. Use month instead",Ue),i.years=e("years accessor is deprecated. Use year instead",je),i.zone=e("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()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(J(t={},this),(t=At(t))._a?(e=(t._isUTC?u:$)(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&&f(e[o])!==f(t[o]))&&s++;return s+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function dn(e,t,n,r){var i=O(),r=u().set(r,t);return i[n](r,e)}function fn(e,t,n){if(L(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=dn(e,i,n,"month");return r}function mn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),L(t)&&(n=t,t=void 0),t||"");var i,s=O(),o=e?s._week.dow:0,a=[];if(null!=n)return dn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=dn(t,(i+o)%7,r,"day");return a}y.calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=hn,y.postformat=hn,y.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return c(i)?i(e,t,n,r):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)p(e,n)&&(c(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)},y.eras=function(e,t){for(var n,r=this._eras||O("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},y.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]},y.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},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Re.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.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=u([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))||-1!==(i=S.call(this._longMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))||-1!==(i=S.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=u([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}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.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?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.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=u([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=S.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.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=u([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}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ft("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===f(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",O);var pn=Math.abs;function gn(e,t,n,r){t=B(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}we=wn("ms"),pe=wn("s"),Ne=wn("m"),ve=wn("h"),be=wn("d"),Ke=wn("w"),v=wn("M"),ge=wn("Q"),Te=wn("y");function _n(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=_n("milliseconds"),_e=_n("seconds"),je=_n("minutes"),y=_n("hours"),Tn=_n("days"),Sn=_n("months"),En=_n("years");var xn=Math.round,kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mn(e,t,n,r){var i=B(e).abs(),s=xn(i.as("s")),o=xn(i.as("m")),a=xn(i.as("h")),l=xn(i.as("d")),u=xn(i.as("M")),c=xn(i.as("w")),i=xn(i.as("y")),s=(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(s=(s=null!=n.w?s||(c<=1?["w"]:c<n.w&&["ww",c]):s)||(u<=1?["M"]:u<n.M&&["MM",u])||(i<=1?["y"]:["yy",i]))[2]=t,s[3]=0<+e,s[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,s)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function An(){var e,t,n,r,i,s,o,a,l,u,c;return this.isValid()?(a=Pn(this._milliseconds)/1e3,l=Pn(this._days),u=Pn(this._months),(c=this.asSeconds())?(e=d(a/60),t=d(e/60),a%=60,e%=60,n=d(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":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"):this.localeData().invalidDate()}var N=Bt.prototype;return N.isValid=function(){return this._isValid},N.abs=function(){var e=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),e.milliseconds=pn(e.milliseconds),e.seconds=pn(e.seconds),e.minutes=pn(e.minutes),e.hours=pn(e.hours),e.months=pn(e.months),e.years=pn(e.years),this},N.add=function(e,t){return gn(this,e,t,1)},N.subtract=function(e,t){return gn(this,e,t,-1)},N.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=h(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(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)}},N.asMilliseconds=we,N.asSeconds=pe,N.asMinutes=Ne,N.asHours=ve,N.asDays=be,N.asWeeks=Ke,N.asMonths=v,N.asQuarters=ge,N.asYears=Te,N.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN},N._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*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=d(e/1e3),r.seconds=e%60,e=d(e/60),r.minutes=e%60,e=d(e/60),r.hours=e%24,t+=d(e/24),n+=e=d(bn(t)),t-=yn(vn(e)),e=d(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},N.clone=function(){return B(this)},N.get=function(e){return e=h(e),this.isValid()?this[e+"s"]():NaN},N.milliseconds=ye,N.seconds=_e,N.minutes=je,N.hours=y,N.days=Tn,N.weeks=function(){return d(this.days()/7)},N.months=Sn,N.years=En,N.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=kn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},kn,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Mn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},N.toISOString=An,N.toString=An,N.toJSON=An,N.locale=qt,N.localeData=Qt,N.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",An),N.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),w("x",Ee),w("X",/[+-]?\d+(\.\d{1,3})?/),T("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),T("x",function(e,t,n){n._d=new Date(f(e))}),m.version="2.29.4",H=$,m.fn=i,m.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},m.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=u,m.unix=function(e){return $(1e3*e)},m.months=function(e,t){return fn(e,t,"months")},m.isDate=I,m.locale=ft,m.invalid=j,m.duration=B,m.isMoment=l,m.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},m.parseZone=function(){return $.apply(null,arguments).parseZone()},m.localeData=O,m.isDuration=Nt,m.monthsShort=function(e,t){return fn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=C[e]&&null!=C[e].parentLocale?C[e].set(Q(C[e]._config,t)):(t=Q(r=null!=(n=dt(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=C[e],C[e]=r),ft(e)):null!=C[e]&&(null!=C[e].parentLocale?(C[e]=C[e].parentLocale,e===ft()&&ft(e)):null!=C[e]&&delete C[e]),C[e]},m.locales=function(){return te(C)},m.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},m.normalizeUnits=h,m.relativeTimeRounding=function(e){return void 0===e?xn:"function"==typeof e&&(xn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==kn[e]&&(void 0===t?kn[e]:(kn[e]=t,"s"===e&&(kn.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=i,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}();var le,On,ue=le.exports;const ce=[];function he(r,i=v){let s;const o=new Set;function a(e){if(n(r,e)&&(r=e,s)){const e=!ce.length;for(const e of o)e[1](),ce.push(e,r);if(e){for(let e=0;e<ce.length;e+=2)ce[e][0](ce[e+1]);ce.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=v){const n=[e,t];return o.add(n),1===o.size&&(s=i(a)||v),e(r),()=>{o.delete(n),0===o.size&&s&&(s(),s=null)}}}}function de(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:he(t,t=>{let n=!1;const r=[];let i=0,s=v;const o=()=>{var e;i||(s(),e=a(l?r[0]:r,t),c?t(e):s=d(e)?e:v)},e=u.map((e,t)=>I(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){P(e),s(),n=!1}}).subscribe}}function fe(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===me);var t}var me="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function pe(e,t){return!1!==t.clone&&t.isMergeableObject(e)?we(Array.isArray(e)?[]:{},e,t):e}function ge(e,t,n){return e.concat(t).map(function(e){return pe(e,n)})}function ye(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function be(e,t){try{return t in e}catch(e){return!1}}function ve(r,i,s){var o={};return s.isMergeableObject(r)&&ye(r).forEach(function(e){o[e]=pe(r[e],s)}),ye(i).forEach(function(e){var t,n;(!be(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(be(r,e)&&s.isMergeableObject(i[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:we)(r[e],i[e],s):o[e]=pe(i[e],s))}),o}function we(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ge,n.isMergeableObject=n.isMergeableObject||fe,n.cloneUnlessOtherwiseSpecified=pe;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):ve(e,t,n):pe(t,n)}we.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return we(e,t,n)},{});throw new Error("first argument should be an array")};var _e=we,Te=function(e,t){return(Te=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 Se(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}Te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p,b,Ee,g=function(){return(g=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 xe(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function ke(e){return e.type===b.literal}function Me(e){return e.type===b.number}function Pe(e){return e.type===b.date}function De(e){return e.type===b.time}function Ae(e){return e.type===b.select}function Ce(e){return e.type===b.plural}function Oe(e){return e.type===b.tag}function $e(e){return e&&"object"==typeof e&&e.type===Ee.number}function Be(e){return e&&"object"==typeof e&&e.type===Ee.dateTime}(e=p=p||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=b=b||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Ee=Ee||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ne=/(?:[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 He=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Re=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Fe=/^(@+)?(\+|#+)?[rs]?$/g,Le=/(\*)(0+)|(#+)(0+)|(0+)/g,Ie=/^(0+)$/;function Ue(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Fe,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 Ye(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 ze(e){return Ye(e)||{}}function je(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=g(g(g({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return g(g({},e),ze(t))},{}));continue;case"engineering":o=g(g(g({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return g(g({},e),ze(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(Le,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(Ie.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Re.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Re,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),""});var s=i.options[0];"w"===s?o=g(g({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=g(g({},o),Ue(s)))}else Fe.test(i.stem)?o=g(g({},o),Ue(i.stem)):((s=Ye(i.stem))&&(o=g(g({},o),s)),(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)),!Ie.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=g(g({},o),r)))}return o}var Ge={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var We=new RegExp("^".concat(e.source,"*")),Ve=new RegExp("".concat(e.source,"*$"));function w(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,Je=!!String.fromCodePoint,Ze=!!Object.fromEntries,Xe=!!String.prototype.codePointAt,Ke=!!String.prototype.trimStart,qe=!!String.prototype.trimEnd,Qe=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},et=!0;try{et="a"===(null==(_t=ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:_t[0])}catch(v){et=!1}var tt,nt,rt=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},it=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},st=Ze?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},ot=Xe?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},at=Ke?function(e){return e.trimStart()}:function(e){return e.replace(We,"")},lt=qe?function(e){return e.trimEnd()}:function(e){return e.replace(Ve,"")};function ut(e,t){return new RegExp(e,t)}nt=et?(tt=ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return tt.lastIndex=t,null!=(t=tt.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=ot(e,t);if(void 0===i||dt(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 it.apply(void 0,r)};r.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.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(p.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&ht(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}else{s=this.clonePosition();this.bump(),r.push({type:b.pound,location:w(s,this.clonePosition())})}}}return{val:r,err:null}},r.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:w(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!ht(this.char())?this.error(p.INVALID_TAG,w(e,this.clonePosition())):(n=this.clonePosition(),i!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,w(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:w(r,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,w(e,this.clonePosition())))):this.error(p.UNCLOSED_TAG,w(r,this.clonePosition()))):this.error(p.INVALID_TAG,w(r,this.clonePosition()))},r.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())},r.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=w(n,this.clonePosition());return{val:{type:b.literal,value:r,location:n},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ht(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},r.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 it.apply(void 0,t)},r.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),it(n))},r.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,w(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(p.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(p.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=nt(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:w(e,this.clonePosition())}},r.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(p.EXPECT_ARGUMENT_TYPE,w(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=lt(h.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:w(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(r)).err?u:(f=w(r,this.clonePosition()),l&&rt(null==l?void 0:l.style,"::",0)?(m=at(l.style.slice(2)),"number"===o?(h=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:f,style:h.val},err:null}:0===m.length?this.error(p.EXPECT_DATE_TIME_SKELETON,f):(c=m,this.locale&&(c=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Ge[t||""]||Ge[n||""]||Ge["".concat(n,"-001")]||Ge["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<o--;)n=l+n}else n+="J"===i?"H":i}return n}(m,this.locale)),d={type:Ee.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Ne,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):{}},{val:{type:"date"===o?b.date:b.time,value:n,location:f,style:d},err:null})):{val:{type:"number"===o?b.number:"date"===o?b.date:b.time,value:n,location:f,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,w(c,g({},c)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),f=0;if("select"!==o&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),f=h.val}var m,l=this.tryParsePluralOrSelectOptions(e,o,t,d);return l.err?l:(u=this.tryParseArgumentClose(r)).err?u:(m=w(r,this.clonePosition()),"select"===o?{val:{type:b.select,value:n,options:st(l.val),location:m},err:null}:{val:{type:b.plural,value:n,options:st(l.val),offset:f,pluralType:"plural"===o?"cardinal":"ordinal",location:m},err:null});default:return this.error(p.INVALID_ARGUMENT_TYPE,w(s,a))}},r.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.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(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(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}},r.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(He).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(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ee.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?je(n):{}},err:null}},r.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(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=w(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,n);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;s.push([a,{value:u.val,location:w(c,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===s.length?this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(p.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:s,err:null}},r.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=w(r,this.clonePosition());return i?Qe(s*=n)?{val:s,err:null}:this.error(t,r):this.error(e,r)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ot(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},r.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},r.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))},r.prototype.bumpIf=function(e){if(rt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&dt(this.char());)this.bump()},r.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var ct=r;function r(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function ht(e){return 97<=e&&e<=122||65<=e&&e<=90}function dt(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function ft(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new ct(e,t).parse();if(e.err)throw(n=SyntaxError(p[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Ae(e)||Ce(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Me(e)&&$e(e.style)||(Pe(e)||De(e))&&Be(e.style)?delete e.style.location:Oe(e)&&n(e.children)})}(e.val),e.val}function mt(e,t){var n=t&&t.cache?t.cache:Tt,r=t&&t.serializer?t.serializer:bt;return(t&&t.strategy?t.strategy:function(e,t){return yt(e,this,1===e.length?pt:gt,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function pt(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function gt(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function yt(e,t,n,r,i){return n.bind(t,e,r,i)}var bt=function(){return JSON.stringify(arguments)};function vt(){this.cache=Object.create(null)}vt.prototype.get=function(e){return this.cache[e]},vt.prototype.set=function(e,t){this.cache[e]=t};var wt,_t,Tt={create:function(){return new vt}},St={variadic:function(e,t){return yt(e,this,gt,t.cache.create(),t.serializer)},monadic:function(e,t){return yt(e,this,pt,t.cache.create(),t.serializer)}};(_t=wt=wt||{}).MISSING_VALUE="MISSING_VALUE",_t.INVALID_VALUE="INVALID_VALUE",_t.MISSING_INTL_API="MISSING_INTL_API";Se(Nt,Mt=Error),Nt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var _,Et,xt,kt,Mt,Pt=Nt,Dt=(Se(Bt,kt=Pt),Bt),At=(Se($t,xt=Pt),$t),Ct=(Se(Ot,Et=Pt),Ot);function Ot(e,t){return Et.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),wt.MISSING_VALUE,t)||this}function $t(e,t,n){return xt.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),wt.INVALID_VALUE,n)||this}function Bt(e,t,n,r){return kt.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),wt.INVALID_VALUE,r)||this}function Nt(e,t,n){e=Mt.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Ht(e,t,n,r,i,s,o){if(1===e.length&&ke(e[0]))return[{type:_.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(ke(c))a.push({type:_.literal,value:c.value});else if(c.type===b.pound)"number"==typeof s&&a.push({type:_.literal,value:n.getNumberFormat(t).format(s)});else{var h=c.value;if(!(i&&h in i))throw new Ct(h,o);h=i[h];if(c.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?_.literal:_.object,value:h});else if(Pe(c)){var d="string"==typeof c.style?r.date[c.style]:Be(c.style)?c.style.parsedOptions:void 0;a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(De(c))d="string"==typeof c.style?r.time[c.style]:Be(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(Me(c))(d="string"==typeof c.style?r.number[c.style]:$e(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:_.literal,value:n.getNumberFormat(t,d).format(h)});else{if(Oe(c)){var f=c.children,m=c.value,p=i[m];if("function"!=typeof p)throw new At(m,"function",o);m=p(Ht(f,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?_.literal:_.object,value:e}}))}if(Ae(c)){if(!(g=c.options[h]||c.options.other))throw new Dt(c.value,h,Object.keys(c.options),o);a.push.apply(a,Ht(g.value,t,n,r,i))}else if(Ce(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Pt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',wt.MISSING_INTL_API,o);var p=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[p]||c.options.other}if(!g)throw new Dt(c.value,h,Object.keys(c.options),o);a.push.apply(a,Ht(g.value,t,n,r,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===_.literal&&t.type===_.literal?n.value+=t.value:e.push(t),e},[])}function Rt(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=_=_||{})[e.literal=0]="literal",e[e.object=1]="object";Object.defineProperty(a,"defaultLocale",{get:function(){return a.memoizedDefaultLocale||(a.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),a.memoizedDefaultLocale},enumerable:!1,configurable:!0}),a.memoizedDefaultLocale=null,a.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},a.__parse=ft,a.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Ft=a;function a(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=a.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===_.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Ht(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=a.resolveLocale(t),"string"==typeof e){if(this.message=e,!a.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=a.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=a.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[t])?g(g(g({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=g(g({},n[t]),r[t]||{}),e},{})):n),e},g({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:mt(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,xe([void 0],t,!1)))},{cache:Rt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:St.variadic}),getDateTimeFormat:mt(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,xe([void 0],t,!1)))},{cache:Rt(t.dateTime),strategy:St.variadic}),getPluralRules:mt(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,xe([void 0],t,!1)))},{cache:Rt(t.pluralRules),strategy:St.variadic})}}const s={},Lt=(e,t,n)=>n&&(t in s||(s[t]={}),e in s[t]||(s[t][e]=n),n),It=(t,n)=>{if(null!=n){if(n in s&&t in s[n])return s[n][t];var r=an(n);for(let e=0;e<r.length;e++){var i=function(e,t){if(!zt(e))return null;e=function(e){return Ut[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(i)return Lt(t,n,i)}}};let Ut;const Yt=he({});function zt(e){return e in Ut}function jt(t,...n){delete s[t],Yt.update(e=>(e[t]=_e.all([e[t]||{},...n]),e))}de([Yt],([e])=>Object.keys(e)),Yt.subscribe(e=>Ut=e);const Gt={};function Wt(e){return Gt[e]}function Vt(e){return null!=e&&an(e).some(e=>{return null==(e=Wt(e))?void 0:e.size})}function Jt(r,e){return Promise.all(e.map(e=>{return t=r,n=e,Gt[t].delete(n),0===Gt[t].size&&delete Gt[t],e().then(e=>e.default||e);var t,n})).then(e=>jt(r,...e))}const Zt={};const Xt={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Kt=he(!1);var qt=Object.defineProperty,Je=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,nn=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let rn;const sn=he(null);function on(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function an(e,t=Xt.fallbackLocale){e=on(e);return t?[...new Set([...e,...on(t)])]:e}function ln(){return null!=rn?rn:void 0}sn.subscribe(e=>{rn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const se=Je(((e,t)=>{for(var n in t=t||{})en.call(t,n)&&nn(e,n,t[n]);if(Qt)for(var n of Qt(t))tn.call(t,n)&&nn(e,n,t[n]);return e})({},sn),Ze({set:t=>{if(t&&function(e){if(null!=e){var t=an(e);for(let e=0;e<t.length;e++){var n=t[e];if(zt(n))return n}}}(t)&&Vt(t)){var n=Xt["loadingDelay"];let e;return"undefined"!=typeof window&&null!=ln()&&n?e=window.setTimeout(()=>Kt.set(!0),n):Kt.set(!0),function e(t){var n;return Vt(t)?(n=an(t).map(e=>{var t=Wt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Zt[t]=Promise.all(n.map(([e,t])=>Jt(e,t))).then(()=>{if(Vt(t))return e(t);delete Zt[t]}),Zt[t]):t in Zt?Zt[t]:Promise.resolve()}(t).then(()=>{sn.set(t)}).finally(()=>{clearTimeout(e),Kt.set(!1)})}return sn.set(t)}}));var Xe=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},un=Object.defineProperty,cn=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,fn=(e,t,n)=>t in e?un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mn=(e,t)=>{for(var n in t=t||{})hn.call(t,n)&&fn(e,n,t[n]);if(cn)for(var n of cn(t))dn.call(t,n)&&fn(e,n,t[n]);return e},pn=(e,t)=>{var n={};for(r in e)hn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&cn)for(var r of cn(e))t.indexOf(r)<0&&dn.call(e,r)&&(n[r]=e[r]);return n};const gn=(e,t)=>{var n=Xt["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},yn=Xe(e=>{var{locale:t,format:n}=e,e=pn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=gn("number",n)),new Intl.NumberFormat(t,e)}),bn=Xe(e=>{var{locale:t,format:n}=e,e=pn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=gn("date",n):0===Object.keys(e).length&&(e=gn("date","short")),new Intl.DateTimeFormat(t,e)}),vn=Xe(e=>{var{locale:t,format:n}=e,e=pn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=gn("time",n):0===Object.keys(e).length&&(e=gn("time","short")),new Intl.DateTimeFormat(t,e)}),wn=Xe((e,t=ln())=>new Ft(e,t,Xt.formats,{ignoreTag:Xt.ignoreTag})),_n=de([se,Yt],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:s,locale:o=ln(),default:a}=i;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=It(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=Xt).handleMissingMessage)?void 0:n.call(r,{locale:o,id:e,defaultValue:a}))?n:a)?r:e;if(!s)return l;let u=l;try{u=wn(l,o).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u});function Tn(e,t){jt(e,t)}de([se],()=>(e,t)=>((e={})=>{var{locale:t=ln()}=e,e=pn(e,["locale"]);return vn(mn({locale:t},e))})(t).format(e)),de([se],()=>(e,t)=>((e={})=>{var{locale:t=ln()}=e,e=pn(e,["locale"]);return bn(mn({locale:t},e))})(t).format(e)),de([se],()=>(e,t)=>((e={})=>{var{locale:t=ln()}=e,e=pn(e,["locale"]);return yn(mn({locale:t},e))})(t).format(e)),de([se,Yt],()=>(e,t=ln())=>It(e,t));const Sn={en:{tournamentsList:{nothing:"Nothing to show here."}},hr:{tournamentsList:{nothing:"Nema ničega za prikazati ovdje."}},"zh-hk":{tournamentsList:{nothing:"這裡沒有什麼可顯示的。"}},fr:{tournamentsList:{nothing:"Rien à montrer ici."}},ro:{tournamentsList:{nothing:"Niciun turneu disponibil aici."}},tr:{tournamentsList:{nothing:"Gösterilecek."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí."}},hu:{tournamentsList:{nothing:"Nincs megjelenítendő adat."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}};var En,xn,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},kn="URLSearchParams"in l,Mn="Symbol"in l&&"iterator"in Symbol,Pn="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),Dn="FormData"in l,An="ArrayBuffer"in l;function $n(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 Bn(e){return e="string"!=typeof e?String(e):e}function Nn(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Mn&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Hn(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Rn(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Fn(e){var t=new FileReader,n=Rn(t);return t.readAsArrayBuffer(e),n}function Ln(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function In(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Pn&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Dn&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:kn&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():An&&Pn&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ln(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):An&&(ArrayBuffer.prototype.isPrototypeOf(e)||xn(e))?this._bodyArrayBuffer=Ln(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):kn&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Pn&&(this.blob=function(){var e=Hn(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(){if(this._bodyArrayBuffer)return Hn(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(Pn)return this.blob().then(Fn);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=Hn(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=Rn(e=new FileReader),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;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)},Dn&&(this.formData=function(){return this.text().then(zn)}),this.json=function(){return this.text().then(JSON.parse)},this}An&&(En=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],xn=ArrayBuffer.isView||function(e){return e&&-1<En.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=$n(e),t=Bn(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[$n(e)]},u.prototype.get=function(e){return e=$n(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty($n(e))},u.prototype.set=function(e,t){this.map[$n(e)]=Bn(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Nn(n)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Nn(t)},u.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Nn(n)},Mn&&(u.prototype[Symbol.iterator]=u.prototype.entries);var Un=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Yn(e,t){if(!(this instanceof Yn))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 Yn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(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 u(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<Un.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).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||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function zn(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}Yn.prototype.clone=function(){return new Yn(this,{body:this._bodyInit})},In.call(Yn.prototype),In.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var jn=[301,302,303,307,308],Gn=(c.redirect=function(e,t){if(-1===jn.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},l.DOMException);try{new Gn}catch(v){(Gn=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Gn.prototype.constructor=Gn}function Wn(r,a){return new Promise(function(i,e){var s=new Yn(r,a);if(s.signal&&s.signal.aborted)return e(new Gn("Aborted","AbortError"));var n,o=new XMLHttpRequest;function t(){o.abort()}o.onload=function(){var e,r,t={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new u,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(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(s.url.startsWith("file://")&&(o.status<200||599<o.status)?t.status=200:t.status=o.status,t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new c(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){e(new Gn("Aborted","AbortError"))},0)},o.open(s.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?o.withCredentials=!0:"omit"===s.credentials&&(o.withCredentials=!1),"responseType"in o&&(Pn?o.responseType="blob":An&&(o.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof u||l.Headers&&a.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push($n(e)),o.setRequestHeader(e,Bn(a.headers[e]))}),s.headers.forEach(function(e,t){-1===n.indexOf(t)&&o.setRequestHeader(t,e)})):s.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",t),o.onreadystatechange=function(){4===o.readyState&&s.signal.removeEventListener("abort",t)}),o.send(void 0===s._bodyInit?null:s._bodyInit)})}Wn.polyfill=!0,l.fetch||(l.fetch=Wn,l.Headers=u,l.Request=Yn,l.Response=c),self.fetch.bind(self);var Vn=function(e,t){return(Vn=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 Jn(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}Vn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Zn(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 Xn(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 Kn(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function qn(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 Qn=qn(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 er(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}i.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=Zn(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(h(s))try{s()}catch(e){i=e instanceof Qn?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=Zn(s),u=l.next();!u.done;u=l.next()){var c=u.value;try{ir(c)}catch(e){i=null!=i?i:[],e instanceof Qn?i=Kn(Kn([],Xn(i)),Xn(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 Qn(i)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ir(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&er(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&er(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=((Ke=new i).closed=!0,Ke);var tr=i,nr=tr.EMPTY;function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function rr(e){return e instanceof tr||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function ir(e){h(e)?e():e.unsubscribe()}var sr=void 0,or=!1,ar=!1,lr={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=lr.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Kn([e,t],Xn(n))):setTimeout.apply(void 0,Kn([e,t],Xn(n)))},clearTimeout:function(e){var t=lr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ur(){}var cr=null;function hr(e){if(or){var t=!cr;if(t&&(cr={errorThrown:!1,error:null}),e(),t){var t=cr,n=t.errorThrown,t=t.error;if(cr=null,n)throw t}}else e()}Jn(o,dr=tr),o.create=function(e,t,n){return new br(e,t,n)},o.prototype.next=function(e){this.isStopped||this._next(e)},o.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},o.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,dr.prototype.unsubscribe.call(this),this.destination=null)},o.prototype._next=function(e){this.destination.next(e)},o.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},o.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var dr,fr=o,mr=Function.prototype.bind;function o(e){var t=dr.call(this)||this;return t.isStopped=!1,e?rr(t.destination=e)&&e.add(t):t.destination=Tr,t}function pr(e,t){return mr.call(e,t)}wr.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){_r(e)}},wr.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){_r(e)}else _r(e)},wr.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){_r(e)}};var gr,yr=wr,br=(Jn(vr,gr=fr),vr);function vr(e,t,n){var r=gr.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&ar?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&pr(e.next,t),error:e.error&&pr(e.error,t),complete:e.complete&&pr(e.complete,t)}):e;return r.destination=new yr(n),r}function wr(e){this.partialObserver=e}function _r(e){var t=e;lr.setTimeout(function(){throw t})}var Tr={closed:!0,next:ur,error:function(e){throw e},complete:ur},qe="function"==typeof Symbol&&Symbol.observable||"@@observable";m.prototype.lift=function(e){var t=new m;return t.source=this,t.operator=e,t},m.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof fr||r&&h(r.next)&&h(r.error)&&h(r.complete)&&rr(r)?e:new br(e,t,n);return hr(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},m.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},m.prototype.forEach=function(r,e){var i=this;return new(e=Er(e))(function(e,t){var n=new br({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},m.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},m.prototype[qe]=function(){return this},m.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},m.prototype.toPromise=function(e){var r=this;return new(e=Er(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},m.create=function(e){return new m(e)};var Sr=m;function m(e){e&&(this._subscribe=e)}function Er(e){return null!=(e=null!=e?e:sr)?e:Promise}var xr,kr,Mr,Pr=qn(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),et=(Jn(T,Mr=Sr),T.prototype.lift=function(e){var t=new Dr(this,this);return t.operator=e,t},T.prototype._throwIfClosed=function(){if(this.closed)throw new Pr},T.prototype.next=function(i){var s=this;hr(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var n=Zn(s.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},T.prototype.error=function(t){var n=this;hr(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)}})},T.prototype.complete=function(){var t=this;hr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},T.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(T.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),T.prototype._trySubscribe=function(e){return this._throwIfClosed(),Mr.prototype._trySubscribe.call(this,e)},T.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},T.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?nr:(this.currentObservers=null,i.push(e),new tr(function(){t.currentObservers=null,er(i,e)}))},T.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},T.prototype.asObservable=function(){var e=new Sr;return e.source=this,e},T.create=function(e,t){return new Dr(e,t)},T),Dr=(Jn($r,kr=et),$r.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},$r.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},$r.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},$r.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:nr},$r),Ar={now:function(){return(Ar.delegate||Date).now()},delegate:void 0},Cr=(Jn(Or,xr=et),Or.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(),xr.prototype.next.call(this,e)},Or.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},Or.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)}},Or);function Or(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=Ar);var r=xr.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 $r(e,t){var n=kr.call(this)||this;return n.destination=e,n.source=t,n}function T(){var e=Mr.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Br=[],Nr={};window.emWidgets={topic:(e,t=0)=>{return-1==Br.indexOf(e)&&(t=new Cr(t),Nr[e]=t,Br.push(e)),Nr[e]}};const Hr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Rr(e,t){jt(e,t)}const Fr={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},hr:{tournamentsThController:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."}},"zh-hk":{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu"}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}}};function Lr(e,t){jt(e,t)}const Ir={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",stake:"Turnover",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function Ur(n){let r,i,s,o,a,l;return{c(){r=$("div"),i=B(n[13]),R(r,"class",s="Status "+n[15]),R(r,"part",o="Status "+n[15])},m(e,t){C(e,r,t),A(r,i),a||(l=D(n[18].call(null,r)),a=!0)},p(e,t){8192&t[0]&&F(i,e[13]),32768&t[0]&&s!==(s="Status "+e[15])&&R(r,"class",s),32768&t[0]&&o!==(o="Status "+e[15])&&R(r,"part",o)},d(e){e&&O(r),a=!1,l()}}}function Yr(e){let n,r=e[5]&&zr(e);return{c(){r&&r.c(),n=Y()},m(e,t){r&&r.m(e,t),C(e,n,t)},p(e,t){e[5]?r?r.p(e,t):((r=zr(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&O(n)}}}function zr(e){let n,r,i=e[16]("tournamentsThumbnail.enrolled")+"";return{c(){n=$("div"),r=B(i),R(n,"class","Enrolled"),R(n,"part","Enrolled")},m(e,t){C(e,n,t),A(n,r)},p(e,t){65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.enrolled")+"")&&F(r,i)},d(e){e&&O(n)}}}function jr(n){let r,i,s,o,a;return{c(){R(r=$("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),R(r,"part",s="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),z(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){C(e,r,t),o||(a=D(n[18].call(null,r)),o=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&R(r,"class",i),1&t[0]&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&R(r,"part",s)},d(e){e&&O(r),o=!1,a()}}}function Gr(n){let r,i,s,o,a;return{c(){R(r=$("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),R(r,"part",s="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),z(r,"background-image","url('"+n[4]+"')")},m(e,t){C(e,r,t),o||(a=D(n[18].call(null,r)),o=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&R(r,"class",i),1&t[0]&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&R(r,"part",s),16&t[0]&&z(r,"background-image","url('"+e[4]+"')")},d(e){e&&O(r),o=!1,a()}}}function Wr(n){let r,i,s,o,a;return{c(){r=$("div"),i=B(n[11]),R(r,"class","Date"),R(r,"part","Date")},m(e,t){C(e,r,t),A(r,i),o||(a=D(s=n[17].call(null,r,n[2])),o=!0)},p(e,t){2048&t[0]&&F(i,e[11]),s&&d(s.update)&&4&t[0]&&s.update.call(null,e[2])},d(e){e&&O(r),o=!1,a()}}}function Vr(n){let r,i,s,o,a,l,u,c,h,d,f,m,p,g,y,b,v,w,_,T,S,E=n[16]("tournamentsThumbnail.scoreCriteria")+"",x=n[16]("tournamentsThumbnail.minbet")+"",k=n[16]("tournamentsThumbnail.seegames")+"",M=n[16]("tournamentsThumbnail.here")+"";return{c(){r=$("div"),i=$("p"),s=B(E),o=B(":\n \n "),a=$("span"),l=B(n[14]),u=B("\n ("),c=B(x),h=N(),d=B(n[6]),f=B(")"),m=N(),p=$("div"),g=$("p"),y=B(k),b=N(),v=$("a"),w=B(M),R(a,"part","ScoreCriteriaSpan"),R(i,"part","ScoreCriteriaP"),R(r,"class","ScoreCriteria"),R(r,"part","ScoreCriteria"),R(v,"part","GamesAnchor"),R(v,"href",n[8]),R(v,"target",_="true"===n[9]?"_self":"_blank"),R(g,"part","GamesP"),R(p,"class","Games"),R(p,"part","Games")},m(e,t){C(e,r,t),A(r,i),A(i,s),A(i,o),A(i,a),A(a,l),A(i,u),A(i,c),A(i,h),A(i,d),A(i,f),C(e,m,t),C(e,p,t),A(p,g),A(g,y),A(g,b),A(g,v),A(v,w),T||(S=[D(n[19].call(null,a)),H(v,"click",n[28])],T=!0)},p(e,t){65536&t[0]&&E!==(E=e[16]("tournamentsThumbnail.scoreCriteria")+"")&&F(s,E),16384&t[0]&&F(l,e[14]),65536&t[0]&&x!==(x=e[16]("tournamentsThumbnail.minbet")+"")&&F(c,x),64&t[0]&&F(d,e[6]),65536&t[0]&&k!==(k=e[16]("tournamentsThumbnail.seegames")+"")&&F(y,k),65536&t[0]&&M!==(M=e[16]("tournamentsThumbnail.here")+"")&&F(w,M),256&t[0]&&R(v,"href",e[8]),512&t[0]&&_!==(_="true"===e[9]?"_self":"_blank")&&R(v,"target",_)},d(e){e&&O(r),e&&O(m),e&&O(p),T=!1,P(S)}}}function Jr(n){let r,i,s,o,a,l,u,c,h,d=n[0]&&Ur(n),f="true"==n[7]&&Yr(n);function m(e){return e[4]?Gr:jr}let p=m(n),g=p(n),y=n[2]&&Wr(n),b=n[12]&&Vr(n);return{c(){r=$("div"),d&&d.c(),i=N(),f&&f.c(),s=N(),g.c(),o=N(),a=$("div"),l=$("div"),u=B(n[1]),c=N(),y&&y.c(),h=N(),b&&b.c(),this.c=v,R(l,"class","Title"),R(l,"part","Title"),R(a,"class","Details"),R(a,"part","Details"),R(r,"class","Thumbnail"),R(r,"part","Thumbnail")},m(e,t){C(e,r,t),d&&d.m(r,null),A(r,i),f&&f.m(r,null),A(r,s),g.m(r,null),A(r,o),A(r,a),A(a,l),A(l,u),A(a,c),y&&y.m(a,null),A(a,h),b&&b.m(a,null),n[29](r)},p(e,t){e[0]?d?d.p(e,t):((d=Ur(e)).c(),d.m(r,i)):d&&(d.d(1),d=null),"true"==e[7]?f?f.p(e,t):((f=Yr(e)).c(),f.m(r,s)):f&&(f.d(1),f=null),p===(p=m(e))&&g?g.p(e,t):(g.d(1),(g=p(e))&&(g.c(),g.m(r,o))),2&t[0]&&F(u,e[1]),e[2]?y?y.p(e,t):((y=Wr(e)).c(),y.m(a,h)):y&&(y.d(1),y=null),e[12]?b?b.p(e,t):((b=Vr(e)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(e){e&&O(r),d&&d.d(),f&&f.d(),g.d(),y&&y.d(),b&&b.d(),n[29](null)}}}function Zr(t,e,r){let i;oe(t,_n,e=>r(16,i=e));let n,{session:s=""}=e,{userid:o=""}=e,{title:a=""}=e,{startdate:l=""}=e,{status:u=""}=e,{tourid:c=""}=e,{thumbnail:h=""}=e,{userenrolled:d=""}=e,{scorecriteria:f=""}=e,{minbetcount:m=""}=e,{showenrolled:p="false"}=e,{gameurl:g=""}=e,{lang:y="en"}=e,{keepbrowsercontext:b="false"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:_=""}=e,T="",S=!1,E="",x="",k="";Object.keys(Ir).forEach(e=>{Lr(e,Ir[e])});const M=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&r(12,S=!0),e.data.type=="TournamentStatus_"+c)&&r(0,u=e.data.status)},P=()=>{var e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),n=e.getDate(),e=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});r(11,T=n+" "+i("tournamentsThumbnail."+t)+", "+i("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+e)},D=()=>{"Unstarted"==u&&(r(13,E=i("tournamentsThumbnail.scheduled")),r(15,k="StatusUnstarted")),"Running"==u&&(r(13,E=i("tournamentsThumbnail.ongoing")),r(15,k="StatusRunning")),"Closed"!=u&&"Closing"!=u||r(13,E=i("tournamentsThumbnail.finished")),"Closed"==u&&r(15,k="StatusClosed"),"Closing"==u&&r(15,k="StatusClosing")},A=()=>{"BetCount"==f&&r(14,x=i("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==f&&r(14,x=i("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==f&&r(14,x=i("tournamentsThumbnail.winStakeRatio")),"Stake"==f&&r(14,x=i("tournamentsThumbnail.stake"))},C=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};ae(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)}));return t.$$set=e=>{"session"in e&&r(21,s=e.session),"userid"in e&&r(22,o=e.userid),"title"in e&&r(1,a=e.title),"startdate"in e&&r(2,l=e.startdate),"status"in e&&r(0,u=e.status),"tourid"in e&&r(3,c=e.tourid),"thumbnail"in e&&r(4,h=e.thumbnail),"userenrolled"in e&&r(5,d=e.userenrolled),"scorecriteria"in e&&r(23,f=e.scorecriteria),"minbetcount"in e&&r(6,m=e.minbetcount),"showenrolled"in e&&r(7,p=e.showenrolled),"gameurl"in e&&r(8,g=e.gameurl),"lang"in e&&r(24,y=e.lang),"keepbrowsercontext"in e&&r(9,b=e.keepbrowsercontext),"clientstyling"in e&&r(25,v=e.clientstyling),"clientstylingurl"in e&&r(26,w=e.clientstylingurl),"translationurl"in e&&r(27,_=e.translationurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&n&&v&&((e=document.createElement("style")).innerHTML=v,n.appendChild(e)),67109888&t.$$.dirty[0]&&n&&w){let e=new URL(w),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e;134217728&t.$$.dirty[0]&&_&&fetch(_).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Lr(e,t[e])})}).catch(e=>{console.log(e)}),2097152&t.$$.dirty[0]&&s&&(0<s.length&&"false"!=s?r(12,S=!0):r(12,S=!1)),1&t.$$.dirty[0]&&u&&D(),16777218&t.$$.dirty[0]&&y&&a&&(e=y,se.set(e),A(),D(),l)&&P(),4&t.$$.dirty[0]&&l&&P(),8388608&t.$$.dirty[0]&&f&&A()},[u,a,l,c,h,d,m,p,g,b,n,T,S,E,x,k,i,P,D,A,C,s,o,f,y,v,w,_,()=>C(),function(e){ie[e?"unshift":"push"](()=>{n=e,r(10,n)})}]}function Xr(e,t){jt(e,t)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends re{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}',this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Zr,Jr,n,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),e&&(e.target&&C(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),f()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),f()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),f()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),f()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),f()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),f()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),f()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),f()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),f()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),f()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),f()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),f()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),f()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),f()}});const Kr={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},hr:{tournamentsDuration:{finished:"Završeno",starting:"Počinje za ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"}},"zh-hk":{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function qr(n){let r,i,s,o,a,l,u,c,h,d,f,m,p=n[10](n[0])+"",g=n[10](n[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?ti:0<e[5]?ei:Qr}let b=y(n),v=b(n);function w(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?ii:0<e[5]?ri:0<e[4]?ni:void 0}let _=w(n),T=_&&_(n);return{c(){r=$("div"),i=$("div"),s=B(p),o=N(),a=$("div"),l=B(g),u=N(),c=$("div"),h=$("div"),v.c(),d=N(),T&&T.c(),R(i,"class","StartDate"),R(i,"part","StartDate"),R(a,"class","EndDate"),R(a,"part","EndDate"),R(r,"class","TournamentDates"),R(r,"part","TournamentDates"),R(h,"class","ProgressBar"),R(h,"part","ProgressBar"),R(c,"class","ProgressBarWrapper"),R(c,"part","ProgressBarWrapper")},m(e,t){C(e,r,t),A(r,i),A(i,s),A(r,o),A(r,a),A(a,l),C(e,u,t),C(e,c,t),A(c,h),v.m(h,null),A(h,d),T&&T.m(h,null),f||(m=D(n[9].call(null,c)),f=!0)},p(e,t){1&t&&p!==(p=e[10](e[0])+"")&&F(s,p),2&t&&g!==(g=e[10](e[1])+"")&&F(l,g),b===(b=y(e))&&v?v.p(e,t):(v.d(1),(v=b(e))&&(v.c(),v.m(h,d))),_===(_=w(e))&&T?T.p(e,t):(T&&T.d(1),(T=_&&_(e))&&(T.c(),T.m(h,null)))},d(e){e&&O(r),e&&O(u),e&&O(c),v.d(),T&&T.d(),f=!1,m()}}}function Qr(e){let n;return{c(){R(n=$("div"),"class","ProgressBarFill"),R(n,"part","ProgressBarFill"),z(n,"width",e[7]()+"%")},m(e,t){C(e,n,t)},p(e,t){128&t&&z(n,"width",e[7]()+"%")},d(e){e&&O(n)}}}function ei(e){let n;return{c(){R(n=$("div"),"class","ProgressBarFillStarting"),R(n,"part","ProgressBarFillStarting")},m(e,t){C(e,n,t)},p:v,d(e){e&&O(n)}}}function ti(e){let n;return{c(){R(n=$("div"),"class","ProgressBarFillEnd"),R(n,"part","ProgressBarFillEnd")},m(e,t){C(e,n,t)},p:v,d(e){e&&O(n)}}}function ni(e){let n,r,i,s,o=e[8]("tournamentsDuration.left")+"";return{c(){n=$("div"),r=B(e[6]),i=N(),s=B(o),R(n,"class","Remaining"),R(n,"part","Remaining")},m(e,t){C(e,n,t),A(n,r),A(n,i),A(n,s)},p(e,t){64&t&&F(r,e[6]),256&t&&o!==(o=e[8]("tournamentsDuration.left")+"")&&F(s,o)},d(e){e&&O(n)}}}function ri(e){let n,r,i,s,o=e[8]("tournamentsDuration.starting")+"",a=e[11](e[5])+"";return{c(){n=$("div"),r=B(o),i=N(),s=B(a),R(n,"class","Remaining"),R(n,"part","Remaining")},m(e,t){C(e,n,t),A(n,r),A(n,i),A(n,s)},p(e,t){256&t&&o!==(o=e[8]("tournamentsDuration.starting")+"")&&F(r,o),32&t&&a!==(a=e[11](e[5])+"")&&F(s,a)},d(e){e&&O(n)}}}function ii(e){let n,r,i=e[8]("tournamentsDuration.finished")+"";return{c(){n=$("div"),r=B(i),R(n,"class","Finished"),R(n,"part","Finished")},m(e,t){C(e,n,t),A(n,r)},p(e,t){256&t&&i!==(i=e[8]("tournamentsDuration.finished")+"")&&F(r,i)},d(e){e&&O(n)}}}function si(n){let r,i=n[0]&&n[1]&&qr(n);return{c(){r=$("div"),i&&i.c(),this.c=v,R(r,"class","TournamentDuration"),R(r,"part","TournamentDuration")},m(e,t){C(e,r,t),i&&i.m(r,null),n[16](r)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=qr(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&O(r),i&&i.d(),n[16](null)}}}function oi(t,e,n){let r,i;oe(t,_n,e=>n(8,i=e));let s,{startdate:o=""}=e,{enddate:a=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,f="",m="",p="";Object.keys(Kr).forEach(e=>{Xr(e,Kr[e])});const g=e=>new Date(e).getTime(),y=(e,t)=>(g(t)-g(e))/6e4,b=()=>{var e=new Date;n(4,f=y(e,a)),n(5,m=y(e,o)),n(6,p=v(f))},v=e=>{var t;return e<1440?[e/60,t=e%60,60*(t-Math.floor(t))].map(e=>{return(e=Math.floor(e))<10?"0"+e:""+e}).join(":"):Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return ae(()=>{const e=setInterval(()=>{o&&a&&b()},1e3);return()=>clearInterval(e)}),t.$$set=e=>{"startdate"in e&&n(0,o=e.startdate),"enddate"in e&&n(1,a=e.enddate),"status"in e&&n(2,l=e.status),"lang"in e&&n(12,u=e.lang),"clientstyling"in e&&n(13,c=e.clientstyling),"clientstylingurl"in e&&n(14,h=e.clientstylingurl),"translationurl"in e&&n(15,d=e.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&n(7,r=()=>{var e,t;return f<=0?100:(t=100/(e=y(o,a)),Math.floor((e-f)*t))}),19&t.$$.dirty&&o&&a&&b(),4096&t.$$.dirty&&u&&b(),4112&t.$$.dirty&&u&&v(f),32768&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Xr(e,t[e])})}).catch(e=>{console.log(e)}),8200&t.$$.dirty&&s&&c&&((e=document.createElement("style")).innerHTML=c,s.appendChild(e)),16392&t.$$.dirty&&s&&h){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[o,a,l,s,f,m,p,r,i,b,e=>{var e=new Date(e),t=new Intl.DateTimeFormat(u,{month:"long"}).format(e);return`${e.getDate()} ${t}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+e.getUTCFullYear()},v,u,c,h,d,function(e){ie[e?"unshift":"push"](()=>{s=e,n(3,s)})}]}function ai(e,t){jt(e,t)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends re{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}",this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},oi,si,n,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&C(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),f()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),f()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),f()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),f()}});const li={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},hr:{tournamentsPrizes:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},"zh-hk":{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function ui(e,t,n){e=e.slice();return e[13]=t[n],e[15]=n,e}function ci(t){let r,i=t[1],s=[];for(let e=0;e<i.length;e+=1)s[e]=di(ui(t,i,e));let o=null;return i.length||(o=hi(t)),{c(){r=$("div");for(let e=0;e<s.length;e+=1)s[e].c();o&&o.c(),R(r,"class","Prizes"),R(r,"part","Prizes")},m(e,t){C(e,r,t);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(r,null);o&&o.m(r,null)},p(t,n){if(6&n){let e;for(i=t[1],e=0;e<i.length;e+=1){const o=ui(t,i,e);s[e]?s[e].p(o,n):(s[e]=di(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=hi(t)).c(),o.m(r,null))}},d(e){e&&O(r),U(s,e),o&&o.d()}}}function hi(e){let n,r,i=e[2]("tournamentsPrizes.noprizes")+"";return{c(){n=$("p"),r=B(i)},m(e,t){C(e,n,t),A(n,r)},p(e,t){4&t&&i!==(i=e[2]("tournamentsPrizes.noprizes")+"")&&F(r,i)},d(e){e&&O(n)}}}function di(e){let n,r,i,s,o,a,l,u,c,h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"",d=e[2]("tournamentsPrizes.place")+"",f=e[13].name+"";return{c(){n=$("div"),r=$("p"),i=$("span"),s=B(h),o=N(),a=B(d),l=B(": "),u=B(f),c=N(),R(i,"class","PrizeRank"),R(i,"part","PrizeRank"),R(r,"class","PrizeText"),R(r,"part","PrizeText"),R(n,"class","Prize Prize"+e[15]),R(n,"part","Prize Prize"+e[15])},m(e,t){C(e,n,t),A(n,r),A(r,i),A(i,s),A(r,o),A(r,a),A(r,l),A(r,u),A(n,c)},p(e,t){2&t&&h!==(h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"")&&F(s,h),4&t&&d!==(d=e[2]("tournamentsPrizes.place")+"")&&F(a,d),2&t&&f!==(f=e[13].name+"")&&F(u,f)},d(e){e&&O(n)}}}function fi(n){let r,i,s,o,a,l,u,c=n[2]("tournamentsPrizes.prizes")+"",h=n[1]&&ci(n);return{c(){r=$("div"),i=$("div"),(s=$("span")).innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',o=N(),a=$("p"),l=B(c),u=N(),h&&h.c(),this.c=v,R(s,"class","TournamentPrizesIconWrapper"),R(s,"part","TournamentPrizesIconWrapper"),R(a,"class","PrizesTitle"),R(a,"part","PrizesTitle"),R(i,"class","TournamentPrizesIconSection"),R(i,"part","TournamentPrizesIconSection"),R(r,"class","TournamentPrizes"),R(r,"part","TournamentPrizes")},m(e,t){C(e,r,t),A(r,i),A(i,s),A(i,o),A(i,a),A(a,l),A(r,u),h&&h.m(r,null),n[7](r)},p(e,[t]){4&t&&c!==(c=e[2]("tournamentsPrizes.prizes")+"")&&F(l,c),e[1]?h?h.p(e,t):((h=ci(e)).c(),h.m(r,null)):h&&(h.d(1),h=null)},i:v,o:v,d(e){e&&O(r),h&&h.d(),n[7](null)}}}function mi(t,e,n){let r;oe(t,_n,e=>n(2,r=e));let i,s,{tourid:o=""}=e,{clientstyling:a=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e;Object.keys(li).forEach(e=>{ai(e,li[e])});const c=e=>{e.data&&e.data.type=="TournamentPrizes_"+o&&n(1,s=e.data.prizes)};return ae(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"tourid"in e&&n(3,o=e.tourid),"clientstyling"in e&&n(4,a=e.clientstyling),"clientstylingurl"in e&&n(5,l=e.clientstylingurl),"translationurl"in e&&n(6,u=e.translationurl)},t.$$.update=()=>{if(17&t.$$.dirty&&i&&a&&((e=document.createElement("style")).innerHTML=a,i.appendChild(e)),33&t.$$.dirty&&i&&l){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;64&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ai(e,t[e])})}).catch(e=>{console.log(e)})},[i,s,r,o,a,l,u,function(e){ie[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}function pi(e,t){jt(e,t)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends re{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}",this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},mi,fi,n,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},null),e&&(e.target&&C(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationurl"]}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),f()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),f()}});const gi={en:{gamesSlider:{playNow:"Play now"}},hr:{gamesSlider:{playNow:"Započni sada"}},"zh-hk":{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Jugar Ya"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function yi(e,t,n){e=e.slice();return e[50]=t[n],e[52]=n,e}function bi(n){let r,i,s,o,a,l,u,c,h,d,f=n[1],m=[];for(let e=0;e<f.length;e+=1)m[e]=vi(yi(n,f,e));return{c(){r=$("div"),(i=$("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',s=N(),o=$("main"),a=$("div");for(let e=0;e<m.length;e+=1)m[e].c();u=N(),(c=$("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',R(i,"class","SliderNavButton"),R(i,"part","SliderNavButton"),j(i,"disabled",n[8]),R(a,"class","items"),R(a,"part","items"),z(a,"transform","translateX("+n[2]+"px)"),q(()=>n[28].call(o)),R(c,"class","SliderNavButton"),R(c,"part","SliderNavButton"),j(c,"disabled",n[9]),R(r,"class","TournamentsGamesSlider"),R(r,"part","TournamentsGamesSlider")},m(e,t){C(e,r,t),A(r,i),A(r,s),A(r,o),A(o,a);for(let e=0;e<m.length;e+=1)m[e]&&m[e].m(a,null);n[27](a),l=function(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=$("iframe"),r=(n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1,function(){if(void 0===k){k=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){k=!0}}return k}());let i;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=H(window,"message",e=>{e.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{i=H(n.contentWindow,"resize",t),t()}),A(e,n),()=>{(r||i&&n.contentWindow)&&i(),O(n)}}(o,n[28].bind(o)),A(r,u),A(r,c),n[30](r),h||(d=[H(i,"click",n[23]),H(c,"click",n[29])],h=!0)},p(t,n){if(256&n[0]&&j(i,"disabled",t[8]),23650&n[0]){let e;for(f=t[1],e=0;e<f.length;e+=1){var r=yi(t,f,e);m[e]?m[e].p(r,n):(m[e]=vi(r),m[e].c(),m[e].m(a,null))}for(;e<m.length;e+=1)m[e].d(1);m.length=f.length}4&n[0]&&z(a,"transform","translateX("+t[2]+"px)"),512&n[0]&&j(c,"disabled",t[9])},d(e){e&&O(r),U(m,e),n[27](null),l(),n[30](null),h=!1,P(d)}}}function vi(n){let r,i,s,o,a,l,u,c,h,d,f,m,p,g=n[10]("gamesSlider.playNow")+"";function y(){return n[24](n[50])}function b(){return n[25](n[52])}return{c(){r=$("div"),i=$("span"),s=B(g),l=N(),u=$("img"),f=N(),R(i,"class",o="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),R(i,"part",a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),L(u.src,c=n[50].thumbnail)||R(u,"src",c),R(u,"width","132px"),R(u,"height","100px"),R(u,"alt",h=n[50].name),R(u,"title",d=n[50].name),R(r,"class","item"),R(r,"part","item")},m(e,t){C(e,r,t),A(r,i),A(i,s),A(r,l),A(r,u),A(r,f),m||(p=[H(r,"click",y),H(r,"mouseenter",b),H(r,"mouseleave",n[26])],m=!0)},p(e,t){n=e,1024&t[0]&&g!==(g=n[10]("gamesSlider.playNow")+"")&&F(s,g),96&t[0]&&o!==(o="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&R(i,"class",o),96&t[0]&&a!==(a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&R(i,"part",a),2&t[0]&&!L(u.src,c=n[50].thumbnail)&&R(u,"src",c),2&t[0]&&h!==(h=n[50].name)&&R(u,"alt",h),2&t[0]&&d!==(d=n[50].name)&&R(u,"title",d)},d(e){e&&O(r),m=!1,P(p)}}}function wi(n){let r,i=n[1]&&0<n[1].length&&bi(n);return{c(){r=$("div"),i&&i.c(),this.c=v},m(e,t){C(e,r,t),i&&i.m(r,null),n[31](r)},p(e,t){e[1]&&0<e[1].length?i?i.p(e,t):((i=bi(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&O(r),i&&i.d(),n[31](null)}}}function _i(n,e,r){let i,s,t;oe(n,_n,e=>r(10,t=e));let o,a,l,u,c,h,{tournamenturl:d=""}=e,{scrollby:f="3"}=e,{pagfactor:m="175"}=e,{lang:p=""}=e,{translationurl:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,v=window.navigator.userAgent,w=[],_=0,T=null,S=null,E=!1,x=0;Object.keys(gi).forEach(e=>{pi(e,gi[e])});const k=e=>{r(5,E=!0),r(6,u=e)},M=()=>{r(5,E=!1),r(6,u=-1)},P=e=>{e=(e.touches||e.originalEvent.touches)[0];T=e.clientX,S=e.clientY},D=e=>{var t;T&&S&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=T-t,e=S-e,Math.abs(t)>Math.abs(e)&&A(0<t?1:-1),T=null,S=null)},A=e=>{0<e&&!s?(r(2,_-=a),r(2,_=_<x?x:_)):e<0&&!i&&(r(2,_+=a),r(2,_=0<_?0:_))},C=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name,launchUrl:e.launchUrl},window.location.href)};return ae(()=>(a=parseInt(f,10)*parseInt(m,10),()=>{l.removeEventListener("touchstart",P),l.removeEventListener("touchmove",D)})),n.$$set=e=>{"tournamenturl"in e&&r(17,d=e.tournamenturl),"scrollby"in e&&r(15,f=e.scrollby),"pagfactor"in e&&r(16,m=e.pagfactor),"lang"in e&&r(18,p=e.lang),"translationurl"in e&&r(19,g=e.translationurl),"clientstyling"in e&&r(20,y=e.clientstyling),"clientstylingurl"in e&&r(21,b=e.clientstylingurl)},n.$$.update=()=>{if(4&n.$$.dirty[0]&&r(8,i=0===_),4194308&n.$$.dirty[0]&&r(9,s=_<=x),16&n.$$.dirty[0]&&h&&0<h&&h<Math.floor((parseInt(f)+1)*m)&&r(15,f=Math.ceil(h/m).toString()),131072&n.$$.dirty[0]&&d&&(e=new URL(d),t=new Headers,e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${_})`),e.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),e.searchParams.append("language",p),e.searchParams.append("platform",Hr(v)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(1,w=e.item.games.items),e.item.games.total})),8&n.$$.dirty[0]&&l&&(l.addEventListener("touchstart",P,{passive:!0}),l.addEventListener("touchmove",D,{passive:!0})),524288&n.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{pi(e,t[e])})}).catch(e=>{console.log(e)}),2&n.$$.dirty[0]&&w.length&&setTimeout(()=>{r(22,x=-1*(c.scrollWidth-c.clientWidth)),r(16,m=new String(c.scrollWidth/w.length)),a=parseInt(f,10)*parseFloat(m,2).toFixed(2)},1e3),1048577&n.$$.dirty[0]&&y&&o&&((e=document.createElement("style")).innerHTML=y,o.appendChild(e)),2097153&n.$$.dirty[0]&&b&&o){let e=new URL(b),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t},r(2,_=0),[o,w,_,l,h,E,u,c,i,s,t,k,M,A,C,f,m,d,p,g,y,b,x,()=>A(-1),e=>C(e),e=>k(e),()=>M(),function(e){ie[e?"unshift":"push"](()=>{c=e,r(7,c)})},function(){h=this.clientWidth,r(4,h)},()=>A(1),function(e){ie[e?"unshift":"push"](()=>{l=e,r(3,l)})},function(e){ie[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function Ti(e){let n,r,i,s,o,a,l,u,c,h=e[13]&&Ei(e);function d(e){return e[13]?"Closed"!=e[22]&&"Closing"!=e[22]?Mi:"true"==e[3]?ki:void 0:Pi}let f=d(e),m=f&&f(e),p=(e[16]||e[18])&&Ni(e),g="true"==e[4]&&Hi(e);return{c(){n=$("div"),r=$("casino-tournaments-thumbnail"),i=N(),h&&h.c(),s=N(),o=$("div"),m&&m.c(),a=N(),p&&p.c(),l=N(),g&&g.c(),y(r,"session",e[0]),y(r,"userid",e[1]),y(r,"title",e[19]),y(r,"status",e[22]),y(r,"startdate",e[20]),y(r,"tourid",e[23]),y(r,"scorecriteria",e[26]),y(r,"minbetcount",e[27]),y(r,"thumbnail",e[24]),y(r,"userenrolled",e[25]),y(r,"showenrolled",e[5]),y(r,"gameurl",e[29]),y(r,"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"lang",e[8]),y(r,"keepbrowsercontext",e[9]),y(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),R(o,"class","TournamentButtons"),R(o,"part","TournamentButtons"),R(n,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")),R(n,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){C(e,n,t),A(n,r),A(n,i),h&&h.m(n,null),A(n,s),A(n,o),m&&m.m(o,null),A(n,a),p&&p.m(n,null),A(n,l),g&&g.m(n,null)},p(e,t){1&t[0]&&y(r,"session",e[0]),2&t[0]&&y(r,"userid",e[1]),524288&t[0]&&y(r,"title",e[19]),4194304&t[0]&&y(r,"status",e[22]),1048576&t[0]&&y(r,"startdate",e[20]),8388608&t[0]&&y(r,"tourid",e[23]),67108864&t[0]&&y(r,"scorecriteria",e[26]),134217728&t[0]&&y(r,"minbetcount",e[27]),16777216&t[0]&&y(r,"thumbnail",e[24]),33554432&t[0]&&y(r,"userenrolled",e[25]),32&t[0]&&y(r,"showenrolled",e[5]),536870912&t[0]&&y(r,"gameurl",e[29]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),256&t[0]&&y(r,"lang",e[8]),512&t[0]&&y(r,"keepbrowsercontext",e[9]),e[13]?h?h.p(e,t):((h=Ei(e)).c(),h.m(n,s)):h&&(h.d(1),h=null),f===(f=d(e))&&m?m.p(e,t):(m&&m.d(1),(m=f&&f(e))&&(m.c(),m.m(o,null))),e[16]||e[18]?p?p.p(e,t):((p=Ni(e)).c(),p.m(n,l)):p&&(p.d(1),p=null),"true"==e[4]?g?g.p(e,t):((g=Hi(e)).c(),g.m(n,null)):g&&(g.d(1),g=null),1073742016&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&R(n,"class",u),1073742016&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&R(n,"part",c)},d(e){e&&O(n),h&&h.d(),m&&m.d(),p&&p.d(),g&&g.d()}}}function Si(e){let n,r,i,s;return{c(){n=$("div"),(r=$("div")).innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> \n <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> \n <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> \n <div class="ph-col-4" part="ph-col-4"></div> \n <div class="ph-col-8 empty" part="ph-col-8 empty"></div> \n <div class="ph-col-6" part="ph-col-6"></div> \n <div class="ph-col-6 empty" part="ph-col-6 empty"></div> \n <div class="ph-col-12" part="ph-col-12"></div></div></div>',R(r,"class","ph-item"),R(r,"part","ph-item"),R(n,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")),R(n,"part",s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){C(e,n,t),A(n,r)},p(e,t){1073742016&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&R(n,"class",i),1073742016&t[0]&&s!==(s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&R(n,"part",s)},d(e){e&&O(n)}}}function Ei(e){let n,r,i=e[23]&&xi(e);return{c(){i&&i.c(),n=N(),y(r=$("casino-tournaments-thumbnail-duration"),"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"status",e[22]),y(r,"startdate",e[20]),y(r,"lang",e[8]),y(r,"enddate",e[21]),y(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),C(e,n,t),C(e,r,t)},p(e,t){e[23]?i?i.p(e,t):((i=xi(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),4194304&t[0]&&y(r,"status",e[22]),1048576&t[0]&&y(r,"startdate",e[20]),256&t[0]&&y(r,"lang",e[8]),2097152&t[0]&&y(r,"enddate",e[21])},d(e){i&&i.d(e),e&&O(n),e&&O(r)}}}function xi(n){let r,i,s,o;return{c(){y(r=$("casino-tournaments-thumbnail-prizes"),"tourid",n[23]),y(r,"clientstyling",n[10]),y(r,"clientstylingurl",n[11]),y(r,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){C(e,r,t),s||(o=D(i=n[36].call(null,r,n[23])),s=!0)},p(e,t){8388608&t[0]&&y(r,"tourid",e[23]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),i&&d(i.update)&&8388608&t[0]&&i.update.call(null,e[23])},d(e){e&&O(r),s=!1,o()}}}function ki(n){let r,i,s,o,a=n[31]("tournamentsThController.details")+"";return{c(){r=$("button"),i=B(a),R(r,"class","DetailsLargeButton"),R(r,"part","DetailsLargeButton")},m(e,t){C(e,r,t),A(r,i),s||(o=H(r,"click",n[50]),s=!0)},p(e,t){1&t[1]&&a!==(a=e[31]("tournamentsThController.details")+"")&&F(i,a)},d(e){e&&O(r),s=!1,o()}}}function Mi(e){let n,r,i="true"==e[3]&&Di(e);function s(e){return 1==e[25]?Ci:Ai}let o=s(e),a=o(e);return{c(){i&&i.c(),n=N(),a.c(),r=Y()},m(e,t){i&&i.m(e,t),C(e,n,t),a.m(e,t),C(e,r,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=Di(e)).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.c(),a.m(r.parentNode,r)))},d(e){i&&i.d(e),e&&O(n),a.d(e),e&&O(r)}}}function Pi(n){let r,i,s,o,a,l,u,c=n[31]("tournamentsThController.login")+"",h=n[31]("tournamentsThController.register")+"";return{c(){r=$("button"),i=B(c),s=N(),o=$("button"),a=B(h),R(r,"class","LoginButton"),R(r,"part","LoginButton"),R(o,"class","RegisterButton"),R(o,"part","RegisterButton")},m(e,t){C(e,r,t),A(r,i),C(e,s,t),C(e,o,t),A(o,a),l||(u=[H(r,"click",n[46]),H(o,"click",n[47])],l=!0)},p(e,t){1&t[1]&&c!==(c=e[31]("tournamentsThController.login")+"")&&F(i,c),1&t[1]&&h!==(h=e[31]("tournamentsThController.register")+"")&&F(a,h)},d(e){e&&O(r),e&&O(s),e&&O(o),l=!1,P(u)}}}function Di(n){let r,i,s,o,a=n[31]("tournamentsThController.details")+"";return{c(){r=$("button"),i=B(a),R(r,"class","DetailsButton"),R(r,"part","DetailsButton")},m(e,t){C(e,r,t),A(r,i),s||(o=H(r,"click",n[48]),s=!0)},p(e,t){1&t[1]&&a!==(a=e[31]("tournamentsThController.details")+"")&&F(i,a)},d(e){e&&O(r),s=!1,o()}}}function Ai(n){let r,i,s,o,a;function l(e){return 1==e[15]?$i:Oi}let u=l(n),c=u(n);return{c(){r=$("button"),c.c(),R(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),R(r,"part",s="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[16]},m(e,t){C(e,r,t),c.m(r,null),o||(a=H(r,"click",n[49]),o=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(r,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&R(r,"class",i),128&t[0]&&s!==(s="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&R(r,"part",s),65536&t[0]&&(r.disabled=e[16])},d(e){e&&O(r),c.d(),o=!1,a()}}}function Ci(e){let n,r="true"==e[3]&&Bi(e);return{c(){r&&r.c(),n=Y()},m(e,t){r&&r.m(e,t),C(e,n,t)},p(e,t){"true"==e[3]?r?r.p(e,t):((r=Bi(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&O(n)}}}function Oi(e){let n,r,i,s,o,a,l,u,c,h=e[31]("tournamentsThController.join")+"";return{c(){n=$("span"),r=B(h),i=N(),s=t("svg"),o=t("defs"),a=t("style"),l=B(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("g"),c=t("path"),R(n,"part","JoinButtonSpan"),R(c,"class","a"),R(c,"part","a JoinButtonSvgA"),R(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),R(c,"transform","translate(26 26) rotate(180)"),R(u,"transform","translate(26 26) rotate(180)"),R(s,"part","JoinButtonSvg"),R(s,"xmlns","http://www.w3.org/2000/svg"),R(s,"width","26"),R(s,"height","26"),R(s,"viewBox","0 0 26 26")},m(e,t){C(e,n,t),A(n,r),C(e,i,t),C(e,s,t),A(s,o),A(o,a),A(a,l),A(s,u),A(u,c)},p(e,t){1&t[1]&&h!==(h=e[31]("tournamentsThController.join")+"")&&F(r,h)},d(e){e&&O(n),e&&O(i),e&&O(s)}}}function $i(e){let n,r;return{c(){n=t("svg"),R(r=t("circle"),"cx","20"),R(r,"cy","20"),R(r,"r","18"),R(n,"class","spinner"),R(n,"part","spinner")},m(e,t){C(e,n,t),A(n,r)},p:v,d(e){e&&O(n)}}}function Bi(e){let n,r,i=e[31]("tournamentsThController.enrolled")+"";return{c(){n=$("button"),r=B(i),R(n,"class","EnrolledButton"),R(n,"part","EnrolledButton"),n.disabled=!0},m(e,t){C(e,n,t),A(n,r)},p(e,t){1&t[1]&&i!==(i=e[31]("tournamentsThController.enrolled")+"")&&F(r,i)},d(e){e&&O(n)}}}function Ni(e){let n,r,i,s,o=e[31]("tournamentsThController.joinerror")+"";return{c(){n=$("span"),r=B(o),i=N(),s=B(e[17]),R(n,"class","ErrorText"),R(n,"part","ErrorText")},m(e,t){C(e,n,t),A(n,r),A(n,i),A(n,s)},p(e,t){1&t[1]&&o!==(o=e[31]("tournamentsThController.joinerror")+"")&&F(r,o),131072&t[0]&&F(s,e[17])},d(e){e&&O(n)}}}function Hi(e){let n;return{c(){y(n=$("casino-tournaments-thumbnail-games-slider"),"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"tournamenturl",e[2]),y(n,"lang",e[8]),y(n,"scrollby","2"),y(n,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){C(e,n,t)},p(e,t){1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),4&t[0]&&y(n,"tournamenturl",e[2]),256&t[0]&&y(n,"lang",e[8])},d(e){e&&O(n)}}}function Ri(n){let r;function i(e){return e[14]?Si:e[19]?Ti:void 0}let s=i(n),o=s&&s(n);return{c(){r=$("div"),o&&o.c(),this.c=v},m(e,t){C(e,r,t),o&&o.m(r,null),n[51](r)},p(e,t){s===(s=i(e))&&o?o.p(e,t):(o&&o.d(1),(o=s&&s(e))&&(o.c(),o.m(r,null)))},i:v,o:v,d(e){e&&O(r),o&&o.d(),n[51](null)}}}function Fi(n,e,u){let t;oe(n,_n,e=>u(31,t=e));let r,i,s,o,a,c,l,h,d,H,f,{session:m=""}=e,{userid:R=""}=e,{tournamenturl:p=""}=e,g=e["touridx"],{endpoint:y=""}=e,{showdetails:F=""}=e,{showslider:L=""}=e,{showenrolled:I=""}=e,{maxwidth:U=""}=e,{fullsize:Y=""}=e,{lang:b=""}=e,{loginevent:v=""}=e,{registerevent:w=""}=e,{loginurl:_=""}=e,{registerurl:T=""}=e,{currency:S=""}=e,{keepbrowsercontext:z="false"}=e,{clientstyling:E=""}=e,{clientstylingurl:x=""}=e,{translationurl:k=""}=e,M=!1,P="",D=!0,j=window.navigator.userAgent,A=!1,C=!1,G="There was an error while trying to join the tournament",O=!1,W=[],$=[],V="#",B=!1;var J,Z;({withLocale:J,translations:Z}={withLocale:"en",translations:{}}),se.subscribe(e=>{null==e&&(Yt.set(Z),se.set(J))}),Object.keys(Fr).forEach(e=>{Rr(e,Fr[e])});const X=e=>{q(e),re(e),ne(this,c)},K=n=>{if(n.data&&"UserSessionID"==n.data.type&&(u(13,M=!0),P=n.data.session),"UpdateTournamentView"==n.data.type){var e=n.data.tournamentData;if(c&&c!=e.id)return;X(e)}if(n.data&&n.data.type=="UpdateSingleTournament_"+g){let e=n.data.tournamentData,t=g<4?100*g:300*Math.random()+300;u(30,B=1==g),setTimeout(()=>{u(30,B=!0),u(23,c=e.id),X(e)},t),setTimeout(()=>{u(30,B=!1)},200+t)}},q=e=>{e.state!=a&&(u(22,a=e.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},Q=()=>{v&&(window.postMessage({type:v,transition:"Login"},window.location.href),"function"==typeof gtag)&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"}),_&&(window.location=_)},ee=()=>{w&&(window.postMessage({type:w,transition:"Register"},window.location.href),"function"==typeof gtag)&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"}),T&&(window.location=T)},N=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},te=async(t,e)=>{u(16,C=!1),u(18,O=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(15,A=!0);let n=new URL(y+"/v1/bonus/claim"),r=new Headers,i={},s=(n.searchParams.append("language",b),n.searchParams.append("platform",Hr(j)),r.append("Content-Type","application/json"),r.append("X-SessionID",P),e&&1<=e.length&&(i={language:b,bonusCode:e[0].code,currency:S}),{method:"PUT",headers:r,body:JSON.stringify(i)});const o=()=>{u(15,A=!1),u(25,h=!0)},a=e=>{u(15,A=!1),e&&u(17,G=e),u(16,C=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(n,s)).json()}catch(e){a()}return e})();if(l)if(1==l.success)o();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(y+"/tournaments/"+c,{headers:{"X-SessionID":m}})).json())?void 0:e.item)&&t.playerEnrolled?o():(a(l.errorMessage),u(18,O=!0),u(16,C=!1))}else a(l.errorMessage)},ne=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:W},window.location.href)},re=e=>{e&&(u(19,i=e.nameOrTitle||""),u(20,s=e.startTime),u(21,o=e.endTime),u(22,a=e.state),u(23,c=e.id),u(24,l=e.thumbnail),u(25,h=e.playerEnrolled||!1),u(26,d=e.scoreCriteria),u(27,H=e.minBetCount),W=e.prizes,u(28,$=e.wallets||[]),u(29,V=e.termsUrl||"#"))};return ae(()=>(u(14,D=!1),window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),n.$$set=e=>{"session"in e&&u(0,m=e.session),"userid"in e&&u(1,R=e.userid),"tournamenturl"in e&&u(2,p=e.tournamenturl),"touridx"in e&&u(37,g=e.touridx),"endpoint"in e&&u(38,y=e.endpoint),"showdetails"in e&&u(3,F=e.showdetails),"showslider"in e&&u(4,L=e.showslider),"showenrolled"in e&&u(5,I=e.showenrolled),"maxwidth"in e&&u(6,U=e.maxwidth),"fullsize"in e&&u(7,Y=e.fullsize),"lang"in e&&u(8,b=e.lang),"loginevent"in e&&u(39,v=e.loginevent),"registerevent"in e&&u(40,w=e.registerevent),"loginurl"in e&&u(41,_=e.loginurl),"registerurl"in e&&u(42,T=e.registerurl),"currency"in e&&u(43,S=e.currency),"keepbrowsercontext"in e&&u(9,z=e.keepbrowsercontext),"clientstyling"in e&&u(10,E=e.clientstyling),"clientstylingurl"in e&&u(11,x=e.clientstylingurl),"translationurl"in e&&u(44,k=e.translationurl)},n.$$.update=()=>{if(5120&n.$$.dirty[0]&&r&&E&&((t=document.createElement("style")).innerHTML=E,r.appendChild(t)),6144&n.$$.dirty[0]&&r&&x){let e=new URL(x),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t;8192&n.$$.dirty[1]&&k&&fetch(k).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Rr(e,t[e])})}).catch(e=>{console.log(e)}),1&n.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?(P=m,u(13,M=!0)):u(13,M=!1)),260&n.$$.dirty[0]&&u(45,f=p&&b),16384&n.$$.dirty[1]&&f&&(u(14,D=!0),t=p,u(14,D=!0),t=new URL(t),e=new Headers,t.searchParams.append("language",b),t.searchParams.append("platform",Hr(j)),M&&e.append("X-SessionID",P),fetch(t,{method:"GET",headers:e}).then(e=>e.json()).then(e=>{u(14,D=!1),re(e.item)}))},[m,R,p,F,L,I,U,Y,b,z,E,x,r,M,D,A,C,G,O,i,s,o,a,c,l,h,d,H,$,V,B,t,Q,ee,N,te,ne,g,y,v,w,_,T,S,k,f,()=>Q(),()=>ee(),()=>N(c),()=>te(c,$),()=>N(c),function(e){ie[e?"unshift":"push"](()=>{r=e,u(12,r)})}]}function Li(e,t,n){e=e.slice();return e[30]=t[n],e[32]=n,e}function Ii(t){let r,i=t[14],s=[];for(let e=0;e<i.length;e+=1)s[e]=Yi(Li(t,i,e));let o=null;return i.length||(o=Ui(t)),{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=Y(),o&&o.c()},m(t,n){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,n);C(t,r,n),o&&o.m(t,n)},p(t,n){if(53247&n[0]){let e;for(i=t[14],e=0;e<i.length;e+=1){const o=Li(t,i,e);s[e]?s[e].p(o,n):(s[e]=Yi(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=Ui(t)).c(),o.m(r.parentNode,r))}},d(e){U(s,e),e&&O(r),o&&o.d(e)}}}function Ui(e){let n,r,i=e[15]("tournamentsList.nothing")+"";return{c(){n=$("p"),r=B(i)},m(e,t){C(e,n,t),A(n,r)},p(e,t){32768&t[0]&&i!==(i=e[15]("tournamentsList.nothing")+"")&&F(r,i)},d(e){e&&O(n)}}}function Yi(e){let n,r,i;return{c(){y(n=$("casino-tournaments-thumbnail-controller"),"touridx",e[32]+1),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"endpoint",e[2]),y(n,"showdetails","true"),y(n,"showslider","false"),y(n,"tournamenturl",r=e[30].href),y(n,"maxwidth",i=e[14].length<=2),y(n,"loginurl",e[5]),y(n,"loginevent",e[3]),y(n,"registerurl",e[6]),y(n,"registerevent",e[4]),y(n,"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"lang",e[8]),y(n,"currency",e[7]),y(n,"keepbrowsercontext",e[9]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){C(e,n,t)},p(e,t){1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),4&t[0]&&y(n,"endpoint",e[2]),16384&t[0]&&r!==(r=e[30].href)&&y(n,"tournamenturl",r),16384&t[0]&&i!==(i=e[14].length<=2)&&y(n,"maxwidth",i),32&t[0]&&y(n,"loginurl",e[5]),8&t[0]&&y(n,"loginevent",e[3]),64&t[0]&&y(n,"registerurl",e[6]),16&t[0]&&y(n,"registerevent",e[4]),1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),256&t[0]&&y(n,"lang",e[8]),128&t[0]&&y(n,"currency",e[7]),512&t[0]&&y(n,"keepbrowsercontext",e[9])},d(e){e&&O(n)}}}function zi(n){let r,i=!n[13]&&Ii(n);return{c(){r=$("div"),i&&i.c(),this.c=v,R(r,"class","TournamentList"),R(r,"part","TournamentList")},m(e,t){C(e,r,t),i&&i.m(r,null),n[18](r)},p(e,t){e[13]?i&&(i.d(1),i=null):i?i.p(e,t):((i=Ii(e)).c(),i.m(r,null))},i:v,o:v,d(e){e&&O(r),i&&i.d(),n[18](null)}}}function ji(t,e,n){let r;oe(t,_n,e=>n(15,r=e));let i,{session:s=""}=e,{userid:o=""}=e,{numberoftournaments:a="6"}=e,{endpoint:l=""}=e,{loginevent:u=""}=e,{registerevent:c=""}=e,{loginurl:h=""}=e,{registerurl:d=""}=e,{currency:f=""}=e,{lang:m="en"}=e,{keepbrowsercontext:p="false"}=e,{clientstyling:g=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,v=!1,w=(ue(),"");Object.keys(Sn).forEach(e=>{Tn(e,Sn[e])});const _=t=>{if(t.data&&"TournamentList"==t.data.type&&(n(14,w=[]),n(13,v=!0),n(14,w=t.data.tournamentList),setTimeout(()=>{n(13,v=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&n(14,w=[...w,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!w)return;0==w.filter(e=>e.id==t.data.tournamentData.id).length&&(w.pop(),n(14,w=[t.data.tournamentData,...w]),setTimeout(()=>{w.forEach((e,t)=>{window.postMessage({type:"UpdateSingleTournament_"+(t+1),tournamentData:e},window.location.href)})},100))}t.data&&"UserSessionID"==t.data.type&&t.data.session};return ae(()=>(window.addEventListener("message",_,!0),()=>{window.removeEventListener("message",_,!0)})),t.$$set=e=>{"session"in e&&n(0,s=e.session),"userid"in e&&n(1,o=e.userid),"numberoftournaments"in e&&n(16,a=e.numberoftournaments),"endpoint"in e&&n(2,l=e.endpoint),"loginevent"in e&&n(3,u=e.loginevent),"registerevent"in e&&n(4,c=e.registerevent),"loginurl"in e&&n(5,h=e.loginurl),"registerurl"in e&&n(6,d=e.registerurl),"currency"in e&&n(7,f=e.currency),"lang"in e&&n(8,m=e.lang),"keepbrowsercontext"in e&&n(9,p=e.keepbrowsercontext),"clientstyling"in e&&n(10,g=e.clientstyling),"clientstylingurl"in e&&n(11,y=e.clientstylingurl),"translationurl"in e&&n(17,b=e.translationurl)},t.$$.update=()=>{if(5120&t.$$.dirty[0]&&i&&g&&((e=document.createElement("style")).innerHTML=g,i.appendChild(e)),6144&t.$$.dirty[0]&&i&&y){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;131072&t.$$.dirty[0]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Tn(e,t[e])})}).catch(e=>{console.log(e)}),1&t.$$.dirty[0]&&s&&s.length,t.$$.dirty[0]},[s,o,l,u,c,h,d,f,m,p,g,y,i,v,w,r,a,b,function(e){ie[e?"unshift":"push"](()=>{i=e,n(12,i)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends re{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.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}",this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},_i,wi,n,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&C(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationurl","clientstyling","clientstylingurl"]}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(e){this.$$set({tournamenturl:e}),f()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),f()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(e){this.$$set({pagfactor:e}),f()}get lang(){return this.$$.ctx[18]}set lang(e){this.$$set({lang:e}),f()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),f()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends re{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}',this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Fi,Ri,n,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:44},null,[-1,-1,-1]),e&&(e.target&&C(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),f()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),f()}get touridx(){return this.$$.ctx[37]}set touridx(e){this.$$set({touridx:e}),f()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),f()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),f()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),f()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),f()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),f()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),f()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),f()}get loginevent(){return this.$$.ctx[39]}set loginevent(e){this.$$set({loginevent:e}),f()}get registerevent(){return this.$$.ctx[40]}set registerevent(e){this.$$set({registerevent:e}),f()}get loginurl(){return this.$$.ctx[41]}set loginurl(e){this.$$set({loginurl:e}),f()}get registerurl(){return this.$$.ctx[42]}set registerurl(e){this.$$set({registerurl:e}),f()}get currency(){return this.$$.ctx[43]}set currency(e){this.$$set({currency:e}),f()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),f()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),f()}});class Gi extends re{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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}",this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},ji,zi,n,{session:0,userid:1,numberoftournaments:16,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:17},null,[-1,-1]),e&&(e.target&&C(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),f()}get numberoftournaments(){return this.$$.ctx[16]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),f()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),f()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$$set({loginevent:e}),f()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$$set({registerevent:e}),f()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$$set({loginurl:e}),f()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$$set({registerurl:e}),f()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),f()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),f()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),f()}}return customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",Gi),Gi});
|
|
2
2
|
//# sourceMappingURL=casino-tournaments-list-controller.js.map
|